@mjhls/mjh-framework 1.0.272 → 1.0.273

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 (42) hide show
  1. package/README.md +171 -171
  2. package/dist/cjs/DeckContent.js +9 -9
  3. package/dist/cjs/DeckQueue.js +1 -1
  4. package/dist/cjs/Figure-fe3e9705.js +145 -0
  5. package/dist/cjs/{GridContent-df5951a1.js → GridContent-8d5a738c.js} +2 -2
  6. package/dist/cjs/GridContent.js +2 -2
  7. package/dist/cjs/IssueContentDeck.js +1 -1
  8. package/dist/cjs/IssueDeck.js +1 -1
  9. package/dist/cjs/MasterDeck.js +9 -9
  10. package/dist/cjs/{Normal-47f04b2b.js → Normal-7ed9eee9.js} +29 -29
  11. package/dist/cjs/PublicationDeck.js +1 -1
  12. package/dist/cjs/QueueDeckExpanded.js +1 -1
  13. package/dist/cjs/{TaxonomyCard-e3566492.js → TaxonomyCard-b5074d6e.js} +1 -1
  14. package/dist/cjs/TaxonomyCard.js +2 -2
  15. package/dist/cjs/TemplateNormal.js +1 -1
  16. package/dist/cjs/ThumbnailCard.js +1 -1
  17. package/dist/cjs/VideoSeriesListing.js +2 -1
  18. package/dist/cjs/{YoutubeGroup-94e6efea.js → YoutubeGroup-78e6bcc3.js} +5 -437
  19. package/dist/cjs/YoutubeGroup.js +2 -1
  20. package/dist/cjs/{index-be0c82be.js → index-39beccb3.js} +2 -1
  21. package/dist/cjs/index.js +554 -682
  22. package/dist/esm/DeckContent.js +9 -9
  23. package/dist/esm/DeckQueue.js +1 -1
  24. package/dist/esm/Figure-d6e22818.js +140 -0
  25. package/dist/esm/{GridContent-8479e775.js → GridContent-b8b5f361.js} +1 -1
  26. package/dist/esm/GridContent.js +2 -2
  27. package/dist/esm/IssueContentDeck.js +1 -1
  28. package/dist/esm/IssueDeck.js +1 -1
  29. package/dist/esm/MasterDeck.js +9 -9
  30. package/dist/esm/{Normal-3e5ad3d1.js → Normal-21cfb458.js} +29 -29
  31. package/dist/esm/PublicationDeck.js +1 -1
  32. package/dist/esm/QueueDeckExpanded.js +1 -1
  33. package/dist/esm/{TaxonomyCard-2d0ab635.js → TaxonomyCard-ee1a22ae.js} +1 -1
  34. package/dist/esm/TaxonomyCard.js +2 -2
  35. package/dist/esm/TemplateNormal.js +1 -1
  36. package/dist/esm/ThumbnailCard.js +1 -1
  37. package/dist/esm/VideoSeriesListing.js +2 -1
  38. package/dist/esm/{YoutubeGroup-f59297bb.js → YoutubeGroup-a87b8967.js} +5 -437
  39. package/dist/esm/YoutubeGroup.js +2 -1
  40. package/dist/esm/{index-73819142.js → index-3849e3fe.js} +2 -1
  41. package/dist/esm/index.js +563 -691
  42. package/package.json +103 -103
package/dist/cjs/index.js CHANGED
@@ -26,7 +26,7 @@ var Link = _interopDefault(require('next/link'));
26
26
  var Router = require('next/router');
27
27
  var Router__default = _interopDefault(Router);
28
28
  require('react-dom');
29
- var index$1 = require('./index-be0c82be.js');
29
+ var index$1 = require('./index-39beccb3.js');
30
30
  require('./index-fa0fb52c.js');
31
31
  var entities = require('./entities-310b46ee.js');
32
32
  var slicedToArray = require('./slicedToArray-e38fb29d.js');
@@ -35,13 +35,14 @@ require('./promise-b96c61f8.js');
35
35
  require('./ADInfeed-f560c2f9.js');
36
36
  var DeckContent = require('./DeckContent.js');
37
37
  require('./get-1f91592f.js');
38
- var GridContent = require('./GridContent-df5951a1.js');
38
+ var GridContent = require('./GridContent-8d5a738c.js');
39
39
  var DeckQueue = require('./DeckQueue.js');
40
40
  require('react-bootstrap/Media');
41
41
  var ThumbnailCard = require('./ThumbnailCard.js');
42
- var TaxonomyCard = require('./TaxonomyCard-e3566492.js');
42
+ var TaxonomyCard = require('./TaxonomyCard-b5074d6e.js');
43
43
  var GroupDeck = require('./GroupDeck.js');
44
- var YoutubeGroup = require('./YoutubeGroup-94e6efea.js');
44
+ var YoutubeGroup = require('./YoutubeGroup-78e6bcc3.js');
45
+ require('smoothscroll-polyfill');
45
46
  var reactBootstrap = require('react-bootstrap');
46
47
  var QueueDeckExpanded = require('./QueueDeckExpanded.js');
47
48
  var index_esm = require('./index.esm-340d3792.js');
@@ -53,7 +54,7 @@ var IssueDeck = require('./IssueDeck.js');
53
54
  require('react-bootstrap/Badge');
54
55
  var IssueContentDeck = require('./IssueContentDeck.js');
55
56
  var Spinner = _interopDefault(require('react-bootstrap/Spinner'));
56
- var TemplateNormal = require('./Normal-47f04b2b.js');
57
+ var TemplateNormal = require('./Normal-7ed9eee9.js');
57
58
  require('react-bootstrap/ListGroup');
58
59
  var Head = _interopDefault(require('next/head'));
59
60
  var Accordion = _interopDefault(require('react-bootstrap/Accordion'));
@@ -66,6 +67,7 @@ require('react-bootstrap/Form');
66
67
  require('react-bootstrap/FormControl');
67
68
  var Modal = _interopDefault(require('react-bootstrap/Modal'));
68
69
  var Pagination = _interopDefault(require('react-bootstrap/Pagination'));
70
+ var dynamic = _interopDefault(require('next/dynamic'));
69
71
  var Carousel = _interopDefault(require('react-bootstrap/Carousel'));
70
72
  var Breadcrumb = _interopDefault(require('react-bootstrap/Breadcrumb'));
71
73
  var DropdownButton = _interopDefault(require('react-bootstrap/DropdownButton'));
@@ -3081,153 +3083,7 @@ var ADWelcome = function ADWelcome(_ref) {
3081
3083
  );
3082
3084
  };
3083
3085
 
3084
- var urlFor$1 = function urlFor(source, client) {
3085
- var builder = index$1.imageUrlBuilder(client);
3086
- return builder.image(source).auto('format');
3087
- };
3088
-
3089
- var FigureComponent = function FigureComponent(_ref) {
3090
- var node = _ref.node,
3091
- client = _ref.client;
3092
-
3093
- var imgElement = React.useRef(null);
3094
-
3095
- var _useState = React.useState(null),
3096
- _useState2 = slicedToArray._slicedToArray(_useState, 2),
3097
- imageWidth = _useState2[0],
3098
- setimageWidth = _useState2[1];
3099
-
3100
- var _useState3 = React.useState(null),
3101
- _useState4 = slicedToArray._slicedToArray(_useState3, 2),
3102
- imgFloat = _useState4[0],
3103
- setimgFloat = _useState4[1];
3104
-
3105
- var _useState5 = React.useState(false),
3106
- _useState6 = slicedToArray._slicedToArray(_useState5, 2),
3107
- openImg = _useState6[0],
3108
- setOpenImg = _useState6[1];
3109
-
3110
- var _useState7 = React.useState(''),
3111
- _useState8 = slicedToArray._slicedToArray(_useState7, 2),
3112
- openImgSrc = _useState8[0],
3113
- setOpenImgSrc = _useState8[1];
3114
-
3115
- var caption = node.caption,
3116
- alt = node.alt,
3117
- blank = node.blank,
3118
- link = node.link,
3119
- _node$alignment = node.alignment,
3120
- alignment = _node$alignment === undefined ? 'center' : _node$alignment;
3121
- var _node$widthP = node.widthP,
3122
- widthP = _node$widthP === undefined ? 'auto' : _node$widthP;
3123
-
3124
-
3125
- if (client.clientConfig && client.clientConfig.defaultImageSize && widthP === 'auto') {
3126
- widthP = client.clientConfig.defaultImageSize;
3127
- }
3128
-
3129
- var figureMargin = void 0;
3130
- if (imgFloat === 'none') {
3131
- figureMargin = '0 auto 1rem';
3132
- }
3133
- if (imgFloat === 'left') {
3134
- figureMargin = '0 1.5rem 1.5rem 0';
3135
- }
3136
- if (imgFloat === 'right') {
3137
- figureMargin = '0 0 1.5rem 1.5rem';
3138
- }
3139
-
3140
- var loadImg = function loadImg() {
3141
- var screenWidth = window.innerWidth;
3142
- if (screenWidth > 1000) {
3143
- if (widthP === 'auto') {
3144
- if (imgFloat === 'none') setimageWidth('auto');else setimageWidth('30%');
3145
- } else {
3146
- setimageWidth(widthP + '%');
3147
- }
3148
- } else {
3149
- setimageWidth('100%');
3150
- }
3151
- };
3152
-
3153
- React.useEffect(function () {
3154
- var screenWidth = window.innerWidth;
3155
- if (screenWidth > 1000) {
3156
- if (widthP === 'auto') {
3157
- if (imgFloat === 'none') setimageWidth('auto');else setimageWidth('30%');
3158
- } else {
3159
- setimageWidth(widthP + '%');
3160
- }
3161
- } else {
3162
- setimageWidth('100%');
3163
- }
3164
- }, [widthP, imgFloat]);
3165
-
3166
- React.useEffect(function () {
3167
- var screenWidth = window.innerWidth;
3168
- if (screenWidth > 1000) {
3169
- var align = ['center', 'top'].includes(alignment.toLowerCase()) ? 'none' : alignment.toLowerCase();
3170
- setimgFloat(align);
3171
- } else {
3172
- var _align = ['center', 'top'].includes(alignment.toLowerCase()) ? 'none' : alignment.toLowerCase();
3173
- setimgFloat(_align);
3174
- }
3175
-
3176
- // eslint-disable-next-line react-hooks/exhaustive-deps
3177
- }, []);
3178
-
3179
- if (!node.asset) return null;
3180
-
3181
- return React__default.createElement(
3182
- React__default.Fragment,
3183
- null,
3184
- imageWidth && imgFloat && React__default.createElement(
3185
- reactBootstrap.Figure,
3186
- { className: 'd-block', style: { width: imageWidth, maxWidth: '100%', clear: 'both', float: imgFloat, margin: figureMargin } },
3187
- link ? React__default.createElement(
3188
- 'a',
3189
- { target: blank ? '_blank' : '_self', href: link },
3190
- React__default.createElement(reactBootstrap.Figure.Image, { style: { width: '100%' }, className: 'figure-image', ref: imgElement, onLoad: loadImg, src: urlFor$1(node, client).url(), alt: alt && alt }),
3191
- caption && React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } })
3192
- ) : React__default.createElement(
3193
- React__default.Fragment,
3194
- null,
3195
- React__default.createElement(reactBootstrap.Figure.Image, {
3196
- style: { width: '100%' },
3197
- className: 'figure-image',
3198
- ref: imgElement,
3199
- onLoad: loadImg,
3200
- src: urlFor$1(node, client).url(),
3201
- alt: alt && alt,
3202
- onClick: function onClick() {
3203
- setOpenImgSrc(urlFor$1(node, client).url());
3204
- setOpenImg(true);
3205
- }
3206
- }),
3207
- caption && React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } })
3208
- )
3209
- ),
3210
- React__default.createElement(
3211
- 'div',
3212
- { className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
3213
- React__default.createElement('img', { src: openImgSrc }),
3214
- React__default.createElement('a', {
3215
- className: 'lightbox-close',
3216
- onClick: function onClick() {
3217
- setOpenImgSrc('');
3218
- setOpenImg(false);
3219
- }
3220
- })
3221
- ),
3222
- React__default.createElement(
3223
- 'style',
3224
- { jsx: 'true' },
3225
- '\n figure-caption {\n font-size: 90%;\n color: #6c757d;\n }\n /*Eliminates padding, centers the thumbnail */\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 9999;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
3226
- )
3227
- );
3228
- };
3229
-
3230
- var urlFor$2 = function urlFor(source, builder) {
3086
+ var urlFor$1 = function urlFor(source, builder) {
3231
3087
  return builder.image(source).auto('format');
3232
3088
  };
3233
3089
 
@@ -3278,7 +3134,7 @@ var Slideshow = function Slideshow(_ref) {
3278
3134
  return React__default.createElement(
3279
3135
  reactBootstrap.Carousel.Item,
3280
3136
  { key: slide._key },
3281
- React__default.createElement('img', { src: slide.asset && urlFor$2(slide.asset, builder).url(), alt: slide.alt && slide.alt, style: { width: '100%' } }),
3137
+ React__default.createElement('img', { src: slide.asset && urlFor$1(slide.asset, builder).url(), alt: slide.alt && slide.alt, style: { width: '100%' } }),
3282
3138
  slide.caption && React__default.createElement(
3283
3139
  'p',
3284
3140
  { className: 'p-2' },
@@ -3290,21 +3146,18 @@ var Slideshow = function Slideshow(_ref) {
3290
3146
  );
3291
3147
  };
3292
3148
 
3293
- var isArray = Array.isArray;
3294
- var keyList = Object.keys;
3295
- var hasProp = Object.prototype.hasOwnProperty;
3149
+ // do not edit .js files directly - edit src/index.jst
3150
+
3151
+
3296
3152
 
3297
3153
  var fastDeepEqual = function equal(a, b) {
3298
3154
  if (a === b) return true;
3299
3155
 
3300
3156
  if (a && b && typeof a == 'object' && typeof b == 'object') {
3301
- var arrA = isArray(a)
3302
- , arrB = isArray(b)
3303
- , i
3304
- , length
3305
- , key;
3157
+ if (a.constructor !== b.constructor) return false;
3306
3158
 
3307
- if (arrA && arrB) {
3159
+ var length, i, keys;
3160
+ if (Array.isArray(a)) {
3308
3161
  length = a.length;
3309
3162
  if (length != b.length) return false;
3310
3163
  for (i = length; i-- !== 0;)
@@ -3312,35 +3165,29 @@ var fastDeepEqual = function equal(a, b) {
3312
3165
  return true;
3313
3166
  }
3314
3167
 
3315
- if (arrA != arrB) return false;
3316
3168
 
3317
- var dateA = a instanceof Date
3318
- , dateB = b instanceof Date;
3319
- if (dateA != dateB) return false;
3320
- if (dateA && dateB) return a.getTime() == b.getTime();
3321
3169
 
3322
- var regexpA = a instanceof RegExp
3323
- , regexpB = b instanceof RegExp;
3324
- if (regexpA != regexpB) return false;
3325
- if (regexpA && regexpB) return a.toString() == b.toString();
3170
+ if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
3171
+ if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
3172
+ if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
3326
3173
 
3327
- var keys = keyList(a);
3174
+ keys = Object.keys(a);
3328
3175
  length = keys.length;
3329
-
3330
- if (length !== keyList(b).length)
3331
- return false;
3176
+ if (length !== Object.keys(b).length) return false;
3332
3177
 
3333
3178
  for (i = length; i-- !== 0;)
3334
- if (!hasProp.call(b, keys[i])) return false;
3179
+ if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
3335
3180
 
3336
3181
  for (i = length; i-- !== 0;) {
3337
- key = keys[i];
3182
+ var key = keys[i];
3183
+
3338
3184
  if (!equal(a[key], b[key])) return false;
3339
3185
  }
3340
3186
 
3341
3187
  return true;
3342
3188
  }
3343
3189
 
3190
+ // true if both NaN, false otherwise
3344
3191
  return a!==a && b!==b;
3345
3192
  };
3346
3193
 
@@ -4363,7 +4210,7 @@ function formatValue(ctx, value, recurseTimes) {
4363
4210
  var base = '', array = false, braces = ['{', '}'];
4364
4211
 
4365
4212
  // Make Array say that they are Array
4366
- if (isArray$1(value)) {
4213
+ if (isArray(value)) {
4367
4214
  array = true;
4368
4215
  braces = ['[', ']'];
4369
4216
  }
@@ -4542,7 +4389,7 @@ function reduceToSingleString(output, base, braces) {
4542
4389
 
4543
4390
  // NOTE: These type checking functions intentionally don't use `instanceof`
4544
4391
  // because it is fragile and can be easily faked with `Object.create()`.
4545
- function isArray$1(ar) {
4392
+ function isArray(ar) {
4546
4393
  return Array.isArray(ar);
4547
4394
  }
4548
4395
 
@@ -4669,7 +4516,7 @@ var util = {
4669
4516
  isNullOrUndefined: isNullOrUndefined,
4670
4517
  isNull: isNull,
4671
4518
  isBoolean: isBoolean,
4672
- isArray: isArray$1,
4519
+ isArray: isArray,
4673
4520
  inspect: inspect,
4674
4521
  deprecate: deprecate,
4675
4522
  format: format,
@@ -5336,199 +5183,235 @@ module.exports = exports['default'];
5336
5183
 
5337
5184
  var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
5338
5185
 
5339
- 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; }; }();
5340
-
5341
- 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; };
5186
+ 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); }
5342
5187
 
5343
5188
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5344
5189
 
5345
- 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; }
5190
+ 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); } }
5191
+
5192
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5193
+
5194
+ 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); }; }
5195
+
5196
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5197
+
5198
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5199
+
5200
+ 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; } }
5201
+
5202
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5203
+
5204
+ 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); }
5205
+
5206
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
5207
+
5208
+ 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; }
5346
5209
 
5347
- 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; }
5210
+ 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; }
5348
5211
 
5349
- /**
5350
- * Check whether a `props` change should result in the video being updated.
5351
- *
5352
- * @param {Object} prevProps
5353
- * @param {Object} props
5212
+ 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; }
5213
+ /**
5214
+ * Check whether a `props` change should result in the video being updated.
5215
+ *
5216
+ * @param {Object} prevProps
5217
+ * @param {Object} props
5354
5218
  */
5219
+
5355
5220
  function shouldUpdateVideo(prevProps, props) {
5356
5221
  // A changing video should always trigger an update
5357
5222
  if (prevProps.videoId !== props.videoId) {
5358
5223
  return true;
5359
- }
5360
-
5361
- // Otherwise, a change in the start/end time playerVars also requires a player
5224
+ } // Otherwise, a change in the start/end time playerVars also requires a player
5362
5225
  // update.
5226
+
5227
+
5363
5228
  var prevVars = prevProps.opts.playerVars || {};
5364
5229
  var vars = props.opts.playerVars || {};
5365
-
5366
5230
  return prevVars.start !== vars.start || prevVars.end !== vars.end;
5367
5231
  }
5368
-
5369
- /**
5370
- * Neutralise API options that only require a video update, leaving only options
5371
- * that require a player reset. The results can then be compared to see if a
5372
- * player reset is necessary.
5373
- *
5374
- * @param {Object} opts
5232
+ /**
5233
+ * Neutralize API options that only require a video update, leaving only options
5234
+ * that require a player reset. The results can then be compared to see if a
5235
+ * player reset is necessary.
5236
+ *
5237
+ * @param {Object} opts
5375
5238
  */
5239
+
5240
+
5376
5241
  function filterResetOptions(opts) {
5377
- return _extends({}, opts, {
5378
- playerVars: _extends({}, opts.playerVars, {
5242
+ return _objectSpread({}, opts, {
5243
+ playerVars: _objectSpread({}, opts.playerVars, {
5379
5244
  autoplay: 0,
5380
5245
  start: 0,
5381
5246
  end: 0
5382
5247
  })
5383
5248
  });
5384
5249
  }
5385
-
5386
- /**
5387
- * Check whether a `props` change should result in the player being reset.
5388
- * The player is reset when the `props.opts` change, except if the only change
5389
- * is in the `start` and `end` playerVars, because a video update can deal with
5390
- * those.
5391
- *
5392
- * @param {Object} prevProps
5393
- * @param {Object} props
5250
+ /**
5251
+ * Check whether a `props` change should result in the player being reset.
5252
+ * The player is reset when the `props.opts` change, except if the only change
5253
+ * is in the `start` and `end` playerVars, because a video update can deal with
5254
+ * those.
5255
+ *
5256
+ * @param {Object} prevProps
5257
+ * @param {Object} props
5394
5258
  */
5259
+
5260
+
5395
5261
  function shouldResetPlayer(prevProps, props) {
5396
5262
  return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
5397
5263
  }
5398
-
5399
- /**
5400
- * Check whether a props change should result in an id or className update.
5401
- *
5402
- * @param {Object} prevProps
5403
- * @param {Object} props
5264
+ /**
5265
+ * Check whether a props change should result in an id or className update.
5266
+ *
5267
+ * @param {Object} prevProps
5268
+ * @param {Object} props
5404
5269
  */
5270
+
5271
+
5405
5272
  function shouldUpdatePlayer(prevProps, props) {
5406
5273
  return prevProps.id !== props.id || prevProps.className !== props.className;
5407
5274
  }
5408
5275
 
5409
- var YouTube = function (_React$Component) {
5276
+ var YouTube = /*#__PURE__*/function (_React$Component) {
5410
5277
  _inherits(YouTube, _React$Component);
5411
5278
 
5279
+ var _super = _createSuper(YouTube);
5280
+
5281
+ /**
5282
+ * Expose PlayerState constants for convenience. These constants can also be
5283
+ * accessed through the global YT object after the YouTube IFrame API is instantiated.
5284
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
5285
+ */
5412
5286
  function YouTube(props) {
5287
+ var _this;
5288
+
5413
5289
  _classCallCheck(this, YouTube);
5414
5290
 
5415
- var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
5291
+ _this = _super.call(this, props);
5416
5292
 
5417
- _this.onPlayerReady = function (event) {
5293
+ _defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
5418
5294
  return _this.props.onReady(event);
5419
- };
5295
+ });
5420
5296
 
5421
- _this.onPlayerError = function (event) {
5297
+ _defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
5422
5298
  return _this.props.onError(event);
5423
- };
5299
+ });
5424
5300
 
5425
- _this.onPlayerStateChange = function (event) {
5301
+ _defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
5426
5302
  _this.props.onStateChange(event);
5427
- switch (event.data) {
5428
5303
 
5304
+ switch (event.data) {
5429
5305
  case YouTube.PlayerState.ENDED:
5430
5306
  _this.props.onEnd(event);
5307
+
5431
5308
  break;
5432
5309
 
5433
5310
  case YouTube.PlayerState.PLAYING:
5434
5311
  _this.props.onPlay(event);
5312
+
5435
5313
  break;
5436
5314
 
5437
5315
  case YouTube.PlayerState.PAUSED:
5438
5316
  _this.props.onPause(event);
5317
+
5439
5318
  break;
5440
5319
  }
5441
- };
5320
+ });
5442
5321
 
5443
- _this.onPlayerPlaybackRateChange = function (event) {
5322
+ _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
5444
5323
  return _this.props.onPlaybackRateChange(event);
5445
- };
5324
+ });
5446
5325
 
5447
- _this.onPlayerPlaybackQualityChange = function (event) {
5326
+ _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
5448
5327
  return _this.props.onPlaybackQualityChange(event);
5449
- };
5328
+ });
5450
5329
 
5451
- _this.createPlayer = function () {
5330
+ _defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
5452
5331
  // do not attempt to create a player server-side, it won't work
5453
- if (typeof document === 'undefined') return;
5454
- // create player
5455
- var playerOpts = _extends({}, _this.props.opts, {
5332
+ if (typeof document === 'undefined') return; // create player
5333
+
5334
+ var playerOpts = _objectSpread({}, _this.props.opts, {
5456
5335
  // preload the `videoId` video if one is already given
5457
5336
  videoId: _this.props.videoId
5458
5337
  });
5459
- _this.internalPlayer = youTubePlayer(_this.container, playerOpts);
5460
- // attach event handlers
5338
+
5339
+ _this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
5340
+
5461
5341
  _this.internalPlayer.on('ready', _this.onPlayerReady);
5342
+
5462
5343
  _this.internalPlayer.on('error', _this.onPlayerError);
5344
+
5463
5345
  _this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
5346
+
5464
5347
  _this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
5348
+
5465
5349
  _this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
5466
- };
5350
+ });
5467
5351
 
5468
- _this.resetPlayer = function () {
5352
+ _defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
5469
5353
  return _this.internalPlayer.destroy().then(_this.createPlayer);
5470
- };
5354
+ });
5471
5355
 
5472
- _this.updatePlayer = function () {
5356
+ _defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
5473
5357
  _this.internalPlayer.getIframe().then(function (iframe) {
5474
5358
  if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
5475
5359
  if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
5476
5360
  });
5477
- };
5361
+ });
5478
5362
 
5479
- _this.updateVideo = function () {
5363
+ _defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
5480
5364
  if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
5481
5365
  _this.internalPlayer.stopVideo();
5366
+
5482
5367
  return;
5483
- }
5368
+ } // set queueing options
5369
+
5484
5370
 
5485
- // set queueing options
5486
5371
  var autoplay = false;
5487
5372
  var opts = {
5488
5373
  videoId: _this.props.videoId
5489
5374
  };
5375
+
5490
5376
  if ('playerVars' in _this.props.opts) {
5491
5377
  autoplay = _this.props.opts.playerVars.autoplay === 1;
5378
+
5492
5379
  if ('start' in _this.props.opts.playerVars) {
5493
5380
  opts.startSeconds = _this.props.opts.playerVars.start;
5494
5381
  }
5382
+
5495
5383
  if ('end' in _this.props.opts.playerVars) {
5496
5384
  opts.endSeconds = _this.props.opts.playerVars.end;
5497
5385
  }
5498
- }
5386
+ } // if autoplay is enabled loadVideoById
5387
+
5499
5388
 
5500
- // if autoplay is enabled loadVideoById
5501
5389
  if (autoplay) {
5502
5390
  _this.internalPlayer.loadVideoById(opts);
5391
+
5503
5392
  return;
5504
- }
5505
- // default behaviour just cues the video
5393
+ } // default behaviour just cues the video
5394
+
5395
+
5506
5396
  _this.internalPlayer.cueVideoById(opts);
5507
- };
5397
+ });
5508
5398
 
5509
- _this.refContainer = function (container) {
5399
+ _defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
5510
5400
  _this.container = container;
5511
- };
5401
+ });
5512
5402
 
5513
5403
  _this.container = null;
5514
5404
  _this.internalPlayer = null;
5515
5405
  return _this;
5516
5406
  }
5517
5407
 
5518
- /**
5519
- * Expose PlayerState constants for convenience. These constants can also be
5520
- * accessed through the global YT object after the YouTube IFrame API is instantiated.
5521
- * https://developers.google.com/youtube/iframe_api_reference#onStateChange
5522
- */
5523
-
5524
-
5525
5408
  _createClass(YouTube, [{
5526
- key: 'componentDidMount',
5409
+ key: "componentDidMount",
5527
5410
  value: function componentDidMount() {
5528
5411
  this.createPlayer();
5529
5412
  }
5530
5413
  }, {
5531
- key: 'componentDidUpdate',
5414
+ key: "componentDidUpdate",
5532
5415
  value: function componentDidUpdate(prevProps) {
5533
5416
  if (shouldUpdatePlayer(prevProps, this.props)) {
5534
5417
  this.updatePlayer();
@@ -5543,112 +5426,58 @@ var YouTube = function (_React$Component) {
5543
5426
  }
5544
5427
  }
5545
5428
  }, {
5546
- key: 'componentWillUnmount',
5429
+ key: "componentWillUnmount",
5547
5430
  value: function componentWillUnmount() {
5548
- /**
5549
- * Note: The `youtube-player` package that is used promisifies all Youtube
5550
- * Player API calls, which introduces a delay of a tick before it actually
5551
- * gets destroyed. Since React attempts to remove the element instantly
5552
- * this method isn't quick enough to reset the container element.
5431
+ /**
5432
+ * Note: The `youtube-player` package that is used promisifies all YouTube
5433
+ * Player API calls, which introduces a delay of a tick before it actually
5434
+ * gets destroyed. Since React attempts to remove the element instantly
5435
+ * this method isn't quick enough to reset the container element.
5553
5436
  */
5554
5437
  this.internalPlayer.destroy();
5555
5438
  }
5556
-
5557
- /**
5558
- * https://developers.google.com/youtube/iframe_api_reference#onReady
5559
- *
5560
- * @param {Object} event
5561
- * @param {Object} target - player object
5562
- */
5563
-
5564
-
5565
- /**
5566
- * https://developers.google.com/youtube/iframe_api_reference#onError
5567
- *
5568
- * @param {Object} event
5569
- * @param {Integer} data - error type
5570
- * @param {Object} target - player object
5571
- */
5572
-
5573
-
5574
- /**
5575
- * https://developers.google.com/youtube/iframe_api_reference#onStateChange
5576
- *
5577
- * @param {Object} event
5578
- * @param {Integer} data - status change type
5579
- * @param {Object} target - actual YT player
5580
- */
5581
-
5582
-
5583
- /**
5584
- * https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
5585
- *
5586
- * @param {Object} event
5587
- * @param {Float} data - playback rate
5588
- * @param {Object} target - actual YT player
5589
- */
5590
-
5591
-
5592
- /**
5593
- * https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
5594
- *
5595
- * @param {Object} event
5596
- * @param {String} data - playback quality
5597
- * @param {Object} target - actual YT player
5598
- */
5599
-
5600
-
5601
- /**
5602
- * Initialize the Youtube Player API on the container and attach event handlers
5603
- */
5604
-
5605
-
5606
- /**
5607
- * Shorthand for destroying and then re-creating the Youtube Player
5608
- */
5609
-
5610
-
5611
- /**
5612
- * Method to update the id and class of the Youtube Player iframe.
5613
- * React should update this automatically but since the Youtube Player API
5614
- * replaced the DIV that is mounted by React we need to do this manually.
5615
- */
5616
-
5617
-
5618
- /**
5619
- * Call Youtube Player API methods to update the currently playing video.
5620
- * Depeding on the `opts.playerVars.autoplay` this function uses one of two
5621
- * Youtube Player API methods to update the video.
5439
+ /**
5440
+ * https://developers.google.com/youtube/iframe_api_reference#onReady
5441
+ *
5442
+ * @param {Object} event
5443
+ * @param {Object} target - player object
5622
5444
  */
5623
5445
 
5624
5446
  }, {
5625
- key: 'render',
5447
+ key: "render",
5626
5448
  value: function render() {
5627
- return React__default.createElement(
5628
- 'div',
5629
- { className: this.props.containerClassName },
5630
- React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
5631
- );
5449
+ return /*#__PURE__*/React__default.createElement("div", {
5450
+ className: this.props.containerClassName
5451
+ }, /*#__PURE__*/React__default.createElement("div", {
5452
+ id: this.props.id,
5453
+ className: this.props.className,
5454
+ ref: this.refContainer
5455
+ }));
5632
5456
  }
5633
5457
  }]);
5634
5458
 
5635
5459
  return YouTube;
5636
5460
  }(React__default.Component);
5637
5461
 
5462
+ _defineProperty(YouTube, "PlayerState", {
5463
+ UNSTARTED: -1,
5464
+ ENDED: 0,
5465
+ PLAYING: 1,
5466
+ PAUSED: 2,
5467
+ BUFFERING: 3,
5468
+ CUED: 5
5469
+ });
5470
+
5638
5471
  YouTube.propTypes = {
5639
5472
  videoId: PropTypes.string,
5640
-
5641
5473
  // custom ID for player element
5642
5474
  id: PropTypes.string,
5643
-
5644
5475
  // custom class name for player element
5645
5476
  className: PropTypes.string,
5646
5477
  // custom class name for player container element
5647
5478
  containerClassName: PropTypes.string,
5648
-
5649
5479
  // https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
5650
5480
  opts: PropTypes.objectOf(PropTypes.any),
5651
-
5652
5481
  // event subscriptions
5653
5482
  onReady: PropTypes.func,
5654
5483
  onError: PropTypes.func,
@@ -5660,6 +5489,7 @@ YouTube.propTypes = {
5660
5489
  onPlaybackQualityChange: PropTypes.func
5661
5490
  };
5662
5491
  YouTube.defaultProps = {
5492
+ videoId: null,
5663
5493
  id: null,
5664
5494
  className: null,
5665
5495
  opts: {},
@@ -5673,14 +5503,6 @@ YouTube.defaultProps = {
5673
5503
  onPlaybackRateChange: function onPlaybackRateChange() {},
5674
5504
  onPlaybackQualityChange: function onPlaybackQualityChange() {}
5675
5505
  };
5676
- YouTube.PlayerState = {
5677
- UNSTARTED: -1,
5678
- ENDED: 0,
5679
- PLAYING: 1,
5680
- PAUSED: 2,
5681
- BUFFERING: 3,
5682
- CUED: 5
5683
- };
5684
5506
 
5685
5507
  var YouTubePlayer = function YouTubePlayer(_ref) {
5686
5508
  var url = _ref.url;
@@ -6704,8 +6526,8 @@ var window_1 = win;
6704
6526
 
6705
6527
  /*! @name @brightcove/react-player-loader @version 1.4.0 @license Apache-2.0 */
6706
6528
 
6707
- function _extends$1() {
6708
- _extends$1 = Object.assign || function (target) {
6529
+ function _extends() {
6530
+ _extends = Object.assign || function (target) {
6709
6531
  for (var i = 1; i < arguments.length; i++) {
6710
6532
  var source = arguments[i];
6711
6533
 
@@ -6719,7 +6541,7 @@ function _extends$1() {
6719
6541
  return target;
6720
6542
  };
6721
6543
 
6722
- return _extends$1.apply(this, arguments);
6544
+ return _extends.apply(this, arguments);
6723
6545
  }
6724
6546
 
6725
6547
  function _inheritsLoose(subClass, superClass) {
@@ -6728,7 +6550,7 @@ function _inheritsLoose(subClass, superClass) {
6728
6550
  subClass.__proto__ = superClass;
6729
6551
  }
6730
6552
 
6731
- function _assertThisInitialized(self) {
6553
+ function _assertThisInitialized$1(self) {
6732
6554
  if (self === void 0) {
6733
6555
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
6734
6556
  }
@@ -6738,8 +6560,8 @@ function _assertThisInitialized(self) {
6738
6560
 
6739
6561
  /*! @name @brightcove/player-loader @version 1.7.1 @license Apache-2.0 */
6740
6562
 
6741
- function _extends$1$1() {
6742
- _extends$1$1 = Object.assign || function (target) {
6563
+ function _extends$1() {
6564
+ _extends$1 = Object.assign || function (target) {
6743
6565
  for (var i = 1; i < arguments.length; i++) {
6744
6566
  var source = arguments[i];
6745
6567
 
@@ -6753,7 +6575,7 @@ function _extends$1$1() {
6753
6575
  return target;
6754
6576
  };
6755
6577
 
6756
- return _extends$1$1.apply(this, arguments);
6578
+ return _extends$1.apply(this, arguments);
6757
6579
  }
6758
6580
 
6759
6581
  var version$1 = "1.7.1";
@@ -6761,7 +6583,7 @@ var version$1 = "1.7.1";
6761
6583
  /*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */
6762
6584
  var version$1$1 = "1.2.0";
6763
6585
 
6764
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
6586
+ var _typeof$1 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
6765
6587
  return typeof obj;
6766
6588
  } : function (obj) {
6767
6589
  return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
@@ -6896,7 +6718,7 @@ var brightcovePlayerUrl = function brightcovePlayerUrl(_ref) {
6896
6718
 
6897
6719
  var qs = '';
6898
6720
 
6899
- if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof(queryParams)) === 'object') {
6721
+ if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof$1(queryParams)) === 'object') {
6900
6722
  qs = getQueryString(queryParams);
6901
6723
  }
6902
6724
 
@@ -7130,7 +6952,7 @@ var wrapResponsive = function wrapResponsive(embedType, embedOptions, el) {
7130
6952
  el.style.width = '100%';
7131
6953
  el.style.height = '100%';
7132
6954
 
7133
- var responsive = _extends$1$1({
6955
+ var responsive = _extends$1({
7134
6956
  aspectRatio: DEFAULT_ASPECT_RATIO,
7135
6957
  iframeHorizontalPlaylist: DEFAULT_IFRAME_HORIZONTAL_PLAYLIST,
7136
6958
  maxWidth: DEFAULT_MAX_WIDTH
@@ -7815,7 +7637,7 @@ var loadPlayer = function loadPlayer(params, resolve, reject) {
7815
7637
 
7816
7638
 
7817
7639
  var brightcovePlayerLoader = function brightcovePlayerLoader(parameters) {
7818
- var params = _extends$1$1({}, DEFAULTS, parameters);
7640
+ var params = _extends$1({}, DEFAULTS, parameters);
7819
7641
 
7820
7642
  var Promise = params.Promise,
7821
7643
  onSuccess = params.onSuccess,
@@ -7957,7 +7779,7 @@ function (_React$Component) {
7957
7779
  _this.refNode = ref;
7958
7780
  };
7959
7781
 
7960
- _this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized(_this));
7782
+ _this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized$1(_this));
7961
7783
  return _this;
7962
7784
  }
7963
7785
  /**
@@ -7978,7 +7800,7 @@ function (_React$Component) {
7978
7800
  var userSuccess = this.props.onSuccess;
7979
7801
  var userFailure = this.props.onFailure;
7980
7802
 
7981
- var options = _extends$1({}, this.props, {
7803
+ var options = _extends({}, this.props, {
7982
7804
  refNode: this.refNode,
7983
7805
  refNodeInsert: 'append',
7984
7806
  onSuccess: function onSuccess(_ref) {
@@ -8287,7 +8109,7 @@ function (_React$Component) {
8287
8109
  ;
8288
8110
 
8289
8111
  _proto.render = function render() {
8290
- var props = _extends$1({
8112
+ var props = _extends({
8291
8113
  className: 'brightcove-react-player-loader'
8292
8114
  }, this.props.attrs, {
8293
8115
  ref: this.setRefNode
@@ -8701,11 +8523,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
8701
8523
 
8702
8524
  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; }
8703
8525
 
8704
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
8526
+ 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; } } }; }
8527
+
8528
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8705
8529
 
8706
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
8530
+ 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."); }
8707
8531
 
8708
- 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; }
8532
+ 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); }
8533
+
8534
+ 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; }
8535
+
8536
+ 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; }
8709
8537
 
8710
8538
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
8711
8539
 
@@ -8835,12 +8663,12 @@ function getSDK(url, sdkGlobal) {
8835
8663
 
8836
8664
  function getConfig(props$1, defaultProps, showWarning) {
8837
8665
  var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
8838
- var _iteratorNormalCompletion = true;
8839
- var _didIteratorError = false;
8840
- var _iteratorError = undefined;
8666
+
8667
+ var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
8668
+ _step;
8841
8669
 
8842
8670
  try {
8843
- for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
8671
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
8844
8672
  var p = _step.value;
8845
8673
 
8846
8674
  if (props$1[p]) {
@@ -8855,18 +8683,9 @@ function getConfig(props$1, defaultProps, showWarning) {
8855
8683
  }
8856
8684
  }
8857
8685
  } catch (err) {
8858
- _didIteratorError = true;
8859
- _iteratorError = err;
8686
+ _iterator.e(err);
8860
8687
  } finally {
8861
- try {
8862
- if (!_iteratorNormalCompletion && _iterator["return"] != null) {
8863
- _iterator["return"]();
8864
- }
8865
- } finally {
8866
- if (_didIteratorError) {
8867
- throw _iteratorError;
8868
- }
8869
- }
8688
+ _iterator.f();
8870
8689
  }
8871
8690
 
8872
8691
  return config;
@@ -9013,12 +8832,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9013
8832
 
9014
8833
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9015
8834
 
9016
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
8835
+ 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); }; }
9017
8836
 
9018
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
8837
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9019
8838
 
9020
8839
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9021
8840
 
8841
+ 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; } }
8842
+
8843
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
8844
+
9022
8845
  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); }
9023
8846
 
9024
8847
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9027,14 +8850,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
9027
8850
 
9028
8851
  var SEEK_ON_PLAY_EXPIRY = 5000;
9029
8852
 
9030
- var Player =
9031
- /*#__PURE__*/
9032
- function (_Component) {
8853
+ var Player = /*#__PURE__*/function (_Component) {
9033
8854
  _inherits(Player, _Component);
9034
8855
 
9035
- function Player() {
9036
- var _getPrototypeOf2;
8856
+ var _super = _createSuper(Player);
9037
8857
 
8858
+ function Player() {
9038
8859
  var _this;
9039
8860
 
9040
8861
  _classCallCheck(this, Player);
@@ -9043,7 +8864,7 @@ function (_Component) {
9043
8864
  _args[_key] = arguments[_key];
9044
8865
  }
9045
8866
 
9046
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
8867
+ _this = _super.call.apply(_super, [this].concat(_args));
9047
8868
 
9048
8869
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
9049
8870
 
@@ -9368,7 +9189,7 @@ function (_Component) {
9368
9189
  return null;
9369
9190
  }
9370
9191
 
9371
- return _react["default"].createElement(Player, _extends({}, this.props, {
9192
+ return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
9372
9193
  ref: this.ref,
9373
9194
  onReady: this.handleReady,
9374
9195
  onPlay: this.handlePlay,
@@ -9429,12 +9250,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9429
9250
 
9430
9251
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9431
9252
 
9432
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9253
+ 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); }; }
9433
9254
 
9434
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9255
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9435
9256
 
9436
9257
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9437
9258
 
9259
+ 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; } }
9260
+
9261
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9262
+
9438
9263
  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); }
9439
9264
 
9440
9265
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9446,14 +9271,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
9446
9271
  function createSinglePlayer(activePlayer) {
9447
9272
  var _class, _temp;
9448
9273
 
9449
- return _temp = _class =
9450
- /*#__PURE__*/
9451
- function (_Component) {
9274
+ return _temp = _class = /*#__PURE__*/function (_Component) {
9452
9275
  _inherits(SinglePlayer, _Component);
9453
9276
 
9454
- function SinglePlayer() {
9455
- var _getPrototypeOf2;
9277
+ var _super = _createSuper(SinglePlayer);
9456
9278
 
9279
+ function SinglePlayer() {
9457
9280
  var _this;
9458
9281
 
9459
9282
  _classCallCheck(this, SinglePlayer);
@@ -9462,7 +9285,7 @@ function createSinglePlayer(activePlayer) {
9462
9285
  args[_key] = arguments[_key];
9463
9286
  }
9464
9287
 
9465
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
9288
+ _this = _super.call.apply(_super, [this].concat(args));
9466
9289
 
9467
9290
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
9468
9291
 
@@ -9530,12 +9353,12 @@ function createSinglePlayer(activePlayer) {
9530
9353
  height = _this$props.height,
9531
9354
  Wrapper = _this$props.wrapper;
9532
9355
  var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
9533
- return _react["default"].createElement(Wrapper, _extends({
9356
+ return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
9534
9357
  style: _objectSpread({}, style, {
9535
9358
  width: width,
9536
9359
  height: height
9537
9360
  })
9538
- }, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
9361
+ }, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
9539
9362
  ref: this.ref,
9540
9363
  activePlayer: activePlayer,
9541
9364
  config: this.config
@@ -9581,23 +9404,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9581
9404
 
9582
9405
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9583
9406
 
9584
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9407
+ 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); }; }
9585
9408
 
9586
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9409
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9587
9410
 
9588
9411
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9589
9412
 
9413
+ 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; } }
9414
+
9415
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9416
+
9590
9417
  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); }
9591
9418
 
9592
9419
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9593
9420
 
9594
9421
  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; }
9595
9422
 
9596
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
9423
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
9597
9424
 
9598
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
9425
+ 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."); }
9599
9426
 
9600
- 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; }
9427
+ 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); }
9428
+
9429
+ 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; }
9430
+
9431
+ 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; }
9601
9432
 
9602
9433
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9603
9434
 
@@ -9622,14 +9453,12 @@ function parsePlaylist(url) {
9622
9453
  return {};
9623
9454
  }
9624
9455
 
9625
- var YouTube =
9626
- /*#__PURE__*/
9627
- function (_Component) {
9456
+ var YouTube = /*#__PURE__*/function (_Component) {
9628
9457
  _inherits(YouTube, _Component);
9629
9458
 
9630
- function YouTube() {
9631
- var _getPrototypeOf2;
9459
+ var _super = _createSuper(YouTube);
9632
9460
 
9461
+ function YouTube() {
9633
9462
  var _this;
9634
9463
 
9635
9464
  _classCallCheck(this, YouTube);
@@ -9638,7 +9467,7 @@ function (_Component) {
9638
9467
  args[_key] = arguments[_key];
9639
9468
  }
9640
9469
 
9641
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
9470
+ _this = _super.call.apply(_super, [this].concat(args));
9642
9471
 
9643
9472
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
9644
9473
 
@@ -9826,9 +9655,9 @@ function (_Component) {
9826
9655
  height: '100%',
9827
9656
  display: display
9828
9657
  };
9829
- return _react["default"].createElement("div", {
9658
+ return /*#__PURE__*/_react["default"].createElement("div", {
9830
9659
  style: style
9831
- }, _react["default"].createElement("div", {
9660
+ }, /*#__PURE__*/_react["default"].createElement("div", {
9832
9661
  ref: this.ref
9833
9662
  }));
9834
9663
  }
@@ -9884,12 +9713,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9884
9713
 
9885
9714
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9886
9715
 
9887
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9716
+ 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); }; }
9888
9717
 
9889
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9718
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9890
9719
 
9891
9720
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9892
9721
 
9722
+ 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; } }
9723
+
9724
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9725
+
9893
9726
  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); }
9894
9727
 
9895
9728
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9898,16 +9731,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
9898
9731
 
9899
9732
  var SDK_URL = 'https://w.soundcloud.com/player/api.js';
9900
9733
  var SDK_GLOBAL = 'SC';
9901
- var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
9734
+ var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
9902
9735
 
9903
- var SoundCloud =
9904
- /*#__PURE__*/
9905
- function (_Component) {
9736
+ var SoundCloud = /*#__PURE__*/function (_Component) {
9906
9737
  _inherits(SoundCloud, _Component);
9907
9738
 
9908
- function SoundCloud() {
9909
- var _getPrototypeOf2;
9739
+ var _super = _createSuper(SoundCloud);
9910
9740
 
9741
+ function SoundCloud() {
9911
9742
  var _this;
9912
9743
 
9913
9744
  _classCallCheck(this, SoundCloud);
@@ -9916,7 +9747,7 @@ function (_Component) {
9916
9747
  args[_key] = arguments[_key];
9917
9748
  }
9918
9749
 
9919
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
9750
+ _this = _super.call.apply(_super, [this].concat(args));
9920
9751
 
9921
9752
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
9922
9753
 
@@ -10037,7 +9868,7 @@ function (_Component) {
10037
9868
  height: '100%',
10038
9869
  display: display
10039
9870
  };
10040
- return _react["default"].createElement("iframe", {
9871
+ return /*#__PURE__*/_react["default"].createElement("iframe", {
10041
9872
  ref: this.ref,
10042
9873
  src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
10043
9874
  style: style,
@@ -10099,12 +9930,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10099
9930
 
10100
9931
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10101
9932
 
10102
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9933
+ 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); }; }
10103
9934
 
10104
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9935
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10105
9936
 
10106
9937
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10107
9938
 
9939
+ 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; } }
9940
+
9941
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9942
+
10108
9943
  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); }
10109
9944
 
10110
9945
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10116,14 +9951,12 @@ var SDK_GLOBAL = 'Vimeo';
10116
9951
  var MATCH_URL = /vimeo\.com\/.+/;
10117
9952
  var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
10118
9953
 
10119
- var Vimeo =
10120
- /*#__PURE__*/
10121
- function (_Component) {
9954
+ var Vimeo = /*#__PURE__*/function (_Component) {
10122
9955
  _inherits(Vimeo, _Component);
10123
9956
 
10124
- function Vimeo() {
10125
- var _getPrototypeOf2;
9957
+ var _super = _createSuper(Vimeo);
10126
9958
 
9959
+ function Vimeo() {
10127
9960
  var _this;
10128
9961
 
10129
9962
  _classCallCheck(this, Vimeo);
@@ -10132,7 +9965,7 @@ function (_Component) {
10132
9965
  args[_key] = arguments[_key];
10133
9966
  }
10134
9967
 
10135
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
9968
+ _this = _super.call.apply(_super, [this].concat(args));
10136
9969
 
10137
9970
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10138
9971
 
@@ -10289,7 +10122,7 @@ function (_Component) {
10289
10122
  overflow: 'hidden',
10290
10123
  display: display
10291
10124
  };
10292
- return _react["default"].createElement("div", {
10125
+ return /*#__PURE__*/_react["default"].createElement("div", {
10293
10126
  key: this.props.url,
10294
10127
  ref: this.ref,
10295
10128
  style: style
@@ -10349,12 +10182,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10349
10182
 
10350
10183
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10351
10184
 
10352
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10185
+ 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); }; }
10353
10186
 
10354
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10187
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10355
10188
 
10356
10189
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10357
10190
 
10191
+ 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; } }
10192
+
10193
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10194
+
10358
10195
  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); }
10359
10196
 
10360
10197
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10367,14 +10204,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
10367
10204
  var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
10368
10205
  var PLAYER_ID_PREFIX = 'facebook-player-';
10369
10206
 
10370
- var Facebook =
10371
- /*#__PURE__*/
10372
- function (_Component) {
10207
+ var Facebook = /*#__PURE__*/function (_Component) {
10373
10208
  _inherits(Facebook, _Component);
10374
10209
 
10375
- function Facebook() {
10376
- var _getPrototypeOf2;
10210
+ var _super = _createSuper(Facebook);
10377
10211
 
10212
+ function Facebook() {
10378
10213
  var _this;
10379
10214
 
10380
10215
  _classCallCheck(this, Facebook);
@@ -10383,7 +10218,7 @@ function (_Component) {
10383
10218
  args[_key] = arguments[_key];
10384
10219
  }
10385
10220
 
10386
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
10221
+ _this = _super.call.apply(_super, [this].concat(args));
10387
10222
 
10388
10223
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10389
10224
 
@@ -10499,7 +10334,7 @@ function (_Component) {
10499
10334
  width: '100%',
10500
10335
  height: '100%'
10501
10336
  };
10502
- return _react["default"].createElement("div", {
10337
+ return /*#__PURE__*/_react["default"].createElement("div", {
10503
10338
  style: style,
10504
10339
  id: this.playerID,
10505
10340
  className: "fb-video",
@@ -10559,12 +10394,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10559
10394
 
10560
10395
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10561
10396
 
10562
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10397
+ 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); }; }
10563
10398
 
10564
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10399
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10565
10400
 
10566
10401
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10567
10402
 
10403
+ 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; } }
10404
+
10405
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10406
+
10568
10407
  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); }
10569
10408
 
10570
10409
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10575,14 +10414,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
10575
10414
  var SDK_GLOBAL = 'playerjs';
10576
10415
  var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
10577
10416
 
10578
- var Streamable =
10579
- /*#__PURE__*/
10580
- function (_Component) {
10417
+ var Streamable = /*#__PURE__*/function (_Component) {
10581
10418
  _inherits(Streamable, _Component);
10582
10419
 
10583
- function Streamable() {
10584
- var _getPrototypeOf2;
10420
+ var _super = _createSuper(Streamable);
10585
10421
 
10422
+ function Streamable() {
10586
10423
  var _this;
10587
10424
 
10588
10425
  _classCallCheck(this, Streamable);
@@ -10591,7 +10428,7 @@ function (_Component) {
10591
10428
  args[_key] = arguments[_key];
10592
10429
  }
10593
10430
 
10594
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
10431
+ _this = _super.call.apply(_super, [this].concat(args));
10595
10432
 
10596
10433
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10597
10434
 
@@ -10711,7 +10548,7 @@ function (_Component) {
10711
10548
  width: '100%',
10712
10549
  height: '100%'
10713
10550
  };
10714
- return _react["default"].createElement("iframe", {
10551
+ return /*#__PURE__*/_react["default"].createElement("iframe", {
10715
10552
  ref: this.ref,
10716
10553
  src: "https://streamable.com/o/".concat(id),
10717
10554
  frameBorder: "0",
@@ -10772,12 +10609,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10772
10609
 
10773
10610
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10774
10611
 
10775
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10612
+ 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); }; }
10776
10613
 
10777
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10614
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10778
10615
 
10779
10616
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10780
10617
 
10618
+ 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; } }
10619
+
10620
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10621
+
10781
10622
  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); }
10782
10623
 
10783
10624
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10788,26 +10629,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
10788
10629
  var SDK_GLOBAL = 'Wistia';
10789
10630
  var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
10790
10631
 
10791
- var Wistia =
10792
- /*#__PURE__*/
10793
- function (_Component) {
10632
+ var Wistia = /*#__PURE__*/function (_Component) {
10794
10633
  _inherits(Wistia, _Component);
10795
10634
 
10796
- function Wistia() {
10797
- var _getPrototypeOf2;
10635
+ var _super = _createSuper(Wistia);
10798
10636
 
10637
+ function Wistia() {
10799
10638
  var _this;
10800
10639
 
10801
10640
  _classCallCheck(this, Wistia);
10802
10641
 
10803
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
10804
- args[_key] = arguments[_key];
10642
+ for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
10643
+ _args[_key] = arguments[_key];
10805
10644
  }
10806
10645
 
10807
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
10646
+ _this = _super.call.apply(_super, [this].concat(_args));
10808
10647
 
10809
10648
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10810
10649
 
10650
+ _defineProperty(_assertThisInitialized(_this), "onPlay", function () {
10651
+ var _this$props;
10652
+
10653
+ return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
10654
+ });
10655
+
10656
+ _defineProperty(_assertThisInitialized(_this), "onPause", function () {
10657
+ var _this$props2;
10658
+
10659
+ return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
10660
+ });
10661
+
10662
+ _defineProperty(_assertThisInitialized(_this), "onSeek", function () {
10663
+ var _this$props3;
10664
+
10665
+ return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
10666
+ });
10667
+
10668
+ _defineProperty(_assertThisInitialized(_this), "onEnded", function () {
10669
+ var _this$props4;
10670
+
10671
+ return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
10672
+ });
10673
+
10811
10674
  _defineProperty(_assertThisInitialized(_this), "mute", function () {
10812
10675
  _this.callPlayer('mute');
10813
10676
  });
@@ -10829,17 +10692,13 @@ function (_Component) {
10829
10692
  value: function load(url) {
10830
10693
  var _this2 = this;
10831
10694
 
10832
- var _this$props = this.props,
10833
- playing = _this$props.playing,
10834
- muted = _this$props.muted,
10835
- controls = _this$props.controls,
10836
- _onReady = _this$props.onReady,
10837
- onPlay = _this$props.onPlay,
10838
- onPause = _this$props.onPause,
10839
- onSeek = _this$props.onSeek,
10840
- onEnded = _this$props.onEnded,
10841
- config = _this$props.config,
10842
- onError = _this$props.onError;
10695
+ var _this$props5 = this.props,
10696
+ playing = _this$props5.playing,
10697
+ muted = _this$props5.muted,
10698
+ controls = _this$props5.controls,
10699
+ _onReady = _this$props5.onReady,
10700
+ config = _this$props5.config,
10701
+ onError = _this$props5.onError;
10843
10702
  (0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
10844
10703
  window._wq = window._wq || [];
10845
10704
 
@@ -10856,19 +10715,28 @@ function (_Component) {
10856
10715
 
10857
10716
  _this2.unbind();
10858
10717
 
10859
- _this2.player.bind('play', onPlay);
10718
+ _this2.player.bind('play', _this2.onPlay);
10860
10719
 
10861
- _this2.player.bind('pause', onPause);
10720
+ _this2.player.bind('pause', _this2.onPause);
10862
10721
 
10863
- _this2.player.bind('seek', onSeek);
10722
+ _this2.player.bind('seek', _this2.onSeek);
10864
10723
 
10865
- _this2.player.bind('end', onEnded);
10724
+ _this2.player.bind('end', _this2.onEnded);
10866
10725
 
10867
10726
  _onReady();
10868
10727
  }
10869
10728
  });
10870
10729
  }, onError);
10871
10730
  }
10731
+ }, {
10732
+ key: "unbind",
10733
+ value: function unbind() {
10734
+ this.player.unbind('play', this.onPlay);
10735
+ this.player.unbind('pause', this.onPause);
10736
+ this.player.unbind('seek', this.onSeek);
10737
+ this.player.unbind('end', this.onEnded);
10738
+ } // Proxy methods to prevent listener leaks
10739
+
10872
10740
  }, {
10873
10741
  key: "play",
10874
10742
  value: function play() {
@@ -10879,19 +10747,6 @@ function (_Component) {
10879
10747
  value: function pause() {
10880
10748
  this.callPlayer('pause');
10881
10749
  }
10882
- }, {
10883
- key: "unbind",
10884
- value: function unbind() {
10885
- var _this$props2 = this.props,
10886
- onPlay = _this$props2.onPlay,
10887
- onPause = _this$props2.onPause,
10888
- onSeek = _this$props2.onSeek,
10889
- onEnded = _this$props2.onEnded;
10890
- this.player.unbind('play', onPlay);
10891
- this.player.unbind('pause', onPause);
10892
- this.player.unbind('seek', onSeek);
10893
- this.player.unbind('end', onEnded);
10894
- }
10895
10750
  }, {
10896
10751
  key: "stop",
10897
10752
  value: function stop() {
@@ -10937,7 +10792,7 @@ function (_Component) {
10937
10792
  width: '100%',
10938
10793
  height: '100%'
10939
10794
  };
10940
- return _react["default"].createElement("div", {
10795
+ return /*#__PURE__*/_react["default"].createElement("div", {
10941
10796
  key: id,
10942
10797
  className: className,
10943
10798
  style: style
@@ -10997,12 +10852,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10997
10852
 
10998
10853
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10999
10854
 
11000
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10855
+ 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); }; }
11001
10856
 
11002
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10857
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11003
10858
 
11004
10859
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11005
10860
 
10861
+ 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; } }
10862
+
10863
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10864
+
11006
10865
  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); }
11007
10866
 
11008
10867
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11015,14 +10874,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
11015
10874
  var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
11016
10875
  var PLAYER_ID_PREFIX = 'twitch-player-';
11017
10876
 
11018
- var Twitch =
11019
- /*#__PURE__*/
11020
- function (_Component) {
10877
+ var Twitch = /*#__PURE__*/function (_Component) {
11021
10878
  _inherits(Twitch, _Component);
11022
10879
 
11023
- function Twitch() {
11024
- var _getPrototypeOf2;
10880
+ var _super = _createSuper(Twitch);
11025
10881
 
10882
+ function Twitch() {
11026
10883
  var _this;
11027
10884
 
11028
10885
  _classCallCheck(this, Twitch);
@@ -11031,7 +10888,7 @@ function (_Component) {
11031
10888
  args[_key] = arguments[_key];
11032
10889
  }
11033
10890
 
11034
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
10891
+ _this = _super.call.apply(_super, [this].concat(args));
11035
10892
 
11036
10893
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11037
10894
 
@@ -11152,7 +11009,7 @@ function (_Component) {
11152
11009
  width: '100%',
11153
11010
  height: '100%'
11154
11011
  };
11155
- return _react["default"].createElement("div", {
11012
+ return /*#__PURE__*/_react["default"].createElement("div", {
11156
11013
  style: style,
11157
11014
  id: this.playerID
11158
11015
  });
@@ -11205,11 +11062,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
11205
11062
 
11206
11063
  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; }
11207
11064
 
11208
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
11065
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
11066
+
11067
+ 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."); }
11068
+
11069
+ 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); }
11209
11070
 
11210
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
11071
+ 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; }
11211
11072
 
11212
- 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; }
11073
+ 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; }
11213
11074
 
11214
11075
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11215
11076
 
@@ -11219,12 +11080,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11219
11080
 
11220
11081
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11221
11082
 
11222
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11083
+ 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); }; }
11223
11084
 
11224
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11085
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11225
11086
 
11226
11087
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11227
11088
 
11089
+ 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; } }
11090
+
11091
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11092
+
11228
11093
  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); }
11229
11094
 
11230
11095
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11236,14 +11101,12 @@ var SDK_GLOBAL = 'DM';
11236
11101
  var SDK_GLOBAL_READY = 'dmAsyncInit';
11237
11102
  var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
11238
11103
 
11239
- var DailyMotion =
11240
- /*#__PURE__*/
11241
- function (_Component) {
11104
+ var DailyMotion = /*#__PURE__*/function (_Component) {
11242
11105
  _inherits(DailyMotion, _Component);
11243
11106
 
11244
- function DailyMotion() {
11245
- var _getPrototypeOf2;
11107
+ var _super = _createSuper(DailyMotion);
11246
11108
 
11109
+ function DailyMotion() {
11247
11110
  var _this;
11248
11111
 
11249
11112
  _classCallCheck(this, DailyMotion);
@@ -11252,7 +11115,7 @@ function (_Component) {
11252
11115
  args[_key] = arguments[_key];
11253
11116
  }
11254
11117
 
11255
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
11118
+ _this = _super.call.apply(_super, [this].concat(args));
11256
11119
 
11257
11120
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11258
11121
 
@@ -11381,9 +11244,9 @@ function (_Component) {
11381
11244
  height: '100%',
11382
11245
  display: display
11383
11246
  };
11384
- return _react["default"].createElement("div", {
11247
+ return /*#__PURE__*/_react["default"].createElement("div", {
11385
11248
  style: style
11386
- }, _react["default"].createElement("div", {
11249
+ }, /*#__PURE__*/_react["default"].createElement("div", {
11387
11250
  ref: this.ref
11388
11251
  }));
11389
11252
  }
@@ -11441,12 +11304,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11441
11304
 
11442
11305
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11443
11306
 
11444
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11307
+ 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); }; }
11445
11308
 
11446
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11309
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11447
11310
 
11448
11311
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11449
11312
 
11313
+ 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; } }
11314
+
11315
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11316
+
11450
11317
  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); }
11451
11318
 
11452
11319
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11457,14 +11324,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
11457
11324
  var SDK_GLOBAL = 'Mixcloud';
11458
11325
  var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
11459
11326
 
11460
- var Mixcloud =
11461
- /*#__PURE__*/
11462
- function (_Component) {
11327
+ var Mixcloud = /*#__PURE__*/function (_Component) {
11463
11328
  _inherits(Mixcloud, _Component);
11464
11329
 
11465
- function Mixcloud() {
11466
- var _getPrototypeOf2;
11330
+ var _super = _createSuper(Mixcloud);
11467
11331
 
11332
+ function Mixcloud() {
11468
11333
  var _this;
11469
11334
 
11470
11335
  _classCallCheck(this, Mixcloud);
@@ -11473,7 +11338,7 @@ function (_Component) {
11473
11338
  args[_key] = arguments[_key];
11474
11339
  }
11475
11340
 
11476
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
11341
+ _this = _super.call.apply(_super, [this].concat(args));
11477
11342
 
11478
11343
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11479
11344
 
@@ -11576,7 +11441,7 @@ function (_Component) {
11576
11441
  })); // We have to give the iframe a key here to prevent a
11577
11442
  // weird dialog appearing when loading a new track
11578
11443
 
11579
- return _react["default"].createElement("iframe", {
11444
+ return /*#__PURE__*/_react["default"].createElement("iframe", {
11580
11445
  key: id,
11581
11446
  ref: this.ref,
11582
11447
  style: style,
@@ -11636,23 +11501,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11636
11501
 
11637
11502
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11638
11503
 
11639
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11504
+ 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); }; }
11640
11505
 
11641
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11506
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11642
11507
 
11643
11508
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11644
11509
 
11510
+ 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; } }
11511
+
11512
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11513
+
11645
11514
  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); }
11646
11515
 
11647
11516
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
11648
11517
 
11649
11518
  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; }
11650
11519
 
11520
+ 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; } } }; }
11521
+
11522
+ 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); }
11523
+
11524
+ 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; }
11525
+
11651
11526
  var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
11652
11527
  var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
11653
11528
  var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
11654
11529
  var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
11655
- var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
11530
+ var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
11656
11531
  var HLS_GLOBAL = 'Hls';
11657
11532
  var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
11658
11533
  var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
@@ -11661,12 +11536,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
11661
11536
 
11662
11537
  function canPlay(url) {
11663
11538
  if (url instanceof Array) {
11664
- var _iteratorNormalCompletion = true;
11665
- var _didIteratorError = false;
11666
- var _iteratorError = undefined;
11539
+ var _iterator = _createForOfIteratorHelper(url),
11540
+ _step;
11667
11541
 
11668
11542
  try {
11669
- for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
11543
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
11670
11544
  var item = _step.value;
11671
11545
 
11672
11546
  if (typeof item === 'string' && canPlay(item)) {
@@ -11678,18 +11552,9 @@ function canPlay(url) {
11678
11552
  }
11679
11553
  }
11680
11554
  } catch (err) {
11681
- _didIteratorError = true;
11682
- _iteratorError = err;
11555
+ _iterator.e(err);
11683
11556
  } finally {
11684
- try {
11685
- if (!_iteratorNormalCompletion && _iterator["return"] != null) {
11686
- _iterator["return"]();
11687
- }
11688
- } finally {
11689
- if (_didIteratorError) {
11690
- throw _iteratorError;
11691
- }
11692
- }
11557
+ _iterator.f();
11693
11558
  }
11694
11559
 
11695
11560
  return false;
@@ -11713,14 +11578,12 @@ function canEnablePIP(url) {
11713
11578
  return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
11714
11579
  }
11715
11580
 
11716
- var FilePlayer =
11717
- /*#__PURE__*/
11718
- function (_Component) {
11581
+ var FilePlayer = /*#__PURE__*/function (_Component) {
11719
11582
  _inherits(FilePlayer, _Component);
11720
11583
 
11721
- function FilePlayer() {
11722
- var _getPrototypeOf2;
11584
+ var _super = _createSuper(FilePlayer);
11723
11585
 
11586
+ function FilePlayer() {
11724
11587
  var _this;
11725
11588
 
11726
11589
  _classCallCheck(this, FilePlayer);
@@ -11729,7 +11592,7 @@ function (_Component) {
11729
11592
  _args[_key] = arguments[_key];
11730
11593
  }
11731
11594
 
11732
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
11595
+ _this = _super.call.apply(_super, [this].concat(_args));
11733
11596
 
11734
11597
  _defineProperty(_assertThisInitialized(_this), "onReady", function () {
11735
11598
  var _this$props;
@@ -11816,19 +11679,19 @@ function (_Component) {
11816
11679
 
11817
11680
  _defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
11818
11681
  if (typeof source === 'string') {
11819
- return _react["default"].createElement("source", {
11682
+ return /*#__PURE__*/_react["default"].createElement("source", {
11820
11683
  key: index,
11821
11684
  src: source
11822
11685
  });
11823
11686
  }
11824
11687
 
11825
- return _react["default"].createElement("source", _extends({
11688
+ return /*#__PURE__*/_react["default"].createElement("source", _extends({
11826
11689
  key: index
11827
11690
  }, source));
11828
11691
  });
11829
11692
 
11830
11693
  _defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
11831
- return _react["default"].createElement("track", _extends({
11694
+ return /*#__PURE__*/_react["default"].createElement("track", _extends({
11832
11695
  key: index
11833
11696
  }, track));
11834
11697
  });
@@ -11866,6 +11729,10 @@ function (_Component) {
11866
11729
  key: "componentWillUnmount",
11867
11730
  value: function componentWillUnmount() {
11868
11731
  this.removeListeners(this.player);
11732
+
11733
+ if (this.hls) {
11734
+ this.hls.destroy();
11735
+ }
11869
11736
  }
11870
11737
  }, {
11871
11738
  key: "addListeners",
@@ -11996,10 +11863,6 @@ function (_Component) {
11996
11863
  value: function stop() {
11997
11864
  this.player.removeAttribute('src');
11998
11865
 
11999
- if (this.hls) {
12000
- this.hls.destroy();
12001
- }
12002
-
12003
11866
  if (this.dash) {
12004
11867
  this.dash.reset();
12005
11868
  }
@@ -12111,7 +11974,7 @@ function (_Component) {
12111
11974
  width: width === 'auto' ? width : '100%',
12112
11975
  height: height === 'auto' ? height : '100%'
12113
11976
  };
12114
- return _react["default"].createElement(Element, _extends({
11977
+ return /*#__PURE__*/_react["default"].createElement(Element, _extends({
12115
11978
  ref: this.ref,
12116
11979
  src: this.getSource(url),
12117
11980
  style: style,
@@ -12201,12 +12064,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
12201
12064
 
12202
12065
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
12203
12066
 
12204
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12067
+ 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); }; }
12205
12068
 
12206
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12069
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12207
12070
 
12208
12071
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12209
12072
 
12073
+ 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; } }
12074
+
12075
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12076
+
12210
12077
  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); }
12211
12078
 
12212
12079
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -12215,14 +12082,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12215
12082
 
12216
12083
  var ICON_SIZE = '64px';
12217
12084
 
12218
- var Preview =
12219
- /*#__PURE__*/
12220
- function (_Component) {
12085
+ var Preview = /*#__PURE__*/function (_Component) {
12221
12086
  _inherits(Preview, _Component);
12222
12087
 
12223
- function Preview() {
12224
- var _getPrototypeOf2;
12088
+ var _super = _createSuper(Preview);
12225
12089
 
12090
+ function Preview() {
12226
12091
  var _this;
12227
12092
 
12228
12093
  _classCallCheck(this, Preview);
@@ -12231,7 +12096,7 @@ function (_Component) {
12231
12096
  args[_key] = arguments[_key];
12232
12097
  }
12233
12098
 
12234
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
12099
+ _this = _super.call.apply(_super, [this].concat(args));
12235
12100
 
12236
12101
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
12237
12102
 
@@ -12329,15 +12194,15 @@ function (_Component) {
12329
12194
  }
12330
12195
  };
12331
12196
 
12332
- var defaultPlayIcon = _react["default"].createElement("div", {
12197
+ var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
12333
12198
  style: styles.shadow,
12334
12199
  className: "react-player__shadow"
12335
- }, _react["default"].createElement("div", {
12200
+ }, /*#__PURE__*/_react["default"].createElement("div", {
12336
12201
  style: styles.playIcon,
12337
12202
  className: "react-player__play-icon"
12338
12203
  }));
12339
12204
 
12340
- return _react["default"].createElement("div", {
12205
+ return /*#__PURE__*/_react["default"].createElement("div", {
12341
12206
  style: styles.preview,
12342
12207
  className: "react-player__preview",
12343
12208
  onClick: onClick
@@ -12374,6 +12239,12 @@ var _Player = _interopRequireDefault(Player_1);
12374
12239
 
12375
12240
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12376
12241
 
12242
+ 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; } } }; }
12243
+
12244
+ 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); }
12245
+
12246
+ 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; }
12247
+
12377
12248
  var PRELOAD_PLAYERS = [{
12378
12249
  Player: YouTube_1.YouTube,
12379
12250
  configKey: 'youtube',
@@ -12394,16 +12265,16 @@ var PRELOAD_PLAYERS = [{
12394
12265
 
12395
12266
  function renderPreloadPlayers(url, controls, config) {
12396
12267
  var players = [];
12397
- var _iteratorNormalCompletion = true;
12398
- var _didIteratorError = false;
12399
- var _iteratorError = undefined;
12268
+
12269
+ var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
12270
+ _step;
12400
12271
 
12401
12272
  try {
12402
- for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
12273
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
12403
12274
  var player = _step.value;
12404
12275
 
12405
12276
  if (!player.Player.canPlay(url) && config[player.configKey].preload) {
12406
- players.push(_react["default"].createElement(_Player["default"], {
12277
+ players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
12407
12278
  key: player.Player.displayName,
12408
12279
  activePlayer: player.Player,
12409
12280
  url: player.url,
@@ -12415,18 +12286,9 @@ function renderPreloadPlayers(url, controls, config) {
12415
12286
  }
12416
12287
  }
12417
12288
  } catch (err) {
12418
- _didIteratorError = true;
12419
- _iteratorError = err;
12289
+ _iterator.e(err);
12420
12290
  } finally {
12421
- try {
12422
- if (!_iteratorNormalCompletion && _iterator["return"] != null) {
12423
- _iterator["return"]();
12424
- }
12425
- } finally {
12426
- if (_didIteratorError) {
12427
- throw _iteratorError;
12428
- }
12429
- }
12291
+ _iterator.f();
12430
12292
  }
12431
12293
 
12432
12294
  return players;
@@ -12550,13 +12412,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
12550
12412
 
12551
12413
  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); }
12552
12414
 
12553
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
12415
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
12416
+
12417
+ 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."); }
12418
+
12419
+ 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); }
12554
12420
 
12555
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
12421
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
12556
12422
 
12557
- function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
12423
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
12558
12424
 
12559
- 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; } }
12425
+ 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; }
12560
12426
 
12561
12427
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
12562
12428
 
@@ -12564,12 +12430,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
12564
12430
 
12565
12431
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
12566
12432
 
12567
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12433
+ 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); }; }
12568
12434
 
12569
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12435
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12570
12436
 
12571
12437
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12572
12438
 
12439
+ 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; } }
12440
+
12441
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12442
+
12573
12443
  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); }
12574
12444
 
12575
12445
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -12579,14 +12449,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12579
12449
  var SUPPORTED_PROPS = Object.keys(props.propTypes);
12580
12450
  var customPlayers = [];
12581
12451
 
12582
- var ReactPlayer =
12583
- /*#__PURE__*/
12584
- function (_Component) {
12452
+ var ReactPlayer = /*#__PURE__*/function (_Component) {
12585
12453
  _inherits(ReactPlayer, _Component);
12586
12454
 
12587
- function ReactPlayer() {
12588
- var _getPrototypeOf2;
12455
+ var _super = _createSuper(ReactPlayer);
12589
12456
 
12457
+ function ReactPlayer() {
12590
12458
  var _this;
12591
12459
 
12592
12460
  _classCallCheck(this, ReactPlayer);
@@ -12595,7 +12463,7 @@ function (_Component) {
12595
12463
  args[_key] = arguments[_key];
12596
12464
  }
12597
12465
 
12598
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
12466
+ _this = _super.call.apply(_super, [this].concat(args));
12599
12467
 
12600
12468
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
12601
12469
 
@@ -12706,7 +12574,7 @@ function (_Component) {
12706
12574
  key: "renderActivePlayer",
12707
12575
  value: function renderActivePlayer(url, activePlayer) {
12708
12576
  if (!url) return null;
12709
- return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
12577
+ return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
12710
12578
  key: activePlayer.displayName,
12711
12579
  ref: this.activePlayerRef,
12712
12580
  config: this.config,
@@ -12743,14 +12611,14 @@ function (_Component) {
12743
12611
  var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
12744
12612
  var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
12745
12613
 
12746
- var preview = _react["default"].createElement(_Preview["default"], {
12614
+ var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
12747
12615
  url: url,
12748
12616
  light: light,
12749
12617
  playIcon: playIcon,
12750
12618
  onClick: this.handleClickPreview
12751
12619
  });
12752
12620
 
12753
- return _react["default"].createElement(Wrapper, _extends({
12621
+ return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
12754
12622
  ref: this.wrapperRef,
12755
12623
  style: _objectSpread({}, style, {
12756
12624
  width: width,
@@ -13509,7 +13377,7 @@ var Leads = function Leads(_ref) {
13509
13377
  );
13510
13378
  };
13511
13379
 
13512
- var urlFor$3 = function urlFor(source, client) {
13380
+ var urlFor$2 = function urlFor(source, client) {
13513
13381
  var builder = index$1.imageUrlBuilder(client);
13514
13382
  return builder.image(source).auto('format');
13515
13383
  };
@@ -13563,7 +13431,7 @@ var Slideshow$1 = function Slideshow(_ref) {
13563
13431
  React__default.createElement(
13564
13432
  'a',
13565
13433
  { href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
13566
- React__default.createElement('img', { src: urlFor$3(slide.slideshowImage, client).url(), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
13434
+ React__default.createElement('img', { src: urlFor$2(slide.slideshowImage, client).url(), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
13567
13435
  ),
13568
13436
  React__default.createElement(
13569
13437
  'div',
@@ -13601,6 +13469,10 @@ var NativeAd = function NativeAd(props) {
13601
13469
  );
13602
13470
  };
13603
13471
 
13472
+ var Figure = dynamic(function () {
13473
+ return new Promise(function (resolve) { resolve(require('./Figure-fe3e9705.js')); });
13474
+ }, { ssr: false });
13475
+
13604
13476
  var checkUrlIsExternal = function checkUrlIsExternal(url) {
13605
13477
  if (/https?:\/\/((?:[\w\d-]+\.)+[\w\d]{2,})|(^mailto)/i.test(url)) {
13606
13478
  return true;
@@ -13656,7 +13528,7 @@ var getSerializers = function getSerializers() {
13656
13528
  figure: function figure(_ref3) {
13657
13529
  var node = _ref3.node;
13658
13530
 
13659
- return React__default.createElement(FigureComponent, { node: node, client: client });
13531
+ return React__default.createElement(Figure, { node: node, client: client });
13660
13532
  },
13661
13533
  slideshow: function slideshow(_ref4) {
13662
13534
  var node = _ref4.node;
@@ -13964,13 +13836,13 @@ var SetCookie = function SetCookie(key, value) {
13964
13836
  js_cookie.set(key, value, { expires: 1, sameSite: 'none', secure: true });
13965
13837
  };
13966
13838
 
13967
- var urlFor$4 = function urlFor(source, client) {
13839
+ var urlFor$3 = function urlFor(source, client) {
13968
13840
  var builder = index$1.imageUrlBuilder(client);
13969
13841
  return builder.image(source).auto('format');
13970
13842
  };
13971
13843
 
13972
13844
  var renderCardImage = function renderCardImage(thumbnail, client, imageHeight, imageWidth) {
13973
- var url = urlFor$4(thumbnail, client);
13845
+ var url = urlFor$3(thumbnail, client);
13974
13846
  if (imageHeight) url = url.height(imageHeight);
13975
13847
  if (imageWidth) url = url.width(imageWidth);
13976
13848
  return url.url();
@@ -14179,16 +14051,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
14179
14051
  _ref$className = _ref.className,
14180
14052
  className = _ref$className === undefined ? '' : _ref$className;
14181
14053
 
14182
- /*
14183
- Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
14184
- example:
14185
- <RelatedTopicDropdown
14186
- page='/clinical'
14187
- exclude="clinical"
14188
- className='mb-3'
14189
- parentTaxonomy={props.parentTaxonomy}
14190
- subTaxonomies={props.subTaxonomies}
14191
- />
14054
+ /*
14055
+ Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
14056
+ example:
14057
+ <RelatedTopicDropdown
14058
+ page='/clinical'
14059
+ exclude="clinical"
14060
+ className='mb-3'
14061
+ parentTaxonomy={props.parentTaxonomy}
14062
+ subTaxonomies={props.subTaxonomies}
14063
+ />
14192
14064
  */
14193
14065
  if (subTaxonomies.length === 0 && parentTaxonomy) {
14194
14066
  if (parentTaxonomy.identifier == exclude) {
@@ -14226,19 +14098,19 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
14226
14098
  }
14227
14099
  };
14228
14100
 
14229
- /*
14230
- This dropdown is used inside Article body to display related content placement pages
14231
- sample usage: <ArticleDetailDropdown contentPlacement={content_placement} exclude={['News',]} />
14232
-
14233
- in article query, need to add '...' to content_placement to retreive additional info needed
14234
-
14235
- 'content_placement': taxonomyMapping[]-> {
14236
- ...,
14237
- 'ancestor': parent->parent->identifier,
14238
- 'parent': parent->identifier,
14239
- 'path': identifier
14240
- }
14241
-
14101
+ /*
14102
+ This dropdown is used inside Article body to display related content placement pages
14103
+ sample usage: <ArticleDetailDropdown contentPlacement={content_placement} exclude={['News',]} />
14104
+
14105
+ in article query, need to add '...' to content_placement to retreive additional info needed
14106
+
14107
+ 'content_placement': taxonomyMapping[]-> {
14108
+ ...,
14109
+ 'ancestor': parent->parent->identifier,
14110
+ 'parent': parent->identifier,
14111
+ 'path': identifier
14112
+ }
14113
+
14242
14114
  */
14243
14115
 
14244
14116
  var ArticleDetailDropdown = function ArticleDetailDropdown(props) {
@@ -15077,34 +14949,34 @@ var GridHero = function GridHero(props) {
15077
14949
  );
15078
14950
  };
15079
14951
 
15080
- /*
15081
- Sample query
15082
- let references = ''
15083
- if(article.taxonomyMapping.length > 0){
15084
- article.taxonomyMapping.forEach((ref, index) => {
15085
- references = references + `references('${ref._ref}') `
15086
- if(index+1 !== article.taxonomyMapping.length){
15087
- references = references + ` && `
15088
- }
15089
- })
15090
- }
15091
-
15092
- 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] {
15093
- ...,
15094
- title,
15095
- summary,
15096
- thumbnail,
15097
- url,
15098
- published,
15099
- authorMapping[]->,
15100
- contentCategory->
15101
- }`
15102
- const relatedArticles = await client.fetch(relatedArticlesQuery)
15103
-
15104
- Sample usage
15105
- <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
15106
-
15107
-
14952
+ /*
14953
+ Sample query
14954
+ let references = ''
14955
+ if(article.taxonomyMapping.length > 0){
14956
+ article.taxonomyMapping.forEach((ref, index) => {
14957
+ references = references + `references('${ref._ref}') `
14958
+ if(index+1 !== article.taxonomyMapping.length){
14959
+ references = references + ` && `
14960
+ }
14961
+ })
14962
+ }
14963
+
14964
+ 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] {
14965
+ ...,
14966
+ title,
14967
+ summary,
14968
+ thumbnail,
14969
+ url,
14970
+ published,
14971
+ authorMapping[]->,
14972
+ contentCategory->
14973
+ }`
14974
+ const relatedArticles = await client.fetch(relatedArticlesQuery)
14975
+
14976
+ Sample usage
14977
+ <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
14978
+
14979
+
15108
14980
  */
15109
14981
  var RelatedContent = function RelatedContent(props) {
15110
14982
  var client = props.client,
@@ -15171,21 +15043,21 @@ var RelatedContent = function RelatedContent(props) {
15171
15043
  );
15172
15044
  };
15173
15045
 
15174
- /*
15175
- Example usage - targetedonc.com/latest-conference
15176
- 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] {
15177
- ...,
15178
- title,
15179
- summary,
15180
- thumbnail,
15181
- url,
15182
- published,
15183
- documentGroup->,
15184
- contentCategory->,
15185
- 'pageNumber': ${currentPage}
15186
- }`
15187
-
15188
- const posts = await client.fetch(query, params)
15046
+ /*
15047
+ Example usage - targetedonc.com/latest-conference
15048
+ 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] {
15049
+ ...,
15050
+ title,
15051
+ summary,
15052
+ thumbnail,
15053
+ url,
15054
+ published,
15055
+ documentGroup->,
15056
+ contentCategory->,
15057
+ 'pageNumber': ${currentPage}
15058
+ }`
15059
+
15060
+ const posts = await client.fetch(query, params)
15189
15061
  */
15190
15062
 
15191
15063
  var ConferenceArticleCard = function ConferenceArticleCard(props) {
@@ -15812,27 +15684,27 @@ var _initialiseProps = function _initialiseProps() {
15812
15684
  };
15813
15685
 
15814
15686
  var KMTracker = function KMTracker(props) {
15815
- var id = props.id;
15687
+ var id = props.id;
15816
15688
 
15817
- if (document && id) {
15689
+ if (document && id) {
15818
15690
  (function () {
15819
- var ecnJquery = document.createElement('script');
15691
+ var ecnJquery = document.createElement('script');
15820
15692
 
15821
- ecnJquery.type = 'text/javascript';
15822
- ecnJquery.async = true;
15823
- ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
15693
+ ecnJquery.type = 'text/javascript';
15694
+ ecnJquery.async = true;
15695
+ ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
15824
15696
 
15825
- var ecnScript = document.createElement('script');
15697
+ var ecnScript = document.createElement('script');
15826
15698
 
15827
- ecnScript.type = 'text/javascript';
15828
- ecnScript.async = true;
15829
- ecnScript.id = 'km-tracker';
15830
- ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
15699
+ ecnScript.type = 'text/javascript';
15700
+ ecnScript.async = true;
15701
+ ecnScript.id = 'km-tracker';
15702
+ ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
15831
15703
 
15832
- document.head.appendChild(ecnJquery);
15833
- document.head.appendChild(ecnScript);
15834
- })();
15835
- }
15704
+ document.head.appendChild(ecnJquery);
15705
+ document.head.appendChild(ecnScript);
15706
+ })();
15707
+ }
15836
15708
  };
15837
15709
 
15838
15710
  exports.AdSlot = AdSlot.DFPAdSlot;