@mjhls/mjh-framework 1.0.427 → 1.0.428

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 (59) hide show
  1. package/README.md +172 -172
  2. package/dist/cjs/{ADInfeed-494f5e6b.js → ADInfeed-99f812f9.js} +1 -1
  3. package/dist/cjs/{AdSlot-4d22aad4.js → AdSlot-6b3e5d3d.js} +2 -2
  4. package/dist/cjs/DeckContent.js +17 -17
  5. package/dist/cjs/DeckQueue.js +8 -8
  6. package/dist/cjs/{Dfp-2399639f.js → Dfp-f62806bd.js} +1 -1
  7. package/dist/cjs/{Figure-9e886c5b.js → Figure-7277baf0.js} +1 -1
  8. package/dist/cjs/{GridContent-f401c40f.js → GridContent-3acca2d2.js} +12 -12
  9. package/dist/cjs/GridContent.js +10 -10
  10. package/dist/cjs/GroupDeck.js +8 -8
  11. package/dist/cjs/IssueContentDeck.js +2 -2
  12. package/dist/cjs/IssueDeck.js +2 -2
  13. package/dist/cjs/MasterDeck.js +15 -15
  14. package/dist/cjs/{Normal-405b758a.js → Normal-e35862e5.js} +39 -39
  15. package/dist/cjs/PublicationDeck.js +1 -1
  16. package/dist/cjs/QueueDeckExpanded.js +8 -8
  17. package/dist/cjs/{TaxonomyCard-eb928f05.js → TaxonomyCard-bbf7530c.js} +1 -1
  18. package/dist/cjs/TaxonomyCard.js +2 -2
  19. package/dist/cjs/TemplateNormal.js +5 -5
  20. package/dist/cjs/ThumbnailCard.js +1 -1
  21. package/dist/cjs/VideoSeriesListing.js +5 -5
  22. package/dist/cjs/YoutubeGroup.js +7 -7
  23. package/dist/cjs/{debounce-b088070c.js → debounce-17653c0f.js} +6 -4
  24. package/dist/cjs/{get-5aa7468c.js → get-1f552668.js} +1 -1
  25. package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
  26. package/dist/cjs/{index.es-ab3f2690.js → index.es-9110add6.js} +1 -3
  27. package/dist/cjs/index.js +859 -926
  28. package/dist/cjs/{inherits-e793003e.js → inherits-be4dfb6b.js} +4 -4
  29. package/dist/cjs/{main-bc4db521.js → main-88348b15.js} +35 -66
  30. package/dist/cjs/{moment-66a6a284.js → moment-575fe24c.js} +1 -1
  31. package/dist/esm/{ADInfeed-e5cefea5.js → ADInfeed-f1c1780e.js} +1 -1
  32. package/dist/esm/{AdSlot-78e48a2c.js → AdSlot-4ca0419a.js} +2 -2
  33. package/dist/esm/DeckContent.js +16 -16
  34. package/dist/esm/DeckQueue.js +7 -7
  35. package/dist/esm/{Dfp-d5fe1252.js → Dfp-d372854b.js} +1 -1
  36. package/dist/esm/{Figure-cc1affbe.js → Figure-2d14847b.js} +1 -1
  37. package/dist/esm/{GridContent-e3224519.js → GridContent-09330066.js} +11 -11
  38. package/dist/esm/GridContent.js +9 -9
  39. package/dist/esm/GroupDeck.js +5 -5
  40. package/dist/esm/IssueContentDeck.js +2 -2
  41. package/dist/esm/IssueDeck.js +2 -2
  42. package/dist/esm/MasterDeck.js +14 -14
  43. package/dist/esm/{Normal-c61851bf.js → Normal-7e1b2b80.js} +39 -39
  44. package/dist/esm/PublicationDeck.js +1 -1
  45. package/dist/esm/QueueDeckExpanded.js +8 -8
  46. package/dist/esm/{TaxonomyCard-b29aa7ac.js → TaxonomyCard-d49aa67a.js} +1 -1
  47. package/dist/esm/TaxonomyCard.js +2 -2
  48. package/dist/esm/TemplateNormal.js +5 -5
  49. package/dist/esm/ThumbnailCard.js +1 -1
  50. package/dist/esm/VideoSeriesListing.js +4 -4
  51. package/dist/esm/YoutubeGroup.js +5 -5
  52. package/dist/esm/{debounce-df468b0e.js → debounce-53693e2b.js} +6 -4
  53. package/dist/esm/{get-53653403.js → get-b3f4645d.js} +1 -1
  54. package/dist/esm/{index-51a80699.js → index-73819142.js} +19 -20
  55. package/dist/esm/{index.es-938a3a58.js → index.es-29c1cef5.js} +1 -3
  56. package/dist/esm/index.js +856 -923
  57. package/dist/esm/{main-7d1b3c98.js → main-273675e1.js} +34 -65
  58. package/dist/esm/{moment-12415288.js → moment-e2f9b20c.js} +1 -1
  59. package/package.json +103 -103
package/dist/cjs/index.js CHANGED
@@ -12,38 +12,38 @@ require('./_iter-detect-234453c3.js');
12
12
  var toConsumableArray = require('./toConsumableArray-25d0e2a3.js');
13
13
  require('./_object-pie-68c5bcbc.js');
14
14
  var _extends$2 = require('./extends-60837c34.js');
15
- var inherits$2 = require('./inherits-e793003e.js');
16
- var _typeof$2 = require('./typeof-2747c582.js');
15
+ var inherits$2 = require('./inherits-be4dfb6b.js');
16
+ var _typeof$1 = require('./typeof-2747c582.js');
17
17
  var React = require('react');
18
18
  var React__default = _interopDefault(React);
19
- var debounce = require('./debounce-b088070c.js');
19
+ var debounce = require('./debounce-17653c0f.js');
20
20
  var PropTypes = _interopDefault(require('prop-types'));
21
21
  var Container = _interopDefault(require('react-bootstrap/Container'));
22
22
  var Row = _interopDefault(require('react-bootstrap/Row'));
23
23
  var Col = _interopDefault(require('react-bootstrap/Col'));
24
24
  var Card = _interopDefault(require('react-bootstrap/Card'));
25
- var moment = require('./moment-66a6a284.js');
25
+ var moment = require('./moment-575fe24c.js');
26
26
  var Router = require('next/router');
27
27
  var Router__default = _interopDefault(Router);
28
- var index_es = require('./index.es-ab3f2690.js');
28
+ var index_es = require('./index.es-9110add6.js');
29
29
  require('react-dom');
30
30
  var visibilitySensor = require('./visibility-sensor-0c45a583.js');
31
- var index = require('./index-b5eb3ff8.js');
31
+ var index = require('./index-be0c82be.js');
32
32
  var index$1 = require('./index-fa0fb52c.js');
33
- var main = require('./main-bc4db521.js');
33
+ var main = require('./main-88348b15.js');
34
34
  var entities = require('./entities-310b46ee.js');
35
35
  var slicedToArray = require('./slicedToArray-419d467a.js');
36
- var AdSlot = require('./AdSlot-4d22aad4.js');
36
+ var AdSlot = require('./AdSlot-6b3e5d3d.js');
37
37
  var promise = require('./promise-0a493c7a.js');
38
- require('./ADInfeed-494f5e6b.js');
38
+ require('./ADInfeed-99f812f9.js');
39
39
  var DeckContent = require('./DeckContent.js');
40
- var get$1 = require('./get-5aa7468c.js');
41
- var GridContent = require('./GridContent-f401c40f.js');
40
+ var get$1 = require('./get-1f552668.js');
41
+ var GridContent = require('./GridContent-3acca2d2.js');
42
42
  var AuthorComponent = require('./AuthorComponent-4706f297.js');
43
43
  var DeckQueue = require('./DeckQueue.js');
44
44
  require('react-bootstrap/Media');
45
45
  var ThumbnailCard = require('./ThumbnailCard.js');
46
- var TaxonomyCard = require('./TaxonomyCard-eb928f05.js');
46
+ var TaxonomyCard = require('./TaxonomyCard-bbf7530c.js');
47
47
  require('./react-social-icons-cd0d9d3b.js');
48
48
  var smoothscroll = require('./smoothscroll-95231a70.js');
49
49
  var GroupDeck = require('./GroupDeck.js');
@@ -59,7 +59,7 @@ var IssueDeck = require('./IssueDeck.js');
59
59
  require('react-bootstrap/Badge');
60
60
  var IssueContentDeck = require('./IssueContentDeck.js');
61
61
  var Spinner = _interopDefault(require('react-bootstrap/Spinner'));
62
- var TemplateNormal = require('./Normal-405b758a.js');
62
+ var TemplateNormal = require('./Normal-e35862e5.js');
63
63
  require('react-bootstrap/ListGroup');
64
64
  var Head = _interopDefault(require('next/head'));
65
65
  var Accordion = _interopDefault(require('react-bootstrap/Accordion'));
@@ -1925,23 +1925,23 @@ var EventsDeck = function EventsDeck(_ref) {
1925
1925
  if (cventAccessToken && cventAccessToken !== 'undefined') {
1926
1926
  setAccessToken(cventAccessToken);
1927
1927
  } else {
1928
- /*const encodedData = window.btoa(clientId + ':' + clientSecret)
1929
- //const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
1930
- const url = `https://api-platform.cvent.com/ea/oauth2/token`
1931
- fetch(url, {
1932
- headers: {
1933
- 'Content-Type': 'application/x-www-form-urlencoded',
1934
- Authorization: `Basic ${encodedData}`
1935
- },
1936
- method: 'POST',
1937
- body: `grant_type=client_credentials&client_id=${clientId}`
1938
- })
1939
- .then((response) => response.json())
1940
- .then((json) => {
1941
- const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
1942
- Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
1943
- setAccessToken(json.access_token)
1944
- })
1928
+ /*const encodedData = window.btoa(clientId + ':' + clientSecret)
1929
+ //const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
1930
+ const url = `https://api-platform.cvent.com/ea/oauth2/token`
1931
+ fetch(url, {
1932
+ headers: {
1933
+ 'Content-Type': 'application/x-www-form-urlencoded',
1934
+ Authorization: `Basic ${encodedData}`
1935
+ },
1936
+ method: 'POST',
1937
+ body: `grant_type=client_credentials&client_id=${clientId}`
1938
+ })
1939
+ .then((response) => response.json())
1940
+ .then((json) => {
1941
+ const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
1942
+ Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
1943
+ setAccessToken(json.access_token)
1944
+ })
1945
1945
  .catch((e) => console.log(e))*/
1946
1946
  // hello
1947
1947
  var url = 'https://beam.mjhlifesciences.com/api/cvent/token';
@@ -2135,7 +2135,7 @@ var EventsDeck = function EventsDeck(_ref) {
2135
2135
  )
2136
2136
  )
2137
2137
  ),
2138
- main.main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
2138
+ main.main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
2139
2139
  'div',
2140
2140
  { style: { margin: '0 auto' } },
2141
2141
  renderMobileAd(index, numberOfItemsBeforeAd)
@@ -2470,7 +2470,7 @@ var CMEDeck = function CMEDeck(_ref) {
2470
2470
  )
2471
2471
  )
2472
2472
  ),
2473
- main.main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
2473
+ main.main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
2474
2474
  'div',
2475
2475
  { style: { margin: '0 auto' } },
2476
2476
  renderMobileAd(index, numberOfItemsBeforeAd)
@@ -2761,7 +2761,7 @@ var AD300x250 = function AD300x250(_ref) {
2761
2761
  pos = _ref$pos === undefined ? 'rec1' : _ref$pos;
2762
2762
 
2763
2763
  var mobileView = false;
2764
- if (main.main_39) {
2764
+ if (main.main_36) {
2765
2765
  pos = 'rec1-mobile';
2766
2766
  mobileView = true;
2767
2767
  }
@@ -2793,7 +2793,7 @@ var AD300x250x600 = function AD300x250x600(_ref) {
2793
2793
  pos = _ref$pos === undefined ? 'rec2' : _ref$pos;
2794
2794
 
2795
2795
  var mobileView = false;
2796
- if (main.main_39) {
2796
+ if (main.main_36) {
2797
2797
  pos = 'rec2-mobile';
2798
2798
  mobileView = true;
2799
2799
  }
@@ -3210,18 +3210,21 @@ var Slideshow = function Slideshow(_ref) {
3210
3210
  );
3211
3211
  };
3212
3212
 
3213
- // do not edit .js files directly - edit src/index.jst
3214
-
3215
-
3213
+ var isArray = Array.isArray;
3214
+ var keyList = Object.keys;
3215
+ var hasProp = Object.prototype.hasOwnProperty;
3216
3216
 
3217
3217
  var fastDeepEqual = function equal(a, b) {
3218
3218
  if (a === b) return true;
3219
3219
 
3220
3220
  if (a && b && typeof a == 'object' && typeof b == 'object') {
3221
- if (a.constructor !== b.constructor) return false;
3221
+ var arrA = isArray(a)
3222
+ , arrB = isArray(b)
3223
+ , i
3224
+ , length
3225
+ , key;
3222
3226
 
3223
- var length, i, keys;
3224
- if (Array.isArray(a)) {
3227
+ if (arrA && arrB) {
3225
3228
  length = a.length;
3226
3229
  if (length != b.length) return false;
3227
3230
  for (i = length; i-- !== 0;)
@@ -3229,29 +3232,35 @@ var fastDeepEqual = function equal(a, b) {
3229
3232
  return true;
3230
3233
  }
3231
3234
 
3235
+ if (arrA != arrB) return false;
3232
3236
 
3237
+ var dateA = a instanceof Date
3238
+ , dateB = b instanceof Date;
3239
+ if (dateA != dateB) return false;
3240
+ if (dateA && dateB) return a.getTime() == b.getTime();
3233
3241
 
3234
- if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
3235
- if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
3236
- if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
3242
+ var regexpA = a instanceof RegExp
3243
+ , regexpB = b instanceof RegExp;
3244
+ if (regexpA != regexpB) return false;
3245
+ if (regexpA && regexpB) return a.toString() == b.toString();
3237
3246
 
3238
- keys = Object.keys(a);
3247
+ var keys = keyList(a);
3239
3248
  length = keys.length;
3240
- if (length !== Object.keys(b).length) return false;
3249
+
3250
+ if (length !== keyList(b).length)
3251
+ return false;
3241
3252
 
3242
3253
  for (i = length; i-- !== 0;)
3243
- if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
3254
+ if (!hasProp.call(b, keys[i])) return false;
3244
3255
 
3245
3256
  for (i = length; i-- !== 0;) {
3246
- var key = keys[i];
3247
-
3257
+ key = keys[i];
3248
3258
  if (!equal(a[key], b[key])) return false;
3249
3259
  }
3250
3260
 
3251
3261
  return true;
3252
3262
  }
3253
3263
 
3254
- // true if both NaN, false otherwise
3255
3264
  return a!==a && b!==b;
3256
3265
  };
3257
3266
 
@@ -4274,7 +4283,7 @@ function formatValue(ctx, value, recurseTimes) {
4274
4283
  var base = '', array = false, braces = ['{', '}'];
4275
4284
 
4276
4285
  // Make Array say that they are Array
4277
- if (isArray(value)) {
4286
+ if (isArray$1(value)) {
4278
4287
  array = true;
4279
4288
  braces = ['[', ']'];
4280
4289
  }
@@ -4453,7 +4462,7 @@ function reduceToSingleString(output, base, braces) {
4453
4462
 
4454
4463
  // NOTE: These type checking functions intentionally don't use `instanceof`
4455
4464
  // because it is fragile and can be easily faked with `Object.create()`.
4456
- function isArray(ar) {
4465
+ function isArray$1(ar) {
4457
4466
  return Array.isArray(ar);
4458
4467
  }
4459
4468
 
@@ -4580,7 +4589,7 @@ var util = {
4580
4589
  isNullOrUndefined: isNullOrUndefined,
4581
4590
  isNull: isNull,
4582
4591
  isBoolean: isBoolean,
4583
- isArray: isArray,
4592
+ isArray: isArray$1,
4584
4593
  inspect: inspect,
4585
4594
  deprecate: deprecate,
4586
4595
  format: format,
@@ -5247,235 +5256,199 @@ module.exports = exports['default'];
5247
5256
 
5248
5257
  var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
5249
5258
 
5250
- 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); }
5251
-
5252
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5253
-
5254
- 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); } }
5255
-
5256
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5257
-
5258
- 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); }; }
5259
-
5260
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5261
-
5262
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5263
-
5264
- 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; } }
5265
-
5266
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5259
+ 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; }; }();
5267
5260
 
5268
- 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); }
5261
+ 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; };
5269
5262
 
5270
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
5263
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5271
5264
 
5272
- 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; }
5265
+ 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; }
5273
5266
 
5274
- 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; }
5267
+ 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; }
5275
5268
 
5276
- 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; }
5277
- /**
5278
- * Check whether a `props` change should result in the video being updated.
5279
- *
5280
- * @param {Object} prevProps
5281
- * @param {Object} props
5269
+ /**
5270
+ * Check whether a `props` change should result in the video being updated.
5271
+ *
5272
+ * @param {Object} prevProps
5273
+ * @param {Object} props
5282
5274
  */
5283
-
5284
5275
  function shouldUpdateVideo(prevProps, props) {
5285
5276
  // A changing video should always trigger an update
5286
5277
  if (prevProps.videoId !== props.videoId) {
5287
5278
  return true;
5288
- } // Otherwise, a change in the start/end time playerVars also requires a player
5289
- // update.
5290
-
5279
+ }
5291
5280
 
5281
+ // Otherwise, a change in the start/end time playerVars also requires a player
5282
+ // update.
5292
5283
  var prevVars = prevProps.opts.playerVars || {};
5293
5284
  var vars = props.opts.playerVars || {};
5285
+
5294
5286
  return prevVars.start !== vars.start || prevVars.end !== vars.end;
5295
5287
  }
5296
- /**
5297
- * Neutralize API options that only require a video update, leaving only options
5298
- * that require a player reset. The results can then be compared to see if a
5299
- * player reset is necessary.
5300
- *
5301
- * @param {Object} opts
5302
- */
5303
-
5304
5288
 
5289
+ /**
5290
+ * Neutralise API options that only require a video update, leaving only options
5291
+ * that require a player reset. The results can then be compared to see if a
5292
+ * player reset is necessary.
5293
+ *
5294
+ * @param {Object} opts
5295
+ */
5305
5296
  function filterResetOptions(opts) {
5306
- return _objectSpread({}, opts, {
5307
- playerVars: _objectSpread({}, opts.playerVars, {
5297
+ return _extends({}, opts, {
5298
+ playerVars: _extends({}, opts.playerVars, {
5308
5299
  autoplay: 0,
5309
5300
  start: 0,
5310
5301
  end: 0
5311
5302
  })
5312
5303
  });
5313
5304
  }
5314
- /**
5315
- * Check whether a `props` change should result in the player being reset.
5316
- * The player is reset when the `props.opts` change, except if the only change
5317
- * is in the `start` and `end` playerVars, because a video update can deal with
5318
- * those.
5319
- *
5320
- * @param {Object} prevProps
5321
- * @param {Object} props
5322
- */
5323
-
5324
5305
 
5306
+ /**
5307
+ * Check whether a `props` change should result in the player being reset.
5308
+ * The player is reset when the `props.opts` change, except if the only change
5309
+ * is in the `start` and `end` playerVars, because a video update can deal with
5310
+ * those.
5311
+ *
5312
+ * @param {Object} prevProps
5313
+ * @param {Object} props
5314
+ */
5325
5315
  function shouldResetPlayer(prevProps, props) {
5326
5316
  return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
5327
5317
  }
5328
- /**
5329
- * Check whether a props change should result in an id or className update.
5330
- *
5331
- * @param {Object} prevProps
5332
- * @param {Object} props
5333
- */
5334
-
5335
5318
 
5319
+ /**
5320
+ * Check whether a props change should result in an id or className update.
5321
+ *
5322
+ * @param {Object} prevProps
5323
+ * @param {Object} props
5324
+ */
5336
5325
  function shouldUpdatePlayer(prevProps, props) {
5337
5326
  return prevProps.id !== props.id || prevProps.className !== props.className;
5338
5327
  }
5339
5328
 
5340
- var YouTube = /*#__PURE__*/function (_React$Component) {
5329
+ var YouTube = function (_React$Component) {
5341
5330
  _inherits(YouTube, _React$Component);
5342
5331
 
5343
- var _super = _createSuper(YouTube);
5344
-
5345
- /**
5346
- * Expose PlayerState constants for convenience. These constants can also be
5347
- * accessed through the global YT object after the YouTube IFrame API is instantiated.
5348
- * https://developers.google.com/youtube/iframe_api_reference#onStateChange
5349
- */
5350
5332
  function YouTube(props) {
5351
- var _this;
5352
-
5353
5333
  _classCallCheck(this, YouTube);
5354
5334
 
5355
- _this = _super.call(this, props);
5335
+ var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
5356
5336
 
5357
- _defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
5337
+ _this.onPlayerReady = function (event) {
5358
5338
  return _this.props.onReady(event);
5359
- });
5339
+ };
5360
5340
 
5361
- _defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
5341
+ _this.onPlayerError = function (event) {
5362
5342
  return _this.props.onError(event);
5363
- });
5343
+ };
5364
5344
 
5365
- _defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
5345
+ _this.onPlayerStateChange = function (event) {
5366
5346
  _this.props.onStateChange(event);
5367
-
5368
5347
  switch (event.data) {
5348
+
5369
5349
  case YouTube.PlayerState.ENDED:
5370
5350
  _this.props.onEnd(event);
5371
-
5372
5351
  break;
5373
5352
 
5374
5353
  case YouTube.PlayerState.PLAYING:
5375
5354
  _this.props.onPlay(event);
5376
-
5377
5355
  break;
5378
5356
 
5379
5357
  case YouTube.PlayerState.PAUSED:
5380
5358
  _this.props.onPause(event);
5381
-
5382
5359
  break;
5383
5360
  }
5384
- });
5361
+ };
5385
5362
 
5386
- _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
5363
+ _this.onPlayerPlaybackRateChange = function (event) {
5387
5364
  return _this.props.onPlaybackRateChange(event);
5388
- });
5365
+ };
5389
5366
 
5390
- _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
5367
+ _this.onPlayerPlaybackQualityChange = function (event) {
5391
5368
  return _this.props.onPlaybackQualityChange(event);
5392
- });
5369
+ };
5393
5370
 
5394
- _defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
5371
+ _this.createPlayer = function () {
5395
5372
  // do not attempt to create a player server-side, it won't work
5396
- if (typeof document === 'undefined') return; // create player
5397
-
5398
- var playerOpts = _objectSpread({}, _this.props.opts, {
5373
+ if (typeof document === 'undefined') return;
5374
+ // create player
5375
+ var playerOpts = _extends({}, _this.props.opts, {
5399
5376
  // preload the `videoId` video if one is already given
5400
5377
  videoId: _this.props.videoId
5401
5378
  });
5402
-
5403
- _this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
5404
-
5379
+ _this.internalPlayer = youTubePlayer(_this.container, playerOpts);
5380
+ // attach event handlers
5405
5381
  _this.internalPlayer.on('ready', _this.onPlayerReady);
5406
-
5407
5382
  _this.internalPlayer.on('error', _this.onPlayerError);
5408
-
5409
5383
  _this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
5410
-
5411
5384
  _this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
5412
-
5413
5385
  _this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
5414
- });
5386
+ };
5415
5387
 
5416
- _defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
5388
+ _this.resetPlayer = function () {
5417
5389
  return _this.internalPlayer.destroy().then(_this.createPlayer);
5418
- });
5390
+ };
5419
5391
 
5420
- _defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
5392
+ _this.updatePlayer = function () {
5421
5393
  _this.internalPlayer.getIframe().then(function (iframe) {
5422
5394
  if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
5423
5395
  if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
5424
5396
  });
5425
- });
5397
+ };
5426
5398
 
5427
- _defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
5399
+ _this.updateVideo = function () {
5428
5400
  if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
5429
5401
  _this.internalPlayer.stopVideo();
5430
-
5431
5402
  return;
5432
- } // set queueing options
5433
-
5403
+ }
5434
5404
 
5405
+ // set queueing options
5435
5406
  var autoplay = false;
5436
5407
  var opts = {
5437
5408
  videoId: _this.props.videoId
5438
5409
  };
5439
-
5440
5410
  if ('playerVars' in _this.props.opts) {
5441
5411
  autoplay = _this.props.opts.playerVars.autoplay === 1;
5442
-
5443
5412
  if ('start' in _this.props.opts.playerVars) {
5444
5413
  opts.startSeconds = _this.props.opts.playerVars.start;
5445
5414
  }
5446
-
5447
5415
  if ('end' in _this.props.opts.playerVars) {
5448
5416
  opts.endSeconds = _this.props.opts.playerVars.end;
5449
5417
  }
5450
- } // if autoplay is enabled loadVideoById
5451
-
5418
+ }
5452
5419
 
5420
+ // if autoplay is enabled loadVideoById
5453
5421
  if (autoplay) {
5454
5422
  _this.internalPlayer.loadVideoById(opts);
5455
-
5456
5423
  return;
5457
- } // default behaviour just cues the video
5458
-
5459
-
5424
+ }
5425
+ // default behaviour just cues the video
5460
5426
  _this.internalPlayer.cueVideoById(opts);
5461
- });
5427
+ };
5462
5428
 
5463
- _defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
5429
+ _this.refContainer = function (container) {
5464
5430
  _this.container = container;
5465
- });
5431
+ };
5466
5432
 
5467
5433
  _this.container = null;
5468
5434
  _this.internalPlayer = null;
5469
5435
  return _this;
5470
5436
  }
5471
5437
 
5438
+ /**
5439
+ * Expose PlayerState constants for convenience. These constants can also be
5440
+ * accessed through the global YT object after the YouTube IFrame API is instantiated.
5441
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
5442
+ */
5443
+
5444
+
5472
5445
  _createClass(YouTube, [{
5473
- key: "componentDidMount",
5446
+ key: 'componentDidMount',
5474
5447
  value: function componentDidMount() {
5475
5448
  this.createPlayer();
5476
5449
  }
5477
5450
  }, {
5478
- key: "componentDidUpdate",
5451
+ key: 'componentDidUpdate',
5479
5452
  value: function componentDidUpdate(prevProps) {
5480
5453
  if (shouldUpdatePlayer(prevProps, this.props)) {
5481
5454
  this.updatePlayer();
@@ -5490,58 +5463,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
5490
5463
  }
5491
5464
  }
5492
5465
  }, {
5493
- key: "componentWillUnmount",
5466
+ key: 'componentWillUnmount',
5494
5467
  value: function componentWillUnmount() {
5495
- /**
5496
- * Note: The `youtube-player` package that is used promisifies all YouTube
5497
- * Player API calls, which introduces a delay of a tick before it actually
5498
- * gets destroyed. Since React attempts to remove the element instantly
5499
- * this method isn't quick enough to reset the container element.
5468
+ /**
5469
+ * Note: The `youtube-player` package that is used promisifies all Youtube
5470
+ * Player API calls, which introduces a delay of a tick before it actually
5471
+ * gets destroyed. Since React attempts to remove the element instantly
5472
+ * this method isn't quick enough to reset the container element.
5500
5473
  */
5501
5474
  this.internalPlayer.destroy();
5502
5475
  }
5503
- /**
5504
- * https://developers.google.com/youtube/iframe_api_reference#onReady
5505
- *
5506
- * @param {Object} event
5507
- * @param {Object} target - player object
5476
+
5477
+ /**
5478
+ * https://developers.google.com/youtube/iframe_api_reference#onReady
5479
+ *
5480
+ * @param {Object} event
5481
+ * @param {Object} target - player object
5482
+ */
5483
+
5484
+
5485
+ /**
5486
+ * https://developers.google.com/youtube/iframe_api_reference#onError
5487
+ *
5488
+ * @param {Object} event
5489
+ * @param {Integer} data - error type
5490
+ * @param {Object} target - player object
5491
+ */
5492
+
5493
+
5494
+ /**
5495
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
5496
+ *
5497
+ * @param {Object} event
5498
+ * @param {Integer} data - status change type
5499
+ * @param {Object} target - actual YT player
5500
+ */
5501
+
5502
+
5503
+ /**
5504
+ * https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
5505
+ *
5506
+ * @param {Object} event
5507
+ * @param {Float} data - playback rate
5508
+ * @param {Object} target - actual YT player
5509
+ */
5510
+
5511
+
5512
+ /**
5513
+ * https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
5514
+ *
5515
+ * @param {Object} event
5516
+ * @param {String} data - playback quality
5517
+ * @param {Object} target - actual YT player
5518
+ */
5519
+
5520
+
5521
+ /**
5522
+ * Initialize the Youtube Player API on the container and attach event handlers
5523
+ */
5524
+
5525
+
5526
+ /**
5527
+ * Shorthand for destroying and then re-creating the Youtube Player
5528
+ */
5529
+
5530
+
5531
+ /**
5532
+ * Method to update the id and class of the Youtube Player iframe.
5533
+ * React should update this automatically but since the Youtube Player API
5534
+ * replaced the DIV that is mounted by React we need to do this manually.
5535
+ */
5536
+
5537
+
5538
+ /**
5539
+ * Call Youtube Player API methods to update the currently playing video.
5540
+ * Depeding on the `opts.playerVars.autoplay` this function uses one of two
5541
+ * Youtube Player API methods to update the video.
5508
5542
  */
5509
5543
 
5510
5544
  }, {
5511
- key: "render",
5545
+ key: 'render',
5512
5546
  value: function render() {
5513
- return /*#__PURE__*/React__default.createElement("div", {
5514
- className: this.props.containerClassName
5515
- }, /*#__PURE__*/React__default.createElement("div", {
5516
- id: this.props.id,
5517
- className: this.props.className,
5518
- ref: this.refContainer
5519
- }));
5547
+ return React__default.createElement(
5548
+ 'div',
5549
+ { className: this.props.containerClassName },
5550
+ React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
5551
+ );
5520
5552
  }
5521
5553
  }]);
5522
5554
 
5523
5555
  return YouTube;
5524
5556
  }(React__default.Component);
5525
5557
 
5526
- _defineProperty(YouTube, "PlayerState", {
5527
- UNSTARTED: -1,
5528
- ENDED: 0,
5529
- PLAYING: 1,
5530
- PAUSED: 2,
5531
- BUFFERING: 3,
5532
- CUED: 5
5533
- });
5534
-
5535
5558
  YouTube.propTypes = {
5536
5559
  videoId: PropTypes.string,
5560
+
5537
5561
  // custom ID for player element
5538
5562
  id: PropTypes.string,
5563
+
5539
5564
  // custom class name for player element
5540
5565
  className: PropTypes.string,
5541
5566
  // custom class name for player container element
5542
5567
  containerClassName: PropTypes.string,
5568
+
5543
5569
  // https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
5544
5570
  opts: PropTypes.objectOf(PropTypes.any),
5571
+
5545
5572
  // event subscriptions
5546
5573
  onReady: PropTypes.func,
5547
5574
  onError: PropTypes.func,
@@ -5553,7 +5580,6 @@ YouTube.propTypes = {
5553
5580
  onPlaybackQualityChange: PropTypes.func
5554
5581
  };
5555
5582
  YouTube.defaultProps = {
5556
- videoId: null,
5557
5583
  id: null,
5558
5584
  className: null,
5559
5585
  opts: {},
@@ -5567,6 +5593,14 @@ YouTube.defaultProps = {
5567
5593
  onPlaybackRateChange: function onPlaybackRateChange() {},
5568
5594
  onPlaybackQualityChange: function onPlaybackQualityChange() {}
5569
5595
  };
5596
+ YouTube.PlayerState = {
5597
+ UNSTARTED: -1,
5598
+ ENDED: 0,
5599
+ PLAYING: 1,
5600
+ PAUSED: 2,
5601
+ BUFFERING: 3,
5602
+ CUED: 5
5603
+ };
5570
5604
 
5571
5605
  var YouTubePlayer = function YouTubePlayer(_ref) {
5572
5606
  var url = _ref.url;
@@ -6481,8 +6515,8 @@ var window_1 = win;
6481
6515
 
6482
6516
  /*! @name @brightcove/react-player-loader @version 1.4.0 @license Apache-2.0 */
6483
6517
 
6484
- function _extends() {
6485
- _extends = Object.assign || function (target) {
6518
+ function _extends$1() {
6519
+ _extends$1 = Object.assign || function (target) {
6486
6520
  for (var i = 1; i < arguments.length; i++) {
6487
6521
  var source = arguments[i];
6488
6522
 
@@ -6496,7 +6530,7 @@ function _extends() {
6496
6530
  return target;
6497
6531
  };
6498
6532
 
6499
- return _extends.apply(this, arguments);
6533
+ return _extends$1.apply(this, arguments);
6500
6534
  }
6501
6535
 
6502
6536
  function _inheritsLoose(subClass, superClass) {
@@ -6505,7 +6539,7 @@ function _inheritsLoose(subClass, superClass) {
6505
6539
  subClass.__proto__ = superClass;
6506
6540
  }
6507
6541
 
6508
- function _assertThisInitialized$1(self) {
6542
+ function _assertThisInitialized(self) {
6509
6543
  if (self === void 0) {
6510
6544
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
6511
6545
  }
@@ -6515,8 +6549,8 @@ function _assertThisInitialized$1(self) {
6515
6549
 
6516
6550
  /*! @name @brightcove/player-loader @version 1.7.1 @license Apache-2.0 */
6517
6551
 
6518
- function _extends$1() {
6519
- _extends$1 = Object.assign || function (target) {
6552
+ function _extends$1$1() {
6553
+ _extends$1$1 = Object.assign || function (target) {
6520
6554
  for (var i = 1; i < arguments.length; i++) {
6521
6555
  var source = arguments[i];
6522
6556
 
@@ -6530,7 +6564,7 @@ function _extends$1() {
6530
6564
  return target;
6531
6565
  };
6532
6566
 
6533
- return _extends$1.apply(this, arguments);
6567
+ return _extends$1$1.apply(this, arguments);
6534
6568
  }
6535
6569
 
6536
6570
  var version$1 = "1.7.1";
@@ -6538,7 +6572,7 @@ var version$1 = "1.7.1";
6538
6572
  /*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */
6539
6573
  var version$1$1 = "1.2.0";
6540
6574
 
6541
- var _typeof$1 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
6575
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
6542
6576
  return typeof obj;
6543
6577
  } : function (obj) {
6544
6578
  return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
@@ -6673,7 +6707,7 @@ var brightcovePlayerUrl = function brightcovePlayerUrl(_ref) {
6673
6707
 
6674
6708
  var qs = '';
6675
6709
 
6676
- if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof$1(queryParams)) === 'object') {
6710
+ if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof(queryParams)) === 'object') {
6677
6711
  qs = getQueryString(queryParams);
6678
6712
  }
6679
6713
 
@@ -6907,7 +6941,7 @@ var wrapResponsive = function wrapResponsive(embedType, embedOptions, el) {
6907
6941
  el.style.width = '100%';
6908
6942
  el.style.height = '100%';
6909
6943
 
6910
- var responsive = _extends$1({
6944
+ var responsive = _extends$1$1({
6911
6945
  aspectRatio: DEFAULT_ASPECT_RATIO,
6912
6946
  iframeHorizontalPlaylist: DEFAULT_IFRAME_HORIZONTAL_PLAYLIST,
6913
6947
  maxWidth: DEFAULT_MAX_WIDTH
@@ -7592,7 +7626,7 @@ var loadPlayer = function loadPlayer(params, resolve, reject) {
7592
7626
 
7593
7627
 
7594
7628
  var brightcovePlayerLoader = function brightcovePlayerLoader(parameters) {
7595
- var params = _extends$1({}, DEFAULTS, parameters);
7629
+ var params = _extends$1$1({}, DEFAULTS, parameters);
7596
7630
 
7597
7631
  var Promise = params.Promise,
7598
7632
  onSuccess = params.onSuccess,
@@ -7734,7 +7768,7 @@ function (_React$Component) {
7734
7768
  _this.refNode = ref;
7735
7769
  };
7736
7770
 
7737
- _this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized$1(_this));
7771
+ _this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized(_this));
7738
7772
  return _this;
7739
7773
  }
7740
7774
  /**
@@ -7755,7 +7789,7 @@ function (_React$Component) {
7755
7789
  var userSuccess = this.props.onSuccess;
7756
7790
  var userFailure = this.props.onFailure;
7757
7791
 
7758
- var options = _extends({}, this.props, {
7792
+ var options = _extends$1({}, this.props, {
7759
7793
  refNode: this.refNode,
7760
7794
  refNodeInsert: 'append',
7761
7795
  onSuccess: function onSuccess(_ref) {
@@ -8064,7 +8098,7 @@ function (_React$Component) {
8064
8098
  ;
8065
8099
 
8066
8100
  _proto.render = function render() {
8067
- var props = _extends({
8101
+ var props = _extends$1({
8068
8102
  className: 'brightcove-react-player-loader'
8069
8103
  }, this.props.attrs, {
8070
8104
  ref: this.setRefNode
@@ -8583,17 +8617,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
8583
8617
 
8584
8618
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
8585
8619
 
8586
- 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; } } }; }
8587
-
8588
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8620
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
8589
8621
 
8590
- 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."); }
8622
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
8591
8623
 
8592
- 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); }
8593
-
8594
- 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; }
8595
-
8596
- 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; }
8624
+ 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; }
8597
8625
 
8598
8626
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
8599
8627
 
@@ -8723,12 +8751,12 @@ function getSDK(url, sdkGlobal) {
8723
8751
 
8724
8752
  function getConfig(props$1, defaultProps, showWarning) {
8725
8753
  var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
8726
-
8727
- var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
8728
- _step;
8754
+ var _iteratorNormalCompletion = true;
8755
+ var _didIteratorError = false;
8756
+ var _iteratorError = undefined;
8729
8757
 
8730
8758
  try {
8731
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
8759
+ for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
8732
8760
  var p = _step.value;
8733
8761
 
8734
8762
  if (props$1[p]) {
@@ -8743,9 +8771,18 @@ function getConfig(props$1, defaultProps, showWarning) {
8743
8771
  }
8744
8772
  }
8745
8773
  } catch (err) {
8746
- _iterator.e(err);
8774
+ _didIteratorError = true;
8775
+ _iteratorError = err;
8747
8776
  } finally {
8748
- _iterator.f();
8777
+ try {
8778
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
8779
+ _iterator["return"]();
8780
+ }
8781
+ } finally {
8782
+ if (_didIteratorError) {
8783
+ throw _iteratorError;
8784
+ }
8785
+ }
8749
8786
  }
8750
8787
 
8751
8788
  return config;
@@ -8892,16 +8929,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
8892
8929
 
8893
8930
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
8894
8931
 
8895
- 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); }; }
8896
-
8897
8932
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
8898
8933
 
8899
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
8900
-
8901
- 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; } }
8902
-
8903
8934
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
8904
8935
 
8936
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
8937
+
8905
8938
  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); }
8906
8939
 
8907
8940
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -8910,12 +8943,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
8910
8943
 
8911
8944
  var SEEK_ON_PLAY_EXPIRY = 5000;
8912
8945
 
8913
- var Player = /*#__PURE__*/function (_Component) {
8946
+ var Player =
8947
+ /*#__PURE__*/
8948
+ function (_Component) {
8914
8949
  _inherits(Player, _Component);
8915
8950
 
8916
- var _super = _createSuper(Player);
8917
-
8918
8951
  function Player() {
8952
+ var _getPrototypeOf2;
8953
+
8919
8954
  var _this;
8920
8955
 
8921
8956
  _classCallCheck(this, Player);
@@ -8924,7 +8959,7 @@ var Player = /*#__PURE__*/function (_Component) {
8924
8959
  _args[_key] = arguments[_key];
8925
8960
  }
8926
8961
 
8927
- _this = _super.call.apply(_super, [this].concat(_args));
8962
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
8928
8963
 
8929
8964
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
8930
8965
 
@@ -9249,7 +9284,7 @@ var Player = /*#__PURE__*/function (_Component) {
9249
9284
  return null;
9250
9285
  }
9251
9286
 
9252
- return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
9287
+ return _react["default"].createElement(Player, _extends({}, this.props, {
9253
9288
  ref: this.ref,
9254
9289
  onReady: this.handleReady,
9255
9290
  onPlay: this.handlePlay,
@@ -9310,16 +9345,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9310
9345
 
9311
9346
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9312
9347
 
9313
- 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); }; }
9314
-
9315
9348
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9316
9349
 
9317
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9318
-
9319
- 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; } }
9320
-
9321
9350
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9322
9351
 
9352
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9353
+
9323
9354
  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); }
9324
9355
 
9325
9356
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9331,12 +9362,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
9331
9362
  function createSinglePlayer(activePlayer) {
9332
9363
  var _class, _temp;
9333
9364
 
9334
- return _temp = _class = /*#__PURE__*/function (_Component) {
9365
+ return _temp = _class =
9366
+ /*#__PURE__*/
9367
+ function (_Component) {
9335
9368
  _inherits(SinglePlayer, _Component);
9336
9369
 
9337
- var _super = _createSuper(SinglePlayer);
9338
-
9339
9370
  function SinglePlayer() {
9371
+ var _getPrototypeOf2;
9372
+
9340
9373
  var _this;
9341
9374
 
9342
9375
  _classCallCheck(this, SinglePlayer);
@@ -9345,7 +9378,7 @@ function createSinglePlayer(activePlayer) {
9345
9378
  args[_key] = arguments[_key];
9346
9379
  }
9347
9380
 
9348
- _this = _super.call.apply(_super, [this].concat(args));
9381
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
9349
9382
 
9350
9383
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
9351
9384
 
@@ -9413,12 +9446,12 @@ function createSinglePlayer(activePlayer) {
9413
9446
  height = _this$props.height,
9414
9447
  Wrapper = _this$props.wrapper;
9415
9448
  var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
9416
- return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
9449
+ return _react["default"].createElement(Wrapper, _extends({
9417
9450
  style: _objectSpread({}, style, {
9418
9451
  width: width,
9419
9452
  height: height
9420
9453
  })
9421
- }, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
9454
+ }, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
9422
9455
  ref: this.ref,
9423
9456
  activePlayer: activePlayer,
9424
9457
  config: this.config
@@ -9464,31 +9497,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9464
9497
 
9465
9498
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9466
9499
 
9467
- 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); }; }
9468
-
9469
9500
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9470
9501
 
9471
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9472
-
9473
- 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; } }
9474
-
9475
9502
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9476
9503
 
9504
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9505
+
9477
9506
  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); }
9478
9507
 
9479
9508
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9480
9509
 
9481
9510
  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; }
9482
9511
 
9483
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
9484
-
9485
- 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."); }
9486
-
9487
- 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); }
9512
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
9488
9513
 
9489
- 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; }
9514
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
9490
9515
 
9491
- 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; }
9516
+ 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; }
9492
9517
 
9493
9518
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9494
9519
 
@@ -9513,12 +9538,14 @@ function parsePlaylist(url) {
9513
9538
  return {};
9514
9539
  }
9515
9540
 
9516
- var YouTube = /*#__PURE__*/function (_Component) {
9541
+ var YouTube =
9542
+ /*#__PURE__*/
9543
+ function (_Component) {
9517
9544
  _inherits(YouTube, _Component);
9518
9545
 
9519
- var _super = _createSuper(YouTube);
9520
-
9521
9546
  function YouTube() {
9547
+ var _getPrototypeOf2;
9548
+
9522
9549
  var _this;
9523
9550
 
9524
9551
  _classCallCheck(this, YouTube);
@@ -9527,7 +9554,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
9527
9554
  args[_key] = arguments[_key];
9528
9555
  }
9529
9556
 
9530
- _this = _super.call.apply(_super, [this].concat(args));
9557
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
9531
9558
 
9532
9559
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
9533
9560
 
@@ -9715,9 +9742,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
9715
9742
  height: '100%',
9716
9743
  display: display
9717
9744
  };
9718
- return /*#__PURE__*/_react["default"].createElement("div", {
9745
+ return _react["default"].createElement("div", {
9719
9746
  style: style
9720
- }, /*#__PURE__*/_react["default"].createElement("div", {
9747
+ }, _react["default"].createElement("div", {
9721
9748
  ref: this.ref
9722
9749
  }));
9723
9750
  }
@@ -9773,16 +9800,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9773
9800
 
9774
9801
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9775
9802
 
9776
- 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); }; }
9777
-
9778
9803
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9779
9804
 
9780
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9781
-
9782
- 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; } }
9783
-
9784
9805
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9785
9806
 
9807
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9808
+
9786
9809
  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); }
9787
9810
 
9788
9811
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9791,14 +9814,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
9791
9814
 
9792
9815
  var SDK_URL = 'https://w.soundcloud.com/player/api.js';
9793
9816
  var SDK_GLOBAL = 'SC';
9794
- var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
9817
+ var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
9795
9818
 
9796
- var SoundCloud = /*#__PURE__*/function (_Component) {
9819
+ var SoundCloud =
9820
+ /*#__PURE__*/
9821
+ function (_Component) {
9797
9822
  _inherits(SoundCloud, _Component);
9798
9823
 
9799
- var _super = _createSuper(SoundCloud);
9800
-
9801
9824
  function SoundCloud() {
9825
+ var _getPrototypeOf2;
9826
+
9802
9827
  var _this;
9803
9828
 
9804
9829
  _classCallCheck(this, SoundCloud);
@@ -9807,7 +9832,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
9807
9832
  args[_key] = arguments[_key];
9808
9833
  }
9809
9834
 
9810
- _this = _super.call.apply(_super, [this].concat(args));
9835
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
9811
9836
 
9812
9837
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
9813
9838
 
@@ -9928,7 +9953,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
9928
9953
  height: '100%',
9929
9954
  display: display
9930
9955
  };
9931
- return /*#__PURE__*/_react["default"].createElement("iframe", {
9956
+ return _react["default"].createElement("iframe", {
9932
9957
  ref: this.ref,
9933
9958
  src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
9934
9959
  style: style,
@@ -9990,16 +10015,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9990
10015
 
9991
10016
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9992
10017
 
9993
- 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); }; }
9994
-
9995
10018
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9996
10019
 
9997
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9998
-
9999
- 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; } }
10000
-
10001
10020
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10002
10021
 
10022
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10023
+
10003
10024
  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); }
10004
10025
 
10005
10026
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10011,12 +10032,14 @@ var SDK_GLOBAL = 'Vimeo';
10011
10032
  var MATCH_URL = /vimeo\.com\/.+/;
10012
10033
  var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
10013
10034
 
10014
- var Vimeo = /*#__PURE__*/function (_Component) {
10035
+ var Vimeo =
10036
+ /*#__PURE__*/
10037
+ function (_Component) {
10015
10038
  _inherits(Vimeo, _Component);
10016
10039
 
10017
- var _super = _createSuper(Vimeo);
10018
-
10019
10040
  function Vimeo() {
10041
+ var _getPrototypeOf2;
10042
+
10020
10043
  var _this;
10021
10044
 
10022
10045
  _classCallCheck(this, Vimeo);
@@ -10025,7 +10048,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
10025
10048
  args[_key] = arguments[_key];
10026
10049
  }
10027
10050
 
10028
- _this = _super.call.apply(_super, [this].concat(args));
10051
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
10029
10052
 
10030
10053
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10031
10054
 
@@ -10182,7 +10205,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
10182
10205
  overflow: 'hidden',
10183
10206
  display: display
10184
10207
  };
10185
- return /*#__PURE__*/_react["default"].createElement("div", {
10208
+ return _react["default"].createElement("div", {
10186
10209
  key: this.props.url,
10187
10210
  ref: this.ref,
10188
10211
  style: style
@@ -10242,16 +10265,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10242
10265
 
10243
10266
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10244
10267
 
10245
- 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); }; }
10246
-
10247
10268
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10248
10269
 
10249
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10250
-
10251
- 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; } }
10252
-
10253
10270
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10254
10271
 
10272
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10273
+
10255
10274
  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); }
10256
10275
 
10257
10276
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10264,12 +10283,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
10264
10283
  var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
10265
10284
  var PLAYER_ID_PREFIX = 'facebook-player-';
10266
10285
 
10267
- var Facebook = /*#__PURE__*/function (_Component) {
10286
+ var Facebook =
10287
+ /*#__PURE__*/
10288
+ function (_Component) {
10268
10289
  _inherits(Facebook, _Component);
10269
10290
 
10270
- var _super = _createSuper(Facebook);
10271
-
10272
10291
  function Facebook() {
10292
+ var _getPrototypeOf2;
10293
+
10273
10294
  var _this;
10274
10295
 
10275
10296
  _classCallCheck(this, Facebook);
@@ -10278,7 +10299,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
10278
10299
  args[_key] = arguments[_key];
10279
10300
  }
10280
10301
 
10281
- _this = _super.call.apply(_super, [this].concat(args));
10302
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
10282
10303
 
10283
10304
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10284
10305
 
@@ -10394,7 +10415,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
10394
10415
  width: '100%',
10395
10416
  height: '100%'
10396
10417
  };
10397
- return /*#__PURE__*/_react["default"].createElement("div", {
10418
+ return _react["default"].createElement("div", {
10398
10419
  style: style,
10399
10420
  id: this.playerID,
10400
10421
  className: "fb-video",
@@ -10454,16 +10475,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10454
10475
 
10455
10476
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10456
10477
 
10457
- 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); }; }
10458
-
10459
10478
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10460
10479
 
10461
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10462
-
10463
- 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; } }
10464
-
10465
10480
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10466
10481
 
10482
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10483
+
10467
10484
  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); }
10468
10485
 
10469
10486
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10474,12 +10491,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
10474
10491
  var SDK_GLOBAL = 'playerjs';
10475
10492
  var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
10476
10493
 
10477
- var Streamable = /*#__PURE__*/function (_Component) {
10494
+ var Streamable =
10495
+ /*#__PURE__*/
10496
+ function (_Component) {
10478
10497
  _inherits(Streamable, _Component);
10479
10498
 
10480
- var _super = _createSuper(Streamable);
10481
-
10482
10499
  function Streamable() {
10500
+ var _getPrototypeOf2;
10501
+
10483
10502
  var _this;
10484
10503
 
10485
10504
  _classCallCheck(this, Streamable);
@@ -10488,7 +10507,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
10488
10507
  args[_key] = arguments[_key];
10489
10508
  }
10490
10509
 
10491
- _this = _super.call.apply(_super, [this].concat(args));
10510
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
10492
10511
 
10493
10512
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10494
10513
 
@@ -10608,7 +10627,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
10608
10627
  width: '100%',
10609
10628
  height: '100%'
10610
10629
  };
10611
- return /*#__PURE__*/_react["default"].createElement("iframe", {
10630
+ return _react["default"].createElement("iframe", {
10612
10631
  ref: this.ref,
10613
10632
  src: "https://streamable.com/o/".concat(id),
10614
10633
  frameBorder: "0",
@@ -10669,16 +10688,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10669
10688
 
10670
10689
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10671
10690
 
10672
- 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); }; }
10673
-
10674
10691
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10675
10692
 
10676
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10677
-
10678
- 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; } }
10679
-
10680
10693
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10681
10694
 
10695
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10696
+
10682
10697
  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); }
10683
10698
 
10684
10699
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10689,48 +10704,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
10689
10704
  var SDK_GLOBAL = 'Wistia';
10690
10705
  var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
10691
10706
 
10692
- var Wistia = /*#__PURE__*/function (_Component) {
10707
+ var Wistia =
10708
+ /*#__PURE__*/
10709
+ function (_Component) {
10693
10710
  _inherits(Wistia, _Component);
10694
10711
 
10695
- var _super = _createSuper(Wistia);
10696
-
10697
10712
  function Wistia() {
10713
+ var _getPrototypeOf2;
10714
+
10698
10715
  var _this;
10699
10716
 
10700
10717
  _classCallCheck(this, Wistia);
10701
10718
 
10702
- for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
10703
- _args[_key] = arguments[_key];
10719
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
10720
+ args[_key] = arguments[_key];
10704
10721
  }
10705
10722
 
10706
- _this = _super.call.apply(_super, [this].concat(_args));
10723
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
10707
10724
 
10708
10725
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10709
10726
 
10710
- _defineProperty(_assertThisInitialized(_this), "onPlay", function () {
10711
- var _this$props;
10712
-
10713
- return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
10714
- });
10715
-
10716
- _defineProperty(_assertThisInitialized(_this), "onPause", function () {
10717
- var _this$props2;
10718
-
10719
- return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
10720
- });
10721
-
10722
- _defineProperty(_assertThisInitialized(_this), "onSeek", function () {
10723
- var _this$props3;
10724
-
10725
- return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
10726
- });
10727
-
10728
- _defineProperty(_assertThisInitialized(_this), "onEnded", function () {
10729
- var _this$props4;
10730
-
10731
- return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
10732
- });
10733
-
10734
10727
  _defineProperty(_assertThisInitialized(_this), "mute", function () {
10735
10728
  _this.callPlayer('mute');
10736
10729
  });
@@ -10752,13 +10745,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
10752
10745
  value: function load(url) {
10753
10746
  var _this2 = this;
10754
10747
 
10755
- var _this$props5 = this.props,
10756
- playing = _this$props5.playing,
10757
- muted = _this$props5.muted,
10758
- controls = _this$props5.controls,
10759
- _onReady = _this$props5.onReady,
10760
- config = _this$props5.config,
10761
- onError = _this$props5.onError;
10748
+ var _this$props = this.props,
10749
+ playing = _this$props.playing,
10750
+ muted = _this$props.muted,
10751
+ controls = _this$props.controls,
10752
+ _onReady = _this$props.onReady,
10753
+ onPlay = _this$props.onPlay,
10754
+ onPause = _this$props.onPause,
10755
+ onSeek = _this$props.onSeek,
10756
+ onEnded = _this$props.onEnded,
10757
+ config = _this$props.config,
10758
+ onError = _this$props.onError;
10762
10759
  (0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
10763
10760
  window._wq = window._wq || [];
10764
10761
 
@@ -10775,28 +10772,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
10775
10772
 
10776
10773
  _this2.unbind();
10777
10774
 
10778
- _this2.player.bind('play', _this2.onPlay);
10775
+ _this2.player.bind('play', onPlay);
10779
10776
 
10780
- _this2.player.bind('pause', _this2.onPause);
10777
+ _this2.player.bind('pause', onPause);
10781
10778
 
10782
- _this2.player.bind('seek', _this2.onSeek);
10779
+ _this2.player.bind('seek', onSeek);
10783
10780
 
10784
- _this2.player.bind('end', _this2.onEnded);
10781
+ _this2.player.bind('end', onEnded);
10785
10782
 
10786
10783
  _onReady();
10787
10784
  }
10788
10785
  });
10789
10786
  }, onError);
10790
10787
  }
10791
- }, {
10792
- key: "unbind",
10793
- value: function unbind() {
10794
- this.player.unbind('play', this.onPlay);
10795
- this.player.unbind('pause', this.onPause);
10796
- this.player.unbind('seek', this.onSeek);
10797
- this.player.unbind('end', this.onEnded);
10798
- } // Proxy methods to prevent listener leaks
10799
-
10800
10788
  }, {
10801
10789
  key: "play",
10802
10790
  value: function play() {
@@ -10807,6 +10795,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
10807
10795
  value: function pause() {
10808
10796
  this.callPlayer('pause');
10809
10797
  }
10798
+ }, {
10799
+ key: "unbind",
10800
+ value: function unbind() {
10801
+ var _this$props2 = this.props,
10802
+ onPlay = _this$props2.onPlay,
10803
+ onPause = _this$props2.onPause,
10804
+ onSeek = _this$props2.onSeek,
10805
+ onEnded = _this$props2.onEnded;
10806
+ this.player.unbind('play', onPlay);
10807
+ this.player.unbind('pause', onPause);
10808
+ this.player.unbind('seek', onSeek);
10809
+ this.player.unbind('end', onEnded);
10810
+ }
10810
10811
  }, {
10811
10812
  key: "stop",
10812
10813
  value: function stop() {
@@ -10852,7 +10853,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
10852
10853
  width: '100%',
10853
10854
  height: '100%'
10854
10855
  };
10855
- return /*#__PURE__*/_react["default"].createElement("div", {
10856
+ return _react["default"].createElement("div", {
10856
10857
  key: id,
10857
10858
  className: className,
10858
10859
  style: style
@@ -10912,16 +10913,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10912
10913
 
10913
10914
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10914
10915
 
10915
- 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); }; }
10916
-
10917
10916
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10918
10917
 
10919
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10920
-
10921
- 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; } }
10922
-
10923
10918
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10924
10919
 
10920
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10921
+
10925
10922
  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); }
10926
10923
 
10927
10924
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10934,12 +10931,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
10934
10931
  var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
10935
10932
  var PLAYER_ID_PREFIX = 'twitch-player-';
10936
10933
 
10937
- var Twitch = /*#__PURE__*/function (_Component) {
10934
+ var Twitch =
10935
+ /*#__PURE__*/
10936
+ function (_Component) {
10938
10937
  _inherits(Twitch, _Component);
10939
10938
 
10940
- var _super = _createSuper(Twitch);
10941
-
10942
10939
  function Twitch() {
10940
+ var _getPrototypeOf2;
10941
+
10943
10942
  var _this;
10944
10943
 
10945
10944
  _classCallCheck(this, Twitch);
@@ -10948,7 +10947,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
10948
10947
  args[_key] = arguments[_key];
10949
10948
  }
10950
10949
 
10951
- _this = _super.call.apply(_super, [this].concat(args));
10950
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
10952
10951
 
10953
10952
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10954
10953
 
@@ -11069,7 +11068,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
11069
11068
  width: '100%',
11070
11069
  height: '100%'
11071
11070
  };
11072
- return /*#__PURE__*/_react["default"].createElement("div", {
11071
+ return _react["default"].createElement("div", {
11073
11072
  style: style,
11074
11073
  id: this.playerID
11075
11074
  });
@@ -11122,15 +11121,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
11122
11121
 
11123
11122
  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; }
11124
11123
 
11125
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
11124
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
11126
11125
 
11127
- 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."); }
11126
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
11128
11127
 
11129
- 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); }
11130
-
11131
- 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; }
11132
-
11133
- 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; }
11128
+ 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; }
11134
11129
 
11135
11130
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11136
11131
 
@@ -11140,16 +11135,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11140
11135
 
11141
11136
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11142
11137
 
11143
- 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); }; }
11144
-
11145
11138
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11146
11139
 
11147
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11148
-
11149
- 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; } }
11150
-
11151
11140
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11152
11141
 
11142
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11143
+
11153
11144
  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); }
11154
11145
 
11155
11146
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11161,12 +11152,14 @@ var SDK_GLOBAL = 'DM';
11161
11152
  var SDK_GLOBAL_READY = 'dmAsyncInit';
11162
11153
  var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
11163
11154
 
11164
- var DailyMotion = /*#__PURE__*/function (_Component) {
11155
+ var DailyMotion =
11156
+ /*#__PURE__*/
11157
+ function (_Component) {
11165
11158
  _inherits(DailyMotion, _Component);
11166
11159
 
11167
- var _super = _createSuper(DailyMotion);
11168
-
11169
11160
  function DailyMotion() {
11161
+ var _getPrototypeOf2;
11162
+
11170
11163
  var _this;
11171
11164
 
11172
11165
  _classCallCheck(this, DailyMotion);
@@ -11175,7 +11168,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
11175
11168
  args[_key] = arguments[_key];
11176
11169
  }
11177
11170
 
11178
- _this = _super.call.apply(_super, [this].concat(args));
11171
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
11179
11172
 
11180
11173
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11181
11174
 
@@ -11304,9 +11297,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
11304
11297
  height: '100%',
11305
11298
  display: display
11306
11299
  };
11307
- return /*#__PURE__*/_react["default"].createElement("div", {
11300
+ return _react["default"].createElement("div", {
11308
11301
  style: style
11309
- }, /*#__PURE__*/_react["default"].createElement("div", {
11302
+ }, _react["default"].createElement("div", {
11310
11303
  ref: this.ref
11311
11304
  }));
11312
11305
  }
@@ -11364,16 +11357,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11364
11357
 
11365
11358
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11366
11359
 
11367
- 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); }; }
11368
-
11369
11360
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11370
11361
 
11371
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11372
-
11373
- 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; } }
11374
-
11375
11362
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11376
11363
 
11364
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11365
+
11377
11366
  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); }
11378
11367
 
11379
11368
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11384,12 +11373,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
11384
11373
  var SDK_GLOBAL = 'Mixcloud';
11385
11374
  var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
11386
11375
 
11387
- var Mixcloud = /*#__PURE__*/function (_Component) {
11376
+ var Mixcloud =
11377
+ /*#__PURE__*/
11378
+ function (_Component) {
11388
11379
  _inherits(Mixcloud, _Component);
11389
11380
 
11390
- var _super = _createSuper(Mixcloud);
11391
-
11392
11381
  function Mixcloud() {
11382
+ var _getPrototypeOf2;
11383
+
11393
11384
  var _this;
11394
11385
 
11395
11386
  _classCallCheck(this, Mixcloud);
@@ -11398,7 +11389,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
11398
11389
  args[_key] = arguments[_key];
11399
11390
  }
11400
11391
 
11401
- _this = _super.call.apply(_super, [this].concat(args));
11392
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
11402
11393
 
11403
11394
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11404
11395
 
@@ -11501,7 +11492,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
11501
11492
  })); // We have to give the iframe a key here to prevent a
11502
11493
  // weird dialog appearing when loading a new track
11503
11494
 
11504
- return /*#__PURE__*/_react["default"].createElement("iframe", {
11495
+ return _react["default"].createElement("iframe", {
11505
11496
  key: id,
11506
11497
  ref: this.ref,
11507
11498
  style: style,
@@ -11561,33 +11552,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11561
11552
 
11562
11553
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11563
11554
 
11564
- 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); }; }
11565
-
11566
11555
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11567
11556
 
11568
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11569
-
11570
- 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; } }
11571
-
11572
11557
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11573
11558
 
11559
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11560
+
11574
11561
  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); }
11575
11562
 
11576
11563
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
11577
11564
 
11578
11565
  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; }
11579
11566
 
11580
- 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; } } }; }
11581
-
11582
- 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); }
11583
-
11584
- 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; }
11585
-
11586
11567
  var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
11587
11568
  var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
11588
11569
  var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
11589
11570
  var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
11590
- var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
11571
+ var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
11591
11572
  var HLS_GLOBAL = 'Hls';
11592
11573
  var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
11593
11574
  var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
@@ -11596,11 +11577,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
11596
11577
 
11597
11578
  function canPlay(url) {
11598
11579
  if (url instanceof Array) {
11599
- var _iterator = _createForOfIteratorHelper(url),
11600
- _step;
11580
+ var _iteratorNormalCompletion = true;
11581
+ var _didIteratorError = false;
11582
+ var _iteratorError = undefined;
11601
11583
 
11602
11584
  try {
11603
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
11585
+ for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
11604
11586
  var item = _step.value;
11605
11587
 
11606
11588
  if (typeof item === 'string' && canPlay(item)) {
@@ -11612,9 +11594,18 @@ function canPlay(url) {
11612
11594
  }
11613
11595
  }
11614
11596
  } catch (err) {
11615
- _iterator.e(err);
11597
+ _didIteratorError = true;
11598
+ _iteratorError = err;
11616
11599
  } finally {
11617
- _iterator.f();
11600
+ try {
11601
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
11602
+ _iterator["return"]();
11603
+ }
11604
+ } finally {
11605
+ if (_didIteratorError) {
11606
+ throw _iteratorError;
11607
+ }
11608
+ }
11618
11609
  }
11619
11610
 
11620
11611
  return false;
@@ -11638,12 +11629,14 @@ function canEnablePIP(url) {
11638
11629
  return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
11639
11630
  }
11640
11631
 
11641
- var FilePlayer = /*#__PURE__*/function (_Component) {
11632
+ var FilePlayer =
11633
+ /*#__PURE__*/
11634
+ function (_Component) {
11642
11635
  _inherits(FilePlayer, _Component);
11643
11636
 
11644
- var _super = _createSuper(FilePlayer);
11645
-
11646
11637
  function FilePlayer() {
11638
+ var _getPrototypeOf2;
11639
+
11647
11640
  var _this;
11648
11641
 
11649
11642
  _classCallCheck(this, FilePlayer);
@@ -11652,7 +11645,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
11652
11645
  _args[_key] = arguments[_key];
11653
11646
  }
11654
11647
 
11655
- _this = _super.call.apply(_super, [this].concat(_args));
11648
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
11656
11649
 
11657
11650
  _defineProperty(_assertThisInitialized(_this), "onReady", function () {
11658
11651
  var _this$props;
@@ -11739,19 +11732,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
11739
11732
 
11740
11733
  _defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
11741
11734
  if (typeof source === 'string') {
11742
- return /*#__PURE__*/_react["default"].createElement("source", {
11735
+ return _react["default"].createElement("source", {
11743
11736
  key: index,
11744
11737
  src: source
11745
11738
  });
11746
11739
  }
11747
11740
 
11748
- return /*#__PURE__*/_react["default"].createElement("source", _extends({
11741
+ return _react["default"].createElement("source", _extends({
11749
11742
  key: index
11750
11743
  }, source));
11751
11744
  });
11752
11745
 
11753
11746
  _defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
11754
- return /*#__PURE__*/_react["default"].createElement("track", _extends({
11747
+ return _react["default"].createElement("track", _extends({
11755
11748
  key: index
11756
11749
  }, track));
11757
11750
  });
@@ -11789,10 +11782,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
11789
11782
  key: "componentWillUnmount",
11790
11783
  value: function componentWillUnmount() {
11791
11784
  this.removeListeners(this.player);
11792
-
11793
- if (this.hls) {
11794
- this.hls.destroy();
11795
- }
11796
11785
  }
11797
11786
  }, {
11798
11787
  key: "addListeners",
@@ -11923,6 +11912,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
11923
11912
  value: function stop() {
11924
11913
  this.player.removeAttribute('src');
11925
11914
 
11915
+ if (this.hls) {
11916
+ this.hls.destroy();
11917
+ }
11918
+
11926
11919
  if (this.dash) {
11927
11920
  this.dash.reset();
11928
11921
  }
@@ -12034,7 +12027,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
12034
12027
  width: width === 'auto' ? width : '100%',
12035
12028
  height: height === 'auto' ? height : '100%'
12036
12029
  };
12037
- return /*#__PURE__*/_react["default"].createElement(Element, _extends({
12030
+ return _react["default"].createElement(Element, _extends({
12038
12031
  ref: this.ref,
12039
12032
  src: this.getSource(url),
12040
12033
  style: style,
@@ -12124,16 +12117,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
12124
12117
 
12125
12118
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
12126
12119
 
12127
- 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); }; }
12128
-
12129
12120
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12130
12121
 
12131
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12132
-
12133
- 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; } }
12134
-
12135
12122
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12136
12123
 
12124
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12125
+
12137
12126
  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); }
12138
12127
 
12139
12128
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -12142,12 +12131,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12142
12131
 
12143
12132
  var ICON_SIZE = '64px';
12144
12133
 
12145
- var Preview = /*#__PURE__*/function (_Component) {
12134
+ var Preview =
12135
+ /*#__PURE__*/
12136
+ function (_Component) {
12146
12137
  _inherits(Preview, _Component);
12147
12138
 
12148
- var _super = _createSuper(Preview);
12149
-
12150
12139
  function Preview() {
12140
+ var _getPrototypeOf2;
12141
+
12151
12142
  var _this;
12152
12143
 
12153
12144
  _classCallCheck(this, Preview);
@@ -12156,7 +12147,7 @@ var Preview = /*#__PURE__*/function (_Component) {
12156
12147
  args[_key] = arguments[_key];
12157
12148
  }
12158
12149
 
12159
- _this = _super.call.apply(_super, [this].concat(args));
12150
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
12160
12151
 
12161
12152
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
12162
12153
 
@@ -12254,15 +12245,15 @@ var Preview = /*#__PURE__*/function (_Component) {
12254
12245
  }
12255
12246
  };
12256
12247
 
12257
- var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
12248
+ var defaultPlayIcon = _react["default"].createElement("div", {
12258
12249
  style: styles.shadow,
12259
12250
  className: "react-player__shadow"
12260
- }, /*#__PURE__*/_react["default"].createElement("div", {
12251
+ }, _react["default"].createElement("div", {
12261
12252
  style: styles.playIcon,
12262
12253
  className: "react-player__play-icon"
12263
12254
  }));
12264
12255
 
12265
- return /*#__PURE__*/_react["default"].createElement("div", {
12256
+ return _react["default"].createElement("div", {
12266
12257
  style: styles.preview,
12267
12258
  className: "react-player__preview",
12268
12259
  onClick: onClick
@@ -12299,12 +12290,6 @@ var _Player = _interopRequireDefault(Player_1);
12299
12290
 
12300
12291
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12301
12292
 
12302
- 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; } } }; }
12303
-
12304
- 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); }
12305
-
12306
- 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; }
12307
-
12308
12293
  var PRELOAD_PLAYERS = [{
12309
12294
  Player: YouTube_1.YouTube,
12310
12295
  configKey: 'youtube',
@@ -12325,16 +12310,16 @@ var PRELOAD_PLAYERS = [{
12325
12310
 
12326
12311
  function renderPreloadPlayers(url, controls, config) {
12327
12312
  var players = [];
12328
-
12329
- var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
12330
- _step;
12313
+ var _iteratorNormalCompletion = true;
12314
+ var _didIteratorError = false;
12315
+ var _iteratorError = undefined;
12331
12316
 
12332
12317
  try {
12333
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
12318
+ for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
12334
12319
  var player = _step.value;
12335
12320
 
12336
12321
  if (!player.Player.canPlay(url) && config[player.configKey].preload) {
12337
- players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
12322
+ players.push(_react["default"].createElement(_Player["default"], {
12338
12323
  key: player.Player.displayName,
12339
12324
  activePlayer: player.Player,
12340
12325
  url: player.url,
@@ -12346,9 +12331,18 @@ function renderPreloadPlayers(url, controls, config) {
12346
12331
  }
12347
12332
  }
12348
12333
  } catch (err) {
12349
- _iterator.e(err);
12334
+ _didIteratorError = true;
12335
+ _iteratorError = err;
12350
12336
  } finally {
12351
- _iterator.f();
12337
+ try {
12338
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
12339
+ _iterator["return"]();
12340
+ }
12341
+ } finally {
12342
+ if (_didIteratorError) {
12343
+ throw _iteratorError;
12344
+ }
12345
+ }
12352
12346
  }
12353
12347
 
12354
12348
  return players;
@@ -12472,17 +12466,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
12472
12466
 
12473
12467
  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); }
12474
12468
 
12475
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
12476
-
12477
- 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."); }
12469
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
12478
12470
 
12479
- 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); }
12471
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
12480
12472
 
12481
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
12473
+ function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
12482
12474
 
12483
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
12484
-
12485
- 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; }
12475
+ 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; } }
12486
12476
 
12487
12477
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
12488
12478
 
@@ -12490,16 +12480,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
12490
12480
 
12491
12481
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
12492
12482
 
12493
- 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); }; }
12494
-
12495
12483
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12496
12484
 
12497
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12498
-
12499
- 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; } }
12500
-
12501
12485
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12502
12486
 
12487
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12488
+
12503
12489
  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); }
12504
12490
 
12505
12491
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -12509,12 +12495,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12509
12495
  var SUPPORTED_PROPS = Object.keys(props.propTypes);
12510
12496
  var customPlayers = [];
12511
12497
 
12512
- var ReactPlayer = /*#__PURE__*/function (_Component) {
12498
+ var ReactPlayer =
12499
+ /*#__PURE__*/
12500
+ function (_Component) {
12513
12501
  _inherits(ReactPlayer, _Component);
12514
12502
 
12515
- var _super = _createSuper(ReactPlayer);
12516
-
12517
12503
  function ReactPlayer() {
12504
+ var _getPrototypeOf2;
12505
+
12518
12506
  var _this;
12519
12507
 
12520
12508
  _classCallCheck(this, ReactPlayer);
@@ -12523,7 +12511,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
12523
12511
  args[_key] = arguments[_key];
12524
12512
  }
12525
12513
 
12526
- _this = _super.call.apply(_super, [this].concat(args));
12514
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
12527
12515
 
12528
12516
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
12529
12517
 
@@ -12634,7 +12622,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
12634
12622
  key: "renderActivePlayer",
12635
12623
  value: function renderActivePlayer(url, activePlayer) {
12636
12624
  if (!url) return null;
12637
- return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
12625
+ return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
12638
12626
  key: activePlayer.displayName,
12639
12627
  ref: this.activePlayerRef,
12640
12628
  config: this.config,
@@ -12671,14 +12659,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
12671
12659
  var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
12672
12660
  var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
12673
12661
 
12674
- var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
12662
+ var preview = _react["default"].createElement(_Preview["default"], {
12675
12663
  url: url,
12676
12664
  light: light,
12677
12665
  playIcon: playIcon,
12678
12666
  onClick: this.handleClickPreview
12679
12667
  });
12680
12668
 
12681
- return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
12669
+ return _react["default"].createElement(Wrapper, _extends({
12682
12670
  ref: this.wrapperRef,
12683
12671
  style: _objectSpread({}, style, {
12684
12672
  width: width,
@@ -13291,7 +13279,7 @@ var Poll = function Poll(_ref) {
13291
13279
  );
13292
13280
  };
13293
13281
 
13294
- var numberOfPaginations = main.main_38 ? 4 : 10;
13282
+ var numberOfPaginations = main.main_35 ? 4 : 10;
13295
13283
 
13296
13284
  var Quiz = function Quiz(_ref) {
13297
13285
  var quizzes = _ref.quizzes,
@@ -13404,7 +13392,7 @@ var Quiz = function Quiz(_ref) {
13404
13392
  var renderPagination = function renderPagination() {
13405
13393
  return React__default.createElement(
13406
13394
  Pagination,
13407
- { className: 'p-0 m-0', size: main.main_38 && 'sm' },
13395
+ { className: 'p-0 m-0', size: main.main_35 && 'sm' },
13408
13396
  React__default.createElement(Pagination.First, { onClick: function onClick() {
13409
13397
  return changePage('first');
13410
13398
  }, disabled: currentPage === 1 }),
@@ -13644,7 +13632,7 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
13644
13632
  };
13645
13633
 
13646
13634
  var Figure = dynamic(function () {
13647
- return Promise.resolve().then(function () { return require('./Figure-9e886c5b.js'); });
13635
+ return Promise.resolve().then(function () { return require('./Figure-7277baf0.js'); });
13648
13636
  }, { ssr: false });
13649
13637
 
13650
13638
  var ScrollToElement = function ScrollToElement(elementId) {
@@ -13915,7 +13903,7 @@ var Feature = function Feature(props) {
13915
13903
  };
13916
13904
  //image width
13917
13905
  var imageWidth = 900;
13918
- if (main.main_39) {
13906
+ if (main.main_36) {
13919
13907
  imageWidth = 450;
13920
13908
  }
13921
13909
 
@@ -14295,16 +14283,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
14295
14283
  _ref$className = _ref.className,
14296
14284
  className = _ref$className === undefined ? '' : _ref$className;
14297
14285
 
14298
- /*
14299
- Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
14300
- example:
14301
- <RelatedTopicDropdown
14302
- page='/clinical'
14303
- exclude="clinical"
14304
- className='mb-3'
14305
- parentTaxonomy={props.parentTaxonomy}
14306
- subTaxonomies={props.subTaxonomies}
14307
- />
14286
+ /*
14287
+ Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
14288
+ example:
14289
+ <RelatedTopicDropdown
14290
+ page='/clinical'
14291
+ exclude="clinical"
14292
+ className='mb-3'
14293
+ parentTaxonomy={props.parentTaxonomy}
14294
+ subTaxonomies={props.subTaxonomies}
14295
+ />
14308
14296
  */
14309
14297
  if (subTaxonomies.length === 0 && parentTaxonomy) {
14310
14298
  if (parentTaxonomy.identifier == exclude) {
@@ -14433,7 +14421,7 @@ var dP = _toObject._objectDp.f;
14433
14421
 
14434
14422
 
14435
14423
 
14436
- var fastKey = _typeof$2._meta.fastKey;
14424
+ var fastKey = _typeof$1._meta.fastKey;
14437
14425
 
14438
14426
  var SIZE = _toObject._descriptors ? '_s' : 'size';
14439
14427
 
@@ -14571,10 +14559,10 @@ var SPECIES = web_dom_iterable._wks('species');
14571
14559
 
14572
14560
  var _arraySpeciesConstructor = function (original) {
14573
14561
  var C;
14574
- if (_typeof$2._isArray(original)) {
14562
+ if (_typeof$1._isArray(original)) {
14575
14563
  C = original.constructor;
14576
14564
  // cross-realm fallback
14577
- if (typeof C == 'function' && (C === Array || _typeof$2._isArray(C.prototype))) C = undefined;
14565
+ if (typeof C == 'function' && (C === Array || _typeof$1._isArray(C.prototype))) C = undefined;
14578
14566
  if (_toObject._isObject(C)) {
14579
14567
  C = C[SPECIES];
14580
14568
  if (C === null) C = undefined;
@@ -14650,7 +14638,7 @@ var _collection = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {
14650
14638
  // create collection constructor
14651
14639
  C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);
14652
14640
  promise._redefineAll(C.prototype, methods);
14653
- _typeof$2._meta.NEED = true;
14641
+ _typeof$1._meta.NEED = true;
14654
14642
  } else {
14655
14643
  C = wrapper(function (target, iterable) {
14656
14644
  promise._anInstance(target, C, NAME, '_c');
@@ -14770,48 +14758,39 @@ module.exports = { "default": set, __esModule: true };
14770
14758
 
14771
14759
  var _Set = _commonjsHelpers.unwrapExports(set$1);
14772
14760
 
14773
- /* usage & query
14774
- const Publication = (props) => {
14775
- const { cache, pub, year } = props
14776
-
14777
- const targeting = {
14778
- content_placement: [`/journals/${pub.identifier.current}`],
14779
- document_url: [`/journals/${pub.identifier.current}`],
14780
- }
14781
-
14782
- return (
14783
- <Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
14784
- <PublicationLanding publication={pub} year={year} href={'journals'} />
14785
- </Shell>
14786
- )
14787
- }
14788
-
14789
- Publication.getInitialProps = async (ctx) => {
14790
- const { query } = ctx
14791
- const {
14792
- query: { year },
14793
- } = ctx
14794
- const pub = await client.fetch(
14795
- `*[_type == 'publication'
14796
- && identifier.current == $publication][0] {
14797
- ...,
14798
- 'issues': *[_type == 'publication'
14799
- && is_visible
14800
- && references(^._id)] | order(year desc, month desc)
14801
- }`,
14802
- query
14803
- )
14804
- const builder = imageUrlBuilder(client)
14805
- const urlFor = (source) => {
14806
- return builder.image(source)
14807
- }
14808
- pub.issues.map((issue) => {
14809
- issue.thumbnail = urlFor(issue.thumbnail).url()
14810
- })
14811
- return { pub, year }
14812
- }
14813
-
14814
- export default Publication
14761
+ /* usage & query
14762
+ const Publication = (props) => {
14763
+ const { cache, pub, year } = props
14764
+
14765
+ const targeting = {
14766
+ content_placement: [`/journals/${pub.identifier.current}`],
14767
+ document_url: [`/journals/${pub.identifier.current}`],
14768
+ }
14769
+
14770
+ return (
14771
+ <Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
14772
+ <PublicationLanding publication={pub} year={year} href={'journals'} />
14773
+ </Shell>
14774
+ )
14775
+ }
14776
+
14777
+ Publication.getInitialProps = async (ctx) => {
14778
+ const { query } = ctx
14779
+ const {
14780
+ query: { year },
14781
+ } = ctx
14782
+ const pub = await client.fetch(getQuery('publication'), query)
14783
+ const builder = imageUrlBuilder(client)
14784
+ const urlFor = (source) => {
14785
+ return builder.image(source)
14786
+ }
14787
+ pub.issues.map((issue) => {
14788
+ issue.thumbnail = urlFor(issue.thumbnail).url()
14789
+ })
14790
+ return { pub, year }
14791
+ }
14792
+
14793
+ export default Publication
14815
14794
  */
14816
14795
 
14817
14796
  var PublicationLanding = function PublicationLanding(props) {
@@ -14901,7 +14880,12 @@ var PublicationLanding = function PublicationLanding(props) {
14901
14880
  null,
14902
14881
  issue.name
14903
14882
  ),
14904
- React__default.createElement(
14883
+ publication.displayLabel && React__default.createElement(
14884
+ 'p',
14885
+ { className: 'badge badge-primary' },
14886
+ publication.displayLabel
14887
+ ),
14888
+ issue.volume && issue.number && React__default.createElement(
14905
14889
  'p',
14906
14890
  null,
14907
14891
  'Volume: ',
@@ -15778,34 +15762,34 @@ var GridHero = function GridHero(props) {
15778
15762
  );
15779
15763
  };
15780
15764
 
15781
- /*
15782
- Sample query
15783
- let references = ''
15784
- if(article.taxonomyMapping.length > 0){
15785
- article.taxonomyMapping.forEach((ref, index) => {
15786
- references = references + `references('${ref._ref}') `
15787
- if(index+1 !== article.taxonomyMapping.length){
15788
- references = references + ` && `
15789
- }
15790
- })
15791
- }
15792
-
15793
- 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] {
15794
- ...,
15795
- title,
15796
- summary,
15797
- thumbnail,
15798
- url,
15799
- published,
15800
- authorMapping[]->,
15801
- contentCategory->
15802
- }`
15803
- const relatedArticles = await client.fetch(relatedArticlesQuery)
15804
-
15805
- Sample usage
15806
- <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
15807
-
15808
-
15765
+ /*
15766
+ Sample query
15767
+ let references = ''
15768
+ if(article.taxonomyMapping.length > 0){
15769
+ article.taxonomyMapping.forEach((ref, index) => {
15770
+ references = references + `references('${ref._ref}') `
15771
+ if(index+1 !== article.taxonomyMapping.length){
15772
+ references = references + ` && `
15773
+ }
15774
+ })
15775
+ }
15776
+
15777
+ 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] {
15778
+ ...,
15779
+ title,
15780
+ summary,
15781
+ thumbnail,
15782
+ url,
15783
+ published,
15784
+ authorMapping[]->,
15785
+ contentCategory->
15786
+ }`
15787
+ const relatedArticles = await client.fetch(relatedArticlesQuery)
15788
+
15789
+ Sample usage
15790
+ <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
15791
+
15792
+
15809
15793
  */
15810
15794
  var RelatedContent = function RelatedContent(props) {
15811
15795
  var client = props.client,
@@ -15872,21 +15856,21 @@ var RelatedContent = function RelatedContent(props) {
15872
15856
  );
15873
15857
  };
15874
15858
 
15875
- /*
15876
- Example usage - targetedonc.com/latest-conference
15877
- 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] {
15878
- ...,
15879
- title,
15880
- summary,
15881
- thumbnail,
15882
- url,
15883
- published,
15884
- documentGroup->,
15885
- contentCategory->,
15886
- 'pageNumber': ${currentPage}
15887
- }`
15888
-
15889
- const posts = await client.fetch(query, params)
15859
+ /*
15860
+ Example usage - targetedonc.com/latest-conference
15861
+ 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] {
15862
+ ...,
15863
+ title,
15864
+ summary,
15865
+ thumbnail,
15866
+ url,
15867
+ published,
15868
+ documentGroup->,
15869
+ contentCategory->,
15870
+ 'pageNumber': ${currentPage}
15871
+ }`
15872
+
15873
+ const posts = await client.fetch(query, params)
15890
15874
  */
15891
15875
 
15892
15876
  var ConferenceArticleCard = function ConferenceArticleCard(props) {
@@ -17303,7 +17287,7 @@ var Article = function Article(props) {
17303
17287
  React__default.createElement('br', null),
17304
17288
  React__default.createElement('br', null)
17305
17289
  ),
17306
- main.main_39 && props.article.Ads.map(function (ad, index) {
17290
+ main.main_36 && props.article.Ads.map(function (ad, index) {
17307
17291
  if (index === 0) {
17308
17292
  return React__default.createElement(
17309
17293
  'div',
@@ -17328,7 +17312,7 @@ var Article = function Article(props) {
17328
17312
  renderIsiContent(props.article)
17329
17313
  )
17330
17314
  ),
17331
- main.main_39 && props.article.Ads.map(function (ad, index) {
17315
+ main.main_36 && props.article.Ads.map(function (ad, index) {
17332
17316
  if (index > 0) {
17333
17317
  return React__default.createElement(
17334
17318
  'div',
@@ -17445,7 +17429,7 @@ var ArticleQueue = function ArticleQueue(props) {
17445
17429
  setQueueData = _useState4[1];
17446
17430
 
17447
17431
  var refreshAD = function refreshAD(path) {
17448
- if (!main.main_39) {
17432
+ if (!main.main_36) {
17449
17433
  var activeArticle = queueData.find(function (item) {
17450
17434
  return item.url.current === path;
17451
17435
  });
@@ -17589,27 +17573,27 @@ var ArticleQueue = function ArticleQueue(props) {
17589
17573
  };
17590
17574
 
17591
17575
  var KMTracker = function KMTracker(props) {
17592
- var id = props.id;
17576
+ var id = props.id;
17593
17577
 
17594
- if (document && id) {
17578
+ if (document && id) {
17595
17579
  (function () {
17596
- var ecnJquery = document.createElement('script');
17580
+ var ecnJquery = document.createElement('script');
17597
17581
 
17598
- ecnJquery.type = 'text/javascript';
17599
- ecnJquery.async = true;
17600
- ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
17582
+ ecnJquery.type = 'text/javascript';
17583
+ ecnJquery.async = true;
17584
+ ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
17601
17585
 
17602
- var ecnScript = document.createElement('script');
17586
+ var ecnScript = document.createElement('script');
17603
17587
 
17604
- ecnScript.type = 'text/javascript';
17605
- ecnScript.async = true;
17606
- ecnScript.id = 'km-tracker';
17607
- ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
17588
+ ecnScript.type = 'text/javascript';
17589
+ ecnScript.async = true;
17590
+ ecnScript.id = 'km-tracker';
17591
+ ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
17608
17592
 
17609
- document.head.appendChild(ecnJquery);
17610
- document.head.appendChild(ecnScript);
17611
- })();
17612
- }
17593
+ document.head.appendChild(ecnJquery);
17594
+ document.head.appendChild(ecnScript);
17595
+ })();
17596
+ }
17613
17597
  };
17614
17598
 
17615
17599
  var getSeriesDetail = function getSeriesDetail(article, currentSeries) {
@@ -19671,6 +19655,9 @@ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
19671
19655
  if (value != null) {
19672
19656
  if ($gOPD && (i + 1) >= parts.length) {
19673
19657
  var desc = $gOPD(value, parts[i]);
19658
+ if (!allowMissing && !(parts[i] in value)) {
19659
+ throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
19660
+ }
19674
19661
  value = desc ? (desc.get || desc.value) : value[parts[i]];
19675
19662
  } else {
19676
19663
  value = value[parts[i]];
@@ -19703,7 +19690,16 @@ var callBound = function callBoundIntrinsic(name, allowMissing) {
19703
19690
  return intrinsic;
19704
19691
  };
19705
19692
 
19706
- var $defineProperty = GetIntrinsic('%Object.defineProperty%');
19693
+ var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
19694
+
19695
+ if ($defineProperty) {
19696
+ try {
19697
+ $defineProperty({}, 'a', { value: 1 });
19698
+ } catch (e) {
19699
+ // IE 8 has a broken defineProperty
19700
+ $defineProperty = null;
19701
+ }
19702
+ }
19707
19703
 
19708
19704
 
19709
19705
 
@@ -19846,6 +19842,224 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
19846
19842
  return obj;
19847
19843
  };
19848
19844
 
19845
+ var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
19846
+ if ($gOPD$1) {
19847
+ try {
19848
+ $gOPD$1([], 'length');
19849
+ } catch (e) {
19850
+ // IE 8 has a broken gOPD
19851
+ $gOPD$1 = null;
19852
+ }
19853
+ }
19854
+
19855
+ var getOwnPropertyDescriptor = $gOPD$1;
19856
+
19857
+ var $Array = GetIntrinsic('%Array%');
19858
+
19859
+ // eslint-disable-next-line global-require
19860
+ var toStr$4 = !$Array.isArray && callBound('Object.prototype.toString');
19861
+
19862
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-isarray
19863
+
19864
+ var IsArray = $Array.isArray || function IsArray(argument) {
19865
+ return toStr$4(argument) === '[object Array]';
19866
+ };
19867
+
19868
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
19869
+
19870
+ var IsPropertyKey = function IsPropertyKey(argument) {
19871
+ return typeof argument === 'string' || typeof argument === 'symbol';
19872
+ };
19873
+
19874
+ var regexExec = RegExp.prototype.exec;
19875
+ var gOPD = Object.getOwnPropertyDescriptor;
19876
+
19877
+ var tryRegexExecCall = function tryRegexExec(value) {
19878
+ try {
19879
+ var lastIndex = value.lastIndex;
19880
+ value.lastIndex = 0; // eslint-disable-line no-param-reassign
19881
+
19882
+ regexExec.call(value);
19883
+ return true;
19884
+ } catch (e) {
19885
+ return false;
19886
+ } finally {
19887
+ value.lastIndex = lastIndex; // eslint-disable-line no-param-reassign
19888
+ }
19889
+ };
19890
+ var toStr$5 = Object.prototype.toString;
19891
+ var regexClass = '[object RegExp]';
19892
+ var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
19893
+
19894
+ var isRegex = function isRegex(value) {
19895
+ if (!value || typeof value !== 'object') {
19896
+ return false;
19897
+ }
19898
+ if (!hasToStringTag) {
19899
+ return toStr$5.call(value) === regexClass;
19900
+ }
19901
+
19902
+ var descriptor = gOPD(value, 'lastIndex');
19903
+ var hasLastIndexDataProperty = descriptor && src$1(descriptor, 'value');
19904
+ if (!hasLastIndexDataProperty) {
19905
+ return false;
19906
+ }
19907
+
19908
+ return tryRegexExecCall(value);
19909
+ };
19910
+
19911
+ // http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
19912
+
19913
+ var ToBoolean = function ToBoolean(value) { return !!value; };
19914
+
19915
+ var $match = GetIntrinsic('%Symbol.match%', true);
19916
+
19917
+
19918
+
19919
+
19920
+
19921
+ // https://ecma-international.org/ecma-262/6.0/#sec-isregexp
19922
+
19923
+ var IsRegExp = function IsRegExp(argument) {
19924
+ if (!argument || typeof argument !== 'object') {
19925
+ return false;
19926
+ }
19927
+ if ($match) {
19928
+ var isRegExp = argument[$match];
19929
+ if (typeof isRegExp !== 'undefined') {
19930
+ return ToBoolean(isRegExp);
19931
+ }
19932
+ }
19933
+ return isRegex(argument);
19934
+ };
19935
+
19936
+ var fnToStr = Function.prototype.toString;
19937
+
19938
+ var constructorRegex = /^\s*class\b/;
19939
+ var isES6ClassFn = function isES6ClassFunction(value) {
19940
+ try {
19941
+ var fnStr = fnToStr.call(value);
19942
+ return constructorRegex.test(fnStr);
19943
+ } catch (e) {
19944
+ return false; // not a function
19945
+ }
19946
+ };
19947
+
19948
+ var tryFunctionObject = function tryFunctionToStr(value) {
19949
+ try {
19950
+ if (isES6ClassFn(value)) { return false; }
19951
+ fnToStr.call(value);
19952
+ return true;
19953
+ } catch (e) {
19954
+ return false;
19955
+ }
19956
+ };
19957
+ var toStr$6 = Object.prototype.toString;
19958
+ var fnClass = '[object Function]';
19959
+ var genClass = '[object GeneratorFunction]';
19960
+ var hasToStringTag$1 = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
19961
+
19962
+ var isCallable = function isCallable(value) {
19963
+ if (!value) { return false; }
19964
+ if (typeof value !== 'function' && typeof value !== 'object') { return false; }
19965
+ if (typeof value === 'function' && !value.prototype) { return true; }
19966
+ if (hasToStringTag$1) { return tryFunctionObject(value); }
19967
+ if (isES6ClassFn(value)) { return false; }
19968
+ var strClass = toStr$6.call(value);
19969
+ return strClass === fnClass || strClass === genClass;
19970
+ };
19971
+
19972
+ // http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
19973
+
19974
+ var IsCallable = isCallable;
19975
+
19976
+ var $TypeError$2 = GetIntrinsic('%TypeError%');
19977
+
19978
+
19979
+
19980
+
19981
+
19982
+ // https://ecma-international.org/ecma-262/5.1/#sec-8.10.5
19983
+
19984
+ var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
19985
+ if (Type$1(Obj) !== 'Object') {
19986
+ throw new $TypeError$2('ToPropertyDescriptor requires an object');
19987
+ }
19988
+
19989
+ var desc = {};
19990
+ if (src$1(Obj, 'enumerable')) {
19991
+ desc['[[Enumerable]]'] = ToBoolean(Obj.enumerable);
19992
+ }
19993
+ if (src$1(Obj, 'configurable')) {
19994
+ desc['[[Configurable]]'] = ToBoolean(Obj.configurable);
19995
+ }
19996
+ if (src$1(Obj, 'value')) {
19997
+ desc['[[Value]]'] = Obj.value;
19998
+ }
19999
+ if (src$1(Obj, 'writable')) {
20000
+ desc['[[Writable]]'] = ToBoolean(Obj.writable);
20001
+ }
20002
+ if (src$1(Obj, 'get')) {
20003
+ var getter = Obj.get;
20004
+ if (typeof getter !== 'undefined' && !IsCallable(getter)) {
20005
+ throw new TypeError('getter must be a function');
20006
+ }
20007
+ desc['[[Get]]'] = getter;
20008
+ }
20009
+ if (src$1(Obj, 'set')) {
20010
+ var setter = Obj.set;
20011
+ if (typeof setter !== 'undefined' && !IsCallable(setter)) {
20012
+ throw new $TypeError$2('setter must be a function');
20013
+ }
20014
+ desc['[[Set]]'] = setter;
20015
+ }
20016
+
20017
+ if ((src$1(desc, '[[Get]]') || src$1(desc, '[[Set]]')) && (src$1(desc, '[[Value]]') || src$1(desc, '[[Writable]]'))) {
20018
+ throw new $TypeError$2('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute');
20019
+ }
20020
+ return desc;
20021
+ };
20022
+
20023
+ var $TypeError$3 = GetIntrinsic('%TypeError%');
20024
+
20025
+
20026
+
20027
+ var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
20028
+
20029
+
20030
+
20031
+
20032
+
20033
+
20034
+
20035
+
20036
+
20037
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
20038
+
20039
+ var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
20040
+ if (Type$1(O) !== 'Object') {
20041
+ throw new $TypeError$3('Assertion failed: O must be an Object');
20042
+ }
20043
+ if (!IsPropertyKey(P)) {
20044
+ throw new $TypeError$3('Assertion failed: P must be a Property Key');
20045
+ }
20046
+ if (!src$1(O, P)) {
20047
+ return void 0;
20048
+ }
20049
+ if (!getOwnPropertyDescriptor) {
20050
+ // ES3 / IE 8 fallback
20051
+ var arrayLength = IsArray(O) && P === 'length';
20052
+ var regexLastIndex = IsRegExp(O) && P === 'lastIndex';
20053
+ return {
20054
+ '[[Configurable]]': !(arrayLength || regexLastIndex),
20055
+ '[[Enumerable]]': $isEnumerable$1(O, P),
20056
+ '[[Value]]': O[P],
20057
+ '[[Writable]]': true
20058
+ };
20059
+ }
20060
+ return ToPropertyDescriptor(getOwnPropertyDescriptor(O, P));
20061
+ };
20062
+
19849
20063
  // https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
19850
20064
 
19851
20065
  var IsDataDescriptor = function IsDataDescriptor(Desc) {
@@ -19879,16 +20093,10 @@ var IsExtensible = $preventExtensions
19879
20093
  ? function IsExtensible(obj) {
19880
20094
  return !isPrimitive$1(obj) && $isExtensible(obj);
19881
20095
  }
19882
- : function IsExtensible(obj) { // eslint-disable-line no-unused-vars
19883
- return true;
20096
+ : function IsExtensible(obj) {
20097
+ return !isPrimitive$1(obj);
19884
20098
  };
19885
20099
 
19886
- // https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
19887
-
19888
- var IsPropertyKey = function IsPropertyKey(argument) {
19889
- return typeof argument === 'string' || typeof argument === 'symbol';
19890
- };
19891
-
19892
20100
  var _isNaN = Number.isNaN || function isNaN(a) {
19893
20101
  return a !== a;
19894
20102
  };
@@ -19903,8 +20111,8 @@ var SameValue = function SameValue(x, y) {
19903
20111
  return _isNaN(x) && _isNaN(y);
19904
20112
  };
19905
20113
 
19906
- var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
19907
- var $TypeError$2 = GetIntrinsic('%TypeError%');
20114
+ var $TypeError$4 = GetIntrinsic('%TypeError%');
20115
+
19908
20116
 
19909
20117
 
19910
20118
 
@@ -19919,12 +20127,12 @@ var $TypeError$2 = GetIntrinsic('%TypeError%');
19919
20127
 
19920
20128
  var CreateDataProperty = function CreateDataProperty(O, P, V) {
19921
20129
  if (Type$1(O) !== 'Object') {
19922
- throw new $TypeError$2('Assertion failed: Type(O) is not Object');
20130
+ throw new $TypeError$4('Assertion failed: Type(O) is not Object');
19923
20131
  }
19924
20132
  if (!IsPropertyKey(P)) {
19925
- throw new $TypeError$2('Assertion failed: IsPropertyKey(P) is not true');
20133
+ throw new $TypeError$4('Assertion failed: IsPropertyKey(P) is not true');
19926
20134
  }
19927
- var oldDesc = $gOPD$1(O, P);
20135
+ var oldDesc = OrdinaryGetOwnProperty(O, P);
19928
20136
  var extensible = oldDesc || IsExtensible(O);
19929
20137
  var immutable = oldDesc && (!oldDesc.writable || !oldDesc.configurable);
19930
20138
  if (immutable || !extensible) {
@@ -19945,53 +20153,13 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
19945
20153
  );
19946
20154
  };
19947
20155
 
19948
- var fnToStr = Function.prototype.toString;
19949
-
19950
- var constructorRegex = /^\s*class\b/;
19951
- var isES6ClassFn = function isES6ClassFunction(value) {
19952
- try {
19953
- var fnStr = fnToStr.call(value);
19954
- return constructorRegex.test(fnStr);
19955
- } catch (e) {
19956
- return false; // not a function
19957
- }
19958
- };
19959
-
19960
- var tryFunctionObject = function tryFunctionToStr(value) {
19961
- try {
19962
- if (isES6ClassFn(value)) { return false; }
19963
- fnToStr.call(value);
19964
- return true;
19965
- } catch (e) {
19966
- return false;
19967
- }
19968
- };
19969
- var toStr$4 = Object.prototype.toString;
19970
- var fnClass = '[object Function]';
19971
- var genClass = '[object GeneratorFunction]';
19972
- var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
19973
-
19974
- var isCallable = function isCallable(value) {
19975
- if (!value) { return false; }
19976
- if (typeof value !== 'function' && typeof value !== 'object') { return false; }
19977
- if (typeof value === 'function' && !value.prototype) { return true; }
19978
- if (hasToStringTag) { return tryFunctionObject(value); }
19979
- if (isES6ClassFn(value)) { return false; }
19980
- var strClass = toStr$4.call(value);
19981
- return strClass === fnClass || strClass === genClass;
19982
- };
19983
-
19984
- // http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
19985
-
19986
- var IsCallable = isCallable;
19987
-
19988
- var $TypeError$3 = GetIntrinsic('%TypeError%');
20156
+ var $TypeError$5 = GetIntrinsic('%TypeError%');
19989
20157
 
19990
20158
  // http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
19991
20159
 
19992
20160
  var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
19993
20161
  if (value == null) {
19994
- throw new $TypeError$3(optMessage || ('Cannot call method on ' + value));
20162
+ throw new $TypeError$5(optMessage || ('Cannot call method on ' + value));
19995
20163
  }
19996
20164
  return value;
19997
20165
  };
@@ -20062,241 +20230,6 @@ defineProperties_1(implementation$2, {
20062
20230
 
20063
20231
  var object_getownpropertydescriptors = implementation$2;
20064
20232
 
20065
- /* globals
20066
- Atomics,
20067
- SharedArrayBuffer,
20068
- */
20069
-
20070
- var undefined$2;
20071
-
20072
- var $TypeError$4 = TypeError;
20073
-
20074
- var $gOPD$3 = Object.getOwnPropertyDescriptor;
20075
- if ($gOPD$3) {
20076
- try {
20077
- $gOPD$3({}, '');
20078
- } catch (e) {
20079
- $gOPD$3 = null; // this is IE 8, which has a broken gOPD
20080
- }
20081
- }
20082
-
20083
- var throwTypeError$1 = function () { throw new $TypeError$4(); };
20084
- var ThrowTypeError$1 = $gOPD$3
20085
- ? (function () {
20086
- try {
20087
- // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
20088
- arguments.callee; // IE 8 does not throw here
20089
- return throwTypeError$1;
20090
- } catch (calleeThrows) {
20091
- try {
20092
- // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
20093
- return $gOPD$3(arguments, 'callee').get;
20094
- } catch (gOPDthrows) {
20095
- return throwTypeError$1;
20096
- }
20097
- }
20098
- }())
20099
- : throwTypeError$1;
20100
-
20101
- var hasSymbols$3 = hasSymbols$1();
20102
-
20103
- var getProto$1 = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
20104
- var generatorFunction$1 = undefined$2;
20105
- var asyncFunction$1 = undefined$2;
20106
- var asyncGenFunction$1 = undefined$2;
20107
-
20108
- var TypedArray$1 = typeof Uint8Array === 'undefined' ? undefined$2 : getProto$1(Uint8Array);
20109
-
20110
- var INTRINSICS$1 = {
20111
- '%Array%': Array,
20112
- '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer,
20113
- '%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer.prototype,
20114
- '%ArrayIteratorPrototype%': hasSymbols$3 ? getProto$1([][Symbol.iterator]()) : undefined$2,
20115
- '%ArrayPrototype%': Array.prototype,
20116
- '%ArrayProto_entries%': Array.prototype.entries,
20117
- '%ArrayProto_forEach%': Array.prototype.forEach,
20118
- '%ArrayProto_keys%': Array.prototype.keys,
20119
- '%ArrayProto_values%': Array.prototype.values,
20120
- '%AsyncFromSyncIteratorPrototype%': undefined$2,
20121
- '%AsyncFunction%': asyncFunction$1,
20122
- '%AsyncFunctionPrototype%': undefined$2,
20123
- '%AsyncGenerator%': undefined$2,
20124
- '%AsyncGeneratorFunction%': asyncGenFunction$1,
20125
- '%AsyncGeneratorPrototype%': undefined$2,
20126
- '%AsyncIteratorPrototype%': undefined$2,
20127
- '%Atomics%': typeof Atomics === 'undefined' ? undefined$2 : Atomics,
20128
- '%Boolean%': Boolean,
20129
- '%BooleanPrototype%': Boolean.prototype,
20130
- '%DataView%': typeof DataView === 'undefined' ? undefined$2 : DataView,
20131
- '%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$2 : DataView.prototype,
20132
- '%Date%': Date,
20133
- '%DatePrototype%': Date.prototype,
20134
- '%decodeURI%': decodeURI,
20135
- '%decodeURIComponent%': decodeURIComponent,
20136
- '%encodeURI%': encodeURI,
20137
- '%encodeURIComponent%': encodeURIComponent,
20138
- '%Error%': Error,
20139
- '%ErrorPrototype%': Error.prototype,
20140
- '%eval%': eval, // eslint-disable-line no-eval
20141
- '%EvalError%': EvalError,
20142
- '%EvalErrorPrototype%': EvalError.prototype,
20143
- '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array,
20144
- '%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array.prototype,
20145
- '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array,
20146
- '%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array.prototype,
20147
- '%Function%': Function,
20148
- '%FunctionPrototype%': Function.prototype,
20149
- '%Generator%': undefined$2,
20150
- '%GeneratorFunction%': generatorFunction$1,
20151
- '%GeneratorPrototype%': undefined$2,
20152
- '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array,
20153
- '%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array.prototype,
20154
- '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$2 : Int16Array,
20155
- '%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$2 : Int8Array.prototype,
20156
- '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array,
20157
- '%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array.prototype,
20158
- '%isFinite%': isFinite,
20159
- '%isNaN%': isNaN,
20160
- '%IteratorPrototype%': hasSymbols$3 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$2,
20161
- '%JSON%': typeof JSON === 'object' ? JSON : undefined$2,
20162
- '%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$2,
20163
- '%Map%': typeof Map === 'undefined' ? undefined$2 : Map,
20164
- '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Map()[Symbol.iterator]()),
20165
- '%MapPrototype%': typeof Map === 'undefined' ? undefined$2 : Map.prototype,
20166
- '%Math%': Math,
20167
- '%Number%': Number,
20168
- '%NumberPrototype%': Number.prototype,
20169
- '%Object%': Object,
20170
- '%ObjectPrototype%': Object.prototype,
20171
- '%ObjProto_toString%': Object.prototype.toString,
20172
- '%ObjProto_valueOf%': Object.prototype.valueOf,
20173
- '%parseFloat%': parseFloat,
20174
- '%parseInt%': parseInt,
20175
- '%Promise%': typeof Promise === 'undefined' ? undefined$2 : Promise,
20176
- '%PromisePrototype%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype,
20177
- '%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype.then,
20178
- '%Promise_all%': typeof Promise === 'undefined' ? undefined$2 : Promise.all,
20179
- '%Promise_reject%': typeof Promise === 'undefined' ? undefined$2 : Promise.reject,
20180
- '%Promise_resolve%': typeof Promise === 'undefined' ? undefined$2 : Promise.resolve,
20181
- '%Proxy%': typeof Proxy === 'undefined' ? undefined$2 : Proxy,
20182
- '%RangeError%': RangeError,
20183
- '%RangeErrorPrototype%': RangeError.prototype,
20184
- '%ReferenceError%': ReferenceError,
20185
- '%ReferenceErrorPrototype%': ReferenceError.prototype,
20186
- '%Reflect%': typeof Reflect === 'undefined' ? undefined$2 : Reflect,
20187
- '%RegExp%': RegExp,
20188
- '%RegExpPrototype%': RegExp.prototype,
20189
- '%Set%': typeof Set === 'undefined' ? undefined$2 : Set,
20190
- '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Set()[Symbol.iterator]()),
20191
- '%SetPrototype%': typeof Set === 'undefined' ? undefined$2 : Set.prototype,
20192
- '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer,
20193
- '%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer.prototype,
20194
- '%String%': String,
20195
- '%StringIteratorPrototype%': hasSymbols$3 ? getProto$1(''[Symbol.iterator]()) : undefined$2,
20196
- '%StringPrototype%': String.prototype,
20197
- '%Symbol%': hasSymbols$3 ? Symbol : undefined$2,
20198
- '%SymbolPrototype%': hasSymbols$3 ? Symbol.prototype : undefined$2,
20199
- '%SyntaxError%': SyntaxError,
20200
- '%SyntaxErrorPrototype%': SyntaxError.prototype,
20201
- '%ThrowTypeError%': ThrowTypeError$1,
20202
- '%TypedArray%': TypedArray$1,
20203
- '%TypedArrayPrototype%': TypedArray$1 ? TypedArray$1.prototype : undefined$2,
20204
- '%TypeError%': $TypeError$4,
20205
- '%TypeErrorPrototype%': $TypeError$4.prototype,
20206
- '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array,
20207
- '%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array.prototype,
20208
- '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray,
20209
- '%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray.prototype,
20210
- '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array,
20211
- '%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array.prototype,
20212
- '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array,
20213
- '%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array.prototype,
20214
- '%URIError%': URIError,
20215
- '%URIErrorPrototype%': URIError.prototype,
20216
- '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap,
20217
- '%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap.prototype,
20218
- '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet,
20219
- '%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet.prototype
20220
- };
20221
-
20222
-
20223
- var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
20224
-
20225
- /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
20226
- var rePropName$1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
20227
- var reEscapeChar$1 = /\\(\\)?/g; /** Used to match backslashes in property paths. */
20228
- var stringToPath$1 = function stringToPath(string) {
20229
- var result = [];
20230
- $replace$1(string, rePropName$1, function (match, number, quote, subString) {
20231
- result[result.length] = quote ? $replace$1(subString, reEscapeChar$1, '$1') : (number || match);
20232
- });
20233
- return result;
20234
- };
20235
- /* end adaptation */
20236
-
20237
- var getBaseIntrinsic$1 = function getBaseIntrinsic(name, allowMissing) {
20238
- if (!(name in INTRINSICS$1)) {
20239
- throw new SyntaxError('intrinsic ' + name + ' does not exist!');
20240
- }
20241
-
20242
- // istanbul ignore if // hopefully this is impossible to test :-)
20243
- if (typeof INTRINSICS$1[name] === 'undefined' && !allowMissing) {
20244
- throw new $TypeError$4('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
20245
- }
20246
-
20247
- return INTRINSICS$1[name];
20248
- };
20249
-
20250
- var GetIntrinsic$1 = function GetIntrinsic(name, allowMissing) {
20251
- if (typeof name !== 'string' || name.length === 0) {
20252
- throw new TypeError('intrinsic name must be a non-empty string');
20253
- }
20254
- if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
20255
- throw new TypeError('"allowMissing" argument must be a boolean');
20256
- }
20257
-
20258
- var parts = stringToPath$1(name);
20259
-
20260
- var value = getBaseIntrinsic$1('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
20261
- for (var i = 1; i < parts.length; i += 1) {
20262
- if (value != null) {
20263
- if ($gOPD$3 && (i + 1) >= parts.length) {
20264
- var desc = $gOPD$3(value, parts[i]);
20265
- if (!allowMissing && !(parts[i] in value)) {
20266
- throw new $TypeError$4('base intrinsic for ' + name + ' exists, but the property is not available.');
20267
- }
20268
- value = desc ? (desc.get || desc.value) : value[parts[i]];
20269
- } else {
20270
- value = value[parts[i]];
20271
- }
20272
- }
20273
- }
20274
- return value;
20275
- };
20276
-
20277
- var $apply$1 = GetIntrinsic$1('%Function.prototype.apply%');
20278
- var $call$1 = GetIntrinsic$1('%Function.prototype.call%');
20279
- var $reflectApply = GetIntrinsic$1('%Reflect.apply%', true) || functionBind.call($call$1, $apply$1);
20280
-
20281
- var callBind$1 = function callBind() {
20282
- return $reflectApply(functionBind, $call$1, arguments);
20283
- };
20284
-
20285
- var apply$1 = function applyBind() {
20286
- return $reflectApply(functionBind, $apply$1, arguments);
20287
- };
20288
- callBind$1.apply = apply$1;
20289
-
20290
- var $indexOf$1 = callBind$1(GetIntrinsic$1('String.prototype.indexOf'));
20291
-
20292
- var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
20293
- var intrinsic = GetIntrinsic$1(name, !!allowMissing);
20294
- if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.')) {
20295
- return callBind$1(intrinsic);
20296
- }
20297
- return intrinsic;
20298
- };
20299
-
20300
20233
  var isES5$1 = typeof Object.defineProperty === 'function'
20301
20234
  && typeof Object.defineProperties === 'function';
20302
20235
 
@@ -20314,14 +20247,14 @@ if (typeof Promise !== 'function') {
20314
20247
 
20315
20248
 
20316
20249
 
20317
- var $slice = callBound$1('Array.prototype.slice');
20318
- var $concat$1 = callBound$1('Array.prototype.concat');
20319
- var $forEach = callBound$1('Array.prototype.forEach');
20250
+ var $slice = callBound('Array.prototype.slice');
20251
+ var $concat$1 = callBound('Array.prototype.concat');
20252
+ var $forEach = callBound('Array.prototype.forEach');
20320
20253
 
20321
- var hasSymbols$4 = hasSymbols$1();
20254
+ var hasSymbols$3 = hasSymbols$1();
20322
20255
 
20323
- var kCustomPromisifiedSymbol = hasSymbols$4 ? Symbol('util.promisify.custom') : null;
20324
- var kCustomPromisifyArgsSymbol = hasSymbols$4 ? Symbol('customPromisifyArgs') : null;
20256
+ var kCustomPromisifiedSymbol = hasSymbols$3 ? Symbol('util.promisify.custom') : null;
20257
+ var kCustomPromisifyArgsSymbol = hasSymbols$3 ? Symbol('customPromisifyArgs') : null;
20325
20258
 
20326
20259
  var implementation$3 = function promisify(orig) {
20327
20260
  if (typeof orig !== 'function') {
@@ -20331,7 +20264,7 @@ var implementation$3 = function promisify(orig) {
20331
20264
  throw error;
20332
20265
  }
20333
20266
 
20334
- if (hasSymbols$4 && orig[kCustomPromisifiedSymbol]) {
20267
+ if (hasSymbols$3 && orig[kCustomPromisifiedSymbol]) {
20335
20268
  var customFunction = orig[kCustomPromisifiedSymbol];
20336
20269
  if (typeof customFunction !== 'function') {
20337
20270
  throw new TypeError('The [util.promisify.custom] property must be a function');
@@ -21630,18 +21563,18 @@ var renderAuthor$1 = function renderAuthor(authorName, authorURL, index, length)
21630
21563
  };
21631
21564
 
21632
21565
  var getContentPlacementUrl = function getContentPlacementUrl(cp) {
21633
- var cp_url = '';
21634
- if (cp.ancestor && typeof cp.ancestor == 'string') {
21635
- cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
21636
- }
21566
+ var cp_url = '';
21567
+ if (cp.ancestor && typeof cp.ancestor == 'string') {
21568
+ cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
21569
+ }
21637
21570
 
21638
- if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
21639
- cp_url += (cp_url === '' ? '' : '/') + cp.parent;
21640
- }
21571
+ if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
21572
+ cp_url += (cp_url === '' ? '' : '/') + cp.parent;
21573
+ }
21641
21574
 
21642
- cp_url += (cp_url === '' ? '' : '/') + cp.path;
21575
+ cp_url += (cp_url === '' ? '' : '/') + cp.path;
21643
21576
 
21644
- return cp_url;
21577
+ return cp_url;
21645
21578
  };
21646
21579
 
21647
21580
  var getArticleSummary$1 = function getArticleSummary(article) {
@@ -21668,7 +21601,7 @@ var getArticleSummary$1 = function getArticleSummary(article) {
21668
21601
  };
21669
21602
 
21670
21603
  function urlFor$5(client, source) {
21671
- return index.imageUrlBuilder(client).image(source);
21604
+ return index.imageUrlBuilder(client).image(source);
21672
21605
  }
21673
21606
 
21674
21607
  var getDocumentGroupUrl = function getDocumentGroupUrl(docGroup) {
@@ -21737,9 +21670,9 @@ var DocumentGroup = function DocumentGroup(_ref) {
21737
21670
  style: { display: 'flex', flexDirection: 'column', padding: '0 1rem', justifyContent: thumbnailUrl ? 'center' : 'flex-start', alignItems: 'center' } },
21738
21671
  thumbnailUrl && React__default.createElement('img', { style: { maxWidth: '220px', maxHeight: '100px', marginTop: '1rem' }, src: thumbnailUrl, alt: name }),
21739
21672
  React__default.createElement('p', {
21740
- style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main.main_39 ? 'left' : 'right', marginTop: '.25rem' },
21673
+ style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main.main_36 ? 'left' : 'right', marginTop: '.25rem' },
21741
21674
  dangerouslySetInnerHTML: { __html: name } }),
21742
- main.main_39 && !thumbnailUrl && React__default.createElement(
21675
+ main.main_36 && !thumbnailUrl && React__default.createElement(
21743
21676
  'style',
21744
21677
  { jsx: 'true' },
21745
21678
  '\n a.doc-group {\n display: block !important;\n padding: 0!important;\n }\n '
@@ -22305,7 +22238,7 @@ var Article$1 = function Article(props) {
22305
22238
  React__default.createElement(
22306
22239
  'div',
22307
22240
  { className: 'ad-box', style: { textAlign: 'center' } },
22308
- main.main_39 && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
22241
+ main.main_36 && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
22309
22242
  if (index === 0) {
22310
22243
  return React__default.createElement(
22311
22244
  'div',
@@ -22360,7 +22293,7 @@ var Article$1 = function Article(props) {
22360
22293
  renderIsiContent(props.article)
22361
22294
  )
22362
22295
  ),
22363
- main.main_39 && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
22296
+ main.main_36 && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
22364
22297
  if (index > 0) {
22365
22298
  return React__default.createElement(
22366
22299
  'div',
@@ -22411,7 +22344,7 @@ exports.default = function (obj, key, value) {
22411
22344
  };
22412
22345
  });
22413
22346
 
22414
- var _defineProperty$1 = _commonjsHelpers.unwrapExports(defineProperty$1);
22347
+ var _defineProperty = _commonjsHelpers.unwrapExports(defineProperty$1);
22415
22348
 
22416
22349
  var getTargeting = function getTargeting(props) {
22417
22350
  var article = props.article,
@@ -22526,7 +22459,7 @@ var ArticleQueue$1 = function ArticleQueue(props) {
22526
22459
  setQueueData = _useState2[1];
22527
22460
 
22528
22461
  var refreshAD = function refreshAD(path) {
22529
- if (!main.main_39) {
22462
+ if (!main.main_36) {
22530
22463
  var activeArticle = queueData.find(function (item) {
22531
22464
  return item.url.current === path;
22532
22465
  });
@@ -22728,7 +22661,7 @@ var Articles = function Articles(props) {
22728
22661
  Ads: WAds,
22729
22662
  regionalPages: regionalPages,
22730
22663
  nationalPage: nationalPage
22731
- }, _defineProperty$1(_extends2, 'pageview', pageview), _defineProperty$1(_extends2, 'onVote', function onVote() {}), _defineProperty$1(_extends2, 'ISIContent', ISIContent), _defineProperty$1(_extends2, 'videoAccountIDs', videoAccountIDs), _defineProperty$1(_extends2, 'sponsoredTaxonomies', []), _defineProperty$1(_extends2, 'cpModificationRequired', cpModificationRequired), _defineProperty$1(_extends2, 'Settings', Settings), _extends2), props));
22664
+ }, _defineProperty(_extends2, 'pageview', pageview), _defineProperty(_extends2, 'onVote', function onVote() {}), _defineProperty(_extends2, 'ISIContent', ISIContent), _defineProperty(_extends2, 'videoAccountIDs', videoAccountIDs), _defineProperty(_extends2, 'sponsoredTaxonomies', []), _defineProperty(_extends2, 'cpModificationRequired', cpModificationRequired), _defineProperty(_extends2, 'Settings', Settings), _extends2), props));
22732
22665
  };
22733
22666
 
22734
22667
  var View = function View(props) {