@mjhls/mjh-framework 1.0.682 → 1.0.684-beta.0

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 (152) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +3 -3
  4. package/dist/cjs/AD300x250x600.js +3 -3
  5. package/dist/cjs/AD728x90.js +4 -4
  6. package/dist/cjs/ADFloatingFooter.js +2 -2
  7. package/dist/cjs/ADGutter.js +2 -2
  8. package/dist/cjs/ADSkyscraper.js +2 -2
  9. package/dist/cjs/ADSponsoredResources.js +2 -2
  10. package/dist/cjs/ADWebcast.js +2 -2
  11. package/dist/cjs/ADWelcome.js +2 -2
  12. package/dist/cjs/AdSlot.js +2 -2
  13. package/dist/cjs/AdSlotsProvider.js +1 -1
  14. package/dist/cjs/ArticleCarousel.js +1 -1
  15. package/dist/cjs/ArticleSeriesListing.js +4 -4
  16. package/dist/cjs/Auth.js +256 -507
  17. package/dist/cjs/{BlockContent-88f69acd.js → BlockContent-091a991f.js} +1 -1
  18. package/dist/cjs/BrowseVideosListing.js +1 -1
  19. package/dist/cjs/CMEDeck.js +5 -5
  20. package/dist/cjs/Column3.js +4 -4
  21. package/dist/cjs/ConferenceArticleCard.js +2 -2
  22. package/dist/cjs/DeckContent.js +7 -7
  23. package/dist/cjs/DeckQueue.js +6 -6
  24. package/dist/cjs/{Dfp-b2bc3b97.js → Dfp-f6a18ed2.js} +1 -1
  25. package/dist/cjs/EventsDeck.js +4 -4
  26. package/dist/cjs/ExternalResources.js +7 -7
  27. package/dist/cjs/Feature.js +3 -3
  28. package/dist/cjs/ForbesHero.js +2 -2
  29. package/dist/cjs/GridContent.js +10 -10
  30. package/dist/cjs/GridHero.js +2 -2
  31. package/dist/cjs/GroupDeck.js +1 -1
  32. package/dist/cjs/HamMagazine.js +4 -4
  33. package/dist/cjs/Hero.js +1 -1
  34. package/dist/cjs/HorizontalHero.js +2 -2
  35. package/dist/cjs/IssueContentDeck.js +2 -2
  36. package/dist/cjs/IssueDeck.js +2 -2
  37. package/dist/cjs/IssueLanding.js +8 -7
  38. package/dist/cjs/LeftNav.js +2 -2
  39. package/dist/cjs/MasterDeck.js +7 -7
  40. package/dist/cjs/NavMagazine.js +4 -4
  41. package/dist/cjs/NavNative.js +3 -3
  42. package/dist/cjs/OncliveHero.js +2 -2
  43. package/dist/cjs/OncliveLargeHero.js +2 -2
  44. package/dist/cjs/PartnerDetailListing.js +1213 -15
  45. package/dist/cjs/PublicationDeck.js +1 -1
  46. package/dist/cjs/QueueDeckExpanded.js +256 -18
  47. package/dist/cjs/RecentNews.js +2 -2
  48. package/dist/cjs/RelatedContent.js +2 -2
  49. package/dist/cjs/{SocialSearchComponent-6b5e5b47.js → SocialSearchComponent-9cd24578.js} +5 -5
  50. package/dist/cjs/TaxonomyCard.js +2 -2
  51. package/dist/cjs/TemplateNormal.js +3 -3
  52. package/dist/cjs/ThumbnailCard.js +1 -1
  53. package/dist/cjs/Ustream.js +2 -2
  54. package/dist/cjs/VerticalHero.js +2 -2
  55. package/dist/cjs/VideoSeriesCard.js +2 -2
  56. package/dist/cjs/VideoSeriesListing.js +3 -3
  57. package/dist/cjs/View.js +486 -119
  58. package/dist/cjs/YahooHero.js +2 -2
  59. package/dist/cjs/YoutubeGroup.js +1 -1
  60. package/dist/cjs/getQuery.js +2 -2
  61. package/dist/cjs/getRelatedArticle.js +354 -5
  62. package/dist/cjs/getSerializers.js +6 -6
  63. package/dist/cjs/{getTargeting-fee8c429.js → getTargeting-9af0ef69.js} +2 -2
  64. package/dist/cjs/getTargeting.js +1 -1
  65. package/dist/cjs/{index-5be2866f.js → index-3294d3bc.js} +1 -1
  66. package/dist/cjs/index-bd6c9f56.js +211 -0
  67. package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
  68. package/dist/cjs/{index-8c9e8ca7.js → index-c49c3b5e.js} +450 -462
  69. package/dist/cjs/{index-2d0a4911.js → index-fa8ed292.js} +27 -34
  70. package/dist/cjs/{index.es-ab3f2690.js → index.es-9110add6.js} +1 -3
  71. package/dist/cjs/index.js +16 -16
  72. package/dist/cjs/{main-b6c96c8d.js → main-a4cb15bb.js} +36 -67
  73. package/dist/cjs/{moment-66a6a284.js → moment-575fe24c.js} +1 -1
  74. package/dist/cjs/timeDifferenceCalc.js +41 -0
  75. package/dist/cjs/urlFor.js +1 -1
  76. package/dist/esm/AD.js +1 -1
  77. package/dist/esm/AD300x250.js +3 -3
  78. package/dist/esm/AD300x250x600.js +3 -3
  79. package/dist/esm/AD728x90.js +4 -4
  80. package/dist/esm/ADFloatingFooter.js +2 -2
  81. package/dist/esm/ADGutter.js +2 -2
  82. package/dist/esm/ADSkyscraper.js +2 -2
  83. package/dist/esm/ADSponsoredResources.js +2 -2
  84. package/dist/esm/ADWebcast.js +2 -2
  85. package/dist/esm/ADWelcome.js +2 -2
  86. package/dist/esm/AdSlot.js +2 -2
  87. package/dist/esm/AdSlotsProvider.js +1 -1
  88. package/dist/esm/ArticleCarousel.js +1 -1
  89. package/dist/esm/ArticleSeriesListing.js +4 -4
  90. package/dist/esm/Auth.js +248 -499
  91. package/dist/esm/{BlockContent-a614acdf.js → BlockContent-e9b4ddcf.js} +1 -1
  92. package/dist/esm/BrowseVideosListing.js +1 -1
  93. package/dist/esm/CMEDeck.js +5 -5
  94. package/dist/esm/Column3.js +4 -4
  95. package/dist/esm/ConferenceArticleCard.js +2 -2
  96. package/dist/esm/DeckContent.js +7 -7
  97. package/dist/esm/DeckQueue.js +6 -6
  98. package/dist/esm/{Dfp-8a8fca18.js → Dfp-96b49def.js} +1 -1
  99. package/dist/esm/EventsDeck.js +4 -4
  100. package/dist/esm/ExternalResources.js +7 -7
  101. package/dist/esm/Feature.js +3 -3
  102. package/dist/esm/ForbesHero.js +2 -2
  103. package/dist/esm/GridContent.js +10 -10
  104. package/dist/esm/GridHero.js +2 -2
  105. package/dist/esm/GroupDeck.js +1 -1
  106. package/dist/esm/HamMagazine.js +4 -4
  107. package/dist/esm/Hero.js +1 -1
  108. package/dist/esm/HorizontalHero.js +2 -2
  109. package/dist/esm/IssueContentDeck.js +2 -2
  110. package/dist/esm/IssueDeck.js +2 -2
  111. package/dist/esm/IssueLanding.js +8 -7
  112. package/dist/esm/LeftNav.js +2 -2
  113. package/dist/esm/MasterDeck.js +7 -7
  114. package/dist/esm/NavMagazine.js +4 -4
  115. package/dist/esm/NavNative.js +3 -3
  116. package/dist/esm/OncliveHero.js +2 -2
  117. package/dist/esm/OncliveLargeHero.js +2 -2
  118. package/dist/esm/PartnerDetailListing.js +1210 -13
  119. package/dist/esm/PublicationDeck.js +1 -1
  120. package/dist/esm/QueueDeckExpanded.js +256 -18
  121. package/dist/esm/RecentNews.js +2 -2
  122. package/dist/esm/RelatedContent.js +2 -2
  123. package/dist/esm/{SocialSearchComponent-7f14e0f3.js → SocialSearchComponent-93233334.js} +5 -5
  124. package/dist/esm/TaxonomyCard.js +2 -2
  125. package/dist/esm/TemplateNormal.js +3 -3
  126. package/dist/esm/ThumbnailCard.js +1 -1
  127. package/dist/esm/Ustream.js +2 -2
  128. package/dist/esm/VerticalHero.js +2 -2
  129. package/dist/esm/VideoSeriesCard.js +2 -2
  130. package/dist/esm/VideoSeriesListing.js +3 -3
  131. package/dist/esm/View.js +460 -93
  132. package/dist/esm/YahooHero.js +2 -2
  133. package/dist/esm/YoutubeGroup.js +1 -1
  134. package/dist/esm/getQuery.js +2 -2
  135. package/dist/esm/getRelatedArticle.js +354 -5
  136. package/dist/esm/getSerializers.js +6 -6
  137. package/dist/esm/{index-93ec3c59.js → index-0e45a0b2.js} +27 -34
  138. package/dist/esm/{index-51a80699.js → index-73819142.js} +19 -20
  139. package/dist/esm/{index-5505d4f9.js → index-85783f24.js} +450 -462
  140. package/dist/esm/index-db3bb315.js +207 -0
  141. package/dist/esm/{index-d2f90501.js → index-ef6d5dcf.js} +1 -1
  142. package/dist/esm/{index.es-938a3a58.js → index.es-29c1cef5.js} +1 -3
  143. package/dist/esm/index.js +14 -14
  144. package/dist/esm/{main-0465b2a0.js → main-5d1e4bd3.js} +34 -65
  145. package/dist/esm/{moment-12415288.js → moment-e2f9b20c.js} +1 -1
  146. package/dist/esm/timeDifferenceCalc.js +39 -0
  147. package/dist/esm/urlFor.js +1 -1
  148. package/package.json +1 -1
  149. /package/dist/cjs/{ADInfeed-c676389b.js → ADInfeed-f27bc4b5.js} +0 -0
  150. /package/dist/cjs/{ADlgInfeed-57d63c87.js → ADlgInfeed-8decfd9e.js} +0 -0
  151. /package/dist/esm/{ADInfeed-97b8cea7.js → ADInfeed-1e0ca5e0.js} +0 -0
  152. /package/dist/esm/{ADlgInfeed-3ab91c75.js → ADlgInfeed-979cf0d5.js} +0 -0
@@ -4,27 +4,27 @@ 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-9a3476fe.js');
7
- var _extends = require('./extends-60837c34.js');
7
+ var _extends$1 = require('./extends-60837c34.js');
8
8
  var inherits = require('./inherits-513d81cd.js');
9
- var _typeof$1 = require('./typeof-725500bc.js');
9
+ var _typeof = require('./typeof-725500bc.js');
10
10
  var React = require('react');
11
11
  var React__default = _interopDefault(React);
12
- var index = require('./index-2d0a4911.js');
12
+ var index = require('./index-fa8ed292.js');
13
13
  var PropTypes = require('prop-types');
14
14
  var PropTypes__default = _interopDefault(PropTypes);
15
15
  var Row = _interopDefault(require('react-bootstrap/Row'));
16
16
  var Col = _interopDefault(require('react-bootstrap/Col'));
17
- var moment = require('./moment-66a6a284.js');
17
+ var moment = require('./moment-575fe24c.js');
18
18
  var Router = require('next/router');
19
19
  var Router__default = _interopDefault(Router);
20
- var index$1 = require('./index-b5eb3ff8.js');
20
+ var index$1 = require('./index-be0c82be.js');
21
21
  var index$2 = require('./index-da796b8c.js');
22
- var main = require('./main-b6c96c8d.js');
22
+ var main = require('./main-a4cb15bb.js');
23
23
  var entities = require('./entities-310b46ee.js');
24
24
  var slicedToArray = require('./slicedToArray-8f385299.js');
25
25
  var Segment = require('./beam-7217b7e7.js');
26
26
  var AdSlot = require('./AdSlot.js');
27
- var BlockContent = require('./BlockContent-88f69acd.js');
27
+ var BlockContent = require('./BlockContent-091a991f.js');
28
28
  var smoothscroll = require('./smoothscroll-95231a70.js');
29
29
  var GroupDeck = require('./GroupDeck.js');
30
30
  var reactBootstrap = require('react-bootstrap');
@@ -97,18 +97,21 @@ var Slideshow = function Slideshow(_ref) {
97
97
  );
98
98
  };
99
99
 
100
- // do not edit .js files directly - edit src/index.jst
101
-
102
-
100
+ var isArray = Array.isArray;
101
+ var keyList = Object.keys;
102
+ var hasProp = Object.prototype.hasOwnProperty;
103
103
 
104
104
  var fastDeepEqual = function equal(a, b) {
105
105
  if (a === b) return true;
106
106
 
107
107
  if (a && b && typeof a == 'object' && typeof b == 'object') {
108
- if (a.constructor !== b.constructor) return false;
108
+ var arrA = isArray(a)
109
+ , arrB = isArray(b)
110
+ , i
111
+ , length
112
+ , key;
109
113
 
110
- var length, i, keys;
111
- if (Array.isArray(a)) {
114
+ if (arrA && arrB) {
112
115
  length = a.length;
113
116
  if (length != b.length) return false;
114
117
  for (i = length; i-- !== 0;)
@@ -116,29 +119,35 @@ var fastDeepEqual = function equal(a, b) {
116
119
  return true;
117
120
  }
118
121
 
122
+ if (arrA != arrB) return false;
119
123
 
124
+ var dateA = a instanceof Date
125
+ , dateB = b instanceof Date;
126
+ if (dateA != dateB) return false;
127
+ if (dateA && dateB) return a.getTime() == b.getTime();
120
128
 
121
- if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
122
- if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
123
- if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
129
+ var regexpA = a instanceof RegExp
130
+ , regexpB = b instanceof RegExp;
131
+ if (regexpA != regexpB) return false;
132
+ if (regexpA && regexpB) return a.toString() == b.toString();
124
133
 
125
- keys = Object.keys(a);
134
+ var keys = keyList(a);
126
135
  length = keys.length;
127
- if (length !== Object.keys(b).length) return false;
136
+
137
+ if (length !== keyList(b).length)
138
+ return false;
128
139
 
129
140
  for (i = length; i-- !== 0;)
130
- if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
141
+ if (!hasProp.call(b, keys[i])) return false;
131
142
 
132
143
  for (i = length; i-- !== 0;) {
133
- var key = keys[i];
134
-
144
+ key = keys[i];
135
145
  if (!equal(a[key], b[key])) return false;
136
146
  }
137
147
 
138
148
  return true;
139
149
  }
140
150
 
141
- // true if both NaN, false otherwise
142
151
  return a!==a && b!==b;
143
152
  };
144
153
 
@@ -1561,235 +1570,199 @@ module.exports = exports['default'];
1561
1570
 
1562
1571
  var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
1563
1572
 
1564
- 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); }
1565
-
1566
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1567
-
1568
- 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); } }
1569
-
1570
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
1573
+ 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; }; }();
1571
1574
 
1572
- 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); }; }
1575
+ 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; };
1573
1576
 
1574
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
1575
-
1576
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
1577
-
1578
- 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; } }
1579
-
1580
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
1581
-
1582
- 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); }
1583
-
1584
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
1577
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1585
1578
 
1586
- 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; }
1579
+ 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; }
1587
1580
 
1588
- 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; }
1581
+ 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; }
1589
1582
 
1590
- 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; }
1591
- /**
1592
- * Check whether a `props` change should result in the video being updated.
1593
- *
1594
- * @param {Object} prevProps
1595
- * @param {Object} props
1583
+ /**
1584
+ * Check whether a `props` change should result in the video being updated.
1585
+ *
1586
+ * @param {Object} prevProps
1587
+ * @param {Object} props
1596
1588
  */
1597
-
1598
1589
  function shouldUpdateVideo(prevProps, props) {
1599
1590
  // A changing video should always trigger an update
1600
1591
  if (prevProps.videoId !== props.videoId) {
1601
1592
  return true;
1602
- } // Otherwise, a change in the start/end time playerVars also requires a player
1603
- // update.
1604
-
1593
+ }
1605
1594
 
1595
+ // Otherwise, a change in the start/end time playerVars also requires a player
1596
+ // update.
1606
1597
  var prevVars = prevProps.opts.playerVars || {};
1607
1598
  var vars = props.opts.playerVars || {};
1599
+
1608
1600
  return prevVars.start !== vars.start || prevVars.end !== vars.end;
1609
1601
  }
1610
- /**
1611
- * Neutralize API options that only require a video update, leaving only options
1612
- * that require a player reset. The results can then be compared to see if a
1613
- * player reset is necessary.
1614
- *
1615
- * @param {Object} opts
1616
- */
1617
-
1618
1602
 
1603
+ /**
1604
+ * Neutralise API options that only require a video update, leaving only options
1605
+ * that require a player reset. The results can then be compared to see if a
1606
+ * player reset is necessary.
1607
+ *
1608
+ * @param {Object} opts
1609
+ */
1619
1610
  function filterResetOptions(opts) {
1620
- return _objectSpread({}, opts, {
1621
- playerVars: _objectSpread({}, opts.playerVars, {
1611
+ return _extends({}, opts, {
1612
+ playerVars: _extends({}, opts.playerVars, {
1622
1613
  autoplay: 0,
1623
1614
  start: 0,
1624
1615
  end: 0
1625
1616
  })
1626
1617
  });
1627
1618
  }
1628
- /**
1629
- * Check whether a `props` change should result in the player being reset.
1630
- * The player is reset when the `props.opts` change, except if the only change
1631
- * is in the `start` and `end` playerVars, because a video update can deal with
1632
- * those.
1633
- *
1634
- * @param {Object} prevProps
1635
- * @param {Object} props
1636
- */
1637
-
1638
1619
 
1620
+ /**
1621
+ * Check whether a `props` change should result in the player being reset.
1622
+ * The player is reset when the `props.opts` change, except if the only change
1623
+ * is in the `start` and `end` playerVars, because a video update can deal with
1624
+ * those.
1625
+ *
1626
+ * @param {Object} prevProps
1627
+ * @param {Object} props
1628
+ */
1639
1629
  function shouldResetPlayer(prevProps, props) {
1640
1630
  return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
1641
1631
  }
1642
- /**
1643
- * Check whether a props change should result in an id or className update.
1644
- *
1645
- * @param {Object} prevProps
1646
- * @param {Object} props
1647
- */
1648
-
1649
1632
 
1633
+ /**
1634
+ * Check whether a props change should result in an id or className update.
1635
+ *
1636
+ * @param {Object} prevProps
1637
+ * @param {Object} props
1638
+ */
1650
1639
  function shouldUpdatePlayer(prevProps, props) {
1651
1640
  return prevProps.id !== props.id || prevProps.className !== props.className;
1652
1641
  }
1653
1642
 
1654
- var YouTube = /*#__PURE__*/function (_React$Component) {
1643
+ var YouTube = function (_React$Component) {
1655
1644
  _inherits(YouTube, _React$Component);
1656
1645
 
1657
- var _super = _createSuper(YouTube);
1658
-
1659
- /**
1660
- * Expose PlayerState constants for convenience. These constants can also be
1661
- * accessed through the global YT object after the YouTube IFrame API is instantiated.
1662
- * https://developers.google.com/youtube/iframe_api_reference#onStateChange
1663
- */
1664
1646
  function YouTube(props) {
1665
- var _this;
1666
-
1667
1647
  _classCallCheck(this, YouTube);
1668
1648
 
1669
- _this = _super.call(this, props);
1649
+ var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
1670
1650
 
1671
- _defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
1651
+ _this.onPlayerReady = function (event) {
1672
1652
  return _this.props.onReady(event);
1673
- });
1653
+ };
1674
1654
 
1675
- _defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
1655
+ _this.onPlayerError = function (event) {
1676
1656
  return _this.props.onError(event);
1677
- });
1657
+ };
1678
1658
 
1679
- _defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
1659
+ _this.onPlayerStateChange = function (event) {
1680
1660
  _this.props.onStateChange(event);
1681
-
1682
1661
  switch (event.data) {
1662
+
1683
1663
  case YouTube.PlayerState.ENDED:
1684
1664
  _this.props.onEnd(event);
1685
-
1686
1665
  break;
1687
1666
 
1688
1667
  case YouTube.PlayerState.PLAYING:
1689
1668
  _this.props.onPlay(event);
1690
-
1691
1669
  break;
1692
1670
 
1693
1671
  case YouTube.PlayerState.PAUSED:
1694
1672
  _this.props.onPause(event);
1695
-
1696
1673
  break;
1697
1674
  }
1698
- });
1675
+ };
1699
1676
 
1700
- _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
1677
+ _this.onPlayerPlaybackRateChange = function (event) {
1701
1678
  return _this.props.onPlaybackRateChange(event);
1702
- });
1679
+ };
1703
1680
 
1704
- _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
1681
+ _this.onPlayerPlaybackQualityChange = function (event) {
1705
1682
  return _this.props.onPlaybackQualityChange(event);
1706
- });
1683
+ };
1707
1684
 
1708
- _defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
1685
+ _this.createPlayer = function () {
1709
1686
  // do not attempt to create a player server-side, it won't work
1710
- if (typeof document === 'undefined') return; // create player
1711
-
1712
- var playerOpts = _objectSpread({}, _this.props.opts, {
1687
+ if (typeof document === 'undefined') return;
1688
+ // create player
1689
+ var playerOpts = _extends({}, _this.props.opts, {
1713
1690
  // preload the `videoId` video if one is already given
1714
1691
  videoId: _this.props.videoId
1715
1692
  });
1716
-
1717
- _this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
1718
-
1693
+ _this.internalPlayer = youTubePlayer(_this.container, playerOpts);
1694
+ // attach event handlers
1719
1695
  _this.internalPlayer.on('ready', _this.onPlayerReady);
1720
-
1721
1696
  _this.internalPlayer.on('error', _this.onPlayerError);
1722
-
1723
1697
  _this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
1724
-
1725
1698
  _this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
1726
-
1727
1699
  _this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
1728
- });
1700
+ };
1729
1701
 
1730
- _defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
1702
+ _this.resetPlayer = function () {
1731
1703
  return _this.internalPlayer.destroy().then(_this.createPlayer);
1732
- });
1704
+ };
1733
1705
 
1734
- _defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
1706
+ _this.updatePlayer = function () {
1735
1707
  _this.internalPlayer.getIframe().then(function (iframe) {
1736
1708
  if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
1737
1709
  if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
1738
1710
  });
1739
- });
1711
+ };
1740
1712
 
1741
- _defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
1713
+ _this.updateVideo = function () {
1742
1714
  if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
1743
1715
  _this.internalPlayer.stopVideo();
1744
-
1745
1716
  return;
1746
- } // set queueing options
1747
-
1717
+ }
1748
1718
 
1719
+ // set queueing options
1749
1720
  var autoplay = false;
1750
1721
  var opts = {
1751
1722
  videoId: _this.props.videoId
1752
1723
  };
1753
-
1754
1724
  if ('playerVars' in _this.props.opts) {
1755
1725
  autoplay = _this.props.opts.playerVars.autoplay === 1;
1756
-
1757
1726
  if ('start' in _this.props.opts.playerVars) {
1758
1727
  opts.startSeconds = _this.props.opts.playerVars.start;
1759
1728
  }
1760
-
1761
1729
  if ('end' in _this.props.opts.playerVars) {
1762
1730
  opts.endSeconds = _this.props.opts.playerVars.end;
1763
1731
  }
1764
- } // if autoplay is enabled loadVideoById
1765
-
1732
+ }
1766
1733
 
1734
+ // if autoplay is enabled loadVideoById
1767
1735
  if (autoplay) {
1768
1736
  _this.internalPlayer.loadVideoById(opts);
1769
-
1770
1737
  return;
1771
- } // default behaviour just cues the video
1772
-
1773
-
1738
+ }
1739
+ // default behaviour just cues the video
1774
1740
  _this.internalPlayer.cueVideoById(opts);
1775
- });
1741
+ };
1776
1742
 
1777
- _defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
1743
+ _this.refContainer = function (container) {
1778
1744
  _this.container = container;
1779
- });
1745
+ };
1780
1746
 
1781
1747
  _this.container = null;
1782
1748
  _this.internalPlayer = null;
1783
1749
  return _this;
1784
1750
  }
1785
1751
 
1752
+ /**
1753
+ * Expose PlayerState constants for convenience. These constants can also be
1754
+ * accessed through the global YT object after the YouTube IFrame API is instantiated.
1755
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
1756
+ */
1757
+
1758
+
1786
1759
  _createClass(YouTube, [{
1787
- key: "componentDidMount",
1760
+ key: 'componentDidMount',
1788
1761
  value: function componentDidMount() {
1789
1762
  this.createPlayer();
1790
1763
  }
1791
1764
  }, {
1792
- key: "componentDidUpdate",
1765
+ key: 'componentDidUpdate',
1793
1766
  value: function componentDidUpdate(prevProps) {
1794
1767
  if (shouldUpdatePlayer(prevProps, this.props)) {
1795
1768
  this.updatePlayer();
@@ -1804,58 +1777,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
1804
1777
  }
1805
1778
  }
1806
1779
  }, {
1807
- key: "componentWillUnmount",
1780
+ key: 'componentWillUnmount',
1808
1781
  value: function componentWillUnmount() {
1809
- /**
1810
- * Note: The `youtube-player` package that is used promisifies all YouTube
1811
- * Player API calls, which introduces a delay of a tick before it actually
1812
- * gets destroyed. Since React attempts to remove the element instantly
1813
- * this method isn't quick enough to reset the container element.
1782
+ /**
1783
+ * Note: The `youtube-player` package that is used promisifies all Youtube
1784
+ * Player API calls, which introduces a delay of a tick before it actually
1785
+ * gets destroyed. Since React attempts to remove the element instantly
1786
+ * this method isn't quick enough to reset the container element.
1814
1787
  */
1815
1788
  this.internalPlayer.destroy();
1816
1789
  }
1817
- /**
1818
- * https://developers.google.com/youtube/iframe_api_reference#onReady
1819
- *
1820
- * @param {Object} event
1821
- * @param {Object} target - player object
1790
+
1791
+ /**
1792
+ * https://developers.google.com/youtube/iframe_api_reference#onReady
1793
+ *
1794
+ * @param {Object} event
1795
+ * @param {Object} target - player object
1796
+ */
1797
+
1798
+
1799
+ /**
1800
+ * https://developers.google.com/youtube/iframe_api_reference#onError
1801
+ *
1802
+ * @param {Object} event
1803
+ * @param {Integer} data - error type
1804
+ * @param {Object} target - player object
1805
+ */
1806
+
1807
+
1808
+ /**
1809
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
1810
+ *
1811
+ * @param {Object} event
1812
+ * @param {Integer} data - status change type
1813
+ * @param {Object} target - actual YT player
1814
+ */
1815
+
1816
+
1817
+ /**
1818
+ * https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
1819
+ *
1820
+ * @param {Object} event
1821
+ * @param {Float} data - playback rate
1822
+ * @param {Object} target - actual YT player
1823
+ */
1824
+
1825
+
1826
+ /**
1827
+ * https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
1828
+ *
1829
+ * @param {Object} event
1830
+ * @param {String} data - playback quality
1831
+ * @param {Object} target - actual YT player
1832
+ */
1833
+
1834
+
1835
+ /**
1836
+ * Initialize the Youtube Player API on the container and attach event handlers
1837
+ */
1838
+
1839
+
1840
+ /**
1841
+ * Shorthand for destroying and then re-creating the Youtube Player
1842
+ */
1843
+
1844
+
1845
+ /**
1846
+ * Method to update the id and class of the Youtube Player iframe.
1847
+ * React should update this automatically but since the Youtube Player API
1848
+ * replaced the DIV that is mounted by React we need to do this manually.
1849
+ */
1850
+
1851
+
1852
+ /**
1853
+ * Call Youtube Player API methods to update the currently playing video.
1854
+ * Depeding on the `opts.playerVars.autoplay` this function uses one of two
1855
+ * Youtube Player API methods to update the video.
1822
1856
  */
1823
1857
 
1824
1858
  }, {
1825
- key: "render",
1859
+ key: 'render',
1826
1860
  value: function render() {
1827
- return /*#__PURE__*/React__default.createElement("div", {
1828
- className: this.props.containerClassName
1829
- }, /*#__PURE__*/React__default.createElement("div", {
1830
- id: this.props.id,
1831
- className: this.props.className,
1832
- ref: this.refContainer
1833
- }));
1861
+ return React__default.createElement(
1862
+ 'div',
1863
+ { className: this.props.containerClassName },
1864
+ React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
1865
+ );
1834
1866
  }
1835
1867
  }]);
1836
1868
 
1837
1869
  return YouTube;
1838
1870
  }(React__default.Component);
1839
1871
 
1840
- _defineProperty(YouTube, "PlayerState", {
1841
- UNSTARTED: -1,
1842
- ENDED: 0,
1843
- PLAYING: 1,
1844
- PAUSED: 2,
1845
- BUFFERING: 3,
1846
- CUED: 5
1847
- });
1848
-
1849
1872
  YouTube.propTypes = {
1850
1873
  videoId: PropTypes__default.string,
1874
+
1851
1875
  // custom ID for player element
1852
1876
  id: PropTypes__default.string,
1877
+
1853
1878
  // custom class name for player element
1854
1879
  className: PropTypes__default.string,
1855
1880
  // custom class name for player container element
1856
1881
  containerClassName: PropTypes__default.string,
1882
+
1857
1883
  // https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
1858
1884
  opts: PropTypes__default.objectOf(PropTypes__default.any),
1885
+
1859
1886
  // event subscriptions
1860
1887
  onReady: PropTypes__default.func,
1861
1888
  onError: PropTypes__default.func,
@@ -1867,7 +1894,6 @@ YouTube.propTypes = {
1867
1894
  onPlaybackQualityChange: PropTypes__default.func
1868
1895
  };
1869
1896
  YouTube.defaultProps = {
1870
- videoId: null,
1871
1897
  id: null,
1872
1898
  className: null,
1873
1899
  opts: {},
@@ -1881,6 +1907,14 @@ YouTube.defaultProps = {
1881
1907
  onPlaybackRateChange: function onPlaybackRateChange() {},
1882
1908
  onPlaybackQualityChange: function onPlaybackQualityChange() {}
1883
1909
  };
1910
+ YouTube.PlayerState = {
1911
+ UNSTARTED: -1,
1912
+ ENDED: 0,
1913
+ PLAYING: 1,
1914
+ PAUSED: 2,
1915
+ BUFFERING: 3,
1916
+ CUED: 5
1917
+ };
1884
1918
 
1885
1919
  var YouTubePlayer = function YouTubePlayer(_ref) {
1886
1920
  var url = _ref.url;
@@ -2144,7 +2178,7 @@ var Media = function Media(_ref) {
2144
2178
  React__default.createElement(
2145
2179
  index$2.LazyLoad,
2146
2180
  { once: true },
2147
- React__default.createElement(reactBootstrap.Figure.Image, _extends._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt }))
2181
+ React__default.createElement(reactBootstrap.Figure.Image, _extends$1._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt }))
2148
2182
  ),
2149
2183
  caption && React__default.createElement(
2150
2184
  reactBootstrap.Figure.Caption,
@@ -2156,7 +2190,7 @@ var Media = function Media(_ref) {
2156
2190
  } else if (caption && caption !== '') {
2157
2191
  return React__default.createElement(
2158
2192
  'a',
2159
- _extends._extends({}, uploadDoc.downloadMedia ? {
2193
+ _extends$1._extends({}, uploadDoc.downloadMedia ? {
2160
2194
  href: uploadDoc.asset.url + '?dl='
2161
2195
  } : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
2162
2196
  style: { paddingLeft: '4px', paddingRight: '4px' },
@@ -2209,7 +2243,7 @@ var Video = function Video(_ref) {
2209
2243
  var onVideoSuccess = function onVideoSuccess(success) {
2210
2244
  //console.log('success:', success.ref)
2211
2245
  var player = success.ref;
2212
- if (_typeof$1._typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
2246
+ if (_typeof._typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
2213
2247
  player.ima3.settings.debug = true;
2214
2248
  if (targeting.content_placement && targeting.document_url) {
2215
2249
  player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
@@ -2724,17 +2758,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2724
2758
 
2725
2759
  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; }
2726
2760
 
2727
- 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; } } }; }
2728
-
2729
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2730
-
2731
- 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."); }
2761
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
2732
2762
 
2733
- 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); }
2763
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
2734
2764
 
2735
- 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; }
2736
-
2737
- 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; }
2765
+ 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; }
2738
2766
 
2739
2767
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
2740
2768
 
@@ -2864,12 +2892,12 @@ function getSDK(url, sdkGlobal) {
2864
2892
 
2865
2893
  function getConfig(props$1, defaultProps, showWarning) {
2866
2894
  var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
2867
-
2868
- var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
2869
- _step;
2895
+ var _iteratorNormalCompletion = true;
2896
+ var _didIteratorError = false;
2897
+ var _iteratorError = undefined;
2870
2898
 
2871
2899
  try {
2872
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
2900
+ for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
2873
2901
  var p = _step.value;
2874
2902
 
2875
2903
  if (props$1[p]) {
@@ -2884,9 +2912,18 @@ function getConfig(props$1, defaultProps, showWarning) {
2884
2912
  }
2885
2913
  }
2886
2914
  } catch (err) {
2887
- _iterator.e(err);
2915
+ _didIteratorError = true;
2916
+ _iteratorError = err;
2888
2917
  } finally {
2889
- _iterator.f();
2918
+ try {
2919
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
2920
+ _iterator["return"]();
2921
+ }
2922
+ } finally {
2923
+ if (_didIteratorError) {
2924
+ throw _iteratorError;
2925
+ }
2926
+ }
2890
2927
  }
2891
2928
 
2892
2929
  return config;
@@ -3033,16 +3070,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
3033
3070
 
3034
3071
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3035
3072
 
3036
- 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); }; }
3037
-
3038
3073
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3039
3074
 
3040
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3041
-
3042
- 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; } }
3043
-
3044
3075
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3045
3076
 
3077
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3078
+
3046
3079
  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); }
3047
3080
 
3048
3081
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -3051,12 +3084,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
3051
3084
 
3052
3085
  var SEEK_ON_PLAY_EXPIRY = 5000;
3053
3086
 
3054
- var Player = /*#__PURE__*/function (_Component) {
3087
+ var Player =
3088
+ /*#__PURE__*/
3089
+ function (_Component) {
3055
3090
  _inherits(Player, _Component);
3056
3091
 
3057
- var _super = _createSuper(Player);
3058
-
3059
3092
  function Player() {
3093
+ var _getPrototypeOf2;
3094
+
3060
3095
  var _this;
3061
3096
 
3062
3097
  _classCallCheck(this, Player);
@@ -3065,7 +3100,7 @@ var Player = /*#__PURE__*/function (_Component) {
3065
3100
  _args[_key] = arguments[_key];
3066
3101
  }
3067
3102
 
3068
- _this = _super.call.apply(_super, [this].concat(_args));
3103
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
3069
3104
 
3070
3105
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
3071
3106
 
@@ -3390,7 +3425,7 @@ var Player = /*#__PURE__*/function (_Component) {
3390
3425
  return null;
3391
3426
  }
3392
3427
 
3393
- return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
3428
+ return _react["default"].createElement(Player, _extends({}, this.props, {
3394
3429
  ref: this.ref,
3395
3430
  onReady: this.handleReady,
3396
3431
  onPlay: this.handlePlay,
@@ -3451,16 +3486,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
3451
3486
 
3452
3487
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3453
3488
 
3454
- 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); }; }
3455
-
3456
3489
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3457
3490
 
3458
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3459
-
3460
- 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; } }
3461
-
3462
3491
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3463
3492
 
3493
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3494
+
3464
3495
  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); }
3465
3496
 
3466
3497
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -3472,12 +3503,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
3472
3503
  function createSinglePlayer(activePlayer) {
3473
3504
  var _class, _temp;
3474
3505
 
3475
- return _temp = _class = /*#__PURE__*/function (_Component) {
3506
+ return _temp = _class =
3507
+ /*#__PURE__*/
3508
+ function (_Component) {
3476
3509
  _inherits(SinglePlayer, _Component);
3477
3510
 
3478
- var _super = _createSuper(SinglePlayer);
3479
-
3480
3511
  function SinglePlayer() {
3512
+ var _getPrototypeOf2;
3513
+
3481
3514
  var _this;
3482
3515
 
3483
3516
  _classCallCheck(this, SinglePlayer);
@@ -3486,7 +3519,7 @@ function createSinglePlayer(activePlayer) {
3486
3519
  args[_key] = arguments[_key];
3487
3520
  }
3488
3521
 
3489
- _this = _super.call.apply(_super, [this].concat(args));
3522
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
3490
3523
 
3491
3524
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
3492
3525
 
@@ -3554,12 +3587,12 @@ function createSinglePlayer(activePlayer) {
3554
3587
  height = _this$props.height,
3555
3588
  Wrapper = _this$props.wrapper;
3556
3589
  var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
3557
- return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
3590
+ return _react["default"].createElement(Wrapper, _extends({
3558
3591
  style: _objectSpread({}, style, {
3559
3592
  width: width,
3560
3593
  height: height
3561
3594
  })
3562
- }, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
3595
+ }, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
3563
3596
  ref: this.ref,
3564
3597
  activePlayer: activePlayer,
3565
3598
  config: this.config
@@ -3605,31 +3638,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
3605
3638
 
3606
3639
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3607
3640
 
3608
- 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); }; }
3609
-
3610
3641
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3611
3642
 
3612
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3613
-
3614
- 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; } }
3615
-
3616
3643
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3617
3644
 
3645
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3646
+
3618
3647
  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); }
3619
3648
 
3620
3649
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
3621
3650
 
3622
3651
  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; }
3623
3652
 
3624
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
3653
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
3625
3654
 
3626
- 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."); }
3655
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
3627
3656
 
3628
- 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); }
3629
-
3630
- 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; }
3631
-
3632
- 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; }
3657
+ 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; }
3633
3658
 
3634
3659
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
3635
3660
 
@@ -3654,12 +3679,14 @@ function parsePlaylist(url) {
3654
3679
  return {};
3655
3680
  }
3656
3681
 
3657
- var YouTube = /*#__PURE__*/function (_Component) {
3682
+ var YouTube =
3683
+ /*#__PURE__*/
3684
+ function (_Component) {
3658
3685
  _inherits(YouTube, _Component);
3659
3686
 
3660
- var _super = _createSuper(YouTube);
3661
-
3662
3687
  function YouTube() {
3688
+ var _getPrototypeOf2;
3689
+
3663
3690
  var _this;
3664
3691
 
3665
3692
  _classCallCheck(this, YouTube);
@@ -3668,7 +3695,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
3668
3695
  args[_key] = arguments[_key];
3669
3696
  }
3670
3697
 
3671
- _this = _super.call.apply(_super, [this].concat(args));
3698
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
3672
3699
 
3673
3700
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
3674
3701
 
@@ -3856,9 +3883,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
3856
3883
  height: '100%',
3857
3884
  display: display
3858
3885
  };
3859
- return /*#__PURE__*/_react["default"].createElement("div", {
3886
+ return _react["default"].createElement("div", {
3860
3887
  style: style
3861
- }, /*#__PURE__*/_react["default"].createElement("div", {
3888
+ }, _react["default"].createElement("div", {
3862
3889
  ref: this.ref
3863
3890
  }));
3864
3891
  }
@@ -3914,16 +3941,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
3914
3941
 
3915
3942
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
3916
3943
 
3917
- 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); }; }
3918
-
3919
3944
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
3920
3945
 
3921
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3922
-
3923
- 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; } }
3924
-
3925
3946
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
3926
3947
 
3948
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
3949
+
3927
3950
  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); }
3928
3951
 
3929
3952
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -3932,14 +3955,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
3932
3955
 
3933
3956
  var SDK_URL = 'https://w.soundcloud.com/player/api.js';
3934
3957
  var SDK_GLOBAL = 'SC';
3935
- var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
3958
+ var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
3936
3959
 
3937
- var SoundCloud = /*#__PURE__*/function (_Component) {
3960
+ var SoundCloud =
3961
+ /*#__PURE__*/
3962
+ function (_Component) {
3938
3963
  _inherits(SoundCloud, _Component);
3939
3964
 
3940
- var _super = _createSuper(SoundCloud);
3941
-
3942
3965
  function SoundCloud() {
3966
+ var _getPrototypeOf2;
3967
+
3943
3968
  var _this;
3944
3969
 
3945
3970
  _classCallCheck(this, SoundCloud);
@@ -3948,7 +3973,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
3948
3973
  args[_key] = arguments[_key];
3949
3974
  }
3950
3975
 
3951
- _this = _super.call.apply(_super, [this].concat(args));
3976
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
3952
3977
 
3953
3978
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
3954
3979
 
@@ -4069,7 +4094,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
4069
4094
  height: '100%',
4070
4095
  display: display
4071
4096
  };
4072
- return /*#__PURE__*/_react["default"].createElement("iframe", {
4097
+ return _react["default"].createElement("iframe", {
4073
4098
  ref: this.ref,
4074
4099
  src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
4075
4100
  style: style,
@@ -4131,16 +4156,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4131
4156
 
4132
4157
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4133
4158
 
4134
- 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); }; }
4135
-
4136
4159
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4137
4160
 
4138
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4139
-
4140
- 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; } }
4141
-
4142
4161
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4143
4162
 
4163
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4164
+
4144
4165
  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); }
4145
4166
 
4146
4167
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4152,12 +4173,14 @@ var SDK_GLOBAL = 'Vimeo';
4152
4173
  var MATCH_URL = /vimeo\.com\/.+/;
4153
4174
  var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
4154
4175
 
4155
- var Vimeo = /*#__PURE__*/function (_Component) {
4176
+ var Vimeo =
4177
+ /*#__PURE__*/
4178
+ function (_Component) {
4156
4179
  _inherits(Vimeo, _Component);
4157
4180
 
4158
- var _super = _createSuper(Vimeo);
4159
-
4160
4181
  function Vimeo() {
4182
+ var _getPrototypeOf2;
4183
+
4161
4184
  var _this;
4162
4185
 
4163
4186
  _classCallCheck(this, Vimeo);
@@ -4166,7 +4189,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
4166
4189
  args[_key] = arguments[_key];
4167
4190
  }
4168
4191
 
4169
- _this = _super.call.apply(_super, [this].concat(args));
4192
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
4170
4193
 
4171
4194
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4172
4195
 
@@ -4323,7 +4346,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
4323
4346
  overflow: 'hidden',
4324
4347
  display: display
4325
4348
  };
4326
- return /*#__PURE__*/_react["default"].createElement("div", {
4349
+ return _react["default"].createElement("div", {
4327
4350
  key: this.props.url,
4328
4351
  ref: this.ref,
4329
4352
  style: style
@@ -4383,16 +4406,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4383
4406
 
4384
4407
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4385
4408
 
4386
- 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); }; }
4387
-
4388
4409
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4389
4410
 
4390
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4391
-
4392
- 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; } }
4393
-
4394
4411
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4395
4412
 
4413
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4414
+
4396
4415
  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); }
4397
4416
 
4398
4417
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4405,12 +4424,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
4405
4424
  var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
4406
4425
  var PLAYER_ID_PREFIX = 'facebook-player-';
4407
4426
 
4408
- var Facebook = /*#__PURE__*/function (_Component) {
4427
+ var Facebook =
4428
+ /*#__PURE__*/
4429
+ function (_Component) {
4409
4430
  _inherits(Facebook, _Component);
4410
4431
 
4411
- var _super = _createSuper(Facebook);
4412
-
4413
4432
  function Facebook() {
4433
+ var _getPrototypeOf2;
4434
+
4414
4435
  var _this;
4415
4436
 
4416
4437
  _classCallCheck(this, Facebook);
@@ -4419,7 +4440,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
4419
4440
  args[_key] = arguments[_key];
4420
4441
  }
4421
4442
 
4422
- _this = _super.call.apply(_super, [this].concat(args));
4443
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
4423
4444
 
4424
4445
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4425
4446
 
@@ -4535,7 +4556,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
4535
4556
  width: '100%',
4536
4557
  height: '100%'
4537
4558
  };
4538
- return /*#__PURE__*/_react["default"].createElement("div", {
4559
+ return _react["default"].createElement("div", {
4539
4560
  style: style,
4540
4561
  id: this.playerID,
4541
4562
  className: "fb-video",
@@ -4595,16 +4616,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4595
4616
 
4596
4617
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4597
4618
 
4598
- 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); }; }
4599
-
4600
4619
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4601
4620
 
4602
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4603
-
4604
- 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; } }
4605
-
4606
4621
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4607
4622
 
4623
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4624
+
4608
4625
  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); }
4609
4626
 
4610
4627
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4615,12 +4632,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
4615
4632
  var SDK_GLOBAL = 'playerjs';
4616
4633
  var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
4617
4634
 
4618
- var Streamable = /*#__PURE__*/function (_Component) {
4635
+ var Streamable =
4636
+ /*#__PURE__*/
4637
+ function (_Component) {
4619
4638
  _inherits(Streamable, _Component);
4620
4639
 
4621
- var _super = _createSuper(Streamable);
4622
-
4623
4640
  function Streamable() {
4641
+ var _getPrototypeOf2;
4642
+
4624
4643
  var _this;
4625
4644
 
4626
4645
  _classCallCheck(this, Streamable);
@@ -4629,7 +4648,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
4629
4648
  args[_key] = arguments[_key];
4630
4649
  }
4631
4650
 
4632
- _this = _super.call.apply(_super, [this].concat(args));
4651
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
4633
4652
 
4634
4653
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4635
4654
 
@@ -4749,7 +4768,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
4749
4768
  width: '100%',
4750
4769
  height: '100%'
4751
4770
  };
4752
- return /*#__PURE__*/_react["default"].createElement("iframe", {
4771
+ return _react["default"].createElement("iframe", {
4753
4772
  ref: this.ref,
4754
4773
  src: "https://streamable.com/o/".concat(id),
4755
4774
  frameBorder: "0",
@@ -4810,16 +4829,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
4810
4829
 
4811
4830
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4812
4831
 
4813
- 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); }; }
4814
-
4815
4832
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4816
4833
 
4817
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4818
-
4819
- 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; } }
4820
-
4821
4834
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4822
4835
 
4836
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4837
+
4823
4838
  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); }
4824
4839
 
4825
4840
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -4830,48 +4845,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
4830
4845
  var SDK_GLOBAL = 'Wistia';
4831
4846
  var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
4832
4847
 
4833
- var Wistia = /*#__PURE__*/function (_Component) {
4848
+ var Wistia =
4849
+ /*#__PURE__*/
4850
+ function (_Component) {
4834
4851
  _inherits(Wistia, _Component);
4835
4852
 
4836
- var _super = _createSuper(Wistia);
4837
-
4838
4853
  function Wistia() {
4854
+ var _getPrototypeOf2;
4855
+
4839
4856
  var _this;
4840
4857
 
4841
4858
  _classCallCheck(this, Wistia);
4842
4859
 
4843
- for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
4844
- _args[_key] = arguments[_key];
4860
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
4861
+ args[_key] = arguments[_key];
4845
4862
  }
4846
4863
 
4847
- _this = _super.call.apply(_super, [this].concat(_args));
4864
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
4848
4865
 
4849
4866
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
4850
4867
 
4851
- _defineProperty(_assertThisInitialized(_this), "onPlay", function () {
4852
- var _this$props;
4853
-
4854
- return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
4855
- });
4856
-
4857
- _defineProperty(_assertThisInitialized(_this), "onPause", function () {
4858
- var _this$props2;
4859
-
4860
- return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
4861
- });
4862
-
4863
- _defineProperty(_assertThisInitialized(_this), "onSeek", function () {
4864
- var _this$props3;
4865
-
4866
- return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
4867
- });
4868
-
4869
- _defineProperty(_assertThisInitialized(_this), "onEnded", function () {
4870
- var _this$props4;
4871
-
4872
- return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
4873
- });
4874
-
4875
4868
  _defineProperty(_assertThisInitialized(_this), "mute", function () {
4876
4869
  _this.callPlayer('mute');
4877
4870
  });
@@ -4893,13 +4886,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
4893
4886
  value: function load(url) {
4894
4887
  var _this2 = this;
4895
4888
 
4896
- var _this$props5 = this.props,
4897
- playing = _this$props5.playing,
4898
- muted = _this$props5.muted,
4899
- controls = _this$props5.controls,
4900
- _onReady = _this$props5.onReady,
4901
- config = _this$props5.config,
4902
- onError = _this$props5.onError;
4889
+ var _this$props = this.props,
4890
+ playing = _this$props.playing,
4891
+ muted = _this$props.muted,
4892
+ controls = _this$props.controls,
4893
+ _onReady = _this$props.onReady,
4894
+ onPlay = _this$props.onPlay,
4895
+ onPause = _this$props.onPause,
4896
+ onSeek = _this$props.onSeek,
4897
+ onEnded = _this$props.onEnded,
4898
+ config = _this$props.config,
4899
+ onError = _this$props.onError;
4903
4900
  (0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
4904
4901
  window._wq = window._wq || [];
4905
4902
 
@@ -4916,28 +4913,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
4916
4913
 
4917
4914
  _this2.unbind();
4918
4915
 
4919
- _this2.player.bind('play', _this2.onPlay);
4916
+ _this2.player.bind('play', onPlay);
4920
4917
 
4921
- _this2.player.bind('pause', _this2.onPause);
4918
+ _this2.player.bind('pause', onPause);
4922
4919
 
4923
- _this2.player.bind('seek', _this2.onSeek);
4920
+ _this2.player.bind('seek', onSeek);
4924
4921
 
4925
- _this2.player.bind('end', _this2.onEnded);
4922
+ _this2.player.bind('end', onEnded);
4926
4923
 
4927
4924
  _onReady();
4928
4925
  }
4929
4926
  });
4930
4927
  }, onError);
4931
4928
  }
4932
- }, {
4933
- key: "unbind",
4934
- value: function unbind() {
4935
- this.player.unbind('play', this.onPlay);
4936
- this.player.unbind('pause', this.onPause);
4937
- this.player.unbind('seek', this.onSeek);
4938
- this.player.unbind('end', this.onEnded);
4939
- } // Proxy methods to prevent listener leaks
4940
-
4941
4929
  }, {
4942
4930
  key: "play",
4943
4931
  value: function play() {
@@ -4948,6 +4936,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
4948
4936
  value: function pause() {
4949
4937
  this.callPlayer('pause');
4950
4938
  }
4939
+ }, {
4940
+ key: "unbind",
4941
+ value: function unbind() {
4942
+ var _this$props2 = this.props,
4943
+ onPlay = _this$props2.onPlay,
4944
+ onPause = _this$props2.onPause,
4945
+ onSeek = _this$props2.onSeek,
4946
+ onEnded = _this$props2.onEnded;
4947
+ this.player.unbind('play', onPlay);
4948
+ this.player.unbind('pause', onPause);
4949
+ this.player.unbind('seek', onSeek);
4950
+ this.player.unbind('end', onEnded);
4951
+ }
4951
4952
  }, {
4952
4953
  key: "stop",
4953
4954
  value: function stop() {
@@ -4993,7 +4994,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
4993
4994
  width: '100%',
4994
4995
  height: '100%'
4995
4996
  };
4996
- return /*#__PURE__*/_react["default"].createElement("div", {
4997
+ return _react["default"].createElement("div", {
4997
4998
  key: id,
4998
4999
  className: className,
4999
5000
  style: style
@@ -5053,16 +5054,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5053
5054
 
5054
5055
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5055
5056
 
5056
- 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); }; }
5057
-
5058
5057
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5059
5058
 
5060
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5061
-
5062
- 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; } }
5063
-
5064
5059
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5065
5060
 
5061
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5062
+
5066
5063
  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); }
5067
5064
 
5068
5065
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -5075,12 +5072,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
5075
5072
  var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
5076
5073
  var PLAYER_ID_PREFIX = 'twitch-player-';
5077
5074
 
5078
- var Twitch = /*#__PURE__*/function (_Component) {
5075
+ var Twitch =
5076
+ /*#__PURE__*/
5077
+ function (_Component) {
5079
5078
  _inherits(Twitch, _Component);
5080
5079
 
5081
- var _super = _createSuper(Twitch);
5082
-
5083
5080
  function Twitch() {
5081
+ var _getPrototypeOf2;
5082
+
5084
5083
  var _this;
5085
5084
 
5086
5085
  _classCallCheck(this, Twitch);
@@ -5089,7 +5088,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
5089
5088
  args[_key] = arguments[_key];
5090
5089
  }
5091
5090
 
5092
- _this = _super.call.apply(_super, [this].concat(args));
5091
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
5093
5092
 
5094
5093
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
5095
5094
 
@@ -5210,7 +5209,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
5210
5209
  width: '100%',
5211
5210
  height: '100%'
5212
5211
  };
5213
- return /*#__PURE__*/_react["default"].createElement("div", {
5212
+ return _react["default"].createElement("div", {
5214
5213
  style: style,
5215
5214
  id: this.playerID
5216
5215
  });
@@ -5263,15 +5262,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
5263
5262
 
5264
5263
  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; }
5265
5264
 
5266
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
5267
-
5268
- 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."); }
5265
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
5269
5266
 
5270
- 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); }
5267
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
5271
5268
 
5272
- 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; }
5273
-
5274
- 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; }
5269
+ 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; }
5275
5270
 
5276
5271
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
5277
5272
 
@@ -5281,16 +5276,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5281
5276
 
5282
5277
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5283
5278
 
5284
- 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); }; }
5285
-
5286
5279
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5287
5280
 
5288
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5289
-
5290
- 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; } }
5291
-
5292
5281
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5293
5282
 
5283
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5284
+
5294
5285
  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); }
5295
5286
 
5296
5287
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -5302,12 +5293,14 @@ var SDK_GLOBAL = 'DM';
5302
5293
  var SDK_GLOBAL_READY = 'dmAsyncInit';
5303
5294
  var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
5304
5295
 
5305
- var DailyMotion = /*#__PURE__*/function (_Component) {
5296
+ var DailyMotion =
5297
+ /*#__PURE__*/
5298
+ function (_Component) {
5306
5299
  _inherits(DailyMotion, _Component);
5307
5300
 
5308
- var _super = _createSuper(DailyMotion);
5309
-
5310
5301
  function DailyMotion() {
5302
+ var _getPrototypeOf2;
5303
+
5311
5304
  var _this;
5312
5305
 
5313
5306
  _classCallCheck(this, DailyMotion);
@@ -5316,7 +5309,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
5316
5309
  args[_key] = arguments[_key];
5317
5310
  }
5318
5311
 
5319
- _this = _super.call.apply(_super, [this].concat(args));
5312
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
5320
5313
 
5321
5314
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
5322
5315
 
@@ -5445,9 +5438,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
5445
5438
  height: '100%',
5446
5439
  display: display
5447
5440
  };
5448
- return /*#__PURE__*/_react["default"].createElement("div", {
5441
+ return _react["default"].createElement("div", {
5449
5442
  style: style
5450
- }, /*#__PURE__*/_react["default"].createElement("div", {
5443
+ }, _react["default"].createElement("div", {
5451
5444
  ref: this.ref
5452
5445
  }));
5453
5446
  }
@@ -5505,16 +5498,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5505
5498
 
5506
5499
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5507
5500
 
5508
- 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); }; }
5509
-
5510
5501
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5511
5502
 
5512
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5513
-
5514
- 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; } }
5515
-
5516
5503
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5517
5504
 
5505
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5506
+
5518
5507
  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); }
5519
5508
 
5520
5509
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -5525,12 +5514,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
5525
5514
  var SDK_GLOBAL = 'Mixcloud';
5526
5515
  var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
5527
5516
 
5528
- var Mixcloud = /*#__PURE__*/function (_Component) {
5517
+ var Mixcloud =
5518
+ /*#__PURE__*/
5519
+ function (_Component) {
5529
5520
  _inherits(Mixcloud, _Component);
5530
5521
 
5531
- var _super = _createSuper(Mixcloud);
5532
-
5533
5522
  function Mixcloud() {
5523
+ var _getPrototypeOf2;
5524
+
5534
5525
  var _this;
5535
5526
 
5536
5527
  _classCallCheck(this, Mixcloud);
@@ -5539,7 +5530,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
5539
5530
  args[_key] = arguments[_key];
5540
5531
  }
5541
5532
 
5542
- _this = _super.call.apply(_super, [this].concat(args));
5533
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
5543
5534
 
5544
5535
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
5545
5536
 
@@ -5642,7 +5633,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
5642
5633
  })); // We have to give the iframe a key here to prevent a
5643
5634
  // weird dialog appearing when loading a new track
5644
5635
 
5645
- return /*#__PURE__*/_react["default"].createElement("iframe", {
5636
+ return _react["default"].createElement("iframe", {
5646
5637
  key: id,
5647
5638
  ref: this.ref,
5648
5639
  style: style,
@@ -5702,33 +5693,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
5702
5693
 
5703
5694
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5704
5695
 
5705
- 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); }; }
5706
-
5707
5696
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5708
5697
 
5709
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5710
-
5711
- 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; } }
5712
-
5713
5698
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5714
5699
 
5700
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5701
+
5715
5702
  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); }
5716
5703
 
5717
5704
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
5718
5705
 
5719
5706
  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; }
5720
5707
 
5721
- 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; } } }; }
5722
-
5723
- 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); }
5724
-
5725
- 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; }
5726
-
5727
5708
  var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
5728
5709
  var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
5729
5710
  var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
5730
5711
  var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
5731
- var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
5712
+ var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
5732
5713
  var HLS_GLOBAL = 'Hls';
5733
5714
  var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
5734
5715
  var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
@@ -5737,11 +5718,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
5737
5718
 
5738
5719
  function canPlay(url) {
5739
5720
  if (url instanceof Array) {
5740
- var _iterator = _createForOfIteratorHelper(url),
5741
- _step;
5721
+ var _iteratorNormalCompletion = true;
5722
+ var _didIteratorError = false;
5723
+ var _iteratorError = undefined;
5742
5724
 
5743
5725
  try {
5744
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
5726
+ for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
5745
5727
  var item = _step.value;
5746
5728
 
5747
5729
  if (typeof item === 'string' && canPlay(item)) {
@@ -5753,9 +5735,18 @@ function canPlay(url) {
5753
5735
  }
5754
5736
  }
5755
5737
  } catch (err) {
5756
- _iterator.e(err);
5738
+ _didIteratorError = true;
5739
+ _iteratorError = err;
5757
5740
  } finally {
5758
- _iterator.f();
5741
+ try {
5742
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
5743
+ _iterator["return"]();
5744
+ }
5745
+ } finally {
5746
+ if (_didIteratorError) {
5747
+ throw _iteratorError;
5748
+ }
5749
+ }
5759
5750
  }
5760
5751
 
5761
5752
  return false;
@@ -5779,12 +5770,14 @@ function canEnablePIP(url) {
5779
5770
  return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
5780
5771
  }
5781
5772
 
5782
- var FilePlayer = /*#__PURE__*/function (_Component) {
5773
+ var FilePlayer =
5774
+ /*#__PURE__*/
5775
+ function (_Component) {
5783
5776
  _inherits(FilePlayer, _Component);
5784
5777
 
5785
- var _super = _createSuper(FilePlayer);
5786
-
5787
5778
  function FilePlayer() {
5779
+ var _getPrototypeOf2;
5780
+
5788
5781
  var _this;
5789
5782
 
5790
5783
  _classCallCheck(this, FilePlayer);
@@ -5793,7 +5786,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
5793
5786
  _args[_key] = arguments[_key];
5794
5787
  }
5795
5788
 
5796
- _this = _super.call.apply(_super, [this].concat(_args));
5789
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
5797
5790
 
5798
5791
  _defineProperty(_assertThisInitialized(_this), "onReady", function () {
5799
5792
  var _this$props;
@@ -5880,19 +5873,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
5880
5873
 
5881
5874
  _defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
5882
5875
  if (typeof source === 'string') {
5883
- return /*#__PURE__*/_react["default"].createElement("source", {
5876
+ return _react["default"].createElement("source", {
5884
5877
  key: index,
5885
5878
  src: source
5886
5879
  });
5887
5880
  }
5888
5881
 
5889
- return /*#__PURE__*/_react["default"].createElement("source", _extends({
5882
+ return _react["default"].createElement("source", _extends({
5890
5883
  key: index
5891
5884
  }, source));
5892
5885
  });
5893
5886
 
5894
5887
  _defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
5895
- return /*#__PURE__*/_react["default"].createElement("track", _extends({
5888
+ return _react["default"].createElement("track", _extends({
5896
5889
  key: index
5897
5890
  }, track));
5898
5891
  });
@@ -5930,10 +5923,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
5930
5923
  key: "componentWillUnmount",
5931
5924
  value: function componentWillUnmount() {
5932
5925
  this.removeListeners(this.player);
5933
-
5934
- if (this.hls) {
5935
- this.hls.destroy();
5936
- }
5937
5926
  }
5938
5927
  }, {
5939
5928
  key: "addListeners",
@@ -6064,6 +6053,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
6064
6053
  value: function stop() {
6065
6054
  this.player.removeAttribute('src');
6066
6055
 
6056
+ if (this.hls) {
6057
+ this.hls.destroy();
6058
+ }
6059
+
6067
6060
  if (this.dash) {
6068
6061
  this.dash.reset();
6069
6062
  }
@@ -6175,7 +6168,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
6175
6168
  width: width === 'auto' ? width : '100%',
6176
6169
  height: height === 'auto' ? height : '100%'
6177
6170
  };
6178
- return /*#__PURE__*/_react["default"].createElement(Element, _extends({
6171
+ return _react["default"].createElement(Element, _extends({
6179
6172
  ref: this.ref,
6180
6173
  src: this.getSource(url),
6181
6174
  style: style,
@@ -6265,16 +6258,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
6265
6258
 
6266
6259
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
6267
6260
 
6268
- 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); }; }
6269
-
6270
6261
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
6271
6262
 
6272
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6273
-
6274
- 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; } }
6275
-
6276
6263
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
6277
6264
 
6265
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6266
+
6278
6267
  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); }
6279
6268
 
6280
6269
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -6283,12 +6272,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
6283
6272
 
6284
6273
  var ICON_SIZE = '64px';
6285
6274
 
6286
- var Preview = /*#__PURE__*/function (_Component) {
6275
+ var Preview =
6276
+ /*#__PURE__*/
6277
+ function (_Component) {
6287
6278
  _inherits(Preview, _Component);
6288
6279
 
6289
- var _super = _createSuper(Preview);
6290
-
6291
6280
  function Preview() {
6281
+ var _getPrototypeOf2;
6282
+
6292
6283
  var _this;
6293
6284
 
6294
6285
  _classCallCheck(this, Preview);
@@ -6297,7 +6288,7 @@ var Preview = /*#__PURE__*/function (_Component) {
6297
6288
  args[_key] = arguments[_key];
6298
6289
  }
6299
6290
 
6300
- _this = _super.call.apply(_super, [this].concat(args));
6291
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
6301
6292
 
6302
6293
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
6303
6294
 
@@ -6395,15 +6386,15 @@ var Preview = /*#__PURE__*/function (_Component) {
6395
6386
  }
6396
6387
  };
6397
6388
 
6398
- var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
6389
+ var defaultPlayIcon = _react["default"].createElement("div", {
6399
6390
  style: styles.shadow,
6400
6391
  className: "react-player__shadow"
6401
- }, /*#__PURE__*/_react["default"].createElement("div", {
6392
+ }, _react["default"].createElement("div", {
6402
6393
  style: styles.playIcon,
6403
6394
  className: "react-player__play-icon"
6404
6395
  }));
6405
6396
 
6406
- return /*#__PURE__*/_react["default"].createElement("div", {
6397
+ return _react["default"].createElement("div", {
6407
6398
  style: styles.preview,
6408
6399
  className: "react-player__preview",
6409
6400
  onClick: onClick
@@ -6440,12 +6431,6 @@ var _Player = _interopRequireDefault(Player_1);
6440
6431
 
6441
6432
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
6442
6433
 
6443
- 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; } } }; }
6444
-
6445
- 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); }
6446
-
6447
- 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; }
6448
-
6449
6434
  var PRELOAD_PLAYERS = [{
6450
6435
  Player: YouTube_1.YouTube,
6451
6436
  configKey: 'youtube',
@@ -6466,16 +6451,16 @@ var PRELOAD_PLAYERS = [{
6466
6451
 
6467
6452
  function renderPreloadPlayers(url, controls, config) {
6468
6453
  var players = [];
6469
-
6470
- var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
6471
- _step;
6454
+ var _iteratorNormalCompletion = true;
6455
+ var _didIteratorError = false;
6456
+ var _iteratorError = undefined;
6472
6457
 
6473
6458
  try {
6474
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
6459
+ for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
6475
6460
  var player = _step.value;
6476
6461
 
6477
6462
  if (!player.Player.canPlay(url) && config[player.configKey].preload) {
6478
- players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
6463
+ players.push(_react["default"].createElement(_Player["default"], {
6479
6464
  key: player.Player.displayName,
6480
6465
  activePlayer: player.Player,
6481
6466
  url: player.url,
@@ -6487,9 +6472,18 @@ function renderPreloadPlayers(url, controls, config) {
6487
6472
  }
6488
6473
  }
6489
6474
  } catch (err) {
6490
- _iterator.e(err);
6475
+ _didIteratorError = true;
6476
+ _iteratorError = err;
6491
6477
  } finally {
6492
- _iterator.f();
6478
+ try {
6479
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
6480
+ _iterator["return"]();
6481
+ }
6482
+ } finally {
6483
+ if (_didIteratorError) {
6484
+ throw _iteratorError;
6485
+ }
6486
+ }
6493
6487
  }
6494
6488
 
6495
6489
  return players;
@@ -6613,17 +6607,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
6613
6607
 
6614
6608
  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); }
6615
6609
 
6616
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
6617
-
6618
- 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."); }
6619
-
6620
- 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); }
6610
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
6621
6611
 
6622
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
6612
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
6623
6613
 
6624
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
6614
+ function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
6625
6615
 
6626
- 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; }
6616
+ 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; } }
6627
6617
 
6628
6618
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
6629
6619
 
@@ -6631,16 +6621,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
6631
6621
 
6632
6622
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
6633
6623
 
6634
- 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); }; }
6635
-
6636
6624
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
6637
6625
 
6638
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6639
-
6640
- 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; } }
6641
-
6642
6626
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
6643
6627
 
6628
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6629
+
6644
6630
  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); }
6645
6631
 
6646
6632
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -6650,12 +6636,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
6650
6636
  var SUPPORTED_PROPS = Object.keys(props.propTypes);
6651
6637
  var customPlayers = [];
6652
6638
 
6653
- var ReactPlayer = /*#__PURE__*/function (_Component) {
6639
+ var ReactPlayer =
6640
+ /*#__PURE__*/
6641
+ function (_Component) {
6654
6642
  _inherits(ReactPlayer, _Component);
6655
6643
 
6656
- var _super = _createSuper(ReactPlayer);
6657
-
6658
6644
  function ReactPlayer() {
6645
+ var _getPrototypeOf2;
6646
+
6659
6647
  var _this;
6660
6648
 
6661
6649
  _classCallCheck(this, ReactPlayer);
@@ -6664,7 +6652,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
6664
6652
  args[_key] = arguments[_key];
6665
6653
  }
6666
6654
 
6667
- _this = _super.call.apply(_super, [this].concat(args));
6655
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
6668
6656
 
6669
6657
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
6670
6658
 
@@ -6775,7 +6763,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
6775
6763
  key: "renderActivePlayer",
6776
6764
  value: function renderActivePlayer(url, activePlayer) {
6777
6765
  if (!url) return null;
6778
- return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
6766
+ return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
6779
6767
  key: activePlayer.displayName,
6780
6768
  ref: this.activePlayerRef,
6781
6769
  config: this.config,
@@ -6812,14 +6800,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
6812
6800
  var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
6813
6801
  var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
6814
6802
 
6815
- var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
6803
+ var preview = _react["default"].createElement(_Preview["default"], {
6816
6804
  url: url,
6817
6805
  light: light,
6818
6806
  playIcon: playIcon,
6819
6807
  onClick: this.handleClickPreview
6820
6808
  });
6821
6809
 
6822
- return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
6810
+ return _react["default"].createElement(Wrapper, _extends({
6823
6811
  ref: this.wrapperRef,
6824
6812
  style: _objectSpread({}, style, {
6825
6813
  width: width,
@@ -7376,7 +7364,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7376
7364
  nodes.videos[series - 1].intro
7377
7365
  )
7378
7366
  ),
7379
- 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()))
7367
+ 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()))
7380
7368
  ),
7381
7369
  React__default.createElement(
7382
7370
  'style',
@@ -7504,7 +7492,7 @@ var Poll = function Poll(_ref) {
7504
7492
  );
7505
7493
  };
7506
7494
 
7507
- var numberOfPaginations = main.main_38 ? 4 : 10;
7495
+ var numberOfPaginations = main.main_35 ? 4 : 10;
7508
7496
 
7509
7497
  var Quiz = function Quiz(_ref) {
7510
7498
  var quizzes = _ref.quizzes,
@@ -7617,7 +7605,7 @@ var Quiz = function Quiz(_ref) {
7617
7605
  var renderPagination = function renderPagination() {
7618
7606
  return React__default.createElement(
7619
7607
  Pagination,
7620
- { className: 'p-0 m-0', size: main.main_38 && 'sm' },
7608
+ { className: 'p-0 m-0', size: main.main_35 && 'sm' },
7621
7609
  React__default.createElement(Pagination.First, { onClick: function onClick() {
7622
7610
  return changePage('first');
7623
7611
  }, disabled: currentPage === 1 }),
@@ -7851,7 +7839,7 @@ var MultiMedia = function MultiMedia(props) {
7851
7839
  { xs: 12, md: 12 / medias.length, key: media._key },
7852
7840
  React__default.createElement(
7853
7841
  'a',
7854
- _extends._extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
7842
+ _extends$1._extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
7855
7843
  style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
7856
7844
  React__default.createElement(
7857
7845
  'div',
@@ -8037,7 +8025,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8037
8025
  var refArray = React.useRef([]);
8038
8026
  var adRefArray = React.useRef([]);
8039
8027
 
8040
- var _ref2 = main.main_39 ? React.useState(100) : React.useState(-25),
8028
+ var _ref2 = main.main_36 ? React.useState(100) : React.useState(-25),
8041
8029
  _ref3 = slicedToArray._slicedToArray(_ref2, 2),
8042
8030
  NavoffsetTop = _ref3[0],
8043
8031
  setNavoffsetTop = _ref3[1];
@@ -8136,7 +8124,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8136
8124
 
8137
8125
  React.useEffect(function () {
8138
8126
  try {
8139
- if (main.main_39) {
8127
+ if (main.main_36) {
8140
8128
  setNavoffsetTop(document.getElementById('navbar-ham').offsetHeight - 15);
8141
8129
  }
8142
8130
  } catch (e) {}
@@ -8161,7 +8149,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8161
8149
 
8162
8150
  var renderAuthorBiography = function renderAuthorBiography(biography) {
8163
8151
  if (biography) {
8164
- return React__default.createElement(BlockContent.BlockContent, _extends._extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
8152
+ return React__default.createElement(BlockContent.BlockContent, _extends$1._extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
8165
8153
  }
8166
8154
  };
8167
8155
 
@@ -8220,7 +8208,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8220
8208
 
8221
8209
  React.useEffect(function () {
8222
8210
  if (!firstLoad) {
8223
- if (main.main_39) {
8211
+ if (main.main_36) {
8224
8212
  grabLoadedAds();
8225
8213
  } else {
8226
8214
  scrollToArticle();
@@ -8244,7 +8232,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8244
8232
  //const activeArticle = path
8245
8233
  //let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
8246
8234
 
8247
- if (!main.main_39) {
8235
+ if (!main.main_36) {
8248
8236
  index.lib_3.getGoogletag().then(function (googletag) {
8249
8237
  if (window.googletag && googletag.pubadsReady) {
8250
8238
  index.lib_3.refresh();
@@ -8252,7 +8240,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8252
8240
  });
8253
8241
  }
8254
8242
  //Refresh leaderboard ad on mobile
8255
- if (main.main_39) {
8243
+ if (main.main_36) {
8256
8244
  var leaderboardSlotId = '';
8257
8245
  index.lib_3.getGoogletag().then(function (googletag) {
8258
8246
  if (window.googletag && googletag.pubadsReady) {
@@ -8284,7 +8272,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8284
8272
  React__default.createElement(
8285
8273
  'div',
8286
8274
  { className: 'ad-box', style: { textAlign: 'center' } },
8287
- main.main_39 && Ads.map(function (ad, index) {
8275
+ main.main_36 && Ads.map(function (ad, index) {
8288
8276
  if (index === 0) {
8289
8277
  return React__default.createElement(
8290
8278
  'div',
@@ -8372,7 +8360,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8372
8360
  React__default.createElement(
8373
8361
  'div',
8374
8362
  { className: 'mt-2 mb-2' },
8375
- React__default.createElement(BlockContent.BlockContent, _extends._extends({
8363
+ React__default.createElement(BlockContent.BlockContent, _extends$1._extends({
8376
8364
  serializers: getSerializers,
8377
8365
  videoAccountIDs: accountIDs,
8378
8366
  blocks: article.text,
@@ -8399,7 +8387,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8399
8387
  React__default.createElement(
8400
8388
  'div',
8401
8389
  { className: 'ad-box', style: { textAlign: 'center' } },
8402
- main.main_39 && nodes.articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
8390
+ main.main_36 && nodes.articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
8403
8391
  if (innerIndex === 0) {
8404
8392
  return React__default.createElement(
8405
8393
  'div',
@@ -8651,7 +8639,7 @@ var MultiFigure = function MultiFigure(props) {
8651
8639
  { xs: 12, md: 12 / images.length, key: index },
8652
8640
  image.link ? React__default.createElement(
8653
8641
  'a',
8654
- _extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
8642
+ _extends$1._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
8655
8643
  React__default.createElement(
8656
8644
  'div',
8657
8645
  { className: 'multi-figure-image-container' },