@mjhls/mjh-framework 1.0.604-hamMagazine-v8 → 1.0.604

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 (113) hide show
  1. package/README.md +172 -172
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/ADFloatingFooter.js +3 -3
  4. package/dist/cjs/AccordionPanel.js +1 -1
  5. package/dist/cjs/ArticleQueue.js +3 -3
  6. package/dist/cjs/Auth.js +5 -5
  7. package/dist/cjs/{BlockContent-c2168db0.js → BlockContent-77f81ffc.js} +1 -1
  8. package/dist/cjs/ConferenceArticleCard.js +16 -16
  9. package/dist/cjs/DeckContent.js +9 -9
  10. package/dist/cjs/DeckQueue.js +1 -1
  11. package/dist/cjs/EventsDeck.js +17 -17
  12. package/dist/cjs/ExternalResources.js +3 -3
  13. package/dist/cjs/Feature.js +1 -1
  14. package/dist/cjs/ForbesHero.js +1 -1
  15. package/dist/cjs/GridContent.js +2 -2
  16. package/dist/cjs/GridHero.js +1 -1
  17. package/dist/cjs/GroupDeck.js +5 -5
  18. package/dist/cjs/HamMagazine.js +35 -221
  19. package/dist/cjs/Hero.js +1 -1
  20. package/dist/cjs/HorizontalHero.js +1 -1
  21. package/dist/cjs/IssueContentDeck.js +1 -1
  22. package/dist/cjs/IssueDeck.js +1 -1
  23. package/dist/cjs/IssueLanding.js +31 -31
  24. package/dist/cjs/KMTracker.js +15 -15
  25. package/dist/cjs/MasterDeck.js +10 -10
  26. package/dist/cjs/NavMagazine.js +14 -13
  27. package/dist/cjs/NavNative.js +12 -11
  28. package/dist/cjs/OncliveHero.js +1 -1
  29. package/dist/cjs/OncliveLargeHero.js +1 -1
  30. package/dist/cjs/PartnerDetailListing.js +6 -6
  31. package/dist/cjs/PublicationDeck.js +2 -2
  32. package/dist/cjs/PublicationLanding.js +33 -33
  33. package/dist/cjs/QueueDeckExpanded.js +2 -2
  34. package/dist/cjs/RecentNews.js +1 -1
  35. package/dist/cjs/RelatedContent.js +29 -29
  36. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  37. package/dist/cjs/SideFooter.js +2 -2
  38. package/dist/cjs/{index.esm-d1259b34.js → SocialNavFooter-9a07520f.js} +0 -8
  39. package/dist/cjs/TaxonomyCard.js +2 -2
  40. package/dist/cjs/TemplateNormal.js +3 -2
  41. package/dist/cjs/ThumbnailCard.js +1 -1
  42. package/dist/cjs/Ustream.js +1 -1
  43. package/dist/cjs/VerticalHero.js +1 -1
  44. package/dist/cjs/VideoSeriesListing.js +2 -2
  45. package/dist/cjs/View.js +29 -29
  46. package/dist/cjs/YahooHero.js +1 -1
  47. package/dist/cjs/YoutubeGroup.js +5 -5
  48. package/dist/cjs/getSerializers.js +3 -3
  49. package/dist/cjs/{getTargeting-5a0b8ee4.js → getTargeting-5db63100.js} +11 -11
  50. package/dist/cjs/getTargeting.js +1 -1
  51. package/dist/cjs/{index-39beccb3.js → index-be0c82be.js} +1 -2
  52. package/dist/cjs/{index-af999dce.js → index-f745a50a.js} +436 -448
  53. package/dist/cjs/index.esm-0e5c6a9e.js +11 -0
  54. package/dist/cjs/{index.esm-876ca9ff.js → index.esm-fbd1f7e9.js} +5 -0
  55. package/dist/cjs/index.js +13 -7
  56. package/dist/cjs/{lodash-7fd85bcf.js → lodash-fc2922d0.js} +22 -71
  57. package/dist/cjs/urlFor.js +2 -2
  58. package/dist/esm/ADFloatingFooter.js +3 -3
  59. package/dist/esm/AccordionPanel.js +1 -1
  60. package/dist/esm/ArticleQueue.js +3 -3
  61. package/dist/esm/Auth.js +2 -2
  62. package/dist/esm/{BlockContent-c409aca5.js → BlockContent-e9b4ddcf.js} +1 -1
  63. package/dist/esm/ConferenceArticleCard.js +16 -16
  64. package/dist/esm/DeckContent.js +9 -9
  65. package/dist/esm/DeckQueue.js +1 -1
  66. package/dist/esm/EventsDeck.js +17 -17
  67. package/dist/esm/ExternalResources.js +3 -3
  68. package/dist/esm/Feature.js +1 -1
  69. package/dist/esm/ForbesHero.js +1 -1
  70. package/dist/esm/GridContent.js +2 -2
  71. package/dist/esm/GridHero.js +1 -1
  72. package/dist/esm/GroupDeck.js +5 -5
  73. package/dist/esm/HamMagazine.js +34 -220
  74. package/dist/esm/Hero.js +1 -1
  75. package/dist/esm/HorizontalHero.js +1 -1
  76. package/dist/esm/IssueContentDeck.js +1 -1
  77. package/dist/esm/IssueDeck.js +1 -1
  78. package/dist/esm/IssueLanding.js +31 -31
  79. package/dist/esm/KMTracker.js +15 -15
  80. package/dist/esm/MasterDeck.js +10 -10
  81. package/dist/esm/NavMagazine.js +13 -12
  82. package/dist/esm/NavNative.js +11 -10
  83. package/dist/esm/OncliveHero.js +1 -1
  84. package/dist/esm/OncliveLargeHero.js +1 -1
  85. package/dist/esm/PartnerDetailListing.js +4 -4
  86. package/dist/esm/PublicationDeck.js +2 -2
  87. package/dist/esm/PublicationLanding.js +33 -33
  88. package/dist/esm/QueueDeckExpanded.js +2 -2
  89. package/dist/esm/RecentNews.js +1 -1
  90. package/dist/esm/RelatedContent.js +29 -29
  91. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  92. package/dist/esm/SideFooter.js +2 -2
  93. package/dist/esm/{index.esm-73e847d2.js → SocialNavFooter-4fb16720.js} +1 -8
  94. package/dist/esm/TaxonomyCard.js +2 -2
  95. package/dist/esm/TemplateNormal.js +3 -2
  96. package/dist/esm/ThumbnailCard.js +1 -1
  97. package/dist/esm/Ustream.js +1 -1
  98. package/dist/esm/VerticalHero.js +1 -1
  99. package/dist/esm/VideoSeriesListing.js +2 -2
  100. package/dist/esm/View.js +5 -5
  101. package/dist/esm/YahooHero.js +1 -1
  102. package/dist/esm/YoutubeGroup.js +5 -5
  103. package/dist/esm/getSerializers.js +3 -3
  104. package/dist/esm/{getTargeting-962c9cf6.js → getTargeting-36bcd238.js} +9 -9
  105. package/dist/esm/getTargeting.js +1 -1
  106. package/dist/esm/{index-1c791baf.js → index-599efdf0.js} +436 -448
  107. package/dist/esm/{index-3849e3fe.js → index-73819142.js} +1 -2
  108. package/dist/esm/index.esm-16536e81.js +9 -0
  109. package/dist/esm/{index.esm-85cb09e6.js → index.esm-4b1d94b7.js} +5 -1
  110. package/dist/esm/index.js +12 -7
  111. package/dist/esm/{lodash-ec8c6b48.js → lodash-17fdfebb.js} +22 -71
  112. package/dist/esm/urlFor.js +2 -2
  113. package/package.json +107 -107
@@ -4,7 +4,7 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
4
4
 
5
5
  var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
6
6
  var toConsumableArray = require('./toConsumableArray-bee80df5.js');
7
- var _extends = require('./extends-60837c34.js');
7
+ var _extends$1 = require('./extends-60837c34.js');
8
8
  var inherits = require('./inherits-14962339.js');
9
9
  var React = require('react');
10
10
  var React__default = _interopDefault(React);
@@ -15,14 +15,14 @@ var Col = _interopDefault(require('react-bootstrap/Col'));
15
15
  var moment = require('./moment-575fe24c.js');
16
16
  var Router = require('next/router');
17
17
  var Router__default = _interopDefault(Router);
18
- var index$1 = require('./index-39beccb3.js');
18
+ var index$1 = require('./index-be0c82be.js');
19
19
  var index$2 = require('./index-fa0fb52c.js');
20
20
  var main = require('./main-88348b15.js');
21
21
  var entities = require('./entities-310b46ee.js');
22
22
  var slicedToArray = require('./slicedToArray-8063ee51.js');
23
23
  var Segment = require('./beam-d22818d3.js');
24
24
  var AdSlot = require('./AdSlot.js');
25
- var BlockContent = require('./BlockContent-c2168db0.js');
25
+ var BlockContent = require('./BlockContent-77f81ffc.js');
26
26
  var smoothscroll = require('./smoothscroll-95231a70.js');
27
27
  var GroupDeck = require('./GroupDeck.js');
28
28
  var reactBootstrap = require('react-bootstrap');
@@ -94,18 +94,21 @@ var Slideshow = function Slideshow(_ref) {
94
94
  );
95
95
  };
96
96
 
97
- // do not edit .js files directly - edit src/index.jst
98
-
99
-
97
+ var isArray = Array.isArray;
98
+ var keyList = Object.keys;
99
+ var hasProp = Object.prototype.hasOwnProperty;
100
100
 
101
101
  var fastDeepEqual = function equal(a, b) {
102
102
  if (a === b) return true;
103
103
 
104
104
  if (a && b && typeof a == 'object' && typeof b == 'object') {
105
- if (a.constructor !== b.constructor) return false;
105
+ var arrA = isArray(a)
106
+ , arrB = isArray(b)
107
+ , i
108
+ , length
109
+ , key;
106
110
 
107
- var length, i, keys;
108
- if (Array.isArray(a)) {
111
+ if (arrA && arrB) {
109
112
  length = a.length;
110
113
  if (length != b.length) return false;
111
114
  for (i = length; i-- !== 0;)
@@ -113,29 +116,35 @@ var fastDeepEqual = function equal(a, b) {
113
116
  return true;
114
117
  }
115
118
 
119
+ if (arrA != arrB) return false;
116
120
 
121
+ var dateA = a instanceof Date
122
+ , dateB = b instanceof Date;
123
+ if (dateA != dateB) return false;
124
+ if (dateA && dateB) return a.getTime() == b.getTime();
117
125
 
118
- if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
119
- if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
120
- if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
126
+ var regexpA = a instanceof RegExp
127
+ , regexpB = b instanceof RegExp;
128
+ if (regexpA != regexpB) return false;
129
+ if (regexpA && regexpB) return a.toString() == b.toString();
121
130
 
122
- keys = Object.keys(a);
131
+ var keys = keyList(a);
123
132
  length = keys.length;
124
- if (length !== Object.keys(b).length) return false;
133
+
134
+ if (length !== keyList(b).length)
135
+ return false;
125
136
 
126
137
  for (i = length; i-- !== 0;)
127
- if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
138
+ if (!hasProp.call(b, keys[i])) return false;
128
139
 
129
140
  for (i = length; i-- !== 0;) {
130
- var key = keys[i];
131
-
141
+ key = keys[i];
132
142
  if (!equal(a[key], b[key])) return false;
133
143
  }
134
144
 
135
145
  return true;
136
146
  }
137
147
 
138
- // true if both NaN, false otherwise
139
148
  return a!==a && b!==b;
140
149
  };
141
150
 
@@ -1558,235 +1567,199 @@ module.exports = exports['default'];
1558
1567
 
1559
1568
  var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
1560
1569
 
1561
- 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); }
1562
-
1563
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1564
-
1565
- 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); } }
1566
-
1567
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
1570
+ 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; }; }();
1568
1571
 
1569
- 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); }; }
1572
+ 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; };
1570
1573
 
1571
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
1572
-
1573
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
1574
-
1575
- 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; } }
1576
-
1577
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
1578
-
1579
- 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); }
1580
-
1581
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
1574
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1582
1575
 
1583
- 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; }
1576
+ 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; }
1584
1577
 
1585
- 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; }
1578
+ 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; }
1586
1579
 
1587
- 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; }
1588
- /**
1589
- * Check whether a `props` change should result in the video being updated.
1590
- *
1591
- * @param {Object} prevProps
1592
- * @param {Object} props
1580
+ /**
1581
+ * Check whether a `props` change should result in the video being updated.
1582
+ *
1583
+ * @param {Object} prevProps
1584
+ * @param {Object} props
1593
1585
  */
1594
-
1595
1586
  function shouldUpdateVideo(prevProps, props) {
1596
1587
  // A changing video should always trigger an update
1597
1588
  if (prevProps.videoId !== props.videoId) {
1598
1589
  return true;
1599
- } // Otherwise, a change in the start/end time playerVars also requires a player
1600
- // update.
1601
-
1590
+ }
1602
1591
 
1592
+ // Otherwise, a change in the start/end time playerVars also requires a player
1593
+ // update.
1603
1594
  var prevVars = prevProps.opts.playerVars || {};
1604
1595
  var vars = props.opts.playerVars || {};
1596
+
1605
1597
  return prevVars.start !== vars.start || prevVars.end !== vars.end;
1606
1598
  }
1607
- /**
1608
- * Neutralize API options that only require a video update, leaving only options
1609
- * that require a player reset. The results can then be compared to see if a
1610
- * player reset is necessary.
1611
- *
1612
- * @param {Object} opts
1613
- */
1614
-
1615
1599
 
1600
+ /**
1601
+ * Neutralise API options that only require a video update, leaving only options
1602
+ * that require a player reset. The results can then be compared to see if a
1603
+ * player reset is necessary.
1604
+ *
1605
+ * @param {Object} opts
1606
+ */
1616
1607
  function filterResetOptions(opts) {
1617
- return _objectSpread({}, opts, {
1618
- playerVars: _objectSpread({}, opts.playerVars, {
1608
+ return _extends({}, opts, {
1609
+ playerVars: _extends({}, opts.playerVars, {
1619
1610
  autoplay: 0,
1620
1611
  start: 0,
1621
1612
  end: 0
1622
1613
  })
1623
1614
  });
1624
1615
  }
1625
- /**
1626
- * Check whether a `props` change should result in the player being reset.
1627
- * The player is reset when the `props.opts` change, except if the only change
1628
- * is in the `start` and `end` playerVars, because a video update can deal with
1629
- * those.
1630
- *
1631
- * @param {Object} prevProps
1632
- * @param {Object} props
1633
- */
1634
-
1635
1616
 
1617
+ /**
1618
+ * Check whether a `props` change should result in the player being reset.
1619
+ * The player is reset when the `props.opts` change, except if the only change
1620
+ * is in the `start` and `end` playerVars, because a video update can deal with
1621
+ * those.
1622
+ *
1623
+ * @param {Object} prevProps
1624
+ * @param {Object} props
1625
+ */
1636
1626
  function shouldResetPlayer(prevProps, props) {
1637
1627
  return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
1638
1628
  }
1639
- /**
1640
- * Check whether a props change should result in an id or className update.
1641
- *
1642
- * @param {Object} prevProps
1643
- * @param {Object} props
1644
- */
1645
-
1646
1629
 
1630
+ /**
1631
+ * Check whether a props change should result in an id or className update.
1632
+ *
1633
+ * @param {Object} prevProps
1634
+ * @param {Object} props
1635
+ */
1647
1636
  function shouldUpdatePlayer(prevProps, props) {
1648
1637
  return prevProps.id !== props.id || prevProps.className !== props.className;
1649
1638
  }
1650
1639
 
1651
- var YouTube = /*#__PURE__*/function (_React$Component) {
1640
+ var YouTube = function (_React$Component) {
1652
1641
  _inherits(YouTube, _React$Component);
1653
1642
 
1654
- var _super = _createSuper(YouTube);
1655
-
1656
- /**
1657
- * Expose PlayerState constants for convenience. These constants can also be
1658
- * accessed through the global YT object after the YouTube IFrame API is instantiated.
1659
- * https://developers.google.com/youtube/iframe_api_reference#onStateChange
1660
- */
1661
1643
  function YouTube(props) {
1662
- var _this;
1663
-
1664
1644
  _classCallCheck(this, YouTube);
1665
1645
 
1666
- _this = _super.call(this, props);
1646
+ var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
1667
1647
 
1668
- _defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
1648
+ _this.onPlayerReady = function (event) {
1669
1649
  return _this.props.onReady(event);
1670
- });
1650
+ };
1671
1651
 
1672
- _defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
1652
+ _this.onPlayerError = function (event) {
1673
1653
  return _this.props.onError(event);
1674
- });
1654
+ };
1675
1655
 
1676
- _defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
1656
+ _this.onPlayerStateChange = function (event) {
1677
1657
  _this.props.onStateChange(event);
1678
-
1679
1658
  switch (event.data) {
1659
+
1680
1660
  case YouTube.PlayerState.ENDED:
1681
1661
  _this.props.onEnd(event);
1682
-
1683
1662
  break;
1684
1663
 
1685
1664
  case YouTube.PlayerState.PLAYING:
1686
1665
  _this.props.onPlay(event);
1687
-
1688
1666
  break;
1689
1667
 
1690
1668
  case YouTube.PlayerState.PAUSED:
1691
1669
  _this.props.onPause(event);
1692
-
1693
1670
  break;
1694
1671
  }
1695
- });
1672
+ };
1696
1673
 
1697
- _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
1674
+ _this.onPlayerPlaybackRateChange = function (event) {
1698
1675
  return _this.props.onPlaybackRateChange(event);
1699
- });
1676
+ };
1700
1677
 
1701
- _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
1678
+ _this.onPlayerPlaybackQualityChange = function (event) {
1702
1679
  return _this.props.onPlaybackQualityChange(event);
1703
- });
1680
+ };
1704
1681
 
1705
- _defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
1682
+ _this.createPlayer = function () {
1706
1683
  // do not attempt to create a player server-side, it won't work
1707
- if (typeof document === 'undefined') return; // create player
1708
-
1709
- var playerOpts = _objectSpread({}, _this.props.opts, {
1684
+ if (typeof document === 'undefined') return;
1685
+ // create player
1686
+ var playerOpts = _extends({}, _this.props.opts, {
1710
1687
  // preload the `videoId` video if one is already given
1711
1688
  videoId: _this.props.videoId
1712
1689
  });
1713
-
1714
- _this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
1715
-
1690
+ _this.internalPlayer = youTubePlayer(_this.container, playerOpts);
1691
+ // attach event handlers
1716
1692
  _this.internalPlayer.on('ready', _this.onPlayerReady);
1717
-
1718
1693
  _this.internalPlayer.on('error', _this.onPlayerError);
1719
-
1720
1694
  _this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
1721
-
1722
1695
  _this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
1723
-
1724
1696
  _this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
1725
- });
1697
+ };
1726
1698
 
1727
- _defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
1699
+ _this.resetPlayer = function () {
1728
1700
  return _this.internalPlayer.destroy().then(_this.createPlayer);
1729
- });
1701
+ };
1730
1702
 
1731
- _defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
1703
+ _this.updatePlayer = function () {
1732
1704
  _this.internalPlayer.getIframe().then(function (iframe) {
1733
1705
  if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
1734
1706
  if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
1735
1707
  });
1736
- });
1708
+ };
1737
1709
 
1738
- _defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
1710
+ _this.updateVideo = function () {
1739
1711
  if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
1740
1712
  _this.internalPlayer.stopVideo();
1741
-
1742
1713
  return;
1743
- } // set queueing options
1744
-
1714
+ }
1745
1715
 
1716
+ // set queueing options
1746
1717
  var autoplay = false;
1747
1718
  var opts = {
1748
1719
  videoId: _this.props.videoId
1749
1720
  };
1750
-
1751
1721
  if ('playerVars' in _this.props.opts) {
1752
1722
  autoplay = _this.props.opts.playerVars.autoplay === 1;
1753
-
1754
1723
  if ('start' in _this.props.opts.playerVars) {
1755
1724
  opts.startSeconds = _this.props.opts.playerVars.start;
1756
1725
  }
1757
-
1758
1726
  if ('end' in _this.props.opts.playerVars) {
1759
1727
  opts.endSeconds = _this.props.opts.playerVars.end;
1760
1728
  }
1761
- } // if autoplay is enabled loadVideoById
1762
-
1729
+ }
1763
1730
 
1731
+ // if autoplay is enabled loadVideoById
1764
1732
  if (autoplay) {
1765
1733
  _this.internalPlayer.loadVideoById(opts);
1766
-
1767
1734
  return;
1768
- } // default behaviour just cues the video
1769
-
1770
-
1735
+ }
1736
+ // default behaviour just cues the video
1771
1737
  _this.internalPlayer.cueVideoById(opts);
1772
- });
1738
+ };
1773
1739
 
1774
- _defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
1740
+ _this.refContainer = function (container) {
1775
1741
  _this.container = container;
1776
- });
1742
+ };
1777
1743
 
1778
1744
  _this.container = null;
1779
1745
  _this.internalPlayer = null;
1780
1746
  return _this;
1781
1747
  }
1782
1748
 
1749
+ /**
1750
+ * Expose PlayerState constants for convenience. These constants can also be
1751
+ * accessed through the global YT object after the YouTube IFrame API is instantiated.
1752
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
1753
+ */
1754
+
1755
+
1783
1756
  _createClass(YouTube, [{
1784
- key: "componentDidMount",
1757
+ key: 'componentDidMount',
1785
1758
  value: function componentDidMount() {
1786
1759
  this.createPlayer();
1787
1760
  }
1788
1761
  }, {
1789
- key: "componentDidUpdate",
1762
+ key: 'componentDidUpdate',
1790
1763
  value: function componentDidUpdate(prevProps) {
1791
1764
  if (shouldUpdatePlayer(prevProps, this.props)) {
1792
1765
  this.updatePlayer();
@@ -1801,58 +1774,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
1801
1774
  }
1802
1775
  }
1803
1776
  }, {
1804
- key: "componentWillUnmount",
1777
+ key: 'componentWillUnmount',
1805
1778
  value: function componentWillUnmount() {
1806
- /**
1807
- * Note: The `youtube-player` package that is used promisifies all YouTube
1808
- * Player API calls, which introduces a delay of a tick before it actually
1809
- * gets destroyed. Since React attempts to remove the element instantly
1810
- * this method isn't quick enough to reset the container element.
1779
+ /**
1780
+ * Note: The `youtube-player` package that is used promisifies all Youtube
1781
+ * Player API calls, which introduces a delay of a tick before it actually
1782
+ * gets destroyed. Since React attempts to remove the element instantly
1783
+ * this method isn't quick enough to reset the container element.
1811
1784
  */
1812
1785
  this.internalPlayer.destroy();
1813
1786
  }
1814
- /**
1815
- * https://developers.google.com/youtube/iframe_api_reference#onReady
1816
- *
1817
- * @param {Object} event
1818
- * @param {Object} target - player object
1787
+
1788
+ /**
1789
+ * https://developers.google.com/youtube/iframe_api_reference#onReady
1790
+ *
1791
+ * @param {Object} event
1792
+ * @param {Object} target - player object
1793
+ */
1794
+
1795
+
1796
+ /**
1797
+ * https://developers.google.com/youtube/iframe_api_reference#onError
1798
+ *
1799
+ * @param {Object} event
1800
+ * @param {Integer} data - error type
1801
+ * @param {Object} target - player object
1802
+ */
1803
+
1804
+
1805
+ /**
1806
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
1807
+ *
1808
+ * @param {Object} event
1809
+ * @param {Integer} data - status change type
1810
+ * @param {Object} target - actual YT player
1811
+ */
1812
+
1813
+
1814
+ /**
1815
+ * https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
1816
+ *
1817
+ * @param {Object} event
1818
+ * @param {Float} data - playback rate
1819
+ * @param {Object} target - actual YT player
1820
+ */
1821
+
1822
+
1823
+ /**
1824
+ * https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
1825
+ *
1826
+ * @param {Object} event
1827
+ * @param {String} data - playback quality
1828
+ * @param {Object} target - actual YT player
1829
+ */
1830
+
1831
+
1832
+ /**
1833
+ * Initialize the Youtube Player API on the container and attach event handlers
1834
+ */
1835
+
1836
+
1837
+ /**
1838
+ * Shorthand for destroying and then re-creating the Youtube Player
1839
+ */
1840
+
1841
+
1842
+ /**
1843
+ * Method to update the id and class of the Youtube Player iframe.
1844
+ * React should update this automatically but since the Youtube Player API
1845
+ * replaced the DIV that is mounted by React we need to do this manually.
1846
+ */
1847
+
1848
+
1849
+ /**
1850
+ * Call Youtube Player API methods to update the currently playing video.
1851
+ * Depeding on the `opts.playerVars.autoplay` this function uses one of two
1852
+ * Youtube Player API methods to update the video.
1819
1853
  */
1820
1854
 
1821
1855
  }, {
1822
- key: "render",
1856
+ key: 'render',
1823
1857
  value: function render() {
1824
- return /*#__PURE__*/React__default.createElement("div", {
1825
- className: this.props.containerClassName
1826
- }, /*#__PURE__*/React__default.createElement("div", {
1827
- id: this.props.id,
1828
- className: this.props.className,
1829
- ref: this.refContainer
1830
- }));
1858
+ return React__default.createElement(
1859
+ 'div',
1860
+ { className: this.props.containerClassName },
1861
+ React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
1862
+ );
1831
1863
  }
1832
1864
  }]);
1833
1865
 
1834
1866
  return YouTube;
1835
1867
  }(React__default.Component);
1836
1868
 
1837
- _defineProperty(YouTube, "PlayerState", {
1838
- UNSTARTED: -1,
1839
- ENDED: 0,
1840
- PLAYING: 1,
1841
- PAUSED: 2,
1842
- BUFFERING: 3,
1843
- CUED: 5
1844
- });
1845
-
1846
1869
  YouTube.propTypes = {
1847
1870
  videoId: PropTypes.string,
1871
+
1848
1872
  // custom ID for player element
1849
1873
  id: PropTypes.string,
1874
+
1850
1875
  // custom class name for player element
1851
1876
  className: PropTypes.string,
1852
1877
  // custom class name for player container element
1853
1878
  containerClassName: PropTypes.string,
1879
+
1854
1880
  // https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
1855
1881
  opts: PropTypes.objectOf(PropTypes.any),
1882
+
1856
1883
  // event subscriptions
1857
1884
  onReady: PropTypes.func,
1858
1885
  onError: PropTypes.func,
@@ -1864,7 +1891,6 @@ YouTube.propTypes = {
1864
1891
  onPlaybackQualityChange: PropTypes.func
1865
1892
  };
1866
1893
  YouTube.defaultProps = {
1867
- videoId: null,
1868
1894
  id: null,
1869
1895
  className: null,
1870
1896
  opts: {},
@@ -1878,6 +1904,14 @@ YouTube.defaultProps = {
1878
1904
  onPlaybackRateChange: function onPlaybackRateChange() {},
1879
1905
  onPlaybackQualityChange: function onPlaybackQualityChange() {}
1880
1906
  };
1907
+ YouTube.PlayerState = {
1908
+ UNSTARTED: -1,
1909
+ ENDED: 0,
1910
+ PLAYING: 1,
1911
+ PAUSED: 2,
1912
+ BUFFERING: 3,
1913
+ CUED: 5
1914
+ };
1881
1915
 
1882
1916
  var YouTubePlayer = function YouTubePlayer(_ref) {
1883
1917
  var url = _ref.url;
@@ -2138,7 +2172,7 @@ var Media = function Media(_ref) {
2138
2172
  React__default.createElement(
2139
2173
  'a',
2140
2174
  { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
2141
- React__default.createElement(reactBootstrap.Figure.Image, _extends._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt })),
2175
+ React__default.createElement(reactBootstrap.Figure.Image, _extends$1._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt })),
2142
2176
  caption && React__default.createElement(
2143
2177
  reactBootstrap.Figure.Caption,
2144
2178
  { className: 'media-caption' },
@@ -2149,7 +2183,7 @@ var Media = function Media(_ref) {
2149
2183
  } else if (caption && caption !== '') {
2150
2184
  return React__default.createElement(
2151
2185
  'a',
2152
- _extends._extends({}, uploadDoc.downloadMedia ? {
2186
+ _extends$1._extends({}, uploadDoc.downloadMedia ? {
2153
2187
  href: uploadDoc.asset.url + '?dl='
2154
2188
  } : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
2155
2189
  style: { paddingLeft: '4px', paddingRight: '4px' },
@@ -2710,17 +2744,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2710
2744
 
2711
2745
  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; }
2712
2746
 
2713
- 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; } } }; }
2714
-
2715
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2716
-
2717
- 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."); }
2747
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
2718
2748
 
2719
- 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); }
2749
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
2720
2750
 
2721
- 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; }
2722
-
2723
- 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; }
2751
+ 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; }
2724
2752
 
2725
2753
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
2726
2754
 
@@ -2850,12 +2878,12 @@ function getSDK(url, sdkGlobal) {
2850
2878
 
2851
2879
  function getConfig(props$1, defaultProps, showWarning) {
2852
2880
  var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
2853
-
2854
- var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
2855
- _step;
2881
+ var _iteratorNormalCompletion = true;
2882
+ var _didIteratorError = false;
2883
+ var _iteratorError = undefined;
2856
2884
 
2857
2885
  try {
2858
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
2886
+ for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
2859
2887
  var p = _step.value;
2860
2888
 
2861
2889
  if (props$1[p]) {
@@ -2870,9 +2898,18 @@ function getConfig(props$1, defaultProps, showWarning) {
2870
2898
  }
2871
2899
  }
2872
2900
  } catch (err) {
2873
- _iterator.e(err);
2901
+ _didIteratorError = true;
2902
+ _iteratorError = err;
2874
2903
  } finally {
2875
- _iterator.f();
2904
+ try {
2905
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
2906
+ _iterator["return"]();
2907
+ }
2908
+ } finally {
2909
+ if (_didIteratorError) {
2910
+ throw _iteratorError;
2911
+ }
2912
+ }
2876
2913
  }
2877
2914
 
2878
2915
  return config;
@@ -3019,16 +3056,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
3019
3056
 
3020
3057
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3021
3058
 
3022
- 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); }; }
3023
-
3024
3059
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3025
3060
 
3026
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3027
-
3028
- 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; } }
3029
-
3030
3061
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3031
3062
 
3063
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3064
+
3032
3065
  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); }
3033
3066
 
3034
3067
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -3037,12 +3070,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
3037
3070
 
3038
3071
  var SEEK_ON_PLAY_EXPIRY = 5000;
3039
3072
 
3040
- var Player = /*#__PURE__*/function (_Component) {
3073
+ var Player =
3074
+ /*#__PURE__*/
3075
+ function (_Component) {
3041
3076
  _inherits(Player, _Component);
3042
3077
 
3043
- var _super = _createSuper(Player);
3044
-
3045
3078
  function Player() {
3079
+ var _getPrototypeOf2;
3080
+
3046
3081
  var _this;
3047
3082
 
3048
3083
  _classCallCheck(this, Player);
@@ -3051,7 +3086,7 @@ var Player = /*#__PURE__*/function (_Component) {
3051
3086
  _args[_key] = arguments[_key];
3052
3087
  }
3053
3088
 
3054
- _this = _super.call.apply(_super, [this].concat(_args));
3089
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
3055
3090
 
3056
3091
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
3057
3092
 
@@ -3376,7 +3411,7 @@ var Player = /*#__PURE__*/function (_Component) {
3376
3411
  return null;
3377
3412
  }
3378
3413
 
3379
- return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
3414
+ return _react["default"].createElement(Player, _extends({}, this.props, {
3380
3415
  ref: this.ref,
3381
3416
  onReady: this.handleReady,
3382
3417
  onPlay: this.handlePlay,
@@ -3437,16 +3472,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
3437
3472
 
3438
3473
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3439
3474
 
3440
- 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); }; }
3441
-
3442
3475
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3443
3476
 
3444
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3445
-
3446
- 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; } }
3447
-
3448
3477
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3449
3478
 
3479
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3480
+
3450
3481
  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); }
3451
3482
 
3452
3483
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -3458,12 +3489,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
3458
3489
  function createSinglePlayer(activePlayer) {
3459
3490
  var _class, _temp;
3460
3491
 
3461
- return _temp = _class = /*#__PURE__*/function (_Component) {
3492
+ return _temp = _class =
3493
+ /*#__PURE__*/
3494
+ function (_Component) {
3462
3495
  _inherits(SinglePlayer, _Component);
3463
3496
 
3464
- var _super = _createSuper(SinglePlayer);
3465
-
3466
3497
  function SinglePlayer() {
3498
+ var _getPrototypeOf2;
3499
+
3467
3500
  var _this;
3468
3501
 
3469
3502
  _classCallCheck(this, SinglePlayer);
@@ -3472,7 +3505,7 @@ function createSinglePlayer(activePlayer) {
3472
3505
  args[_key] = arguments[_key];
3473
3506
  }
3474
3507
 
3475
- _this = _super.call.apply(_super, [this].concat(args));
3508
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
3476
3509
 
3477
3510
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
3478
3511
 
@@ -3540,12 +3573,12 @@ function createSinglePlayer(activePlayer) {
3540
3573
  height = _this$props.height,
3541
3574
  Wrapper = _this$props.wrapper;
3542
3575
  var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
3543
- return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
3576
+ return _react["default"].createElement(Wrapper, _extends({
3544
3577
  style: _objectSpread({}, style, {
3545
3578
  width: width,
3546
3579
  height: height
3547
3580
  })
3548
- }, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
3581
+ }, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
3549
3582
  ref: this.ref,
3550
3583
  activePlayer: activePlayer,
3551
3584
  config: this.config
@@ -3591,31 +3624,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
3591
3624
 
3592
3625
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3593
3626
 
3594
- 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); }; }
3595
-
3596
3627
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3597
3628
 
3598
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3599
-
3600
- 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; } }
3601
-
3602
3629
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3603
3630
 
3631
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3632
+
3604
3633
  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); }
3605
3634
 
3606
3635
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
3607
3636
 
3608
3637
  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; }
3609
3638
 
3610
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
3639
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
3611
3640
 
3612
- 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."); }
3641
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
3613
3642
 
3614
- 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); }
3615
-
3616
- 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; }
3617
-
3618
- 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; }
3643
+ 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; }
3619
3644
 
3620
3645
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
3621
3646
 
@@ -3640,12 +3665,14 @@ function parsePlaylist(url) {
3640
3665
  return {};
3641
3666
  }
3642
3667
 
3643
- var YouTube = /*#__PURE__*/function (_Component) {
3668
+ var YouTube =
3669
+ /*#__PURE__*/
3670
+ function (_Component) {
3644
3671
  _inherits(YouTube, _Component);
3645
3672
 
3646
- var _super = _createSuper(YouTube);
3647
-
3648
3673
  function YouTube() {
3674
+ var _getPrototypeOf2;
3675
+
3649
3676
  var _this;
3650
3677
 
3651
3678
  _classCallCheck(this, YouTube);
@@ -3654,7 +3681,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
3654
3681
  args[_key] = arguments[_key];
3655
3682
  }
3656
3683
 
3657
- _this = _super.call.apply(_super, [this].concat(args));
3684
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
3658
3685
 
3659
3686
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
3660
3687
 
@@ -3842,9 +3869,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
3842
3869
  height: '100%',
3843
3870
  display: display
3844
3871
  };
3845
- return /*#__PURE__*/_react["default"].createElement("div", {
3872
+ return _react["default"].createElement("div", {
3846
3873
  style: style
3847
- }, /*#__PURE__*/_react["default"].createElement("div", {
3874
+ }, _react["default"].createElement("div", {
3848
3875
  ref: this.ref
3849
3876
  }));
3850
3877
  }
@@ -3900,16 +3927,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
3900
3927
 
3901
3928
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3902
3929
 
3903
- 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); }; }
3904
-
3905
3930
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3906
3931
 
3907
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3908
-
3909
- 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; } }
3910
-
3911
3932
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3912
3933
 
3934
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3935
+
3913
3936
  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); }
3914
3937
 
3915
3938
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -3918,14 +3941,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
3918
3941
 
3919
3942
  var SDK_URL = 'https://w.soundcloud.com/player/api.js';
3920
3943
  var SDK_GLOBAL = 'SC';
3921
- var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
3944
+ var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
3922
3945
 
3923
- var SoundCloud = /*#__PURE__*/function (_Component) {
3946
+ var SoundCloud =
3947
+ /*#__PURE__*/
3948
+ function (_Component) {
3924
3949
  _inherits(SoundCloud, _Component);
3925
3950
 
3926
- var _super = _createSuper(SoundCloud);
3927
-
3928
3951
  function SoundCloud() {
3952
+ var _getPrototypeOf2;
3953
+
3929
3954
  var _this;
3930
3955
 
3931
3956
  _classCallCheck(this, SoundCloud);
@@ -3934,7 +3959,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
3934
3959
  args[_key] = arguments[_key];
3935
3960
  }
3936
3961
 
3937
- _this = _super.call.apply(_super, [this].concat(args));
3962
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
3938
3963
 
3939
3964
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
3940
3965
 
@@ -4055,7 +4080,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
4055
4080
  height: '100%',
4056
4081
  display: display
4057
4082
  };
4058
- return /*#__PURE__*/_react["default"].createElement("iframe", {
4083
+ return _react["default"].createElement("iframe", {
4059
4084
  ref: this.ref,
4060
4085
  src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
4061
4086
  style: style,
@@ -4117,16 +4142,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4117
4142
 
4118
4143
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4119
4144
 
4120
- 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); }; }
4121
-
4122
4145
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4123
4146
 
4124
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4125
-
4126
- 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; } }
4127
-
4128
4147
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4129
4148
 
4149
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4150
+
4130
4151
  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); }
4131
4152
 
4132
4153
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4138,12 +4159,14 @@ var SDK_GLOBAL = 'Vimeo';
4138
4159
  var MATCH_URL = /vimeo\.com\/.+/;
4139
4160
  var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
4140
4161
 
4141
- var Vimeo = /*#__PURE__*/function (_Component) {
4162
+ var Vimeo =
4163
+ /*#__PURE__*/
4164
+ function (_Component) {
4142
4165
  _inherits(Vimeo, _Component);
4143
4166
 
4144
- var _super = _createSuper(Vimeo);
4145
-
4146
4167
  function Vimeo() {
4168
+ var _getPrototypeOf2;
4169
+
4147
4170
  var _this;
4148
4171
 
4149
4172
  _classCallCheck(this, Vimeo);
@@ -4152,7 +4175,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
4152
4175
  args[_key] = arguments[_key];
4153
4176
  }
4154
4177
 
4155
- _this = _super.call.apply(_super, [this].concat(args));
4178
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
4156
4179
 
4157
4180
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4158
4181
 
@@ -4309,7 +4332,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
4309
4332
  overflow: 'hidden',
4310
4333
  display: display
4311
4334
  };
4312
- return /*#__PURE__*/_react["default"].createElement("div", {
4335
+ return _react["default"].createElement("div", {
4313
4336
  key: this.props.url,
4314
4337
  ref: this.ref,
4315
4338
  style: style
@@ -4369,16 +4392,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4369
4392
 
4370
4393
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4371
4394
 
4372
- 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); }; }
4373
-
4374
4395
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4375
4396
 
4376
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4377
-
4378
- 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; } }
4379
-
4380
4397
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4381
4398
 
4399
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4400
+
4382
4401
  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); }
4383
4402
 
4384
4403
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4391,12 +4410,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
4391
4410
  var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
4392
4411
  var PLAYER_ID_PREFIX = 'facebook-player-';
4393
4412
 
4394
- var Facebook = /*#__PURE__*/function (_Component) {
4413
+ var Facebook =
4414
+ /*#__PURE__*/
4415
+ function (_Component) {
4395
4416
  _inherits(Facebook, _Component);
4396
4417
 
4397
- var _super = _createSuper(Facebook);
4398
-
4399
4418
  function Facebook() {
4419
+ var _getPrototypeOf2;
4420
+
4400
4421
  var _this;
4401
4422
 
4402
4423
  _classCallCheck(this, Facebook);
@@ -4405,7 +4426,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
4405
4426
  args[_key] = arguments[_key];
4406
4427
  }
4407
4428
 
4408
- _this = _super.call.apply(_super, [this].concat(args));
4429
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
4409
4430
 
4410
4431
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4411
4432
 
@@ -4521,7 +4542,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
4521
4542
  width: '100%',
4522
4543
  height: '100%'
4523
4544
  };
4524
- return /*#__PURE__*/_react["default"].createElement("div", {
4545
+ return _react["default"].createElement("div", {
4525
4546
  style: style,
4526
4547
  id: this.playerID,
4527
4548
  className: "fb-video",
@@ -4581,16 +4602,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4581
4602
 
4582
4603
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4583
4604
 
4584
- 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); }; }
4585
-
4586
4605
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4587
4606
 
4588
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4589
-
4590
- 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; } }
4591
-
4592
4607
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4593
4608
 
4609
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4610
+
4594
4611
  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); }
4595
4612
 
4596
4613
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4601,12 +4618,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
4601
4618
  var SDK_GLOBAL = 'playerjs';
4602
4619
  var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
4603
4620
 
4604
- var Streamable = /*#__PURE__*/function (_Component) {
4621
+ var Streamable =
4622
+ /*#__PURE__*/
4623
+ function (_Component) {
4605
4624
  _inherits(Streamable, _Component);
4606
4625
 
4607
- var _super = _createSuper(Streamable);
4608
-
4609
4626
  function Streamable() {
4627
+ var _getPrototypeOf2;
4628
+
4610
4629
  var _this;
4611
4630
 
4612
4631
  _classCallCheck(this, Streamable);
@@ -4615,7 +4634,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
4615
4634
  args[_key] = arguments[_key];
4616
4635
  }
4617
4636
 
4618
- _this = _super.call.apply(_super, [this].concat(args));
4637
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
4619
4638
 
4620
4639
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4621
4640
 
@@ -4735,7 +4754,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
4735
4754
  width: '100%',
4736
4755
  height: '100%'
4737
4756
  };
4738
- return /*#__PURE__*/_react["default"].createElement("iframe", {
4757
+ return _react["default"].createElement("iframe", {
4739
4758
  ref: this.ref,
4740
4759
  src: "https://streamable.com/o/".concat(id),
4741
4760
  frameBorder: "0",
@@ -4796,16 +4815,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4796
4815
 
4797
4816
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4798
4817
 
4799
- 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); }; }
4800
-
4801
4818
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4802
4819
 
4803
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4804
-
4805
- 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; } }
4806
-
4807
4820
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4808
4821
 
4822
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4823
+
4809
4824
  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); }
4810
4825
 
4811
4826
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4816,48 +4831,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
4816
4831
  var SDK_GLOBAL = 'Wistia';
4817
4832
  var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
4818
4833
 
4819
- var Wistia = /*#__PURE__*/function (_Component) {
4834
+ var Wistia =
4835
+ /*#__PURE__*/
4836
+ function (_Component) {
4820
4837
  _inherits(Wistia, _Component);
4821
4838
 
4822
- var _super = _createSuper(Wistia);
4823
-
4824
4839
  function Wistia() {
4840
+ var _getPrototypeOf2;
4841
+
4825
4842
  var _this;
4826
4843
 
4827
4844
  _classCallCheck(this, Wistia);
4828
4845
 
4829
- for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
4830
- _args[_key] = arguments[_key];
4846
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
4847
+ args[_key] = arguments[_key];
4831
4848
  }
4832
4849
 
4833
- _this = _super.call.apply(_super, [this].concat(_args));
4850
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
4834
4851
 
4835
4852
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4836
4853
 
4837
- _defineProperty(_assertThisInitialized(_this), "onPlay", function () {
4838
- var _this$props;
4839
-
4840
- return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
4841
- });
4842
-
4843
- _defineProperty(_assertThisInitialized(_this), "onPause", function () {
4844
- var _this$props2;
4845
-
4846
- return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
4847
- });
4848
-
4849
- _defineProperty(_assertThisInitialized(_this), "onSeek", function () {
4850
- var _this$props3;
4851
-
4852
- return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
4853
- });
4854
-
4855
- _defineProperty(_assertThisInitialized(_this), "onEnded", function () {
4856
- var _this$props4;
4857
-
4858
- return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
4859
- });
4860
-
4861
4854
  _defineProperty(_assertThisInitialized(_this), "mute", function () {
4862
4855
  _this.callPlayer('mute');
4863
4856
  });
@@ -4879,13 +4872,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
4879
4872
  value: function load(url) {
4880
4873
  var _this2 = this;
4881
4874
 
4882
- var _this$props5 = this.props,
4883
- playing = _this$props5.playing,
4884
- muted = _this$props5.muted,
4885
- controls = _this$props5.controls,
4886
- _onReady = _this$props5.onReady,
4887
- config = _this$props5.config,
4888
- onError = _this$props5.onError;
4875
+ var _this$props = this.props,
4876
+ playing = _this$props.playing,
4877
+ muted = _this$props.muted,
4878
+ controls = _this$props.controls,
4879
+ _onReady = _this$props.onReady,
4880
+ onPlay = _this$props.onPlay,
4881
+ onPause = _this$props.onPause,
4882
+ onSeek = _this$props.onSeek,
4883
+ onEnded = _this$props.onEnded,
4884
+ config = _this$props.config,
4885
+ onError = _this$props.onError;
4889
4886
  (0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
4890
4887
  window._wq = window._wq || [];
4891
4888
 
@@ -4902,28 +4899,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
4902
4899
 
4903
4900
  _this2.unbind();
4904
4901
 
4905
- _this2.player.bind('play', _this2.onPlay);
4902
+ _this2.player.bind('play', onPlay);
4906
4903
 
4907
- _this2.player.bind('pause', _this2.onPause);
4904
+ _this2.player.bind('pause', onPause);
4908
4905
 
4909
- _this2.player.bind('seek', _this2.onSeek);
4906
+ _this2.player.bind('seek', onSeek);
4910
4907
 
4911
- _this2.player.bind('end', _this2.onEnded);
4908
+ _this2.player.bind('end', onEnded);
4912
4909
 
4913
4910
  _onReady();
4914
4911
  }
4915
4912
  });
4916
4913
  }, onError);
4917
4914
  }
4918
- }, {
4919
- key: "unbind",
4920
- value: function unbind() {
4921
- this.player.unbind('play', this.onPlay);
4922
- this.player.unbind('pause', this.onPause);
4923
- this.player.unbind('seek', this.onSeek);
4924
- this.player.unbind('end', this.onEnded);
4925
- } // Proxy methods to prevent listener leaks
4926
-
4927
4915
  }, {
4928
4916
  key: "play",
4929
4917
  value: function play() {
@@ -4934,6 +4922,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
4934
4922
  value: function pause() {
4935
4923
  this.callPlayer('pause');
4936
4924
  }
4925
+ }, {
4926
+ key: "unbind",
4927
+ value: function unbind() {
4928
+ var _this$props2 = this.props,
4929
+ onPlay = _this$props2.onPlay,
4930
+ onPause = _this$props2.onPause,
4931
+ onSeek = _this$props2.onSeek,
4932
+ onEnded = _this$props2.onEnded;
4933
+ this.player.unbind('play', onPlay);
4934
+ this.player.unbind('pause', onPause);
4935
+ this.player.unbind('seek', onSeek);
4936
+ this.player.unbind('end', onEnded);
4937
+ }
4937
4938
  }, {
4938
4939
  key: "stop",
4939
4940
  value: function stop() {
@@ -4979,7 +4980,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
4979
4980
  width: '100%',
4980
4981
  height: '100%'
4981
4982
  };
4982
- return /*#__PURE__*/_react["default"].createElement("div", {
4983
+ return _react["default"].createElement("div", {
4983
4984
  key: id,
4984
4985
  className: className,
4985
4986
  style: style
@@ -5039,16 +5040,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5039
5040
 
5040
5041
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5041
5042
 
5042
- 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); }; }
5043
-
5044
5043
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5045
5044
 
5046
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5047
-
5048
- 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; } }
5049
-
5050
5045
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5051
5046
 
5047
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5048
+
5052
5049
  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); }
5053
5050
 
5054
5051
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -5061,12 +5058,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
5061
5058
  var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
5062
5059
  var PLAYER_ID_PREFIX = 'twitch-player-';
5063
5060
 
5064
- var Twitch = /*#__PURE__*/function (_Component) {
5061
+ var Twitch =
5062
+ /*#__PURE__*/
5063
+ function (_Component) {
5065
5064
  _inherits(Twitch, _Component);
5066
5065
 
5067
- var _super = _createSuper(Twitch);
5068
-
5069
5066
  function Twitch() {
5067
+ var _getPrototypeOf2;
5068
+
5070
5069
  var _this;
5071
5070
 
5072
5071
  _classCallCheck(this, Twitch);
@@ -5075,7 +5074,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
5075
5074
  args[_key] = arguments[_key];
5076
5075
  }
5077
5076
 
5078
- _this = _super.call.apply(_super, [this].concat(args));
5077
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
5079
5078
 
5080
5079
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
5081
5080
 
@@ -5196,7 +5195,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
5196
5195
  width: '100%',
5197
5196
  height: '100%'
5198
5197
  };
5199
- return /*#__PURE__*/_react["default"].createElement("div", {
5198
+ return _react["default"].createElement("div", {
5200
5199
  style: style,
5201
5200
  id: this.playerID
5202
5201
  });
@@ -5249,15 +5248,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
5249
5248
 
5250
5249
  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; }
5251
5250
 
5252
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
5253
-
5254
- 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."); }
5251
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
5255
5252
 
5256
- 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); }
5253
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
5257
5254
 
5258
- 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; }
5259
-
5260
- 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; }
5255
+ 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; }
5261
5256
 
5262
5257
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
5263
5258
 
@@ -5267,16 +5262,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5267
5262
 
5268
5263
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5269
5264
 
5270
- 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); }; }
5271
-
5272
5265
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5273
5266
 
5274
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5275
-
5276
- 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; } }
5277
-
5278
5267
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5279
5268
 
5269
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5270
+
5280
5271
  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); }
5281
5272
 
5282
5273
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -5288,12 +5279,14 @@ var SDK_GLOBAL = 'DM';
5288
5279
  var SDK_GLOBAL_READY = 'dmAsyncInit';
5289
5280
  var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
5290
5281
 
5291
- var DailyMotion = /*#__PURE__*/function (_Component) {
5282
+ var DailyMotion =
5283
+ /*#__PURE__*/
5284
+ function (_Component) {
5292
5285
  _inherits(DailyMotion, _Component);
5293
5286
 
5294
- var _super = _createSuper(DailyMotion);
5295
-
5296
5287
  function DailyMotion() {
5288
+ var _getPrototypeOf2;
5289
+
5297
5290
  var _this;
5298
5291
 
5299
5292
  _classCallCheck(this, DailyMotion);
@@ -5302,7 +5295,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
5302
5295
  args[_key] = arguments[_key];
5303
5296
  }
5304
5297
 
5305
- _this = _super.call.apply(_super, [this].concat(args));
5298
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
5306
5299
 
5307
5300
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
5308
5301
 
@@ -5431,9 +5424,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
5431
5424
  height: '100%',
5432
5425
  display: display
5433
5426
  };
5434
- return /*#__PURE__*/_react["default"].createElement("div", {
5427
+ return _react["default"].createElement("div", {
5435
5428
  style: style
5436
- }, /*#__PURE__*/_react["default"].createElement("div", {
5429
+ }, _react["default"].createElement("div", {
5437
5430
  ref: this.ref
5438
5431
  }));
5439
5432
  }
@@ -5491,16 +5484,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5491
5484
 
5492
5485
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5493
5486
 
5494
- 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); }; }
5495
-
5496
5487
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5497
5488
 
5498
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5499
-
5500
- 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; } }
5501
-
5502
5489
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5503
5490
 
5491
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5492
+
5504
5493
  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); }
5505
5494
 
5506
5495
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -5511,12 +5500,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
5511
5500
  var SDK_GLOBAL = 'Mixcloud';
5512
5501
  var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
5513
5502
 
5514
- var Mixcloud = /*#__PURE__*/function (_Component) {
5503
+ var Mixcloud =
5504
+ /*#__PURE__*/
5505
+ function (_Component) {
5515
5506
  _inherits(Mixcloud, _Component);
5516
5507
 
5517
- var _super = _createSuper(Mixcloud);
5518
-
5519
5508
  function Mixcloud() {
5509
+ var _getPrototypeOf2;
5510
+
5520
5511
  var _this;
5521
5512
 
5522
5513
  _classCallCheck(this, Mixcloud);
@@ -5525,7 +5516,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
5525
5516
  args[_key] = arguments[_key];
5526
5517
  }
5527
5518
 
5528
- _this = _super.call.apply(_super, [this].concat(args));
5519
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
5529
5520
 
5530
5521
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
5531
5522
 
@@ -5628,7 +5619,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
5628
5619
  })); // We have to give the iframe a key here to prevent a
5629
5620
  // weird dialog appearing when loading a new track
5630
5621
 
5631
- return /*#__PURE__*/_react["default"].createElement("iframe", {
5622
+ return _react["default"].createElement("iframe", {
5632
5623
  key: id,
5633
5624
  ref: this.ref,
5634
5625
  style: style,
@@ -5688,33 +5679,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5688
5679
 
5689
5680
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5690
5681
 
5691
- 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); }; }
5692
-
5693
5682
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5694
5683
 
5695
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5696
-
5697
- 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; } }
5698
-
5699
5684
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5700
5685
 
5686
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5687
+
5701
5688
  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); }
5702
5689
 
5703
5690
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
5704
5691
 
5705
5692
  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; }
5706
5693
 
5707
- 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; } } }; }
5708
-
5709
- 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); }
5710
-
5711
- 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; }
5712
-
5713
5694
  var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
5714
5695
  var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
5715
5696
  var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
5716
5697
  var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
5717
- var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
5698
+ var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
5718
5699
  var HLS_GLOBAL = 'Hls';
5719
5700
  var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
5720
5701
  var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
@@ -5723,11 +5704,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
5723
5704
 
5724
5705
  function canPlay(url) {
5725
5706
  if (url instanceof Array) {
5726
- var _iterator = _createForOfIteratorHelper(url),
5727
- _step;
5707
+ var _iteratorNormalCompletion = true;
5708
+ var _didIteratorError = false;
5709
+ var _iteratorError = undefined;
5728
5710
 
5729
5711
  try {
5730
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
5712
+ for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
5731
5713
  var item = _step.value;
5732
5714
 
5733
5715
  if (typeof item === 'string' && canPlay(item)) {
@@ -5739,9 +5721,18 @@ function canPlay(url) {
5739
5721
  }
5740
5722
  }
5741
5723
  } catch (err) {
5742
- _iterator.e(err);
5724
+ _didIteratorError = true;
5725
+ _iteratorError = err;
5743
5726
  } finally {
5744
- _iterator.f();
5727
+ try {
5728
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
5729
+ _iterator["return"]();
5730
+ }
5731
+ } finally {
5732
+ if (_didIteratorError) {
5733
+ throw _iteratorError;
5734
+ }
5735
+ }
5745
5736
  }
5746
5737
 
5747
5738
  return false;
@@ -5765,12 +5756,14 @@ function canEnablePIP(url) {
5765
5756
  return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
5766
5757
  }
5767
5758
 
5768
- var FilePlayer = /*#__PURE__*/function (_Component) {
5759
+ var FilePlayer =
5760
+ /*#__PURE__*/
5761
+ function (_Component) {
5769
5762
  _inherits(FilePlayer, _Component);
5770
5763
 
5771
- var _super = _createSuper(FilePlayer);
5772
-
5773
5764
  function FilePlayer() {
5765
+ var _getPrototypeOf2;
5766
+
5774
5767
  var _this;
5775
5768
 
5776
5769
  _classCallCheck(this, FilePlayer);
@@ -5779,7 +5772,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
5779
5772
  _args[_key] = arguments[_key];
5780
5773
  }
5781
5774
 
5782
- _this = _super.call.apply(_super, [this].concat(_args));
5775
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
5783
5776
 
5784
5777
  _defineProperty(_assertThisInitialized(_this), "onReady", function () {
5785
5778
  var _this$props;
@@ -5866,19 +5859,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
5866
5859
 
5867
5860
  _defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
5868
5861
  if (typeof source === 'string') {
5869
- return /*#__PURE__*/_react["default"].createElement("source", {
5862
+ return _react["default"].createElement("source", {
5870
5863
  key: index,
5871
5864
  src: source
5872
5865
  });
5873
5866
  }
5874
5867
 
5875
- return /*#__PURE__*/_react["default"].createElement("source", _extends({
5868
+ return _react["default"].createElement("source", _extends({
5876
5869
  key: index
5877
5870
  }, source));
5878
5871
  });
5879
5872
 
5880
5873
  _defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
5881
- return /*#__PURE__*/_react["default"].createElement("track", _extends({
5874
+ return _react["default"].createElement("track", _extends({
5882
5875
  key: index
5883
5876
  }, track));
5884
5877
  });
@@ -5916,10 +5909,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
5916
5909
  key: "componentWillUnmount",
5917
5910
  value: function componentWillUnmount() {
5918
5911
  this.removeListeners(this.player);
5919
-
5920
- if (this.hls) {
5921
- this.hls.destroy();
5922
- }
5923
5912
  }
5924
5913
  }, {
5925
5914
  key: "addListeners",
@@ -6050,6 +6039,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
6050
6039
  value: function stop() {
6051
6040
  this.player.removeAttribute('src');
6052
6041
 
6042
+ if (this.hls) {
6043
+ this.hls.destroy();
6044
+ }
6045
+
6053
6046
  if (this.dash) {
6054
6047
  this.dash.reset();
6055
6048
  }
@@ -6161,7 +6154,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
6161
6154
  width: width === 'auto' ? width : '100%',
6162
6155
  height: height === 'auto' ? height : '100%'
6163
6156
  };
6164
- return /*#__PURE__*/_react["default"].createElement(Element, _extends({
6157
+ return _react["default"].createElement(Element, _extends({
6165
6158
  ref: this.ref,
6166
6159
  src: this.getSource(url),
6167
6160
  style: style,
@@ -6251,16 +6244,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
6251
6244
 
6252
6245
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
6253
6246
 
6254
- 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); }; }
6255
-
6256
6247
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
6257
6248
 
6258
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6259
-
6260
- 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; } }
6261
-
6262
6249
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
6263
6250
 
6251
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6252
+
6264
6253
  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); }
6265
6254
 
6266
6255
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -6269,12 +6258,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
6269
6258
 
6270
6259
  var ICON_SIZE = '64px';
6271
6260
 
6272
- var Preview = /*#__PURE__*/function (_Component) {
6261
+ var Preview =
6262
+ /*#__PURE__*/
6263
+ function (_Component) {
6273
6264
  _inherits(Preview, _Component);
6274
6265
 
6275
- var _super = _createSuper(Preview);
6276
-
6277
6266
  function Preview() {
6267
+ var _getPrototypeOf2;
6268
+
6278
6269
  var _this;
6279
6270
 
6280
6271
  _classCallCheck(this, Preview);
@@ -6283,7 +6274,7 @@ var Preview = /*#__PURE__*/function (_Component) {
6283
6274
  args[_key] = arguments[_key];
6284
6275
  }
6285
6276
 
6286
- _this = _super.call.apply(_super, [this].concat(args));
6277
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
6287
6278
 
6288
6279
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
6289
6280
 
@@ -6381,15 +6372,15 @@ var Preview = /*#__PURE__*/function (_Component) {
6381
6372
  }
6382
6373
  };
6383
6374
 
6384
- var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
6375
+ var defaultPlayIcon = _react["default"].createElement("div", {
6385
6376
  style: styles.shadow,
6386
6377
  className: "react-player__shadow"
6387
- }, /*#__PURE__*/_react["default"].createElement("div", {
6378
+ }, _react["default"].createElement("div", {
6388
6379
  style: styles.playIcon,
6389
6380
  className: "react-player__play-icon"
6390
6381
  }));
6391
6382
 
6392
- return /*#__PURE__*/_react["default"].createElement("div", {
6383
+ return _react["default"].createElement("div", {
6393
6384
  style: styles.preview,
6394
6385
  className: "react-player__preview",
6395
6386
  onClick: onClick
@@ -6426,12 +6417,6 @@ var _Player = _interopRequireDefault(Player_1);
6426
6417
 
6427
6418
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
6428
6419
 
6429
- 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; } } }; }
6430
-
6431
- 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); }
6432
-
6433
- 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; }
6434
-
6435
6420
  var PRELOAD_PLAYERS = [{
6436
6421
  Player: YouTube_1.YouTube,
6437
6422
  configKey: 'youtube',
@@ -6452,16 +6437,16 @@ var PRELOAD_PLAYERS = [{
6452
6437
 
6453
6438
  function renderPreloadPlayers(url, controls, config) {
6454
6439
  var players = [];
6455
-
6456
- var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
6457
- _step;
6440
+ var _iteratorNormalCompletion = true;
6441
+ var _didIteratorError = false;
6442
+ var _iteratorError = undefined;
6458
6443
 
6459
6444
  try {
6460
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
6445
+ for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
6461
6446
  var player = _step.value;
6462
6447
 
6463
6448
  if (!player.Player.canPlay(url) && config[player.configKey].preload) {
6464
- players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
6449
+ players.push(_react["default"].createElement(_Player["default"], {
6465
6450
  key: player.Player.displayName,
6466
6451
  activePlayer: player.Player,
6467
6452
  url: player.url,
@@ -6473,9 +6458,18 @@ function renderPreloadPlayers(url, controls, config) {
6473
6458
  }
6474
6459
  }
6475
6460
  } catch (err) {
6476
- _iterator.e(err);
6461
+ _didIteratorError = true;
6462
+ _iteratorError = err;
6477
6463
  } finally {
6478
- _iterator.f();
6464
+ try {
6465
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
6466
+ _iterator["return"]();
6467
+ }
6468
+ } finally {
6469
+ if (_didIteratorError) {
6470
+ throw _iteratorError;
6471
+ }
6472
+ }
6479
6473
  }
6480
6474
 
6481
6475
  return players;
@@ -6599,17 +6593,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
6599
6593
 
6600
6594
  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); }
6601
6595
 
6602
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
6603
-
6604
- 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."); }
6605
-
6606
- 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); }
6596
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
6607
6597
 
6608
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
6598
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
6609
6599
 
6610
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
6600
+ function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
6611
6601
 
6612
- 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; }
6602
+ 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; } }
6613
6603
 
6614
6604
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
6615
6605
 
@@ -6617,16 +6607,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
6617
6607
 
6618
6608
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
6619
6609
 
6620
- 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); }; }
6621
-
6622
6610
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
6623
6611
 
6624
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6625
-
6626
- 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; } }
6627
-
6628
6612
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
6629
6613
 
6614
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6615
+
6630
6616
  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); }
6631
6617
 
6632
6618
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -6636,12 +6622,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
6636
6622
  var SUPPORTED_PROPS = Object.keys(props.propTypes);
6637
6623
  var customPlayers = [];
6638
6624
 
6639
- var ReactPlayer = /*#__PURE__*/function (_Component) {
6625
+ var ReactPlayer =
6626
+ /*#__PURE__*/
6627
+ function (_Component) {
6640
6628
  _inherits(ReactPlayer, _Component);
6641
6629
 
6642
- var _super = _createSuper(ReactPlayer);
6643
-
6644
6630
  function ReactPlayer() {
6631
+ var _getPrototypeOf2;
6632
+
6645
6633
  var _this;
6646
6634
 
6647
6635
  _classCallCheck(this, ReactPlayer);
@@ -6650,7 +6638,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
6650
6638
  args[_key] = arguments[_key];
6651
6639
  }
6652
6640
 
6653
- _this = _super.call.apply(_super, [this].concat(args));
6641
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
6654
6642
 
6655
6643
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
6656
6644
 
@@ -6761,7 +6749,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
6761
6749
  key: "renderActivePlayer",
6762
6750
  value: function renderActivePlayer(url, activePlayer) {
6763
6751
  if (!url) return null;
6764
- return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
6752
+ return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
6765
6753
  key: activePlayer.displayName,
6766
6754
  ref: this.activePlayerRef,
6767
6755
  config: this.config,
@@ -6798,14 +6786,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
6798
6786
  var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
6799
6787
  var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
6800
6788
 
6801
- var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
6789
+ var preview = _react["default"].createElement(_Preview["default"], {
6802
6790
  url: url,
6803
6791
  light: light,
6804
6792
  playIcon: playIcon,
6805
6793
  onClick: this.handleClickPreview
6806
6794
  });
6807
6795
 
6808
- return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
6796
+ return _react["default"].createElement(Wrapper, _extends({
6809
6797
  ref: this.wrapperRef,
6810
6798
  style: _objectSpread({}, style, {
6811
6799
  width: width,
@@ -7353,7 +7341,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7353
7341
  { className: 'mb-3' },
7354
7342
  nodes.videos[series - 1].title
7355
7343
  ),
7356
- nodes.videos[series - 1] && nodes.videos[series - 1].text && React__default.createElement(BlockContent.BlockContent, _extends._extends({ serializers: getSerializers, blocks: nodes.videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
7344
+ nodes.videos[series - 1] && nodes.videos[series - 1].text && React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ serializers: getSerializers, blocks: nodes.videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
7357
7345
  ),
7358
7346
  React__default.createElement(
7359
7347
  'style',
@@ -7824,7 +7812,7 @@ var MultiMedia = function MultiMedia(props) {
7824
7812
  { xs: 12, md: 12 / medias.length, key: media._key },
7825
7813
  React__default.createElement(
7826
7814
  'a',
7827
- _extends._extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
7815
+ _extends$1._extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
7828
7816
  style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
7829
7817
  React__default.createElement(
7830
7818
  'div',
@@ -8100,7 +8088,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8100
8088
 
8101
8089
  var renderAuthorBiography = function renderAuthorBiography(biography) {
8102
8090
  if (biography) {
8103
- return React__default.createElement(BlockContent.BlockContent, _extends._extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
8091
+ return React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
8104
8092
  }
8105
8093
  };
8106
8094
 
@@ -8237,7 +8225,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8237
8225
  React__default.createElement(
8238
8226
  'div',
8239
8227
  { className: 'mt-2 mb-2' },
8240
- React__default.createElement(BlockContent.BlockContent, _extends._extends({
8228
+ React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
8241
8229
  serializers: getSerializers,
8242
8230
  videoAccountIDs: accountIDs,
8243
8231
  blocks: article.text,
@@ -8434,7 +8422,7 @@ var MultiFigure = function MultiFigure(props) {
8434
8422
  { xs: 12, md: 12 / images.length, key: index },
8435
8423
  React__default.createElement(
8436
8424
  'a',
8437
- _extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
8425
+ _extends$1._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
8438
8426
  React__default.createElement(
8439
8427
  'div',
8440
8428
  { className: 'multi-figure-image-container' },