@mjhls/mjh-framework 1.0.238 → 1.0.239

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 +174 -174
  2. package/dist/cjs/DeckContent.js +9 -9
  3. package/dist/cjs/DeckQueue.js +1 -1
  4. package/dist/cjs/{GridContent-53e78cbf.js → GridContent-21bc198f.js} +2 -2
  5. package/dist/cjs/GridContent.js +2 -2
  6. package/dist/cjs/IssueContentDeck.js +1 -1
  7. package/dist/cjs/IssueDeck.js +1 -1
  8. package/dist/cjs/{MasterDeck-91c6ad85.js → MasterDeck-f8fbac3c.js} +9 -9
  9. package/dist/cjs/MasterDeck.js +2 -2
  10. package/dist/cjs/{Normal-a94a1ec8.js → Normal-c89b709d.js} +31 -31
  11. package/dist/cjs/PublicationDeck.js +1 -1
  12. package/dist/cjs/QueueDeckExpanded.js +1 -1
  13. package/dist/cjs/{TaxonomyCard-b5074d6e.js → TaxonomyCard-e3566492.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-fd44f8a0.js → YoutubeGroup-5f480446.js} +4 -4
  19. package/dist/cjs/YoutubeGroup.js +1 -1
  20. package/dist/cjs/{index-39beccb3.js → index-be0c82be.js} +1 -2
  21. package/dist/cjs/index.js +515 -527
  22. package/dist/esm/DeckContent.js +9 -9
  23. package/dist/esm/DeckQueue.js +1 -1
  24. package/dist/esm/{GridContent-f5bc4d75.js → GridContent-73c97039.js} +1 -1
  25. package/dist/esm/GridContent.js +2 -2
  26. package/dist/esm/IssueContentDeck.js +1 -1
  27. package/dist/esm/IssueDeck.js +1 -1
  28. package/dist/esm/{MasterDeck-5dd97a66.js → MasterDeck-238f31d7.js} +9 -9
  29. package/dist/esm/MasterDeck.js +2 -2
  30. package/dist/esm/{Normal-357f00d1.js → Normal-fdd55386.js} +31 -31
  31. package/dist/esm/PublicationDeck.js +1 -1
  32. package/dist/esm/QueueDeckExpanded.js +1 -1
  33. package/dist/esm/{TaxonomyCard-f74512cb.js → TaxonomyCard-a7b7ded8.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-1b3eca73.js → YoutubeGroup-78d93d44.js} +4 -4
  39. package/dist/esm/YoutubeGroup.js +1 -1
  40. package/dist/esm/{index-3849e3fe.js → index-73819142.js} +1 -2
  41. package/dist/esm/index.js +519 -531
  42. package/package.json +101 -101
package/dist/esm/index.js CHANGED
@@ -17,7 +17,7 @@ import Link from 'next/link';
17
17
  import Router, { useRouter } from 'next/router';
18
18
  import { d as debounce_1 } from './debounce-fa7fbf11.js';
19
19
  import 'react-dom';
20
- import { i as imageUrlBuilder } from './index-3849e3fe.js';
20
+ import { i as imageUrlBuilder } from './index-73819142.js';
21
21
  import './index-5f9f807a.js';
22
22
  import { m as main_36, a as main_35 } from './main-eecf7b27.js';
23
23
  import { h as html_decode_1, c as clean_html_1 } from './entities-7cc3bf45.js';
@@ -26,30 +26,30 @@ import { D as DFPAdSlot } from './AdSlot-017b8051.js';
26
26
  export { D as AdSlot } from './AdSlot-017b8051.js';
27
27
  export { default as DeckContent } from './DeckContent.js';
28
28
  import './get-8d382479.js';
29
- export { A as AD, G as GridContent } from './GridContent-f5bc4d75.js';
29
+ export { A as AD, G as GridContent } from './GridContent-73c97039.js';
30
30
  export { default as DeckQueue } from './DeckQueue.js';
31
31
  import 'react-bootstrap/Media';
32
32
  export { default as ThumbnailCard } from './ThumbnailCard.js';
33
- import { B as BlockContent } from './TaxonomyCard-f74512cb.js';
34
- export { T as TaxonomyCard } from './TaxonomyCard-f74512cb.js';
33
+ import { B as BlockContent } from './TaxonomyCard-a7b7ded8.js';
34
+ export { T as TaxonomyCard } from './TaxonomyCard-a7b7ded8.js';
35
35
  import GroupDeck from './GroupDeck.js';
36
36
  export { default as GroupDeck } from './GroupDeck.js';
37
- import { g as getYoutubeId } from './YoutubeGroup-1b3eca73.js';
38
- export { Y as YoutubeGroup } from './YoutubeGroup-1b3eca73.js';
37
+ import { g as getYoutubeId } from './YoutubeGroup-78d93d44.js';
38
+ export { Y as YoutubeGroup } from './YoutubeGroup-78d93d44.js';
39
39
  import { Spinner as Spinner$1, Container as Container$1, Row as Row$1, Col as Col$1, Figure, Carousel, Table, Button as Button$1, ProgressBar, Card } from 'react-bootstrap';
40
40
  export { default as QueueDeckExpanded } from './QueueDeckExpanded.js';
41
41
  import { I as IoMdArrowDropdown } from './index.esm-536609db.js';
42
42
  export { default as VideoSeriesListing } from './VideoSeriesListing.js';
43
- import { p as promise } from './MasterDeck-5dd97a66.js';
44
- export { M as MasterDeck } from './MasterDeck-5dd97a66.js';
43
+ import { p as promise } from './MasterDeck-238f31d7.js';
44
+ export { M as MasterDeck } from './MasterDeck-238f31d7.js';
45
45
  import Button from 'react-bootstrap/Button';
46
46
  export { default as PublicationDeck } from './PublicationDeck.js';
47
47
  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-357f00d1.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-357f00d1.js';
51
+ import { M as MdPictureAsPdf, T as TemplateNormal } from './Normal-fdd55386.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-fdd55386.js';
53
53
  import 'react-bootstrap/ListGroup';
54
54
  import Head from 'next/head';
55
55
  import Accordion from 'react-bootstrap/Accordion';
@@ -3735,18 +3735,21 @@ var Slideshow = function Slideshow(_ref) {
3735
3735
  );
3736
3736
  };
3737
3737
 
3738
- // do not edit .js files directly - edit src/index.jst
3739
-
3740
-
3738
+ var isArray = Array.isArray;
3739
+ var keyList = Object.keys;
3740
+ var hasProp = Object.prototype.hasOwnProperty;
3741
3741
 
3742
3742
  var fastDeepEqual = function equal(a, b) {
3743
3743
  if (a === b) return true;
3744
3744
 
3745
3745
  if (a && b && typeof a == 'object' && typeof b == 'object') {
3746
- if (a.constructor !== b.constructor) return false;
3746
+ var arrA = isArray(a)
3747
+ , arrB = isArray(b)
3748
+ , i
3749
+ , length
3750
+ , key;
3747
3751
 
3748
- var length, i, keys;
3749
- if (Array.isArray(a)) {
3752
+ if (arrA && arrB) {
3750
3753
  length = a.length;
3751
3754
  if (length != b.length) return false;
3752
3755
  for (i = length; i-- !== 0;)
@@ -3754,29 +3757,35 @@ var fastDeepEqual = function equal(a, b) {
3754
3757
  return true;
3755
3758
  }
3756
3759
 
3760
+ if (arrA != arrB) return false;
3757
3761
 
3762
+ var dateA = a instanceof Date
3763
+ , dateB = b instanceof Date;
3764
+ if (dateA != dateB) return false;
3765
+ if (dateA && dateB) return a.getTime() == b.getTime();
3758
3766
 
3759
- if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
3760
- if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
3761
- if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
3767
+ var regexpA = a instanceof RegExp
3768
+ , regexpB = b instanceof RegExp;
3769
+ if (regexpA != regexpB) return false;
3770
+ if (regexpA && regexpB) return a.toString() == b.toString();
3762
3771
 
3763
- keys = Object.keys(a);
3772
+ var keys = keyList(a);
3764
3773
  length = keys.length;
3765
- if (length !== Object.keys(b).length) return false;
3774
+
3775
+ if (length !== keyList(b).length)
3776
+ return false;
3766
3777
 
3767
3778
  for (i = length; i-- !== 0;)
3768
- if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
3779
+ if (!hasProp.call(b, keys[i])) return false;
3769
3780
 
3770
3781
  for (i = length; i-- !== 0;) {
3771
- var key = keys[i];
3772
-
3782
+ key = keys[i];
3773
3783
  if (!equal(a[key], b[key])) return false;
3774
3784
  }
3775
3785
 
3776
3786
  return true;
3777
3787
  }
3778
3788
 
3779
- // true if both NaN, false otherwise
3780
3789
  return a!==a && b!==b;
3781
3790
  };
3782
3791
 
@@ -4799,7 +4808,7 @@ function formatValue(ctx, value, recurseTimes) {
4799
4808
  var base = '', array = false, braces = ['{', '}'];
4800
4809
 
4801
4810
  // Make Array say that they are Array
4802
- if (isArray(value)) {
4811
+ if (isArray$1(value)) {
4803
4812
  array = true;
4804
4813
  braces = ['[', ']'];
4805
4814
  }
@@ -4978,7 +4987,7 @@ function reduceToSingleString(output, base, braces) {
4978
4987
 
4979
4988
  // NOTE: These type checking functions intentionally don't use `instanceof`
4980
4989
  // because it is fragile and can be easily faked with `Object.create()`.
4981
- function isArray(ar) {
4990
+ function isArray$1(ar) {
4982
4991
  return Array.isArray(ar);
4983
4992
  }
4984
4993
 
@@ -5105,7 +5114,7 @@ var util = {
5105
5114
  isNullOrUndefined: isNullOrUndefined,
5106
5115
  isNull: isNull,
5107
5116
  isBoolean: isBoolean,
5108
- isArray: isArray,
5117
+ isArray: isArray$1,
5109
5118
  inspect: inspect,
5110
5119
  deprecate: deprecate,
5111
5120
  format: format,
@@ -5772,235 +5781,199 @@ module.exports = exports['default'];
5772
5781
 
5773
5782
  var youTubePlayer = unwrapExports(dist);
5774
5783
 
5775
- 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); }
5784
+ 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; }; }();
5776
5785
 
5777
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5786
+ 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; };
5778
5787
 
5779
- 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); } }
5780
-
5781
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5782
-
5783
- 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); }; }
5784
-
5785
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5786
-
5787
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5788
-
5789
- 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; } }
5790
-
5791
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5792
-
5793
- 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); }
5794
-
5795
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
5788
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5796
5789
 
5797
- 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; }
5790
+ 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; }
5798
5791
 
5799
- 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; }
5792
+ 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; }
5800
5793
 
5801
- 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; }
5802
- /**
5803
- * Check whether a `props` change should result in the video being updated.
5804
- *
5805
- * @param {Object} prevProps
5806
- * @param {Object} props
5794
+ /**
5795
+ * Check whether a `props` change should result in the video being updated.
5796
+ *
5797
+ * @param {Object} prevProps
5798
+ * @param {Object} props
5807
5799
  */
5808
-
5809
5800
  function shouldUpdateVideo(prevProps, props) {
5810
5801
  // A changing video should always trigger an update
5811
5802
  if (prevProps.videoId !== props.videoId) {
5812
5803
  return true;
5813
- } // Otherwise, a change in the start/end time playerVars also requires a player
5814
- // update.
5815
-
5804
+ }
5816
5805
 
5806
+ // Otherwise, a change in the start/end time playerVars also requires a player
5807
+ // update.
5817
5808
  var prevVars = prevProps.opts.playerVars || {};
5818
5809
  var vars = props.opts.playerVars || {};
5810
+
5819
5811
  return prevVars.start !== vars.start || prevVars.end !== vars.end;
5820
5812
  }
5821
- /**
5822
- * Neutralize API options that only require a video update, leaving only options
5823
- * that require a player reset. The results can then be compared to see if a
5824
- * player reset is necessary.
5825
- *
5826
- * @param {Object} opts
5827
- */
5828
-
5829
5813
 
5814
+ /**
5815
+ * Neutralise API options that only require a video update, leaving only options
5816
+ * that require a player reset. The results can then be compared to see if a
5817
+ * player reset is necessary.
5818
+ *
5819
+ * @param {Object} opts
5820
+ */
5830
5821
  function filterResetOptions(opts) {
5831
- return _objectSpread({}, opts, {
5832
- playerVars: _objectSpread({}, opts.playerVars, {
5822
+ return _extends({}, opts, {
5823
+ playerVars: _extends({}, opts.playerVars, {
5833
5824
  autoplay: 0,
5834
5825
  start: 0,
5835
5826
  end: 0
5836
5827
  })
5837
5828
  });
5838
5829
  }
5839
- /**
5840
- * Check whether a `props` change should result in the player being reset.
5841
- * The player is reset when the `props.opts` change, except if the only change
5842
- * is in the `start` and `end` playerVars, because a video update can deal with
5843
- * those.
5844
- *
5845
- * @param {Object} prevProps
5846
- * @param {Object} props
5847
- */
5848
-
5849
5830
 
5831
+ /**
5832
+ * Check whether a `props` change should result in the player being reset.
5833
+ * The player is reset when the `props.opts` change, except if the only change
5834
+ * is in the `start` and `end` playerVars, because a video update can deal with
5835
+ * those.
5836
+ *
5837
+ * @param {Object} prevProps
5838
+ * @param {Object} props
5839
+ */
5850
5840
  function shouldResetPlayer(prevProps, props) {
5851
5841
  return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
5852
5842
  }
5853
- /**
5854
- * Check whether a props change should result in an id or className update.
5855
- *
5856
- * @param {Object} prevProps
5857
- * @param {Object} props
5858
- */
5859
-
5860
5843
 
5844
+ /**
5845
+ * Check whether a props change should result in an id or className update.
5846
+ *
5847
+ * @param {Object} prevProps
5848
+ * @param {Object} props
5849
+ */
5861
5850
  function shouldUpdatePlayer(prevProps, props) {
5862
5851
  return prevProps.id !== props.id || prevProps.className !== props.className;
5863
5852
  }
5864
5853
 
5865
- var YouTube = /*#__PURE__*/function (_React$Component) {
5854
+ var YouTube = function (_React$Component) {
5866
5855
  _inherits(YouTube, _React$Component);
5867
5856
 
5868
- var _super = _createSuper(YouTube);
5869
-
5870
- /**
5871
- * Expose PlayerState constants for convenience. These constants can also be
5872
- * accessed through the global YT object after the YouTube IFrame API is instantiated.
5873
- * https://developers.google.com/youtube/iframe_api_reference#onStateChange
5874
- */
5875
5857
  function YouTube(props) {
5876
- var _this;
5877
-
5878
5858
  _classCallCheck(this, YouTube);
5879
5859
 
5880
- _this = _super.call(this, props);
5860
+ var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
5881
5861
 
5882
- _defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
5862
+ _this.onPlayerReady = function (event) {
5883
5863
  return _this.props.onReady(event);
5884
- });
5864
+ };
5885
5865
 
5886
- _defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
5866
+ _this.onPlayerError = function (event) {
5887
5867
  return _this.props.onError(event);
5888
- });
5868
+ };
5889
5869
 
5890
- _defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
5870
+ _this.onPlayerStateChange = function (event) {
5891
5871
  _this.props.onStateChange(event);
5892
-
5893
5872
  switch (event.data) {
5873
+
5894
5874
  case YouTube.PlayerState.ENDED:
5895
5875
  _this.props.onEnd(event);
5896
-
5897
5876
  break;
5898
5877
 
5899
5878
  case YouTube.PlayerState.PLAYING:
5900
5879
  _this.props.onPlay(event);
5901
-
5902
5880
  break;
5903
5881
 
5904
5882
  case YouTube.PlayerState.PAUSED:
5905
5883
  _this.props.onPause(event);
5906
-
5907
5884
  break;
5908
5885
  }
5909
- });
5886
+ };
5910
5887
 
5911
- _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
5888
+ _this.onPlayerPlaybackRateChange = function (event) {
5912
5889
  return _this.props.onPlaybackRateChange(event);
5913
- });
5890
+ };
5914
5891
 
5915
- _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
5892
+ _this.onPlayerPlaybackQualityChange = function (event) {
5916
5893
  return _this.props.onPlaybackQualityChange(event);
5917
- });
5894
+ };
5918
5895
 
5919
- _defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
5896
+ _this.createPlayer = function () {
5920
5897
  // do not attempt to create a player server-side, it won't work
5921
- if (typeof document === 'undefined') return; // create player
5922
-
5923
- var playerOpts = _objectSpread({}, _this.props.opts, {
5898
+ if (typeof document === 'undefined') return;
5899
+ // create player
5900
+ var playerOpts = _extends({}, _this.props.opts, {
5924
5901
  // preload the `videoId` video if one is already given
5925
5902
  videoId: _this.props.videoId
5926
5903
  });
5927
-
5928
- _this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
5929
-
5904
+ _this.internalPlayer = youTubePlayer(_this.container, playerOpts);
5905
+ // attach event handlers
5930
5906
  _this.internalPlayer.on('ready', _this.onPlayerReady);
5931
-
5932
5907
  _this.internalPlayer.on('error', _this.onPlayerError);
5933
-
5934
5908
  _this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
5935
-
5936
5909
  _this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
5937
-
5938
5910
  _this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
5939
- });
5911
+ };
5940
5912
 
5941
- _defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
5913
+ _this.resetPlayer = function () {
5942
5914
  return _this.internalPlayer.destroy().then(_this.createPlayer);
5943
- });
5915
+ };
5944
5916
 
5945
- _defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
5917
+ _this.updatePlayer = function () {
5946
5918
  _this.internalPlayer.getIframe().then(function (iframe) {
5947
5919
  if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
5948
5920
  if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
5949
5921
  });
5950
- });
5922
+ };
5951
5923
 
5952
- _defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
5924
+ _this.updateVideo = function () {
5953
5925
  if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
5954
5926
  _this.internalPlayer.stopVideo();
5955
-
5956
5927
  return;
5957
- } // set queueing options
5958
-
5928
+ }
5959
5929
 
5930
+ // set queueing options
5960
5931
  var autoplay = false;
5961
5932
  var opts = {
5962
5933
  videoId: _this.props.videoId
5963
5934
  };
5964
-
5965
5935
  if ('playerVars' in _this.props.opts) {
5966
5936
  autoplay = _this.props.opts.playerVars.autoplay === 1;
5967
-
5968
5937
  if ('start' in _this.props.opts.playerVars) {
5969
5938
  opts.startSeconds = _this.props.opts.playerVars.start;
5970
5939
  }
5971
-
5972
5940
  if ('end' in _this.props.opts.playerVars) {
5973
5941
  opts.endSeconds = _this.props.opts.playerVars.end;
5974
5942
  }
5975
- } // if autoplay is enabled loadVideoById
5976
-
5943
+ }
5977
5944
 
5945
+ // if autoplay is enabled loadVideoById
5978
5946
  if (autoplay) {
5979
5947
  _this.internalPlayer.loadVideoById(opts);
5980
-
5981
5948
  return;
5982
- } // default behaviour just cues the video
5983
-
5984
-
5949
+ }
5950
+ // default behaviour just cues the video
5985
5951
  _this.internalPlayer.cueVideoById(opts);
5986
- });
5952
+ };
5987
5953
 
5988
- _defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
5954
+ _this.refContainer = function (container) {
5989
5955
  _this.container = container;
5990
- });
5956
+ };
5991
5957
 
5992
5958
  _this.container = null;
5993
5959
  _this.internalPlayer = null;
5994
5960
  return _this;
5995
5961
  }
5996
5962
 
5963
+ /**
5964
+ * Expose PlayerState constants for convenience. These constants can also be
5965
+ * accessed through the global YT object after the YouTube IFrame API is instantiated.
5966
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
5967
+ */
5968
+
5969
+
5997
5970
  _createClass(YouTube, [{
5998
- key: "componentDidMount",
5971
+ key: 'componentDidMount',
5999
5972
  value: function componentDidMount() {
6000
5973
  this.createPlayer();
6001
5974
  }
6002
5975
  }, {
6003
- key: "componentDidUpdate",
5976
+ key: 'componentDidUpdate',
6004
5977
  value: function componentDidUpdate(prevProps) {
6005
5978
  if (shouldUpdatePlayer(prevProps, this.props)) {
6006
5979
  this.updatePlayer();
@@ -6015,58 +5988,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
6015
5988
  }
6016
5989
  }
6017
5990
  }, {
6018
- key: "componentWillUnmount",
5991
+ key: 'componentWillUnmount',
6019
5992
  value: function componentWillUnmount() {
6020
- /**
6021
- * Note: The `youtube-player` package that is used promisifies all YouTube
6022
- * Player API calls, which introduces a delay of a tick before it actually
6023
- * gets destroyed. Since React attempts to remove the element instantly
6024
- * this method isn't quick enough to reset the container element.
5993
+ /**
5994
+ * Note: The `youtube-player` package that is used promisifies all Youtube
5995
+ * Player API calls, which introduces a delay of a tick before it actually
5996
+ * gets destroyed. Since React attempts to remove the element instantly
5997
+ * this method isn't quick enough to reset the container element.
6025
5998
  */
6026
5999
  this.internalPlayer.destroy();
6027
6000
  }
6028
- /**
6029
- * https://developers.google.com/youtube/iframe_api_reference#onReady
6030
- *
6031
- * @param {Object} event
6032
- * @param {Object} target - player object
6001
+
6002
+ /**
6003
+ * https://developers.google.com/youtube/iframe_api_reference#onReady
6004
+ *
6005
+ * @param {Object} event
6006
+ * @param {Object} target - player object
6007
+ */
6008
+
6009
+
6010
+ /**
6011
+ * https://developers.google.com/youtube/iframe_api_reference#onError
6012
+ *
6013
+ * @param {Object} event
6014
+ * @param {Integer} data - error type
6015
+ * @param {Object} target - player object
6016
+ */
6017
+
6018
+
6019
+ /**
6020
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
6021
+ *
6022
+ * @param {Object} event
6023
+ * @param {Integer} data - status change type
6024
+ * @param {Object} target - actual YT player
6025
+ */
6026
+
6027
+
6028
+ /**
6029
+ * https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
6030
+ *
6031
+ * @param {Object} event
6032
+ * @param {Float} data - playback rate
6033
+ * @param {Object} target - actual YT player
6034
+ */
6035
+
6036
+
6037
+ /**
6038
+ * https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
6039
+ *
6040
+ * @param {Object} event
6041
+ * @param {String} data - playback quality
6042
+ * @param {Object} target - actual YT player
6043
+ */
6044
+
6045
+
6046
+ /**
6047
+ * Initialize the Youtube Player API on the container and attach event handlers
6048
+ */
6049
+
6050
+
6051
+ /**
6052
+ * Shorthand for destroying and then re-creating the Youtube Player
6053
+ */
6054
+
6055
+
6056
+ /**
6057
+ * Method to update the id and class of the Youtube Player iframe.
6058
+ * React should update this automatically but since the Youtube Player API
6059
+ * replaced the DIV that is mounted by React we need to do this manually.
6060
+ */
6061
+
6062
+
6063
+ /**
6064
+ * Call Youtube Player API methods to update the currently playing video.
6065
+ * Depeding on the `opts.playerVars.autoplay` this function uses one of two
6066
+ * Youtube Player API methods to update the video.
6033
6067
  */
6034
6068
 
6035
6069
  }, {
6036
- key: "render",
6070
+ key: 'render',
6037
6071
  value: function render() {
6038
- return /*#__PURE__*/React__default.createElement("div", {
6039
- className: this.props.containerClassName
6040
- }, /*#__PURE__*/React__default.createElement("div", {
6041
- id: this.props.id,
6042
- className: this.props.className,
6043
- ref: this.refContainer
6044
- }));
6072
+ return React__default.createElement(
6073
+ 'div',
6074
+ { className: this.props.containerClassName },
6075
+ React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
6076
+ );
6045
6077
  }
6046
6078
  }]);
6047
6079
 
6048
6080
  return YouTube;
6049
6081
  }(React__default.Component);
6050
6082
 
6051
- _defineProperty(YouTube, "PlayerState", {
6052
- UNSTARTED: -1,
6053
- ENDED: 0,
6054
- PLAYING: 1,
6055
- PAUSED: 2,
6056
- BUFFERING: 3,
6057
- CUED: 5
6058
- });
6059
-
6060
6083
  YouTube.propTypes = {
6061
6084
  videoId: PropTypes.string,
6085
+
6062
6086
  // custom ID for player element
6063
6087
  id: PropTypes.string,
6088
+
6064
6089
  // custom class name for player element
6065
6090
  className: PropTypes.string,
6066
6091
  // custom class name for player container element
6067
6092
  containerClassName: PropTypes.string,
6093
+
6068
6094
  // https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
6069
6095
  opts: PropTypes.objectOf(PropTypes.any),
6096
+
6070
6097
  // event subscriptions
6071
6098
  onReady: PropTypes.func,
6072
6099
  onError: PropTypes.func,
@@ -6078,7 +6105,6 @@ YouTube.propTypes = {
6078
6105
  onPlaybackQualityChange: PropTypes.func
6079
6106
  };
6080
6107
  YouTube.defaultProps = {
6081
- videoId: null,
6082
6108
  id: null,
6083
6109
  className: null,
6084
6110
  opts: {},
@@ -6092,6 +6118,14 @@ YouTube.defaultProps = {
6092
6118
  onPlaybackRateChange: function onPlaybackRateChange() {},
6093
6119
  onPlaybackQualityChange: function onPlaybackQualityChange() {}
6094
6120
  };
6121
+ YouTube.PlayerState = {
6122
+ UNSTARTED: -1,
6123
+ ENDED: 0,
6124
+ PLAYING: 1,
6125
+ PAUSED: 2,
6126
+ BUFFERING: 3,
6127
+ CUED: 5
6128
+ };
6095
6129
 
6096
6130
  var YouTubePlayer = function YouTubePlayer(_ref) {
6097
6131
  var url = _ref.url;
@@ -7034,8 +7068,8 @@ var window_1 = win;
7034
7068
 
7035
7069
  /*! @name @brightcove/react-player-loader @version 1.4.0 @license Apache-2.0 */
7036
7070
 
7037
- function _extends() {
7038
- _extends = Object.assign || function (target) {
7071
+ function _extends$1() {
7072
+ _extends$1 = Object.assign || function (target) {
7039
7073
  for (var i = 1; i < arguments.length; i++) {
7040
7074
  var source = arguments[i];
7041
7075
 
@@ -7049,7 +7083,7 @@ function _extends() {
7049
7083
  return target;
7050
7084
  };
7051
7085
 
7052
- return _extends.apply(this, arguments);
7086
+ return _extends$1.apply(this, arguments);
7053
7087
  }
7054
7088
 
7055
7089
  function _inheritsLoose(subClass, superClass) {
@@ -7058,7 +7092,7 @@ function _inheritsLoose(subClass, superClass) {
7058
7092
  subClass.__proto__ = superClass;
7059
7093
  }
7060
7094
 
7061
- function _assertThisInitialized$1(self) {
7095
+ function _assertThisInitialized(self) {
7062
7096
  if (self === void 0) {
7063
7097
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
7064
7098
  }
@@ -7068,8 +7102,8 @@ function _assertThisInitialized$1(self) {
7068
7102
 
7069
7103
  /*! @name @brightcove/player-loader @version 1.7.1 @license Apache-2.0 */
7070
7104
 
7071
- function _extends$1() {
7072
- _extends$1 = Object.assign || function (target) {
7105
+ function _extends$1$1() {
7106
+ _extends$1$1 = Object.assign || function (target) {
7073
7107
  for (var i = 1; i < arguments.length; i++) {
7074
7108
  var source = arguments[i];
7075
7109
 
@@ -7083,7 +7117,7 @@ function _extends$1() {
7083
7117
  return target;
7084
7118
  };
7085
7119
 
7086
- return _extends$1.apply(this, arguments);
7120
+ return _extends$1$1.apply(this, arguments);
7087
7121
  }
7088
7122
 
7089
7123
  var version$1 = "1.7.1";
@@ -7091,7 +7125,7 @@ var version$1 = "1.7.1";
7091
7125
  /*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */
7092
7126
  var version$1$1 = "1.2.0";
7093
7127
 
7094
- var _typeof$1 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
7128
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
7095
7129
  return typeof obj;
7096
7130
  } : function (obj) {
7097
7131
  return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
@@ -7226,7 +7260,7 @@ var brightcovePlayerUrl = function brightcovePlayerUrl(_ref) {
7226
7260
 
7227
7261
  var qs = '';
7228
7262
 
7229
- if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof$1(queryParams)) === 'object') {
7263
+ if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof(queryParams)) === 'object') {
7230
7264
  qs = getQueryString(queryParams);
7231
7265
  }
7232
7266
 
@@ -7460,7 +7494,7 @@ var wrapResponsive = function wrapResponsive(embedType, embedOptions, el) {
7460
7494
  el.style.width = '100%';
7461
7495
  el.style.height = '100%';
7462
7496
 
7463
- var responsive = _extends$1({
7497
+ var responsive = _extends$1$1({
7464
7498
  aspectRatio: DEFAULT_ASPECT_RATIO,
7465
7499
  iframeHorizontalPlaylist: DEFAULT_IFRAME_HORIZONTAL_PLAYLIST,
7466
7500
  maxWidth: DEFAULT_MAX_WIDTH
@@ -8145,7 +8179,7 @@ var loadPlayer = function loadPlayer(params, resolve, reject) {
8145
8179
 
8146
8180
 
8147
8181
  var brightcovePlayerLoader = function brightcovePlayerLoader(parameters) {
8148
- var params = _extends$1({}, DEFAULTS, parameters);
8182
+ var params = _extends$1$1({}, DEFAULTS, parameters);
8149
8183
 
8150
8184
  var Promise = params.Promise,
8151
8185
  onSuccess = params.onSuccess,
@@ -8287,7 +8321,7 @@ function (_React$Component) {
8287
8321
  _this.refNode = ref;
8288
8322
  };
8289
8323
 
8290
- _this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized$1(_this));
8324
+ _this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized(_this));
8291
8325
  return _this;
8292
8326
  }
8293
8327
  /**
@@ -8308,7 +8342,7 @@ function (_React$Component) {
8308
8342
  var userSuccess = this.props.onSuccess;
8309
8343
  var userFailure = this.props.onFailure;
8310
8344
 
8311
- var options = _extends({}, this.props, {
8345
+ var options = _extends$1({}, this.props, {
8312
8346
  refNode: this.refNode,
8313
8347
  refNodeInsert: 'append',
8314
8348
  onSuccess: function onSuccess(_ref) {
@@ -8617,7 +8651,7 @@ function (_React$Component) {
8617
8651
  ;
8618
8652
 
8619
8653
  _proto.render = function render() {
8620
- var props = _extends({
8654
+ var props = _extends$1({
8621
8655
  className: 'brightcove-react-player-loader'
8622
8656
  }, this.props.attrs, {
8623
8657
  ref: this.setRefNode
@@ -9031,17 +9065,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
9031
9065
 
9032
9066
  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; }
9033
9067
 
9034
- 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; } } }; }
9035
-
9036
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
9068
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
9037
9069
 
9038
- 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."); }
9070
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
9039
9071
 
9040
- 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); }
9041
-
9042
- 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; }
9043
-
9044
- 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; }
9072
+ 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; }
9045
9073
 
9046
9074
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9047
9075
 
@@ -9171,12 +9199,12 @@ function getSDK(url, sdkGlobal) {
9171
9199
 
9172
9200
  function getConfig(props$1, defaultProps, showWarning) {
9173
9201
  var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
9174
-
9175
- var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
9176
- _step;
9202
+ var _iteratorNormalCompletion = true;
9203
+ var _didIteratorError = false;
9204
+ var _iteratorError = undefined;
9177
9205
 
9178
9206
  try {
9179
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
9207
+ for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
9180
9208
  var p = _step.value;
9181
9209
 
9182
9210
  if (props$1[p]) {
@@ -9191,9 +9219,18 @@ function getConfig(props$1, defaultProps, showWarning) {
9191
9219
  }
9192
9220
  }
9193
9221
  } catch (err) {
9194
- _iterator.e(err);
9222
+ _didIteratorError = true;
9223
+ _iteratorError = err;
9195
9224
  } finally {
9196
- _iterator.f();
9225
+ try {
9226
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
9227
+ _iterator["return"]();
9228
+ }
9229
+ } finally {
9230
+ if (_didIteratorError) {
9231
+ throw _iteratorError;
9232
+ }
9233
+ }
9197
9234
  }
9198
9235
 
9199
9236
  return config;
@@ -9340,16 +9377,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9340
9377
 
9341
9378
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9342
9379
 
9343
- 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); }; }
9344
-
9345
9380
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9346
9381
 
9347
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9348
-
9349
- 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; } }
9350
-
9351
9382
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9352
9383
 
9384
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9385
+
9353
9386
  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); }
9354
9387
 
9355
9388
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9358,12 +9391,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
9358
9391
 
9359
9392
  var SEEK_ON_PLAY_EXPIRY = 5000;
9360
9393
 
9361
- var Player = /*#__PURE__*/function (_Component) {
9394
+ var Player =
9395
+ /*#__PURE__*/
9396
+ function (_Component) {
9362
9397
  _inherits(Player, _Component);
9363
9398
 
9364
- var _super = _createSuper(Player);
9365
-
9366
9399
  function Player() {
9400
+ var _getPrototypeOf2;
9401
+
9367
9402
  var _this;
9368
9403
 
9369
9404
  _classCallCheck(this, Player);
@@ -9372,7 +9407,7 @@ var Player = /*#__PURE__*/function (_Component) {
9372
9407
  _args[_key] = arguments[_key];
9373
9408
  }
9374
9409
 
9375
- _this = _super.call.apply(_super, [this].concat(_args));
9410
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
9376
9411
 
9377
9412
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
9378
9413
 
@@ -9697,7 +9732,7 @@ var Player = /*#__PURE__*/function (_Component) {
9697
9732
  return null;
9698
9733
  }
9699
9734
 
9700
- return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
9735
+ return _react["default"].createElement(Player, _extends({}, this.props, {
9701
9736
  ref: this.ref,
9702
9737
  onReady: this.handleReady,
9703
9738
  onPlay: this.handlePlay,
@@ -9758,16 +9793,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9758
9793
 
9759
9794
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9760
9795
 
9761
- 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); }; }
9762
-
9763
9796
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9764
9797
 
9765
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9766
-
9767
- 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; } }
9768
-
9769
9798
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9770
9799
 
9800
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9801
+
9771
9802
  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); }
9772
9803
 
9773
9804
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9779,12 +9810,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
9779
9810
  function createSinglePlayer(activePlayer) {
9780
9811
  var _class, _temp;
9781
9812
 
9782
- return _temp = _class = /*#__PURE__*/function (_Component) {
9813
+ return _temp = _class =
9814
+ /*#__PURE__*/
9815
+ function (_Component) {
9783
9816
  _inherits(SinglePlayer, _Component);
9784
9817
 
9785
- var _super = _createSuper(SinglePlayer);
9786
-
9787
9818
  function SinglePlayer() {
9819
+ var _getPrototypeOf2;
9820
+
9788
9821
  var _this;
9789
9822
 
9790
9823
  _classCallCheck(this, SinglePlayer);
@@ -9793,7 +9826,7 @@ function createSinglePlayer(activePlayer) {
9793
9826
  args[_key] = arguments[_key];
9794
9827
  }
9795
9828
 
9796
- _this = _super.call.apply(_super, [this].concat(args));
9829
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
9797
9830
 
9798
9831
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
9799
9832
 
@@ -9861,12 +9894,12 @@ function createSinglePlayer(activePlayer) {
9861
9894
  height = _this$props.height,
9862
9895
  Wrapper = _this$props.wrapper;
9863
9896
  var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
9864
- return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
9897
+ return _react["default"].createElement(Wrapper, _extends({
9865
9898
  style: _objectSpread({}, style, {
9866
9899
  width: width,
9867
9900
  height: height
9868
9901
  })
9869
- }, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
9902
+ }, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
9870
9903
  ref: this.ref,
9871
9904
  activePlayer: activePlayer,
9872
9905
  config: this.config
@@ -9912,31 +9945,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9912
9945
 
9913
9946
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9914
9947
 
9915
- 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); }; }
9916
-
9917
9948
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9918
9949
 
9919
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9920
-
9921
- 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; } }
9922
-
9923
9950
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9924
9951
 
9952
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9953
+
9925
9954
  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); }
9926
9955
 
9927
9956
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9928
9957
 
9929
9958
  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; }
9930
9959
 
9931
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
9932
-
9933
- 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."); }
9934
-
9935
- 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); }
9960
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
9936
9961
 
9937
- 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; }
9962
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
9938
9963
 
9939
- 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; }
9964
+ 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; }
9940
9965
 
9941
9966
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9942
9967
 
@@ -9961,12 +9986,14 @@ function parsePlaylist(url) {
9961
9986
  return {};
9962
9987
  }
9963
9988
 
9964
- var YouTube = /*#__PURE__*/function (_Component) {
9989
+ var YouTube =
9990
+ /*#__PURE__*/
9991
+ function (_Component) {
9965
9992
  _inherits(YouTube, _Component);
9966
9993
 
9967
- var _super = _createSuper(YouTube);
9968
-
9969
9994
  function YouTube() {
9995
+ var _getPrototypeOf2;
9996
+
9970
9997
  var _this;
9971
9998
 
9972
9999
  _classCallCheck(this, YouTube);
@@ -9975,7 +10002,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
9975
10002
  args[_key] = arguments[_key];
9976
10003
  }
9977
10004
 
9978
- _this = _super.call.apply(_super, [this].concat(args));
10005
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
9979
10006
 
9980
10007
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
9981
10008
 
@@ -10163,9 +10190,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
10163
10190
  height: '100%',
10164
10191
  display: display
10165
10192
  };
10166
- return /*#__PURE__*/_react["default"].createElement("div", {
10193
+ return _react["default"].createElement("div", {
10167
10194
  style: style
10168
- }, /*#__PURE__*/_react["default"].createElement("div", {
10195
+ }, _react["default"].createElement("div", {
10169
10196
  ref: this.ref
10170
10197
  }));
10171
10198
  }
@@ -10221,16 +10248,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10221
10248
 
10222
10249
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10223
10250
 
10224
- 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); }; }
10225
-
10226
10251
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10227
10252
 
10228
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10229
-
10230
- 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; } }
10231
-
10232
10253
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10233
10254
 
10255
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10256
+
10234
10257
  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); }
10235
10258
 
10236
10259
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10239,14 +10262,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
10239
10262
 
10240
10263
  var SDK_URL = 'https://w.soundcloud.com/player/api.js';
10241
10264
  var SDK_GLOBAL = 'SC';
10242
- var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
10265
+ var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
10243
10266
 
10244
- var SoundCloud = /*#__PURE__*/function (_Component) {
10267
+ var SoundCloud =
10268
+ /*#__PURE__*/
10269
+ function (_Component) {
10245
10270
  _inherits(SoundCloud, _Component);
10246
10271
 
10247
- var _super = _createSuper(SoundCloud);
10248
-
10249
10272
  function SoundCloud() {
10273
+ var _getPrototypeOf2;
10274
+
10250
10275
  var _this;
10251
10276
 
10252
10277
  _classCallCheck(this, SoundCloud);
@@ -10255,7 +10280,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
10255
10280
  args[_key] = arguments[_key];
10256
10281
  }
10257
10282
 
10258
- _this = _super.call.apply(_super, [this].concat(args));
10283
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
10259
10284
 
10260
10285
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10261
10286
 
@@ -10376,7 +10401,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
10376
10401
  height: '100%',
10377
10402
  display: display
10378
10403
  };
10379
- return /*#__PURE__*/_react["default"].createElement("iframe", {
10404
+ return _react["default"].createElement("iframe", {
10380
10405
  ref: this.ref,
10381
10406
  src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
10382
10407
  style: style,
@@ -10438,16 +10463,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10438
10463
 
10439
10464
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10440
10465
 
10441
- 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); }; }
10442
-
10443
10466
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10444
10467
 
10445
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10446
-
10447
- 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; } }
10448
-
10449
10468
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10450
10469
 
10470
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10471
+
10451
10472
  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); }
10452
10473
 
10453
10474
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10459,12 +10480,14 @@ var SDK_GLOBAL = 'Vimeo';
10459
10480
  var MATCH_URL = /vimeo\.com\/.+/;
10460
10481
  var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
10461
10482
 
10462
- var Vimeo = /*#__PURE__*/function (_Component) {
10483
+ var Vimeo =
10484
+ /*#__PURE__*/
10485
+ function (_Component) {
10463
10486
  _inherits(Vimeo, _Component);
10464
10487
 
10465
- var _super = _createSuper(Vimeo);
10466
-
10467
10488
  function Vimeo() {
10489
+ var _getPrototypeOf2;
10490
+
10468
10491
  var _this;
10469
10492
 
10470
10493
  _classCallCheck(this, Vimeo);
@@ -10473,7 +10496,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
10473
10496
  args[_key] = arguments[_key];
10474
10497
  }
10475
10498
 
10476
- _this = _super.call.apply(_super, [this].concat(args));
10499
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
10477
10500
 
10478
10501
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10479
10502
 
@@ -10630,7 +10653,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
10630
10653
  overflow: 'hidden',
10631
10654
  display: display
10632
10655
  };
10633
- return /*#__PURE__*/_react["default"].createElement("div", {
10656
+ return _react["default"].createElement("div", {
10634
10657
  key: this.props.url,
10635
10658
  ref: this.ref,
10636
10659
  style: style
@@ -10690,16 +10713,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10690
10713
 
10691
10714
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10692
10715
 
10693
- 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); }; }
10694
-
10695
10716
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10696
10717
 
10697
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10698
-
10699
- 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; } }
10700
-
10701
10718
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10702
10719
 
10720
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10721
+
10703
10722
  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); }
10704
10723
 
10705
10724
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10712,12 +10731,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
10712
10731
  var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
10713
10732
  var PLAYER_ID_PREFIX = 'facebook-player-';
10714
10733
 
10715
- var Facebook = /*#__PURE__*/function (_Component) {
10734
+ var Facebook =
10735
+ /*#__PURE__*/
10736
+ function (_Component) {
10716
10737
  _inherits(Facebook, _Component);
10717
10738
 
10718
- var _super = _createSuper(Facebook);
10719
-
10720
10739
  function Facebook() {
10740
+ var _getPrototypeOf2;
10741
+
10721
10742
  var _this;
10722
10743
 
10723
10744
  _classCallCheck(this, Facebook);
@@ -10726,7 +10747,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
10726
10747
  args[_key] = arguments[_key];
10727
10748
  }
10728
10749
 
10729
- _this = _super.call.apply(_super, [this].concat(args));
10750
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
10730
10751
 
10731
10752
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10732
10753
 
@@ -10842,7 +10863,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
10842
10863
  width: '100%',
10843
10864
  height: '100%'
10844
10865
  };
10845
- return /*#__PURE__*/_react["default"].createElement("div", {
10866
+ return _react["default"].createElement("div", {
10846
10867
  style: style,
10847
10868
  id: this.playerID,
10848
10869
  className: "fb-video",
@@ -10902,16 +10923,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10902
10923
 
10903
10924
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10904
10925
 
10905
- 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); }; }
10906
-
10907
10926
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10908
10927
 
10909
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10910
-
10911
- 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; } }
10912
-
10913
10928
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10914
10929
 
10930
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10931
+
10915
10932
  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); }
10916
10933
 
10917
10934
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10922,12 +10939,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
10922
10939
  var SDK_GLOBAL = 'playerjs';
10923
10940
  var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
10924
10941
 
10925
- var Streamable = /*#__PURE__*/function (_Component) {
10942
+ var Streamable =
10943
+ /*#__PURE__*/
10944
+ function (_Component) {
10926
10945
  _inherits(Streamable, _Component);
10927
10946
 
10928
- var _super = _createSuper(Streamable);
10929
-
10930
10947
  function Streamable() {
10948
+ var _getPrototypeOf2;
10949
+
10931
10950
  var _this;
10932
10951
 
10933
10952
  _classCallCheck(this, Streamable);
@@ -10936,7 +10955,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
10936
10955
  args[_key] = arguments[_key];
10937
10956
  }
10938
10957
 
10939
- _this = _super.call.apply(_super, [this].concat(args));
10958
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
10940
10959
 
10941
10960
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10942
10961
 
@@ -11056,7 +11075,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
11056
11075
  width: '100%',
11057
11076
  height: '100%'
11058
11077
  };
11059
- return /*#__PURE__*/_react["default"].createElement("iframe", {
11078
+ return _react["default"].createElement("iframe", {
11060
11079
  ref: this.ref,
11061
11080
  src: "https://streamable.com/o/".concat(id),
11062
11081
  frameBorder: "0",
@@ -11117,16 +11136,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11117
11136
 
11118
11137
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11119
11138
 
11120
- 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); }; }
11121
-
11122
11139
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11123
11140
 
11124
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11125
-
11126
- 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; } }
11127
-
11128
11141
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11129
11142
 
11143
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11144
+
11130
11145
  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); }
11131
11146
 
11132
11147
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11137,48 +11152,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
11137
11152
  var SDK_GLOBAL = 'Wistia';
11138
11153
  var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
11139
11154
 
11140
- var Wistia = /*#__PURE__*/function (_Component) {
11155
+ var Wistia =
11156
+ /*#__PURE__*/
11157
+ function (_Component) {
11141
11158
  _inherits(Wistia, _Component);
11142
11159
 
11143
- var _super = _createSuper(Wistia);
11144
-
11145
11160
  function Wistia() {
11161
+ var _getPrototypeOf2;
11162
+
11146
11163
  var _this;
11147
11164
 
11148
11165
  _classCallCheck(this, Wistia);
11149
11166
 
11150
- for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
11151
- _args[_key] = arguments[_key];
11167
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
11168
+ args[_key] = arguments[_key];
11152
11169
  }
11153
11170
 
11154
- _this = _super.call.apply(_super, [this].concat(_args));
11171
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
11155
11172
 
11156
11173
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11157
11174
 
11158
- _defineProperty(_assertThisInitialized(_this), "onPlay", function () {
11159
- var _this$props;
11160
-
11161
- return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
11162
- });
11163
-
11164
- _defineProperty(_assertThisInitialized(_this), "onPause", function () {
11165
- var _this$props2;
11166
-
11167
- return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
11168
- });
11169
-
11170
- _defineProperty(_assertThisInitialized(_this), "onSeek", function () {
11171
- var _this$props3;
11172
-
11173
- return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
11174
- });
11175
-
11176
- _defineProperty(_assertThisInitialized(_this), "onEnded", function () {
11177
- var _this$props4;
11178
-
11179
- return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
11180
- });
11181
-
11182
11175
  _defineProperty(_assertThisInitialized(_this), "mute", function () {
11183
11176
  _this.callPlayer('mute');
11184
11177
  });
@@ -11200,13 +11193,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
11200
11193
  value: function load(url) {
11201
11194
  var _this2 = this;
11202
11195
 
11203
- var _this$props5 = this.props,
11204
- playing = _this$props5.playing,
11205
- muted = _this$props5.muted,
11206
- controls = _this$props5.controls,
11207
- _onReady = _this$props5.onReady,
11208
- config = _this$props5.config,
11209
- onError = _this$props5.onError;
11196
+ var _this$props = this.props,
11197
+ playing = _this$props.playing,
11198
+ muted = _this$props.muted,
11199
+ controls = _this$props.controls,
11200
+ _onReady = _this$props.onReady,
11201
+ onPlay = _this$props.onPlay,
11202
+ onPause = _this$props.onPause,
11203
+ onSeek = _this$props.onSeek,
11204
+ onEnded = _this$props.onEnded,
11205
+ config = _this$props.config,
11206
+ onError = _this$props.onError;
11210
11207
  (0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
11211
11208
  window._wq = window._wq || [];
11212
11209
 
@@ -11223,28 +11220,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
11223
11220
 
11224
11221
  _this2.unbind();
11225
11222
 
11226
- _this2.player.bind('play', _this2.onPlay);
11223
+ _this2.player.bind('play', onPlay);
11227
11224
 
11228
- _this2.player.bind('pause', _this2.onPause);
11225
+ _this2.player.bind('pause', onPause);
11229
11226
 
11230
- _this2.player.bind('seek', _this2.onSeek);
11227
+ _this2.player.bind('seek', onSeek);
11231
11228
 
11232
- _this2.player.bind('end', _this2.onEnded);
11229
+ _this2.player.bind('end', onEnded);
11233
11230
 
11234
11231
  _onReady();
11235
11232
  }
11236
11233
  });
11237
11234
  }, onError);
11238
11235
  }
11239
- }, {
11240
- key: "unbind",
11241
- value: function unbind() {
11242
- this.player.unbind('play', this.onPlay);
11243
- this.player.unbind('pause', this.onPause);
11244
- this.player.unbind('seek', this.onSeek);
11245
- this.player.unbind('end', this.onEnded);
11246
- } // Proxy methods to prevent listener leaks
11247
-
11248
11236
  }, {
11249
11237
  key: "play",
11250
11238
  value: function play() {
@@ -11255,6 +11243,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
11255
11243
  value: function pause() {
11256
11244
  this.callPlayer('pause');
11257
11245
  }
11246
+ }, {
11247
+ key: "unbind",
11248
+ value: function unbind() {
11249
+ var _this$props2 = this.props,
11250
+ onPlay = _this$props2.onPlay,
11251
+ onPause = _this$props2.onPause,
11252
+ onSeek = _this$props2.onSeek,
11253
+ onEnded = _this$props2.onEnded;
11254
+ this.player.unbind('play', onPlay);
11255
+ this.player.unbind('pause', onPause);
11256
+ this.player.unbind('seek', onSeek);
11257
+ this.player.unbind('end', onEnded);
11258
+ }
11258
11259
  }, {
11259
11260
  key: "stop",
11260
11261
  value: function stop() {
@@ -11300,7 +11301,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
11300
11301
  width: '100%',
11301
11302
  height: '100%'
11302
11303
  };
11303
- return /*#__PURE__*/_react["default"].createElement("div", {
11304
+ return _react["default"].createElement("div", {
11304
11305
  key: id,
11305
11306
  className: className,
11306
11307
  style: style
@@ -11360,16 +11361,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11360
11361
 
11361
11362
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11362
11363
 
11363
- 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); }; }
11364
-
11365
11364
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11366
11365
 
11367
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11368
-
11369
- 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; } }
11370
-
11371
11366
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11372
11367
 
11368
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11369
+
11373
11370
  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); }
11374
11371
 
11375
11372
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11382,12 +11379,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
11382
11379
  var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
11383
11380
  var PLAYER_ID_PREFIX = 'twitch-player-';
11384
11381
 
11385
- var Twitch = /*#__PURE__*/function (_Component) {
11382
+ var Twitch =
11383
+ /*#__PURE__*/
11384
+ function (_Component) {
11386
11385
  _inherits(Twitch, _Component);
11387
11386
 
11388
- var _super = _createSuper(Twitch);
11389
-
11390
11387
  function Twitch() {
11388
+ var _getPrototypeOf2;
11389
+
11391
11390
  var _this;
11392
11391
 
11393
11392
  _classCallCheck(this, Twitch);
@@ -11396,7 +11395,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
11396
11395
  args[_key] = arguments[_key];
11397
11396
  }
11398
11397
 
11399
- _this = _super.call.apply(_super, [this].concat(args));
11398
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
11400
11399
 
11401
11400
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11402
11401
 
@@ -11517,7 +11516,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
11517
11516
  width: '100%',
11518
11517
  height: '100%'
11519
11518
  };
11520
- return /*#__PURE__*/_react["default"].createElement("div", {
11519
+ return _react["default"].createElement("div", {
11521
11520
  style: style,
11522
11521
  id: this.playerID
11523
11522
  });
@@ -11570,15 +11569,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
11570
11569
 
11571
11570
  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; }
11572
11571
 
11573
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
11572
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
11574
11573
 
11575
- 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."); }
11574
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
11576
11575
 
11577
- 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); }
11578
-
11579
- 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; }
11580
-
11581
- 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; }
11576
+ 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; }
11582
11577
 
11583
11578
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11584
11579
 
@@ -11588,16 +11583,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11588
11583
 
11589
11584
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11590
11585
 
11591
- 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); }; }
11592
-
11593
11586
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11594
11587
 
11595
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11596
-
11597
- 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; } }
11598
-
11599
11588
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11600
11589
 
11590
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11591
+
11601
11592
  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); }
11602
11593
 
11603
11594
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11609,12 +11600,14 @@ var SDK_GLOBAL = 'DM';
11609
11600
  var SDK_GLOBAL_READY = 'dmAsyncInit';
11610
11601
  var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
11611
11602
 
11612
- var DailyMotion = /*#__PURE__*/function (_Component) {
11603
+ var DailyMotion =
11604
+ /*#__PURE__*/
11605
+ function (_Component) {
11613
11606
  _inherits(DailyMotion, _Component);
11614
11607
 
11615
- var _super = _createSuper(DailyMotion);
11616
-
11617
11608
  function DailyMotion() {
11609
+ var _getPrototypeOf2;
11610
+
11618
11611
  var _this;
11619
11612
 
11620
11613
  _classCallCheck(this, DailyMotion);
@@ -11623,7 +11616,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
11623
11616
  args[_key] = arguments[_key];
11624
11617
  }
11625
11618
 
11626
- _this = _super.call.apply(_super, [this].concat(args));
11619
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
11627
11620
 
11628
11621
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11629
11622
 
@@ -11752,9 +11745,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
11752
11745
  height: '100%',
11753
11746
  display: display
11754
11747
  };
11755
- return /*#__PURE__*/_react["default"].createElement("div", {
11748
+ return _react["default"].createElement("div", {
11756
11749
  style: style
11757
- }, /*#__PURE__*/_react["default"].createElement("div", {
11750
+ }, _react["default"].createElement("div", {
11758
11751
  ref: this.ref
11759
11752
  }));
11760
11753
  }
@@ -11812,16 +11805,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11812
11805
 
11813
11806
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11814
11807
 
11815
- 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); }; }
11816
-
11817
11808
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11818
11809
 
11819
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11820
-
11821
- 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; } }
11822
-
11823
11810
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11824
11811
 
11812
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11813
+
11825
11814
  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); }
11826
11815
 
11827
11816
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11832,12 +11821,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
11832
11821
  var SDK_GLOBAL = 'Mixcloud';
11833
11822
  var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
11834
11823
 
11835
- var Mixcloud = /*#__PURE__*/function (_Component) {
11824
+ var Mixcloud =
11825
+ /*#__PURE__*/
11826
+ function (_Component) {
11836
11827
  _inherits(Mixcloud, _Component);
11837
11828
 
11838
- var _super = _createSuper(Mixcloud);
11839
-
11840
11829
  function Mixcloud() {
11830
+ var _getPrototypeOf2;
11831
+
11841
11832
  var _this;
11842
11833
 
11843
11834
  _classCallCheck(this, Mixcloud);
@@ -11846,7 +11837,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
11846
11837
  args[_key] = arguments[_key];
11847
11838
  }
11848
11839
 
11849
- _this = _super.call.apply(_super, [this].concat(args));
11840
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
11850
11841
 
11851
11842
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11852
11843
 
@@ -11949,7 +11940,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
11949
11940
  })); // We have to give the iframe a key here to prevent a
11950
11941
  // weird dialog appearing when loading a new track
11951
11942
 
11952
- return /*#__PURE__*/_react["default"].createElement("iframe", {
11943
+ return _react["default"].createElement("iframe", {
11953
11944
  key: id,
11954
11945
  ref: this.ref,
11955
11946
  style: style,
@@ -12009,33 +12000,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
12009
12000
 
12010
12001
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
12011
12002
 
12012
- 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); }; }
12013
-
12014
12003
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12015
12004
 
12016
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12017
-
12018
- 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; } }
12019
-
12020
12005
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12021
12006
 
12007
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12008
+
12022
12009
  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); }
12023
12010
 
12024
12011
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
12025
12012
 
12026
12013
  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; }
12027
12014
 
12028
- 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; } } }; }
12029
-
12030
- 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); }
12031
-
12032
- 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; }
12033
-
12034
12015
  var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
12035
12016
  var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
12036
12017
  var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
12037
12018
  var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
12038
- var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
12019
+ var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
12039
12020
  var HLS_GLOBAL = 'Hls';
12040
12021
  var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
12041
12022
  var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
@@ -12044,11 +12025,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
12044
12025
 
12045
12026
  function canPlay(url) {
12046
12027
  if (url instanceof Array) {
12047
- var _iterator = _createForOfIteratorHelper(url),
12048
- _step;
12028
+ var _iteratorNormalCompletion = true;
12029
+ var _didIteratorError = false;
12030
+ var _iteratorError = undefined;
12049
12031
 
12050
12032
  try {
12051
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
12033
+ for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
12052
12034
  var item = _step.value;
12053
12035
 
12054
12036
  if (typeof item === 'string' && canPlay(item)) {
@@ -12060,9 +12042,18 @@ function canPlay(url) {
12060
12042
  }
12061
12043
  }
12062
12044
  } catch (err) {
12063
- _iterator.e(err);
12045
+ _didIteratorError = true;
12046
+ _iteratorError = err;
12064
12047
  } finally {
12065
- _iterator.f();
12048
+ try {
12049
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
12050
+ _iterator["return"]();
12051
+ }
12052
+ } finally {
12053
+ if (_didIteratorError) {
12054
+ throw _iteratorError;
12055
+ }
12056
+ }
12066
12057
  }
12067
12058
 
12068
12059
  return false;
@@ -12086,12 +12077,14 @@ function canEnablePIP(url) {
12086
12077
  return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
12087
12078
  }
12088
12079
 
12089
- var FilePlayer = /*#__PURE__*/function (_Component) {
12080
+ var FilePlayer =
12081
+ /*#__PURE__*/
12082
+ function (_Component) {
12090
12083
  _inherits(FilePlayer, _Component);
12091
12084
 
12092
- var _super = _createSuper(FilePlayer);
12093
-
12094
12085
  function FilePlayer() {
12086
+ var _getPrototypeOf2;
12087
+
12095
12088
  var _this;
12096
12089
 
12097
12090
  _classCallCheck(this, FilePlayer);
@@ -12100,7 +12093,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
12100
12093
  _args[_key] = arguments[_key];
12101
12094
  }
12102
12095
 
12103
- _this = _super.call.apply(_super, [this].concat(_args));
12096
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
12104
12097
 
12105
12098
  _defineProperty(_assertThisInitialized(_this), "onReady", function () {
12106
12099
  var _this$props;
@@ -12187,19 +12180,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
12187
12180
 
12188
12181
  _defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
12189
12182
  if (typeof source === 'string') {
12190
- return /*#__PURE__*/_react["default"].createElement("source", {
12183
+ return _react["default"].createElement("source", {
12191
12184
  key: index,
12192
12185
  src: source
12193
12186
  });
12194
12187
  }
12195
12188
 
12196
- return /*#__PURE__*/_react["default"].createElement("source", _extends({
12189
+ return _react["default"].createElement("source", _extends({
12197
12190
  key: index
12198
12191
  }, source));
12199
12192
  });
12200
12193
 
12201
12194
  _defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
12202
- return /*#__PURE__*/_react["default"].createElement("track", _extends({
12195
+ return _react["default"].createElement("track", _extends({
12203
12196
  key: index
12204
12197
  }, track));
12205
12198
  });
@@ -12237,10 +12230,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
12237
12230
  key: "componentWillUnmount",
12238
12231
  value: function componentWillUnmount() {
12239
12232
  this.removeListeners(this.player);
12240
-
12241
- if (this.hls) {
12242
- this.hls.destroy();
12243
- }
12244
12233
  }
12245
12234
  }, {
12246
12235
  key: "addListeners",
@@ -12371,6 +12360,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
12371
12360
  value: function stop() {
12372
12361
  this.player.removeAttribute('src');
12373
12362
 
12363
+ if (this.hls) {
12364
+ this.hls.destroy();
12365
+ }
12366
+
12374
12367
  if (this.dash) {
12375
12368
  this.dash.reset();
12376
12369
  }
@@ -12482,7 +12475,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
12482
12475
  width: width === 'auto' ? width : '100%',
12483
12476
  height: height === 'auto' ? height : '100%'
12484
12477
  };
12485
- return /*#__PURE__*/_react["default"].createElement(Element, _extends({
12478
+ return _react["default"].createElement(Element, _extends({
12486
12479
  ref: this.ref,
12487
12480
  src: this.getSource(url),
12488
12481
  style: style,
@@ -12572,16 +12565,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
12572
12565
 
12573
12566
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
12574
12567
 
12575
- 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); }; }
12576
-
12577
12568
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12578
12569
 
12579
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12580
-
12581
- 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; } }
12582
-
12583
12570
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12584
12571
 
12572
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12573
+
12585
12574
  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); }
12586
12575
 
12587
12576
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -12590,12 +12579,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12590
12579
 
12591
12580
  var ICON_SIZE = '64px';
12592
12581
 
12593
- var Preview = /*#__PURE__*/function (_Component) {
12582
+ var Preview =
12583
+ /*#__PURE__*/
12584
+ function (_Component) {
12594
12585
  _inherits(Preview, _Component);
12595
12586
 
12596
- var _super = _createSuper(Preview);
12597
-
12598
12587
  function Preview() {
12588
+ var _getPrototypeOf2;
12589
+
12599
12590
  var _this;
12600
12591
 
12601
12592
  _classCallCheck(this, Preview);
@@ -12604,7 +12595,7 @@ var Preview = /*#__PURE__*/function (_Component) {
12604
12595
  args[_key] = arguments[_key];
12605
12596
  }
12606
12597
 
12607
- _this = _super.call.apply(_super, [this].concat(args));
12598
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
12608
12599
 
12609
12600
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
12610
12601
 
@@ -12702,15 +12693,15 @@ var Preview = /*#__PURE__*/function (_Component) {
12702
12693
  }
12703
12694
  };
12704
12695
 
12705
- var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
12696
+ var defaultPlayIcon = _react["default"].createElement("div", {
12706
12697
  style: styles.shadow,
12707
12698
  className: "react-player__shadow"
12708
- }, /*#__PURE__*/_react["default"].createElement("div", {
12699
+ }, _react["default"].createElement("div", {
12709
12700
  style: styles.playIcon,
12710
12701
  className: "react-player__play-icon"
12711
12702
  }));
12712
12703
 
12713
- return /*#__PURE__*/_react["default"].createElement("div", {
12704
+ return _react["default"].createElement("div", {
12714
12705
  style: styles.preview,
12715
12706
  className: "react-player__preview",
12716
12707
  onClick: onClick
@@ -12747,12 +12738,6 @@ var _Player = _interopRequireDefault(Player_1);
12747
12738
 
12748
12739
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12749
12740
 
12750
- 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; } } }; }
12751
-
12752
- 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); }
12753
-
12754
- 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; }
12755
-
12756
12741
  var PRELOAD_PLAYERS = [{
12757
12742
  Player: YouTube_1.YouTube,
12758
12743
  configKey: 'youtube',
@@ -12773,16 +12758,16 @@ var PRELOAD_PLAYERS = [{
12773
12758
 
12774
12759
  function renderPreloadPlayers(url, controls, config) {
12775
12760
  var players = [];
12776
-
12777
- var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
12778
- _step;
12761
+ var _iteratorNormalCompletion = true;
12762
+ var _didIteratorError = false;
12763
+ var _iteratorError = undefined;
12779
12764
 
12780
12765
  try {
12781
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
12766
+ for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
12782
12767
  var player = _step.value;
12783
12768
 
12784
12769
  if (!player.Player.canPlay(url) && config[player.configKey].preload) {
12785
- players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
12770
+ players.push(_react["default"].createElement(_Player["default"], {
12786
12771
  key: player.Player.displayName,
12787
12772
  activePlayer: player.Player,
12788
12773
  url: player.url,
@@ -12794,9 +12779,18 @@ function renderPreloadPlayers(url, controls, config) {
12794
12779
  }
12795
12780
  }
12796
12781
  } catch (err) {
12797
- _iterator.e(err);
12782
+ _didIteratorError = true;
12783
+ _iteratorError = err;
12798
12784
  } finally {
12799
- _iterator.f();
12785
+ try {
12786
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
12787
+ _iterator["return"]();
12788
+ }
12789
+ } finally {
12790
+ if (_didIteratorError) {
12791
+ throw _iteratorError;
12792
+ }
12793
+ }
12800
12794
  }
12801
12795
 
12802
12796
  return players;
@@ -12920,17 +12914,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
12920
12914
 
12921
12915
  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); }
12922
12916
 
12923
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
12917
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
12924
12918
 
12925
- 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."); }
12919
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
12926
12920
 
12927
- 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); }
12921
+ function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
12928
12922
 
12929
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
12930
-
12931
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
12932
-
12933
- 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; }
12923
+ 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; } }
12934
12924
 
12935
12925
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
12936
12926
 
@@ -12938,16 +12928,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
12938
12928
 
12939
12929
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
12940
12930
 
12941
- 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); }; }
12942
-
12943
12931
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12944
12932
 
12945
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12946
-
12947
- 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; } }
12948
-
12949
12933
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12950
12934
 
12935
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12936
+
12951
12937
  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); }
12952
12938
 
12953
12939
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -12957,12 +12943,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12957
12943
  var SUPPORTED_PROPS = Object.keys(props.propTypes);
12958
12944
  var customPlayers = [];
12959
12945
 
12960
- var ReactPlayer = /*#__PURE__*/function (_Component) {
12946
+ var ReactPlayer =
12947
+ /*#__PURE__*/
12948
+ function (_Component) {
12961
12949
  _inherits(ReactPlayer, _Component);
12962
12950
 
12963
- var _super = _createSuper(ReactPlayer);
12964
-
12965
12951
  function ReactPlayer() {
12952
+ var _getPrototypeOf2;
12953
+
12966
12954
  var _this;
12967
12955
 
12968
12956
  _classCallCheck(this, ReactPlayer);
@@ -12971,7 +12959,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
12971
12959
  args[_key] = arguments[_key];
12972
12960
  }
12973
12961
 
12974
- _this = _super.call.apply(_super, [this].concat(args));
12962
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
12975
12963
 
12976
12964
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
12977
12965
 
@@ -13082,7 +13070,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
13082
13070
  key: "renderActivePlayer",
13083
13071
  value: function renderActivePlayer(url, activePlayer) {
13084
13072
  if (!url) return null;
13085
- return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
13073
+ return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
13086
13074
  key: activePlayer.displayName,
13087
13075
  ref: this.activePlayerRef,
13088
13076
  config: this.config,
@@ -13119,14 +13107,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
13119
13107
  var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
13120
13108
  var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
13121
13109
 
13122
- var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
13110
+ var preview = _react["default"].createElement(_Preview["default"], {
13123
13111
  url: url,
13124
13112
  light: light,
13125
13113
  playIcon: playIcon,
13126
13114
  onClick: this.handleClickPreview
13127
13115
  });
13128
13116
 
13129
- return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
13117
+ return _react["default"].createElement(Wrapper, _extends({
13130
13118
  ref: this.wrapperRef,
13131
13119
  style: _objectSpread({}, style, {
13132
13120
  width: width,
@@ -14474,16 +14462,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
14474
14462
  _ref$className = _ref.className,
14475
14463
  className = _ref$className === undefined ? '' : _ref$className;
14476
14464
 
14477
- /*
14478
- Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
14479
- example:
14480
- <RelatedTopicDropdown
14481
- page='/clinical'
14482
- exclude="clinical"
14483
- className='mb-3'
14484
- parentTaxonomy={props.parentTaxonomy}
14485
- subTaxonomies={props.subTaxonomies}
14486
- />
14465
+ /*
14466
+ Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
14467
+ example:
14468
+ <RelatedTopicDropdown
14469
+ page='/clinical'
14470
+ exclude="clinical"
14471
+ className='mb-3'
14472
+ parentTaxonomy={props.parentTaxonomy}
14473
+ subTaxonomies={props.subTaxonomies}
14474
+ />
14487
14475
  */
14488
14476
  if (subTaxonomies.length === 0 && parentTaxonomy) {
14489
14477
  if (parentTaxonomy.identifier == exclude) {
@@ -14521,19 +14509,19 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
14521
14509
  }
14522
14510
  };
14523
14511
 
14524
- /*
14525
- This dropdown is used inside Article body to display related content placement pages
14526
- sample usage: <ArticleDetailDropdown contentPlacement={content_placement} exclude={['News',]} />
14527
-
14528
- in article query, need to add '...' to content_placement to retreive additional info needed
14529
-
14530
- 'content_placement': taxonomyMapping[]-> {
14531
- ...,
14532
- 'ancestor': parent->parent->identifier,
14533
- 'parent': parent->identifier,
14534
- 'path': identifier
14535
- }
14536
-
14512
+ /*
14513
+ This dropdown is used inside Article body to display related content placement pages
14514
+ sample usage: <ArticleDetailDropdown contentPlacement={content_placement} exclude={['News',]} />
14515
+
14516
+ in article query, need to add '...' to content_placement to retreive additional info needed
14517
+
14518
+ 'content_placement': taxonomyMapping[]-> {
14519
+ ...,
14520
+ 'ancestor': parent->parent->identifier,
14521
+ 'parent': parent->identifier,
14522
+ 'path': identifier
14523
+ }
14524
+
14537
14525
  */
14538
14526
 
14539
14527
  var ArticleDetailDropdown = function ArticleDetailDropdown(props) {
@@ -15204,34 +15192,34 @@ var YahooHero = function YahooHero(props) {
15204
15192
  );
15205
15193
  };
15206
15194
 
15207
- /*
15208
- Sample query
15209
- let references = ''
15210
- if(article.taxonomyMapping.length > 0){
15211
- article.taxonomyMapping.forEach((ref, index) => {
15212
- references = references + `references('${ref._ref}') `
15213
- if(index+1 !== article.taxonomyMapping.length){
15214
- references = references + ` && `
15215
- }
15216
- })
15217
- }
15218
-
15219
- 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] {
15220
- ...,
15221
- title,
15222
- summary,
15223
- thumbnail,
15224
- url,
15225
- published,
15226
- authorMapping[]->,
15227
- contentCategory->
15228
- }`
15229
- const relatedArticles = await client.fetch(relatedArticlesQuery)
15230
-
15231
- Sample usage
15232
- <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
15233
-
15234
-
15195
+ /*
15196
+ Sample query
15197
+ let references = ''
15198
+ if(article.taxonomyMapping.length > 0){
15199
+ article.taxonomyMapping.forEach((ref, index) => {
15200
+ references = references + `references('${ref._ref}') `
15201
+ if(index+1 !== article.taxonomyMapping.length){
15202
+ references = references + ` && `
15203
+ }
15204
+ })
15205
+ }
15206
+
15207
+ 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] {
15208
+ ...,
15209
+ title,
15210
+ summary,
15211
+ thumbnail,
15212
+ url,
15213
+ published,
15214
+ authorMapping[]->,
15215
+ contentCategory->
15216
+ }`
15217
+ const relatedArticles = await client.fetch(relatedArticlesQuery)
15218
+
15219
+ Sample usage
15220
+ <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
15221
+
15222
+
15235
15223
  */
15236
15224
  var RelatedContent = function RelatedContent(props) {
15237
15225
  var client = props.client,
@@ -15298,21 +15286,21 @@ var RelatedContent = function RelatedContent(props) {
15298
15286
  );
15299
15287
  };
15300
15288
 
15301
- /*
15302
- Example usage - targetedonc.com/latest-conference
15303
- 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] {
15304
- ...,
15305
- title,
15306
- summary,
15307
- thumbnail,
15308
- url,
15309
- published,
15310
- documentGroup->,
15311
- contentCategory->,
15312
- 'pageNumber': ${currentPage}
15313
- }`
15314
-
15315
- const posts = await client.fetch(query, params)
15289
+ /*
15290
+ Example usage - targetedonc.com/latest-conference
15291
+ 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] {
15292
+ ...,
15293
+ title,
15294
+ summary,
15295
+ thumbnail,
15296
+ url,
15297
+ published,
15298
+ documentGroup->,
15299
+ contentCategory->,
15300
+ 'pageNumber': ${currentPage}
15301
+ }`
15302
+
15303
+ const posts = await client.fetch(query, params)
15316
15304
  */
15317
15305
 
15318
15306
  var ConferenceArticleCard = function ConferenceArticleCard(props) {