@mjhls/mjh-framework 1.0.424 → 1.0.426

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/README.md +172 -172
  2. package/dist/cjs/{ADInfeed-494f5e6b.js → ADInfeed-99f812f9.js} +1 -1
  3. package/dist/cjs/{AdSlot-4d22aad4.js → AdSlot-6b3e5d3d.js} +2 -2
  4. package/dist/cjs/DeckContent.js +17 -17
  5. package/dist/cjs/DeckQueue.js +8 -8
  6. package/dist/cjs/{Dfp-2399639f.js → Dfp-f62806bd.js} +1 -1
  7. package/dist/cjs/{Figure-9e886c5b.js → Figure-7277baf0.js} +1 -1
  8. package/dist/cjs/{GridContent-f401c40f.js → GridContent-3acca2d2.js} +12 -12
  9. package/dist/cjs/GridContent.js +10 -10
  10. package/dist/cjs/GroupDeck.js +8 -8
  11. package/dist/cjs/IssueContentDeck.js +2 -2
  12. package/dist/cjs/IssueDeck.js +2 -2
  13. package/dist/cjs/MasterDeck.js +15 -15
  14. package/dist/cjs/{Normal-405b758a.js → Normal-e35862e5.js} +39 -39
  15. package/dist/cjs/PublicationDeck.js +1 -1
  16. package/dist/cjs/QueueDeckExpanded.js +8 -8
  17. package/dist/cjs/{TaxonomyCard-eb928f05.js → TaxonomyCard-bbf7530c.js} +1 -1
  18. package/dist/cjs/TaxonomyCard.js +2 -2
  19. package/dist/cjs/TemplateNormal.js +5 -5
  20. package/dist/cjs/ThumbnailCard.js +1 -1
  21. package/dist/cjs/VideoSeriesListing.js +5 -5
  22. package/dist/cjs/YoutubeGroup.js +7 -7
  23. package/dist/cjs/{debounce-b088070c.js → debounce-17653c0f.js} +6 -4
  24. package/dist/cjs/{get-5aa7468c.js → get-1f552668.js} +1 -1
  25. package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
  26. package/dist/cjs/{index.es-ab3f2690.js → index.es-9110add6.js} +1 -3
  27. package/dist/cjs/index.js +881 -931
  28. package/dist/cjs/{inherits-e793003e.js → inherits-be4dfb6b.js} +4 -4
  29. package/dist/cjs/{main-bc4db521.js → main-88348b15.js} +35 -66
  30. package/dist/cjs/{moment-66a6a284.js → moment-575fe24c.js} +1 -1
  31. package/dist/esm/{ADInfeed-e5cefea5.js → ADInfeed-f1c1780e.js} +1 -1
  32. package/dist/esm/{AdSlot-78e48a2c.js → AdSlot-4ca0419a.js} +2 -2
  33. package/dist/esm/DeckContent.js +16 -16
  34. package/dist/esm/DeckQueue.js +7 -7
  35. package/dist/esm/{Dfp-d5fe1252.js → Dfp-d372854b.js} +1 -1
  36. package/dist/esm/{Figure-cc1affbe.js → Figure-2d14847b.js} +1 -1
  37. package/dist/esm/{GridContent-e3224519.js → GridContent-09330066.js} +11 -11
  38. package/dist/esm/GridContent.js +9 -9
  39. package/dist/esm/GroupDeck.js +5 -5
  40. package/dist/esm/IssueContentDeck.js +2 -2
  41. package/dist/esm/IssueDeck.js +2 -2
  42. package/dist/esm/MasterDeck.js +14 -14
  43. package/dist/esm/{Normal-c61851bf.js → Normal-7e1b2b80.js} +39 -39
  44. package/dist/esm/PublicationDeck.js +1 -1
  45. package/dist/esm/QueueDeckExpanded.js +8 -8
  46. package/dist/esm/{TaxonomyCard-b29aa7ac.js → TaxonomyCard-d49aa67a.js} +1 -1
  47. package/dist/esm/TaxonomyCard.js +2 -2
  48. package/dist/esm/TemplateNormal.js +5 -5
  49. package/dist/esm/ThumbnailCard.js +1 -1
  50. package/dist/esm/VideoSeriesListing.js +4 -4
  51. package/dist/esm/YoutubeGroup.js +5 -5
  52. package/dist/esm/{debounce-df468b0e.js → debounce-53693e2b.js} +6 -4
  53. package/dist/esm/{get-53653403.js → get-b3f4645d.js} +1 -1
  54. package/dist/esm/{index-51a80699.js → index-73819142.js} +19 -20
  55. package/dist/esm/{index.es-938a3a58.js → index.es-29c1cef5.js} +1 -3
  56. package/dist/esm/index.js +878 -928
  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-7e1b2b80.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-7e1b2b80.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
  }
@@ -2838,7 +2838,7 @@ var ADFooter = function ADFooter(_ref) {
2838
2838
  React__default.createElement(
2839
2839
  'style',
2840
2840
  { jsx: true },
2841
- '\n .ADFooter {\n width: auto;\n margin: 0;\n background-color: #f5f5f5;\n position: fixed;\n bottom: 0;\n left: 50%;\n transform: translateX(-50%);\n z-index: 9000;\n }\n .closeButton {\n position: absolute;\n top: -10px;\n right: -10px;\n background: grey;\n color: white;\n font-weight: 500;\n border: 2px solid white;\n border-radius: 50%;\n width: 30px;\n height: 30px;\n text-align: center;\n font-size: 17px;\n cursor: pointer;\n }\n '
2841
+ '\n .ADFooter {\n width: auto;\n margin: 0;\n background-color: #f5f5f5;\n position: fixed;\n bottom: 0;\n left: 50%;\n transform: translateX(-50%);\n z-index: 9000;\n }\n .adBox > div:empty {\n display: none !important;\n }\n .adBox > div:not(:empty){\n display: block !important;\n }\n .closeButton {\n position: absolute;\n top: -10px;\n right: -10px;\n background: grey;\n color: white;\n font-weight: 500;\n border: 2px solid white;\n border-radius: 50%;\n width: 30px;\n height: 30px;\n text-align: center;\n font-size: 17px;\n cursor: pointer;\n }\n '
2842
2842
  )
2843
2843
  );
2844
2844
  };
@@ -2897,19 +2897,30 @@ var ADFloatingFooter = function ADFloatingFooter(_ref) {
2897
2897
  if (window && window.innerWidth > minScreenWidth) {
2898
2898
  setWidthFlag(true);
2899
2899
  }
2900
+
2901
+ try {
2902
+ var _floatingAd = document.getElementById('floating-ad');
2903
+ var parent = document.getElementById('floating-ad-wrapper');
2904
+ if (_floatingAd.children[0].children.length === 0) {
2905
+ parent.classList.remove('display-floating');
2906
+ parent.classList.add('hide-floating');
2907
+ }
2908
+ } catch (e) {}
2900
2909
  }, [minScreenWidth]);
2901
2910
 
2902
2911
  var collapseAd = function collapseAd() {
2903
2912
  var parent = document.getElementById('floating-ad-wrapper');
2904
2913
  parent.style.height = '0%';
2905
2914
  parent.style.width = '0%';
2906
- parent.style.display = 'none';
2915
+ parent.classList.remove('display-floating');
2916
+ parent.classList.add('hide-floating');
2907
2917
  };
2908
2918
 
2909
2919
  var checkIsAdFound = function checkIsAdFound(isFound, adData) {
2910
2920
  if (isFound) {
2911
2921
  var parent = document.getElementById('floating-ad-wrapper');
2912
- parent.style.display = 'block';
2922
+ parent.classList.remove('hide-floating');
2923
+ parent.classList.add('display-floating');
2913
2924
  if (adData && adData.event && adData.event.size) {
2914
2925
  parent.style.width = adData.event.size[0] + 'px';
2915
2926
  parent.style.height = adData.event.size[1] + 'px';
@@ -2924,7 +2935,7 @@ var ADFloatingFooter = function ADFloatingFooter(_ref) {
2924
2935
  null,
2925
2936
  widthFlag && adTargeting.document_url && React__default.createElement(
2926
2937
  'div',
2927
- { id: 'floating-ad-wrapper', className: 'floating-ad-wrapper ' + title },
2938
+ { id: 'floating-ad-wrapper', className: 'floating-ad-wrapper hide-floating ' + title },
2928
2939
  React__default.createElement(DFPAdSlot, {
2929
2940
  className: className,
2930
2941
  slotId: slotId,
@@ -2946,7 +2957,7 @@ var ADFloatingFooter = function ADFloatingFooter(_ref) {
2946
2957
  React__default.createElement(
2947
2958
  'style',
2948
2959
  { jsx: 'true' },
2949
- '\n .floating-ad-wrapper {\n margin: 0;\n background-color: #f5f5f5;\n position: fixed;\n bottom: 0;\n left: 50%;\n transform: translateX(-50%);\n z-index: 9000;\n display: none;\n }\n .closeButton {\n position: absolute;\n top: -10px;\n right: -10px;\n background: grey;\n color: white;\n font-weight: 500;\n border: 2px solid white;\n border-radius: 50%;\n width: 30px;\n height: 30px;\n text-align: center;\n font-size: 17px;\n cursor: pointer;\n }\n '
2960
+ '\n .display-floating {\n display: block;\n }\n .hide-floating {\n display: none;\n }\n .floating-ad-wrapper {\n margin: 0;\n background-color: #f5f5f5;\n position: fixed;\n bottom: 0;\n left: 50%;\n transform: translateX(-50%);\n z-index: 9000;\n }\n .closeButton {\n position: absolute;\n top: -10px;\n right: -10px;\n background: grey;\n color: white;\n font-weight: 500;\n border: 2px solid white;\n border-radius: 50%;\n width: 30px;\n height: 30px;\n text-align: center;\n font-size: 17px;\n cursor: pointer;\n }\n '
2950
2961
  )
2951
2962
  );
2952
2963
  };
@@ -3196,18 +3207,21 @@ var Slideshow = function Slideshow(_ref) {
3196
3207
  );
3197
3208
  };
3198
3209
 
3199
- // do not edit .js files directly - edit src/index.jst
3200
-
3201
-
3210
+ var isArray = Array.isArray;
3211
+ var keyList = Object.keys;
3212
+ var hasProp = Object.prototype.hasOwnProperty;
3202
3213
 
3203
3214
  var fastDeepEqual = function equal(a, b) {
3204
3215
  if (a === b) return true;
3205
3216
 
3206
3217
  if (a && b && typeof a == 'object' && typeof b == 'object') {
3207
- if (a.constructor !== b.constructor) return false;
3218
+ var arrA = isArray(a)
3219
+ , arrB = isArray(b)
3220
+ , i
3221
+ , length
3222
+ , key;
3208
3223
 
3209
- var length, i, keys;
3210
- if (Array.isArray(a)) {
3224
+ if (arrA && arrB) {
3211
3225
  length = a.length;
3212
3226
  if (length != b.length) return false;
3213
3227
  for (i = length; i-- !== 0;)
@@ -3215,29 +3229,35 @@ var fastDeepEqual = function equal(a, b) {
3215
3229
  return true;
3216
3230
  }
3217
3231
 
3232
+ if (arrA != arrB) return false;
3218
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();
3219
3238
 
3220
- if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
3221
- if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
3222
- 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();
3223
3243
 
3224
- keys = Object.keys(a);
3244
+ var keys = keyList(a);
3225
3245
  length = keys.length;
3226
- if (length !== Object.keys(b).length) return false;
3246
+
3247
+ if (length !== keyList(b).length)
3248
+ return false;
3227
3249
 
3228
3250
  for (i = length; i-- !== 0;)
3229
- if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
3251
+ if (!hasProp.call(b, keys[i])) return false;
3230
3252
 
3231
3253
  for (i = length; i-- !== 0;) {
3232
- var key = keys[i];
3233
-
3254
+ key = keys[i];
3234
3255
  if (!equal(a[key], b[key])) return false;
3235
3256
  }
3236
3257
 
3237
3258
  return true;
3238
3259
  }
3239
3260
 
3240
- // true if both NaN, false otherwise
3241
3261
  return a!==a && b!==b;
3242
3262
  };
3243
3263
 
@@ -4260,7 +4280,7 @@ function formatValue(ctx, value, recurseTimes) {
4260
4280
  var base = '', array = false, braces = ['{', '}'];
4261
4281
 
4262
4282
  // Make Array say that they are Array
4263
- if (isArray(value)) {
4283
+ if (isArray$1(value)) {
4264
4284
  array = true;
4265
4285
  braces = ['[', ']'];
4266
4286
  }
@@ -4439,7 +4459,7 @@ function reduceToSingleString(output, base, braces) {
4439
4459
 
4440
4460
  // NOTE: These type checking functions intentionally don't use `instanceof`
4441
4461
  // because it is fragile and can be easily faked with `Object.create()`.
4442
- function isArray(ar) {
4462
+ function isArray$1(ar) {
4443
4463
  return Array.isArray(ar);
4444
4464
  }
4445
4465
 
@@ -4566,7 +4586,7 @@ var util = {
4566
4586
  isNullOrUndefined: isNullOrUndefined,
4567
4587
  isNull: isNull,
4568
4588
  isBoolean: isBoolean,
4569
- isArray: isArray,
4589
+ isArray: isArray$1,
4570
4590
  inspect: inspect,
4571
4591
  deprecate: deprecate,
4572
4592
  format: format,
@@ -5233,235 +5253,199 @@ module.exports = exports['default'];
5233
5253
 
5234
5254
  var youTubePlayer = unwrapExports(dist);
5235
5255
 
5236
- 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); }
5237
-
5238
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5239
-
5240
- 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); } }
5241
-
5242
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5243
-
5244
- 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); }; }
5245
-
5246
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5247
-
5248
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5249
-
5250
- 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; } }
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; }; }();
5251
5257
 
5252
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5253
-
5254
- 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; };
5255
5259
 
5256
- 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"); } }
5257
5261
 
5258
- 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; }
5259
5263
 
5260
- 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; }
5261
5265
 
5262
- 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; }
5263
- /**
5264
- * Check whether a `props` change should result in the video being updated.
5265
- *
5266
- * @param {Object} prevProps
5267
- * @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
5268
5271
  */
5269
-
5270
5272
  function shouldUpdateVideo(prevProps, props) {
5271
5273
  // A changing video should always trigger an update
5272
5274
  if (prevProps.videoId !== props.videoId) {
5273
5275
  return true;
5274
- } // Otherwise, a change in the start/end time playerVars also requires a player
5275
- // update.
5276
-
5276
+ }
5277
5277
 
5278
+ // Otherwise, a change in the start/end time playerVars also requires a player
5279
+ // update.
5278
5280
  var prevVars = prevProps.opts.playerVars || {};
5279
5281
  var vars = props.opts.playerVars || {};
5282
+
5280
5283
  return prevVars.start !== vars.start || prevVars.end !== vars.end;
5281
5284
  }
5282
- /**
5283
- * Neutralize API options that only require a video update, leaving only options
5284
- * that require a player reset. The results can then be compared to see if a
5285
- * player reset is necessary.
5286
- *
5287
- * @param {Object} opts
5288
- */
5289
-
5290
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
+ */
5291
5293
  function filterResetOptions(opts) {
5292
- return _objectSpread({}, opts, {
5293
- playerVars: _objectSpread({}, opts.playerVars, {
5294
+ return _extends({}, opts, {
5295
+ playerVars: _extends({}, opts.playerVars, {
5294
5296
  autoplay: 0,
5295
5297
  start: 0,
5296
5298
  end: 0
5297
5299
  })
5298
5300
  });
5299
5301
  }
5300
- /**
5301
- * Check whether a `props` change should result in the player being reset.
5302
- * The player is reset when the `props.opts` change, except if the only change
5303
- * is in the `start` and `end` playerVars, because a video update can deal with
5304
- * those.
5305
- *
5306
- * @param {Object} prevProps
5307
- * @param {Object} props
5308
- */
5309
-
5310
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
+ */
5311
5312
  function shouldResetPlayer(prevProps, props) {
5312
5313
  return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
5313
5314
  }
5314
- /**
5315
- * Check whether a props change should result in an id or className update.
5316
- *
5317
- * @param {Object} prevProps
5318
- * @param {Object} props
5319
- */
5320
-
5321
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
+ */
5322
5322
  function shouldUpdatePlayer(prevProps, props) {
5323
5323
  return prevProps.id !== props.id || prevProps.className !== props.className;
5324
5324
  }
5325
5325
 
5326
- var YouTube = /*#__PURE__*/function (_React$Component) {
5326
+ var YouTube = function (_React$Component) {
5327
5327
  _inherits(YouTube, _React$Component);
5328
5328
 
5329
- var _super = _createSuper(YouTube);
5330
-
5331
- /**
5332
- * Expose PlayerState constants for convenience. These constants can also be
5333
- * accessed through the global YT object after the YouTube IFrame API is instantiated.
5334
- * https://developers.google.com/youtube/iframe_api_reference#onStateChange
5335
- */
5336
5329
  function YouTube(props) {
5337
- var _this;
5338
-
5339
5330
  _classCallCheck(this, YouTube);
5340
5331
 
5341
- _this = _super.call(this, props);
5332
+ var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
5342
5333
 
5343
- _defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
5334
+ _this.onPlayerReady = function (event) {
5344
5335
  return _this.props.onReady(event);
5345
- });
5336
+ };
5346
5337
 
5347
- _defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
5338
+ _this.onPlayerError = function (event) {
5348
5339
  return _this.props.onError(event);
5349
- });
5340
+ };
5350
5341
 
5351
- _defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
5342
+ _this.onPlayerStateChange = function (event) {
5352
5343
  _this.props.onStateChange(event);
5353
-
5354
5344
  switch (event.data) {
5345
+
5355
5346
  case YouTube.PlayerState.ENDED:
5356
5347
  _this.props.onEnd(event);
5357
-
5358
5348
  break;
5359
5349
 
5360
5350
  case YouTube.PlayerState.PLAYING:
5361
5351
  _this.props.onPlay(event);
5362
-
5363
5352
  break;
5364
5353
 
5365
5354
  case YouTube.PlayerState.PAUSED:
5366
5355
  _this.props.onPause(event);
5367
-
5368
5356
  break;
5369
5357
  }
5370
- });
5358
+ };
5371
5359
 
5372
- _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
5360
+ _this.onPlayerPlaybackRateChange = function (event) {
5373
5361
  return _this.props.onPlaybackRateChange(event);
5374
- });
5362
+ };
5375
5363
 
5376
- _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
5364
+ _this.onPlayerPlaybackQualityChange = function (event) {
5377
5365
  return _this.props.onPlaybackQualityChange(event);
5378
- });
5366
+ };
5379
5367
 
5380
- _defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
5368
+ _this.createPlayer = function () {
5381
5369
  // do not attempt to create a player server-side, it won't work
5382
- if (typeof document === 'undefined') return; // create player
5383
-
5384
- var playerOpts = _objectSpread({}, _this.props.opts, {
5370
+ if (typeof document === 'undefined') return;
5371
+ // create player
5372
+ var playerOpts = _extends({}, _this.props.opts, {
5385
5373
  // preload the `videoId` video if one is already given
5386
5374
  videoId: _this.props.videoId
5387
5375
  });
5388
-
5389
- _this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
5390
-
5376
+ _this.internalPlayer = youTubePlayer(_this.container, playerOpts);
5377
+ // attach event handlers
5391
5378
  _this.internalPlayer.on('ready', _this.onPlayerReady);
5392
-
5393
5379
  _this.internalPlayer.on('error', _this.onPlayerError);
5394
-
5395
5380
  _this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
5396
-
5397
5381
  _this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
5398
-
5399
5382
  _this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
5400
- });
5383
+ };
5401
5384
 
5402
- _defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
5385
+ _this.resetPlayer = function () {
5403
5386
  return _this.internalPlayer.destroy().then(_this.createPlayer);
5404
- });
5387
+ };
5405
5388
 
5406
- _defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
5389
+ _this.updatePlayer = function () {
5407
5390
  _this.internalPlayer.getIframe().then(function (iframe) {
5408
5391
  if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
5409
5392
  if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
5410
5393
  });
5411
- });
5394
+ };
5412
5395
 
5413
- _defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
5396
+ _this.updateVideo = function () {
5414
5397
  if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
5415
5398
  _this.internalPlayer.stopVideo();
5416
-
5417
5399
  return;
5418
- } // set queueing options
5419
-
5400
+ }
5420
5401
 
5402
+ // set queueing options
5421
5403
  var autoplay = false;
5422
5404
  var opts = {
5423
5405
  videoId: _this.props.videoId
5424
5406
  };
5425
-
5426
5407
  if ('playerVars' in _this.props.opts) {
5427
5408
  autoplay = _this.props.opts.playerVars.autoplay === 1;
5428
-
5429
5409
  if ('start' in _this.props.opts.playerVars) {
5430
5410
  opts.startSeconds = _this.props.opts.playerVars.start;
5431
5411
  }
5432
-
5433
5412
  if ('end' in _this.props.opts.playerVars) {
5434
5413
  opts.endSeconds = _this.props.opts.playerVars.end;
5435
5414
  }
5436
- } // if autoplay is enabled loadVideoById
5437
-
5415
+ }
5438
5416
 
5417
+ // if autoplay is enabled loadVideoById
5439
5418
  if (autoplay) {
5440
5419
  _this.internalPlayer.loadVideoById(opts);
5441
-
5442
5420
  return;
5443
- } // default behaviour just cues the video
5444
-
5445
-
5421
+ }
5422
+ // default behaviour just cues the video
5446
5423
  _this.internalPlayer.cueVideoById(opts);
5447
- });
5424
+ };
5448
5425
 
5449
- _defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
5426
+ _this.refContainer = function (container) {
5450
5427
  _this.container = container;
5451
- });
5428
+ };
5452
5429
 
5453
5430
  _this.container = null;
5454
5431
  _this.internalPlayer = null;
5455
5432
  return _this;
5456
5433
  }
5457
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
+
5458
5442
  _createClass(YouTube, [{
5459
- key: "componentDidMount",
5443
+ key: 'componentDidMount',
5460
5444
  value: function componentDidMount() {
5461
5445
  this.createPlayer();
5462
5446
  }
5463
5447
  }, {
5464
- key: "componentDidUpdate",
5448
+ key: 'componentDidUpdate',
5465
5449
  value: function componentDidUpdate(prevProps) {
5466
5450
  if (shouldUpdatePlayer(prevProps, this.props)) {
5467
5451
  this.updatePlayer();
@@ -5476,58 +5460,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
5476
5460
  }
5477
5461
  }
5478
5462
  }, {
5479
- key: "componentWillUnmount",
5463
+ key: 'componentWillUnmount',
5480
5464
  value: function componentWillUnmount() {
5481
- /**
5482
- * Note: The `youtube-player` package that is used promisifies all YouTube
5483
- * Player API calls, which introduces a delay of a tick before it actually
5484
- * gets destroyed. Since React attempts to remove the element instantly
5485
- * 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.
5486
5470
  */
5487
5471
  this.internalPlayer.destroy();
5488
5472
  }
5489
- /**
5490
- * https://developers.google.com/youtube/iframe_api_reference#onReady
5491
- *
5492
- * @param {Object} event
5493
- * @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.
5494
5539
  */
5495
5540
 
5496
5541
  }, {
5497
- key: "render",
5542
+ key: 'render',
5498
5543
  value: function render() {
5499
- return /*#__PURE__*/React__default.createElement("div", {
5500
- className: this.props.containerClassName
5501
- }, /*#__PURE__*/React__default.createElement("div", {
5502
- id: this.props.id,
5503
- className: this.props.className,
5504
- ref: this.refContainer
5505
- }));
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
+ );
5506
5549
  }
5507
5550
  }]);
5508
5551
 
5509
5552
  return YouTube;
5510
5553
  }(React__default.Component);
5511
5554
 
5512
- _defineProperty(YouTube, "PlayerState", {
5513
- UNSTARTED: -1,
5514
- ENDED: 0,
5515
- PLAYING: 1,
5516
- PAUSED: 2,
5517
- BUFFERING: 3,
5518
- CUED: 5
5519
- });
5520
-
5521
5555
  YouTube.propTypes = {
5522
5556
  videoId: PropTypes.string,
5557
+
5523
5558
  // custom ID for player element
5524
5559
  id: PropTypes.string,
5560
+
5525
5561
  // custom class name for player element
5526
5562
  className: PropTypes.string,
5527
5563
  // custom class name for player container element
5528
5564
  containerClassName: PropTypes.string,
5565
+
5529
5566
  // https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
5530
5567
  opts: PropTypes.objectOf(PropTypes.any),
5568
+
5531
5569
  // event subscriptions
5532
5570
  onReady: PropTypes.func,
5533
5571
  onError: PropTypes.func,
@@ -5539,7 +5577,6 @@ YouTube.propTypes = {
5539
5577
  onPlaybackQualityChange: PropTypes.func
5540
5578
  };
5541
5579
  YouTube.defaultProps = {
5542
- videoId: null,
5543
5580
  id: null,
5544
5581
  className: null,
5545
5582
  opts: {},
@@ -5553,6 +5590,14 @@ YouTube.defaultProps = {
5553
5590
  onPlaybackRateChange: function onPlaybackRateChange() {},
5554
5591
  onPlaybackQualityChange: function onPlaybackQualityChange() {}
5555
5592
  };
5593
+ YouTube.PlayerState = {
5594
+ UNSTARTED: -1,
5595
+ ENDED: 0,
5596
+ PLAYING: 1,
5597
+ PAUSED: 2,
5598
+ BUFFERING: 3,
5599
+ CUED: 5
5600
+ };
5556
5601
 
5557
5602
  var YouTubePlayer = function YouTubePlayer(_ref) {
5558
5603
  var url = _ref.url;
@@ -6467,8 +6512,8 @@ var window_1 = win;
6467
6512
 
6468
6513
  /*! @name @brightcove/react-player-loader @version 1.4.0 @license Apache-2.0 */
6469
6514
 
6470
- function _extends() {
6471
- _extends = Object.assign || function (target) {
6515
+ function _extends$1() {
6516
+ _extends$1 = Object.assign || function (target) {
6472
6517
  for (var i = 1; i < arguments.length; i++) {
6473
6518
  var source = arguments[i];
6474
6519
 
@@ -6482,7 +6527,7 @@ function _extends() {
6482
6527
  return target;
6483
6528
  };
6484
6529
 
6485
- return _extends.apply(this, arguments);
6530
+ return _extends$1.apply(this, arguments);
6486
6531
  }
6487
6532
 
6488
6533
  function _inheritsLoose(subClass, superClass) {
@@ -6491,7 +6536,7 @@ function _inheritsLoose(subClass, superClass) {
6491
6536
  subClass.__proto__ = superClass;
6492
6537
  }
6493
6538
 
6494
- function _assertThisInitialized$1(self) {
6539
+ function _assertThisInitialized(self) {
6495
6540
  if (self === void 0) {
6496
6541
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
6497
6542
  }
@@ -6501,8 +6546,8 @@ function _assertThisInitialized$1(self) {
6501
6546
 
6502
6547
  /*! @name @brightcove/player-loader @version 1.7.1 @license Apache-2.0 */
6503
6548
 
6504
- function _extends$1() {
6505
- _extends$1 = Object.assign || function (target) {
6549
+ function _extends$1$1() {
6550
+ _extends$1$1 = Object.assign || function (target) {
6506
6551
  for (var i = 1; i < arguments.length; i++) {
6507
6552
  var source = arguments[i];
6508
6553
 
@@ -6516,7 +6561,7 @@ function _extends$1() {
6516
6561
  return target;
6517
6562
  };
6518
6563
 
6519
- return _extends$1.apply(this, arguments);
6564
+ return _extends$1$1.apply(this, arguments);
6520
6565
  }
6521
6566
 
6522
6567
  var version$1 = "1.7.1";
@@ -6524,7 +6569,7 @@ var version$1 = "1.7.1";
6524
6569
  /*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */
6525
6570
  var version$1$1 = "1.2.0";
6526
6571
 
6527
- var _typeof$1 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
6572
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
6528
6573
  return typeof obj;
6529
6574
  } : function (obj) {
6530
6575
  return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
@@ -6659,7 +6704,7 @@ var brightcovePlayerUrl = function brightcovePlayerUrl(_ref) {
6659
6704
 
6660
6705
  var qs = '';
6661
6706
 
6662
- if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof$1(queryParams)) === 'object') {
6707
+ if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof(queryParams)) === 'object') {
6663
6708
  qs = getQueryString(queryParams);
6664
6709
  }
6665
6710
 
@@ -6893,7 +6938,7 @@ var wrapResponsive = function wrapResponsive(embedType, embedOptions, el) {
6893
6938
  el.style.width = '100%';
6894
6939
  el.style.height = '100%';
6895
6940
 
6896
- var responsive = _extends$1({
6941
+ var responsive = _extends$1$1({
6897
6942
  aspectRatio: DEFAULT_ASPECT_RATIO,
6898
6943
  iframeHorizontalPlaylist: DEFAULT_IFRAME_HORIZONTAL_PLAYLIST,
6899
6944
  maxWidth: DEFAULT_MAX_WIDTH
@@ -7578,7 +7623,7 @@ var loadPlayer = function loadPlayer(params, resolve, reject) {
7578
7623
 
7579
7624
 
7580
7625
  var brightcovePlayerLoader = function brightcovePlayerLoader(parameters) {
7581
- var params = _extends$1({}, DEFAULTS, parameters);
7626
+ var params = _extends$1$1({}, DEFAULTS, parameters);
7582
7627
 
7583
7628
  var Promise = params.Promise,
7584
7629
  onSuccess = params.onSuccess,
@@ -7720,7 +7765,7 @@ function (_React$Component) {
7720
7765
  _this.refNode = ref;
7721
7766
  };
7722
7767
 
7723
- _this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized$1(_this));
7768
+ _this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized(_this));
7724
7769
  return _this;
7725
7770
  }
7726
7771
  /**
@@ -7741,7 +7786,7 @@ function (_React$Component) {
7741
7786
  var userSuccess = this.props.onSuccess;
7742
7787
  var userFailure = this.props.onFailure;
7743
7788
 
7744
- var options = _extends({}, this.props, {
7789
+ var options = _extends$1({}, this.props, {
7745
7790
  refNode: this.refNode,
7746
7791
  refNodeInsert: 'append',
7747
7792
  onSuccess: function onSuccess(_ref) {
@@ -8050,7 +8095,7 @@ function (_React$Component) {
8050
8095
  ;
8051
8096
 
8052
8097
  _proto.render = function render() {
8053
- var props = _extends({
8098
+ var props = _extends$1({
8054
8099
  className: 'brightcove-react-player-loader'
8055
8100
  }, this.props.attrs, {
8056
8101
  ref: this.setRefNode
@@ -8569,17 +8614,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
8569
8614
 
8570
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; }
8571
8616
 
8572
- 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; } } }; }
8617
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
8573
8618
 
8574
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8619
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
8575
8620
 
8576
- 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."); }
8577
-
8578
- 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); }
8579
-
8580
- 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; }
8581
-
8582
- 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; }
8583
8622
 
8584
8623
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
8585
8624
 
@@ -8709,12 +8748,12 @@ function getSDK(url, sdkGlobal) {
8709
8748
 
8710
8749
  function getConfig(props$1, defaultProps, showWarning) {
8711
8750
  var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
8712
-
8713
- var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
8714
- _step;
8751
+ var _iteratorNormalCompletion = true;
8752
+ var _didIteratorError = false;
8753
+ var _iteratorError = undefined;
8715
8754
 
8716
8755
  try {
8717
- 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) {
8718
8757
  var p = _step.value;
8719
8758
 
8720
8759
  if (props$1[p]) {
@@ -8729,9 +8768,18 @@ function getConfig(props$1, defaultProps, showWarning) {
8729
8768
  }
8730
8769
  }
8731
8770
  } catch (err) {
8732
- _iterator.e(err);
8771
+ _didIteratorError = true;
8772
+ _iteratorError = err;
8733
8773
  } finally {
8734
- _iterator.f();
8774
+ try {
8775
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
8776
+ _iterator["return"]();
8777
+ }
8778
+ } finally {
8779
+ if (_didIteratorError) {
8780
+ throw _iteratorError;
8781
+ }
8782
+ }
8735
8783
  }
8736
8784
 
8737
8785
  return config;
@@ -8878,16 +8926,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
8878
8926
 
8879
8927
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
8880
8928
 
8881
- 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); }; }
8882
-
8883
8929
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
8884
8930
 
8885
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
8886
-
8887
- 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; } }
8888
-
8889
8931
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
8890
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
+
8891
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); }
8892
8936
 
8893
8937
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -8896,12 +8940,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
8896
8940
 
8897
8941
  var SEEK_ON_PLAY_EXPIRY = 5000;
8898
8942
 
8899
- var Player = /*#__PURE__*/function (_Component) {
8943
+ var Player =
8944
+ /*#__PURE__*/
8945
+ function (_Component) {
8900
8946
  _inherits(Player, _Component);
8901
8947
 
8902
- var _super = _createSuper(Player);
8903
-
8904
8948
  function Player() {
8949
+ var _getPrototypeOf2;
8950
+
8905
8951
  var _this;
8906
8952
 
8907
8953
  _classCallCheck(this, Player);
@@ -8910,7 +8956,7 @@ var Player = /*#__PURE__*/function (_Component) {
8910
8956
  _args[_key] = arguments[_key];
8911
8957
  }
8912
8958
 
8913
- _this = _super.call.apply(_super, [this].concat(_args));
8959
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
8914
8960
 
8915
8961
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
8916
8962
 
@@ -9235,7 +9281,7 @@ var Player = /*#__PURE__*/function (_Component) {
9235
9281
  return null;
9236
9282
  }
9237
9283
 
9238
- return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
9284
+ return _react["default"].createElement(Player, _extends({}, this.props, {
9239
9285
  ref: this.ref,
9240
9286
  onReady: this.handleReady,
9241
9287
  onPlay: this.handlePlay,
@@ -9296,16 +9342,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9296
9342
 
9297
9343
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9298
9344
 
9299
- 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); }; }
9300
-
9301
9345
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9302
9346
 
9303
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9304
-
9305
- 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; } }
9306
-
9307
9347
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9308
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
+
9309
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); }
9310
9352
 
9311
9353
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9317,12 +9359,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
9317
9359
  function createSinglePlayer(activePlayer) {
9318
9360
  var _class, _temp;
9319
9361
 
9320
- return _temp = _class = /*#__PURE__*/function (_Component) {
9362
+ return _temp = _class =
9363
+ /*#__PURE__*/
9364
+ function (_Component) {
9321
9365
  _inherits(SinglePlayer, _Component);
9322
9366
 
9323
- var _super = _createSuper(SinglePlayer);
9324
-
9325
9367
  function SinglePlayer() {
9368
+ var _getPrototypeOf2;
9369
+
9326
9370
  var _this;
9327
9371
 
9328
9372
  _classCallCheck(this, SinglePlayer);
@@ -9331,7 +9375,7 @@ function createSinglePlayer(activePlayer) {
9331
9375
  args[_key] = arguments[_key];
9332
9376
  }
9333
9377
 
9334
- _this = _super.call.apply(_super, [this].concat(args));
9378
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
9335
9379
 
9336
9380
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
9337
9381
 
@@ -9399,12 +9443,12 @@ function createSinglePlayer(activePlayer) {
9399
9443
  height = _this$props.height,
9400
9444
  Wrapper = _this$props.wrapper;
9401
9445
  var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
9402
- return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
9446
+ return _react["default"].createElement(Wrapper, _extends({
9403
9447
  style: _objectSpread({}, style, {
9404
9448
  width: width,
9405
9449
  height: height
9406
9450
  })
9407
- }, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
9451
+ }, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
9408
9452
  ref: this.ref,
9409
9453
  activePlayer: activePlayer,
9410
9454
  config: this.config
@@ -9450,31 +9494,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9450
9494
 
9451
9495
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9452
9496
 
9453
- 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); }; }
9454
-
9455
9497
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9456
9498
 
9457
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9458
-
9459
- 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; } }
9460
-
9461
9499
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9462
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
+
9463
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); }
9464
9504
 
9465
9505
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9466
9506
 
9467
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; }
9468
9508
 
9469
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
9470
-
9471
- 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."); }
9509
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
9472
9510
 
9473
- 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); }
9511
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
9474
9512
 
9475
- 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; }
9476
-
9477
- 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; }
9478
9514
 
9479
9515
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9480
9516
 
@@ -9499,12 +9535,14 @@ function parsePlaylist(url) {
9499
9535
  return {};
9500
9536
  }
9501
9537
 
9502
- var YouTube = /*#__PURE__*/function (_Component) {
9538
+ var YouTube =
9539
+ /*#__PURE__*/
9540
+ function (_Component) {
9503
9541
  _inherits(YouTube, _Component);
9504
9542
 
9505
- var _super = _createSuper(YouTube);
9506
-
9507
9543
  function YouTube() {
9544
+ var _getPrototypeOf2;
9545
+
9508
9546
  var _this;
9509
9547
 
9510
9548
  _classCallCheck(this, YouTube);
@@ -9513,7 +9551,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
9513
9551
  args[_key] = arguments[_key];
9514
9552
  }
9515
9553
 
9516
- _this = _super.call.apply(_super, [this].concat(args));
9554
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
9517
9555
 
9518
9556
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
9519
9557
 
@@ -9701,9 +9739,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
9701
9739
  height: '100%',
9702
9740
  display: display
9703
9741
  };
9704
- return /*#__PURE__*/_react["default"].createElement("div", {
9742
+ return _react["default"].createElement("div", {
9705
9743
  style: style
9706
- }, /*#__PURE__*/_react["default"].createElement("div", {
9744
+ }, _react["default"].createElement("div", {
9707
9745
  ref: this.ref
9708
9746
  }));
9709
9747
  }
@@ -9759,16 +9797,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9759
9797
 
9760
9798
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9761
9799
 
9762
- 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); }; }
9763
-
9764
9800
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9765
9801
 
9766
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9767
-
9768
- 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; } }
9769
-
9770
9802
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9771
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
+
9772
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); }
9773
9807
 
9774
9808
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9777,14 +9811,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
9777
9811
 
9778
9812
  var SDK_URL = 'https://w.soundcloud.com/player/api.js';
9779
9813
  var SDK_GLOBAL = 'SC';
9780
- var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
9814
+ var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
9781
9815
 
9782
- var SoundCloud = /*#__PURE__*/function (_Component) {
9816
+ var SoundCloud =
9817
+ /*#__PURE__*/
9818
+ function (_Component) {
9783
9819
  _inherits(SoundCloud, _Component);
9784
9820
 
9785
- var _super = _createSuper(SoundCloud);
9786
-
9787
9821
  function SoundCloud() {
9822
+ var _getPrototypeOf2;
9823
+
9788
9824
  var _this;
9789
9825
 
9790
9826
  _classCallCheck(this, SoundCloud);
@@ -9793,7 +9829,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
9793
9829
  args[_key] = arguments[_key];
9794
9830
  }
9795
9831
 
9796
- _this = _super.call.apply(_super, [this].concat(args));
9832
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
9797
9833
 
9798
9834
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
9799
9835
 
@@ -9914,7 +9950,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
9914
9950
  height: '100%',
9915
9951
  display: display
9916
9952
  };
9917
- return /*#__PURE__*/_react["default"].createElement("iframe", {
9953
+ return _react["default"].createElement("iframe", {
9918
9954
  ref: this.ref,
9919
9955
  src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
9920
9956
  style: style,
@@ -9976,16 +10012,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9976
10012
 
9977
10013
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9978
10014
 
9979
- 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); }; }
9980
-
9981
10015
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9982
10016
 
9983
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9984
-
9985
- 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; } }
9986
-
9987
10017
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9988
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
+
9989
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); }
9990
10022
 
9991
10023
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9997,12 +10029,14 @@ var SDK_GLOBAL = 'Vimeo';
9997
10029
  var MATCH_URL = /vimeo\.com\/.+/;
9998
10030
  var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
9999
10031
 
10000
- var Vimeo = /*#__PURE__*/function (_Component) {
10032
+ var Vimeo =
10033
+ /*#__PURE__*/
10034
+ function (_Component) {
10001
10035
  _inherits(Vimeo, _Component);
10002
10036
 
10003
- var _super = _createSuper(Vimeo);
10004
-
10005
10037
  function Vimeo() {
10038
+ var _getPrototypeOf2;
10039
+
10006
10040
  var _this;
10007
10041
 
10008
10042
  _classCallCheck(this, Vimeo);
@@ -10011,7 +10045,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
10011
10045
  args[_key] = arguments[_key];
10012
10046
  }
10013
10047
 
10014
- _this = _super.call.apply(_super, [this].concat(args));
10048
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
10015
10049
 
10016
10050
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10017
10051
 
@@ -10168,7 +10202,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
10168
10202
  overflow: 'hidden',
10169
10203
  display: display
10170
10204
  };
10171
- return /*#__PURE__*/_react["default"].createElement("div", {
10205
+ return _react["default"].createElement("div", {
10172
10206
  key: this.props.url,
10173
10207
  ref: this.ref,
10174
10208
  style: style
@@ -10228,16 +10262,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10228
10262
 
10229
10263
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10230
10264
 
10231
- 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); }; }
10232
-
10233
10265
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10234
10266
 
10235
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10236
-
10237
- 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; } }
10238
-
10239
10267
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10240
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
+
10241
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); }
10242
10272
 
10243
10273
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10250,12 +10280,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
10250
10280
  var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
10251
10281
  var PLAYER_ID_PREFIX = 'facebook-player-';
10252
10282
 
10253
- var Facebook = /*#__PURE__*/function (_Component) {
10283
+ var Facebook =
10284
+ /*#__PURE__*/
10285
+ function (_Component) {
10254
10286
  _inherits(Facebook, _Component);
10255
10287
 
10256
- var _super = _createSuper(Facebook);
10257
-
10258
10288
  function Facebook() {
10289
+ var _getPrototypeOf2;
10290
+
10259
10291
  var _this;
10260
10292
 
10261
10293
  _classCallCheck(this, Facebook);
@@ -10264,7 +10296,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
10264
10296
  args[_key] = arguments[_key];
10265
10297
  }
10266
10298
 
10267
- _this = _super.call.apply(_super, [this].concat(args));
10299
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
10268
10300
 
10269
10301
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10270
10302
 
@@ -10380,7 +10412,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
10380
10412
  width: '100%',
10381
10413
  height: '100%'
10382
10414
  };
10383
- return /*#__PURE__*/_react["default"].createElement("div", {
10415
+ return _react["default"].createElement("div", {
10384
10416
  style: style,
10385
10417
  id: this.playerID,
10386
10418
  className: "fb-video",
@@ -10440,16 +10472,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10440
10472
 
10441
10473
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10442
10474
 
10443
- 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); }; }
10444
-
10445
10475
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10446
10476
 
10447
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10448
-
10449
- 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; } }
10450
-
10451
10477
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10452
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
+
10453
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); }
10454
10482
 
10455
10483
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10460,12 +10488,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
10460
10488
  var SDK_GLOBAL = 'playerjs';
10461
10489
  var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
10462
10490
 
10463
- var Streamable = /*#__PURE__*/function (_Component) {
10491
+ var Streamable =
10492
+ /*#__PURE__*/
10493
+ function (_Component) {
10464
10494
  _inherits(Streamable, _Component);
10465
10495
 
10466
- var _super = _createSuper(Streamable);
10467
-
10468
10496
  function Streamable() {
10497
+ var _getPrototypeOf2;
10498
+
10469
10499
  var _this;
10470
10500
 
10471
10501
  _classCallCheck(this, Streamable);
@@ -10474,7 +10504,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
10474
10504
  args[_key] = arguments[_key];
10475
10505
  }
10476
10506
 
10477
- _this = _super.call.apply(_super, [this].concat(args));
10507
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
10478
10508
 
10479
10509
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10480
10510
 
@@ -10594,7 +10624,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
10594
10624
  width: '100%',
10595
10625
  height: '100%'
10596
10626
  };
10597
- return /*#__PURE__*/_react["default"].createElement("iframe", {
10627
+ return _react["default"].createElement("iframe", {
10598
10628
  ref: this.ref,
10599
10629
  src: "https://streamable.com/o/".concat(id),
10600
10630
  frameBorder: "0",
@@ -10655,17 +10685,13 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10655
10685
 
10656
10686
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10657
10687
 
10658
- 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); }; }
10659
-
10660
10688
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10661
10689
 
10690
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10691
+
10662
10692
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10663
10693
 
10664
- 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; } }
10665
-
10666
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10667
-
10668
- 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); }
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); }
10669
10695
 
10670
10696
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
10671
10697
 
@@ -10675,48 +10701,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
10675
10701
  var SDK_GLOBAL = 'Wistia';
10676
10702
  var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
10677
10703
 
10678
- var Wistia = /*#__PURE__*/function (_Component) {
10704
+ var Wistia =
10705
+ /*#__PURE__*/
10706
+ function (_Component) {
10679
10707
  _inherits(Wistia, _Component);
10680
10708
 
10681
- var _super = _createSuper(Wistia);
10682
-
10683
10709
  function Wistia() {
10710
+ var _getPrototypeOf2;
10711
+
10684
10712
  var _this;
10685
10713
 
10686
10714
  _classCallCheck(this, Wistia);
10687
10715
 
10688
- for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
10689
- _args[_key] = arguments[_key];
10716
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
10717
+ args[_key] = arguments[_key];
10690
10718
  }
10691
10719
 
10692
- _this = _super.call.apply(_super, [this].concat(_args));
10720
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
10693
10721
 
10694
10722
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10695
10723
 
10696
- _defineProperty(_assertThisInitialized(_this), "onPlay", function () {
10697
- var _this$props;
10698
-
10699
- return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
10700
- });
10701
-
10702
- _defineProperty(_assertThisInitialized(_this), "onPause", function () {
10703
- var _this$props2;
10704
-
10705
- return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
10706
- });
10707
-
10708
- _defineProperty(_assertThisInitialized(_this), "onSeek", function () {
10709
- var _this$props3;
10710
-
10711
- return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
10712
- });
10713
-
10714
- _defineProperty(_assertThisInitialized(_this), "onEnded", function () {
10715
- var _this$props4;
10716
-
10717
- return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
10718
- });
10719
-
10720
10724
  _defineProperty(_assertThisInitialized(_this), "mute", function () {
10721
10725
  _this.callPlayer('mute');
10722
10726
  });
@@ -10738,13 +10742,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
10738
10742
  value: function load(url) {
10739
10743
  var _this2 = this;
10740
10744
 
10741
- var _this$props5 = this.props,
10742
- playing = _this$props5.playing,
10743
- muted = _this$props5.muted,
10744
- controls = _this$props5.controls,
10745
- _onReady = _this$props5.onReady,
10746
- config = _this$props5.config,
10747
- 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;
10748
10756
  (0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
10749
10757
  window._wq = window._wq || [];
10750
10758
 
@@ -10761,28 +10769,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
10761
10769
 
10762
10770
  _this2.unbind();
10763
10771
 
10764
- _this2.player.bind('play', _this2.onPlay);
10772
+ _this2.player.bind('play', onPlay);
10765
10773
 
10766
- _this2.player.bind('pause', _this2.onPause);
10774
+ _this2.player.bind('pause', onPause);
10767
10775
 
10768
- _this2.player.bind('seek', _this2.onSeek);
10776
+ _this2.player.bind('seek', onSeek);
10769
10777
 
10770
- _this2.player.bind('end', _this2.onEnded);
10778
+ _this2.player.bind('end', onEnded);
10771
10779
 
10772
10780
  _onReady();
10773
10781
  }
10774
10782
  });
10775
10783
  }, onError);
10776
10784
  }
10777
- }, {
10778
- key: "unbind",
10779
- value: function unbind() {
10780
- this.player.unbind('play', this.onPlay);
10781
- this.player.unbind('pause', this.onPause);
10782
- this.player.unbind('seek', this.onSeek);
10783
- this.player.unbind('end', this.onEnded);
10784
- } // Proxy methods to prevent listener leaks
10785
-
10786
10785
  }, {
10787
10786
  key: "play",
10788
10787
  value: function play() {
@@ -10793,6 +10792,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
10793
10792
  value: function pause() {
10794
10793
  this.callPlayer('pause');
10795
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
+ }
10796
10808
  }, {
10797
10809
  key: "stop",
10798
10810
  value: function stop() {
@@ -10838,7 +10850,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
10838
10850
  width: '100%',
10839
10851
  height: '100%'
10840
10852
  };
10841
- return /*#__PURE__*/_react["default"].createElement("div", {
10853
+ return _react["default"].createElement("div", {
10842
10854
  key: id,
10843
10855
  className: className,
10844
10856
  style: style
@@ -10898,16 +10910,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10898
10910
 
10899
10911
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10900
10912
 
10901
- 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); }; }
10902
-
10903
10913
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10904
10914
 
10905
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10906
-
10907
- 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; } }
10908
-
10909
10915
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10910
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
+
10911
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); }
10912
10920
 
10913
10921
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10920,12 +10928,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
10920
10928
  var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
10921
10929
  var PLAYER_ID_PREFIX = 'twitch-player-';
10922
10930
 
10923
- var Twitch = /*#__PURE__*/function (_Component) {
10931
+ var Twitch =
10932
+ /*#__PURE__*/
10933
+ function (_Component) {
10924
10934
  _inherits(Twitch, _Component);
10925
10935
 
10926
- var _super = _createSuper(Twitch);
10927
-
10928
10936
  function Twitch() {
10937
+ var _getPrototypeOf2;
10938
+
10929
10939
  var _this;
10930
10940
 
10931
10941
  _classCallCheck(this, Twitch);
@@ -10934,7 +10944,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
10934
10944
  args[_key] = arguments[_key];
10935
10945
  }
10936
10946
 
10937
- _this = _super.call.apply(_super, [this].concat(args));
10947
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
10938
10948
 
10939
10949
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10940
10950
 
@@ -11055,7 +11065,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
11055
11065
  width: '100%',
11056
11066
  height: '100%'
11057
11067
  };
11058
- return /*#__PURE__*/_react["default"].createElement("div", {
11068
+ return _react["default"].createElement("div", {
11059
11069
  style: style,
11060
11070
  id: this.playerID
11061
11071
  });
@@ -11108,15 +11118,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
11108
11118
 
11109
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; }
11110
11120
 
11111
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
11112
-
11113
- 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."); }
11121
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
11114
11122
 
11115
- 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); }
11123
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
11116
11124
 
11117
- 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; }
11118
-
11119
- 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; }
11120
11126
 
11121
11127
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11122
11128
 
@@ -11126,16 +11132,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11126
11132
 
11127
11133
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11128
11134
 
11129
- 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); }; }
11130
-
11131
11135
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11132
11136
 
11133
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11134
-
11135
- 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; } }
11136
-
11137
11137
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11138
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
+
11139
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); }
11140
11142
 
11141
11143
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11147,12 +11149,14 @@ var SDK_GLOBAL = 'DM';
11147
11149
  var SDK_GLOBAL_READY = 'dmAsyncInit';
11148
11150
  var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
11149
11151
 
11150
- var DailyMotion = /*#__PURE__*/function (_Component) {
11152
+ var DailyMotion =
11153
+ /*#__PURE__*/
11154
+ function (_Component) {
11151
11155
  _inherits(DailyMotion, _Component);
11152
11156
 
11153
- var _super = _createSuper(DailyMotion);
11154
-
11155
11157
  function DailyMotion() {
11158
+ var _getPrototypeOf2;
11159
+
11156
11160
  var _this;
11157
11161
 
11158
11162
  _classCallCheck(this, DailyMotion);
@@ -11161,7 +11165,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
11161
11165
  args[_key] = arguments[_key];
11162
11166
  }
11163
11167
 
11164
- _this = _super.call.apply(_super, [this].concat(args));
11168
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
11165
11169
 
11166
11170
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11167
11171
 
@@ -11290,9 +11294,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
11290
11294
  height: '100%',
11291
11295
  display: display
11292
11296
  };
11293
- return /*#__PURE__*/_react["default"].createElement("div", {
11297
+ return _react["default"].createElement("div", {
11294
11298
  style: style
11295
- }, /*#__PURE__*/_react["default"].createElement("div", {
11299
+ }, _react["default"].createElement("div", {
11296
11300
  ref: this.ref
11297
11301
  }));
11298
11302
  }
@@ -11350,16 +11354,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11350
11354
 
11351
11355
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11352
11356
 
11353
- 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); }; }
11354
-
11355
11357
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11356
11358
 
11357
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11358
-
11359
- 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; } }
11360
-
11361
11359
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11362
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
+
11363
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); }
11364
11364
 
11365
11365
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11370,12 +11370,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
11370
11370
  var SDK_GLOBAL = 'Mixcloud';
11371
11371
  var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
11372
11372
 
11373
- var Mixcloud = /*#__PURE__*/function (_Component) {
11373
+ var Mixcloud =
11374
+ /*#__PURE__*/
11375
+ function (_Component) {
11374
11376
  _inherits(Mixcloud, _Component);
11375
11377
 
11376
- var _super = _createSuper(Mixcloud);
11377
-
11378
11378
  function Mixcloud() {
11379
+ var _getPrototypeOf2;
11380
+
11379
11381
  var _this;
11380
11382
 
11381
11383
  _classCallCheck(this, Mixcloud);
@@ -11384,7 +11386,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
11384
11386
  args[_key] = arguments[_key];
11385
11387
  }
11386
11388
 
11387
- _this = _super.call.apply(_super, [this].concat(args));
11389
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
11388
11390
 
11389
11391
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11390
11392
 
@@ -11487,7 +11489,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
11487
11489
  })); // We have to give the iframe a key here to prevent a
11488
11490
  // weird dialog appearing when loading a new track
11489
11491
 
11490
- return /*#__PURE__*/_react["default"].createElement("iframe", {
11492
+ return _react["default"].createElement("iframe", {
11491
11493
  key: id,
11492
11494
  ref: this.ref,
11493
11495
  style: style,
@@ -11547,33 +11549,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11547
11549
 
11548
11550
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11549
11551
 
11550
- 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); }; }
11551
-
11552
11552
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11553
11553
 
11554
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11555
-
11556
- 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; } }
11557
-
11558
11554
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11559
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
+
11560
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); }
11561
11559
 
11562
11560
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
11563
11561
 
11564
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; }
11565
11563
 
11566
- 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; } } }; }
11567
-
11568
- 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); }
11569
-
11570
- 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; }
11571
-
11572
11564
  var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
11573
11565
  var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
11574
11566
  var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
11575
11567
  var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
11576
- 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';
11577
11569
  var HLS_GLOBAL = 'Hls';
11578
11570
  var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
11579
11571
  var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
@@ -11582,11 +11574,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
11582
11574
 
11583
11575
  function canPlay(url) {
11584
11576
  if (url instanceof Array) {
11585
- var _iterator = _createForOfIteratorHelper(url),
11586
- _step;
11577
+ var _iteratorNormalCompletion = true;
11578
+ var _didIteratorError = false;
11579
+ var _iteratorError = undefined;
11587
11580
 
11588
11581
  try {
11589
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
11582
+ for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
11590
11583
  var item = _step.value;
11591
11584
 
11592
11585
  if (typeof item === 'string' && canPlay(item)) {
@@ -11598,9 +11591,18 @@ function canPlay(url) {
11598
11591
  }
11599
11592
  }
11600
11593
  } catch (err) {
11601
- _iterator.e(err);
11594
+ _didIteratorError = true;
11595
+ _iteratorError = err;
11602
11596
  } finally {
11603
- _iterator.f();
11597
+ try {
11598
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
11599
+ _iterator["return"]();
11600
+ }
11601
+ } finally {
11602
+ if (_didIteratorError) {
11603
+ throw _iteratorError;
11604
+ }
11605
+ }
11604
11606
  }
11605
11607
 
11606
11608
  return false;
@@ -11624,12 +11626,14 @@ function canEnablePIP(url) {
11624
11626
  return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
11625
11627
  }
11626
11628
 
11627
- var FilePlayer = /*#__PURE__*/function (_Component) {
11629
+ var FilePlayer =
11630
+ /*#__PURE__*/
11631
+ function (_Component) {
11628
11632
  _inherits(FilePlayer, _Component);
11629
11633
 
11630
- var _super = _createSuper(FilePlayer);
11631
-
11632
11634
  function FilePlayer() {
11635
+ var _getPrototypeOf2;
11636
+
11633
11637
  var _this;
11634
11638
 
11635
11639
  _classCallCheck(this, FilePlayer);
@@ -11638,7 +11642,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
11638
11642
  _args[_key] = arguments[_key];
11639
11643
  }
11640
11644
 
11641
- _this = _super.call.apply(_super, [this].concat(_args));
11645
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
11642
11646
 
11643
11647
  _defineProperty(_assertThisInitialized(_this), "onReady", function () {
11644
11648
  var _this$props;
@@ -11725,19 +11729,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
11725
11729
 
11726
11730
  _defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
11727
11731
  if (typeof source === 'string') {
11728
- return /*#__PURE__*/_react["default"].createElement("source", {
11732
+ return _react["default"].createElement("source", {
11729
11733
  key: index,
11730
11734
  src: source
11731
11735
  });
11732
11736
  }
11733
11737
 
11734
- return /*#__PURE__*/_react["default"].createElement("source", _extends({
11738
+ return _react["default"].createElement("source", _extends({
11735
11739
  key: index
11736
11740
  }, source));
11737
11741
  });
11738
11742
 
11739
11743
  _defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
11740
- return /*#__PURE__*/_react["default"].createElement("track", _extends({
11744
+ return _react["default"].createElement("track", _extends({
11741
11745
  key: index
11742
11746
  }, track));
11743
11747
  });
@@ -11775,10 +11779,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
11775
11779
  key: "componentWillUnmount",
11776
11780
  value: function componentWillUnmount() {
11777
11781
  this.removeListeners(this.player);
11778
-
11779
- if (this.hls) {
11780
- this.hls.destroy();
11781
- }
11782
11782
  }
11783
11783
  }, {
11784
11784
  key: "addListeners",
@@ -11909,6 +11909,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
11909
11909
  value: function stop() {
11910
11910
  this.player.removeAttribute('src');
11911
11911
 
11912
+ if (this.hls) {
11913
+ this.hls.destroy();
11914
+ }
11915
+
11912
11916
  if (this.dash) {
11913
11917
  this.dash.reset();
11914
11918
  }
@@ -12020,7 +12024,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
12020
12024
  width: width === 'auto' ? width : '100%',
12021
12025
  height: height === 'auto' ? height : '100%'
12022
12026
  };
12023
- return /*#__PURE__*/_react["default"].createElement(Element, _extends({
12027
+ return _react["default"].createElement(Element, _extends({
12024
12028
  ref: this.ref,
12025
12029
  src: this.getSource(url),
12026
12030
  style: style,
@@ -12110,16 +12114,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
12110
12114
 
12111
12115
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
12112
12116
 
12113
- 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); }; }
12114
-
12115
12117
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12116
12118
 
12117
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12118
-
12119
- 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; } }
12120
-
12121
12119
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12122
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
+
12123
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); }
12124
12124
 
12125
12125
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -12128,12 +12128,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12128
12128
 
12129
12129
  var ICON_SIZE = '64px';
12130
12130
 
12131
- var Preview = /*#__PURE__*/function (_Component) {
12131
+ var Preview =
12132
+ /*#__PURE__*/
12133
+ function (_Component) {
12132
12134
  _inherits(Preview, _Component);
12133
12135
 
12134
- var _super = _createSuper(Preview);
12135
-
12136
12136
  function Preview() {
12137
+ var _getPrototypeOf2;
12138
+
12137
12139
  var _this;
12138
12140
 
12139
12141
  _classCallCheck(this, Preview);
@@ -12142,7 +12144,7 @@ var Preview = /*#__PURE__*/function (_Component) {
12142
12144
  args[_key] = arguments[_key];
12143
12145
  }
12144
12146
 
12145
- _this = _super.call.apply(_super, [this].concat(args));
12147
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
12146
12148
 
12147
12149
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
12148
12150
 
@@ -12240,15 +12242,15 @@ var Preview = /*#__PURE__*/function (_Component) {
12240
12242
  }
12241
12243
  };
12242
12244
 
12243
- var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
12245
+ var defaultPlayIcon = _react["default"].createElement("div", {
12244
12246
  style: styles.shadow,
12245
12247
  className: "react-player__shadow"
12246
- }, /*#__PURE__*/_react["default"].createElement("div", {
12248
+ }, _react["default"].createElement("div", {
12247
12249
  style: styles.playIcon,
12248
12250
  className: "react-player__play-icon"
12249
12251
  }));
12250
12252
 
12251
- return /*#__PURE__*/_react["default"].createElement("div", {
12253
+ return _react["default"].createElement("div", {
12252
12254
  style: styles.preview,
12253
12255
  className: "react-player__preview",
12254
12256
  onClick: onClick
@@ -12285,12 +12287,6 @@ var _Player = _interopRequireDefault(Player_1);
12285
12287
 
12286
12288
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12287
12289
 
12288
- 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; } } }; }
12289
-
12290
- 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); }
12291
-
12292
- 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; }
12293
-
12294
12290
  var PRELOAD_PLAYERS = [{
12295
12291
  Player: YouTube_1.YouTube,
12296
12292
  configKey: 'youtube',
@@ -12311,16 +12307,16 @@ var PRELOAD_PLAYERS = [{
12311
12307
 
12312
12308
  function renderPreloadPlayers(url, controls, config) {
12313
12309
  var players = [];
12314
-
12315
- var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
12316
- _step;
12310
+ var _iteratorNormalCompletion = true;
12311
+ var _didIteratorError = false;
12312
+ var _iteratorError = undefined;
12317
12313
 
12318
12314
  try {
12319
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
12315
+ for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
12320
12316
  var player = _step.value;
12321
12317
 
12322
12318
  if (!player.Player.canPlay(url) && config[player.configKey].preload) {
12323
- players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
12319
+ players.push(_react["default"].createElement(_Player["default"], {
12324
12320
  key: player.Player.displayName,
12325
12321
  activePlayer: player.Player,
12326
12322
  url: player.url,
@@ -12332,9 +12328,18 @@ function renderPreloadPlayers(url, controls, config) {
12332
12328
  }
12333
12329
  }
12334
12330
  } catch (err) {
12335
- _iterator.e(err);
12331
+ _didIteratorError = true;
12332
+ _iteratorError = err;
12336
12333
  } finally {
12337
- _iterator.f();
12334
+ try {
12335
+ if (!_iteratorNormalCompletion && _iterator["return"] != null) {
12336
+ _iterator["return"]();
12337
+ }
12338
+ } finally {
12339
+ if (_didIteratorError) {
12340
+ throw _iteratorError;
12341
+ }
12342
+ }
12338
12343
  }
12339
12344
 
12340
12345
  return players;
@@ -12458,17 +12463,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
12458
12463
 
12459
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); }
12460
12465
 
12461
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
12462
-
12463
- 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(); }
12464
12467
 
12465
- 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"); }
12466
12469
 
12467
- 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); }
12468
12471
 
12469
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
12470
-
12471
- 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; } }
12472
12473
 
12473
12474
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
12474
12475
 
@@ -12476,16 +12477,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
12476
12477
 
12477
12478
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
12478
12479
 
12479
- 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); }; }
12480
-
12481
12480
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12482
12481
 
12483
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12484
-
12485
- 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; } }
12486
-
12487
12482
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12488
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
+
12489
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); }
12490
12487
 
12491
12488
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -12495,12 +12492,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12495
12492
  var SUPPORTED_PROPS = Object.keys(props.propTypes);
12496
12493
  var customPlayers = [];
12497
12494
 
12498
- var ReactPlayer = /*#__PURE__*/function (_Component) {
12495
+ var ReactPlayer =
12496
+ /*#__PURE__*/
12497
+ function (_Component) {
12499
12498
  _inherits(ReactPlayer, _Component);
12500
12499
 
12501
- var _super = _createSuper(ReactPlayer);
12502
-
12503
12500
  function ReactPlayer() {
12501
+ var _getPrototypeOf2;
12502
+
12504
12503
  var _this;
12505
12504
 
12506
12505
  _classCallCheck(this, ReactPlayer);
@@ -12509,7 +12508,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
12509
12508
  args[_key] = arguments[_key];
12510
12509
  }
12511
12510
 
12512
- _this = _super.call.apply(_super, [this].concat(args));
12511
+ _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
12513
12512
 
12514
12513
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
12515
12514
 
@@ -12620,7 +12619,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
12620
12619
  key: "renderActivePlayer",
12621
12620
  value: function renderActivePlayer(url, activePlayer) {
12622
12621
  if (!url) return null;
12623
- return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
12622
+ return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
12624
12623
  key: activePlayer.displayName,
12625
12624
  ref: this.activePlayerRef,
12626
12625
  config: this.config,
@@ -12657,14 +12656,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
12657
12656
  var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
12658
12657
  var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
12659
12658
 
12660
- var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
12659
+ var preview = _react["default"].createElement(_Preview["default"], {
12661
12660
  url: url,
12662
12661
  light: light,
12663
12662
  playIcon: playIcon,
12664
12663
  onClick: this.handleClickPreview
12665
12664
  });
12666
12665
 
12667
- return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
12666
+ return _react["default"].createElement(Wrapper, _extends({
12668
12667
  ref: this.wrapperRef,
12669
12668
  style: _objectSpread({}, style, {
12670
12669
  width: width,
@@ -13277,7 +13276,7 @@ var Poll = function Poll(_ref) {
13277
13276
  );
13278
13277
  };
13279
13278
 
13280
- var numberOfPaginations = main_38 ? 4 : 10;
13279
+ var numberOfPaginations = main_35 ? 4 : 10;
13281
13280
 
13282
13281
  var Quiz = function Quiz(_ref) {
13283
13282
  var quizzes = _ref.quizzes,
@@ -13390,7 +13389,7 @@ var Quiz = function Quiz(_ref) {
13390
13389
  var renderPagination = function renderPagination() {
13391
13390
  return React__default.createElement(
13392
13391
  Pagination,
13393
- { className: 'p-0 m-0', size: main_38 && 'sm' },
13392
+ { className: 'p-0 m-0', size: main_35 && 'sm' },
13394
13393
  React__default.createElement(Pagination.First, { onClick: function onClick() {
13395
13394
  return changePage('first');
13396
13395
  }, disabled: currentPage === 1 }),
@@ -13630,7 +13629,7 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
13630
13629
  };
13631
13630
 
13632
13631
  var Figure = dynamic(function () {
13633
- return import('./Figure-cc1affbe.js');
13632
+ return import('./Figure-2d14847b.js');
13634
13633
  }, { ssr: false });
13635
13634
 
13636
13635
  var ScrollToElement = function ScrollToElement(elementId) {
@@ -13901,7 +13900,7 @@ var Feature = function Feature(props) {
13901
13900
  };
13902
13901
  //image width
13903
13902
  var imageWidth = 900;
13904
- if (main_39) {
13903
+ if (main_36) {
13905
13904
  imageWidth = 450;
13906
13905
  }
13907
13906
 
@@ -14281,16 +14280,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
14281
14280
  _ref$className = _ref.className,
14282
14281
  className = _ref$className === undefined ? '' : _ref$className;
14283
14282
 
14284
- /*
14285
- Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
14286
- example:
14287
- <RelatedTopicDropdown
14288
- page='/clinical'
14289
- exclude="clinical"
14290
- className='mb-3'
14291
- parentTaxonomy={props.parentTaxonomy}
14292
- subTaxonomies={props.subTaxonomies}
14293
- />
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
+ />
14294
14293
  */
14295
14294
  if (subTaxonomies.length === 0 && parentTaxonomy) {
14296
14295
  if (parentTaxonomy.identifier == exclude) {
@@ -14756,48 +14755,48 @@ module.exports = { "default": set, __esModule: true };
14756
14755
 
14757
14756
  var _Set = unwrapExports(set$1);
14758
14757
 
14759
- /* usage & query
14760
- const Publication = (props) => {
14761
- const { cache, pub, year } = props
14762
-
14763
- const targeting = {
14764
- content_placement: [`/journals/${pub.identifier.current}`],
14765
- document_url: [`/journals/${pub.identifier.current}`],
14766
- }
14767
-
14768
- return (
14769
- <Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
14770
- <PublicationLanding publication={pub} year={year} href={'journals'} />
14771
- </Shell>
14772
- )
14773
- }
14774
-
14775
- Publication.getInitialProps = async (ctx) => {
14776
- const { query } = ctx
14777
- const {
14778
- query: { year },
14779
- } = ctx
14780
- const pub = await client.fetch(
14781
- `*[_type == 'publication'
14782
- && identifier.current == $publication][0] {
14783
- ...,
14784
- 'issues': *[_type == 'publication'
14785
- && is_visible
14786
- && references(^._id)] | order(year desc, month desc)
14787
- }`,
14788
- query
14789
- )
14790
- const builder = imageUrlBuilder(client)
14791
- const urlFor = (source) => {
14792
- return builder.image(source)
14793
- }
14794
- pub.issues.map((issue) => {
14795
- issue.thumbnail = urlFor(issue.thumbnail).url()
14796
- })
14797
- return { pub, year }
14798
- }
14799
-
14800
- 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(
14780
+ `*[_type == 'publication'
14781
+ && identifier.current == $publication][0] {
14782
+ ...,
14783
+ 'issues': *[_type == 'publication'
14784
+ && is_visible
14785
+ && references(^._id)] | order(year desc, month desc)
14786
+ }`,
14787
+ query
14788
+ )
14789
+ const builder = imageUrlBuilder(client)
14790
+ const urlFor = (source) => {
14791
+ return builder.image(source)
14792
+ }
14793
+ pub.issues.map((issue) => {
14794
+ issue.thumbnail = urlFor(issue.thumbnail).url()
14795
+ })
14796
+ return { pub, year }
14797
+ }
14798
+
14799
+ export default Publication
14801
14800
  */
14802
14801
 
14803
14802
  var PublicationLanding = function PublicationLanding(props) {
@@ -15764,34 +15763,34 @@ var GridHero = function GridHero(props) {
15764
15763
  );
15765
15764
  };
15766
15765
 
15767
- /*
15768
- Sample query
15769
- let references = ''
15770
- if(article.taxonomyMapping.length > 0){
15771
- article.taxonomyMapping.forEach((ref, index) => {
15772
- references = references + `references('${ref._ref}') `
15773
- if(index+1 !== article.taxonomyMapping.length){
15774
- references = references + ` && `
15775
- }
15776
- })
15777
- }
15778
-
15779
- 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] {
15780
- ...,
15781
- title,
15782
- summary,
15783
- thumbnail,
15784
- url,
15785
- published,
15786
- authorMapping[]->,
15787
- contentCategory->
15788
- }`
15789
- const relatedArticles = await client.fetch(relatedArticlesQuery)
15790
-
15791
- Sample usage
15792
- <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
15793
-
15794
-
15766
+ /*
15767
+ Sample query
15768
+ let references = ''
15769
+ if(article.taxonomyMapping.length > 0){
15770
+ article.taxonomyMapping.forEach((ref, index) => {
15771
+ references = references + `references('${ref._ref}') `
15772
+ if(index+1 !== article.taxonomyMapping.length){
15773
+ references = references + ` && `
15774
+ }
15775
+ })
15776
+ }
15777
+
15778
+ 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] {
15779
+ ...,
15780
+ title,
15781
+ summary,
15782
+ thumbnail,
15783
+ url,
15784
+ published,
15785
+ authorMapping[]->,
15786
+ contentCategory->
15787
+ }`
15788
+ const relatedArticles = await client.fetch(relatedArticlesQuery)
15789
+
15790
+ Sample usage
15791
+ <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
15792
+
15793
+
15795
15794
  */
15796
15795
  var RelatedContent = function RelatedContent(props) {
15797
15796
  var client = props.client,
@@ -15858,21 +15857,21 @@ var RelatedContent = function RelatedContent(props) {
15858
15857
  );
15859
15858
  };
15860
15859
 
15861
- /*
15862
- Example usage - targetedonc.com/latest-conference
15863
- 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] {
15864
- ...,
15865
- title,
15866
- summary,
15867
- thumbnail,
15868
- url,
15869
- published,
15870
- documentGroup->,
15871
- contentCategory->,
15872
- 'pageNumber': ${currentPage}
15873
- }`
15874
-
15875
- const posts = await client.fetch(query, params)
15860
+ /*
15861
+ Example usage - targetedonc.com/latest-conference
15862
+ 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] {
15863
+ ...,
15864
+ title,
15865
+ summary,
15866
+ thumbnail,
15867
+ url,
15868
+ published,
15869
+ documentGroup->,
15870
+ contentCategory->,
15871
+ 'pageNumber': ${currentPage}
15872
+ }`
15873
+
15874
+ const posts = await client.fetch(query, params)
15876
15875
  */
15877
15876
 
15878
15877
  var ConferenceArticleCard = function ConferenceArticleCard(props) {
@@ -17286,7 +17285,7 @@ var Article = function Article(props) {
17286
17285
  React__default.createElement('br', null),
17287
17286
  React__default.createElement('br', null)
17288
17287
  ),
17289
- main_39 && props.article.Ads.map(function (ad, index) {
17288
+ main_36 && props.article.Ads.map(function (ad, index) {
17290
17289
  if (index === 0) {
17291
17290
  return React__default.createElement(
17292
17291
  'div',
@@ -17311,7 +17310,7 @@ var Article = function Article(props) {
17311
17310
  renderIsiContent(props.article)
17312
17311
  )
17313
17312
  ),
17314
- main_39 && props.article.Ads.map(function (ad, index) {
17313
+ main_36 && props.article.Ads.map(function (ad, index) {
17315
17314
  if (index > 0) {
17316
17315
  return React__default.createElement(
17317
17316
  'div',
@@ -17428,7 +17427,7 @@ var ArticleQueue = function ArticleQueue(props) {
17428
17427
  setQueueData = _useState4[1];
17429
17428
 
17430
17429
  var refreshAD = function refreshAD(path) {
17431
- if (!main_39) {
17430
+ if (!main_36) {
17432
17431
  var activeArticle = queueData.find(function (item) {
17433
17432
  return item.url.current === path;
17434
17433
  });
@@ -17556,27 +17555,27 @@ var ArticleQueue = function ArticleQueue(props) {
17556
17555
  };
17557
17556
 
17558
17557
  var KMTracker = function KMTracker(props) {
17559
- var id = props.id;
17558
+ var id = props.id;
17560
17559
 
17561
- if (document && id) {
17560
+ if (document && id) {
17562
17561
  (function () {
17563
- var ecnJquery = document.createElement('script');
17562
+ var ecnJquery = document.createElement('script');
17564
17563
 
17565
- ecnJquery.type = 'text/javascript';
17566
- ecnJquery.async = true;
17567
- ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
17564
+ ecnJquery.type = 'text/javascript';
17565
+ ecnJquery.async = true;
17566
+ ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
17568
17567
 
17569
- var ecnScript = document.createElement('script');
17568
+ var ecnScript = document.createElement('script');
17570
17569
 
17571
- ecnScript.type = 'text/javascript';
17572
- ecnScript.async = true;
17573
- ecnScript.id = 'km-tracker';
17574
- ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
17570
+ ecnScript.type = 'text/javascript';
17571
+ ecnScript.async = true;
17572
+ ecnScript.id = 'km-tracker';
17573
+ ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
17575
17574
 
17576
- document.head.appendChild(ecnJquery);
17577
- document.head.appendChild(ecnScript);
17578
- })();
17579
- }
17575
+ document.head.appendChild(ecnJquery);
17576
+ document.head.appendChild(ecnScript);
17577
+ })();
17578
+ }
17580
17579
  };
17581
17580
 
17582
17581
  var getSeriesDetail = function getSeriesDetail(article, currentSeries) {
@@ -19638,6 +19637,9 @@ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
19638
19637
  if (value != null) {
19639
19638
  if ($gOPD && (i + 1) >= parts.length) {
19640
19639
  var desc = $gOPD(value, parts[i]);
19640
+ if (!allowMissing && !(parts[i] in value)) {
19641
+ throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
19642
+ }
19641
19643
  value = desc ? (desc.get || desc.value) : value[parts[i]];
19642
19644
  } else {
19643
19645
  value = value[parts[i]];
@@ -19670,7 +19672,16 @@ var callBound = function callBoundIntrinsic(name, allowMissing) {
19670
19672
  return intrinsic;
19671
19673
  };
19672
19674
 
19673
- var $defineProperty = GetIntrinsic('%Object.defineProperty%');
19675
+ var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
19676
+
19677
+ if ($defineProperty) {
19678
+ try {
19679
+ $defineProperty({}, 'a', { value: 1 });
19680
+ } catch (e) {
19681
+ // IE 8 has a broken defineProperty
19682
+ $defineProperty = null;
19683
+ }
19684
+ }
19674
19685
 
19675
19686
 
19676
19687
 
@@ -19813,6 +19824,224 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
19813
19824
  return obj;
19814
19825
  };
19815
19826
 
19827
+ var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
19828
+ if ($gOPD$1) {
19829
+ try {
19830
+ $gOPD$1([], 'length');
19831
+ } catch (e) {
19832
+ // IE 8 has a broken gOPD
19833
+ $gOPD$1 = null;
19834
+ }
19835
+ }
19836
+
19837
+ var getOwnPropertyDescriptor = $gOPD$1;
19838
+
19839
+ var $Array = GetIntrinsic('%Array%');
19840
+
19841
+ // eslint-disable-next-line global-require
19842
+ var toStr$4 = !$Array.isArray && callBound('Object.prototype.toString');
19843
+
19844
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-isarray
19845
+
19846
+ var IsArray = $Array.isArray || function IsArray(argument) {
19847
+ return toStr$4(argument) === '[object Array]';
19848
+ };
19849
+
19850
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
19851
+
19852
+ var IsPropertyKey = function IsPropertyKey(argument) {
19853
+ return typeof argument === 'string' || typeof argument === 'symbol';
19854
+ };
19855
+
19856
+ var regexExec = RegExp.prototype.exec;
19857
+ var gOPD = Object.getOwnPropertyDescriptor;
19858
+
19859
+ var tryRegexExecCall = function tryRegexExec(value) {
19860
+ try {
19861
+ var lastIndex = value.lastIndex;
19862
+ value.lastIndex = 0; // eslint-disable-line no-param-reassign
19863
+
19864
+ regexExec.call(value);
19865
+ return true;
19866
+ } catch (e) {
19867
+ return false;
19868
+ } finally {
19869
+ value.lastIndex = lastIndex; // eslint-disable-line no-param-reassign
19870
+ }
19871
+ };
19872
+ var toStr$5 = Object.prototype.toString;
19873
+ var regexClass = '[object RegExp]';
19874
+ var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
19875
+
19876
+ var isRegex = function isRegex(value) {
19877
+ if (!value || typeof value !== 'object') {
19878
+ return false;
19879
+ }
19880
+ if (!hasToStringTag) {
19881
+ return toStr$5.call(value) === regexClass;
19882
+ }
19883
+
19884
+ var descriptor = gOPD(value, 'lastIndex');
19885
+ var hasLastIndexDataProperty = descriptor && src$1(descriptor, 'value');
19886
+ if (!hasLastIndexDataProperty) {
19887
+ return false;
19888
+ }
19889
+
19890
+ return tryRegexExecCall(value);
19891
+ };
19892
+
19893
+ // http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
19894
+
19895
+ var ToBoolean = function ToBoolean(value) { return !!value; };
19896
+
19897
+ var $match = GetIntrinsic('%Symbol.match%', true);
19898
+
19899
+
19900
+
19901
+
19902
+
19903
+ // https://ecma-international.org/ecma-262/6.0/#sec-isregexp
19904
+
19905
+ var IsRegExp = function IsRegExp(argument) {
19906
+ if (!argument || typeof argument !== 'object') {
19907
+ return false;
19908
+ }
19909
+ if ($match) {
19910
+ var isRegExp = argument[$match];
19911
+ if (typeof isRegExp !== 'undefined') {
19912
+ return ToBoolean(isRegExp);
19913
+ }
19914
+ }
19915
+ return isRegex(argument);
19916
+ };
19917
+
19918
+ var fnToStr = Function.prototype.toString;
19919
+
19920
+ var constructorRegex = /^\s*class\b/;
19921
+ var isES6ClassFn = function isES6ClassFunction(value) {
19922
+ try {
19923
+ var fnStr = fnToStr.call(value);
19924
+ return constructorRegex.test(fnStr);
19925
+ } catch (e) {
19926
+ return false; // not a function
19927
+ }
19928
+ };
19929
+
19930
+ var tryFunctionObject = function tryFunctionToStr(value) {
19931
+ try {
19932
+ if (isES6ClassFn(value)) { return false; }
19933
+ fnToStr.call(value);
19934
+ return true;
19935
+ } catch (e) {
19936
+ return false;
19937
+ }
19938
+ };
19939
+ var toStr$6 = Object.prototype.toString;
19940
+ var fnClass = '[object Function]';
19941
+ var genClass = '[object GeneratorFunction]';
19942
+ var hasToStringTag$1 = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
19943
+
19944
+ var isCallable = function isCallable(value) {
19945
+ if (!value) { return false; }
19946
+ if (typeof value !== 'function' && typeof value !== 'object') { return false; }
19947
+ if (typeof value === 'function' && !value.prototype) { return true; }
19948
+ if (hasToStringTag$1) { return tryFunctionObject(value); }
19949
+ if (isES6ClassFn(value)) { return false; }
19950
+ var strClass = toStr$6.call(value);
19951
+ return strClass === fnClass || strClass === genClass;
19952
+ };
19953
+
19954
+ // http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
19955
+
19956
+ var IsCallable = isCallable;
19957
+
19958
+ var $TypeError$2 = GetIntrinsic('%TypeError%');
19959
+
19960
+
19961
+
19962
+
19963
+
19964
+ // https://ecma-international.org/ecma-262/5.1/#sec-8.10.5
19965
+
19966
+ var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
19967
+ if (Type$1(Obj) !== 'Object') {
19968
+ throw new $TypeError$2('ToPropertyDescriptor requires an object');
19969
+ }
19970
+
19971
+ var desc = {};
19972
+ if (src$1(Obj, 'enumerable')) {
19973
+ desc['[[Enumerable]]'] = ToBoolean(Obj.enumerable);
19974
+ }
19975
+ if (src$1(Obj, 'configurable')) {
19976
+ desc['[[Configurable]]'] = ToBoolean(Obj.configurable);
19977
+ }
19978
+ if (src$1(Obj, 'value')) {
19979
+ desc['[[Value]]'] = Obj.value;
19980
+ }
19981
+ if (src$1(Obj, 'writable')) {
19982
+ desc['[[Writable]]'] = ToBoolean(Obj.writable);
19983
+ }
19984
+ if (src$1(Obj, 'get')) {
19985
+ var getter = Obj.get;
19986
+ if (typeof getter !== 'undefined' && !IsCallable(getter)) {
19987
+ throw new TypeError('getter must be a function');
19988
+ }
19989
+ desc['[[Get]]'] = getter;
19990
+ }
19991
+ if (src$1(Obj, 'set')) {
19992
+ var setter = Obj.set;
19993
+ if (typeof setter !== 'undefined' && !IsCallable(setter)) {
19994
+ throw new $TypeError$2('setter must be a function');
19995
+ }
19996
+ desc['[[Set]]'] = setter;
19997
+ }
19998
+
19999
+ if ((src$1(desc, '[[Get]]') || src$1(desc, '[[Set]]')) && (src$1(desc, '[[Value]]') || src$1(desc, '[[Writable]]'))) {
20000
+ throw new $TypeError$2('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute');
20001
+ }
20002
+ return desc;
20003
+ };
20004
+
20005
+ var $TypeError$3 = GetIntrinsic('%TypeError%');
20006
+
20007
+
20008
+
20009
+ var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
20010
+
20011
+
20012
+
20013
+
20014
+
20015
+
20016
+
20017
+
20018
+
20019
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
20020
+
20021
+ var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
20022
+ if (Type$1(O) !== 'Object') {
20023
+ throw new $TypeError$3('Assertion failed: O must be an Object');
20024
+ }
20025
+ if (!IsPropertyKey(P)) {
20026
+ throw new $TypeError$3('Assertion failed: P must be a Property Key');
20027
+ }
20028
+ if (!src$1(O, P)) {
20029
+ return void 0;
20030
+ }
20031
+ if (!getOwnPropertyDescriptor) {
20032
+ // ES3 / IE 8 fallback
20033
+ var arrayLength = IsArray(O) && P === 'length';
20034
+ var regexLastIndex = IsRegExp(O) && P === 'lastIndex';
20035
+ return {
20036
+ '[[Configurable]]': !(arrayLength || regexLastIndex),
20037
+ '[[Enumerable]]': $isEnumerable$1(O, P),
20038
+ '[[Value]]': O[P],
20039
+ '[[Writable]]': true
20040
+ };
20041
+ }
20042
+ return ToPropertyDescriptor(getOwnPropertyDescriptor(O, P));
20043
+ };
20044
+
19816
20045
  // https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
19817
20046
 
19818
20047
  var IsDataDescriptor = function IsDataDescriptor(Desc) {
@@ -19846,16 +20075,10 @@ var IsExtensible = $preventExtensions
19846
20075
  ? function IsExtensible(obj) {
19847
20076
  return !isPrimitive$1(obj) && $isExtensible(obj);
19848
20077
  }
19849
- : function IsExtensible(obj) { // eslint-disable-line no-unused-vars
19850
- return true;
20078
+ : function IsExtensible(obj) {
20079
+ return !isPrimitive$1(obj);
19851
20080
  };
19852
20081
 
19853
- // https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
19854
-
19855
- var IsPropertyKey = function IsPropertyKey(argument) {
19856
- return typeof argument === 'string' || typeof argument === 'symbol';
19857
- };
19858
-
19859
20082
  var _isNaN = Number.isNaN || function isNaN(a) {
19860
20083
  return a !== a;
19861
20084
  };
@@ -19870,8 +20093,8 @@ var SameValue = function SameValue(x, y) {
19870
20093
  return _isNaN(x) && _isNaN(y);
19871
20094
  };
19872
20095
 
19873
- var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
19874
- var $TypeError$2 = GetIntrinsic('%TypeError%');
20096
+ var $TypeError$4 = GetIntrinsic('%TypeError%');
20097
+
19875
20098
 
19876
20099
 
19877
20100
 
@@ -19886,12 +20109,12 @@ var $TypeError$2 = GetIntrinsic('%TypeError%');
19886
20109
 
19887
20110
  var CreateDataProperty = function CreateDataProperty(O, P, V) {
19888
20111
  if (Type$1(O) !== 'Object') {
19889
- throw new $TypeError$2('Assertion failed: Type(O) is not Object');
20112
+ throw new $TypeError$4('Assertion failed: Type(O) is not Object');
19890
20113
  }
19891
20114
  if (!IsPropertyKey(P)) {
19892
- throw new $TypeError$2('Assertion failed: IsPropertyKey(P) is not true');
20115
+ throw new $TypeError$4('Assertion failed: IsPropertyKey(P) is not true');
19893
20116
  }
19894
- var oldDesc = $gOPD$1(O, P);
20117
+ var oldDesc = OrdinaryGetOwnProperty(O, P);
19895
20118
  var extensible = oldDesc || IsExtensible(O);
19896
20119
  var immutable = oldDesc && (!oldDesc.writable || !oldDesc.configurable);
19897
20120
  if (immutable || !extensible) {
@@ -19912,53 +20135,13 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
19912
20135
  );
19913
20136
  };
19914
20137
 
19915
- var fnToStr = Function.prototype.toString;
19916
-
19917
- var constructorRegex = /^\s*class\b/;
19918
- var isES6ClassFn = function isES6ClassFunction(value) {
19919
- try {
19920
- var fnStr = fnToStr.call(value);
19921
- return constructorRegex.test(fnStr);
19922
- } catch (e) {
19923
- return false; // not a function
19924
- }
19925
- };
19926
-
19927
- var tryFunctionObject = function tryFunctionToStr(value) {
19928
- try {
19929
- if (isES6ClassFn(value)) { return false; }
19930
- fnToStr.call(value);
19931
- return true;
19932
- } catch (e) {
19933
- return false;
19934
- }
19935
- };
19936
- var toStr$4 = Object.prototype.toString;
19937
- var fnClass = '[object Function]';
19938
- var genClass = '[object GeneratorFunction]';
19939
- var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
19940
-
19941
- var isCallable = function isCallable(value) {
19942
- if (!value) { return false; }
19943
- if (typeof value !== 'function' && typeof value !== 'object') { return false; }
19944
- if (typeof value === 'function' && !value.prototype) { return true; }
19945
- if (hasToStringTag) { return tryFunctionObject(value); }
19946
- if (isES6ClassFn(value)) { return false; }
19947
- var strClass = toStr$4.call(value);
19948
- return strClass === fnClass || strClass === genClass;
19949
- };
19950
-
19951
- // http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
19952
-
19953
- var IsCallable = isCallable;
19954
-
19955
- var $TypeError$3 = GetIntrinsic('%TypeError%');
20138
+ var $TypeError$5 = GetIntrinsic('%TypeError%');
19956
20139
 
19957
20140
  // http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
19958
20141
 
19959
20142
  var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
19960
20143
  if (value == null) {
19961
- throw new $TypeError$3(optMessage || ('Cannot call method on ' + value));
20144
+ throw new $TypeError$5(optMessage || ('Cannot call method on ' + value));
19962
20145
  }
19963
20146
  return value;
19964
20147
  };
@@ -20029,241 +20212,6 @@ defineProperties_1(implementation$2, {
20029
20212
 
20030
20213
  var object_getownpropertydescriptors = implementation$2;
20031
20214
 
20032
- /* globals
20033
- Atomics,
20034
- SharedArrayBuffer,
20035
- */
20036
-
20037
- var undefined$2;
20038
-
20039
- var $TypeError$4 = TypeError;
20040
-
20041
- var $gOPD$3 = Object.getOwnPropertyDescriptor;
20042
- if ($gOPD$3) {
20043
- try {
20044
- $gOPD$3({}, '');
20045
- } catch (e) {
20046
- $gOPD$3 = null; // this is IE 8, which has a broken gOPD
20047
- }
20048
- }
20049
-
20050
- var throwTypeError$1 = function () { throw new $TypeError$4(); };
20051
- var ThrowTypeError$1 = $gOPD$3
20052
- ? (function () {
20053
- try {
20054
- // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
20055
- arguments.callee; // IE 8 does not throw here
20056
- return throwTypeError$1;
20057
- } catch (calleeThrows) {
20058
- try {
20059
- // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
20060
- return $gOPD$3(arguments, 'callee').get;
20061
- } catch (gOPDthrows) {
20062
- return throwTypeError$1;
20063
- }
20064
- }
20065
- }())
20066
- : throwTypeError$1;
20067
-
20068
- var hasSymbols$3 = hasSymbols$1();
20069
-
20070
- var getProto$1 = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
20071
- var generatorFunction$1 = undefined$2;
20072
- var asyncFunction$1 = undefined$2;
20073
- var asyncGenFunction$1 = undefined$2;
20074
-
20075
- var TypedArray$1 = typeof Uint8Array === 'undefined' ? undefined$2 : getProto$1(Uint8Array);
20076
-
20077
- var INTRINSICS$1 = {
20078
- '%Array%': Array,
20079
- '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer,
20080
- '%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer.prototype,
20081
- '%ArrayIteratorPrototype%': hasSymbols$3 ? getProto$1([][Symbol.iterator]()) : undefined$2,
20082
- '%ArrayPrototype%': Array.prototype,
20083
- '%ArrayProto_entries%': Array.prototype.entries,
20084
- '%ArrayProto_forEach%': Array.prototype.forEach,
20085
- '%ArrayProto_keys%': Array.prototype.keys,
20086
- '%ArrayProto_values%': Array.prototype.values,
20087
- '%AsyncFromSyncIteratorPrototype%': undefined$2,
20088
- '%AsyncFunction%': asyncFunction$1,
20089
- '%AsyncFunctionPrototype%': undefined$2,
20090
- '%AsyncGenerator%': undefined$2,
20091
- '%AsyncGeneratorFunction%': asyncGenFunction$1,
20092
- '%AsyncGeneratorPrototype%': undefined$2,
20093
- '%AsyncIteratorPrototype%': undefined$2,
20094
- '%Atomics%': typeof Atomics === 'undefined' ? undefined$2 : Atomics,
20095
- '%Boolean%': Boolean,
20096
- '%BooleanPrototype%': Boolean.prototype,
20097
- '%DataView%': typeof DataView === 'undefined' ? undefined$2 : DataView,
20098
- '%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$2 : DataView.prototype,
20099
- '%Date%': Date,
20100
- '%DatePrototype%': Date.prototype,
20101
- '%decodeURI%': decodeURI,
20102
- '%decodeURIComponent%': decodeURIComponent,
20103
- '%encodeURI%': encodeURI,
20104
- '%encodeURIComponent%': encodeURIComponent,
20105
- '%Error%': Error,
20106
- '%ErrorPrototype%': Error.prototype,
20107
- '%eval%': eval, // eslint-disable-line no-eval
20108
- '%EvalError%': EvalError,
20109
- '%EvalErrorPrototype%': EvalError.prototype,
20110
- '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array,
20111
- '%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array.prototype,
20112
- '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array,
20113
- '%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array.prototype,
20114
- '%Function%': Function,
20115
- '%FunctionPrototype%': Function.prototype,
20116
- '%Generator%': undefined$2,
20117
- '%GeneratorFunction%': generatorFunction$1,
20118
- '%GeneratorPrototype%': undefined$2,
20119
- '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array,
20120
- '%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array.prototype,
20121
- '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$2 : Int16Array,
20122
- '%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$2 : Int8Array.prototype,
20123
- '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array,
20124
- '%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array.prototype,
20125
- '%isFinite%': isFinite,
20126
- '%isNaN%': isNaN,
20127
- '%IteratorPrototype%': hasSymbols$3 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$2,
20128
- '%JSON%': typeof JSON === 'object' ? JSON : undefined$2,
20129
- '%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$2,
20130
- '%Map%': typeof Map === 'undefined' ? undefined$2 : Map,
20131
- '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Map()[Symbol.iterator]()),
20132
- '%MapPrototype%': typeof Map === 'undefined' ? undefined$2 : Map.prototype,
20133
- '%Math%': Math,
20134
- '%Number%': Number,
20135
- '%NumberPrototype%': Number.prototype,
20136
- '%Object%': Object,
20137
- '%ObjectPrototype%': Object.prototype,
20138
- '%ObjProto_toString%': Object.prototype.toString,
20139
- '%ObjProto_valueOf%': Object.prototype.valueOf,
20140
- '%parseFloat%': parseFloat,
20141
- '%parseInt%': parseInt,
20142
- '%Promise%': typeof Promise === 'undefined' ? undefined$2 : Promise,
20143
- '%PromisePrototype%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype,
20144
- '%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype.then,
20145
- '%Promise_all%': typeof Promise === 'undefined' ? undefined$2 : Promise.all,
20146
- '%Promise_reject%': typeof Promise === 'undefined' ? undefined$2 : Promise.reject,
20147
- '%Promise_resolve%': typeof Promise === 'undefined' ? undefined$2 : Promise.resolve,
20148
- '%Proxy%': typeof Proxy === 'undefined' ? undefined$2 : Proxy,
20149
- '%RangeError%': RangeError,
20150
- '%RangeErrorPrototype%': RangeError.prototype,
20151
- '%ReferenceError%': ReferenceError,
20152
- '%ReferenceErrorPrototype%': ReferenceError.prototype,
20153
- '%Reflect%': typeof Reflect === 'undefined' ? undefined$2 : Reflect,
20154
- '%RegExp%': RegExp,
20155
- '%RegExpPrototype%': RegExp.prototype,
20156
- '%Set%': typeof Set === 'undefined' ? undefined$2 : Set,
20157
- '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Set()[Symbol.iterator]()),
20158
- '%SetPrototype%': typeof Set === 'undefined' ? undefined$2 : Set.prototype,
20159
- '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer,
20160
- '%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer.prototype,
20161
- '%String%': String,
20162
- '%StringIteratorPrototype%': hasSymbols$3 ? getProto$1(''[Symbol.iterator]()) : undefined$2,
20163
- '%StringPrototype%': String.prototype,
20164
- '%Symbol%': hasSymbols$3 ? Symbol : undefined$2,
20165
- '%SymbolPrototype%': hasSymbols$3 ? Symbol.prototype : undefined$2,
20166
- '%SyntaxError%': SyntaxError,
20167
- '%SyntaxErrorPrototype%': SyntaxError.prototype,
20168
- '%ThrowTypeError%': ThrowTypeError$1,
20169
- '%TypedArray%': TypedArray$1,
20170
- '%TypedArrayPrototype%': TypedArray$1 ? TypedArray$1.prototype : undefined$2,
20171
- '%TypeError%': $TypeError$4,
20172
- '%TypeErrorPrototype%': $TypeError$4.prototype,
20173
- '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array,
20174
- '%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array.prototype,
20175
- '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray,
20176
- '%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray.prototype,
20177
- '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array,
20178
- '%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array.prototype,
20179
- '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array,
20180
- '%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array.prototype,
20181
- '%URIError%': URIError,
20182
- '%URIErrorPrototype%': URIError.prototype,
20183
- '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap,
20184
- '%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap.prototype,
20185
- '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet,
20186
- '%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet.prototype
20187
- };
20188
-
20189
-
20190
- var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
20191
-
20192
- /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
20193
- var rePropName$1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
20194
- var reEscapeChar$1 = /\\(\\)?/g; /** Used to match backslashes in property paths. */
20195
- var stringToPath$1 = function stringToPath(string) {
20196
- var result = [];
20197
- $replace$1(string, rePropName$1, function (match, number, quote, subString) {
20198
- result[result.length] = quote ? $replace$1(subString, reEscapeChar$1, '$1') : (number || match);
20199
- });
20200
- return result;
20201
- };
20202
- /* end adaptation */
20203
-
20204
- var getBaseIntrinsic$1 = function getBaseIntrinsic(name, allowMissing) {
20205
- if (!(name in INTRINSICS$1)) {
20206
- throw new SyntaxError('intrinsic ' + name + ' does not exist!');
20207
- }
20208
-
20209
- // istanbul ignore if // hopefully this is impossible to test :-)
20210
- if (typeof INTRINSICS$1[name] === 'undefined' && !allowMissing) {
20211
- throw new $TypeError$4('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
20212
- }
20213
-
20214
- return INTRINSICS$1[name];
20215
- };
20216
-
20217
- var GetIntrinsic$1 = function GetIntrinsic(name, allowMissing) {
20218
- if (typeof name !== 'string' || name.length === 0) {
20219
- throw new TypeError('intrinsic name must be a non-empty string');
20220
- }
20221
- if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
20222
- throw new TypeError('"allowMissing" argument must be a boolean');
20223
- }
20224
-
20225
- var parts = stringToPath$1(name);
20226
-
20227
- var value = getBaseIntrinsic$1('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
20228
- for (var i = 1; i < parts.length; i += 1) {
20229
- if (value != null) {
20230
- if ($gOPD$3 && (i + 1) >= parts.length) {
20231
- var desc = $gOPD$3(value, parts[i]);
20232
- if (!allowMissing && !(parts[i] in value)) {
20233
- throw new $TypeError$4('base intrinsic for ' + name + ' exists, but the property is not available.');
20234
- }
20235
- value = desc ? (desc.get || desc.value) : value[parts[i]];
20236
- } else {
20237
- value = value[parts[i]];
20238
- }
20239
- }
20240
- }
20241
- return value;
20242
- };
20243
-
20244
- var $apply$1 = GetIntrinsic$1('%Function.prototype.apply%');
20245
- var $call$1 = GetIntrinsic$1('%Function.prototype.call%');
20246
- var $reflectApply = GetIntrinsic$1('%Reflect.apply%', true) || functionBind.call($call$1, $apply$1);
20247
-
20248
- var callBind$1 = function callBind() {
20249
- return $reflectApply(functionBind, $call$1, arguments);
20250
- };
20251
-
20252
- var apply$1 = function applyBind() {
20253
- return $reflectApply(functionBind, $apply$1, arguments);
20254
- };
20255
- callBind$1.apply = apply$1;
20256
-
20257
- var $indexOf$1 = callBind$1(GetIntrinsic$1('String.prototype.indexOf'));
20258
-
20259
- var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
20260
- var intrinsic = GetIntrinsic$1(name, !!allowMissing);
20261
- if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.')) {
20262
- return callBind$1(intrinsic);
20263
- }
20264
- return intrinsic;
20265
- };
20266
-
20267
20215
  var isES5$1 = typeof Object.defineProperty === 'function'
20268
20216
  && typeof Object.defineProperties === 'function';
20269
20217
 
@@ -20281,14 +20229,14 @@ if (typeof Promise !== 'function') {
20281
20229
 
20282
20230
 
20283
20231
 
20284
- var $slice = callBound$1('Array.prototype.slice');
20285
- var $concat$1 = callBound$1('Array.prototype.concat');
20286
- var $forEach = callBound$1('Array.prototype.forEach');
20232
+ var $slice = callBound('Array.prototype.slice');
20233
+ var $concat$1 = callBound('Array.prototype.concat');
20234
+ var $forEach = callBound('Array.prototype.forEach');
20287
20235
 
20288
- var hasSymbols$4 = hasSymbols$1();
20236
+ var hasSymbols$3 = hasSymbols$1();
20289
20237
 
20290
- var kCustomPromisifiedSymbol = hasSymbols$4 ? Symbol('util.promisify.custom') : null;
20291
- var kCustomPromisifyArgsSymbol = hasSymbols$4 ? Symbol('customPromisifyArgs') : null;
20238
+ var kCustomPromisifiedSymbol = hasSymbols$3 ? Symbol('util.promisify.custom') : null;
20239
+ var kCustomPromisifyArgsSymbol = hasSymbols$3 ? Symbol('customPromisifyArgs') : null;
20292
20240
 
20293
20241
  var implementation$3 = function promisify(orig) {
20294
20242
  if (typeof orig !== 'function') {
@@ -20298,7 +20246,7 @@ var implementation$3 = function promisify(orig) {
20298
20246
  throw error;
20299
20247
  }
20300
20248
 
20301
- if (hasSymbols$4 && orig[kCustomPromisifiedSymbol]) {
20249
+ if (hasSymbols$3 && orig[kCustomPromisifiedSymbol]) {
20302
20250
  var customFunction = orig[kCustomPromisifiedSymbol];
20303
20251
  if (typeof customFunction !== 'function') {
20304
20252
  throw new TypeError('The [util.promisify.custom] property must be a function');
@@ -21597,18 +21545,18 @@ var renderAuthor$1 = function renderAuthor(authorName, authorURL, index, length)
21597
21545
  };
21598
21546
 
21599
21547
  var getContentPlacementUrl = function getContentPlacementUrl(cp) {
21600
- var cp_url = '';
21601
- if (cp.ancestor && typeof cp.ancestor == 'string') {
21602
- cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
21603
- }
21548
+ var cp_url = '';
21549
+ if (cp.ancestor && typeof cp.ancestor == 'string') {
21550
+ cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
21551
+ }
21604
21552
 
21605
- if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
21606
- cp_url += (cp_url === '' ? '' : '/') + cp.parent;
21607
- }
21553
+ if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
21554
+ cp_url += (cp_url === '' ? '' : '/') + cp.parent;
21555
+ }
21608
21556
 
21609
- cp_url += (cp_url === '' ? '' : '/') + cp.path;
21557
+ cp_url += (cp_url === '' ? '' : '/') + cp.path;
21610
21558
 
21611
- return cp_url;
21559
+ return cp_url;
21612
21560
  };
21613
21561
 
21614
21562
  var getArticleSummary$1 = function getArticleSummary(article) {
@@ -21635,7 +21583,7 @@ var getArticleSummary$1 = function getArticleSummary(article) {
21635
21583
  };
21636
21584
 
21637
21585
  function urlFor$5(client, source) {
21638
- return imageUrlBuilder(client).image(source);
21586
+ return imageUrlBuilder(client).image(source);
21639
21587
  }
21640
21588
 
21641
21589
  var getDocumentGroupUrl = function getDocumentGroupUrl(docGroup) {
@@ -21704,9 +21652,9 @@ var DocumentGroup = function DocumentGroup(_ref) {
21704
21652
  style: { display: 'flex', flexDirection: 'column', padding: '0 1rem', justifyContent: thumbnailUrl ? 'center' : 'flex-start', alignItems: 'center' } },
21705
21653
  thumbnailUrl && React__default.createElement('img', { style: { maxWidth: '220px', maxHeight: '100px', marginTop: '1rem' }, src: thumbnailUrl, alt: name }),
21706
21654
  React__default.createElement('p', {
21707
- style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main_39 ? 'left' : 'right', marginTop: '.25rem' },
21655
+ style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main_36 ? 'left' : 'right', marginTop: '.25rem' },
21708
21656
  dangerouslySetInnerHTML: { __html: name } }),
21709
- main_39 && !thumbnailUrl && React__default.createElement(
21657
+ main_36 && !thumbnailUrl && React__default.createElement(
21710
21658
  'style',
21711
21659
  { jsx: 'true' },
21712
21660
  '\n a.doc-group {\n display: block !important;\n padding: 0!important;\n }\n '
@@ -22289,7 +22237,7 @@ var Article$1 = function Article(props) {
22289
22237
  React__default.createElement(
22290
22238
  'div',
22291
22239
  { className: 'ad-box', style: { textAlign: 'center' } },
22292
- main_39 && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
22240
+ main_36 && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
22293
22241
  if (index === 0) {
22294
22242
  return React__default.createElement(
22295
22243
  'div',
@@ -22344,7 +22292,7 @@ var Article$1 = function Article(props) {
22344
22292
  renderIsiContent(props.article)
22345
22293
  )
22346
22294
  ),
22347
- main_39 && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
22295
+ main_36 && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
22348
22296
  if (index > 0) {
22349
22297
  return React__default.createElement(
22350
22298
  'div',
@@ -22395,7 +22343,7 @@ exports.default = function (obj, key, value) {
22395
22343
  };
22396
22344
  });
22397
22345
 
22398
- var _defineProperty$1 = unwrapExports(defineProperty$1);
22346
+ var _defineProperty = unwrapExports(defineProperty$1);
22399
22347
 
22400
22348
  var getTargeting = function getTargeting(props) {
22401
22349
  var article = props.article,
@@ -22511,7 +22459,7 @@ var ArticleQueue$1 = function ArticleQueue(props) {
22511
22459
 
22512
22460
  var refreshAD = function refreshAD(path) {
22513
22461
 
22514
- if (!main_39) {
22462
+ if (!main_36) {
22515
22463
  var activeArticle = queueData.find(function (item) {
22516
22464
  return item.url.current === path;
22517
22465
  });
@@ -22705,7 +22653,7 @@ var Articles = function Articles(props) {
22705
22653
  Ads: WAds,
22706
22654
  regionalPages: regionalPages,
22707
22655
  nationalPage: nationalPage
22708
- }, _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));
22656
+ }, _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));
22709
22657
  };
22710
22658
 
22711
22659
  var View = function View(props) {
@@ -22803,6 +22751,8 @@ var getQuery = function getQuery(type) {
22803
22751
  return '*[\n _type == "article" \n && defined(title) \n && defined(url) \n && !(_id in path("drafts.**")) \n && is_visible == true \n && published <= \'' + today + '\' \n && passwordLock!=true \n && taxonomyMapping[]._ref in $taxonomy \n && contentCategory->.name != \'Poll\' \n && contentCategory->.name != \'Slideshows\' \n && url.current != $url \n && !defined(body[].videos)\n ]| order(published desc)[$index]{\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, url },\n body[] {\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n \'path\': identifier.current\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n \'path\': identifier.current,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current\n },\n \'url\' : pdf.asset-> url\n }\n }';
22804
22752
  case 'article':
22805
22753
  return '*[\n _type == "article" \n && !(_id in path("drafts.**")) \n && defined(title) \n && defined(url) \n && url.current == $url \n ][0]{\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, url },\n body[] {\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n ...,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n \'path\': identifier.current\n },\n \'category\':contentCategory->{\n name\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n \'path\': identifier.current,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current\n },\n \'url\' : pdf.asset-> url\n }\n \n }';
22754
+ case 'publication':
22755
+ return '*[_type == \'publication\'\n && identifier.current == $publication][0] {\n ...,\n \'issues\': *[_type == \'publication\'\n && is_visible\n && references(^._id)\n && defined(identifier)] {\n ...,\n pdf{asset->}\n } | order(year desc, month desc)\n }';
22806
22756
  }
22807
22757
  };
22808
22758