@mjhls/mjh-framework 1.0.272 → 1.0.274

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 +574 -686
  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 +583 -695
  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'));
@@ -2014,8 +2016,7 @@ var EventsDeck = function EventsDeck(_ref) {
2014
2016
  Row,
2015
2017
  null,
2016
2018
  data && data.map(function (row, index) {
2017
- var title = row.title,
2018
- description = row.description,
2019
+ var description = row.description,
2019
2020
  start = row.start,
2020
2021
  venues = row.venues,
2021
2022
  _links = row._links,
@@ -2023,6 +2024,21 @@ var EventsDeck = function EventsDeck(_ref) {
2023
2024
  timezone = row.timezone,
2024
2025
  closeAfter = row.closeAfter;
2025
2026
 
2027
+ var discussionTopic = row.customFields.reduce(function (result, item) {
2028
+ if (item.name === 'Discussion Topic' && item.value) {
2029
+ result = item.value[0];
2030
+ return result;
2031
+ }
2032
+ return result;
2033
+ }, '');
2034
+ var eventRegion = row.customFields.reduce(function (result, item) {
2035
+ if (item.name === 'Event Region' && item.value) {
2036
+ result = item.value[0];
2037
+ return result;
2038
+ }
2039
+ return result;
2040
+ }, '');
2041
+
2026
2042
  var pageNumber = row.pageNumber || 1;
2027
2043
  return React__default.createElement(
2028
2044
  React__default.Fragment,
@@ -2048,7 +2064,7 @@ var EventsDeck = function EventsDeck(_ref) {
2048
2064
  React__default.createElement(
2049
2065
  'h5',
2050
2066
  null,
2051
- venues[0].name
2067
+ eventRegion
2052
2068
  ),
2053
2069
  React__default.createElement(
2054
2070
  'p',
@@ -2065,7 +2081,7 @@ var EventsDeck = function EventsDeck(_ref) {
2065
2081
  React__default.createElement(
2066
2082
  Col,
2067
2083
  { xs: 12, sm: 5 },
2068
- React__default.createElement('h6', { className: 'mb-1', dangerouslySetInnerHTML: { __html: title } }),
2084
+ React__default.createElement('h6', { className: 'mb-1', dangerouslySetInnerHTML: { __html: discussionTopic } }),
2069
2085
  virtual && React__default.createElement(
2070
2086
  'h5',
2071
2087
  null,
@@ -2138,6 +2154,8 @@ var EventsDeck = function EventsDeck(_ref) {
2138
2154
  );
2139
2155
  }
2140
2156
 
2157
+ // console.log(data.length > 0 && data[0].customFields.find((item) => item.name === 'Discussion Topic').value[0])
2158
+
2141
2159
  if (data.length > 0) {
2142
2160
  return React__default.createElement(
2143
2161
  'div',
@@ -3081,153 +3099,7 @@ var ADWelcome = function ADWelcome(_ref) {
3081
3099
  );
3082
3100
  };
3083
3101
 
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) {
3102
+ var urlFor$1 = function urlFor(source, builder) {
3231
3103
  return builder.image(source).auto('format');
3232
3104
  };
3233
3105
 
@@ -3278,7 +3150,7 @@ var Slideshow = function Slideshow(_ref) {
3278
3150
  return React__default.createElement(
3279
3151
  reactBootstrap.Carousel.Item,
3280
3152
  { 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%' } }),
3153
+ React__default.createElement('img', { src: slide.asset && urlFor$1(slide.asset, builder).url(), alt: slide.alt && slide.alt, style: { width: '100%' } }),
3282
3154
  slide.caption && React__default.createElement(
3283
3155
  'p',
3284
3156
  { className: 'p-2' },
@@ -3290,21 +3162,18 @@ var Slideshow = function Slideshow(_ref) {
3290
3162
  );
3291
3163
  };
3292
3164
 
3293
- var isArray = Array.isArray;
3294
- var keyList = Object.keys;
3295
- var hasProp = Object.prototype.hasOwnProperty;
3165
+ // do not edit .js files directly - edit src/index.jst
3166
+
3167
+
3296
3168
 
3297
3169
  var fastDeepEqual = function equal(a, b) {
3298
3170
  if (a === b) return true;
3299
3171
 
3300
3172
  if (a && b && typeof a == 'object' && typeof b == 'object') {
3301
- var arrA = isArray(a)
3302
- , arrB = isArray(b)
3303
- , i
3304
- , length
3305
- , key;
3173
+ if (a.constructor !== b.constructor) return false;
3306
3174
 
3307
- if (arrA && arrB) {
3175
+ var length, i, keys;
3176
+ if (Array.isArray(a)) {
3308
3177
  length = a.length;
3309
3178
  if (length != b.length) return false;
3310
3179
  for (i = length; i-- !== 0;)
@@ -3312,35 +3181,29 @@ var fastDeepEqual = function equal(a, b) {
3312
3181
  return true;
3313
3182
  }
3314
3183
 
3315
- if (arrA != arrB) return false;
3316
3184
 
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
3185
 
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();
3186
+ if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
3187
+ if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
3188
+ if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
3326
3189
 
3327
- var keys = keyList(a);
3190
+ keys = Object.keys(a);
3328
3191
  length = keys.length;
3329
-
3330
- if (length !== keyList(b).length)
3331
- return false;
3192
+ if (length !== Object.keys(b).length) return false;
3332
3193
 
3333
3194
  for (i = length; i-- !== 0;)
3334
- if (!hasProp.call(b, keys[i])) return false;
3195
+ if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
3335
3196
 
3336
3197
  for (i = length; i-- !== 0;) {
3337
- key = keys[i];
3198
+ var key = keys[i];
3199
+
3338
3200
  if (!equal(a[key], b[key])) return false;
3339
3201
  }
3340
3202
 
3341
3203
  return true;
3342
3204
  }
3343
3205
 
3206
+ // true if both NaN, false otherwise
3344
3207
  return a!==a && b!==b;
3345
3208
  };
3346
3209
 
@@ -4363,7 +4226,7 @@ function formatValue(ctx, value, recurseTimes) {
4363
4226
  var base = '', array = false, braces = ['{', '}'];
4364
4227
 
4365
4228
  // Make Array say that they are Array
4366
- if (isArray$1(value)) {
4229
+ if (isArray(value)) {
4367
4230
  array = true;
4368
4231
  braces = ['[', ']'];
4369
4232
  }
@@ -4542,7 +4405,7 @@ function reduceToSingleString(output, base, braces) {
4542
4405
 
4543
4406
  // NOTE: These type checking functions intentionally don't use `instanceof`
4544
4407
  // because it is fragile and can be easily faked with `Object.create()`.
4545
- function isArray$1(ar) {
4408
+ function isArray(ar) {
4546
4409
  return Array.isArray(ar);
4547
4410
  }
4548
4411
 
@@ -4669,7 +4532,7 @@ var util = {
4669
4532
  isNullOrUndefined: isNullOrUndefined,
4670
4533
  isNull: isNull,
4671
4534
  isBoolean: isBoolean,
4672
- isArray: isArray$1,
4535
+ isArray: isArray,
4673
4536
  inspect: inspect,
4674
4537
  deprecate: deprecate,
4675
4538
  format: format,
@@ -5336,199 +5199,235 @@ module.exports = exports['default'];
5336
5199
 
5337
5200
  var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
5338
5201
 
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; };
5202
+ 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
5203
 
5343
5204
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5344
5205
 
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; }
5206
+ 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); } }
5207
+
5208
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5209
+
5210
+ 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); }; }
5346
5211
 
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; }
5212
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5213
+
5214
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5348
5215
 
5349
- /**
5350
- * Check whether a `props` change should result in the video being updated.
5351
- *
5352
- * @param {Object} prevProps
5353
- * @param {Object} props
5216
+ 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; } }
5217
+
5218
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5219
+
5220
+ 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); }
5221
+
5222
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
5223
+
5224
+ 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; }
5225
+
5226
+ 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; }
5227
+
5228
+ 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; }
5229
+ /**
5230
+ * Check whether a `props` change should result in the video being updated.
5231
+ *
5232
+ * @param {Object} prevProps
5233
+ * @param {Object} props
5354
5234
  */
5235
+
5355
5236
  function shouldUpdateVideo(prevProps, props) {
5356
5237
  // A changing video should always trigger an update
5357
5238
  if (prevProps.videoId !== props.videoId) {
5358
5239
  return true;
5359
- }
5360
-
5361
- // Otherwise, a change in the start/end time playerVars also requires a player
5240
+ } // Otherwise, a change in the start/end time playerVars also requires a player
5362
5241
  // update.
5242
+
5243
+
5363
5244
  var prevVars = prevProps.opts.playerVars || {};
5364
5245
  var vars = props.opts.playerVars || {};
5365
-
5366
5246
  return prevVars.start !== vars.start || prevVars.end !== vars.end;
5367
5247
  }
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
5248
+ /**
5249
+ * Neutralize API options that only require a video update, leaving only options
5250
+ * that require a player reset. The results can then be compared to see if a
5251
+ * player reset is necessary.
5252
+ *
5253
+ * @param {Object} opts
5375
5254
  */
5255
+
5256
+
5376
5257
  function filterResetOptions(opts) {
5377
- return _extends({}, opts, {
5378
- playerVars: _extends({}, opts.playerVars, {
5258
+ return _objectSpread({}, opts, {
5259
+ playerVars: _objectSpread({}, opts.playerVars, {
5379
5260
  autoplay: 0,
5380
5261
  start: 0,
5381
5262
  end: 0
5382
5263
  })
5383
5264
  });
5384
5265
  }
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
5266
+ /**
5267
+ * Check whether a `props` change should result in the player being reset.
5268
+ * The player is reset when the `props.opts` change, except if the only change
5269
+ * is in the `start` and `end` playerVars, because a video update can deal with
5270
+ * those.
5271
+ *
5272
+ * @param {Object} prevProps
5273
+ * @param {Object} props
5394
5274
  */
5275
+
5276
+
5395
5277
  function shouldResetPlayer(prevProps, props) {
5396
5278
  return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
5397
5279
  }
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
5280
+ /**
5281
+ * Check whether a props change should result in an id or className update.
5282
+ *
5283
+ * @param {Object} prevProps
5284
+ * @param {Object} props
5404
5285
  */
5286
+
5287
+
5405
5288
  function shouldUpdatePlayer(prevProps, props) {
5406
5289
  return prevProps.id !== props.id || prevProps.className !== props.className;
5407
5290
  }
5408
5291
 
5409
- var YouTube = function (_React$Component) {
5292
+ var YouTube = /*#__PURE__*/function (_React$Component) {
5410
5293
  _inherits(YouTube, _React$Component);
5411
5294
 
5295
+ var _super = _createSuper(YouTube);
5296
+
5297
+ /**
5298
+ * Expose PlayerState constants for convenience. These constants can also be
5299
+ * accessed through the global YT object after the YouTube IFrame API is instantiated.
5300
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
5301
+ */
5412
5302
  function YouTube(props) {
5303
+ var _this;
5304
+
5413
5305
  _classCallCheck(this, YouTube);
5414
5306
 
5415
- var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
5307
+ _this = _super.call(this, props);
5416
5308
 
5417
- _this.onPlayerReady = function (event) {
5309
+ _defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
5418
5310
  return _this.props.onReady(event);
5419
- };
5311
+ });
5420
5312
 
5421
- _this.onPlayerError = function (event) {
5313
+ _defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
5422
5314
  return _this.props.onError(event);
5423
- };
5315
+ });
5424
5316
 
5425
- _this.onPlayerStateChange = function (event) {
5317
+ _defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
5426
5318
  _this.props.onStateChange(event);
5427
- switch (event.data) {
5428
5319
 
5320
+ switch (event.data) {
5429
5321
  case YouTube.PlayerState.ENDED:
5430
5322
  _this.props.onEnd(event);
5323
+
5431
5324
  break;
5432
5325
 
5433
5326
  case YouTube.PlayerState.PLAYING:
5434
5327
  _this.props.onPlay(event);
5328
+
5435
5329
  break;
5436
5330
 
5437
5331
  case YouTube.PlayerState.PAUSED:
5438
5332
  _this.props.onPause(event);
5333
+
5439
5334
  break;
5440
5335
  }
5441
- };
5336
+ });
5442
5337
 
5443
- _this.onPlayerPlaybackRateChange = function (event) {
5338
+ _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
5444
5339
  return _this.props.onPlaybackRateChange(event);
5445
- };
5340
+ });
5446
5341
 
5447
- _this.onPlayerPlaybackQualityChange = function (event) {
5342
+ _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
5448
5343
  return _this.props.onPlaybackQualityChange(event);
5449
- };
5344
+ });
5450
5345
 
5451
- _this.createPlayer = function () {
5346
+ _defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
5452
5347
  // 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, {
5348
+ if (typeof document === 'undefined') return; // create player
5349
+
5350
+ var playerOpts = _objectSpread({}, _this.props.opts, {
5456
5351
  // preload the `videoId` video if one is already given
5457
5352
  videoId: _this.props.videoId
5458
5353
  });
5459
- _this.internalPlayer = youTubePlayer(_this.container, playerOpts);
5460
- // attach event handlers
5354
+
5355
+ _this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
5356
+
5461
5357
  _this.internalPlayer.on('ready', _this.onPlayerReady);
5358
+
5462
5359
  _this.internalPlayer.on('error', _this.onPlayerError);
5360
+
5463
5361
  _this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
5362
+
5464
5363
  _this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
5364
+
5465
5365
  _this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
5466
- };
5366
+ });
5467
5367
 
5468
- _this.resetPlayer = function () {
5368
+ _defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
5469
5369
  return _this.internalPlayer.destroy().then(_this.createPlayer);
5470
- };
5370
+ });
5471
5371
 
5472
- _this.updatePlayer = function () {
5372
+ _defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
5473
5373
  _this.internalPlayer.getIframe().then(function (iframe) {
5474
5374
  if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
5475
5375
  if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
5476
5376
  });
5477
- };
5377
+ });
5478
5378
 
5479
- _this.updateVideo = function () {
5379
+ _defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
5480
5380
  if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
5481
5381
  _this.internalPlayer.stopVideo();
5382
+
5482
5383
  return;
5483
- }
5384
+ } // set queueing options
5385
+
5484
5386
 
5485
- // set queueing options
5486
5387
  var autoplay = false;
5487
5388
  var opts = {
5488
5389
  videoId: _this.props.videoId
5489
5390
  };
5391
+
5490
5392
  if ('playerVars' in _this.props.opts) {
5491
5393
  autoplay = _this.props.opts.playerVars.autoplay === 1;
5394
+
5492
5395
  if ('start' in _this.props.opts.playerVars) {
5493
5396
  opts.startSeconds = _this.props.opts.playerVars.start;
5494
5397
  }
5398
+
5495
5399
  if ('end' in _this.props.opts.playerVars) {
5496
5400
  opts.endSeconds = _this.props.opts.playerVars.end;
5497
5401
  }
5498
- }
5402
+ } // if autoplay is enabled loadVideoById
5403
+
5499
5404
 
5500
- // if autoplay is enabled loadVideoById
5501
5405
  if (autoplay) {
5502
5406
  _this.internalPlayer.loadVideoById(opts);
5407
+
5503
5408
  return;
5504
- }
5505
- // default behaviour just cues the video
5409
+ } // default behaviour just cues the video
5410
+
5411
+
5506
5412
  _this.internalPlayer.cueVideoById(opts);
5507
- };
5413
+ });
5508
5414
 
5509
- _this.refContainer = function (container) {
5415
+ _defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
5510
5416
  _this.container = container;
5511
- };
5417
+ });
5512
5418
 
5513
5419
  _this.container = null;
5514
5420
  _this.internalPlayer = null;
5515
5421
  return _this;
5516
5422
  }
5517
5423
 
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
5424
  _createClass(YouTube, [{
5526
- key: 'componentDidMount',
5425
+ key: "componentDidMount",
5527
5426
  value: function componentDidMount() {
5528
5427
  this.createPlayer();
5529
5428
  }
5530
5429
  }, {
5531
- key: 'componentDidUpdate',
5430
+ key: "componentDidUpdate",
5532
5431
  value: function componentDidUpdate(prevProps) {
5533
5432
  if (shouldUpdatePlayer(prevProps, this.props)) {
5534
5433
  this.updatePlayer();
@@ -5543,112 +5442,58 @@ var YouTube = function (_React$Component) {
5543
5442
  }
5544
5443
  }
5545
5444
  }, {
5546
- key: 'componentWillUnmount',
5445
+ key: "componentWillUnmount",
5547
5446
  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.
5447
+ /**
5448
+ * Note: The `youtube-player` package that is used promisifies all YouTube
5449
+ * Player API calls, which introduces a delay of a tick before it actually
5450
+ * gets destroyed. Since React attempts to remove the element instantly
5451
+ * this method isn't quick enough to reset the container element.
5553
5452
  */
5554
5453
  this.internalPlayer.destroy();
5555
5454
  }
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.
5455
+ /**
5456
+ * https://developers.google.com/youtube/iframe_api_reference#onReady
5457
+ *
5458
+ * @param {Object} event
5459
+ * @param {Object} target - player object
5622
5460
  */
5623
5461
 
5624
5462
  }, {
5625
- key: 'render',
5463
+ key: "render",
5626
5464
  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
- );
5465
+ return /*#__PURE__*/React__default.createElement("div", {
5466
+ className: this.props.containerClassName
5467
+ }, /*#__PURE__*/React__default.createElement("div", {
5468
+ id: this.props.id,
5469
+ className: this.props.className,
5470
+ ref: this.refContainer
5471
+ }));
5632
5472
  }
5633
5473
  }]);
5634
5474
 
5635
5475
  return YouTube;
5636
5476
  }(React__default.Component);
5637
5477
 
5478
+ _defineProperty(YouTube, "PlayerState", {
5479
+ UNSTARTED: -1,
5480
+ ENDED: 0,
5481
+ PLAYING: 1,
5482
+ PAUSED: 2,
5483
+ BUFFERING: 3,
5484
+ CUED: 5
5485
+ });
5486
+
5638
5487
  YouTube.propTypes = {
5639
5488
  videoId: PropTypes.string,
5640
-
5641
5489
  // custom ID for player element
5642
5490
  id: PropTypes.string,
5643
-
5644
5491
  // custom class name for player element
5645
5492
  className: PropTypes.string,
5646
5493
  // custom class name for player container element
5647
5494
  containerClassName: PropTypes.string,
5648
-
5649
5495
  // https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
5650
5496
  opts: PropTypes.objectOf(PropTypes.any),
5651
-
5652
5497
  // event subscriptions
5653
5498
  onReady: PropTypes.func,
5654
5499
  onError: PropTypes.func,
@@ -5660,6 +5505,7 @@ YouTube.propTypes = {
5660
5505
  onPlaybackQualityChange: PropTypes.func
5661
5506
  };
5662
5507
  YouTube.defaultProps = {
5508
+ videoId: null,
5663
5509
  id: null,
5664
5510
  className: null,
5665
5511
  opts: {},
@@ -5673,14 +5519,6 @@ YouTube.defaultProps = {
5673
5519
  onPlaybackRateChange: function onPlaybackRateChange() {},
5674
5520
  onPlaybackQualityChange: function onPlaybackQualityChange() {}
5675
5521
  };
5676
- YouTube.PlayerState = {
5677
- UNSTARTED: -1,
5678
- ENDED: 0,
5679
- PLAYING: 1,
5680
- PAUSED: 2,
5681
- BUFFERING: 3,
5682
- CUED: 5
5683
- };
5684
5522
 
5685
5523
  var YouTubePlayer = function YouTubePlayer(_ref) {
5686
5524
  var url = _ref.url;
@@ -6704,8 +6542,8 @@ var window_1 = win;
6704
6542
 
6705
6543
  /*! @name @brightcove/react-player-loader @version 1.4.0 @license Apache-2.0 */
6706
6544
 
6707
- function _extends$1() {
6708
- _extends$1 = Object.assign || function (target) {
6545
+ function _extends() {
6546
+ _extends = Object.assign || function (target) {
6709
6547
  for (var i = 1; i < arguments.length; i++) {
6710
6548
  var source = arguments[i];
6711
6549
 
@@ -6719,7 +6557,7 @@ function _extends$1() {
6719
6557
  return target;
6720
6558
  };
6721
6559
 
6722
- return _extends$1.apply(this, arguments);
6560
+ return _extends.apply(this, arguments);
6723
6561
  }
6724
6562
 
6725
6563
  function _inheritsLoose(subClass, superClass) {
@@ -6728,7 +6566,7 @@ function _inheritsLoose(subClass, superClass) {
6728
6566
  subClass.__proto__ = superClass;
6729
6567
  }
6730
6568
 
6731
- function _assertThisInitialized(self) {
6569
+ function _assertThisInitialized$1(self) {
6732
6570
  if (self === void 0) {
6733
6571
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
6734
6572
  }
@@ -6738,8 +6576,8 @@ function _assertThisInitialized(self) {
6738
6576
 
6739
6577
  /*! @name @brightcove/player-loader @version 1.7.1 @license Apache-2.0 */
6740
6578
 
6741
- function _extends$1$1() {
6742
- _extends$1$1 = Object.assign || function (target) {
6579
+ function _extends$1() {
6580
+ _extends$1 = Object.assign || function (target) {
6743
6581
  for (var i = 1; i < arguments.length; i++) {
6744
6582
  var source = arguments[i];
6745
6583
 
@@ -6753,7 +6591,7 @@ function _extends$1$1() {
6753
6591
  return target;
6754
6592
  };
6755
6593
 
6756
- return _extends$1$1.apply(this, arguments);
6594
+ return _extends$1.apply(this, arguments);
6757
6595
  }
6758
6596
 
6759
6597
  var version$1 = "1.7.1";
@@ -6761,7 +6599,7 @@ var version$1 = "1.7.1";
6761
6599
  /*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */
6762
6600
  var version$1$1 = "1.2.0";
6763
6601
 
6764
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
6602
+ var _typeof$1 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
6765
6603
  return typeof obj;
6766
6604
  } : function (obj) {
6767
6605
  return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
@@ -6896,7 +6734,7 @@ var brightcovePlayerUrl = function brightcovePlayerUrl(_ref) {
6896
6734
 
6897
6735
  var qs = '';
6898
6736
 
6899
- if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof(queryParams)) === 'object') {
6737
+ if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof$1(queryParams)) === 'object') {
6900
6738
  qs = getQueryString(queryParams);
6901
6739
  }
6902
6740
 
@@ -7130,7 +6968,7 @@ var wrapResponsive = function wrapResponsive(embedType, embedOptions, el) {
7130
6968
  el.style.width = '100%';
7131
6969
  el.style.height = '100%';
7132
6970
 
7133
- var responsive = _extends$1$1({
6971
+ var responsive = _extends$1({
7134
6972
  aspectRatio: DEFAULT_ASPECT_RATIO,
7135
6973
  iframeHorizontalPlaylist: DEFAULT_IFRAME_HORIZONTAL_PLAYLIST,
7136
6974
  maxWidth: DEFAULT_MAX_WIDTH
@@ -7815,7 +7653,7 @@ var loadPlayer = function loadPlayer(params, resolve, reject) {
7815
7653
 
7816
7654
 
7817
7655
  var brightcovePlayerLoader = function brightcovePlayerLoader(parameters) {
7818
- var params = _extends$1$1({}, DEFAULTS, parameters);
7656
+ var params = _extends$1({}, DEFAULTS, parameters);
7819
7657
 
7820
7658
  var Promise = params.Promise,
7821
7659
  onSuccess = params.onSuccess,
@@ -7957,7 +7795,7 @@ function (_React$Component) {
7957
7795
  _this.refNode = ref;
7958
7796
  };
7959
7797
 
7960
- _this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized(_this));
7798
+ _this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized$1(_this));
7961
7799
  return _this;
7962
7800
  }
7963
7801
  /**
@@ -7978,7 +7816,7 @@ function (_React$Component) {
7978
7816
  var userSuccess = this.props.onSuccess;
7979
7817
  var userFailure = this.props.onFailure;
7980
7818
 
7981
- var options = _extends$1({}, this.props, {
7819
+ var options = _extends({}, this.props, {
7982
7820
  refNode: this.refNode,
7983
7821
  refNodeInsert: 'append',
7984
7822
  onSuccess: function onSuccess(_ref) {
@@ -8287,7 +8125,7 @@ function (_React$Component) {
8287
8125
  ;
8288
8126
 
8289
8127
  _proto.render = function render() {
8290
- var props = _extends$1({
8128
+ var props = _extends({
8291
8129
  className: 'brightcove-react-player-loader'
8292
8130
  }, this.props.attrs, {
8293
8131
  ref: this.setRefNode
@@ -8701,11 +8539,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
8701
8539
 
8702
8540
  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
8541
 
8704
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
8542
+ 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; } } }; }
8543
+
8544
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8545
+
8546
+ 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."); }
8547
+
8548
+ 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); }
8705
8549
 
8706
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
8550
+ 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; }
8707
8551
 
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; }
8552
+ 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
8553
 
8710
8554
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
8711
8555
 
@@ -8835,12 +8679,12 @@ function getSDK(url, sdkGlobal) {
8835
8679
 
8836
8680
  function getConfig(props$1, defaultProps, showWarning) {
8837
8681
  var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
8838
- var _iteratorNormalCompletion = true;
8839
- var _didIteratorError = false;
8840
- var _iteratorError = undefined;
8682
+
8683
+ var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
8684
+ _step;
8841
8685
 
8842
8686
  try {
8843
- for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
8687
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
8844
8688
  var p = _step.value;
8845
8689
 
8846
8690
  if (props$1[p]) {
@@ -8855,18 +8699,9 @@ function getConfig(props$1, defaultProps, showWarning) {
8855
8699
  }
8856
8700
  }
8857
8701
  } catch (err) {
8858
- _didIteratorError = true;
8859
- _iteratorError = err;
8702
+ _iterator.e(err);
8860
8703
  } finally {
8861
- try {
8862
- if (!_iteratorNormalCompletion && _iterator["return"] != null) {
8863
- _iterator["return"]();
8864
- }
8865
- } finally {
8866
- if (_didIteratorError) {
8867
- throw _iteratorError;
8868
- }
8869
- }
8704
+ _iterator.f();
8870
8705
  }
8871
8706
 
8872
8707
  return config;
@@ -9013,12 +8848,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9013
8848
 
9014
8849
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9015
8850
 
9016
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
8851
+ 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
8852
 
9018
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
8853
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9019
8854
 
9020
8855
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9021
8856
 
8857
+ 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; } }
8858
+
8859
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
8860
+
9022
8861
  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
8862
 
9024
8863
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9027,14 +8866,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
9027
8866
 
9028
8867
  var SEEK_ON_PLAY_EXPIRY = 5000;
9029
8868
 
9030
- var Player =
9031
- /*#__PURE__*/
9032
- function (_Component) {
8869
+ var Player = /*#__PURE__*/function (_Component) {
9033
8870
  _inherits(Player, _Component);
9034
8871
 
9035
- function Player() {
9036
- var _getPrototypeOf2;
8872
+ var _super = _createSuper(Player);
9037
8873
 
8874
+ function Player() {
9038
8875
  var _this;
9039
8876
 
9040
8877
  _classCallCheck(this, Player);
@@ -9043,7 +8880,7 @@ function (_Component) {
9043
8880
  _args[_key] = arguments[_key];
9044
8881
  }
9045
8882
 
9046
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
8883
+ _this = _super.call.apply(_super, [this].concat(_args));
9047
8884
 
9048
8885
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
9049
8886
 
@@ -9368,7 +9205,7 @@ function (_Component) {
9368
9205
  return null;
9369
9206
  }
9370
9207
 
9371
- return _react["default"].createElement(Player, _extends({}, this.props, {
9208
+ return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
9372
9209
  ref: this.ref,
9373
9210
  onReady: this.handleReady,
9374
9211
  onPlay: this.handlePlay,
@@ -9429,12 +9266,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9429
9266
 
9430
9267
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9431
9268
 
9432
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9269
+ 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
9270
 
9434
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9271
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9435
9272
 
9436
9273
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9437
9274
 
9275
+ 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; } }
9276
+
9277
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9278
+
9438
9279
  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
9280
 
9440
9281
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9446,14 +9287,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
9446
9287
  function createSinglePlayer(activePlayer) {
9447
9288
  var _class, _temp;
9448
9289
 
9449
- return _temp = _class =
9450
- /*#__PURE__*/
9451
- function (_Component) {
9290
+ return _temp = _class = /*#__PURE__*/function (_Component) {
9452
9291
  _inherits(SinglePlayer, _Component);
9453
9292
 
9454
- function SinglePlayer() {
9455
- var _getPrototypeOf2;
9293
+ var _super = _createSuper(SinglePlayer);
9456
9294
 
9295
+ function SinglePlayer() {
9457
9296
  var _this;
9458
9297
 
9459
9298
  _classCallCheck(this, SinglePlayer);
@@ -9462,7 +9301,7 @@ function createSinglePlayer(activePlayer) {
9462
9301
  args[_key] = arguments[_key];
9463
9302
  }
9464
9303
 
9465
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
9304
+ _this = _super.call.apply(_super, [this].concat(args));
9466
9305
 
9467
9306
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
9468
9307
 
@@ -9530,12 +9369,12 @@ function createSinglePlayer(activePlayer) {
9530
9369
  height = _this$props.height,
9531
9370
  Wrapper = _this$props.wrapper;
9532
9371
  var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
9533
- return _react["default"].createElement(Wrapper, _extends({
9372
+ return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
9534
9373
  style: _objectSpread({}, style, {
9535
9374
  width: width,
9536
9375
  height: height
9537
9376
  })
9538
- }, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
9377
+ }, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
9539
9378
  ref: this.ref,
9540
9379
  activePlayer: activePlayer,
9541
9380
  config: this.config
@@ -9581,23 +9420,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9581
9420
 
9582
9421
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9583
9422
 
9584
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9423
+ 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
9424
 
9586
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9425
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9587
9426
 
9588
9427
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9589
9428
 
9429
+ 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; } }
9430
+
9431
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9432
+
9590
9433
  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
9434
 
9592
9435
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9593
9436
 
9594
9437
  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
9438
 
9596
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
9439
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
9440
+
9441
+ 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."); }
9442
+
9443
+ 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); }
9597
9444
 
9598
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
9445
+ 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; }
9599
9446
 
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; }
9447
+ 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
9448
 
9602
9449
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9603
9450
 
@@ -9622,14 +9469,12 @@ function parsePlaylist(url) {
9622
9469
  return {};
9623
9470
  }
9624
9471
 
9625
- var YouTube =
9626
- /*#__PURE__*/
9627
- function (_Component) {
9472
+ var YouTube = /*#__PURE__*/function (_Component) {
9628
9473
  _inherits(YouTube, _Component);
9629
9474
 
9630
- function YouTube() {
9631
- var _getPrototypeOf2;
9475
+ var _super = _createSuper(YouTube);
9632
9476
 
9477
+ function YouTube() {
9633
9478
  var _this;
9634
9479
 
9635
9480
  _classCallCheck(this, YouTube);
@@ -9638,7 +9483,7 @@ function (_Component) {
9638
9483
  args[_key] = arguments[_key];
9639
9484
  }
9640
9485
 
9641
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
9486
+ _this = _super.call.apply(_super, [this].concat(args));
9642
9487
 
9643
9488
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
9644
9489
 
@@ -9826,9 +9671,9 @@ function (_Component) {
9826
9671
  height: '100%',
9827
9672
  display: display
9828
9673
  };
9829
- return _react["default"].createElement("div", {
9674
+ return /*#__PURE__*/_react["default"].createElement("div", {
9830
9675
  style: style
9831
- }, _react["default"].createElement("div", {
9676
+ }, /*#__PURE__*/_react["default"].createElement("div", {
9832
9677
  ref: this.ref
9833
9678
  }));
9834
9679
  }
@@ -9884,12 +9729,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9884
9729
 
9885
9730
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9886
9731
 
9887
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9732
+ 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
9733
 
9889
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9734
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9890
9735
 
9891
9736
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9892
9737
 
9738
+ 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; } }
9739
+
9740
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9741
+
9893
9742
  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
9743
 
9895
9744
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9898,16 +9747,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
9898
9747
 
9899
9748
  var SDK_URL = 'https://w.soundcloud.com/player/api.js';
9900
9749
  var SDK_GLOBAL = 'SC';
9901
- var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
9750
+ var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
9902
9751
 
9903
- var SoundCloud =
9904
- /*#__PURE__*/
9905
- function (_Component) {
9752
+ var SoundCloud = /*#__PURE__*/function (_Component) {
9906
9753
  _inherits(SoundCloud, _Component);
9907
9754
 
9908
- function SoundCloud() {
9909
- var _getPrototypeOf2;
9755
+ var _super = _createSuper(SoundCloud);
9910
9756
 
9757
+ function SoundCloud() {
9911
9758
  var _this;
9912
9759
 
9913
9760
  _classCallCheck(this, SoundCloud);
@@ -9916,7 +9763,7 @@ function (_Component) {
9916
9763
  args[_key] = arguments[_key];
9917
9764
  }
9918
9765
 
9919
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
9766
+ _this = _super.call.apply(_super, [this].concat(args));
9920
9767
 
9921
9768
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
9922
9769
 
@@ -10037,7 +9884,7 @@ function (_Component) {
10037
9884
  height: '100%',
10038
9885
  display: display
10039
9886
  };
10040
- return _react["default"].createElement("iframe", {
9887
+ return /*#__PURE__*/_react["default"].createElement("iframe", {
10041
9888
  ref: this.ref,
10042
9889
  src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
10043
9890
  style: style,
@@ -10099,12 +9946,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10099
9946
 
10100
9947
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10101
9948
 
10102
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9949
+ 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
9950
 
10104
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9951
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10105
9952
 
10106
9953
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10107
9954
 
9955
+ 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; } }
9956
+
9957
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9958
+
10108
9959
  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
9960
 
10110
9961
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10116,14 +9967,12 @@ var SDK_GLOBAL = 'Vimeo';
10116
9967
  var MATCH_URL = /vimeo\.com\/.+/;
10117
9968
  var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
10118
9969
 
10119
- var Vimeo =
10120
- /*#__PURE__*/
10121
- function (_Component) {
9970
+ var Vimeo = /*#__PURE__*/function (_Component) {
10122
9971
  _inherits(Vimeo, _Component);
10123
9972
 
10124
- function Vimeo() {
10125
- var _getPrototypeOf2;
9973
+ var _super = _createSuper(Vimeo);
10126
9974
 
9975
+ function Vimeo() {
10127
9976
  var _this;
10128
9977
 
10129
9978
  _classCallCheck(this, Vimeo);
@@ -10132,7 +9981,7 @@ function (_Component) {
10132
9981
  args[_key] = arguments[_key];
10133
9982
  }
10134
9983
 
10135
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
9984
+ _this = _super.call.apply(_super, [this].concat(args));
10136
9985
 
10137
9986
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10138
9987
 
@@ -10289,7 +10138,7 @@ function (_Component) {
10289
10138
  overflow: 'hidden',
10290
10139
  display: display
10291
10140
  };
10292
- return _react["default"].createElement("div", {
10141
+ return /*#__PURE__*/_react["default"].createElement("div", {
10293
10142
  key: this.props.url,
10294
10143
  ref: this.ref,
10295
10144
  style: style
@@ -10349,12 +10198,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10349
10198
 
10350
10199
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10351
10200
 
10352
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10201
+ 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
10202
 
10354
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10203
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10355
10204
 
10356
10205
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10357
10206
 
10207
+ 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; } }
10208
+
10209
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10210
+
10358
10211
  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
10212
 
10360
10213
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10367,14 +10220,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
10367
10220
  var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
10368
10221
  var PLAYER_ID_PREFIX = 'facebook-player-';
10369
10222
 
10370
- var Facebook =
10371
- /*#__PURE__*/
10372
- function (_Component) {
10223
+ var Facebook = /*#__PURE__*/function (_Component) {
10373
10224
  _inherits(Facebook, _Component);
10374
10225
 
10375
- function Facebook() {
10376
- var _getPrototypeOf2;
10226
+ var _super = _createSuper(Facebook);
10377
10227
 
10228
+ function Facebook() {
10378
10229
  var _this;
10379
10230
 
10380
10231
  _classCallCheck(this, Facebook);
@@ -10383,7 +10234,7 @@ function (_Component) {
10383
10234
  args[_key] = arguments[_key];
10384
10235
  }
10385
10236
 
10386
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
10237
+ _this = _super.call.apply(_super, [this].concat(args));
10387
10238
 
10388
10239
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10389
10240
 
@@ -10499,7 +10350,7 @@ function (_Component) {
10499
10350
  width: '100%',
10500
10351
  height: '100%'
10501
10352
  };
10502
- return _react["default"].createElement("div", {
10353
+ return /*#__PURE__*/_react["default"].createElement("div", {
10503
10354
  style: style,
10504
10355
  id: this.playerID,
10505
10356
  className: "fb-video",
@@ -10559,12 +10410,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10559
10410
 
10560
10411
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10561
10412
 
10562
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10413
+ 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
10414
 
10564
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10415
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10565
10416
 
10566
10417
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10567
10418
 
10419
+ 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; } }
10420
+
10421
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10422
+
10568
10423
  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
10424
 
10570
10425
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10575,14 +10430,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
10575
10430
  var SDK_GLOBAL = 'playerjs';
10576
10431
  var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
10577
10432
 
10578
- var Streamable =
10579
- /*#__PURE__*/
10580
- function (_Component) {
10433
+ var Streamable = /*#__PURE__*/function (_Component) {
10581
10434
  _inherits(Streamable, _Component);
10582
10435
 
10583
- function Streamable() {
10584
- var _getPrototypeOf2;
10436
+ var _super = _createSuper(Streamable);
10585
10437
 
10438
+ function Streamable() {
10586
10439
  var _this;
10587
10440
 
10588
10441
  _classCallCheck(this, Streamable);
@@ -10591,7 +10444,7 @@ function (_Component) {
10591
10444
  args[_key] = arguments[_key];
10592
10445
  }
10593
10446
 
10594
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
10447
+ _this = _super.call.apply(_super, [this].concat(args));
10595
10448
 
10596
10449
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10597
10450
 
@@ -10711,7 +10564,7 @@ function (_Component) {
10711
10564
  width: '100%',
10712
10565
  height: '100%'
10713
10566
  };
10714
- return _react["default"].createElement("iframe", {
10567
+ return /*#__PURE__*/_react["default"].createElement("iframe", {
10715
10568
  ref: this.ref,
10716
10569
  src: "https://streamable.com/o/".concat(id),
10717
10570
  frameBorder: "0",
@@ -10772,12 +10625,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10772
10625
 
10773
10626
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10774
10627
 
10775
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10628
+ 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
10629
 
10777
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10630
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10778
10631
 
10779
10632
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10780
10633
 
10634
+ 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; } }
10635
+
10636
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10637
+
10781
10638
  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
10639
 
10783
10640
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10788,26 +10645,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
10788
10645
  var SDK_GLOBAL = 'Wistia';
10789
10646
  var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
10790
10647
 
10791
- var Wistia =
10792
- /*#__PURE__*/
10793
- function (_Component) {
10648
+ var Wistia = /*#__PURE__*/function (_Component) {
10794
10649
  _inherits(Wistia, _Component);
10795
10650
 
10796
- function Wistia() {
10797
- var _getPrototypeOf2;
10651
+ var _super = _createSuper(Wistia);
10798
10652
 
10653
+ function Wistia() {
10799
10654
  var _this;
10800
10655
 
10801
10656
  _classCallCheck(this, Wistia);
10802
10657
 
10803
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
10804
- args[_key] = arguments[_key];
10658
+ for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
10659
+ _args[_key] = arguments[_key];
10805
10660
  }
10806
10661
 
10807
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
10662
+ _this = _super.call.apply(_super, [this].concat(_args));
10808
10663
 
10809
10664
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10810
10665
 
10666
+ _defineProperty(_assertThisInitialized(_this), "onPlay", function () {
10667
+ var _this$props;
10668
+
10669
+ return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
10670
+ });
10671
+
10672
+ _defineProperty(_assertThisInitialized(_this), "onPause", function () {
10673
+ var _this$props2;
10674
+
10675
+ return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
10676
+ });
10677
+
10678
+ _defineProperty(_assertThisInitialized(_this), "onSeek", function () {
10679
+ var _this$props3;
10680
+
10681
+ return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
10682
+ });
10683
+
10684
+ _defineProperty(_assertThisInitialized(_this), "onEnded", function () {
10685
+ var _this$props4;
10686
+
10687
+ return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
10688
+ });
10689
+
10811
10690
  _defineProperty(_assertThisInitialized(_this), "mute", function () {
10812
10691
  _this.callPlayer('mute');
10813
10692
  });
@@ -10829,17 +10708,13 @@ function (_Component) {
10829
10708
  value: function load(url) {
10830
10709
  var _this2 = this;
10831
10710
 
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;
10711
+ var _this$props5 = this.props,
10712
+ playing = _this$props5.playing,
10713
+ muted = _this$props5.muted,
10714
+ controls = _this$props5.controls,
10715
+ _onReady = _this$props5.onReady,
10716
+ config = _this$props5.config,
10717
+ onError = _this$props5.onError;
10843
10718
  (0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
10844
10719
  window._wq = window._wq || [];
10845
10720
 
@@ -10856,19 +10731,28 @@ function (_Component) {
10856
10731
 
10857
10732
  _this2.unbind();
10858
10733
 
10859
- _this2.player.bind('play', onPlay);
10734
+ _this2.player.bind('play', _this2.onPlay);
10860
10735
 
10861
- _this2.player.bind('pause', onPause);
10736
+ _this2.player.bind('pause', _this2.onPause);
10862
10737
 
10863
- _this2.player.bind('seek', onSeek);
10738
+ _this2.player.bind('seek', _this2.onSeek);
10864
10739
 
10865
- _this2.player.bind('end', onEnded);
10740
+ _this2.player.bind('end', _this2.onEnded);
10866
10741
 
10867
10742
  _onReady();
10868
10743
  }
10869
10744
  });
10870
10745
  }, onError);
10871
10746
  }
10747
+ }, {
10748
+ key: "unbind",
10749
+ value: function unbind() {
10750
+ this.player.unbind('play', this.onPlay);
10751
+ this.player.unbind('pause', this.onPause);
10752
+ this.player.unbind('seek', this.onSeek);
10753
+ this.player.unbind('end', this.onEnded);
10754
+ } // Proxy methods to prevent listener leaks
10755
+
10872
10756
  }, {
10873
10757
  key: "play",
10874
10758
  value: function play() {
@@ -10879,19 +10763,6 @@ function (_Component) {
10879
10763
  value: function pause() {
10880
10764
  this.callPlayer('pause');
10881
10765
  }
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
10766
  }, {
10896
10767
  key: "stop",
10897
10768
  value: function stop() {
@@ -10937,7 +10808,7 @@ function (_Component) {
10937
10808
  width: '100%',
10938
10809
  height: '100%'
10939
10810
  };
10940
- return _react["default"].createElement("div", {
10811
+ return /*#__PURE__*/_react["default"].createElement("div", {
10941
10812
  key: id,
10942
10813
  className: className,
10943
10814
  style: style
@@ -10997,12 +10868,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10997
10868
 
10998
10869
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10999
10870
 
11000
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10871
+ 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
10872
 
11002
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10873
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11003
10874
 
11004
10875
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11005
10876
 
10877
+ 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; } }
10878
+
10879
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10880
+
11006
10881
  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
10882
 
11008
10883
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11015,14 +10890,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
11015
10890
  var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
11016
10891
  var PLAYER_ID_PREFIX = 'twitch-player-';
11017
10892
 
11018
- var Twitch =
11019
- /*#__PURE__*/
11020
- function (_Component) {
10893
+ var Twitch = /*#__PURE__*/function (_Component) {
11021
10894
  _inherits(Twitch, _Component);
11022
10895
 
11023
- function Twitch() {
11024
- var _getPrototypeOf2;
10896
+ var _super = _createSuper(Twitch);
11025
10897
 
10898
+ function Twitch() {
11026
10899
  var _this;
11027
10900
 
11028
10901
  _classCallCheck(this, Twitch);
@@ -11031,7 +10904,7 @@ function (_Component) {
11031
10904
  args[_key] = arguments[_key];
11032
10905
  }
11033
10906
 
11034
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
10907
+ _this = _super.call.apply(_super, [this].concat(args));
11035
10908
 
11036
10909
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11037
10910
 
@@ -11152,7 +11025,7 @@ function (_Component) {
11152
11025
  width: '100%',
11153
11026
  height: '100%'
11154
11027
  };
11155
- return _react["default"].createElement("div", {
11028
+ return /*#__PURE__*/_react["default"].createElement("div", {
11156
11029
  style: style,
11157
11030
  id: this.playerID
11158
11031
  });
@@ -11205,11 +11078,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
11205
11078
 
11206
11079
  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
11080
 
11208
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
11081
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
11082
+
11083
+ 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."); }
11084
+
11085
+ 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
11086
 
11210
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
11087
+ 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
11088
 
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; }
11089
+ 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
11090
 
11214
11091
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11215
11092
 
@@ -11219,12 +11096,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11219
11096
 
11220
11097
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11221
11098
 
11222
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11099
+ 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
11100
 
11224
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11101
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11225
11102
 
11226
11103
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11227
11104
 
11105
+ 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; } }
11106
+
11107
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11108
+
11228
11109
  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
11110
 
11230
11111
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11236,14 +11117,12 @@ var SDK_GLOBAL = 'DM';
11236
11117
  var SDK_GLOBAL_READY = 'dmAsyncInit';
11237
11118
  var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
11238
11119
 
11239
- var DailyMotion =
11240
- /*#__PURE__*/
11241
- function (_Component) {
11120
+ var DailyMotion = /*#__PURE__*/function (_Component) {
11242
11121
  _inherits(DailyMotion, _Component);
11243
11122
 
11244
- function DailyMotion() {
11245
- var _getPrototypeOf2;
11123
+ var _super = _createSuper(DailyMotion);
11246
11124
 
11125
+ function DailyMotion() {
11247
11126
  var _this;
11248
11127
 
11249
11128
  _classCallCheck(this, DailyMotion);
@@ -11252,7 +11131,7 @@ function (_Component) {
11252
11131
  args[_key] = arguments[_key];
11253
11132
  }
11254
11133
 
11255
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
11134
+ _this = _super.call.apply(_super, [this].concat(args));
11256
11135
 
11257
11136
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11258
11137
 
@@ -11381,9 +11260,9 @@ function (_Component) {
11381
11260
  height: '100%',
11382
11261
  display: display
11383
11262
  };
11384
- return _react["default"].createElement("div", {
11263
+ return /*#__PURE__*/_react["default"].createElement("div", {
11385
11264
  style: style
11386
- }, _react["default"].createElement("div", {
11265
+ }, /*#__PURE__*/_react["default"].createElement("div", {
11387
11266
  ref: this.ref
11388
11267
  }));
11389
11268
  }
@@ -11441,12 +11320,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11441
11320
 
11442
11321
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11443
11322
 
11444
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11323
+ 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
11324
 
11446
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11325
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11447
11326
 
11448
11327
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11449
11328
 
11329
+ 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; } }
11330
+
11331
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11332
+
11450
11333
  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
11334
 
11452
11335
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11457,14 +11340,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
11457
11340
  var SDK_GLOBAL = 'Mixcloud';
11458
11341
  var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
11459
11342
 
11460
- var Mixcloud =
11461
- /*#__PURE__*/
11462
- function (_Component) {
11343
+ var Mixcloud = /*#__PURE__*/function (_Component) {
11463
11344
  _inherits(Mixcloud, _Component);
11464
11345
 
11465
- function Mixcloud() {
11466
- var _getPrototypeOf2;
11346
+ var _super = _createSuper(Mixcloud);
11467
11347
 
11348
+ function Mixcloud() {
11468
11349
  var _this;
11469
11350
 
11470
11351
  _classCallCheck(this, Mixcloud);
@@ -11473,7 +11354,7 @@ function (_Component) {
11473
11354
  args[_key] = arguments[_key];
11474
11355
  }
11475
11356
 
11476
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
11357
+ _this = _super.call.apply(_super, [this].concat(args));
11477
11358
 
11478
11359
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11479
11360
 
@@ -11576,7 +11457,7 @@ function (_Component) {
11576
11457
  })); // We have to give the iframe a key here to prevent a
11577
11458
  // weird dialog appearing when loading a new track
11578
11459
 
11579
- return _react["default"].createElement("iframe", {
11460
+ return /*#__PURE__*/_react["default"].createElement("iframe", {
11580
11461
  key: id,
11581
11462
  ref: this.ref,
11582
11463
  style: style,
@@ -11636,23 +11517,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11636
11517
 
11637
11518
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11638
11519
 
11639
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11520
+ 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
11521
 
11641
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11522
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11642
11523
 
11643
11524
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11644
11525
 
11526
+ 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; } }
11527
+
11528
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11529
+
11645
11530
  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
11531
 
11647
11532
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
11648
11533
 
11649
11534
  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
11535
 
11536
+ 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; } } }; }
11537
+
11538
+ 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); }
11539
+
11540
+ 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; }
11541
+
11651
11542
  var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
11652
11543
  var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
11653
11544
  var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
11654
11545
  var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
11655
- var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
11546
+ var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
11656
11547
  var HLS_GLOBAL = 'Hls';
11657
11548
  var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
11658
11549
  var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
@@ -11661,12 +11552,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
11661
11552
 
11662
11553
  function canPlay(url) {
11663
11554
  if (url instanceof Array) {
11664
- var _iteratorNormalCompletion = true;
11665
- var _didIteratorError = false;
11666
- var _iteratorError = undefined;
11555
+ var _iterator = _createForOfIteratorHelper(url),
11556
+ _step;
11667
11557
 
11668
11558
  try {
11669
- for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
11559
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
11670
11560
  var item = _step.value;
11671
11561
 
11672
11562
  if (typeof item === 'string' && canPlay(item)) {
@@ -11678,18 +11568,9 @@ function canPlay(url) {
11678
11568
  }
11679
11569
  }
11680
11570
  } catch (err) {
11681
- _didIteratorError = true;
11682
- _iteratorError = err;
11571
+ _iterator.e(err);
11683
11572
  } finally {
11684
- try {
11685
- if (!_iteratorNormalCompletion && _iterator["return"] != null) {
11686
- _iterator["return"]();
11687
- }
11688
- } finally {
11689
- if (_didIteratorError) {
11690
- throw _iteratorError;
11691
- }
11692
- }
11573
+ _iterator.f();
11693
11574
  }
11694
11575
 
11695
11576
  return false;
@@ -11713,14 +11594,12 @@ function canEnablePIP(url) {
11713
11594
  return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
11714
11595
  }
11715
11596
 
11716
- var FilePlayer =
11717
- /*#__PURE__*/
11718
- function (_Component) {
11597
+ var FilePlayer = /*#__PURE__*/function (_Component) {
11719
11598
  _inherits(FilePlayer, _Component);
11720
11599
 
11721
- function FilePlayer() {
11722
- var _getPrototypeOf2;
11600
+ var _super = _createSuper(FilePlayer);
11723
11601
 
11602
+ function FilePlayer() {
11724
11603
  var _this;
11725
11604
 
11726
11605
  _classCallCheck(this, FilePlayer);
@@ -11729,7 +11608,7 @@ function (_Component) {
11729
11608
  _args[_key] = arguments[_key];
11730
11609
  }
11731
11610
 
11732
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
11611
+ _this = _super.call.apply(_super, [this].concat(_args));
11733
11612
 
11734
11613
  _defineProperty(_assertThisInitialized(_this), "onReady", function () {
11735
11614
  var _this$props;
@@ -11816,19 +11695,19 @@ function (_Component) {
11816
11695
 
11817
11696
  _defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
11818
11697
  if (typeof source === 'string') {
11819
- return _react["default"].createElement("source", {
11698
+ return /*#__PURE__*/_react["default"].createElement("source", {
11820
11699
  key: index,
11821
11700
  src: source
11822
11701
  });
11823
11702
  }
11824
11703
 
11825
- return _react["default"].createElement("source", _extends({
11704
+ return /*#__PURE__*/_react["default"].createElement("source", _extends({
11826
11705
  key: index
11827
11706
  }, source));
11828
11707
  });
11829
11708
 
11830
11709
  _defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
11831
- return _react["default"].createElement("track", _extends({
11710
+ return /*#__PURE__*/_react["default"].createElement("track", _extends({
11832
11711
  key: index
11833
11712
  }, track));
11834
11713
  });
@@ -11866,6 +11745,10 @@ function (_Component) {
11866
11745
  key: "componentWillUnmount",
11867
11746
  value: function componentWillUnmount() {
11868
11747
  this.removeListeners(this.player);
11748
+
11749
+ if (this.hls) {
11750
+ this.hls.destroy();
11751
+ }
11869
11752
  }
11870
11753
  }, {
11871
11754
  key: "addListeners",
@@ -11996,10 +11879,6 @@ function (_Component) {
11996
11879
  value: function stop() {
11997
11880
  this.player.removeAttribute('src');
11998
11881
 
11999
- if (this.hls) {
12000
- this.hls.destroy();
12001
- }
12002
-
12003
11882
  if (this.dash) {
12004
11883
  this.dash.reset();
12005
11884
  }
@@ -12111,7 +11990,7 @@ function (_Component) {
12111
11990
  width: width === 'auto' ? width : '100%',
12112
11991
  height: height === 'auto' ? height : '100%'
12113
11992
  };
12114
- return _react["default"].createElement(Element, _extends({
11993
+ return /*#__PURE__*/_react["default"].createElement(Element, _extends({
12115
11994
  ref: this.ref,
12116
11995
  src: this.getSource(url),
12117
11996
  style: style,
@@ -12201,12 +12080,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
12201
12080
 
12202
12081
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
12203
12082
 
12204
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12083
+ 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
12084
 
12206
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12085
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12207
12086
 
12208
12087
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12209
12088
 
12089
+ 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; } }
12090
+
12091
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12092
+
12210
12093
  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
12094
 
12212
12095
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -12215,14 +12098,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12215
12098
 
12216
12099
  var ICON_SIZE = '64px';
12217
12100
 
12218
- var Preview =
12219
- /*#__PURE__*/
12220
- function (_Component) {
12101
+ var Preview = /*#__PURE__*/function (_Component) {
12221
12102
  _inherits(Preview, _Component);
12222
12103
 
12223
- function Preview() {
12224
- var _getPrototypeOf2;
12104
+ var _super = _createSuper(Preview);
12225
12105
 
12106
+ function Preview() {
12226
12107
  var _this;
12227
12108
 
12228
12109
  _classCallCheck(this, Preview);
@@ -12231,7 +12112,7 @@ function (_Component) {
12231
12112
  args[_key] = arguments[_key];
12232
12113
  }
12233
12114
 
12234
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
12115
+ _this = _super.call.apply(_super, [this].concat(args));
12235
12116
 
12236
12117
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
12237
12118
 
@@ -12329,15 +12210,15 @@ function (_Component) {
12329
12210
  }
12330
12211
  };
12331
12212
 
12332
- var defaultPlayIcon = _react["default"].createElement("div", {
12213
+ var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
12333
12214
  style: styles.shadow,
12334
12215
  className: "react-player__shadow"
12335
- }, _react["default"].createElement("div", {
12216
+ }, /*#__PURE__*/_react["default"].createElement("div", {
12336
12217
  style: styles.playIcon,
12337
12218
  className: "react-player__play-icon"
12338
12219
  }));
12339
12220
 
12340
- return _react["default"].createElement("div", {
12221
+ return /*#__PURE__*/_react["default"].createElement("div", {
12341
12222
  style: styles.preview,
12342
12223
  className: "react-player__preview",
12343
12224
  onClick: onClick
@@ -12374,6 +12255,12 @@ var _Player = _interopRequireDefault(Player_1);
12374
12255
 
12375
12256
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12376
12257
 
12258
+ 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; } } }; }
12259
+
12260
+ 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); }
12261
+
12262
+ 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; }
12263
+
12377
12264
  var PRELOAD_PLAYERS = [{
12378
12265
  Player: YouTube_1.YouTube,
12379
12266
  configKey: 'youtube',
@@ -12394,16 +12281,16 @@ var PRELOAD_PLAYERS = [{
12394
12281
 
12395
12282
  function renderPreloadPlayers(url, controls, config) {
12396
12283
  var players = [];
12397
- var _iteratorNormalCompletion = true;
12398
- var _didIteratorError = false;
12399
- var _iteratorError = undefined;
12284
+
12285
+ var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
12286
+ _step;
12400
12287
 
12401
12288
  try {
12402
- for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
12289
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
12403
12290
  var player = _step.value;
12404
12291
 
12405
12292
  if (!player.Player.canPlay(url) && config[player.configKey].preload) {
12406
- players.push(_react["default"].createElement(_Player["default"], {
12293
+ players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
12407
12294
  key: player.Player.displayName,
12408
12295
  activePlayer: player.Player,
12409
12296
  url: player.url,
@@ -12415,18 +12302,9 @@ function renderPreloadPlayers(url, controls, config) {
12415
12302
  }
12416
12303
  }
12417
12304
  } catch (err) {
12418
- _didIteratorError = true;
12419
- _iteratorError = err;
12305
+ _iterator.e(err);
12420
12306
  } finally {
12421
- try {
12422
- if (!_iteratorNormalCompletion && _iterator["return"] != null) {
12423
- _iterator["return"]();
12424
- }
12425
- } finally {
12426
- if (_didIteratorError) {
12427
- throw _iteratorError;
12428
- }
12429
- }
12307
+ _iterator.f();
12430
12308
  }
12431
12309
 
12432
12310
  return players;
@@ -12550,13 +12428,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
12550
12428
 
12551
12429
  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
12430
 
12553
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
12431
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
12432
+
12433
+ 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."); }
12434
+
12435
+ 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
12436
 
12555
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
12437
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
12556
12438
 
12557
- function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
12439
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
12558
12440
 
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; } }
12441
+ 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
12442
 
12561
12443
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
12562
12444
 
@@ -12564,12 +12446,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
12564
12446
 
12565
12447
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
12566
12448
 
12567
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12449
+ 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
12450
 
12569
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12451
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12570
12452
 
12571
12453
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12572
12454
 
12455
+ 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; } }
12456
+
12457
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12458
+
12573
12459
  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
12460
 
12575
12461
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -12579,14 +12465,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12579
12465
  var SUPPORTED_PROPS = Object.keys(props.propTypes);
12580
12466
  var customPlayers = [];
12581
12467
 
12582
- var ReactPlayer =
12583
- /*#__PURE__*/
12584
- function (_Component) {
12468
+ var ReactPlayer = /*#__PURE__*/function (_Component) {
12585
12469
  _inherits(ReactPlayer, _Component);
12586
12470
 
12587
- function ReactPlayer() {
12588
- var _getPrototypeOf2;
12471
+ var _super = _createSuper(ReactPlayer);
12589
12472
 
12473
+ function ReactPlayer() {
12590
12474
  var _this;
12591
12475
 
12592
12476
  _classCallCheck(this, ReactPlayer);
@@ -12595,7 +12479,7 @@ function (_Component) {
12595
12479
  args[_key] = arguments[_key];
12596
12480
  }
12597
12481
 
12598
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
12482
+ _this = _super.call.apply(_super, [this].concat(args));
12599
12483
 
12600
12484
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
12601
12485
 
@@ -12706,7 +12590,7 @@ function (_Component) {
12706
12590
  key: "renderActivePlayer",
12707
12591
  value: function renderActivePlayer(url, activePlayer) {
12708
12592
  if (!url) return null;
12709
- return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
12593
+ return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
12710
12594
  key: activePlayer.displayName,
12711
12595
  ref: this.activePlayerRef,
12712
12596
  config: this.config,
@@ -12743,14 +12627,14 @@ function (_Component) {
12743
12627
  var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
12744
12628
  var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
12745
12629
 
12746
- var preview = _react["default"].createElement(_Preview["default"], {
12630
+ var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
12747
12631
  url: url,
12748
12632
  light: light,
12749
12633
  playIcon: playIcon,
12750
12634
  onClick: this.handleClickPreview
12751
12635
  });
12752
12636
 
12753
- return _react["default"].createElement(Wrapper, _extends({
12637
+ return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
12754
12638
  ref: this.wrapperRef,
12755
12639
  style: _objectSpread({}, style, {
12756
12640
  width: width,
@@ -13509,7 +13393,7 @@ var Leads = function Leads(_ref) {
13509
13393
  );
13510
13394
  };
13511
13395
 
13512
- var urlFor$3 = function urlFor(source, client) {
13396
+ var urlFor$2 = function urlFor(source, client) {
13513
13397
  var builder = index$1.imageUrlBuilder(client);
13514
13398
  return builder.image(source).auto('format');
13515
13399
  };
@@ -13563,7 +13447,7 @@ var Slideshow$1 = function Slideshow(_ref) {
13563
13447
  React__default.createElement(
13564
13448
  'a',
13565
13449
  { 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%' } })
13450
+ React__default.createElement('img', { src: urlFor$2(slide.slideshowImage, client).url(), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
13567
13451
  ),
13568
13452
  React__default.createElement(
13569
13453
  'div',
@@ -13601,6 +13485,10 @@ var NativeAd = function NativeAd(props) {
13601
13485
  );
13602
13486
  };
13603
13487
 
13488
+ var Figure = dynamic(function () {
13489
+ return new Promise(function (resolve) { resolve(require('./Figure-fe3e9705.js')); });
13490
+ }, { ssr: false });
13491
+
13604
13492
  var checkUrlIsExternal = function checkUrlIsExternal(url) {
13605
13493
  if (/https?:\/\/((?:[\w\d-]+\.)+[\w\d]{2,})|(^mailto)/i.test(url)) {
13606
13494
  return true;
@@ -13656,7 +13544,7 @@ var getSerializers = function getSerializers() {
13656
13544
  figure: function figure(_ref3) {
13657
13545
  var node = _ref3.node;
13658
13546
 
13659
- return React__default.createElement(FigureComponent, { node: node, client: client });
13547
+ return React__default.createElement(Figure, { node: node, client: client });
13660
13548
  },
13661
13549
  slideshow: function slideshow(_ref4) {
13662
13550
  var node = _ref4.node;
@@ -13964,13 +13852,13 @@ var SetCookie = function SetCookie(key, value) {
13964
13852
  js_cookie.set(key, value, { expires: 1, sameSite: 'none', secure: true });
13965
13853
  };
13966
13854
 
13967
- var urlFor$4 = function urlFor(source, client) {
13855
+ var urlFor$3 = function urlFor(source, client) {
13968
13856
  var builder = index$1.imageUrlBuilder(client);
13969
13857
  return builder.image(source).auto('format');
13970
13858
  };
13971
13859
 
13972
13860
  var renderCardImage = function renderCardImage(thumbnail, client, imageHeight, imageWidth) {
13973
- var url = urlFor$4(thumbnail, client);
13861
+ var url = urlFor$3(thumbnail, client);
13974
13862
  if (imageHeight) url = url.height(imageHeight);
13975
13863
  if (imageWidth) url = url.width(imageWidth);
13976
13864
  return url.url();
@@ -14179,16 +14067,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
14179
14067
  _ref$className = _ref.className,
14180
14068
  className = _ref$className === undefined ? '' : _ref$className;
14181
14069
 
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
- />
14070
+ /*
14071
+ Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
14072
+ example:
14073
+ <RelatedTopicDropdown
14074
+ page='/clinical'
14075
+ exclude="clinical"
14076
+ className='mb-3'
14077
+ parentTaxonomy={props.parentTaxonomy}
14078
+ subTaxonomies={props.subTaxonomies}
14079
+ />
14192
14080
  */
14193
14081
  if (subTaxonomies.length === 0 && parentTaxonomy) {
14194
14082
  if (parentTaxonomy.identifier == exclude) {
@@ -14226,19 +14114,19 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
14226
14114
  }
14227
14115
  };
14228
14116
 
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
-
14117
+ /*
14118
+ This dropdown is used inside Article body to display related content placement pages
14119
+ sample usage: <ArticleDetailDropdown contentPlacement={content_placement} exclude={['News',]} />
14120
+
14121
+ in article query, need to add '...' to content_placement to retreive additional info needed
14122
+
14123
+ 'content_placement': taxonomyMapping[]-> {
14124
+ ...,
14125
+ 'ancestor': parent->parent->identifier,
14126
+ 'parent': parent->identifier,
14127
+ 'path': identifier
14128
+ }
14129
+
14242
14130
  */
14243
14131
 
14244
14132
  var ArticleDetailDropdown = function ArticleDetailDropdown(props) {
@@ -15077,34 +14965,34 @@ var GridHero = function GridHero(props) {
15077
14965
  );
15078
14966
  };
15079
14967
 
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
-
14968
+ /*
14969
+ Sample query
14970
+ let references = ''
14971
+ if(article.taxonomyMapping.length > 0){
14972
+ article.taxonomyMapping.forEach((ref, index) => {
14973
+ references = references + `references('${ref._ref}') `
14974
+ if(index+1 !== article.taxonomyMapping.length){
14975
+ references = references + ` && `
14976
+ }
14977
+ })
14978
+ }
14979
+
14980
+ 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] {
14981
+ ...,
14982
+ title,
14983
+ summary,
14984
+ thumbnail,
14985
+ url,
14986
+ published,
14987
+ authorMapping[]->,
14988
+ contentCategory->
14989
+ }`
14990
+ const relatedArticles = await client.fetch(relatedArticlesQuery)
14991
+
14992
+ Sample usage
14993
+ <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
14994
+
14995
+
15108
14996
  */
15109
14997
  var RelatedContent = function RelatedContent(props) {
15110
14998
  var client = props.client,
@@ -15171,21 +15059,21 @@ var RelatedContent = function RelatedContent(props) {
15171
15059
  );
15172
15060
  };
15173
15061
 
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)
15062
+ /*
15063
+ Example usage - targetedonc.com/latest-conference
15064
+ 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] {
15065
+ ...,
15066
+ title,
15067
+ summary,
15068
+ thumbnail,
15069
+ url,
15070
+ published,
15071
+ documentGroup->,
15072
+ contentCategory->,
15073
+ 'pageNumber': ${currentPage}
15074
+ }`
15075
+
15076
+ const posts = await client.fetch(query, params)
15189
15077
  */
15190
15078
 
15191
15079
  var ConferenceArticleCard = function ConferenceArticleCard(props) {
@@ -15812,27 +15700,27 @@ var _initialiseProps = function _initialiseProps() {
15812
15700
  };
15813
15701
 
15814
15702
  var KMTracker = function KMTracker(props) {
15815
- var id = props.id;
15703
+ var id = props.id;
15816
15704
 
15817
- if (document && id) {
15705
+ if (document && id) {
15818
15706
  (function () {
15819
- var ecnJquery = document.createElement('script');
15707
+ var ecnJquery = document.createElement('script');
15820
15708
 
15821
- ecnJquery.type = 'text/javascript';
15822
- ecnJquery.async = true;
15823
- ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
15709
+ ecnJquery.type = 'text/javascript';
15710
+ ecnJquery.async = true;
15711
+ ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
15824
15712
 
15825
- var ecnScript = document.createElement('script');
15713
+ var ecnScript = document.createElement('script');
15826
15714
 
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;
15715
+ ecnScript.type = 'text/javascript';
15716
+ ecnScript.async = true;
15717
+ ecnScript.id = 'km-tracker';
15718
+ ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
15831
15719
 
15832
- document.head.appendChild(ecnJquery);
15833
- document.head.appendChild(ecnScript);
15834
- })();
15835
- }
15720
+ document.head.appendChild(ecnJquery);
15721
+ document.head.appendChild(ecnScript);
15722
+ })();
15723
+ }
15836
15724
  };
15837
15725
 
15838
15726
  exports.AdSlot = AdSlot.DFPAdSlot;