@mjhls/mjh-framework 1.0.285 → 1.0.287

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 (46) hide show
  1. package/README.md +171 -171
  2. package/dist/cjs/{ADInfeed-a33644bc.js → ADInfeed-db54195d.js} +1 -1
  3. package/dist/cjs/{AdSlot-1886ea26.js → AdSlot-0cd6f861.js} +6 -6
  4. package/dist/cjs/DeckContent.js +11 -11
  5. package/dist/cjs/DeckQueue.js +1 -1
  6. package/dist/cjs/{Figure-a7cd5161.js → Figure-8789df2d.js} +1 -1
  7. package/dist/cjs/{GridContent-26572c38.js → GridContent-fa2e1b56.js} +3 -3
  8. package/dist/cjs/GridContent.js +4 -4
  9. package/dist/cjs/IssueContentDeck.js +1 -1
  10. package/dist/cjs/IssueDeck.js +1 -1
  11. package/dist/cjs/MasterDeck.js +9 -9
  12. package/dist/cjs/{Normal-92be86eb.js → Normal-39da6300.js} +30 -30
  13. package/dist/cjs/PublicationDeck.js +1 -1
  14. package/dist/cjs/QueueDeckExpanded.js +3 -3
  15. package/dist/cjs/{TaxonomyCard-cf5bbc07.js → TaxonomyCard-7ba4a872.js} +1 -1
  16. package/dist/cjs/TaxonomyCard.js +2 -2
  17. package/dist/cjs/TemplateNormal.js +2 -2
  18. package/dist/cjs/ThumbnailCard.js +1 -1
  19. package/dist/cjs/VideoSeriesListing.js +1 -1
  20. package/dist/cjs/{YoutubeGroup-98ffbc57.js → YoutubeGroup-39eba427.js} +4 -4
  21. package/dist/cjs/YoutubeGroup.js +1 -1
  22. package/dist/cjs/{index-39beccb3.js → index-be0c82be.js} +1 -2
  23. package/dist/cjs/index.js +574 -565
  24. package/dist/esm/{ADInfeed-fd816c1f.js → ADInfeed-ac3ac372.js} +1 -1
  25. package/dist/esm/{AdSlot-cc6a4f74.js → AdSlot-03043ffb.js} +6 -6
  26. package/dist/esm/DeckContent.js +11 -11
  27. package/dist/esm/DeckQueue.js +1 -1
  28. package/dist/esm/{Figure-d6e22818.js → Figure-b5847ea2.js} +1 -1
  29. package/dist/esm/{GridContent-2e9e7528.js → GridContent-88ed988c.js} +2 -2
  30. package/dist/esm/GridContent.js +4 -4
  31. package/dist/esm/IssueContentDeck.js +1 -1
  32. package/dist/esm/IssueDeck.js +1 -1
  33. package/dist/esm/MasterDeck.js +9 -9
  34. package/dist/esm/{Normal-319bc9fb.js → Normal-246ae27e.js} +30 -30
  35. package/dist/esm/PublicationDeck.js +1 -1
  36. package/dist/esm/QueueDeckExpanded.js +3 -3
  37. package/dist/esm/{TaxonomyCard-ee1a22ae.js → TaxonomyCard-2d0ab635.js} +1 -1
  38. package/dist/esm/TaxonomyCard.js +2 -2
  39. package/dist/esm/TemplateNormal.js +2 -2
  40. package/dist/esm/ThumbnailCard.js +1 -1
  41. package/dist/esm/VideoSeriesListing.js +1 -1
  42. package/dist/esm/{YoutubeGroup-562ed456.js → YoutubeGroup-f59297bb.js} +4 -4
  43. package/dist/esm/YoutubeGroup.js +1 -1
  44. package/dist/esm/{index-3849e3fe.js → index-73819142.js} +1 -2
  45. package/dist/esm/index.js +578 -569
  46. package/package.json +103 -103
package/dist/cjs/index.js CHANGED
@@ -25,22 +25,22 @@ var Link = _interopDefault(require('next/link'));
25
25
  var Router = require('next/router');
26
26
  var Router__default = _interopDefault(Router);
27
27
  require('react-dom');
28
- var index = require('./index-39beccb3.js');
28
+ var index = require('./index-be0c82be.js');
29
29
  require('./index-fa0fb52c.js');
30
30
  var entities = require('./entities-310b46ee.js');
31
31
  var slicedToArray = require('./slicedToArray-e38fb29d.js');
32
- var AdSlot = require('./AdSlot-1886ea26.js');
32
+ var AdSlot = require('./AdSlot-0cd6f861.js');
33
33
  require('./promise-2c453658.js');
34
- require('./ADInfeed-a33644bc.js');
34
+ require('./ADInfeed-db54195d.js');
35
35
  var DeckContent = require('./DeckContent.js');
36
36
  var get$1 = require('./get-de2660c3.js');
37
- var GridContent = require('./GridContent-26572c38.js');
37
+ var GridContent = require('./GridContent-fa2e1b56.js');
38
38
  var DeckQueue = require('./DeckQueue.js');
39
39
  require('react-bootstrap/Media');
40
40
  var ThumbnailCard = require('./ThumbnailCard.js');
41
- var TaxonomyCard = require('./TaxonomyCard-cf5bbc07.js');
41
+ var TaxonomyCard = require('./TaxonomyCard-7ba4a872.js');
42
42
  var GroupDeck = require('./GroupDeck.js');
43
- var YoutubeGroup = require('./YoutubeGroup-98ffbc57.js');
43
+ var YoutubeGroup = require('./YoutubeGroup-39eba427.js');
44
44
  var reactBootstrap = require('react-bootstrap');
45
45
  var QueueDeckExpanded = require('./QueueDeckExpanded.js');
46
46
  var index_esm = require('./index.esm-340d3792.js');
@@ -52,7 +52,7 @@ var IssueDeck = require('./IssueDeck.js');
52
52
  require('react-bootstrap/Badge');
53
53
  var IssueContentDeck = require('./IssueContentDeck.js');
54
54
  var Spinner = _interopDefault(require('react-bootstrap/Spinner'));
55
- var TemplateNormal = require('./Normal-92be86eb.js');
55
+ var TemplateNormal = require('./Normal-39da6300.js');
56
56
  require('react-bootstrap/ListGroup');
57
57
  var Head = _interopDefault(require('next/head'));
58
58
  var Accordion = _interopDefault(require('react-bootstrap/Accordion'));
@@ -63,7 +63,6 @@ require('react-bootstrap/Navbar');
63
63
  require('react-bootstrap/NavDropdown');
64
64
  require('react-bootstrap/Form');
65
65
  require('react-bootstrap/FormControl');
66
- var Modal = _interopDefault(require('react-bootstrap/Modal'));
67
66
  var Pagination = _interopDefault(require('react-bootstrap/Pagination'));
68
67
  var dynamic = _interopDefault(require('next/dynamic'));
69
68
  var Carousel = _interopDefault(require('react-bootstrap/Carousel'));
@@ -3029,14 +3028,21 @@ var ADWelcome = function ADWelcome(_ref) {
3029
3028
  adTargeting = _useState2[0],
3030
3029
  setTargeting = _useState2[1];
3031
3030
 
3031
+ var adRef = React.useRef(null);
3032
+
3033
+ var _useState3 = React.useState(),
3034
+ _useState4 = slicedToArray._slicedToArray(_useState3, 2),
3035
+ showAd = _useState4[0],
3036
+ setShowAd = _useState4[1];
3037
+
3032
3038
  var calculateTimeLeft = function calculateTimeLeft(timeLeft) {
3033
3039
  return --timeLeft;
3034
3040
  };
3035
3041
 
3036
- var _useState3 = React.useState(calculateTimeLeft(counter)),
3037
- _useState4 = slicedToArray._slicedToArray(_useState3, 2),
3038
- timeLeft = _useState4[0],
3039
- setTimeLeft = _useState4[1];
3042
+ var _useState5 = React.useState(calculateTimeLeft(counter + 1)),
3043
+ _useState6 = slicedToArray._slicedToArray(_useState5, 2),
3044
+ timeLeft = _useState6[0],
3045
+ setTimeLeft = _useState6[1];
3040
3046
 
3041
3047
  React.useEffect(function () {
3042
3048
  if (timeLeft > 0) {
@@ -3048,9 +3054,17 @@ var ADWelcome = function ADWelcome(_ref) {
3048
3054
  }
3049
3055
  });
3050
3056
 
3057
+ React.useEffect(function () {
3058
+ if (typeof showAd !== 'undefined' && showAd) {
3059
+ adRef.current.style.opacity = '1';
3060
+ } else if (typeof showAd !== 'undefined' && !showAd) {
3061
+ setFlag(true);
3062
+ }
3063
+ }, [showAd]);
3064
+
3051
3065
  return React__default.createElement(
3052
- Modal,
3053
- { show: true, 'aria-labelledby': 'contained-modal-title-vcenter', backdrop: 'static', style: { outline: 'none' }, dialogClassName: 'welcome-modal' },
3066
+ 'div',
3067
+ { ref: adRef, style: { outline: 'none', opacity: 0 }, className: 'welcome-modal' },
3054
3068
  React__default.createElement(
3055
3069
  'div',
3056
3070
  { className: 'right-top', style: { position: 'absolute', top: 0, right: 0, textAlign: 'center', margin: '2rem' } },
@@ -3085,14 +3099,14 @@ var ADWelcome = function ADWelcome(_ref) {
3085
3099
  React__default.createElement('img', { style: { width: '100%' }, src: Website.logo, alt: Website.title })
3086
3100
  ),
3087
3101
  React__default.createElement(
3088
- Modal.Body,
3102
+ 'div',
3089
3103
  { className: title, style: { position: 'relative', width: '300px', height: '250px', margin: 'auto', top: '10rem' } },
3090
- React__default.createElement(AdSlot.DFPAdSlot, { className: className, slotId: slotId, networkID: networkID, sizes: sizes, adUnit: adUnit, targeting: adTargeting, refreshFlag: false })
3104
+ React__default.createElement(AdSlot.DFPAdSlot, { className: className, slotId: slotId, networkID: networkID, sizes: sizes, adUnit: adUnit, targeting: adTargeting, refreshFlag: false, setShowAd: setShowAd })
3091
3105
  ),
3092
3106
  React__default.createElement(
3093
3107
  'style',
3094
3108
  { jsx: 'true' },
3095
- '\n .modal.show {\n padding: 0px;\n }\n .continue-site:hover {\n cursor: pointer;\n }\n\n .welcome-modal {\n max-width: 100% !important;\n margin: 0px !important;\n }\n @media (min-width: 1200px) {\n .modal-backdrop {\n display: block;\n }\n .modal-content {\n display: block;\n height: 100vh;\n }\n }\n '
3109
+ '\n .continue-site:hover {\n cursor: pointer;\n }\n\n .welcome-modal {\n max-width: 100% !important;\n margin: 0px !important;\n }\n '
3096
3110
  )
3097
3111
  );
3098
3112
  };
@@ -3160,18 +3174,21 @@ var Slideshow = function Slideshow(_ref) {
3160
3174
  );
3161
3175
  };
3162
3176
 
3163
- // do not edit .js files directly - edit src/index.jst
3164
-
3165
-
3177
+ var isArray = Array.isArray;
3178
+ var keyList = Object.keys;
3179
+ var hasProp = Object.prototype.hasOwnProperty;
3166
3180
 
3167
3181
  var fastDeepEqual = function equal(a, b) {
3168
3182
  if (a === b) return true;
3169
3183
 
3170
3184
  if (a && b && typeof a == 'object' && typeof b == 'object') {
3171
- if (a.constructor !== b.constructor) return false;
3185
+ var arrA = isArray(a)
3186
+ , arrB = isArray(b)
3187
+ , i
3188
+ , length
3189
+ , key;
3172
3190
 
3173
- var length, i, keys;
3174
- if (Array.isArray(a)) {
3191
+ if (arrA && arrB) {
3175
3192
  length = a.length;
3176
3193
  if (length != b.length) return false;
3177
3194
  for (i = length; i-- !== 0;)
@@ -3179,29 +3196,35 @@ var fastDeepEqual = function equal(a, b) {
3179
3196
  return true;
3180
3197
  }
3181
3198
 
3199
+ if (arrA != arrB) return false;
3182
3200
 
3201
+ var dateA = a instanceof Date
3202
+ , dateB = b instanceof Date;
3203
+ if (dateA != dateB) return false;
3204
+ if (dateA && dateB) return a.getTime() == b.getTime();
3183
3205
 
3184
- if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
3185
- if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
3186
- if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
3206
+ var regexpA = a instanceof RegExp
3207
+ , regexpB = b instanceof RegExp;
3208
+ if (regexpA != regexpB) return false;
3209
+ if (regexpA && regexpB) return a.toString() == b.toString();
3187
3210
 
3188
- keys = Object.keys(a);
3211
+ var keys = keyList(a);
3189
3212
  length = keys.length;
3190
- if (length !== Object.keys(b).length) return false;
3213
+
3214
+ if (length !== keyList(b).length)
3215
+ return false;
3191
3216
 
3192
3217
  for (i = length; i-- !== 0;)
3193
- if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
3218
+ if (!hasProp.call(b, keys[i])) return false;
3194
3219
 
3195
3220
  for (i = length; i-- !== 0;) {
3196
- var key = keys[i];
3197
-
3221
+ key = keys[i];
3198
3222
  if (!equal(a[key], b[key])) return false;
3199
3223
  }
3200
3224
 
3201
3225
  return true;
3202
3226
  }
3203
3227
 
3204
- // true if both NaN, false otherwise
3205
3228
  return a!==a && b!==b;
3206
3229
  };
3207
3230
 
@@ -4224,7 +4247,7 @@ function formatValue(ctx, value, recurseTimes) {
4224
4247
  var base = '', array = false, braces = ['{', '}'];
4225
4248
 
4226
4249
  // Make Array say that they are Array
4227
- if (isArray(value)) {
4250
+ if (isArray$1(value)) {
4228
4251
  array = true;
4229
4252
  braces = ['[', ']'];
4230
4253
  }
@@ -4403,7 +4426,7 @@ function reduceToSingleString(output, base, braces) {
4403
4426
 
4404
4427
  // NOTE: These type checking functions intentionally don't use `instanceof`
4405
4428
  // because it is fragile and can be easily faked with `Object.create()`.
4406
- function isArray(ar) {
4429
+ function isArray$1(ar) {
4407
4430
  return Array.isArray(ar);
4408
4431
  }
4409
4432
 
@@ -4530,7 +4553,7 @@ var util = {
4530
4553
  isNullOrUndefined: isNullOrUndefined,
4531
4554
  isNull: isNull,
4532
4555
  isBoolean: isBoolean,
4533
- isArray: isArray,
4556
+ isArray: isArray$1,
4534
4557
  inspect: inspect,
4535
4558
  deprecate: deprecate,
4536
4559
  format: format,
@@ -5197,235 +5220,199 @@ module.exports = exports['default'];
5197
5220
 
5198
5221
  var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
5199
5222
 
5200
- 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); }
5201
-
5202
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5203
-
5204
- 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); } }
5205
-
5206
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5207
-
5208
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
5223
+ 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; }; }();
5209
5224
 
5210
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5211
-
5212
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5213
-
5214
- 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; } }
5225
+ 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; };
5215
5226
 
5216
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5217
-
5218
- 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); }
5219
-
5220
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
5227
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5221
5228
 
5222
- 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; }
5229
+ 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; }
5223
5230
 
5224
- 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; }
5231
+ 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; }
5225
5232
 
5226
- 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; }
5227
- /**
5228
- * Check whether a `props` change should result in the video being updated.
5229
- *
5230
- * @param {Object} prevProps
5231
- * @param {Object} props
5233
+ /**
5234
+ * Check whether a `props` change should result in the video being updated.
5235
+ *
5236
+ * @param {Object} prevProps
5237
+ * @param {Object} props
5232
5238
  */
5233
-
5234
5239
  function shouldUpdateVideo(prevProps, props) {
5235
5240
  // A changing video should always trigger an update
5236
5241
  if (prevProps.videoId !== props.videoId) {
5237
5242
  return true;
5238
- } // Otherwise, a change in the start/end time playerVars also requires a player
5239
- // update.
5240
-
5243
+ }
5241
5244
 
5245
+ // Otherwise, a change in the start/end time playerVars also requires a player
5246
+ // update.
5242
5247
  var prevVars = prevProps.opts.playerVars || {};
5243
5248
  var vars = props.opts.playerVars || {};
5249
+
5244
5250
  return prevVars.start !== vars.start || prevVars.end !== vars.end;
5245
5251
  }
5246
- /**
5247
- * Neutralize API options that only require a video update, leaving only options
5248
- * that require a player reset. The results can then be compared to see if a
5249
- * player reset is necessary.
5250
- *
5251
- * @param {Object} opts
5252
- */
5253
-
5254
5252
 
5253
+ /**
5254
+ * Neutralise API options that only require a video update, leaving only options
5255
+ * that require a player reset. The results can then be compared to see if a
5256
+ * player reset is necessary.
5257
+ *
5258
+ * @param {Object} opts
5259
+ */
5255
5260
  function filterResetOptions(opts) {
5256
- return _objectSpread({}, opts, {
5257
- playerVars: _objectSpread({}, opts.playerVars, {
5261
+ return _extends({}, opts, {
5262
+ playerVars: _extends({}, opts.playerVars, {
5258
5263
  autoplay: 0,
5259
5264
  start: 0,
5260
5265
  end: 0
5261
5266
  })
5262
5267
  });
5263
5268
  }
5264
- /**
5265
- * Check whether a `props` change should result in the player being reset.
5266
- * The player is reset when the `props.opts` change, except if the only change
5267
- * is in the `start` and `end` playerVars, because a video update can deal with
5268
- * those.
5269
- *
5270
- * @param {Object} prevProps
5271
- * @param {Object} props
5272
- */
5273
-
5274
5269
 
5270
+ /**
5271
+ * Check whether a `props` change should result in the player being reset.
5272
+ * The player is reset when the `props.opts` change, except if the only change
5273
+ * is in the `start` and `end` playerVars, because a video update can deal with
5274
+ * those.
5275
+ *
5276
+ * @param {Object} prevProps
5277
+ * @param {Object} props
5278
+ */
5275
5279
  function shouldResetPlayer(prevProps, props) {
5276
5280
  return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
5277
5281
  }
5278
- /**
5279
- * Check whether a props change should result in an id or className update.
5280
- *
5281
- * @param {Object} prevProps
5282
- * @param {Object} props
5283
- */
5284
-
5285
5282
 
5283
+ /**
5284
+ * Check whether a props change should result in an id or className update.
5285
+ *
5286
+ * @param {Object} prevProps
5287
+ * @param {Object} props
5288
+ */
5286
5289
  function shouldUpdatePlayer(prevProps, props) {
5287
5290
  return prevProps.id !== props.id || prevProps.className !== props.className;
5288
5291
  }
5289
5292
 
5290
- var YouTube = /*#__PURE__*/function (_React$Component) {
5293
+ var YouTube = function (_React$Component) {
5291
5294
  _inherits(YouTube, _React$Component);
5292
5295
 
5293
- var _super = _createSuper(YouTube);
5294
-
5295
- /**
5296
- * Expose PlayerState constants for convenience. These constants can also be
5297
- * accessed through the global YT object after the YouTube IFrame API is instantiated.
5298
- * https://developers.google.com/youtube/iframe_api_reference#onStateChange
5299
- */
5300
5296
  function YouTube(props) {
5301
- var _this;
5302
-
5303
5297
  _classCallCheck(this, YouTube);
5304
5298
 
5305
- _this = _super.call(this, props);
5299
+ var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
5306
5300
 
5307
- _defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
5301
+ _this.onPlayerReady = function (event) {
5308
5302
  return _this.props.onReady(event);
5309
- });
5303
+ };
5310
5304
 
5311
- _defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
5305
+ _this.onPlayerError = function (event) {
5312
5306
  return _this.props.onError(event);
5313
- });
5307
+ };
5314
5308
 
5315
- _defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
5309
+ _this.onPlayerStateChange = function (event) {
5316
5310
  _this.props.onStateChange(event);
5317
-
5318
5311
  switch (event.data) {
5312
+
5319
5313
  case YouTube.PlayerState.ENDED:
5320
5314
  _this.props.onEnd(event);
5321
-
5322
5315
  break;
5323
5316
 
5324
5317
  case YouTube.PlayerState.PLAYING:
5325
5318
  _this.props.onPlay(event);
5326
-
5327
5319
  break;
5328
5320
 
5329
5321
  case YouTube.PlayerState.PAUSED:
5330
5322
  _this.props.onPause(event);
5331
-
5332
5323
  break;
5333
5324
  }
5334
- });
5325
+ };
5335
5326
 
5336
- _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
5327
+ _this.onPlayerPlaybackRateChange = function (event) {
5337
5328
  return _this.props.onPlaybackRateChange(event);
5338
- });
5329
+ };
5339
5330
 
5340
- _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
5331
+ _this.onPlayerPlaybackQualityChange = function (event) {
5341
5332
  return _this.props.onPlaybackQualityChange(event);
5342
- });
5333
+ };
5343
5334
 
5344
- _defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
5335
+ _this.createPlayer = function () {
5345
5336
  // do not attempt to create a player server-side, it won't work
5346
- if (typeof document === 'undefined') return; // create player
5347
-
5348
- var playerOpts = _objectSpread({}, _this.props.opts, {
5337
+ if (typeof document === 'undefined') return;
5338
+ // create player
5339
+ var playerOpts = _extends({}, _this.props.opts, {
5349
5340
  // preload the `videoId` video if one is already given
5350
5341
  videoId: _this.props.videoId
5351
5342
  });
5352
-
5353
- _this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
5354
-
5343
+ _this.internalPlayer = youTubePlayer(_this.container, playerOpts);
5344
+ // attach event handlers
5355
5345
  _this.internalPlayer.on('ready', _this.onPlayerReady);
5356
-
5357
5346
  _this.internalPlayer.on('error', _this.onPlayerError);
5358
-
5359
5347
  _this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
5360
-
5361
5348
  _this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
5362
-
5363
5349
  _this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
5364
- });
5350
+ };
5365
5351
 
5366
- _defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
5352
+ _this.resetPlayer = function () {
5367
5353
  return _this.internalPlayer.destroy().then(_this.createPlayer);
5368
- });
5354
+ };
5369
5355
 
5370
- _defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
5356
+ _this.updatePlayer = function () {
5371
5357
  _this.internalPlayer.getIframe().then(function (iframe) {
5372
5358
  if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
5373
5359
  if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
5374
5360
  });
5375
- });
5361
+ };
5376
5362
 
5377
- _defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
5363
+ _this.updateVideo = function () {
5378
5364
  if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
5379
5365
  _this.internalPlayer.stopVideo();
5380
-
5381
5366
  return;
5382
- } // set queueing options
5383
-
5367
+ }
5384
5368
 
5369
+ // set queueing options
5385
5370
  var autoplay = false;
5386
5371
  var opts = {
5387
5372
  videoId: _this.props.videoId
5388
5373
  };
5389
-
5390
5374
  if ('playerVars' in _this.props.opts) {
5391
5375
  autoplay = _this.props.opts.playerVars.autoplay === 1;
5392
-
5393
5376
  if ('start' in _this.props.opts.playerVars) {
5394
5377
  opts.startSeconds = _this.props.opts.playerVars.start;
5395
5378
  }
5396
-
5397
5379
  if ('end' in _this.props.opts.playerVars) {
5398
5380
  opts.endSeconds = _this.props.opts.playerVars.end;
5399
5381
  }
5400
- } // if autoplay is enabled loadVideoById
5401
-
5382
+ }
5402
5383
 
5384
+ // if autoplay is enabled loadVideoById
5403
5385
  if (autoplay) {
5404
5386
  _this.internalPlayer.loadVideoById(opts);
5405
-
5406
5387
  return;
5407
- } // default behaviour just cues the video
5408
-
5409
-
5388
+ }
5389
+ // default behaviour just cues the video
5410
5390
  _this.internalPlayer.cueVideoById(opts);
5411
- });
5391
+ };
5412
5392
 
5413
- _defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
5393
+ _this.refContainer = function (container) {
5414
5394
  _this.container = container;
5415
- });
5395
+ };
5416
5396
 
5417
5397
  _this.container = null;
5418
5398
  _this.internalPlayer = null;
5419
5399
  return _this;
5420
5400
  }
5421
5401
 
5402
+ /**
5403
+ * Expose PlayerState constants for convenience. These constants can also be
5404
+ * accessed through the global YT object after the YouTube IFrame API is instantiated.
5405
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
5406
+ */
5407
+
5408
+
5422
5409
  _createClass(YouTube, [{
5423
- key: "componentDidMount",
5410
+ key: 'componentDidMount',
5424
5411
  value: function componentDidMount() {
5425
5412
  this.createPlayer();
5426
5413
  }
5427
5414
  }, {
5428
- key: "componentDidUpdate",
5415
+ key: 'componentDidUpdate',
5429
5416
  value: function componentDidUpdate(prevProps) {
5430
5417
  if (shouldUpdatePlayer(prevProps, this.props)) {
5431
5418
  this.updatePlayer();
@@ -5440,58 +5427,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
5440
5427
  }
5441
5428
  }
5442
5429
  }, {
5443
- key: "componentWillUnmount",
5430
+ key: 'componentWillUnmount',
5444
5431
  value: function componentWillUnmount() {
5445
- /**
5446
- * Note: The `youtube-player` package that is used promisifies all YouTube
5447
- * Player API calls, which introduces a delay of a tick before it actually
5448
- * gets destroyed. Since React attempts to remove the element instantly
5449
- * this method isn't quick enough to reset the container element.
5432
+ /**
5433
+ * Note: The `youtube-player` package that is used promisifies all Youtube
5434
+ * Player API calls, which introduces a delay of a tick before it actually
5435
+ * gets destroyed. Since React attempts to remove the element instantly
5436
+ * this method isn't quick enough to reset the container element.
5450
5437
  */
5451
5438
  this.internalPlayer.destroy();
5452
5439
  }
5453
- /**
5454
- * https://developers.google.com/youtube/iframe_api_reference#onReady
5455
- *
5456
- * @param {Object} event
5457
- * @param {Object} target - player object
5440
+
5441
+ /**
5442
+ * https://developers.google.com/youtube/iframe_api_reference#onReady
5443
+ *
5444
+ * @param {Object} event
5445
+ * @param {Object} target - player object
5446
+ */
5447
+
5448
+
5449
+ /**
5450
+ * https://developers.google.com/youtube/iframe_api_reference#onError
5451
+ *
5452
+ * @param {Object} event
5453
+ * @param {Integer} data - error type
5454
+ * @param {Object} target - player object
5455
+ */
5456
+
5457
+
5458
+ /**
5459
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
5460
+ *
5461
+ * @param {Object} event
5462
+ * @param {Integer} data - status change type
5463
+ * @param {Object} target - actual YT player
5464
+ */
5465
+
5466
+
5467
+ /**
5468
+ * https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
5469
+ *
5470
+ * @param {Object} event
5471
+ * @param {Float} data - playback rate
5472
+ * @param {Object} target - actual YT player
5473
+ */
5474
+
5475
+
5476
+ /**
5477
+ * https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
5478
+ *
5479
+ * @param {Object} event
5480
+ * @param {String} data - playback quality
5481
+ * @param {Object} target - actual YT player
5482
+ */
5483
+
5484
+
5485
+ /**
5486
+ * Initialize the Youtube Player API on the container and attach event handlers
5487
+ */
5488
+
5489
+
5490
+ /**
5491
+ * Shorthand for destroying and then re-creating the Youtube Player
5492
+ */
5493
+
5494
+
5495
+ /**
5496
+ * Method to update the id and class of the Youtube Player iframe.
5497
+ * React should update this automatically but since the Youtube Player API
5498
+ * replaced the DIV that is mounted by React we need to do this manually.
5499
+ */
5500
+
5501
+
5502
+ /**
5503
+ * Call Youtube Player API methods to update the currently playing video.
5504
+ * Depeding on the `opts.playerVars.autoplay` this function uses one of two
5505
+ * Youtube Player API methods to update the video.
5458
5506
  */
5459
5507
 
5460
5508
  }, {
5461
- key: "render",
5509
+ key: 'render',
5462
5510
  value: function render() {
5463
- return /*#__PURE__*/React__default.createElement("div", {
5464
- className: this.props.containerClassName
5465
- }, /*#__PURE__*/React__default.createElement("div", {
5466
- id: this.props.id,
5467
- className: this.props.className,
5468
- ref: this.refContainer
5469
- }));
5511
+ return React__default.createElement(
5512
+ 'div',
5513
+ { className: this.props.containerClassName },
5514
+ React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
5515
+ );
5470
5516
  }
5471
5517
  }]);
5472
5518
 
5473
5519
  return YouTube;
5474
5520
  }(React__default.Component);
5475
5521
 
5476
- _defineProperty(YouTube, "PlayerState", {
5477
- UNSTARTED: -1,
5478
- ENDED: 0,
5479
- PLAYING: 1,
5480
- PAUSED: 2,
5481
- BUFFERING: 3,
5482
- CUED: 5
5483
- });
5484
-
5485
5522
  YouTube.propTypes = {
5486
5523
  videoId: PropTypes.string,
5524
+
5487
5525
  // custom ID for player element
5488
5526
  id: PropTypes.string,
5527
+
5489
5528
  // custom class name for player element
5490
5529
  className: PropTypes.string,
5491
5530
  // custom class name for player container element
5492
5531
  containerClassName: PropTypes.string,
5532
+
5493
5533
  // https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
5494
5534
  opts: PropTypes.objectOf(PropTypes.any),
5535
+
5495
5536
  // event subscriptions
5496
5537
  onReady: PropTypes.func,
5497
5538
  onError: PropTypes.func,
@@ -5503,7 +5544,6 @@ YouTube.propTypes = {
5503
5544
  onPlaybackQualityChange: PropTypes.func
5504
5545
  };
5505
5546
  YouTube.defaultProps = {
5506
- videoId: null,
5507
5547
  id: null,
5508
5548
  className: null,
5509
5549
  opts: {},
@@ -5517,6 +5557,14 @@ YouTube.defaultProps = {
5517
5557
  onPlaybackRateChange: function onPlaybackRateChange() {},
5518
5558
  onPlaybackQualityChange: function onPlaybackQualityChange() {}
5519
5559
  };
5560
+ YouTube.PlayerState = {
5561
+ UNSTARTED: -1,
5562
+ ENDED: 0,
5563
+ PLAYING: 1,
5564
+ PAUSED: 2,
5565
+ BUFFERING: 3,
5566
+ CUED: 5
5567
+ };
5520
5568
 
5521
5569
  var YouTubePlayer = function YouTubePlayer(_ref) {
5522
5570
  var url = _ref.url;
@@ -6428,17 +6476,17 @@ DocumentFragment.prototype.toString =
6428
6476
  }).join("")
6429
6477
  };
6430
6478
 
6431
- var event = Event;
6479
+ var event = Event$1;
6432
6480
 
6433
- function Event(family) {}
6481
+ function Event$1(family) {}
6434
6482
 
6435
- Event.prototype.initEvent = function _Event_initEvent(type, bubbles, cancelable) {
6483
+ Event$1.prototype.initEvent = function _Event_initEvent(type, bubbles, cancelable) {
6436
6484
  this.type = type;
6437
6485
  this.bubbles = bubbles;
6438
6486
  this.cancelable = cancelable;
6439
6487
  };
6440
6488
 
6441
- Event.prototype.preventDefault = function _Event_preventDefault() {
6489
+ Event$1.prototype.preventDefault = function _Event_preventDefault() {
6442
6490
 
6443
6491
  };
6444
6492
 
@@ -6540,8 +6588,8 @@ var window_1 = win;
6540
6588
 
6541
6589
  /*! @name @brightcove/react-player-loader @version 1.4.0 @license Apache-2.0 */
6542
6590
 
6543
- function _extends() {
6544
- _extends = Object.assign || function (target) {
6591
+ function _extends$1() {
6592
+ _extends$1 = Object.assign || function (target) {
6545
6593
  for (var i = 1; i < arguments.length; i++) {
6546
6594
  var source = arguments[i];
6547
6595
 
@@ -6555,7 +6603,7 @@ function _extends() {
6555
6603
  return target;
6556
6604
  };
6557
6605
 
6558
- return _extends.apply(this, arguments);
6606
+ return _extends$1.apply(this, arguments);
6559
6607
  }
6560
6608
 
6561
6609
  function _inheritsLoose(subClass, superClass) {
@@ -6564,7 +6612,7 @@ function _inheritsLoose(subClass, superClass) {
6564
6612
  subClass.__proto__ = superClass;
6565
6613
  }
6566
6614
 
6567
- function _assertThisInitialized$1(self) {
6615
+ function _assertThisInitialized(self) {
6568
6616
  if (self === void 0) {
6569
6617
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
6570
6618
  }
@@ -6574,8 +6622,8 @@ function _assertThisInitialized$1(self) {
6574
6622
 
6575
6623
  /*! @name @brightcove/player-loader @version 1.7.1 @license Apache-2.0 */
6576
6624
 
6577
- function _extends$1() {
6578
- _extends$1 = Object.assign || function (target) {
6625
+ function _extends$1$1() {
6626
+ _extends$1$1 = Object.assign || function (target) {
6579
6627
  for (var i = 1; i < arguments.length; i++) {
6580
6628
  var source = arguments[i];
6581
6629
 
@@ -6589,7 +6637,7 @@ function _extends$1() {
6589
6637
  return target;
6590
6638
  };
6591
6639
 
6592
- return _extends$1.apply(this, arguments);
6640
+ return _extends$1$1.apply(this, arguments);
6593
6641
  }
6594
6642
 
6595
6643
  var version$1 = "1.7.1";
@@ -6597,7 +6645,7 @@ var version$1 = "1.7.1";
6597
6645
  /*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */
6598
6646
  var version$1$1 = "1.2.0";
6599
6647
 
6600
- var _typeof$1 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
6648
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
6601
6649
  return typeof obj;
6602
6650
  } : function (obj) {
6603
6651
  return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
@@ -6732,7 +6780,7 @@ var brightcovePlayerUrl = function brightcovePlayerUrl(_ref) {
6732
6780
 
6733
6781
  var qs = '';
6734
6782
 
6735
- if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof$1(queryParams)) === 'object') {
6783
+ if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof(queryParams)) === 'object') {
6736
6784
  qs = getQueryString(queryParams);
6737
6785
  }
6738
6786
 
@@ -6966,7 +7014,7 @@ var wrapResponsive = function wrapResponsive(embedType, embedOptions, el) {
6966
7014
  el.style.width = '100%';
6967
7015
  el.style.height = '100%';
6968
7016
 
6969
- var responsive = _extends$1({
7017
+ var responsive = _extends$1$1({
6970
7018
  aspectRatio: DEFAULT_ASPECT_RATIO,
6971
7019
  iframeHorizontalPlaylist: DEFAULT_IFRAME_HORIZONTAL_PLAYLIST,
6972
7020
  maxWidth: DEFAULT_MAX_WIDTH
@@ -7651,7 +7699,7 @@ var loadPlayer = function loadPlayer(params, resolve, reject) {
7651
7699
 
7652
7700
 
7653
7701
  var brightcovePlayerLoader = function brightcovePlayerLoader(parameters) {
7654
- var params = _extends$1({}, DEFAULTS, parameters);
7702
+ var params = _extends$1$1({}, DEFAULTS, parameters);
7655
7703
 
7656
7704
  var Promise = params.Promise,
7657
7705
  onSuccess = params.onSuccess,
@@ -7793,7 +7841,7 @@ function (_React$Component) {
7793
7841
  _this.refNode = ref;
7794
7842
  };
7795
7843
 
7796
- _this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized$1(_this));
7844
+ _this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized(_this));
7797
7845
  return _this;
7798
7846
  }
7799
7847
  /**
@@ -7814,7 +7862,7 @@ function (_React$Component) {
7814
7862
  var userSuccess = this.props.onSuccess;
7815
7863
  var userFailure = this.props.onFailure;
7816
7864
 
7817
- var options = _extends({}, this.props, {
7865
+ var options = _extends$1({}, this.props, {
7818
7866
  refNode: this.refNode,
7819
7867
  refNodeInsert: 'append',
7820
7868
  onSuccess: function onSuccess(_ref) {
@@ -8123,7 +8171,7 @@ function (_React$Component) {
8123
8171
  ;
8124
8172
 
8125
8173
  _proto.render = function render() {
8126
- var props = _extends({
8174
+ var props = _extends$1({
8127
8175
  className: 'brightcove-react-player-loader'
8128
8176
  }, this.props.attrs, {
8129
8177
  ref: this.setRefNode
@@ -8537,17 +8585,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
8537
8585
 
8538
8586
  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; }
8539
8587
 
8540
- 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; } } }; }
8588
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
8541
8589
 
8542
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8590
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
8543
8591
 
8544
- 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."); }
8545
-
8546
- 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); }
8547
-
8548
- 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; }
8549
-
8550
- 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; }
8592
+ 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; }
8551
8593
 
8552
8594
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
8553
8595
 
@@ -8677,12 +8719,12 @@ function getSDK(url, sdkGlobal) {
8677
8719
 
8678
8720
  function getConfig(props$1, defaultProps, showWarning) {
8679
8721
  var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
8680
-
8681
- var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
8682
- _step;
8722
+ var _iteratorNormalCompletion = true;
8723
+ var _didIteratorError = false;
8724
+ var _iteratorError = undefined;
8683
8725
 
8684
8726
  try {
8685
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
8727
+ for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
8686
8728
  var p = _step.value;
8687
8729
 
8688
8730
  if (props$1[p]) {
@@ -8697,9 +8739,18 @@ function getConfig(props$1, defaultProps, showWarning) {
8697
8739
  }
8698
8740
  }
8699
8741
  } catch (err) {
8700
- _iterator.e(err);
8742
+ _didIteratorError = true;
8743
+ _iteratorError = err;
8701
8744
  } finally {
8702
- _iterator.f();
8745
+ try {
8746
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
8747
+ _iterator["return"]();
8748
+ }
8749
+ } finally {
8750
+ if (_didIteratorError) {
8751
+ throw _iteratorError;
8752
+ }
8753
+ }
8703
8754
  }
8704
8755
 
8705
8756
  return config;
@@ -8846,16 +8897,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
8846
8897
 
8847
8898
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
8848
8899
 
8849
- 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); }; }
8850
-
8851
8900
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
8852
8901
 
8853
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
8854
-
8855
- 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; } }
8856
-
8857
8902
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
8858
8903
 
8904
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
8905
+
8859
8906
  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); }
8860
8907
 
8861
8908
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -8864,12 +8911,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
8864
8911
 
8865
8912
  var SEEK_ON_PLAY_EXPIRY = 5000;
8866
8913
 
8867
- var Player = /*#__PURE__*/function (_Component) {
8914
+ var Player =
8915
+ /*#__PURE__*/
8916
+ function (_Component) {
8868
8917
  _inherits(Player, _Component);
8869
8918
 
8870
- var _super = _createSuper(Player);
8871
-
8872
8919
  function Player() {
8920
+ var _getPrototypeOf2;
8921
+
8873
8922
  var _this;
8874
8923
 
8875
8924
  _classCallCheck(this, Player);
@@ -8878,7 +8927,7 @@ var Player = /*#__PURE__*/function (_Component) {
8878
8927
  _args[_key] = arguments[_key];
8879
8928
  }
8880
8929
 
8881
- _this = _super.call.apply(_super, [this].concat(_args));
8930
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
8882
8931
 
8883
8932
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
8884
8933
 
@@ -9203,7 +9252,7 @@ var Player = /*#__PURE__*/function (_Component) {
9203
9252
  return null;
9204
9253
  }
9205
9254
 
9206
- return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
9255
+ return _react["default"].createElement(Player, _extends({}, this.props, {
9207
9256
  ref: this.ref,
9208
9257
  onReady: this.handleReady,
9209
9258
  onPlay: this.handlePlay,
@@ -9264,16 +9313,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9264
9313
 
9265
9314
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9266
9315
 
9267
- 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); }; }
9268
-
9269
9316
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9270
9317
 
9271
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9272
-
9273
- 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; } }
9274
-
9275
9318
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9276
9319
 
9320
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9321
+
9277
9322
  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); }
9278
9323
 
9279
9324
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9285,12 +9330,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
9285
9330
  function createSinglePlayer(activePlayer) {
9286
9331
  var _class, _temp;
9287
9332
 
9288
- return _temp = _class = /*#__PURE__*/function (_Component) {
9333
+ return _temp = _class =
9334
+ /*#__PURE__*/
9335
+ function (_Component) {
9289
9336
  _inherits(SinglePlayer, _Component);
9290
9337
 
9291
- var _super = _createSuper(SinglePlayer);
9292
-
9293
9338
  function SinglePlayer() {
9339
+ var _getPrototypeOf2;
9340
+
9294
9341
  var _this;
9295
9342
 
9296
9343
  _classCallCheck(this, SinglePlayer);
@@ -9299,7 +9346,7 @@ function createSinglePlayer(activePlayer) {
9299
9346
  args[_key] = arguments[_key];
9300
9347
  }
9301
9348
 
9302
- _this = _super.call.apply(_super, [this].concat(args));
9349
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
9303
9350
 
9304
9351
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
9305
9352
 
@@ -9367,12 +9414,12 @@ function createSinglePlayer(activePlayer) {
9367
9414
  height = _this$props.height,
9368
9415
  Wrapper = _this$props.wrapper;
9369
9416
  var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
9370
- return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
9417
+ return _react["default"].createElement(Wrapper, _extends({
9371
9418
  style: _objectSpread({}, style, {
9372
9419
  width: width,
9373
9420
  height: height
9374
9421
  })
9375
- }, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
9422
+ }, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
9376
9423
  ref: this.ref,
9377
9424
  activePlayer: activePlayer,
9378
9425
  config: this.config
@@ -9418,31 +9465,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9418
9465
 
9419
9466
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9420
9467
 
9421
- 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); }; }
9422
-
9423
9468
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9424
9469
 
9425
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9426
-
9427
- 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; } }
9428
-
9429
9470
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9430
9471
 
9472
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9473
+
9431
9474
  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); }
9432
9475
 
9433
9476
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9434
9477
 
9435
9478
  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; }
9436
9479
 
9437
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
9438
-
9439
- 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."); }
9440
-
9441
- 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); }
9480
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
9442
9481
 
9443
- 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; }
9482
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
9444
9483
 
9445
- 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; }
9484
+ 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; }
9446
9485
 
9447
9486
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9448
9487
 
@@ -9467,12 +9506,14 @@ function parsePlaylist(url) {
9467
9506
  return {};
9468
9507
  }
9469
9508
 
9470
- var YouTube = /*#__PURE__*/function (_Component) {
9509
+ var YouTube =
9510
+ /*#__PURE__*/
9511
+ function (_Component) {
9471
9512
  _inherits(YouTube, _Component);
9472
9513
 
9473
- var _super = _createSuper(YouTube);
9474
-
9475
9514
  function YouTube() {
9515
+ var _getPrototypeOf2;
9516
+
9476
9517
  var _this;
9477
9518
 
9478
9519
  _classCallCheck(this, YouTube);
@@ -9481,7 +9522,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
9481
9522
  args[_key] = arguments[_key];
9482
9523
  }
9483
9524
 
9484
- _this = _super.call.apply(_super, [this].concat(args));
9525
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
9485
9526
 
9486
9527
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
9487
9528
 
@@ -9669,9 +9710,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
9669
9710
  height: '100%',
9670
9711
  display: display
9671
9712
  };
9672
- return /*#__PURE__*/_react["default"].createElement("div", {
9713
+ return _react["default"].createElement("div", {
9673
9714
  style: style
9674
- }, /*#__PURE__*/_react["default"].createElement("div", {
9715
+ }, _react["default"].createElement("div", {
9675
9716
  ref: this.ref
9676
9717
  }));
9677
9718
  }
@@ -9727,16 +9768,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9727
9768
 
9728
9769
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9729
9770
 
9730
- 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); }; }
9731
-
9732
9771
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9733
9772
 
9734
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9735
-
9736
- 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; } }
9737
-
9738
9773
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9739
9774
 
9775
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9776
+
9740
9777
  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); }
9741
9778
 
9742
9779
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9745,14 +9782,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
9745
9782
 
9746
9783
  var SDK_URL = 'https://w.soundcloud.com/player/api.js';
9747
9784
  var SDK_GLOBAL = 'SC';
9748
- var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
9785
+ var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
9749
9786
 
9750
- var SoundCloud = /*#__PURE__*/function (_Component) {
9787
+ var SoundCloud =
9788
+ /*#__PURE__*/
9789
+ function (_Component) {
9751
9790
  _inherits(SoundCloud, _Component);
9752
9791
 
9753
- var _super = _createSuper(SoundCloud);
9754
-
9755
9792
  function SoundCloud() {
9793
+ var _getPrototypeOf2;
9794
+
9756
9795
  var _this;
9757
9796
 
9758
9797
  _classCallCheck(this, SoundCloud);
@@ -9761,7 +9800,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
9761
9800
  args[_key] = arguments[_key];
9762
9801
  }
9763
9802
 
9764
- _this = _super.call.apply(_super, [this].concat(args));
9803
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
9765
9804
 
9766
9805
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
9767
9806
 
@@ -9882,7 +9921,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
9882
9921
  height: '100%',
9883
9922
  display: display
9884
9923
  };
9885
- return /*#__PURE__*/_react["default"].createElement("iframe", {
9924
+ return _react["default"].createElement("iframe", {
9886
9925
  ref: this.ref,
9887
9926
  src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
9888
9927
  style: style,
@@ -9944,16 +9983,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9944
9983
 
9945
9984
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9946
9985
 
9947
- 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); }; }
9948
-
9949
9986
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9950
9987
 
9951
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9952
-
9953
- 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; } }
9954
-
9955
9988
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9956
9989
 
9990
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9991
+
9957
9992
  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); }
9958
9993
 
9959
9994
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9965,12 +10000,14 @@ var SDK_GLOBAL = 'Vimeo';
9965
10000
  var MATCH_URL = /vimeo\.com\/.+/;
9966
10001
  var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
9967
10002
 
9968
- var Vimeo = /*#__PURE__*/function (_Component) {
10003
+ var Vimeo =
10004
+ /*#__PURE__*/
10005
+ function (_Component) {
9969
10006
  _inherits(Vimeo, _Component);
9970
10007
 
9971
- var _super = _createSuper(Vimeo);
9972
-
9973
10008
  function Vimeo() {
10009
+ var _getPrototypeOf2;
10010
+
9974
10011
  var _this;
9975
10012
 
9976
10013
  _classCallCheck(this, Vimeo);
@@ -9979,7 +10016,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
9979
10016
  args[_key] = arguments[_key];
9980
10017
  }
9981
10018
 
9982
- _this = _super.call.apply(_super, [this].concat(args));
10019
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
9983
10020
 
9984
10021
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
9985
10022
 
@@ -10136,7 +10173,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
10136
10173
  overflow: 'hidden',
10137
10174
  display: display
10138
10175
  };
10139
- return /*#__PURE__*/_react["default"].createElement("div", {
10176
+ return _react["default"].createElement("div", {
10140
10177
  key: this.props.url,
10141
10178
  ref: this.ref,
10142
10179
  style: style
@@ -10196,16 +10233,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10196
10233
 
10197
10234
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10198
10235
 
10199
- 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); }; }
10200
-
10201
10236
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10202
10237
 
10203
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10204
-
10205
- 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; } }
10206
-
10207
10238
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10208
10239
 
10240
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10241
+
10209
10242
  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); }
10210
10243
 
10211
10244
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10218,12 +10251,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
10218
10251
  var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
10219
10252
  var PLAYER_ID_PREFIX = 'facebook-player-';
10220
10253
 
10221
- var Facebook = /*#__PURE__*/function (_Component) {
10254
+ var Facebook =
10255
+ /*#__PURE__*/
10256
+ function (_Component) {
10222
10257
  _inherits(Facebook, _Component);
10223
10258
 
10224
- var _super = _createSuper(Facebook);
10225
-
10226
10259
  function Facebook() {
10260
+ var _getPrototypeOf2;
10261
+
10227
10262
  var _this;
10228
10263
 
10229
10264
  _classCallCheck(this, Facebook);
@@ -10232,7 +10267,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
10232
10267
  args[_key] = arguments[_key];
10233
10268
  }
10234
10269
 
10235
- _this = _super.call.apply(_super, [this].concat(args));
10270
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
10236
10271
 
10237
10272
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10238
10273
 
@@ -10348,7 +10383,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
10348
10383
  width: '100%',
10349
10384
  height: '100%'
10350
10385
  };
10351
- return /*#__PURE__*/_react["default"].createElement("div", {
10386
+ return _react["default"].createElement("div", {
10352
10387
  style: style,
10353
10388
  id: this.playerID,
10354
10389
  className: "fb-video",
@@ -10408,16 +10443,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10408
10443
 
10409
10444
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10410
10445
 
10411
- 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); }; }
10412
-
10413
10446
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10414
10447
 
10415
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10416
-
10417
- 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; } }
10418
-
10419
10448
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10420
10449
 
10450
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10451
+
10421
10452
  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); }
10422
10453
 
10423
10454
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10428,12 +10459,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
10428
10459
  var SDK_GLOBAL = 'playerjs';
10429
10460
  var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
10430
10461
 
10431
- var Streamable = /*#__PURE__*/function (_Component) {
10462
+ var Streamable =
10463
+ /*#__PURE__*/
10464
+ function (_Component) {
10432
10465
  _inherits(Streamable, _Component);
10433
10466
 
10434
- var _super = _createSuper(Streamable);
10435
-
10436
10467
  function Streamable() {
10468
+ var _getPrototypeOf2;
10469
+
10437
10470
  var _this;
10438
10471
 
10439
10472
  _classCallCheck(this, Streamable);
@@ -10442,7 +10475,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
10442
10475
  args[_key] = arguments[_key];
10443
10476
  }
10444
10477
 
10445
- _this = _super.call.apply(_super, [this].concat(args));
10478
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
10446
10479
 
10447
10480
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10448
10481
 
@@ -10562,7 +10595,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
10562
10595
  width: '100%',
10563
10596
  height: '100%'
10564
10597
  };
10565
- return /*#__PURE__*/_react["default"].createElement("iframe", {
10598
+ return _react["default"].createElement("iframe", {
10566
10599
  ref: this.ref,
10567
10600
  src: "https://streamable.com/o/".concat(id),
10568
10601
  frameBorder: "0",
@@ -10623,16 +10656,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10623
10656
 
10624
10657
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10625
10658
 
10626
- 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); }; }
10627
-
10628
10659
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10629
10660
 
10630
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10631
-
10632
- 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; } }
10633
-
10634
10661
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10635
10662
 
10663
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10664
+
10636
10665
  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); }
10637
10666
 
10638
10667
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10643,48 +10672,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
10643
10672
  var SDK_GLOBAL = 'Wistia';
10644
10673
  var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
10645
10674
 
10646
- var Wistia = /*#__PURE__*/function (_Component) {
10675
+ var Wistia =
10676
+ /*#__PURE__*/
10677
+ function (_Component) {
10647
10678
  _inherits(Wistia, _Component);
10648
10679
 
10649
- var _super = _createSuper(Wistia);
10650
-
10651
10680
  function Wistia() {
10681
+ var _getPrototypeOf2;
10682
+
10652
10683
  var _this;
10653
10684
 
10654
10685
  _classCallCheck(this, Wistia);
10655
10686
 
10656
- for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
10657
- _args[_key] = arguments[_key];
10687
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
10688
+ args[_key] = arguments[_key];
10658
10689
  }
10659
10690
 
10660
- _this = _super.call.apply(_super, [this].concat(_args));
10691
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
10661
10692
 
10662
10693
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10663
10694
 
10664
- _defineProperty(_assertThisInitialized(_this), "onPlay", function () {
10665
- var _this$props;
10666
-
10667
- return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
10668
- });
10669
-
10670
- _defineProperty(_assertThisInitialized(_this), "onPause", function () {
10671
- var _this$props2;
10672
-
10673
- return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
10674
- });
10675
-
10676
- _defineProperty(_assertThisInitialized(_this), "onSeek", function () {
10677
- var _this$props3;
10678
-
10679
- return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
10680
- });
10681
-
10682
- _defineProperty(_assertThisInitialized(_this), "onEnded", function () {
10683
- var _this$props4;
10684
-
10685
- return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
10686
- });
10687
-
10688
10695
  _defineProperty(_assertThisInitialized(_this), "mute", function () {
10689
10696
  _this.callPlayer('mute');
10690
10697
  });
@@ -10706,13 +10713,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
10706
10713
  value: function load(url) {
10707
10714
  var _this2 = this;
10708
10715
 
10709
- var _this$props5 = this.props,
10710
- playing = _this$props5.playing,
10711
- muted = _this$props5.muted,
10712
- controls = _this$props5.controls,
10713
- _onReady = _this$props5.onReady,
10714
- config = _this$props5.config,
10715
- onError = _this$props5.onError;
10716
+ var _this$props = this.props,
10717
+ playing = _this$props.playing,
10718
+ muted = _this$props.muted,
10719
+ controls = _this$props.controls,
10720
+ _onReady = _this$props.onReady,
10721
+ onPlay = _this$props.onPlay,
10722
+ onPause = _this$props.onPause,
10723
+ onSeek = _this$props.onSeek,
10724
+ onEnded = _this$props.onEnded,
10725
+ config = _this$props.config,
10726
+ onError = _this$props.onError;
10716
10727
  (0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
10717
10728
  window._wq = window._wq || [];
10718
10729
 
@@ -10729,28 +10740,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
10729
10740
 
10730
10741
  _this2.unbind();
10731
10742
 
10732
- _this2.player.bind('play', _this2.onPlay);
10743
+ _this2.player.bind('play', onPlay);
10733
10744
 
10734
- _this2.player.bind('pause', _this2.onPause);
10745
+ _this2.player.bind('pause', onPause);
10735
10746
 
10736
- _this2.player.bind('seek', _this2.onSeek);
10747
+ _this2.player.bind('seek', onSeek);
10737
10748
 
10738
- _this2.player.bind('end', _this2.onEnded);
10749
+ _this2.player.bind('end', onEnded);
10739
10750
 
10740
10751
  _onReady();
10741
10752
  }
10742
10753
  });
10743
10754
  }, onError);
10744
10755
  }
10745
- }, {
10746
- key: "unbind",
10747
- value: function unbind() {
10748
- this.player.unbind('play', this.onPlay);
10749
- this.player.unbind('pause', this.onPause);
10750
- this.player.unbind('seek', this.onSeek);
10751
- this.player.unbind('end', this.onEnded);
10752
- } // Proxy methods to prevent listener leaks
10753
-
10754
10756
  }, {
10755
10757
  key: "play",
10756
10758
  value: function play() {
@@ -10761,6 +10763,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
10761
10763
  value: function pause() {
10762
10764
  this.callPlayer('pause');
10763
10765
  }
10766
+ }, {
10767
+ key: "unbind",
10768
+ value: function unbind() {
10769
+ var _this$props2 = this.props,
10770
+ onPlay = _this$props2.onPlay,
10771
+ onPause = _this$props2.onPause,
10772
+ onSeek = _this$props2.onSeek,
10773
+ onEnded = _this$props2.onEnded;
10774
+ this.player.unbind('play', onPlay);
10775
+ this.player.unbind('pause', onPause);
10776
+ this.player.unbind('seek', onSeek);
10777
+ this.player.unbind('end', onEnded);
10778
+ }
10764
10779
  }, {
10765
10780
  key: "stop",
10766
10781
  value: function stop() {
@@ -10806,7 +10821,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
10806
10821
  width: '100%',
10807
10822
  height: '100%'
10808
10823
  };
10809
- return /*#__PURE__*/_react["default"].createElement("div", {
10824
+ return _react["default"].createElement("div", {
10810
10825
  key: id,
10811
10826
  className: className,
10812
10827
  style: style
@@ -10866,16 +10881,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10866
10881
 
10867
10882
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10868
10883
 
10869
- 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); }; }
10870
-
10871
10884
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10872
10885
 
10873
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10874
-
10875
- 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; } }
10876
-
10877
10886
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10878
10887
 
10888
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10889
+
10879
10890
  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); }
10880
10891
 
10881
10892
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10888,12 +10899,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
10888
10899
  var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
10889
10900
  var PLAYER_ID_PREFIX = 'twitch-player-';
10890
10901
 
10891
- var Twitch = /*#__PURE__*/function (_Component) {
10902
+ var Twitch =
10903
+ /*#__PURE__*/
10904
+ function (_Component) {
10892
10905
  _inherits(Twitch, _Component);
10893
10906
 
10894
- var _super = _createSuper(Twitch);
10895
-
10896
10907
  function Twitch() {
10908
+ var _getPrototypeOf2;
10909
+
10897
10910
  var _this;
10898
10911
 
10899
10912
  _classCallCheck(this, Twitch);
@@ -10902,7 +10915,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
10902
10915
  args[_key] = arguments[_key];
10903
10916
  }
10904
10917
 
10905
- _this = _super.call.apply(_super, [this].concat(args));
10918
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
10906
10919
 
10907
10920
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10908
10921
 
@@ -11023,7 +11036,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
11023
11036
  width: '100%',
11024
11037
  height: '100%'
11025
11038
  };
11026
- return /*#__PURE__*/_react["default"].createElement("div", {
11039
+ return _react["default"].createElement("div", {
11027
11040
  style: style,
11028
11041
  id: this.playerID
11029
11042
  });
@@ -11076,15 +11089,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
11076
11089
 
11077
11090
  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; }
11078
11091
 
11079
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
11080
-
11081
- 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."); }
11082
-
11083
- 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); }
11092
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
11084
11093
 
11085
- 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; }
11094
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
11086
11095
 
11087
- 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; }
11096
+ 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; }
11088
11097
 
11089
11098
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11090
11099
 
@@ -11094,16 +11103,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11094
11103
 
11095
11104
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11096
11105
 
11097
- 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); }; }
11098
-
11099
11106
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11100
11107
 
11101
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11102
-
11103
- 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; } }
11104
-
11105
11108
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11106
11109
 
11110
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11111
+
11107
11112
  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); }
11108
11113
 
11109
11114
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11115,12 +11120,14 @@ var SDK_GLOBAL = 'DM';
11115
11120
  var SDK_GLOBAL_READY = 'dmAsyncInit';
11116
11121
  var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
11117
11122
 
11118
- var DailyMotion = /*#__PURE__*/function (_Component) {
11123
+ var DailyMotion =
11124
+ /*#__PURE__*/
11125
+ function (_Component) {
11119
11126
  _inherits(DailyMotion, _Component);
11120
11127
 
11121
- var _super = _createSuper(DailyMotion);
11122
-
11123
11128
  function DailyMotion() {
11129
+ var _getPrototypeOf2;
11130
+
11124
11131
  var _this;
11125
11132
 
11126
11133
  _classCallCheck(this, DailyMotion);
@@ -11129,7 +11136,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
11129
11136
  args[_key] = arguments[_key];
11130
11137
  }
11131
11138
 
11132
- _this = _super.call.apply(_super, [this].concat(args));
11139
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
11133
11140
 
11134
11141
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11135
11142
 
@@ -11258,9 +11265,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
11258
11265
  height: '100%',
11259
11266
  display: display
11260
11267
  };
11261
- return /*#__PURE__*/_react["default"].createElement("div", {
11268
+ return _react["default"].createElement("div", {
11262
11269
  style: style
11263
- }, /*#__PURE__*/_react["default"].createElement("div", {
11270
+ }, _react["default"].createElement("div", {
11264
11271
  ref: this.ref
11265
11272
  }));
11266
11273
  }
@@ -11318,16 +11325,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11318
11325
 
11319
11326
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11320
11327
 
11321
- 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); }; }
11322
-
11323
11328
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11324
11329
 
11325
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11326
-
11327
- 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; } }
11328
-
11329
11330
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11330
11331
 
11332
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11333
+
11331
11334
  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); }
11332
11335
 
11333
11336
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11338,12 +11341,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
11338
11341
  var SDK_GLOBAL = 'Mixcloud';
11339
11342
  var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
11340
11343
 
11341
- var Mixcloud = /*#__PURE__*/function (_Component) {
11344
+ var Mixcloud =
11345
+ /*#__PURE__*/
11346
+ function (_Component) {
11342
11347
  _inherits(Mixcloud, _Component);
11343
11348
 
11344
- var _super = _createSuper(Mixcloud);
11345
-
11346
11349
  function Mixcloud() {
11350
+ var _getPrototypeOf2;
11351
+
11347
11352
  var _this;
11348
11353
 
11349
11354
  _classCallCheck(this, Mixcloud);
@@ -11352,7 +11357,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
11352
11357
  args[_key] = arguments[_key];
11353
11358
  }
11354
11359
 
11355
- _this = _super.call.apply(_super, [this].concat(args));
11360
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
11356
11361
 
11357
11362
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11358
11363
 
@@ -11455,7 +11460,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
11455
11460
  })); // We have to give the iframe a key here to prevent a
11456
11461
  // weird dialog appearing when loading a new track
11457
11462
 
11458
- return /*#__PURE__*/_react["default"].createElement("iframe", {
11463
+ return _react["default"].createElement("iframe", {
11459
11464
  key: id,
11460
11465
  ref: this.ref,
11461
11466
  style: style,
@@ -11515,33 +11520,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11515
11520
 
11516
11521
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11517
11522
 
11518
- 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); }; }
11519
-
11520
11523
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11521
11524
 
11522
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11523
-
11524
- 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; } }
11525
-
11526
11525
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11527
11526
 
11527
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11528
+
11528
11529
  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); }
11529
11530
 
11530
11531
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
11531
11532
 
11532
11533
  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; }
11533
11534
 
11534
- 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; } } }; }
11535
-
11536
- 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); }
11537
-
11538
- 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; }
11539
-
11540
11535
  var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
11541
11536
  var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
11542
11537
  var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
11543
11538
  var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
11544
- var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
11539
+ var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
11545
11540
  var HLS_GLOBAL = 'Hls';
11546
11541
  var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
11547
11542
  var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
@@ -11550,11 +11545,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
11550
11545
 
11551
11546
  function canPlay(url) {
11552
11547
  if (url instanceof Array) {
11553
- var _iterator = _createForOfIteratorHelper(url),
11554
- _step;
11548
+ var _iteratorNormalCompletion = true;
11549
+ var _didIteratorError = false;
11550
+ var _iteratorError = undefined;
11555
11551
 
11556
11552
  try {
11557
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
11553
+ for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
11558
11554
  var item = _step.value;
11559
11555
 
11560
11556
  if (typeof item === 'string' && canPlay(item)) {
@@ -11566,9 +11562,18 @@ function canPlay(url) {
11566
11562
  }
11567
11563
  }
11568
11564
  } catch (err) {
11569
- _iterator.e(err);
11565
+ _didIteratorError = true;
11566
+ _iteratorError = err;
11570
11567
  } finally {
11571
- _iterator.f();
11568
+ try {
11569
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
11570
+ _iterator["return"]();
11571
+ }
11572
+ } finally {
11573
+ if (_didIteratorError) {
11574
+ throw _iteratorError;
11575
+ }
11576
+ }
11572
11577
  }
11573
11578
 
11574
11579
  return false;
@@ -11592,12 +11597,14 @@ function canEnablePIP(url) {
11592
11597
  return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
11593
11598
  }
11594
11599
 
11595
- var FilePlayer = /*#__PURE__*/function (_Component) {
11600
+ var FilePlayer =
11601
+ /*#__PURE__*/
11602
+ function (_Component) {
11596
11603
  _inherits(FilePlayer, _Component);
11597
11604
 
11598
- var _super = _createSuper(FilePlayer);
11599
-
11600
11605
  function FilePlayer() {
11606
+ var _getPrototypeOf2;
11607
+
11601
11608
  var _this;
11602
11609
 
11603
11610
  _classCallCheck(this, FilePlayer);
@@ -11606,7 +11613,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
11606
11613
  _args[_key] = arguments[_key];
11607
11614
  }
11608
11615
 
11609
- _this = _super.call.apply(_super, [this].concat(_args));
11616
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
11610
11617
 
11611
11618
  _defineProperty(_assertThisInitialized(_this), "onReady", function () {
11612
11619
  var _this$props;
@@ -11693,19 +11700,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
11693
11700
 
11694
11701
  _defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
11695
11702
  if (typeof source === 'string') {
11696
- return /*#__PURE__*/_react["default"].createElement("source", {
11703
+ return _react["default"].createElement("source", {
11697
11704
  key: index,
11698
11705
  src: source
11699
11706
  });
11700
11707
  }
11701
11708
 
11702
- return /*#__PURE__*/_react["default"].createElement("source", _extends({
11709
+ return _react["default"].createElement("source", _extends({
11703
11710
  key: index
11704
11711
  }, source));
11705
11712
  });
11706
11713
 
11707
11714
  _defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
11708
- return /*#__PURE__*/_react["default"].createElement("track", _extends({
11715
+ return _react["default"].createElement("track", _extends({
11709
11716
  key: index
11710
11717
  }, track));
11711
11718
  });
@@ -11743,10 +11750,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
11743
11750
  key: "componentWillUnmount",
11744
11751
  value: function componentWillUnmount() {
11745
11752
  this.removeListeners(this.player);
11746
-
11747
- if (this.hls) {
11748
- this.hls.destroy();
11749
- }
11750
11753
  }
11751
11754
  }, {
11752
11755
  key: "addListeners",
@@ -11877,6 +11880,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
11877
11880
  value: function stop() {
11878
11881
  this.player.removeAttribute('src');
11879
11882
 
11883
+ if (this.hls) {
11884
+ this.hls.destroy();
11885
+ }
11886
+
11880
11887
  if (this.dash) {
11881
11888
  this.dash.reset();
11882
11889
  }
@@ -11988,7 +11995,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
11988
11995
  width: width === 'auto' ? width : '100%',
11989
11996
  height: height === 'auto' ? height : '100%'
11990
11997
  };
11991
- return /*#__PURE__*/_react["default"].createElement(Element, _extends({
11998
+ return _react["default"].createElement(Element, _extends({
11992
11999
  ref: this.ref,
11993
12000
  src: this.getSource(url),
11994
12001
  style: style,
@@ -12078,16 +12085,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
12078
12085
 
12079
12086
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
12080
12087
 
12081
- 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); }; }
12082
-
12083
12088
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12084
12089
 
12085
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12086
-
12087
- 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; } }
12088
-
12089
12090
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12090
12091
 
12092
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12093
+
12091
12094
  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); }
12092
12095
 
12093
12096
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -12096,12 +12099,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12096
12099
 
12097
12100
  var ICON_SIZE = '64px';
12098
12101
 
12099
- var Preview = /*#__PURE__*/function (_Component) {
12102
+ var Preview =
12103
+ /*#__PURE__*/
12104
+ function (_Component) {
12100
12105
  _inherits(Preview, _Component);
12101
12106
 
12102
- var _super = _createSuper(Preview);
12103
-
12104
12107
  function Preview() {
12108
+ var _getPrototypeOf2;
12109
+
12105
12110
  var _this;
12106
12111
 
12107
12112
  _classCallCheck(this, Preview);
@@ -12110,7 +12115,7 @@ var Preview = /*#__PURE__*/function (_Component) {
12110
12115
  args[_key] = arguments[_key];
12111
12116
  }
12112
12117
 
12113
- _this = _super.call.apply(_super, [this].concat(args));
12118
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
12114
12119
 
12115
12120
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
12116
12121
 
@@ -12208,15 +12213,15 @@ var Preview = /*#__PURE__*/function (_Component) {
12208
12213
  }
12209
12214
  };
12210
12215
 
12211
- var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
12216
+ var defaultPlayIcon = _react["default"].createElement("div", {
12212
12217
  style: styles.shadow,
12213
12218
  className: "react-player__shadow"
12214
- }, /*#__PURE__*/_react["default"].createElement("div", {
12219
+ }, _react["default"].createElement("div", {
12215
12220
  style: styles.playIcon,
12216
12221
  className: "react-player__play-icon"
12217
12222
  }));
12218
12223
 
12219
- return /*#__PURE__*/_react["default"].createElement("div", {
12224
+ return _react["default"].createElement("div", {
12220
12225
  style: styles.preview,
12221
12226
  className: "react-player__preview",
12222
12227
  onClick: onClick
@@ -12253,12 +12258,6 @@ var _Player = _interopRequireDefault(Player_1);
12253
12258
 
12254
12259
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12255
12260
 
12256
- 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; } } }; }
12257
-
12258
- 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); }
12259
-
12260
- 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; }
12261
-
12262
12261
  var PRELOAD_PLAYERS = [{
12263
12262
  Player: YouTube_1.YouTube,
12264
12263
  configKey: 'youtube',
@@ -12279,16 +12278,16 @@ var PRELOAD_PLAYERS = [{
12279
12278
 
12280
12279
  function renderPreloadPlayers(url, controls, config) {
12281
12280
  var players = [];
12282
-
12283
- var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
12284
- _step;
12281
+ var _iteratorNormalCompletion = true;
12282
+ var _didIteratorError = false;
12283
+ var _iteratorError = undefined;
12285
12284
 
12286
12285
  try {
12287
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
12286
+ for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
12288
12287
  var player = _step.value;
12289
12288
 
12290
12289
  if (!player.Player.canPlay(url) && config[player.configKey].preload) {
12291
- players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
12290
+ players.push(_react["default"].createElement(_Player["default"], {
12292
12291
  key: player.Player.displayName,
12293
12292
  activePlayer: player.Player,
12294
12293
  url: player.url,
@@ -12300,9 +12299,18 @@ function renderPreloadPlayers(url, controls, config) {
12300
12299
  }
12301
12300
  }
12302
12301
  } catch (err) {
12303
- _iterator.e(err);
12302
+ _didIteratorError = true;
12303
+ _iteratorError = err;
12304
12304
  } finally {
12305
- _iterator.f();
12305
+ try {
12306
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
12307
+ _iterator["return"]();
12308
+ }
12309
+ } finally {
12310
+ if (_didIteratorError) {
12311
+ throw _iteratorError;
12312
+ }
12313
+ }
12306
12314
  }
12307
12315
 
12308
12316
  return players;
@@ -12426,17 +12434,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
12426
12434
 
12427
12435
  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); }
12428
12436
 
12429
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
12437
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
12430
12438
 
12431
- 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."); }
12439
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
12432
12440
 
12433
- 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); }
12441
+ function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
12434
12442
 
12435
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
12436
-
12437
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
12438
-
12439
- 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; }
12443
+ 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; } }
12440
12444
 
12441
12445
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
12442
12446
 
@@ -12444,16 +12448,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
12444
12448
 
12445
12449
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
12446
12450
 
12447
- 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); }; }
12448
-
12449
12451
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12450
12452
 
12451
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12452
-
12453
- 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; } }
12454
-
12455
12453
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12456
12454
 
12455
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12456
+
12457
12457
  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); }
12458
12458
 
12459
12459
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -12463,12 +12463,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12463
12463
  var SUPPORTED_PROPS = Object.keys(props.propTypes);
12464
12464
  var customPlayers = [];
12465
12465
 
12466
- var ReactPlayer = /*#__PURE__*/function (_Component) {
12466
+ var ReactPlayer =
12467
+ /*#__PURE__*/
12468
+ function (_Component) {
12467
12469
  _inherits(ReactPlayer, _Component);
12468
12470
 
12469
- var _super = _createSuper(ReactPlayer);
12470
-
12471
12471
  function ReactPlayer() {
12472
+ var _getPrototypeOf2;
12473
+
12472
12474
  var _this;
12473
12475
 
12474
12476
  _classCallCheck(this, ReactPlayer);
@@ -12477,7 +12479,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
12477
12479
  args[_key] = arguments[_key];
12478
12480
  }
12479
12481
 
12480
- _this = _super.call.apply(_super, [this].concat(args));
12482
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
12481
12483
 
12482
12484
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
12483
12485
 
@@ -12588,7 +12590,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
12588
12590
  key: "renderActivePlayer",
12589
12591
  value: function renderActivePlayer(url, activePlayer) {
12590
12592
  if (!url) return null;
12591
- return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
12593
+ return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
12592
12594
  key: activePlayer.displayName,
12593
12595
  ref: this.activePlayerRef,
12594
12596
  config: this.config,
@@ -12625,14 +12627,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
12625
12627
  var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
12626
12628
  var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
12627
12629
 
12628
- var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
12630
+ var preview = _react["default"].createElement(_Preview["default"], {
12629
12631
  url: url,
12630
12632
  light: light,
12631
12633
  playIcon: playIcon,
12632
12634
  onClick: this.handleClickPreview
12633
12635
  });
12634
12636
 
12635
- return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
12637
+ return _react["default"].createElement(Wrapper, _extends({
12636
12638
  ref: this.wrapperRef,
12637
12639
  style: _objectSpread({}, style, {
12638
12640
  width: width,
@@ -12928,6 +12930,12 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
12928
12930
  setData(data);
12929
12931
  }, []);
12930
12932
 
12933
+ React.useEffect(function () {
12934
+ if (vidLoaded == true) {
12935
+ document.title = nodes.videos[series - 1].title;
12936
+ }
12937
+ }, [vidLoaded]);
12938
+
12931
12939
  function toggleSeries() {
12932
12940
  var series = document.querySelector('.vid-series');
12933
12941
  if (series.classList.contains('active')) {
@@ -12948,6 +12956,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
12948
12956
  var newPath = '/' + get2 + '/' + get3 + ('?seriesVid=' + vidIndex);
12949
12957
  var vidState = { vid_id: vidIndex };
12950
12958
  window.history.pushState(vidState, '', newPath);
12959
+
12951
12960
  setSeries(vidIndex);
12952
12961
  setVidLoaded(true);
12953
12962
  }, 100);
@@ -12996,7 +13005,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
12996
13005
  var vidState = { vid_id: nextVid + 1 };
12997
13006
  var title = '';
12998
13007
  window.history.pushState(vidState, title, newPath);
12999
-
13008
+ window.dispatchEvent(new Event('urlChange'));
13000
13009
  //Small pause before starting next video
13001
13010
  setTimeout(function () {
13002
13011
  //Youtube API to start video playing automatically
@@ -13484,7 +13493,7 @@ var NativeAd = function NativeAd(props) {
13484
13493
  };
13485
13494
 
13486
13495
  var Figure = dynamic(function () {
13487
- return new Promise(function (resolve) { resolve(require('./Figure-a7cd5161.js')); });
13496
+ return Promise.resolve().then(function () { return require('./Figure-8789df2d.js'); });
13488
13497
  }, { ssr: false });
13489
13498
 
13490
13499
  var checkUrlIsExternal = function checkUrlIsExternal(url) {
@@ -14065,16 +14074,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
14065
14074
  _ref$className = _ref.className,
14066
14075
  className = _ref$className === undefined ? '' : _ref$className;
14067
14076
 
14068
- /*
14069
- Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
14070
- example:
14071
- <RelatedTopicDropdown
14072
- page='/clinical'
14073
- exclude="clinical"
14074
- className='mb-3'
14075
- parentTaxonomy={props.parentTaxonomy}
14076
- subTaxonomies={props.subTaxonomies}
14077
- />
14077
+ /*
14078
+ Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
14079
+ example:
14080
+ <RelatedTopicDropdown
14081
+ page='/clinical'
14082
+ exclude="clinical"
14083
+ className='mb-3'
14084
+ parentTaxonomy={props.parentTaxonomy}
14085
+ subTaxonomies={props.subTaxonomies}
14086
+ />
14078
14087
  */
14079
14088
  if (subTaxonomies.length === 0 && parentTaxonomy) {
14080
14089
  if (parentTaxonomy.identifier == exclude) {
@@ -14112,25 +14121,25 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
14112
14121
  }
14113
14122
  };
14114
14123
 
14115
- /*
14116
- This dropdown is used inside Article body to display related content placement and document group pages
14117
- sample usage: <ArticleDetailDropdown article={props.article} exclude={['News']} style={{ backgroundColor: 'var(--primary)', border: 0 }} />
14118
-
14119
- - accepts any normal html arrtibute (style, id, class)
14120
-
14121
- - in article query, need to add '...' to content_placement to retreive additional info needed, and document_group to retrieve group data if available
14122
-
14123
- 'content_placement': taxonomyMapping[]-> {
14124
- ...,
14125
- 'ancestor': parent->parent->identifier,
14126
- 'parent': parent->identifier,
14127
- 'path': identifier
14128
- },
14129
- 'document_group': documentGroup-> {
14130
- name,
14131
- 'parent': parent->identifier,
14132
- 'path': identifier.current
14133
- }
14124
+ /*
14125
+ This dropdown is used inside Article body to display related content placement and document group pages
14126
+ sample usage: <ArticleDetailDropdown article={props.article} exclude={['News']} style={{ backgroundColor: 'var(--primary)', border: 0 }} />
14127
+
14128
+ - accepts any normal html arrtibute (style, id, class)
14129
+
14130
+ - in article query, need to add '...' to content_placement to retreive additional info needed, and document_group to retrieve group data if available
14131
+
14132
+ 'content_placement': taxonomyMapping[]-> {
14133
+ ...,
14134
+ 'ancestor': parent->parent->identifier,
14135
+ 'parent': parent->identifier,
14136
+ 'path': identifier
14137
+ },
14138
+ 'document_group': documentGroup-> {
14139
+ name,
14140
+ 'parent': parent->identifier,
14141
+ 'path': identifier.current
14142
+ }
14134
14143
  */
14135
14144
 
14136
14145
  var ArticleDetailDropdown = function ArticleDetailDropdown(props) {
@@ -15019,34 +15028,34 @@ var GridHero = function GridHero(props) {
15019
15028
  );
15020
15029
  };
15021
15030
 
15022
- /*
15023
- Sample query
15024
- let references = ''
15025
- if(article.taxonomyMapping.length > 0){
15026
- article.taxonomyMapping.forEach((ref, index) => {
15027
- references = references + `references('${ref._ref}') `
15028
- if(index+1 !== article.taxonomyMapping.length){
15029
- references = references + ` && `
15030
- }
15031
- })
15032
- }
15033
-
15034
- const relatedArticlesQuery = `*[!(_id in path("drafts.**")) && _type == "article" && title !='${article.title}' && defined(title) && is_visible == true && ( references('article.documentGroup._id') || ${references} ) && published <= '${today}'] | order(published desc) [0...4] {
15035
- ...,
15036
- title,
15037
- summary,
15038
- thumbnail,
15039
- url,
15040
- published,
15041
- authorMapping[]->,
15042
- contentCategory->
15043
- }`
15044
- const relatedArticles = await client.fetch(relatedArticlesQuery)
15045
-
15046
- Sample usage
15047
- <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
15048
-
15049
-
15031
+ /*
15032
+ Sample query
15033
+ let references = ''
15034
+ if(article.taxonomyMapping.length > 0){
15035
+ article.taxonomyMapping.forEach((ref, index) => {
15036
+ references = references + `references('${ref._ref}') `
15037
+ if(index+1 !== article.taxonomyMapping.length){
15038
+ references = references + ` && `
15039
+ }
15040
+ })
15041
+ }
15042
+
15043
+ const relatedArticlesQuery = `*[!(_id in path("drafts.**")) && _type == "article" && title !='${article.title}' && defined(title) && is_visible == true && ( references('article.documentGroup._id') || ${references} ) && published <= '${today}'] | order(published desc) [0...4] {
15044
+ ...,
15045
+ title,
15046
+ summary,
15047
+ thumbnail,
15048
+ url,
15049
+ published,
15050
+ authorMapping[]->,
15051
+ contentCategory->
15052
+ }`
15053
+ const relatedArticles = await client.fetch(relatedArticlesQuery)
15054
+
15055
+ Sample usage
15056
+ <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
15057
+
15058
+
15050
15059
  */
15051
15060
  var RelatedContent = function RelatedContent(props) {
15052
15061
  var client = props.client,
@@ -15113,21 +15122,21 @@ var RelatedContent = function RelatedContent(props) {
15113
15122
  );
15114
15123
  };
15115
15124
 
15116
- /*
15117
- Example usage - targetedonc.com/latest-conference
15118
- const query = `*[!(_id in path("drafts.**")) && _type == "article" && defined(title) && is_visible == true && published <= '${today}' && references('b49d36b8-aa56-4183-a2bc-1568c229fb72') ] | order(published desc) [$from...$to] {
15119
- ...,
15120
- title,
15121
- summary,
15122
- thumbnail,
15123
- url,
15124
- published,
15125
- documentGroup->,
15126
- contentCategory->,
15127
- 'pageNumber': ${currentPage}
15128
- }`
15129
-
15130
- const posts = await client.fetch(query, params)
15125
+ /*
15126
+ Example usage - targetedonc.com/latest-conference
15127
+ const query = `*[!(_id in path("drafts.**")) && _type == "article" && defined(title) && is_visible == true && published <= '${today}' && references('b49d36b8-aa56-4183-a2bc-1568c229fb72') ] | order(published desc) [$from...$to] {
15128
+ ...,
15129
+ title,
15130
+ summary,
15131
+ thumbnail,
15132
+ url,
15133
+ published,
15134
+ documentGroup->,
15135
+ contentCategory->,
15136
+ 'pageNumber': ${currentPage}
15137
+ }`
15138
+
15139
+ const posts = await client.fetch(query, params)
15131
15140
  */
15132
15141
 
15133
15142
  var ConferenceArticleCard = function ConferenceArticleCard(props) {
@@ -16531,27 +16540,27 @@ var ArticleQueue = function ArticleQueue(props) {
16531
16540
  };
16532
16541
 
16533
16542
  var KMTracker = function KMTracker(props) {
16534
- var id = props.id;
16543
+ var id = props.id;
16535
16544
 
16536
- if (document && id) {
16545
+ if (document && id) {
16537
16546
  (function () {
16538
- var ecnJquery = document.createElement('script');
16547
+ var ecnJquery = document.createElement('script');
16539
16548
 
16540
- ecnJquery.type = 'text/javascript';
16541
- ecnJquery.async = true;
16542
- ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
16549
+ ecnJquery.type = 'text/javascript';
16550
+ ecnJquery.async = true;
16551
+ ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
16543
16552
 
16544
- var ecnScript = document.createElement('script');
16553
+ var ecnScript = document.createElement('script');
16545
16554
 
16546
- ecnScript.type = 'text/javascript';
16547
- ecnScript.async = true;
16548
- ecnScript.id = 'km-tracker';
16549
- ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
16555
+ ecnScript.type = 'text/javascript';
16556
+ ecnScript.async = true;
16557
+ ecnScript.id = 'km-tracker';
16558
+ ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
16550
16559
 
16551
- document.head.appendChild(ecnJquery);
16552
- document.head.appendChild(ecnScript);
16553
- })();
16554
- }
16560
+ document.head.appendChild(ecnJquery);
16561
+ document.head.appendChild(ecnScript);
16562
+ })();
16563
+ }
16555
16564
  };
16556
16565
 
16557
16566
  exports.AdSlot = AdSlot.DFPAdSlot;