@mjhls/mjh-framework 1.0.427 → 1.0.429

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-4d6a374c.js} +47 -41
  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-33253684.js} +47 -41
  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/esm/index.js CHANGED
@@ -9,35 +9,35 @@ import { _ as _extends$2, a as _Object$assign } from './extends-92072fff.js';
9
9
  import { _ as _objectSap, a as _inherits$1, b as _classCallCheck$1, c as _possibleConstructorReturn$1, d as _Object$getPrototypeOf, e as _createClass$1, f as defineProperty$2 } from './inherits-dfba24f5.js';
10
10
  import { _ as _meta, a as _isArray } from './typeof-e4b50250.js';
11
11
  import React__default, { useState, useEffect, useRef } from 'react';
12
- import { d as debounce_1, l as lib_3, a as lib_1, i as isObjectLike_1, _ as _baseGetTag, t as toNumber_1, b as _root, c as _freeGlobal } from './debounce-df468b0e.js';
12
+ import { d as debounce_1, l as lib_3, a as lib_1, i as isObjectLike_1, _ as _baseGetTag, t as toNumber_1, b as _root, c as _freeGlobal } from './debounce-53693e2b.js';
13
13
  import PropTypes from 'prop-types';
14
14
  import Container from 'react-bootstrap/Container';
15
15
  import Row from 'react-bootstrap/Row';
16
16
  import Col from 'react-bootstrap/Col';
17
17
  import Card from 'react-bootstrap/Card';
18
- import { m as moment } from './moment-12415288.js';
18
+ import { m as moment } from './moment-e2f9b20c.js';
19
19
  import Router, { useRouter } from 'next/router';
20
- import { I as InfiniteScroll } from './index.es-938a3a58.js';
20
+ import { I as InfiniteScroll } from './index.es-29c1cef5.js';
21
21
  import 'react-dom';
22
22
  import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
23
- import { i as imageUrlBuilder } from './index-51a80699.js';
23
+ import { i as imageUrlBuilder } from './index-73819142.js';
24
24
  import { L as LazyLoad } from './index-5f9f807a.js';
25
- import { m as main_39, a as main_16, b as main_38 } from './main-7d1b3c98.js';
25
+ import { m as main_36, a as main_16, b as main_35 } from './main-273675e1.js';
26
26
  import { h as html_decode_1, c as clean_html_1 } from './entities-7cc3bf45.js';
27
27
  import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-04e02710.js';
28
- import { _ as _JSON$stringify, a as _asyncToGenerator, r as regenerator, D as DFPAdSlot, B as Beam } from './AdSlot-78e48a2c.js';
29
- export { D as AdSlot, B as Beam } from './AdSlot-78e48a2c.js';
28
+ import { _ as _JSON$stringify, a as _asyncToGenerator, r as regenerator, D as DFPAdSlot, B as Beam } from './AdSlot-4ca0419a.js';
29
+ export { D as AdSlot, B as Beam } from './AdSlot-4ca0419a.js';
30
30
  import { _ as _anInstance, a as _forOf, b as _redefineAll, c as _setSpecies } from './promise-2592a80a.js';
31
- import './ADInfeed-e5cefea5.js';
31
+ import './ADInfeed-f1c1780e.js';
32
32
  export { default as DeckContent } from './DeckContent.js';
33
- import { i as isFunction_1, a as isArray_1, _ as _arrayMap } from './get-53653403.js';
34
- export { A as AD, G as GridContent } from './GridContent-e3224519.js';
33
+ import { i as isFunction_1, a as isArray_1, _ as _arrayMap } from './get-b3f4645d.js';
34
+ export { A as AD, G as GridContent } from './GridContent-09330066.js';
35
35
  import { A as AuthorComponent } from './AuthorComponent-c9e46673.js';
36
36
  export { default as DeckQueue } from './DeckQueue.js';
37
37
  import 'react-bootstrap/Media';
38
38
  export { default as ThumbnailCard } from './ThumbnailCard.js';
39
- import { B as BlockContent } from './TaxonomyCard-b29aa7ac.js';
40
- export { T as TaxonomyCard } from './TaxonomyCard-b29aa7ac.js';
39
+ import { B as BlockContent } from './TaxonomyCard-d49aa67a.js';
40
+ export { T as TaxonomyCard } from './TaxonomyCard-d49aa67a.js';
41
41
  import './react-social-icons-a7d5c5c7.js';
42
42
  import { g as getYoutubeId } from './smoothscroll-4b699764.js';
43
43
  import GroupDeck from './GroupDeck.js';
@@ -54,8 +54,8 @@ export { default as IssueDeck } from './IssueDeck.js';
54
54
  import 'react-bootstrap/Badge';
55
55
  export { default as IssueContentDeck } from './IssueContentDeck.js';
56
56
  import Spinner from 'react-bootstrap/Spinner';
57
- import { M as MdPictureAsPdf } from './Normal-c61851bf.js';
58
- export { A as AD728x90, g as ADSponsoredResources, C as Column1, a as Column2, b as Column3, f as HamMagazine, H as Header, L as LeftNav, e as NavDvm, c as NavMagazine, N as NavNative, d as NavNormal, P as PageFilter, S as Search, h as SideFooter, T as TemplateNormal } from './Normal-c61851bf.js';
57
+ import { M as MdPictureAsPdf } from './Normal-33253684.js';
58
+ export { A as AD728x90, g as ADSponsoredResources, C as Column1, a as Column2, b as Column3, f as HamMagazine, H as Header, L as LeftNav, e as NavDvm, c as NavMagazine, N as NavNative, d as NavNormal, P as PageFilter, S as Search, h as SideFooter, T as TemplateNormal } from './Normal-33253684.js';
59
59
  import 'react-bootstrap/ListGroup';
60
60
  import Head from 'next/head';
61
61
  import Accordion from 'react-bootstrap/Accordion';
@@ -1922,23 +1922,23 @@ var EventsDeck = function EventsDeck(_ref) {
1922
1922
  if (cventAccessToken && cventAccessToken !== 'undefined') {
1923
1923
  setAccessToken(cventAccessToken);
1924
1924
  } else {
1925
- /*const encodedData = window.btoa(clientId + ':' + clientSecret)
1926
- //const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
1927
- const url = `https://api-platform.cvent.com/ea/oauth2/token`
1928
- fetch(url, {
1929
- headers: {
1930
- 'Content-Type': 'application/x-www-form-urlencoded',
1931
- Authorization: `Basic ${encodedData}`
1932
- },
1933
- method: 'POST',
1934
- body: `grant_type=client_credentials&client_id=${clientId}`
1935
- })
1936
- .then((response) => response.json())
1937
- .then((json) => {
1938
- const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
1939
- Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
1940
- setAccessToken(json.access_token)
1941
- })
1925
+ /*const encodedData = window.btoa(clientId + ':' + clientSecret)
1926
+ //const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
1927
+ const url = `https://api-platform.cvent.com/ea/oauth2/token`
1928
+ fetch(url, {
1929
+ headers: {
1930
+ 'Content-Type': 'application/x-www-form-urlencoded',
1931
+ Authorization: `Basic ${encodedData}`
1932
+ },
1933
+ method: 'POST',
1934
+ body: `grant_type=client_credentials&client_id=${clientId}`
1935
+ })
1936
+ .then((response) => response.json())
1937
+ .then((json) => {
1938
+ const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
1939
+ Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
1940
+ setAccessToken(json.access_token)
1941
+ })
1942
1942
  .catch((e) => console.log(e))*/
1943
1943
  // hello
1944
1944
  var url = 'https://beam.mjhlifesciences.com/api/cvent/token';
@@ -2132,7 +2132,7 @@ var EventsDeck = function EventsDeck(_ref) {
2132
2132
  )
2133
2133
  )
2134
2134
  ),
2135
- main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
2135
+ main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
2136
2136
  'div',
2137
2137
  { style: { margin: '0 auto' } },
2138
2138
  renderMobileAd(index, numberOfItemsBeforeAd)
@@ -2467,7 +2467,7 @@ var CMEDeck = function CMEDeck(_ref) {
2467
2467
  )
2468
2468
  )
2469
2469
  ),
2470
- main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
2470
+ main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
2471
2471
  'div',
2472
2472
  { style: { margin: '0 auto' } },
2473
2473
  renderMobileAd(index, numberOfItemsBeforeAd)
@@ -2758,7 +2758,7 @@ var AD300x250 = function AD300x250(_ref) {
2758
2758
  pos = _ref$pos === undefined ? 'rec1' : _ref$pos;
2759
2759
 
2760
2760
  var mobileView = false;
2761
- if (main_39) {
2761
+ if (main_36) {
2762
2762
  pos = 'rec1-mobile';
2763
2763
  mobileView = true;
2764
2764
  }
@@ -2790,7 +2790,7 @@ var AD300x250x600 = function AD300x250x600(_ref) {
2790
2790
  pos = _ref$pos === undefined ? 'rec2' : _ref$pos;
2791
2791
 
2792
2792
  var mobileView = false;
2793
- if (main_39) {
2793
+ if (main_36) {
2794
2794
  pos = 'rec2-mobile';
2795
2795
  mobileView = true;
2796
2796
  }
@@ -3207,18 +3207,21 @@ var Slideshow = function Slideshow(_ref) {
3207
3207
  );
3208
3208
  };
3209
3209
 
3210
- // do not edit .js files directly - edit src/index.jst
3211
-
3212
-
3210
+ var isArray = Array.isArray;
3211
+ var keyList = Object.keys;
3212
+ var hasProp = Object.prototype.hasOwnProperty;
3213
3213
 
3214
3214
  var fastDeepEqual = function equal(a, b) {
3215
3215
  if (a === b) return true;
3216
3216
 
3217
3217
  if (a && b && typeof a == 'object' && typeof b == 'object') {
3218
- if (a.constructor !== b.constructor) return false;
3218
+ var arrA = isArray(a)
3219
+ , arrB = isArray(b)
3220
+ , i
3221
+ , length
3222
+ , key;
3219
3223
 
3220
- var length, i, keys;
3221
- if (Array.isArray(a)) {
3224
+ if (arrA && arrB) {
3222
3225
  length = a.length;
3223
3226
  if (length != b.length) return false;
3224
3227
  for (i = length; i-- !== 0;)
@@ -3226,29 +3229,35 @@ var fastDeepEqual = function equal(a, b) {
3226
3229
  return true;
3227
3230
  }
3228
3231
 
3232
+ if (arrA != arrB) return false;
3229
3233
 
3234
+ var dateA = a instanceof Date
3235
+ , dateB = b instanceof Date;
3236
+ if (dateA != dateB) return false;
3237
+ if (dateA && dateB) return a.getTime() == b.getTime();
3230
3238
 
3231
- if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
3232
- if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
3233
- if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
3239
+ var regexpA = a instanceof RegExp
3240
+ , regexpB = b instanceof RegExp;
3241
+ if (regexpA != regexpB) return false;
3242
+ if (regexpA && regexpB) return a.toString() == b.toString();
3234
3243
 
3235
- keys = Object.keys(a);
3244
+ var keys = keyList(a);
3236
3245
  length = keys.length;
3237
- if (length !== Object.keys(b).length) return false;
3246
+
3247
+ if (length !== keyList(b).length)
3248
+ return false;
3238
3249
 
3239
3250
  for (i = length; i-- !== 0;)
3240
- if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
3251
+ if (!hasProp.call(b, keys[i])) return false;
3241
3252
 
3242
3253
  for (i = length; i-- !== 0;) {
3243
- var key = keys[i];
3244
-
3254
+ key = keys[i];
3245
3255
  if (!equal(a[key], b[key])) return false;
3246
3256
  }
3247
3257
 
3248
3258
  return true;
3249
3259
  }
3250
3260
 
3251
- // true if both NaN, false otherwise
3252
3261
  return a!==a && b!==b;
3253
3262
  };
3254
3263
 
@@ -4271,7 +4280,7 @@ function formatValue(ctx, value, recurseTimes) {
4271
4280
  var base = '', array = false, braces = ['{', '}'];
4272
4281
 
4273
4282
  // Make Array say that they are Array
4274
- if (isArray(value)) {
4283
+ if (isArray$1(value)) {
4275
4284
  array = true;
4276
4285
  braces = ['[', ']'];
4277
4286
  }
@@ -4450,7 +4459,7 @@ function reduceToSingleString(output, base, braces) {
4450
4459
 
4451
4460
  // NOTE: These type checking functions intentionally don't use `instanceof`
4452
4461
  // because it is fragile and can be easily faked with `Object.create()`.
4453
- function isArray(ar) {
4462
+ function isArray$1(ar) {
4454
4463
  return Array.isArray(ar);
4455
4464
  }
4456
4465
 
@@ -4577,7 +4586,7 @@ var util = {
4577
4586
  isNullOrUndefined: isNullOrUndefined,
4578
4587
  isNull: isNull,
4579
4588
  isBoolean: isBoolean,
4580
- isArray: isArray,
4589
+ isArray: isArray$1,
4581
4590
  inspect: inspect,
4582
4591
  deprecate: deprecate,
4583
4592
  format: format,
@@ -5244,235 +5253,199 @@ module.exports = exports['default'];
5244
5253
 
5245
5254
  var youTubePlayer = unwrapExports(dist);
5246
5255
 
5247
- 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); }
5248
-
5249
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5250
-
5251
- 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); } }
5252
-
5253
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5254
-
5255
- 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); }; }
5256
-
5257
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5258
-
5259
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5260
-
5261
- 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; } }
5262
-
5263
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5256
+ 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; }; }();
5264
5257
 
5265
- 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); }
5258
+ 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; };
5266
5259
 
5267
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
5260
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5268
5261
 
5269
- 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; }
5262
+ 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; }
5270
5263
 
5271
- 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; }
5264
+ 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; }
5272
5265
 
5273
- 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; }
5274
- /**
5275
- * Check whether a `props` change should result in the video being updated.
5276
- *
5277
- * @param {Object} prevProps
5278
- * @param {Object} props
5266
+ /**
5267
+ * Check whether a `props` change should result in the video being updated.
5268
+ *
5269
+ * @param {Object} prevProps
5270
+ * @param {Object} props
5279
5271
  */
5280
-
5281
5272
  function shouldUpdateVideo(prevProps, props) {
5282
5273
  // A changing video should always trigger an update
5283
5274
  if (prevProps.videoId !== props.videoId) {
5284
5275
  return true;
5285
- } // Otherwise, a change in the start/end time playerVars also requires a player
5286
- // update.
5287
-
5276
+ }
5288
5277
 
5278
+ // Otherwise, a change in the start/end time playerVars also requires a player
5279
+ // update.
5289
5280
  var prevVars = prevProps.opts.playerVars || {};
5290
5281
  var vars = props.opts.playerVars || {};
5282
+
5291
5283
  return prevVars.start !== vars.start || prevVars.end !== vars.end;
5292
5284
  }
5293
- /**
5294
- * Neutralize API options that only require a video update, leaving only options
5295
- * that require a player reset. The results can then be compared to see if a
5296
- * player reset is necessary.
5297
- *
5298
- * @param {Object} opts
5299
- */
5300
-
5301
5285
 
5286
+ /**
5287
+ * Neutralise API options that only require a video update, leaving only options
5288
+ * that require a player reset. The results can then be compared to see if a
5289
+ * player reset is necessary.
5290
+ *
5291
+ * @param {Object} opts
5292
+ */
5302
5293
  function filterResetOptions(opts) {
5303
- return _objectSpread({}, opts, {
5304
- playerVars: _objectSpread({}, opts.playerVars, {
5294
+ return _extends({}, opts, {
5295
+ playerVars: _extends({}, opts.playerVars, {
5305
5296
  autoplay: 0,
5306
5297
  start: 0,
5307
5298
  end: 0
5308
5299
  })
5309
5300
  });
5310
5301
  }
5311
- /**
5312
- * Check whether a `props` change should result in the player being reset.
5313
- * The player is reset when the `props.opts` change, except if the only change
5314
- * is in the `start` and `end` playerVars, because a video update can deal with
5315
- * those.
5316
- *
5317
- * @param {Object} prevProps
5318
- * @param {Object} props
5319
- */
5320
-
5321
5302
 
5303
+ /**
5304
+ * Check whether a `props` change should result in the player being reset.
5305
+ * The player is reset when the `props.opts` change, except if the only change
5306
+ * is in the `start` and `end` playerVars, because a video update can deal with
5307
+ * those.
5308
+ *
5309
+ * @param {Object} prevProps
5310
+ * @param {Object} props
5311
+ */
5322
5312
  function shouldResetPlayer(prevProps, props) {
5323
5313
  return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
5324
5314
  }
5325
- /**
5326
- * Check whether a props change should result in an id or className update.
5327
- *
5328
- * @param {Object} prevProps
5329
- * @param {Object} props
5330
- */
5331
-
5332
5315
 
5316
+ /**
5317
+ * Check whether a props change should result in an id or className update.
5318
+ *
5319
+ * @param {Object} prevProps
5320
+ * @param {Object} props
5321
+ */
5333
5322
  function shouldUpdatePlayer(prevProps, props) {
5334
5323
  return prevProps.id !== props.id || prevProps.className !== props.className;
5335
5324
  }
5336
5325
 
5337
- var YouTube = /*#__PURE__*/function (_React$Component) {
5326
+ var YouTube = function (_React$Component) {
5338
5327
  _inherits(YouTube, _React$Component);
5339
5328
 
5340
- var _super = _createSuper(YouTube);
5341
-
5342
- /**
5343
- * Expose PlayerState constants for convenience. These constants can also be
5344
- * accessed through the global YT object after the YouTube IFrame API is instantiated.
5345
- * https://developers.google.com/youtube/iframe_api_reference#onStateChange
5346
- */
5347
5329
  function YouTube(props) {
5348
- var _this;
5349
-
5350
5330
  _classCallCheck(this, YouTube);
5351
5331
 
5352
- _this = _super.call(this, props);
5332
+ var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
5353
5333
 
5354
- _defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
5334
+ _this.onPlayerReady = function (event) {
5355
5335
  return _this.props.onReady(event);
5356
- });
5336
+ };
5357
5337
 
5358
- _defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
5338
+ _this.onPlayerError = function (event) {
5359
5339
  return _this.props.onError(event);
5360
- });
5340
+ };
5361
5341
 
5362
- _defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
5342
+ _this.onPlayerStateChange = function (event) {
5363
5343
  _this.props.onStateChange(event);
5364
-
5365
5344
  switch (event.data) {
5345
+
5366
5346
  case YouTube.PlayerState.ENDED:
5367
5347
  _this.props.onEnd(event);
5368
-
5369
5348
  break;
5370
5349
 
5371
5350
  case YouTube.PlayerState.PLAYING:
5372
5351
  _this.props.onPlay(event);
5373
-
5374
5352
  break;
5375
5353
 
5376
5354
  case YouTube.PlayerState.PAUSED:
5377
5355
  _this.props.onPause(event);
5378
-
5379
5356
  break;
5380
5357
  }
5381
- });
5358
+ };
5382
5359
 
5383
- _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
5360
+ _this.onPlayerPlaybackRateChange = function (event) {
5384
5361
  return _this.props.onPlaybackRateChange(event);
5385
- });
5362
+ };
5386
5363
 
5387
- _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
5364
+ _this.onPlayerPlaybackQualityChange = function (event) {
5388
5365
  return _this.props.onPlaybackQualityChange(event);
5389
- });
5366
+ };
5390
5367
 
5391
- _defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
5368
+ _this.createPlayer = function () {
5392
5369
  // do not attempt to create a player server-side, it won't work
5393
- if (typeof document === 'undefined') return; // create player
5394
-
5395
- var playerOpts = _objectSpread({}, _this.props.opts, {
5370
+ if (typeof document === 'undefined') return;
5371
+ // create player
5372
+ var playerOpts = _extends({}, _this.props.opts, {
5396
5373
  // preload the `videoId` video if one is already given
5397
5374
  videoId: _this.props.videoId
5398
5375
  });
5399
-
5400
- _this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
5401
-
5376
+ _this.internalPlayer = youTubePlayer(_this.container, playerOpts);
5377
+ // attach event handlers
5402
5378
  _this.internalPlayer.on('ready', _this.onPlayerReady);
5403
-
5404
5379
  _this.internalPlayer.on('error', _this.onPlayerError);
5405
-
5406
5380
  _this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
5407
-
5408
5381
  _this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
5409
-
5410
5382
  _this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
5411
- });
5383
+ };
5412
5384
 
5413
- _defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
5385
+ _this.resetPlayer = function () {
5414
5386
  return _this.internalPlayer.destroy().then(_this.createPlayer);
5415
- });
5387
+ };
5416
5388
 
5417
- _defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
5389
+ _this.updatePlayer = function () {
5418
5390
  _this.internalPlayer.getIframe().then(function (iframe) {
5419
5391
  if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
5420
5392
  if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
5421
5393
  });
5422
- });
5394
+ };
5423
5395
 
5424
- _defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
5396
+ _this.updateVideo = function () {
5425
5397
  if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
5426
5398
  _this.internalPlayer.stopVideo();
5427
-
5428
5399
  return;
5429
- } // set queueing options
5430
-
5400
+ }
5431
5401
 
5402
+ // set queueing options
5432
5403
  var autoplay = false;
5433
5404
  var opts = {
5434
5405
  videoId: _this.props.videoId
5435
5406
  };
5436
-
5437
5407
  if ('playerVars' in _this.props.opts) {
5438
5408
  autoplay = _this.props.opts.playerVars.autoplay === 1;
5439
-
5440
5409
  if ('start' in _this.props.opts.playerVars) {
5441
5410
  opts.startSeconds = _this.props.opts.playerVars.start;
5442
5411
  }
5443
-
5444
5412
  if ('end' in _this.props.opts.playerVars) {
5445
5413
  opts.endSeconds = _this.props.opts.playerVars.end;
5446
5414
  }
5447
- } // if autoplay is enabled loadVideoById
5448
-
5415
+ }
5449
5416
 
5417
+ // if autoplay is enabled loadVideoById
5450
5418
  if (autoplay) {
5451
5419
  _this.internalPlayer.loadVideoById(opts);
5452
-
5453
5420
  return;
5454
- } // default behaviour just cues the video
5455
-
5456
-
5421
+ }
5422
+ // default behaviour just cues the video
5457
5423
  _this.internalPlayer.cueVideoById(opts);
5458
- });
5424
+ };
5459
5425
 
5460
- _defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
5426
+ _this.refContainer = function (container) {
5461
5427
  _this.container = container;
5462
- });
5428
+ };
5463
5429
 
5464
5430
  _this.container = null;
5465
5431
  _this.internalPlayer = null;
5466
5432
  return _this;
5467
5433
  }
5468
5434
 
5435
+ /**
5436
+ * Expose PlayerState constants for convenience. These constants can also be
5437
+ * accessed through the global YT object after the YouTube IFrame API is instantiated.
5438
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
5439
+ */
5440
+
5441
+
5469
5442
  _createClass(YouTube, [{
5470
- key: "componentDidMount",
5443
+ key: 'componentDidMount',
5471
5444
  value: function componentDidMount() {
5472
5445
  this.createPlayer();
5473
5446
  }
5474
5447
  }, {
5475
- key: "componentDidUpdate",
5448
+ key: 'componentDidUpdate',
5476
5449
  value: function componentDidUpdate(prevProps) {
5477
5450
  if (shouldUpdatePlayer(prevProps, this.props)) {
5478
5451
  this.updatePlayer();
@@ -5487,58 +5460,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
5487
5460
  }
5488
5461
  }
5489
5462
  }, {
5490
- key: "componentWillUnmount",
5463
+ key: 'componentWillUnmount',
5491
5464
  value: function componentWillUnmount() {
5492
- /**
5493
- * Note: The `youtube-player` package that is used promisifies all YouTube
5494
- * Player API calls, which introduces a delay of a tick before it actually
5495
- * gets destroyed. Since React attempts to remove the element instantly
5496
- * this method isn't quick enough to reset the container element.
5465
+ /**
5466
+ * Note: The `youtube-player` package that is used promisifies all Youtube
5467
+ * Player API calls, which introduces a delay of a tick before it actually
5468
+ * gets destroyed. Since React attempts to remove the element instantly
5469
+ * this method isn't quick enough to reset the container element.
5497
5470
  */
5498
5471
  this.internalPlayer.destroy();
5499
5472
  }
5500
- /**
5501
- * https://developers.google.com/youtube/iframe_api_reference#onReady
5502
- *
5503
- * @param {Object} event
5504
- * @param {Object} target - player object
5473
+
5474
+ /**
5475
+ * https://developers.google.com/youtube/iframe_api_reference#onReady
5476
+ *
5477
+ * @param {Object} event
5478
+ * @param {Object} target - player object
5479
+ */
5480
+
5481
+
5482
+ /**
5483
+ * https://developers.google.com/youtube/iframe_api_reference#onError
5484
+ *
5485
+ * @param {Object} event
5486
+ * @param {Integer} data - error type
5487
+ * @param {Object} target - player object
5488
+ */
5489
+
5490
+
5491
+ /**
5492
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
5493
+ *
5494
+ * @param {Object} event
5495
+ * @param {Integer} data - status change type
5496
+ * @param {Object} target - actual YT player
5497
+ */
5498
+
5499
+
5500
+ /**
5501
+ * https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
5502
+ *
5503
+ * @param {Object} event
5504
+ * @param {Float} data - playback rate
5505
+ * @param {Object} target - actual YT player
5506
+ */
5507
+
5508
+
5509
+ /**
5510
+ * https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
5511
+ *
5512
+ * @param {Object} event
5513
+ * @param {String} data - playback quality
5514
+ * @param {Object} target - actual YT player
5515
+ */
5516
+
5517
+
5518
+ /**
5519
+ * Initialize the Youtube Player API on the container and attach event handlers
5520
+ */
5521
+
5522
+
5523
+ /**
5524
+ * Shorthand for destroying and then re-creating the Youtube Player
5525
+ */
5526
+
5527
+
5528
+ /**
5529
+ * Method to update the id and class of the Youtube Player iframe.
5530
+ * React should update this automatically but since the Youtube Player API
5531
+ * replaced the DIV that is mounted by React we need to do this manually.
5532
+ */
5533
+
5534
+
5535
+ /**
5536
+ * Call Youtube Player API methods to update the currently playing video.
5537
+ * Depeding on the `opts.playerVars.autoplay` this function uses one of two
5538
+ * Youtube Player API methods to update the video.
5505
5539
  */
5506
5540
 
5507
5541
  }, {
5508
- key: "render",
5542
+ key: 'render',
5509
5543
  value: function render() {
5510
- return /*#__PURE__*/React__default.createElement("div", {
5511
- className: this.props.containerClassName
5512
- }, /*#__PURE__*/React__default.createElement("div", {
5513
- id: this.props.id,
5514
- className: this.props.className,
5515
- ref: this.refContainer
5516
- }));
5544
+ return React__default.createElement(
5545
+ 'div',
5546
+ { className: this.props.containerClassName },
5547
+ React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
5548
+ );
5517
5549
  }
5518
5550
  }]);
5519
5551
 
5520
5552
  return YouTube;
5521
5553
  }(React__default.Component);
5522
5554
 
5523
- _defineProperty(YouTube, "PlayerState", {
5524
- UNSTARTED: -1,
5525
- ENDED: 0,
5526
- PLAYING: 1,
5527
- PAUSED: 2,
5528
- BUFFERING: 3,
5529
- CUED: 5
5530
- });
5531
-
5532
5555
  YouTube.propTypes = {
5533
5556
  videoId: PropTypes.string,
5557
+
5534
5558
  // custom ID for player element
5535
5559
  id: PropTypes.string,
5560
+
5536
5561
  // custom class name for player element
5537
5562
  className: PropTypes.string,
5538
5563
  // custom class name for player container element
5539
5564
  containerClassName: PropTypes.string,
5565
+
5540
5566
  // https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
5541
5567
  opts: PropTypes.objectOf(PropTypes.any),
5568
+
5542
5569
  // event subscriptions
5543
5570
  onReady: PropTypes.func,
5544
5571
  onError: PropTypes.func,
@@ -5550,7 +5577,6 @@ YouTube.propTypes = {
5550
5577
  onPlaybackQualityChange: PropTypes.func
5551
5578
  };
5552
5579
  YouTube.defaultProps = {
5553
- videoId: null,
5554
5580
  id: null,
5555
5581
  className: null,
5556
5582
  opts: {},
@@ -5564,6 +5590,14 @@ YouTube.defaultProps = {
5564
5590
  onPlaybackRateChange: function onPlaybackRateChange() {},
5565
5591
  onPlaybackQualityChange: function onPlaybackQualityChange() {}
5566
5592
  };
5593
+ YouTube.PlayerState = {
5594
+ UNSTARTED: -1,
5595
+ ENDED: 0,
5596
+ PLAYING: 1,
5597
+ PAUSED: 2,
5598
+ BUFFERING: 3,
5599
+ CUED: 5
5600
+ };
5567
5601
 
5568
5602
  var YouTubePlayer = function YouTubePlayer(_ref) {
5569
5603
  var url = _ref.url;
@@ -6478,8 +6512,8 @@ var window_1 = win;
6478
6512
 
6479
6513
  /*! @name @brightcove/react-player-loader @version 1.4.0 @license Apache-2.0 */
6480
6514
 
6481
- function _extends() {
6482
- _extends = Object.assign || function (target) {
6515
+ function _extends$1() {
6516
+ _extends$1 = Object.assign || function (target) {
6483
6517
  for (var i = 1; i < arguments.length; i++) {
6484
6518
  var source = arguments[i];
6485
6519
 
@@ -6493,7 +6527,7 @@ function _extends() {
6493
6527
  return target;
6494
6528
  };
6495
6529
 
6496
- return _extends.apply(this, arguments);
6530
+ return _extends$1.apply(this, arguments);
6497
6531
  }
6498
6532
 
6499
6533
  function _inheritsLoose(subClass, superClass) {
@@ -6502,7 +6536,7 @@ function _inheritsLoose(subClass, superClass) {
6502
6536
  subClass.__proto__ = superClass;
6503
6537
  }
6504
6538
 
6505
- function _assertThisInitialized$1(self) {
6539
+ function _assertThisInitialized(self) {
6506
6540
  if (self === void 0) {
6507
6541
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
6508
6542
  }
@@ -6512,8 +6546,8 @@ function _assertThisInitialized$1(self) {
6512
6546
 
6513
6547
  /*! @name @brightcove/player-loader @version 1.7.1 @license Apache-2.0 */
6514
6548
 
6515
- function _extends$1() {
6516
- _extends$1 = Object.assign || function (target) {
6549
+ function _extends$1$1() {
6550
+ _extends$1$1 = Object.assign || function (target) {
6517
6551
  for (var i = 1; i < arguments.length; i++) {
6518
6552
  var source = arguments[i];
6519
6553
 
@@ -6527,7 +6561,7 @@ function _extends$1() {
6527
6561
  return target;
6528
6562
  };
6529
6563
 
6530
- return _extends$1.apply(this, arguments);
6564
+ return _extends$1$1.apply(this, arguments);
6531
6565
  }
6532
6566
 
6533
6567
  var version$1 = "1.7.1";
@@ -6535,7 +6569,7 @@ var version$1 = "1.7.1";
6535
6569
  /*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */
6536
6570
  var version$1$1 = "1.2.0";
6537
6571
 
6538
- var _typeof$1 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
6572
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
6539
6573
  return typeof obj;
6540
6574
  } : function (obj) {
6541
6575
  return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
@@ -6670,7 +6704,7 @@ var brightcovePlayerUrl = function brightcovePlayerUrl(_ref) {
6670
6704
 
6671
6705
  var qs = '';
6672
6706
 
6673
- if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof$1(queryParams)) === 'object') {
6707
+ if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof(queryParams)) === 'object') {
6674
6708
  qs = getQueryString(queryParams);
6675
6709
  }
6676
6710
 
@@ -6904,7 +6938,7 @@ var wrapResponsive = function wrapResponsive(embedType, embedOptions, el) {
6904
6938
  el.style.width = '100%';
6905
6939
  el.style.height = '100%';
6906
6940
 
6907
- var responsive = _extends$1({
6941
+ var responsive = _extends$1$1({
6908
6942
  aspectRatio: DEFAULT_ASPECT_RATIO,
6909
6943
  iframeHorizontalPlaylist: DEFAULT_IFRAME_HORIZONTAL_PLAYLIST,
6910
6944
  maxWidth: DEFAULT_MAX_WIDTH
@@ -7589,7 +7623,7 @@ var loadPlayer = function loadPlayer(params, resolve, reject) {
7589
7623
 
7590
7624
 
7591
7625
  var brightcovePlayerLoader = function brightcovePlayerLoader(parameters) {
7592
- var params = _extends$1({}, DEFAULTS, parameters);
7626
+ var params = _extends$1$1({}, DEFAULTS, parameters);
7593
7627
 
7594
7628
  var Promise = params.Promise,
7595
7629
  onSuccess = params.onSuccess,
@@ -7731,7 +7765,7 @@ function (_React$Component) {
7731
7765
  _this.refNode = ref;
7732
7766
  };
7733
7767
 
7734
- _this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized$1(_this));
7768
+ _this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized(_this));
7735
7769
  return _this;
7736
7770
  }
7737
7771
  /**
@@ -7752,7 +7786,7 @@ function (_React$Component) {
7752
7786
  var userSuccess = this.props.onSuccess;
7753
7787
  var userFailure = this.props.onFailure;
7754
7788
 
7755
- var options = _extends({}, this.props, {
7789
+ var options = _extends$1({}, this.props, {
7756
7790
  refNode: this.refNode,
7757
7791
  refNodeInsert: 'append',
7758
7792
  onSuccess: function onSuccess(_ref) {
@@ -8061,7 +8095,7 @@ function (_React$Component) {
8061
8095
  ;
8062
8096
 
8063
8097
  _proto.render = function render() {
8064
- var props = _extends({
8098
+ var props = _extends$1({
8065
8099
  className: 'brightcove-react-player-loader'
8066
8100
  }, this.props.attrs, {
8067
8101
  ref: this.setRefNode
@@ -8580,17 +8614,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
8580
8614
 
8581
8615
  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; }
8582
8616
 
8583
- 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; } } }; }
8584
-
8585
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8617
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
8586
8618
 
8587
- 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."); }
8619
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
8588
8620
 
8589
- 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); }
8590
-
8591
- 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; }
8592
-
8593
- 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; }
8621
+ 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; }
8594
8622
 
8595
8623
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
8596
8624
 
@@ -8720,12 +8748,12 @@ function getSDK(url, sdkGlobal) {
8720
8748
 
8721
8749
  function getConfig(props$1, defaultProps, showWarning) {
8722
8750
  var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
8723
-
8724
- var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
8725
- _step;
8751
+ var _iteratorNormalCompletion = true;
8752
+ var _didIteratorError = false;
8753
+ var _iteratorError = undefined;
8726
8754
 
8727
8755
  try {
8728
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
8756
+ for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
8729
8757
  var p = _step.value;
8730
8758
 
8731
8759
  if (props$1[p]) {
@@ -8740,9 +8768,18 @@ function getConfig(props$1, defaultProps, showWarning) {
8740
8768
  }
8741
8769
  }
8742
8770
  } catch (err) {
8743
- _iterator.e(err);
8771
+ _didIteratorError = true;
8772
+ _iteratorError = err;
8744
8773
  } finally {
8745
- _iterator.f();
8774
+ try {
8775
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
8776
+ _iterator["return"]();
8777
+ }
8778
+ } finally {
8779
+ if (_didIteratorError) {
8780
+ throw _iteratorError;
8781
+ }
8782
+ }
8746
8783
  }
8747
8784
 
8748
8785
  return config;
@@ -8889,16 +8926,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
8889
8926
 
8890
8927
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
8891
8928
 
8892
- 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); }; }
8893
-
8894
8929
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
8895
8930
 
8896
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
8897
-
8898
- 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; } }
8899
-
8900
8931
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
8901
8932
 
8933
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
8934
+
8902
8935
  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); }
8903
8936
 
8904
8937
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -8907,12 +8940,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
8907
8940
 
8908
8941
  var SEEK_ON_PLAY_EXPIRY = 5000;
8909
8942
 
8910
- var Player = /*#__PURE__*/function (_Component) {
8943
+ var Player =
8944
+ /*#__PURE__*/
8945
+ function (_Component) {
8911
8946
  _inherits(Player, _Component);
8912
8947
 
8913
- var _super = _createSuper(Player);
8914
-
8915
8948
  function Player() {
8949
+ var _getPrototypeOf2;
8950
+
8916
8951
  var _this;
8917
8952
 
8918
8953
  _classCallCheck(this, Player);
@@ -8921,7 +8956,7 @@ var Player = /*#__PURE__*/function (_Component) {
8921
8956
  _args[_key] = arguments[_key];
8922
8957
  }
8923
8958
 
8924
- _this = _super.call.apply(_super, [this].concat(_args));
8959
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
8925
8960
 
8926
8961
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
8927
8962
 
@@ -9246,7 +9281,7 @@ var Player = /*#__PURE__*/function (_Component) {
9246
9281
  return null;
9247
9282
  }
9248
9283
 
9249
- return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
9284
+ return _react["default"].createElement(Player, _extends({}, this.props, {
9250
9285
  ref: this.ref,
9251
9286
  onReady: this.handleReady,
9252
9287
  onPlay: this.handlePlay,
@@ -9307,16 +9342,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9307
9342
 
9308
9343
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9309
9344
 
9310
- 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); }; }
9311
-
9312
9345
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9313
9346
 
9314
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9315
-
9316
- 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; } }
9317
-
9318
9347
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9319
9348
 
9349
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9350
+
9320
9351
  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); }
9321
9352
 
9322
9353
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9328,12 +9359,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
9328
9359
  function createSinglePlayer(activePlayer) {
9329
9360
  var _class, _temp;
9330
9361
 
9331
- return _temp = _class = /*#__PURE__*/function (_Component) {
9362
+ return _temp = _class =
9363
+ /*#__PURE__*/
9364
+ function (_Component) {
9332
9365
  _inherits(SinglePlayer, _Component);
9333
9366
 
9334
- var _super = _createSuper(SinglePlayer);
9335
-
9336
9367
  function SinglePlayer() {
9368
+ var _getPrototypeOf2;
9369
+
9337
9370
  var _this;
9338
9371
 
9339
9372
  _classCallCheck(this, SinglePlayer);
@@ -9342,7 +9375,7 @@ function createSinglePlayer(activePlayer) {
9342
9375
  args[_key] = arguments[_key];
9343
9376
  }
9344
9377
 
9345
- _this = _super.call.apply(_super, [this].concat(args));
9378
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
9346
9379
 
9347
9380
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
9348
9381
 
@@ -9410,12 +9443,12 @@ function createSinglePlayer(activePlayer) {
9410
9443
  height = _this$props.height,
9411
9444
  Wrapper = _this$props.wrapper;
9412
9445
  var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
9413
- return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
9446
+ return _react["default"].createElement(Wrapper, _extends({
9414
9447
  style: _objectSpread({}, style, {
9415
9448
  width: width,
9416
9449
  height: height
9417
9450
  })
9418
- }, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
9451
+ }, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
9419
9452
  ref: this.ref,
9420
9453
  activePlayer: activePlayer,
9421
9454
  config: this.config
@@ -9461,31 +9494,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9461
9494
 
9462
9495
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9463
9496
 
9464
- 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); }; }
9465
-
9466
9497
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9467
9498
 
9468
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9469
-
9470
- 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; } }
9471
-
9472
9499
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9473
9500
 
9501
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9502
+
9474
9503
  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); }
9475
9504
 
9476
9505
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9477
9506
 
9478
9507
  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; }
9479
9508
 
9480
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
9481
-
9482
- 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."); }
9483
-
9484
- 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); }
9509
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
9485
9510
 
9486
- 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; }
9511
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
9487
9512
 
9488
- 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; }
9513
+ 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; }
9489
9514
 
9490
9515
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9491
9516
 
@@ -9510,12 +9535,14 @@ function parsePlaylist(url) {
9510
9535
  return {};
9511
9536
  }
9512
9537
 
9513
- var YouTube = /*#__PURE__*/function (_Component) {
9538
+ var YouTube =
9539
+ /*#__PURE__*/
9540
+ function (_Component) {
9514
9541
  _inherits(YouTube, _Component);
9515
9542
 
9516
- var _super = _createSuper(YouTube);
9517
-
9518
9543
  function YouTube() {
9544
+ var _getPrototypeOf2;
9545
+
9519
9546
  var _this;
9520
9547
 
9521
9548
  _classCallCheck(this, YouTube);
@@ -9524,7 +9551,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
9524
9551
  args[_key] = arguments[_key];
9525
9552
  }
9526
9553
 
9527
- _this = _super.call.apply(_super, [this].concat(args));
9554
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
9528
9555
 
9529
9556
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
9530
9557
 
@@ -9712,9 +9739,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
9712
9739
  height: '100%',
9713
9740
  display: display
9714
9741
  };
9715
- return /*#__PURE__*/_react["default"].createElement("div", {
9742
+ return _react["default"].createElement("div", {
9716
9743
  style: style
9717
- }, /*#__PURE__*/_react["default"].createElement("div", {
9744
+ }, _react["default"].createElement("div", {
9718
9745
  ref: this.ref
9719
9746
  }));
9720
9747
  }
@@ -9770,16 +9797,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9770
9797
 
9771
9798
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9772
9799
 
9773
- 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); }; }
9774
-
9775
9800
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9776
9801
 
9777
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9778
-
9779
- 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; } }
9780
-
9781
9802
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9782
9803
 
9804
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9805
+
9783
9806
  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); }
9784
9807
 
9785
9808
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9788,14 +9811,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
9788
9811
 
9789
9812
  var SDK_URL = 'https://w.soundcloud.com/player/api.js';
9790
9813
  var SDK_GLOBAL = 'SC';
9791
- var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
9814
+ var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
9792
9815
 
9793
- var SoundCloud = /*#__PURE__*/function (_Component) {
9816
+ var SoundCloud =
9817
+ /*#__PURE__*/
9818
+ function (_Component) {
9794
9819
  _inherits(SoundCloud, _Component);
9795
9820
 
9796
- var _super = _createSuper(SoundCloud);
9797
-
9798
9821
  function SoundCloud() {
9822
+ var _getPrototypeOf2;
9823
+
9799
9824
  var _this;
9800
9825
 
9801
9826
  _classCallCheck(this, SoundCloud);
@@ -9804,7 +9829,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
9804
9829
  args[_key] = arguments[_key];
9805
9830
  }
9806
9831
 
9807
- _this = _super.call.apply(_super, [this].concat(args));
9832
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
9808
9833
 
9809
9834
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
9810
9835
 
@@ -9925,7 +9950,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
9925
9950
  height: '100%',
9926
9951
  display: display
9927
9952
  };
9928
- return /*#__PURE__*/_react["default"].createElement("iframe", {
9953
+ return _react["default"].createElement("iframe", {
9929
9954
  ref: this.ref,
9930
9955
  src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
9931
9956
  style: style,
@@ -9987,16 +10012,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9987
10012
 
9988
10013
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9989
10014
 
9990
- 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); }; }
9991
-
9992
10015
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9993
10016
 
9994
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9995
-
9996
- 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; } }
9997
-
9998
10017
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9999
10018
 
10019
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10020
+
10000
10021
  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); }
10001
10022
 
10002
10023
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10008,12 +10029,14 @@ var SDK_GLOBAL = 'Vimeo';
10008
10029
  var MATCH_URL = /vimeo\.com\/.+/;
10009
10030
  var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
10010
10031
 
10011
- var Vimeo = /*#__PURE__*/function (_Component) {
10032
+ var Vimeo =
10033
+ /*#__PURE__*/
10034
+ function (_Component) {
10012
10035
  _inherits(Vimeo, _Component);
10013
10036
 
10014
- var _super = _createSuper(Vimeo);
10015
-
10016
10037
  function Vimeo() {
10038
+ var _getPrototypeOf2;
10039
+
10017
10040
  var _this;
10018
10041
 
10019
10042
  _classCallCheck(this, Vimeo);
@@ -10022,7 +10045,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
10022
10045
  args[_key] = arguments[_key];
10023
10046
  }
10024
10047
 
10025
- _this = _super.call.apply(_super, [this].concat(args));
10048
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
10026
10049
 
10027
10050
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10028
10051
 
@@ -10179,7 +10202,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
10179
10202
  overflow: 'hidden',
10180
10203
  display: display
10181
10204
  };
10182
- return /*#__PURE__*/_react["default"].createElement("div", {
10205
+ return _react["default"].createElement("div", {
10183
10206
  key: this.props.url,
10184
10207
  ref: this.ref,
10185
10208
  style: style
@@ -10239,16 +10262,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10239
10262
 
10240
10263
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10241
10264
 
10242
- 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); }; }
10243
-
10244
10265
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10245
10266
 
10246
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10247
-
10248
- 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; } }
10249
-
10250
10267
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10251
10268
 
10269
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10270
+
10252
10271
  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); }
10253
10272
 
10254
10273
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10261,12 +10280,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
10261
10280
  var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
10262
10281
  var PLAYER_ID_PREFIX = 'facebook-player-';
10263
10282
 
10264
- var Facebook = /*#__PURE__*/function (_Component) {
10283
+ var Facebook =
10284
+ /*#__PURE__*/
10285
+ function (_Component) {
10265
10286
  _inherits(Facebook, _Component);
10266
10287
 
10267
- var _super = _createSuper(Facebook);
10268
-
10269
10288
  function Facebook() {
10289
+ var _getPrototypeOf2;
10290
+
10270
10291
  var _this;
10271
10292
 
10272
10293
  _classCallCheck(this, Facebook);
@@ -10275,7 +10296,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
10275
10296
  args[_key] = arguments[_key];
10276
10297
  }
10277
10298
 
10278
- _this = _super.call.apply(_super, [this].concat(args));
10299
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
10279
10300
 
10280
10301
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10281
10302
 
@@ -10391,7 +10412,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
10391
10412
  width: '100%',
10392
10413
  height: '100%'
10393
10414
  };
10394
- return /*#__PURE__*/_react["default"].createElement("div", {
10415
+ return _react["default"].createElement("div", {
10395
10416
  style: style,
10396
10417
  id: this.playerID,
10397
10418
  className: "fb-video",
@@ -10451,16 +10472,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10451
10472
 
10452
10473
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10453
10474
 
10454
- 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); }; }
10455
-
10456
10475
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10457
10476
 
10458
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10459
-
10460
- 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; } }
10461
-
10462
10477
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10463
10478
 
10479
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10480
+
10464
10481
  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); }
10465
10482
 
10466
10483
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10471,12 +10488,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
10471
10488
  var SDK_GLOBAL = 'playerjs';
10472
10489
  var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
10473
10490
 
10474
- var Streamable = /*#__PURE__*/function (_Component) {
10491
+ var Streamable =
10492
+ /*#__PURE__*/
10493
+ function (_Component) {
10475
10494
  _inherits(Streamable, _Component);
10476
10495
 
10477
- var _super = _createSuper(Streamable);
10478
-
10479
10496
  function Streamable() {
10497
+ var _getPrototypeOf2;
10498
+
10480
10499
  var _this;
10481
10500
 
10482
10501
  _classCallCheck(this, Streamable);
@@ -10485,7 +10504,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
10485
10504
  args[_key] = arguments[_key];
10486
10505
  }
10487
10506
 
10488
- _this = _super.call.apply(_super, [this].concat(args));
10507
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
10489
10508
 
10490
10509
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10491
10510
 
@@ -10605,7 +10624,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
10605
10624
  width: '100%',
10606
10625
  height: '100%'
10607
10626
  };
10608
- return /*#__PURE__*/_react["default"].createElement("iframe", {
10627
+ return _react["default"].createElement("iframe", {
10609
10628
  ref: this.ref,
10610
10629
  src: "https://streamable.com/o/".concat(id),
10611
10630
  frameBorder: "0",
@@ -10666,16 +10685,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10666
10685
 
10667
10686
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10668
10687
 
10669
- 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); }; }
10670
-
10671
10688
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10672
10689
 
10673
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10674
-
10675
- 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; } }
10676
-
10677
10690
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10678
10691
 
10692
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10693
+
10679
10694
  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); }
10680
10695
 
10681
10696
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10686,48 +10701,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
10686
10701
  var SDK_GLOBAL = 'Wistia';
10687
10702
  var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
10688
10703
 
10689
- var Wistia = /*#__PURE__*/function (_Component) {
10704
+ var Wistia =
10705
+ /*#__PURE__*/
10706
+ function (_Component) {
10690
10707
  _inherits(Wistia, _Component);
10691
10708
 
10692
- var _super = _createSuper(Wistia);
10693
-
10694
10709
  function Wistia() {
10710
+ var _getPrototypeOf2;
10711
+
10695
10712
  var _this;
10696
10713
 
10697
10714
  _classCallCheck(this, Wistia);
10698
10715
 
10699
- for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
10700
- _args[_key] = arguments[_key];
10716
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
10717
+ args[_key] = arguments[_key];
10701
10718
  }
10702
10719
 
10703
- _this = _super.call.apply(_super, [this].concat(_args));
10720
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
10704
10721
 
10705
10722
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10706
10723
 
10707
- _defineProperty(_assertThisInitialized(_this), "onPlay", function () {
10708
- var _this$props;
10709
-
10710
- return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
10711
- });
10712
-
10713
- _defineProperty(_assertThisInitialized(_this), "onPause", function () {
10714
- var _this$props2;
10715
-
10716
- return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
10717
- });
10718
-
10719
- _defineProperty(_assertThisInitialized(_this), "onSeek", function () {
10720
- var _this$props3;
10721
-
10722
- return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
10723
- });
10724
-
10725
- _defineProperty(_assertThisInitialized(_this), "onEnded", function () {
10726
- var _this$props4;
10727
-
10728
- return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
10729
- });
10730
-
10731
10724
  _defineProperty(_assertThisInitialized(_this), "mute", function () {
10732
10725
  _this.callPlayer('mute');
10733
10726
  });
@@ -10749,13 +10742,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
10749
10742
  value: function load(url) {
10750
10743
  var _this2 = this;
10751
10744
 
10752
- var _this$props5 = this.props,
10753
- playing = _this$props5.playing,
10754
- muted = _this$props5.muted,
10755
- controls = _this$props5.controls,
10756
- _onReady = _this$props5.onReady,
10757
- config = _this$props5.config,
10758
- onError = _this$props5.onError;
10745
+ var _this$props = this.props,
10746
+ playing = _this$props.playing,
10747
+ muted = _this$props.muted,
10748
+ controls = _this$props.controls,
10749
+ _onReady = _this$props.onReady,
10750
+ onPlay = _this$props.onPlay,
10751
+ onPause = _this$props.onPause,
10752
+ onSeek = _this$props.onSeek,
10753
+ onEnded = _this$props.onEnded,
10754
+ config = _this$props.config,
10755
+ onError = _this$props.onError;
10759
10756
  (0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
10760
10757
  window._wq = window._wq || [];
10761
10758
 
@@ -10772,28 +10769,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
10772
10769
 
10773
10770
  _this2.unbind();
10774
10771
 
10775
- _this2.player.bind('play', _this2.onPlay);
10772
+ _this2.player.bind('play', onPlay);
10776
10773
 
10777
- _this2.player.bind('pause', _this2.onPause);
10774
+ _this2.player.bind('pause', onPause);
10778
10775
 
10779
- _this2.player.bind('seek', _this2.onSeek);
10776
+ _this2.player.bind('seek', onSeek);
10780
10777
 
10781
- _this2.player.bind('end', _this2.onEnded);
10778
+ _this2.player.bind('end', onEnded);
10782
10779
 
10783
10780
  _onReady();
10784
10781
  }
10785
10782
  });
10786
10783
  }, onError);
10787
10784
  }
10788
- }, {
10789
- key: "unbind",
10790
- value: function unbind() {
10791
- this.player.unbind('play', this.onPlay);
10792
- this.player.unbind('pause', this.onPause);
10793
- this.player.unbind('seek', this.onSeek);
10794
- this.player.unbind('end', this.onEnded);
10795
- } // Proxy methods to prevent listener leaks
10796
-
10797
10785
  }, {
10798
10786
  key: "play",
10799
10787
  value: function play() {
@@ -10804,6 +10792,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
10804
10792
  value: function pause() {
10805
10793
  this.callPlayer('pause');
10806
10794
  }
10795
+ }, {
10796
+ key: "unbind",
10797
+ value: function unbind() {
10798
+ var _this$props2 = this.props,
10799
+ onPlay = _this$props2.onPlay,
10800
+ onPause = _this$props2.onPause,
10801
+ onSeek = _this$props2.onSeek,
10802
+ onEnded = _this$props2.onEnded;
10803
+ this.player.unbind('play', onPlay);
10804
+ this.player.unbind('pause', onPause);
10805
+ this.player.unbind('seek', onSeek);
10806
+ this.player.unbind('end', onEnded);
10807
+ }
10807
10808
  }, {
10808
10809
  key: "stop",
10809
10810
  value: function stop() {
@@ -10849,7 +10850,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
10849
10850
  width: '100%',
10850
10851
  height: '100%'
10851
10852
  };
10852
- return /*#__PURE__*/_react["default"].createElement("div", {
10853
+ return _react["default"].createElement("div", {
10853
10854
  key: id,
10854
10855
  className: className,
10855
10856
  style: style
@@ -10909,16 +10910,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10909
10910
 
10910
10911
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10911
10912
 
10912
- 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); }; }
10913
-
10914
10913
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10915
10914
 
10916
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10917
-
10918
- 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; } }
10919
-
10920
10915
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10921
10916
 
10917
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10918
+
10922
10919
  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); }
10923
10920
 
10924
10921
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10931,12 +10928,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
10931
10928
  var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
10932
10929
  var PLAYER_ID_PREFIX = 'twitch-player-';
10933
10930
 
10934
- var Twitch = /*#__PURE__*/function (_Component) {
10931
+ var Twitch =
10932
+ /*#__PURE__*/
10933
+ function (_Component) {
10935
10934
  _inherits(Twitch, _Component);
10936
10935
 
10937
- var _super = _createSuper(Twitch);
10938
-
10939
10936
  function Twitch() {
10937
+ var _getPrototypeOf2;
10938
+
10940
10939
  var _this;
10941
10940
 
10942
10941
  _classCallCheck(this, Twitch);
@@ -10945,7 +10944,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
10945
10944
  args[_key] = arguments[_key];
10946
10945
  }
10947
10946
 
10948
- _this = _super.call.apply(_super, [this].concat(args));
10947
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
10949
10948
 
10950
10949
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10951
10950
 
@@ -11066,7 +11065,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
11066
11065
  width: '100%',
11067
11066
  height: '100%'
11068
11067
  };
11069
- return /*#__PURE__*/_react["default"].createElement("div", {
11068
+ return _react["default"].createElement("div", {
11070
11069
  style: style,
11071
11070
  id: this.playerID
11072
11071
  });
@@ -11119,15 +11118,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
11119
11118
 
11120
11119
  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; }
11121
11120
 
11122
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
11121
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
11123
11122
 
11124
- 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."); }
11123
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
11125
11124
 
11126
- 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); }
11127
-
11128
- 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; }
11129
-
11130
- 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; }
11125
+ 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; }
11131
11126
 
11132
11127
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11133
11128
 
@@ -11137,16 +11132,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11137
11132
 
11138
11133
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11139
11134
 
11140
- 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); }; }
11141
-
11142
11135
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11143
11136
 
11144
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11145
-
11146
- 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; } }
11147
-
11148
11137
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11149
11138
 
11139
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11140
+
11150
11141
  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); }
11151
11142
 
11152
11143
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11158,12 +11149,14 @@ var SDK_GLOBAL = 'DM';
11158
11149
  var SDK_GLOBAL_READY = 'dmAsyncInit';
11159
11150
  var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
11160
11151
 
11161
- var DailyMotion = /*#__PURE__*/function (_Component) {
11152
+ var DailyMotion =
11153
+ /*#__PURE__*/
11154
+ function (_Component) {
11162
11155
  _inherits(DailyMotion, _Component);
11163
11156
 
11164
- var _super = _createSuper(DailyMotion);
11165
-
11166
11157
  function DailyMotion() {
11158
+ var _getPrototypeOf2;
11159
+
11167
11160
  var _this;
11168
11161
 
11169
11162
  _classCallCheck(this, DailyMotion);
@@ -11172,7 +11165,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
11172
11165
  args[_key] = arguments[_key];
11173
11166
  }
11174
11167
 
11175
- _this = _super.call.apply(_super, [this].concat(args));
11168
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
11176
11169
 
11177
11170
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11178
11171
 
@@ -11301,9 +11294,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
11301
11294
  height: '100%',
11302
11295
  display: display
11303
11296
  };
11304
- return /*#__PURE__*/_react["default"].createElement("div", {
11297
+ return _react["default"].createElement("div", {
11305
11298
  style: style
11306
- }, /*#__PURE__*/_react["default"].createElement("div", {
11299
+ }, _react["default"].createElement("div", {
11307
11300
  ref: this.ref
11308
11301
  }));
11309
11302
  }
@@ -11361,16 +11354,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11361
11354
 
11362
11355
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11363
11356
 
11364
- 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); }; }
11365
-
11366
11357
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11367
11358
 
11368
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11369
-
11370
- 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; } }
11371
-
11372
11359
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11373
11360
 
11361
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11362
+
11374
11363
  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); }
11375
11364
 
11376
11365
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11381,12 +11370,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
11381
11370
  var SDK_GLOBAL = 'Mixcloud';
11382
11371
  var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
11383
11372
 
11384
- var Mixcloud = /*#__PURE__*/function (_Component) {
11373
+ var Mixcloud =
11374
+ /*#__PURE__*/
11375
+ function (_Component) {
11385
11376
  _inherits(Mixcloud, _Component);
11386
11377
 
11387
- var _super = _createSuper(Mixcloud);
11388
-
11389
11378
  function Mixcloud() {
11379
+ var _getPrototypeOf2;
11380
+
11390
11381
  var _this;
11391
11382
 
11392
11383
  _classCallCheck(this, Mixcloud);
@@ -11395,7 +11386,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
11395
11386
  args[_key] = arguments[_key];
11396
11387
  }
11397
11388
 
11398
- _this = _super.call.apply(_super, [this].concat(args));
11389
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
11399
11390
 
11400
11391
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11401
11392
 
@@ -11498,7 +11489,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
11498
11489
  })); // We have to give the iframe a key here to prevent a
11499
11490
  // weird dialog appearing when loading a new track
11500
11491
 
11501
- return /*#__PURE__*/_react["default"].createElement("iframe", {
11492
+ return _react["default"].createElement("iframe", {
11502
11493
  key: id,
11503
11494
  ref: this.ref,
11504
11495
  style: style,
@@ -11558,33 +11549,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11558
11549
 
11559
11550
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11560
11551
 
11561
- 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); }; }
11562
-
11563
11552
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11564
11553
 
11565
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11566
-
11567
- 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; } }
11568
-
11569
11554
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11570
11555
 
11556
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11557
+
11571
11558
  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); }
11572
11559
 
11573
11560
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
11574
11561
 
11575
11562
  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; }
11576
11563
 
11577
- 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; } } }; }
11578
-
11579
- 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); }
11580
-
11581
- 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; }
11582
-
11583
11564
  var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
11584
11565
  var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
11585
11566
  var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
11586
11567
  var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
11587
- var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
11568
+ var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
11588
11569
  var HLS_GLOBAL = 'Hls';
11589
11570
  var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
11590
11571
  var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
@@ -11593,11 +11574,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
11593
11574
 
11594
11575
  function canPlay(url) {
11595
11576
  if (url instanceof Array) {
11596
- var _iterator = _createForOfIteratorHelper(url),
11597
- _step;
11577
+ var _iteratorNormalCompletion = true;
11578
+ var _didIteratorError = false;
11579
+ var _iteratorError = undefined;
11598
11580
 
11599
11581
  try {
11600
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
11582
+ for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
11601
11583
  var item = _step.value;
11602
11584
 
11603
11585
  if (typeof item === 'string' && canPlay(item)) {
@@ -11609,9 +11591,18 @@ function canPlay(url) {
11609
11591
  }
11610
11592
  }
11611
11593
  } catch (err) {
11612
- _iterator.e(err);
11594
+ _didIteratorError = true;
11595
+ _iteratorError = err;
11613
11596
  } finally {
11614
- _iterator.f();
11597
+ try {
11598
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
11599
+ _iterator["return"]();
11600
+ }
11601
+ } finally {
11602
+ if (_didIteratorError) {
11603
+ throw _iteratorError;
11604
+ }
11605
+ }
11615
11606
  }
11616
11607
 
11617
11608
  return false;
@@ -11635,12 +11626,14 @@ function canEnablePIP(url) {
11635
11626
  return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
11636
11627
  }
11637
11628
 
11638
- var FilePlayer = /*#__PURE__*/function (_Component) {
11629
+ var FilePlayer =
11630
+ /*#__PURE__*/
11631
+ function (_Component) {
11639
11632
  _inherits(FilePlayer, _Component);
11640
11633
 
11641
- var _super = _createSuper(FilePlayer);
11642
-
11643
11634
  function FilePlayer() {
11635
+ var _getPrototypeOf2;
11636
+
11644
11637
  var _this;
11645
11638
 
11646
11639
  _classCallCheck(this, FilePlayer);
@@ -11649,7 +11642,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
11649
11642
  _args[_key] = arguments[_key];
11650
11643
  }
11651
11644
 
11652
- _this = _super.call.apply(_super, [this].concat(_args));
11645
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
11653
11646
 
11654
11647
  _defineProperty(_assertThisInitialized(_this), "onReady", function () {
11655
11648
  var _this$props;
@@ -11736,19 +11729,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
11736
11729
 
11737
11730
  _defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
11738
11731
  if (typeof source === 'string') {
11739
- return /*#__PURE__*/_react["default"].createElement("source", {
11732
+ return _react["default"].createElement("source", {
11740
11733
  key: index,
11741
11734
  src: source
11742
11735
  });
11743
11736
  }
11744
11737
 
11745
- return /*#__PURE__*/_react["default"].createElement("source", _extends({
11738
+ return _react["default"].createElement("source", _extends({
11746
11739
  key: index
11747
11740
  }, source));
11748
11741
  });
11749
11742
 
11750
11743
  _defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
11751
- return /*#__PURE__*/_react["default"].createElement("track", _extends({
11744
+ return _react["default"].createElement("track", _extends({
11752
11745
  key: index
11753
11746
  }, track));
11754
11747
  });
@@ -11786,10 +11779,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
11786
11779
  key: "componentWillUnmount",
11787
11780
  value: function componentWillUnmount() {
11788
11781
  this.removeListeners(this.player);
11789
-
11790
- if (this.hls) {
11791
- this.hls.destroy();
11792
- }
11793
11782
  }
11794
11783
  }, {
11795
11784
  key: "addListeners",
@@ -11920,6 +11909,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
11920
11909
  value: function stop() {
11921
11910
  this.player.removeAttribute('src');
11922
11911
 
11912
+ if (this.hls) {
11913
+ this.hls.destroy();
11914
+ }
11915
+
11923
11916
  if (this.dash) {
11924
11917
  this.dash.reset();
11925
11918
  }
@@ -12031,7 +12024,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
12031
12024
  width: width === 'auto' ? width : '100%',
12032
12025
  height: height === 'auto' ? height : '100%'
12033
12026
  };
12034
- return /*#__PURE__*/_react["default"].createElement(Element, _extends({
12027
+ return _react["default"].createElement(Element, _extends({
12035
12028
  ref: this.ref,
12036
12029
  src: this.getSource(url),
12037
12030
  style: style,
@@ -12121,16 +12114,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
12121
12114
 
12122
12115
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
12123
12116
 
12124
- 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); }; }
12125
-
12126
12117
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12127
12118
 
12128
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12129
-
12130
- 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; } }
12131
-
12132
12119
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12133
12120
 
12121
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12122
+
12134
12123
  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); }
12135
12124
 
12136
12125
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -12139,12 +12128,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12139
12128
 
12140
12129
  var ICON_SIZE = '64px';
12141
12130
 
12142
- var Preview = /*#__PURE__*/function (_Component) {
12131
+ var Preview =
12132
+ /*#__PURE__*/
12133
+ function (_Component) {
12143
12134
  _inherits(Preview, _Component);
12144
12135
 
12145
- var _super = _createSuper(Preview);
12146
-
12147
12136
  function Preview() {
12137
+ var _getPrototypeOf2;
12138
+
12148
12139
  var _this;
12149
12140
 
12150
12141
  _classCallCheck(this, Preview);
@@ -12153,7 +12144,7 @@ var Preview = /*#__PURE__*/function (_Component) {
12153
12144
  args[_key] = arguments[_key];
12154
12145
  }
12155
12146
 
12156
- _this = _super.call.apply(_super, [this].concat(args));
12147
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
12157
12148
 
12158
12149
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
12159
12150
 
@@ -12251,15 +12242,15 @@ var Preview = /*#__PURE__*/function (_Component) {
12251
12242
  }
12252
12243
  };
12253
12244
 
12254
- var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
12245
+ var defaultPlayIcon = _react["default"].createElement("div", {
12255
12246
  style: styles.shadow,
12256
12247
  className: "react-player__shadow"
12257
- }, /*#__PURE__*/_react["default"].createElement("div", {
12248
+ }, _react["default"].createElement("div", {
12258
12249
  style: styles.playIcon,
12259
12250
  className: "react-player__play-icon"
12260
12251
  }));
12261
12252
 
12262
- return /*#__PURE__*/_react["default"].createElement("div", {
12253
+ return _react["default"].createElement("div", {
12263
12254
  style: styles.preview,
12264
12255
  className: "react-player__preview",
12265
12256
  onClick: onClick
@@ -12296,12 +12287,6 @@ var _Player = _interopRequireDefault(Player_1);
12296
12287
 
12297
12288
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12298
12289
 
12299
- 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; } } }; }
12300
-
12301
- 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); }
12302
-
12303
- 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; }
12304
-
12305
12290
  var PRELOAD_PLAYERS = [{
12306
12291
  Player: YouTube_1.YouTube,
12307
12292
  configKey: 'youtube',
@@ -12322,16 +12307,16 @@ var PRELOAD_PLAYERS = [{
12322
12307
 
12323
12308
  function renderPreloadPlayers(url, controls, config) {
12324
12309
  var players = [];
12325
-
12326
- var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
12327
- _step;
12310
+ var _iteratorNormalCompletion = true;
12311
+ var _didIteratorError = false;
12312
+ var _iteratorError = undefined;
12328
12313
 
12329
12314
  try {
12330
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
12315
+ for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
12331
12316
  var player = _step.value;
12332
12317
 
12333
12318
  if (!player.Player.canPlay(url) && config[player.configKey].preload) {
12334
- players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
12319
+ players.push(_react["default"].createElement(_Player["default"], {
12335
12320
  key: player.Player.displayName,
12336
12321
  activePlayer: player.Player,
12337
12322
  url: player.url,
@@ -12343,9 +12328,18 @@ function renderPreloadPlayers(url, controls, config) {
12343
12328
  }
12344
12329
  }
12345
12330
  } catch (err) {
12346
- _iterator.e(err);
12331
+ _didIteratorError = true;
12332
+ _iteratorError = err;
12347
12333
  } finally {
12348
- _iterator.f();
12334
+ try {
12335
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
12336
+ _iterator["return"]();
12337
+ }
12338
+ } finally {
12339
+ if (_didIteratorError) {
12340
+ throw _iteratorError;
12341
+ }
12342
+ }
12349
12343
  }
12350
12344
 
12351
12345
  return players;
@@ -12469,17 +12463,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
12469
12463
 
12470
12464
  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); }
12471
12465
 
12472
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
12473
-
12474
- 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."); }
12466
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
12475
12467
 
12476
- 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); }
12468
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
12477
12469
 
12478
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
12470
+ function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
12479
12471
 
12480
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
12481
-
12482
- 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; }
12472
+ 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; } }
12483
12473
 
12484
12474
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
12485
12475
 
@@ -12487,16 +12477,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
12487
12477
 
12488
12478
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
12489
12479
 
12490
- 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); }; }
12491
-
12492
12480
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12493
12481
 
12494
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12495
-
12496
- 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; } }
12497
-
12498
12482
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12499
12483
 
12484
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12485
+
12500
12486
  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); }
12501
12487
 
12502
12488
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -12506,12 +12492,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12506
12492
  var SUPPORTED_PROPS = Object.keys(props.propTypes);
12507
12493
  var customPlayers = [];
12508
12494
 
12509
- var ReactPlayer = /*#__PURE__*/function (_Component) {
12495
+ var ReactPlayer =
12496
+ /*#__PURE__*/
12497
+ function (_Component) {
12510
12498
  _inherits(ReactPlayer, _Component);
12511
12499
 
12512
- var _super = _createSuper(ReactPlayer);
12513
-
12514
12500
  function ReactPlayer() {
12501
+ var _getPrototypeOf2;
12502
+
12515
12503
  var _this;
12516
12504
 
12517
12505
  _classCallCheck(this, ReactPlayer);
@@ -12520,7 +12508,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
12520
12508
  args[_key] = arguments[_key];
12521
12509
  }
12522
12510
 
12523
- _this = _super.call.apply(_super, [this].concat(args));
12511
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
12524
12512
 
12525
12513
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
12526
12514
 
@@ -12631,7 +12619,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
12631
12619
  key: "renderActivePlayer",
12632
12620
  value: function renderActivePlayer(url, activePlayer) {
12633
12621
  if (!url) return null;
12634
- return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
12622
+ return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
12635
12623
  key: activePlayer.displayName,
12636
12624
  ref: this.activePlayerRef,
12637
12625
  config: this.config,
@@ -12668,14 +12656,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
12668
12656
  var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
12669
12657
  var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
12670
12658
 
12671
- var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
12659
+ var preview = _react["default"].createElement(_Preview["default"], {
12672
12660
  url: url,
12673
12661
  light: light,
12674
12662
  playIcon: playIcon,
12675
12663
  onClick: this.handleClickPreview
12676
12664
  });
12677
12665
 
12678
- return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
12666
+ return _react["default"].createElement(Wrapper, _extends({
12679
12667
  ref: this.wrapperRef,
12680
12668
  style: _objectSpread({}, style, {
12681
12669
  width: width,
@@ -13288,7 +13276,7 @@ var Poll = function Poll(_ref) {
13288
13276
  );
13289
13277
  };
13290
13278
 
13291
- var numberOfPaginations = main_38 ? 4 : 10;
13279
+ var numberOfPaginations = main_35 ? 4 : 10;
13292
13280
 
13293
13281
  var Quiz = function Quiz(_ref) {
13294
13282
  var quizzes = _ref.quizzes,
@@ -13401,7 +13389,7 @@ var Quiz = function Quiz(_ref) {
13401
13389
  var renderPagination = function renderPagination() {
13402
13390
  return React__default.createElement(
13403
13391
  Pagination,
13404
- { className: 'p-0 m-0', size: main_38 && 'sm' },
13392
+ { className: 'p-0 m-0', size: main_35 && 'sm' },
13405
13393
  React__default.createElement(Pagination.First, { onClick: function onClick() {
13406
13394
  return changePage('first');
13407
13395
  }, disabled: currentPage === 1 }),
@@ -13641,7 +13629,7 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
13641
13629
  };
13642
13630
 
13643
13631
  var Figure = dynamic(function () {
13644
- return import('./Figure-cc1affbe.js');
13632
+ return import('./Figure-2d14847b.js');
13645
13633
  }, { ssr: false });
13646
13634
 
13647
13635
  var ScrollToElement = function ScrollToElement(elementId) {
@@ -13912,7 +13900,7 @@ var Feature = function Feature(props) {
13912
13900
  };
13913
13901
  //image width
13914
13902
  var imageWidth = 900;
13915
- if (main_39) {
13903
+ if (main_36) {
13916
13904
  imageWidth = 450;
13917
13905
  }
13918
13906
 
@@ -14292,16 +14280,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
14292
14280
  _ref$className = _ref.className,
14293
14281
  className = _ref$className === undefined ? '' : _ref$className;
14294
14282
 
14295
- /*
14296
- Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
14297
- example:
14298
- <RelatedTopicDropdown
14299
- page='/clinical'
14300
- exclude="clinical"
14301
- className='mb-3'
14302
- parentTaxonomy={props.parentTaxonomy}
14303
- subTaxonomies={props.subTaxonomies}
14304
- />
14283
+ /*
14284
+ Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
14285
+ example:
14286
+ <RelatedTopicDropdown
14287
+ page='/clinical'
14288
+ exclude="clinical"
14289
+ className='mb-3'
14290
+ parentTaxonomy={props.parentTaxonomy}
14291
+ subTaxonomies={props.subTaxonomies}
14292
+ />
14305
14293
  */
14306
14294
  if (subTaxonomies.length === 0 && parentTaxonomy) {
14307
14295
  if (parentTaxonomy.identifier == exclude) {
@@ -14767,48 +14755,39 @@ module.exports = { "default": set, __esModule: true };
14767
14755
 
14768
14756
  var _Set = unwrapExports(set$1);
14769
14757
 
14770
- /* usage & query
14771
- const Publication = (props) => {
14772
- const { cache, pub, year } = props
14773
-
14774
- const targeting = {
14775
- content_placement: [`/journals/${pub.identifier.current}`],
14776
- document_url: [`/journals/${pub.identifier.current}`],
14777
- }
14778
-
14779
- return (
14780
- <Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
14781
- <PublicationLanding publication={pub} year={year} href={'journals'} />
14782
- </Shell>
14783
- )
14784
- }
14785
-
14786
- Publication.getInitialProps = async (ctx) => {
14787
- const { query } = ctx
14788
- const {
14789
- query: { year },
14790
- } = ctx
14791
- const pub = await client.fetch(
14792
- `*[_type == 'publication'
14793
- && identifier.current == $publication][0] {
14794
- ...,
14795
- 'issues': *[_type == 'publication'
14796
- && is_visible
14797
- && references(^._id)] | order(year desc, month desc)
14798
- }`,
14799
- query
14800
- )
14801
- const builder = imageUrlBuilder(client)
14802
- const urlFor = (source) => {
14803
- return builder.image(source)
14804
- }
14805
- pub.issues.map((issue) => {
14806
- issue.thumbnail = urlFor(issue.thumbnail).url()
14807
- })
14808
- return { pub, year }
14809
- }
14810
-
14811
- export default Publication
14758
+ /* usage & query
14759
+ const Publication = (props) => {
14760
+ const { cache, pub, year } = props
14761
+
14762
+ const targeting = {
14763
+ content_placement: [`/journals/${pub.identifier.current}`],
14764
+ document_url: [`/journals/${pub.identifier.current}`],
14765
+ }
14766
+
14767
+ return (
14768
+ <Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
14769
+ <PublicationLanding publication={pub} year={year} href={'journals'} />
14770
+ </Shell>
14771
+ )
14772
+ }
14773
+
14774
+ Publication.getInitialProps = async (ctx) => {
14775
+ const { query } = ctx
14776
+ const {
14777
+ query: { year },
14778
+ } = ctx
14779
+ const pub = await client.fetch(getQuery('publication'), query)
14780
+ const builder = imageUrlBuilder(client)
14781
+ const urlFor = (source) => {
14782
+ return builder.image(source)
14783
+ }
14784
+ pub.issues.map((issue) => {
14785
+ issue.thumbnail = urlFor(issue.thumbnail).url()
14786
+ })
14787
+ return { pub, year }
14788
+ }
14789
+
14790
+ export default Publication
14812
14791
  */
14813
14792
 
14814
14793
  var PublicationLanding = function PublicationLanding(props) {
@@ -14898,7 +14877,12 @@ var PublicationLanding = function PublicationLanding(props) {
14898
14877
  null,
14899
14878
  issue.name
14900
14879
  ),
14901
- React__default.createElement(
14880
+ publication.displayLabel && React__default.createElement(
14881
+ 'p',
14882
+ { className: 'badge badge-primary' },
14883
+ publication.displayLabel
14884
+ ),
14885
+ issue.volume && issue.number && React__default.createElement(
14902
14886
  'p',
14903
14887
  null,
14904
14888
  'Volume: ',
@@ -15775,34 +15759,34 @@ var GridHero = function GridHero(props) {
15775
15759
  );
15776
15760
  };
15777
15761
 
15778
- /*
15779
- Sample query
15780
- let references = ''
15781
- if(article.taxonomyMapping.length > 0){
15782
- article.taxonomyMapping.forEach((ref, index) => {
15783
- references = references + `references('${ref._ref}') `
15784
- if(index+1 !== article.taxonomyMapping.length){
15785
- references = references + ` && `
15786
- }
15787
- })
15788
- }
15789
-
15790
- 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] {
15791
- ...,
15792
- title,
15793
- summary,
15794
- thumbnail,
15795
- url,
15796
- published,
15797
- authorMapping[]->,
15798
- contentCategory->
15799
- }`
15800
- const relatedArticles = await client.fetch(relatedArticlesQuery)
15801
-
15802
- Sample usage
15803
- <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
15804
-
15805
-
15762
+ /*
15763
+ Sample query
15764
+ let references = ''
15765
+ if(article.taxonomyMapping.length > 0){
15766
+ article.taxonomyMapping.forEach((ref, index) => {
15767
+ references = references + `references('${ref._ref}') `
15768
+ if(index+1 !== article.taxonomyMapping.length){
15769
+ references = references + ` && `
15770
+ }
15771
+ })
15772
+ }
15773
+
15774
+ 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] {
15775
+ ...,
15776
+ title,
15777
+ summary,
15778
+ thumbnail,
15779
+ url,
15780
+ published,
15781
+ authorMapping[]->,
15782
+ contentCategory->
15783
+ }`
15784
+ const relatedArticles = await client.fetch(relatedArticlesQuery)
15785
+
15786
+ Sample usage
15787
+ <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
15788
+
15789
+
15806
15790
  */
15807
15791
  var RelatedContent = function RelatedContent(props) {
15808
15792
  var client = props.client,
@@ -15869,21 +15853,21 @@ var RelatedContent = function RelatedContent(props) {
15869
15853
  );
15870
15854
  };
15871
15855
 
15872
- /*
15873
- Example usage - targetedonc.com/latest-conference
15874
- 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] {
15875
- ...,
15876
- title,
15877
- summary,
15878
- thumbnail,
15879
- url,
15880
- published,
15881
- documentGroup->,
15882
- contentCategory->,
15883
- 'pageNumber': ${currentPage}
15884
- }`
15885
-
15886
- const posts = await client.fetch(query, params)
15856
+ /*
15857
+ Example usage - targetedonc.com/latest-conference
15858
+ 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] {
15859
+ ...,
15860
+ title,
15861
+ summary,
15862
+ thumbnail,
15863
+ url,
15864
+ published,
15865
+ documentGroup->,
15866
+ contentCategory->,
15867
+ 'pageNumber': ${currentPage}
15868
+ }`
15869
+
15870
+ const posts = await client.fetch(query, params)
15887
15871
  */
15888
15872
 
15889
15873
  var ConferenceArticleCard = function ConferenceArticleCard(props) {
@@ -17300,7 +17284,7 @@ var Article = function Article(props) {
17300
17284
  React__default.createElement('br', null),
17301
17285
  React__default.createElement('br', null)
17302
17286
  ),
17303
- main_39 && props.article.Ads.map(function (ad, index) {
17287
+ main_36 && props.article.Ads.map(function (ad, index) {
17304
17288
  if (index === 0) {
17305
17289
  return React__default.createElement(
17306
17290
  'div',
@@ -17325,7 +17309,7 @@ var Article = function Article(props) {
17325
17309
  renderIsiContent(props.article)
17326
17310
  )
17327
17311
  ),
17328
- main_39 && props.article.Ads.map(function (ad, index) {
17312
+ main_36 && props.article.Ads.map(function (ad, index) {
17329
17313
  if (index > 0) {
17330
17314
  return React__default.createElement(
17331
17315
  'div',
@@ -17442,7 +17426,7 @@ var ArticleQueue = function ArticleQueue(props) {
17442
17426
  setQueueData = _useState4[1];
17443
17427
 
17444
17428
  var refreshAD = function refreshAD(path) {
17445
- if (!main_39) {
17429
+ if (!main_36) {
17446
17430
  var activeArticle = queueData.find(function (item) {
17447
17431
  return item.url.current === path;
17448
17432
  });
@@ -17586,27 +17570,27 @@ var ArticleQueue = function ArticleQueue(props) {
17586
17570
  };
17587
17571
 
17588
17572
  var KMTracker = function KMTracker(props) {
17589
- var id = props.id;
17573
+ var id = props.id;
17590
17574
 
17591
- if (document && id) {
17575
+ if (document && id) {
17592
17576
  (function () {
17593
- var ecnJquery = document.createElement('script');
17577
+ var ecnJquery = document.createElement('script');
17594
17578
 
17595
- ecnJquery.type = 'text/javascript';
17596
- ecnJquery.async = true;
17597
- ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
17579
+ ecnJquery.type = 'text/javascript';
17580
+ ecnJquery.async = true;
17581
+ ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
17598
17582
 
17599
- var ecnScript = document.createElement('script');
17583
+ var ecnScript = document.createElement('script');
17600
17584
 
17601
- ecnScript.type = 'text/javascript';
17602
- ecnScript.async = true;
17603
- ecnScript.id = 'km-tracker';
17604
- ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
17585
+ ecnScript.type = 'text/javascript';
17586
+ ecnScript.async = true;
17587
+ ecnScript.id = 'km-tracker';
17588
+ ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
17605
17589
 
17606
- document.head.appendChild(ecnJquery);
17607
- document.head.appendChild(ecnScript);
17608
- })();
17609
- }
17590
+ document.head.appendChild(ecnJquery);
17591
+ document.head.appendChild(ecnScript);
17592
+ })();
17593
+ }
17610
17594
  };
17611
17595
 
17612
17596
  var getSeriesDetail = function getSeriesDetail(article, currentSeries) {
@@ -19668,6 +19652,9 @@ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
19668
19652
  if (value != null) {
19669
19653
  if ($gOPD && (i + 1) >= parts.length) {
19670
19654
  var desc = $gOPD(value, parts[i]);
19655
+ if (!allowMissing && !(parts[i] in value)) {
19656
+ throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
19657
+ }
19671
19658
  value = desc ? (desc.get || desc.value) : value[parts[i]];
19672
19659
  } else {
19673
19660
  value = value[parts[i]];
@@ -19700,7 +19687,16 @@ var callBound = function callBoundIntrinsic(name, allowMissing) {
19700
19687
  return intrinsic;
19701
19688
  };
19702
19689
 
19703
- var $defineProperty = GetIntrinsic('%Object.defineProperty%');
19690
+ var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
19691
+
19692
+ if ($defineProperty) {
19693
+ try {
19694
+ $defineProperty({}, 'a', { value: 1 });
19695
+ } catch (e) {
19696
+ // IE 8 has a broken defineProperty
19697
+ $defineProperty = null;
19698
+ }
19699
+ }
19704
19700
 
19705
19701
 
19706
19702
 
@@ -19843,6 +19839,224 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
19843
19839
  return obj;
19844
19840
  };
19845
19841
 
19842
+ var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
19843
+ if ($gOPD$1) {
19844
+ try {
19845
+ $gOPD$1([], 'length');
19846
+ } catch (e) {
19847
+ // IE 8 has a broken gOPD
19848
+ $gOPD$1 = null;
19849
+ }
19850
+ }
19851
+
19852
+ var getOwnPropertyDescriptor = $gOPD$1;
19853
+
19854
+ var $Array = GetIntrinsic('%Array%');
19855
+
19856
+ // eslint-disable-next-line global-require
19857
+ var toStr$4 = !$Array.isArray && callBound('Object.prototype.toString');
19858
+
19859
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-isarray
19860
+
19861
+ var IsArray = $Array.isArray || function IsArray(argument) {
19862
+ return toStr$4(argument) === '[object Array]';
19863
+ };
19864
+
19865
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
19866
+
19867
+ var IsPropertyKey = function IsPropertyKey(argument) {
19868
+ return typeof argument === 'string' || typeof argument === 'symbol';
19869
+ };
19870
+
19871
+ var regexExec = RegExp.prototype.exec;
19872
+ var gOPD = Object.getOwnPropertyDescriptor;
19873
+
19874
+ var tryRegexExecCall = function tryRegexExec(value) {
19875
+ try {
19876
+ var lastIndex = value.lastIndex;
19877
+ value.lastIndex = 0; // eslint-disable-line no-param-reassign
19878
+
19879
+ regexExec.call(value);
19880
+ return true;
19881
+ } catch (e) {
19882
+ return false;
19883
+ } finally {
19884
+ value.lastIndex = lastIndex; // eslint-disable-line no-param-reassign
19885
+ }
19886
+ };
19887
+ var toStr$5 = Object.prototype.toString;
19888
+ var regexClass = '[object RegExp]';
19889
+ var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
19890
+
19891
+ var isRegex = function isRegex(value) {
19892
+ if (!value || typeof value !== 'object') {
19893
+ return false;
19894
+ }
19895
+ if (!hasToStringTag) {
19896
+ return toStr$5.call(value) === regexClass;
19897
+ }
19898
+
19899
+ var descriptor = gOPD(value, 'lastIndex');
19900
+ var hasLastIndexDataProperty = descriptor && src$1(descriptor, 'value');
19901
+ if (!hasLastIndexDataProperty) {
19902
+ return false;
19903
+ }
19904
+
19905
+ return tryRegexExecCall(value);
19906
+ };
19907
+
19908
+ // http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
19909
+
19910
+ var ToBoolean = function ToBoolean(value) { return !!value; };
19911
+
19912
+ var $match = GetIntrinsic('%Symbol.match%', true);
19913
+
19914
+
19915
+
19916
+
19917
+
19918
+ // https://ecma-international.org/ecma-262/6.0/#sec-isregexp
19919
+
19920
+ var IsRegExp = function IsRegExp(argument) {
19921
+ if (!argument || typeof argument !== 'object') {
19922
+ return false;
19923
+ }
19924
+ if ($match) {
19925
+ var isRegExp = argument[$match];
19926
+ if (typeof isRegExp !== 'undefined') {
19927
+ return ToBoolean(isRegExp);
19928
+ }
19929
+ }
19930
+ return isRegex(argument);
19931
+ };
19932
+
19933
+ var fnToStr = Function.prototype.toString;
19934
+
19935
+ var constructorRegex = /^\s*class\b/;
19936
+ var isES6ClassFn = function isES6ClassFunction(value) {
19937
+ try {
19938
+ var fnStr = fnToStr.call(value);
19939
+ return constructorRegex.test(fnStr);
19940
+ } catch (e) {
19941
+ return false; // not a function
19942
+ }
19943
+ };
19944
+
19945
+ var tryFunctionObject = function tryFunctionToStr(value) {
19946
+ try {
19947
+ if (isES6ClassFn(value)) { return false; }
19948
+ fnToStr.call(value);
19949
+ return true;
19950
+ } catch (e) {
19951
+ return false;
19952
+ }
19953
+ };
19954
+ var toStr$6 = Object.prototype.toString;
19955
+ var fnClass = '[object Function]';
19956
+ var genClass = '[object GeneratorFunction]';
19957
+ var hasToStringTag$1 = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
19958
+
19959
+ var isCallable = function isCallable(value) {
19960
+ if (!value) { return false; }
19961
+ if (typeof value !== 'function' && typeof value !== 'object') { return false; }
19962
+ if (typeof value === 'function' && !value.prototype) { return true; }
19963
+ if (hasToStringTag$1) { return tryFunctionObject(value); }
19964
+ if (isES6ClassFn(value)) { return false; }
19965
+ var strClass = toStr$6.call(value);
19966
+ return strClass === fnClass || strClass === genClass;
19967
+ };
19968
+
19969
+ // http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
19970
+
19971
+ var IsCallable = isCallable;
19972
+
19973
+ var $TypeError$2 = GetIntrinsic('%TypeError%');
19974
+
19975
+
19976
+
19977
+
19978
+
19979
+ // https://ecma-international.org/ecma-262/5.1/#sec-8.10.5
19980
+
19981
+ var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
19982
+ if (Type$1(Obj) !== 'Object') {
19983
+ throw new $TypeError$2('ToPropertyDescriptor requires an object');
19984
+ }
19985
+
19986
+ var desc = {};
19987
+ if (src$1(Obj, 'enumerable')) {
19988
+ desc['[[Enumerable]]'] = ToBoolean(Obj.enumerable);
19989
+ }
19990
+ if (src$1(Obj, 'configurable')) {
19991
+ desc['[[Configurable]]'] = ToBoolean(Obj.configurable);
19992
+ }
19993
+ if (src$1(Obj, 'value')) {
19994
+ desc['[[Value]]'] = Obj.value;
19995
+ }
19996
+ if (src$1(Obj, 'writable')) {
19997
+ desc['[[Writable]]'] = ToBoolean(Obj.writable);
19998
+ }
19999
+ if (src$1(Obj, 'get')) {
20000
+ var getter = Obj.get;
20001
+ if (typeof getter !== 'undefined' && !IsCallable(getter)) {
20002
+ throw new TypeError('getter must be a function');
20003
+ }
20004
+ desc['[[Get]]'] = getter;
20005
+ }
20006
+ if (src$1(Obj, 'set')) {
20007
+ var setter = Obj.set;
20008
+ if (typeof setter !== 'undefined' && !IsCallable(setter)) {
20009
+ throw new $TypeError$2('setter must be a function');
20010
+ }
20011
+ desc['[[Set]]'] = setter;
20012
+ }
20013
+
20014
+ if ((src$1(desc, '[[Get]]') || src$1(desc, '[[Set]]')) && (src$1(desc, '[[Value]]') || src$1(desc, '[[Writable]]'))) {
20015
+ throw new $TypeError$2('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute');
20016
+ }
20017
+ return desc;
20018
+ };
20019
+
20020
+ var $TypeError$3 = GetIntrinsic('%TypeError%');
20021
+
20022
+
20023
+
20024
+ var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
20025
+
20026
+
20027
+
20028
+
20029
+
20030
+
20031
+
20032
+
20033
+
20034
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
20035
+
20036
+ var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
20037
+ if (Type$1(O) !== 'Object') {
20038
+ throw new $TypeError$3('Assertion failed: O must be an Object');
20039
+ }
20040
+ if (!IsPropertyKey(P)) {
20041
+ throw new $TypeError$3('Assertion failed: P must be a Property Key');
20042
+ }
20043
+ if (!src$1(O, P)) {
20044
+ return void 0;
20045
+ }
20046
+ if (!getOwnPropertyDescriptor) {
20047
+ // ES3 / IE 8 fallback
20048
+ var arrayLength = IsArray(O) && P === 'length';
20049
+ var regexLastIndex = IsRegExp(O) && P === 'lastIndex';
20050
+ return {
20051
+ '[[Configurable]]': !(arrayLength || regexLastIndex),
20052
+ '[[Enumerable]]': $isEnumerable$1(O, P),
20053
+ '[[Value]]': O[P],
20054
+ '[[Writable]]': true
20055
+ };
20056
+ }
20057
+ return ToPropertyDescriptor(getOwnPropertyDescriptor(O, P));
20058
+ };
20059
+
19846
20060
  // https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
19847
20061
 
19848
20062
  var IsDataDescriptor = function IsDataDescriptor(Desc) {
@@ -19876,16 +20090,10 @@ var IsExtensible = $preventExtensions
19876
20090
  ? function IsExtensible(obj) {
19877
20091
  return !isPrimitive$1(obj) && $isExtensible(obj);
19878
20092
  }
19879
- : function IsExtensible(obj) { // eslint-disable-line no-unused-vars
19880
- return true;
20093
+ : function IsExtensible(obj) {
20094
+ return !isPrimitive$1(obj);
19881
20095
  };
19882
20096
 
19883
- // https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
19884
-
19885
- var IsPropertyKey = function IsPropertyKey(argument) {
19886
- return typeof argument === 'string' || typeof argument === 'symbol';
19887
- };
19888
-
19889
20097
  var _isNaN = Number.isNaN || function isNaN(a) {
19890
20098
  return a !== a;
19891
20099
  };
@@ -19900,8 +20108,8 @@ var SameValue = function SameValue(x, y) {
19900
20108
  return _isNaN(x) && _isNaN(y);
19901
20109
  };
19902
20110
 
19903
- var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
19904
- var $TypeError$2 = GetIntrinsic('%TypeError%');
20111
+ var $TypeError$4 = GetIntrinsic('%TypeError%');
20112
+
19905
20113
 
19906
20114
 
19907
20115
 
@@ -19916,12 +20124,12 @@ var $TypeError$2 = GetIntrinsic('%TypeError%');
19916
20124
 
19917
20125
  var CreateDataProperty = function CreateDataProperty(O, P, V) {
19918
20126
  if (Type$1(O) !== 'Object') {
19919
- throw new $TypeError$2('Assertion failed: Type(O) is not Object');
20127
+ throw new $TypeError$4('Assertion failed: Type(O) is not Object');
19920
20128
  }
19921
20129
  if (!IsPropertyKey(P)) {
19922
- throw new $TypeError$2('Assertion failed: IsPropertyKey(P) is not true');
20130
+ throw new $TypeError$4('Assertion failed: IsPropertyKey(P) is not true');
19923
20131
  }
19924
- var oldDesc = $gOPD$1(O, P);
20132
+ var oldDesc = OrdinaryGetOwnProperty(O, P);
19925
20133
  var extensible = oldDesc || IsExtensible(O);
19926
20134
  var immutable = oldDesc && (!oldDesc.writable || !oldDesc.configurable);
19927
20135
  if (immutable || !extensible) {
@@ -19942,53 +20150,13 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
19942
20150
  );
19943
20151
  };
19944
20152
 
19945
- var fnToStr = Function.prototype.toString;
19946
-
19947
- var constructorRegex = /^\s*class\b/;
19948
- var isES6ClassFn = function isES6ClassFunction(value) {
19949
- try {
19950
- var fnStr = fnToStr.call(value);
19951
- return constructorRegex.test(fnStr);
19952
- } catch (e) {
19953
- return false; // not a function
19954
- }
19955
- };
19956
-
19957
- var tryFunctionObject = function tryFunctionToStr(value) {
19958
- try {
19959
- if (isES6ClassFn(value)) { return false; }
19960
- fnToStr.call(value);
19961
- return true;
19962
- } catch (e) {
19963
- return false;
19964
- }
19965
- };
19966
- var toStr$4 = Object.prototype.toString;
19967
- var fnClass = '[object Function]';
19968
- var genClass = '[object GeneratorFunction]';
19969
- var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
19970
-
19971
- var isCallable = function isCallable(value) {
19972
- if (!value) { return false; }
19973
- if (typeof value !== 'function' && typeof value !== 'object') { return false; }
19974
- if (typeof value === 'function' && !value.prototype) { return true; }
19975
- if (hasToStringTag) { return tryFunctionObject(value); }
19976
- if (isES6ClassFn(value)) { return false; }
19977
- var strClass = toStr$4.call(value);
19978
- return strClass === fnClass || strClass === genClass;
19979
- };
19980
-
19981
- // http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
19982
-
19983
- var IsCallable = isCallable;
19984
-
19985
- var $TypeError$3 = GetIntrinsic('%TypeError%');
20153
+ var $TypeError$5 = GetIntrinsic('%TypeError%');
19986
20154
 
19987
20155
  // http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
19988
20156
 
19989
20157
  var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
19990
20158
  if (value == null) {
19991
- throw new $TypeError$3(optMessage || ('Cannot call method on ' + value));
20159
+ throw new $TypeError$5(optMessage || ('Cannot call method on ' + value));
19992
20160
  }
19993
20161
  return value;
19994
20162
  };
@@ -20059,241 +20227,6 @@ defineProperties_1(implementation$2, {
20059
20227
 
20060
20228
  var object_getownpropertydescriptors = implementation$2;
20061
20229
 
20062
- /* globals
20063
- Atomics,
20064
- SharedArrayBuffer,
20065
- */
20066
-
20067
- var undefined$2;
20068
-
20069
- var $TypeError$4 = TypeError;
20070
-
20071
- var $gOPD$3 = Object.getOwnPropertyDescriptor;
20072
- if ($gOPD$3) {
20073
- try {
20074
- $gOPD$3({}, '');
20075
- } catch (e) {
20076
- $gOPD$3 = null; // this is IE 8, which has a broken gOPD
20077
- }
20078
- }
20079
-
20080
- var throwTypeError$1 = function () { throw new $TypeError$4(); };
20081
- var ThrowTypeError$1 = $gOPD$3
20082
- ? (function () {
20083
- try {
20084
- // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
20085
- arguments.callee; // IE 8 does not throw here
20086
- return throwTypeError$1;
20087
- } catch (calleeThrows) {
20088
- try {
20089
- // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
20090
- return $gOPD$3(arguments, 'callee').get;
20091
- } catch (gOPDthrows) {
20092
- return throwTypeError$1;
20093
- }
20094
- }
20095
- }())
20096
- : throwTypeError$1;
20097
-
20098
- var hasSymbols$3 = hasSymbols$1();
20099
-
20100
- var getProto$1 = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
20101
- var generatorFunction$1 = undefined$2;
20102
- var asyncFunction$1 = undefined$2;
20103
- var asyncGenFunction$1 = undefined$2;
20104
-
20105
- var TypedArray$1 = typeof Uint8Array === 'undefined' ? undefined$2 : getProto$1(Uint8Array);
20106
-
20107
- var INTRINSICS$1 = {
20108
- '%Array%': Array,
20109
- '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer,
20110
- '%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer.prototype,
20111
- '%ArrayIteratorPrototype%': hasSymbols$3 ? getProto$1([][Symbol.iterator]()) : undefined$2,
20112
- '%ArrayPrototype%': Array.prototype,
20113
- '%ArrayProto_entries%': Array.prototype.entries,
20114
- '%ArrayProto_forEach%': Array.prototype.forEach,
20115
- '%ArrayProto_keys%': Array.prototype.keys,
20116
- '%ArrayProto_values%': Array.prototype.values,
20117
- '%AsyncFromSyncIteratorPrototype%': undefined$2,
20118
- '%AsyncFunction%': asyncFunction$1,
20119
- '%AsyncFunctionPrototype%': undefined$2,
20120
- '%AsyncGenerator%': undefined$2,
20121
- '%AsyncGeneratorFunction%': asyncGenFunction$1,
20122
- '%AsyncGeneratorPrototype%': undefined$2,
20123
- '%AsyncIteratorPrototype%': undefined$2,
20124
- '%Atomics%': typeof Atomics === 'undefined' ? undefined$2 : Atomics,
20125
- '%Boolean%': Boolean,
20126
- '%BooleanPrototype%': Boolean.prototype,
20127
- '%DataView%': typeof DataView === 'undefined' ? undefined$2 : DataView,
20128
- '%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$2 : DataView.prototype,
20129
- '%Date%': Date,
20130
- '%DatePrototype%': Date.prototype,
20131
- '%decodeURI%': decodeURI,
20132
- '%decodeURIComponent%': decodeURIComponent,
20133
- '%encodeURI%': encodeURI,
20134
- '%encodeURIComponent%': encodeURIComponent,
20135
- '%Error%': Error,
20136
- '%ErrorPrototype%': Error.prototype,
20137
- '%eval%': eval, // eslint-disable-line no-eval
20138
- '%EvalError%': EvalError,
20139
- '%EvalErrorPrototype%': EvalError.prototype,
20140
- '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array,
20141
- '%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array.prototype,
20142
- '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array,
20143
- '%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array.prototype,
20144
- '%Function%': Function,
20145
- '%FunctionPrototype%': Function.prototype,
20146
- '%Generator%': undefined$2,
20147
- '%GeneratorFunction%': generatorFunction$1,
20148
- '%GeneratorPrototype%': undefined$2,
20149
- '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array,
20150
- '%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array.prototype,
20151
- '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$2 : Int16Array,
20152
- '%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$2 : Int8Array.prototype,
20153
- '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array,
20154
- '%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array.prototype,
20155
- '%isFinite%': isFinite,
20156
- '%isNaN%': isNaN,
20157
- '%IteratorPrototype%': hasSymbols$3 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$2,
20158
- '%JSON%': typeof JSON === 'object' ? JSON : undefined$2,
20159
- '%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$2,
20160
- '%Map%': typeof Map === 'undefined' ? undefined$2 : Map,
20161
- '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Map()[Symbol.iterator]()),
20162
- '%MapPrototype%': typeof Map === 'undefined' ? undefined$2 : Map.prototype,
20163
- '%Math%': Math,
20164
- '%Number%': Number,
20165
- '%NumberPrototype%': Number.prototype,
20166
- '%Object%': Object,
20167
- '%ObjectPrototype%': Object.prototype,
20168
- '%ObjProto_toString%': Object.prototype.toString,
20169
- '%ObjProto_valueOf%': Object.prototype.valueOf,
20170
- '%parseFloat%': parseFloat,
20171
- '%parseInt%': parseInt,
20172
- '%Promise%': typeof Promise === 'undefined' ? undefined$2 : Promise,
20173
- '%PromisePrototype%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype,
20174
- '%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype.then,
20175
- '%Promise_all%': typeof Promise === 'undefined' ? undefined$2 : Promise.all,
20176
- '%Promise_reject%': typeof Promise === 'undefined' ? undefined$2 : Promise.reject,
20177
- '%Promise_resolve%': typeof Promise === 'undefined' ? undefined$2 : Promise.resolve,
20178
- '%Proxy%': typeof Proxy === 'undefined' ? undefined$2 : Proxy,
20179
- '%RangeError%': RangeError,
20180
- '%RangeErrorPrototype%': RangeError.prototype,
20181
- '%ReferenceError%': ReferenceError,
20182
- '%ReferenceErrorPrototype%': ReferenceError.prototype,
20183
- '%Reflect%': typeof Reflect === 'undefined' ? undefined$2 : Reflect,
20184
- '%RegExp%': RegExp,
20185
- '%RegExpPrototype%': RegExp.prototype,
20186
- '%Set%': typeof Set === 'undefined' ? undefined$2 : Set,
20187
- '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Set()[Symbol.iterator]()),
20188
- '%SetPrototype%': typeof Set === 'undefined' ? undefined$2 : Set.prototype,
20189
- '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer,
20190
- '%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer.prototype,
20191
- '%String%': String,
20192
- '%StringIteratorPrototype%': hasSymbols$3 ? getProto$1(''[Symbol.iterator]()) : undefined$2,
20193
- '%StringPrototype%': String.prototype,
20194
- '%Symbol%': hasSymbols$3 ? Symbol : undefined$2,
20195
- '%SymbolPrototype%': hasSymbols$3 ? Symbol.prototype : undefined$2,
20196
- '%SyntaxError%': SyntaxError,
20197
- '%SyntaxErrorPrototype%': SyntaxError.prototype,
20198
- '%ThrowTypeError%': ThrowTypeError$1,
20199
- '%TypedArray%': TypedArray$1,
20200
- '%TypedArrayPrototype%': TypedArray$1 ? TypedArray$1.prototype : undefined$2,
20201
- '%TypeError%': $TypeError$4,
20202
- '%TypeErrorPrototype%': $TypeError$4.prototype,
20203
- '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array,
20204
- '%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array.prototype,
20205
- '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray,
20206
- '%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray.prototype,
20207
- '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array,
20208
- '%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array.prototype,
20209
- '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array,
20210
- '%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array.prototype,
20211
- '%URIError%': URIError,
20212
- '%URIErrorPrototype%': URIError.prototype,
20213
- '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap,
20214
- '%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap.prototype,
20215
- '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet,
20216
- '%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet.prototype
20217
- };
20218
-
20219
-
20220
- var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
20221
-
20222
- /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
20223
- var rePropName$1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
20224
- var reEscapeChar$1 = /\\(\\)?/g; /** Used to match backslashes in property paths. */
20225
- var stringToPath$1 = function stringToPath(string) {
20226
- var result = [];
20227
- $replace$1(string, rePropName$1, function (match, number, quote, subString) {
20228
- result[result.length] = quote ? $replace$1(subString, reEscapeChar$1, '$1') : (number || match);
20229
- });
20230
- return result;
20231
- };
20232
- /* end adaptation */
20233
-
20234
- var getBaseIntrinsic$1 = function getBaseIntrinsic(name, allowMissing) {
20235
- if (!(name in INTRINSICS$1)) {
20236
- throw new SyntaxError('intrinsic ' + name + ' does not exist!');
20237
- }
20238
-
20239
- // istanbul ignore if // hopefully this is impossible to test :-)
20240
- if (typeof INTRINSICS$1[name] === 'undefined' && !allowMissing) {
20241
- throw new $TypeError$4('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
20242
- }
20243
-
20244
- return INTRINSICS$1[name];
20245
- };
20246
-
20247
- var GetIntrinsic$1 = function GetIntrinsic(name, allowMissing) {
20248
- if (typeof name !== 'string' || name.length === 0) {
20249
- throw new TypeError('intrinsic name must be a non-empty string');
20250
- }
20251
- if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
20252
- throw new TypeError('"allowMissing" argument must be a boolean');
20253
- }
20254
-
20255
- var parts = stringToPath$1(name);
20256
-
20257
- var value = getBaseIntrinsic$1('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
20258
- for (var i = 1; i < parts.length; i += 1) {
20259
- if (value != null) {
20260
- if ($gOPD$3 && (i + 1) >= parts.length) {
20261
- var desc = $gOPD$3(value, parts[i]);
20262
- if (!allowMissing && !(parts[i] in value)) {
20263
- throw new $TypeError$4('base intrinsic for ' + name + ' exists, but the property is not available.');
20264
- }
20265
- value = desc ? (desc.get || desc.value) : value[parts[i]];
20266
- } else {
20267
- value = value[parts[i]];
20268
- }
20269
- }
20270
- }
20271
- return value;
20272
- };
20273
-
20274
- var $apply$1 = GetIntrinsic$1('%Function.prototype.apply%');
20275
- var $call$1 = GetIntrinsic$1('%Function.prototype.call%');
20276
- var $reflectApply = GetIntrinsic$1('%Reflect.apply%', true) || functionBind.call($call$1, $apply$1);
20277
-
20278
- var callBind$1 = function callBind() {
20279
- return $reflectApply(functionBind, $call$1, arguments);
20280
- };
20281
-
20282
- var apply$1 = function applyBind() {
20283
- return $reflectApply(functionBind, $apply$1, arguments);
20284
- };
20285
- callBind$1.apply = apply$1;
20286
-
20287
- var $indexOf$1 = callBind$1(GetIntrinsic$1('String.prototype.indexOf'));
20288
-
20289
- var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
20290
- var intrinsic = GetIntrinsic$1(name, !!allowMissing);
20291
- if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.')) {
20292
- return callBind$1(intrinsic);
20293
- }
20294
- return intrinsic;
20295
- };
20296
-
20297
20230
  var isES5$1 = typeof Object.defineProperty === 'function'
20298
20231
  && typeof Object.defineProperties === 'function';
20299
20232
 
@@ -20311,14 +20244,14 @@ if (typeof Promise !== 'function') {
20311
20244
 
20312
20245
 
20313
20246
 
20314
- var $slice = callBound$1('Array.prototype.slice');
20315
- var $concat$1 = callBound$1('Array.prototype.concat');
20316
- var $forEach = callBound$1('Array.prototype.forEach');
20247
+ var $slice = callBound('Array.prototype.slice');
20248
+ var $concat$1 = callBound('Array.prototype.concat');
20249
+ var $forEach = callBound('Array.prototype.forEach');
20317
20250
 
20318
- var hasSymbols$4 = hasSymbols$1();
20251
+ var hasSymbols$3 = hasSymbols$1();
20319
20252
 
20320
- var kCustomPromisifiedSymbol = hasSymbols$4 ? Symbol('util.promisify.custom') : null;
20321
- var kCustomPromisifyArgsSymbol = hasSymbols$4 ? Symbol('customPromisifyArgs') : null;
20253
+ var kCustomPromisifiedSymbol = hasSymbols$3 ? Symbol('util.promisify.custom') : null;
20254
+ var kCustomPromisifyArgsSymbol = hasSymbols$3 ? Symbol('customPromisifyArgs') : null;
20322
20255
 
20323
20256
  var implementation$3 = function promisify(orig) {
20324
20257
  if (typeof orig !== 'function') {
@@ -20328,7 +20261,7 @@ var implementation$3 = function promisify(orig) {
20328
20261
  throw error;
20329
20262
  }
20330
20263
 
20331
- if (hasSymbols$4 && orig[kCustomPromisifiedSymbol]) {
20264
+ if (hasSymbols$3 && orig[kCustomPromisifiedSymbol]) {
20332
20265
  var customFunction = orig[kCustomPromisifiedSymbol];
20333
20266
  if (typeof customFunction !== 'function') {
20334
20267
  throw new TypeError('The [util.promisify.custom] property must be a function');
@@ -21627,18 +21560,18 @@ var renderAuthor$1 = function renderAuthor(authorName, authorURL, index, length)
21627
21560
  };
21628
21561
 
21629
21562
  var getContentPlacementUrl = function getContentPlacementUrl(cp) {
21630
- var cp_url = '';
21631
- if (cp.ancestor && typeof cp.ancestor == 'string') {
21632
- cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
21633
- }
21563
+ var cp_url = '';
21564
+ if (cp.ancestor && typeof cp.ancestor == 'string') {
21565
+ cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
21566
+ }
21634
21567
 
21635
- if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
21636
- cp_url += (cp_url === '' ? '' : '/') + cp.parent;
21637
- }
21568
+ if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
21569
+ cp_url += (cp_url === '' ? '' : '/') + cp.parent;
21570
+ }
21638
21571
 
21639
- cp_url += (cp_url === '' ? '' : '/') + cp.path;
21572
+ cp_url += (cp_url === '' ? '' : '/') + cp.path;
21640
21573
 
21641
- return cp_url;
21574
+ return cp_url;
21642
21575
  };
21643
21576
 
21644
21577
  var getArticleSummary$1 = function getArticleSummary(article) {
@@ -21665,7 +21598,7 @@ var getArticleSummary$1 = function getArticleSummary(article) {
21665
21598
  };
21666
21599
 
21667
21600
  function urlFor$5(client, source) {
21668
- return imageUrlBuilder(client).image(source);
21601
+ return imageUrlBuilder(client).image(source);
21669
21602
  }
21670
21603
 
21671
21604
  var getDocumentGroupUrl = function getDocumentGroupUrl(docGroup) {
@@ -21734,9 +21667,9 @@ var DocumentGroup = function DocumentGroup(_ref) {
21734
21667
  style: { display: 'flex', flexDirection: 'column', padding: '0 1rem', justifyContent: thumbnailUrl ? 'center' : 'flex-start', alignItems: 'center' } },
21735
21668
  thumbnailUrl && React__default.createElement('img', { style: { maxWidth: '220px', maxHeight: '100px', marginTop: '1rem' }, src: thumbnailUrl, alt: name }),
21736
21669
  React__default.createElement('p', {
21737
- style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main_39 ? 'left' : 'right', marginTop: '.25rem' },
21670
+ style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main_36 ? 'left' : 'right', marginTop: '.25rem' },
21738
21671
  dangerouslySetInnerHTML: { __html: name } }),
21739
- main_39 && !thumbnailUrl && React__default.createElement(
21672
+ main_36 && !thumbnailUrl && React__default.createElement(
21740
21673
  'style',
21741
21674
  { jsx: 'true' },
21742
21675
  '\n a.doc-group {\n display: block !important;\n padding: 0!important;\n }\n '
@@ -22302,7 +22235,7 @@ var Article$1 = function Article(props) {
22302
22235
  React__default.createElement(
22303
22236
  'div',
22304
22237
  { className: 'ad-box', style: { textAlign: 'center' } },
22305
- main_39 && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
22238
+ main_36 && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
22306
22239
  if (index === 0) {
22307
22240
  return React__default.createElement(
22308
22241
  'div',
@@ -22357,7 +22290,7 @@ var Article$1 = function Article(props) {
22357
22290
  renderIsiContent(props.article)
22358
22291
  )
22359
22292
  ),
22360
- main_39 && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
22293
+ main_36 && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
22361
22294
  if (index > 0) {
22362
22295
  return React__default.createElement(
22363
22296
  'div',
@@ -22408,7 +22341,7 @@ exports.default = function (obj, key, value) {
22408
22341
  };
22409
22342
  });
22410
22343
 
22411
- var _defineProperty$1 = unwrapExports(defineProperty$1);
22344
+ var _defineProperty = unwrapExports(defineProperty$1);
22412
22345
 
22413
22346
  var getTargeting = function getTargeting(props) {
22414
22347
  var article = props.article,
@@ -22523,7 +22456,7 @@ var ArticleQueue$1 = function ArticleQueue(props) {
22523
22456
  setQueueData = _useState2[1];
22524
22457
 
22525
22458
  var refreshAD = function refreshAD(path) {
22526
- if (!main_39) {
22459
+ if (!main_36) {
22527
22460
  var activeArticle = queueData.find(function (item) {
22528
22461
  return item.url.current === path;
22529
22462
  });
@@ -22725,7 +22658,7 @@ var Articles = function Articles(props) {
22725
22658
  Ads: WAds,
22726
22659
  regionalPages: regionalPages,
22727
22660
  nationalPage: nationalPage
22728
- }, _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));
22661
+ }, _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));
22729
22662
  };
22730
22663
 
22731
22664
  var View = function View(props) {