@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/esm/index.js CHANGED
@@ -18,7 +18,7 @@ import { m as moment, I as InfiniteScroll, V as VisibilitySensor } from './visib
18
18
  import Link from 'next/link';
19
19
  import Router, { useRouter } from 'next/router';
20
20
  import 'react-dom';
21
- import { i as imageUrlBuilder } from './index-73819142.js';
21
+ import { i as imageUrlBuilder } from './index-3849e3fe.js';
22
22
  import './index-5f9f807a.js';
23
23
  import { h as html_decode_1, c as clean_html_1 } from './entities-7cc3bf45.js';
24
24
  import { _ as _slicedToArray } from './slicedToArray-d0a9593a.js';
@@ -28,17 +28,18 @@ import './promise-683a9c54.js';
28
28
  import './ADInfeed-a77b2850.js';
29
29
  export { default as DeckContent } from './DeckContent.js';
30
30
  import './get-b2201dc8.js';
31
- export { A as AD, G as GridContent } from './GridContent-8479e775.js';
31
+ export { A as AD, G as GridContent } from './GridContent-b8b5f361.js';
32
32
  export { default as DeckQueue } from './DeckQueue.js';
33
33
  import 'react-bootstrap/Media';
34
34
  export { default as ThumbnailCard } from './ThumbnailCard.js';
35
- import { B as BlockContent } from './TaxonomyCard-2d0ab635.js';
36
- export { T as TaxonomyCard } from './TaxonomyCard-2d0ab635.js';
35
+ import { B as BlockContent } from './TaxonomyCard-ee1a22ae.js';
36
+ export { T as TaxonomyCard } from './TaxonomyCard-ee1a22ae.js';
37
37
  import GroupDeck from './GroupDeck.js';
38
38
  export { default as GroupDeck } from './GroupDeck.js';
39
- import { g as getYoutubeId } from './YoutubeGroup-f59297bb.js';
40
- export { Y as YoutubeGroup } from './YoutubeGroup-f59297bb.js';
41
- import { Spinner as Spinner$1, Container as Container$1, Row as Row$1, Col as Col$1, Figure, Carousel, Table, Button as Button$1, ProgressBar, Card } from 'react-bootstrap';
39
+ import { g as getYoutubeId } from './YoutubeGroup-a87b8967.js';
40
+ export { Y as YoutubeGroup } from './YoutubeGroup-a87b8967.js';
41
+ import 'smoothscroll-polyfill';
42
+ import { Spinner as Spinner$1, Container as Container$1, Row as Row$1, Col as Col$1, Carousel, Table, Figure as Figure$1, Button as Button$1, ProgressBar, Card } from 'react-bootstrap';
42
43
  export { default as QueueDeckExpanded } from './QueueDeckExpanded.js';
43
44
  import { I as IoMdArrowDropdown } from './index.esm-536609db.js';
44
45
  export { default as VideoSeriesListing } from './VideoSeriesListing.js';
@@ -49,8 +50,8 @@ export { default as IssueDeck } from './IssueDeck.js';
49
50
  import 'react-bootstrap/Badge';
50
51
  export { default as IssueContentDeck } from './IssueContentDeck.js';
51
52
  import Spinner from 'react-bootstrap/Spinner';
52
- import { M as MdPictureAsPdf, T as TemplateNormal } from './Normal-3e5ad3d1.js';
53
- export { A as AD728x90, C as Column1, a as Column2, b as Column3, f as HamMagazine, H as Header, L as LeftNav, e as NavDvm, c as NavMagazine, N as NavNative, d as NavNormal, P as PageFilter, S as Search, g as SideFooter, T as TemplateNormal } from './Normal-3e5ad3d1.js';
53
+ import { M as MdPictureAsPdf, T as TemplateNormal } from './Normal-21cfb458.js';
54
+ export { A as AD728x90, C as Column1, a as Column2, b as Column3, f as HamMagazine, H as Header, L as LeftNav, e as NavDvm, c as NavMagazine, N as NavNative, d as NavNormal, P as PageFilter, S as Search, g as SideFooter, T as TemplateNormal } from './Normal-21cfb458.js';
54
55
  import 'react-bootstrap/ListGroup';
55
56
  import Head from 'next/head';
56
57
  import Accordion from 'react-bootstrap/Accordion';
@@ -63,6 +64,7 @@ import 'react-bootstrap/Form';
63
64
  import 'react-bootstrap/FormControl';
64
65
  import Modal from 'react-bootstrap/Modal';
65
66
  import Pagination from 'react-bootstrap/Pagination';
67
+ import dynamic from 'next/dynamic';
66
68
  import Carousel$1 from 'react-bootstrap/Carousel';
67
69
  import Breadcrumb from 'react-bootstrap/Breadcrumb';
68
70
  import DropdownButton from 'react-bootstrap/DropdownButton';
@@ -2012,8 +2014,7 @@ var EventsDeck = function EventsDeck(_ref) {
2012
2014
  Row,
2013
2015
  null,
2014
2016
  data && data.map(function (row, index) {
2015
- var title = row.title,
2016
- description = row.description,
2017
+ var description = row.description,
2017
2018
  start = row.start,
2018
2019
  venues = row.venues,
2019
2020
  _links = row._links,
@@ -2021,6 +2022,21 @@ var EventsDeck = function EventsDeck(_ref) {
2021
2022
  timezone = row.timezone,
2022
2023
  closeAfter = row.closeAfter;
2023
2024
 
2025
+ var discussionTopic = row.customFields.reduce(function (result, item) {
2026
+ if (item.name === 'Discussion Topic' && item.value) {
2027
+ result = item.value[0];
2028
+ return result;
2029
+ }
2030
+ return result;
2031
+ }, '');
2032
+ var eventRegion = row.customFields.reduce(function (result, item) {
2033
+ if (item.name === 'Event Region' && item.value) {
2034
+ result = item.value[0];
2035
+ return result;
2036
+ }
2037
+ return result;
2038
+ }, '');
2039
+
2024
2040
  var pageNumber = row.pageNumber || 1;
2025
2041
  return React__default.createElement(
2026
2042
  React__default.Fragment,
@@ -2046,7 +2062,7 @@ var EventsDeck = function EventsDeck(_ref) {
2046
2062
  React__default.createElement(
2047
2063
  'h5',
2048
2064
  null,
2049
- venues[0].name
2065
+ eventRegion
2050
2066
  ),
2051
2067
  React__default.createElement(
2052
2068
  'p',
@@ -2063,7 +2079,7 @@ var EventsDeck = function EventsDeck(_ref) {
2063
2079
  React__default.createElement(
2064
2080
  Col,
2065
2081
  { xs: 12, sm: 5 },
2066
- React__default.createElement('h6', { className: 'mb-1', dangerouslySetInnerHTML: { __html: title } }),
2082
+ React__default.createElement('h6', { className: 'mb-1', dangerouslySetInnerHTML: { __html: discussionTopic } }),
2067
2083
  virtual && React__default.createElement(
2068
2084
  'h5',
2069
2085
  null,
@@ -2136,6 +2152,8 @@ var EventsDeck = function EventsDeck(_ref) {
2136
2152
  );
2137
2153
  }
2138
2154
 
2155
+ // console.log(data.length > 0 && data[0].customFields.find((item) => item.name === 'Discussion Topic').value[0])
2156
+
2139
2157
  if (data.length > 0) {
2140
2158
  return React__default.createElement(
2141
2159
  'div',
@@ -3079,153 +3097,7 @@ var ADWelcome = function ADWelcome(_ref) {
3079
3097
  );
3080
3098
  };
3081
3099
 
3082
- var urlFor$1 = function urlFor(source, client) {
3083
- var builder = imageUrlBuilder(client);
3084
- return builder.image(source).auto('format');
3085
- };
3086
-
3087
- var FigureComponent = function FigureComponent(_ref) {
3088
- var node = _ref.node,
3089
- client = _ref.client;
3090
-
3091
- var imgElement = useRef(null);
3092
-
3093
- var _useState = useState(null),
3094
- _useState2 = _slicedToArray(_useState, 2),
3095
- imageWidth = _useState2[0],
3096
- setimageWidth = _useState2[1];
3097
-
3098
- var _useState3 = useState(null),
3099
- _useState4 = _slicedToArray(_useState3, 2),
3100
- imgFloat = _useState4[0],
3101
- setimgFloat = _useState4[1];
3102
-
3103
- var _useState5 = useState(false),
3104
- _useState6 = _slicedToArray(_useState5, 2),
3105
- openImg = _useState6[0],
3106
- setOpenImg = _useState6[1];
3107
-
3108
- var _useState7 = useState(''),
3109
- _useState8 = _slicedToArray(_useState7, 2),
3110
- openImgSrc = _useState8[0],
3111
- setOpenImgSrc = _useState8[1];
3112
-
3113
- var caption = node.caption,
3114
- alt = node.alt,
3115
- blank = node.blank,
3116
- link = node.link,
3117
- _node$alignment = node.alignment,
3118
- alignment = _node$alignment === undefined ? 'center' : _node$alignment;
3119
- var _node$widthP = node.widthP,
3120
- widthP = _node$widthP === undefined ? 'auto' : _node$widthP;
3121
-
3122
-
3123
- if (client.clientConfig && client.clientConfig.defaultImageSize && widthP === 'auto') {
3124
- widthP = client.clientConfig.defaultImageSize;
3125
- }
3126
-
3127
- var figureMargin = void 0;
3128
- if (imgFloat === 'none') {
3129
- figureMargin = '0 auto 1rem';
3130
- }
3131
- if (imgFloat === 'left') {
3132
- figureMargin = '0 1.5rem 1.5rem 0';
3133
- }
3134
- if (imgFloat === 'right') {
3135
- figureMargin = '0 0 1.5rem 1.5rem';
3136
- }
3137
-
3138
- var loadImg = function loadImg() {
3139
- var screenWidth = window.innerWidth;
3140
- if (screenWidth > 1000) {
3141
- if (widthP === 'auto') {
3142
- if (imgFloat === 'none') setimageWidth('auto');else setimageWidth('30%');
3143
- } else {
3144
- setimageWidth(widthP + '%');
3145
- }
3146
- } else {
3147
- setimageWidth('100%');
3148
- }
3149
- };
3150
-
3151
- useEffect(function () {
3152
- var screenWidth = window.innerWidth;
3153
- if (screenWidth > 1000) {
3154
- if (widthP === 'auto') {
3155
- if (imgFloat === 'none') setimageWidth('auto');else setimageWidth('30%');
3156
- } else {
3157
- setimageWidth(widthP + '%');
3158
- }
3159
- } else {
3160
- setimageWidth('100%');
3161
- }
3162
- }, [widthP, imgFloat]);
3163
-
3164
- useEffect(function () {
3165
- var screenWidth = window.innerWidth;
3166
- if (screenWidth > 1000) {
3167
- var align = ['center', 'top'].includes(alignment.toLowerCase()) ? 'none' : alignment.toLowerCase();
3168
- setimgFloat(align);
3169
- } else {
3170
- var _align = ['center', 'top'].includes(alignment.toLowerCase()) ? 'none' : alignment.toLowerCase();
3171
- setimgFloat(_align);
3172
- }
3173
-
3174
- // eslint-disable-next-line react-hooks/exhaustive-deps
3175
- }, []);
3176
-
3177
- if (!node.asset) return null;
3178
-
3179
- return React__default.createElement(
3180
- React__default.Fragment,
3181
- null,
3182
- imageWidth && imgFloat && React__default.createElement(
3183
- Figure,
3184
- { className: 'd-block', style: { width: imageWidth, maxWidth: '100%', clear: 'both', float: imgFloat, margin: figureMargin } },
3185
- link ? React__default.createElement(
3186
- 'a',
3187
- { target: blank ? '_blank' : '_self', href: link },
3188
- React__default.createElement(Figure.Image, { style: { width: '100%' }, className: 'figure-image', ref: imgElement, onLoad: loadImg, src: urlFor$1(node, client).url(), alt: alt && alt }),
3189
- caption && React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } })
3190
- ) : React__default.createElement(
3191
- React__default.Fragment,
3192
- null,
3193
- React__default.createElement(Figure.Image, {
3194
- style: { width: '100%' },
3195
- className: 'figure-image',
3196
- ref: imgElement,
3197
- onLoad: loadImg,
3198
- src: urlFor$1(node, client).url(),
3199
- alt: alt && alt,
3200
- onClick: function onClick() {
3201
- setOpenImgSrc(urlFor$1(node, client).url());
3202
- setOpenImg(true);
3203
- }
3204
- }),
3205
- caption && React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } })
3206
- )
3207
- ),
3208
- React__default.createElement(
3209
- 'div',
3210
- { className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
3211
- React__default.createElement('img', { src: openImgSrc }),
3212
- React__default.createElement('a', {
3213
- className: 'lightbox-close',
3214
- onClick: function onClick() {
3215
- setOpenImgSrc('');
3216
- setOpenImg(false);
3217
- }
3218
- })
3219
- ),
3220
- React__default.createElement(
3221
- 'style',
3222
- { jsx: 'true' },
3223
- '\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 '
3224
- )
3225
- );
3226
- };
3227
-
3228
- var urlFor$2 = function urlFor(source, builder) {
3100
+ var urlFor$1 = function urlFor(source, builder) {
3229
3101
  return builder.image(source).auto('format');
3230
3102
  };
3231
3103
 
@@ -3276,7 +3148,7 @@ var Slideshow = function Slideshow(_ref) {
3276
3148
  return React__default.createElement(
3277
3149
  Carousel.Item,
3278
3150
  { key: slide._key },
3279
- React__default.createElement('img', { src: slide.asset && urlFor$2(slide.asset, builder).url(), alt: slide.alt && slide.alt, style: { width: '100%' } }),
3151
+ React__default.createElement('img', { src: slide.asset && urlFor$1(slide.asset, builder).url(), alt: slide.alt && slide.alt, style: { width: '100%' } }),
3280
3152
  slide.caption && React__default.createElement(
3281
3153
  'p',
3282
3154
  { className: 'p-2' },
@@ -3288,21 +3160,18 @@ var Slideshow = function Slideshow(_ref) {
3288
3160
  );
3289
3161
  };
3290
3162
 
3291
- var isArray = Array.isArray;
3292
- var keyList = Object.keys;
3293
- var hasProp = Object.prototype.hasOwnProperty;
3163
+ // do not edit .js files directly - edit src/index.jst
3164
+
3165
+
3294
3166
 
3295
3167
  var fastDeepEqual = function equal(a, b) {
3296
3168
  if (a === b) return true;
3297
3169
 
3298
3170
  if (a && b && typeof a == 'object' && typeof b == 'object') {
3299
- var arrA = isArray(a)
3300
- , arrB = isArray(b)
3301
- , i
3302
- , length
3303
- , key;
3171
+ if (a.constructor !== b.constructor) return false;
3304
3172
 
3305
- if (arrA && arrB) {
3173
+ var length, i, keys;
3174
+ if (Array.isArray(a)) {
3306
3175
  length = a.length;
3307
3176
  if (length != b.length) return false;
3308
3177
  for (i = length; i-- !== 0;)
@@ -3310,35 +3179,29 @@ var fastDeepEqual = function equal(a, b) {
3310
3179
  return true;
3311
3180
  }
3312
3181
 
3313
- if (arrA != arrB) return false;
3314
3182
 
3315
- var dateA = a instanceof Date
3316
- , dateB = b instanceof Date;
3317
- if (dateA != dateB) return false;
3318
- if (dateA && dateB) return a.getTime() == b.getTime();
3319
3183
 
3320
- var regexpA = a instanceof RegExp
3321
- , regexpB = b instanceof RegExp;
3322
- if (regexpA != regexpB) return false;
3323
- if (regexpA && regexpB) return a.toString() == b.toString();
3184
+ if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
3185
+ if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
3186
+ if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
3324
3187
 
3325
- var keys = keyList(a);
3188
+ keys = Object.keys(a);
3326
3189
  length = keys.length;
3327
-
3328
- if (length !== keyList(b).length)
3329
- return false;
3190
+ if (length !== Object.keys(b).length) return false;
3330
3191
 
3331
3192
  for (i = length; i-- !== 0;)
3332
- if (!hasProp.call(b, keys[i])) return false;
3193
+ if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
3333
3194
 
3334
3195
  for (i = length; i-- !== 0;) {
3335
- key = keys[i];
3196
+ var key = keys[i];
3197
+
3336
3198
  if (!equal(a[key], b[key])) return false;
3337
3199
  }
3338
3200
 
3339
3201
  return true;
3340
3202
  }
3341
3203
 
3204
+ // true if both NaN, false otherwise
3342
3205
  return a!==a && b!==b;
3343
3206
  };
3344
3207
 
@@ -4361,7 +4224,7 @@ function formatValue(ctx, value, recurseTimes) {
4361
4224
  var base = '', array = false, braces = ['{', '}'];
4362
4225
 
4363
4226
  // Make Array say that they are Array
4364
- if (isArray$1(value)) {
4227
+ if (isArray(value)) {
4365
4228
  array = true;
4366
4229
  braces = ['[', ']'];
4367
4230
  }
@@ -4540,7 +4403,7 @@ function reduceToSingleString(output, base, braces) {
4540
4403
 
4541
4404
  // NOTE: These type checking functions intentionally don't use `instanceof`
4542
4405
  // because it is fragile and can be easily faked with `Object.create()`.
4543
- function isArray$1(ar) {
4406
+ function isArray(ar) {
4544
4407
  return Array.isArray(ar);
4545
4408
  }
4546
4409
 
@@ -4667,7 +4530,7 @@ var util = {
4667
4530
  isNullOrUndefined: isNullOrUndefined,
4668
4531
  isNull: isNull,
4669
4532
  isBoolean: isBoolean,
4670
- isArray: isArray$1,
4533
+ isArray: isArray,
4671
4534
  inspect: inspect,
4672
4535
  deprecate: deprecate,
4673
4536
  format: format,
@@ -5334,199 +5197,235 @@ module.exports = exports['default'];
5334
5197
 
5335
5198
  var youTubePlayer = unwrapExports(dist);
5336
5199
 
5337
- 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; }; }();
5338
-
5339
- 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; };
5200
+ 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); }
5340
5201
 
5341
5202
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5342
5203
 
5343
- 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; }
5204
+ 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); } }
5205
+
5206
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5207
+
5208
+ 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); }; }
5344
5209
 
5345
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
5210
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
5211
+
5212
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5346
5213
 
5347
- /**
5348
- * Check whether a `props` change should result in the video being updated.
5349
- *
5350
- * @param {Object} prevProps
5351
- * @param {Object} props
5214
+ 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; } }
5215
+
5216
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
5217
+
5218
+ 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); }
5219
+
5220
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
5221
+
5222
+ 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; }
5223
+
5224
+ 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; }
5225
+
5226
+ 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; }
5227
+ /**
5228
+ * Check whether a `props` change should result in the video being updated.
5229
+ *
5230
+ * @param {Object} prevProps
5231
+ * @param {Object} props
5352
5232
  */
5233
+
5353
5234
  function shouldUpdateVideo(prevProps, props) {
5354
5235
  // A changing video should always trigger an update
5355
5236
  if (prevProps.videoId !== props.videoId) {
5356
5237
  return true;
5357
- }
5358
-
5359
- // Otherwise, a change in the start/end time playerVars also requires a player
5238
+ } // Otherwise, a change in the start/end time playerVars also requires a player
5360
5239
  // update.
5240
+
5241
+
5361
5242
  var prevVars = prevProps.opts.playerVars || {};
5362
5243
  var vars = props.opts.playerVars || {};
5363
-
5364
5244
  return prevVars.start !== vars.start || prevVars.end !== vars.end;
5365
5245
  }
5366
-
5367
- /**
5368
- * Neutralise API options that only require a video update, leaving only options
5369
- * that require a player reset. The results can then be compared to see if a
5370
- * player reset is necessary.
5371
- *
5372
- * @param {Object} opts
5246
+ /**
5247
+ * Neutralize API options that only require a video update, leaving only options
5248
+ * that require a player reset. The results can then be compared to see if a
5249
+ * player reset is necessary.
5250
+ *
5251
+ * @param {Object} opts
5373
5252
  */
5253
+
5254
+
5374
5255
  function filterResetOptions(opts) {
5375
- return _extends({}, opts, {
5376
- playerVars: _extends({}, opts.playerVars, {
5256
+ return _objectSpread({}, opts, {
5257
+ playerVars: _objectSpread({}, opts.playerVars, {
5377
5258
  autoplay: 0,
5378
5259
  start: 0,
5379
5260
  end: 0
5380
5261
  })
5381
5262
  });
5382
5263
  }
5383
-
5384
- /**
5385
- * Check whether a `props` change should result in the player being reset.
5386
- * The player is reset when the `props.opts` change, except if the only change
5387
- * is in the `start` and `end` playerVars, because a video update can deal with
5388
- * those.
5389
- *
5390
- * @param {Object} prevProps
5391
- * @param {Object} props
5264
+ /**
5265
+ * Check whether a `props` change should result in the player being reset.
5266
+ * The player is reset when the `props.opts` change, except if the only change
5267
+ * is in the `start` and `end` playerVars, because a video update can deal with
5268
+ * those.
5269
+ *
5270
+ * @param {Object} prevProps
5271
+ * @param {Object} props
5392
5272
  */
5273
+
5274
+
5393
5275
  function shouldResetPlayer(prevProps, props) {
5394
5276
  return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
5395
5277
  }
5396
-
5397
- /**
5398
- * Check whether a props change should result in an id or className update.
5399
- *
5400
- * @param {Object} prevProps
5401
- * @param {Object} props
5278
+ /**
5279
+ * Check whether a props change should result in an id or className update.
5280
+ *
5281
+ * @param {Object} prevProps
5282
+ * @param {Object} props
5402
5283
  */
5284
+
5285
+
5403
5286
  function shouldUpdatePlayer(prevProps, props) {
5404
5287
  return prevProps.id !== props.id || prevProps.className !== props.className;
5405
5288
  }
5406
5289
 
5407
- var YouTube = function (_React$Component) {
5290
+ var YouTube = /*#__PURE__*/function (_React$Component) {
5408
5291
  _inherits(YouTube, _React$Component);
5409
5292
 
5293
+ var _super = _createSuper(YouTube);
5294
+
5295
+ /**
5296
+ * Expose PlayerState constants for convenience. These constants can also be
5297
+ * accessed through the global YT object after the YouTube IFrame API is instantiated.
5298
+ * https://developers.google.com/youtube/iframe_api_reference#onStateChange
5299
+ */
5410
5300
  function YouTube(props) {
5301
+ var _this;
5302
+
5411
5303
  _classCallCheck(this, YouTube);
5412
5304
 
5413
- var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
5305
+ _this = _super.call(this, props);
5414
5306
 
5415
- _this.onPlayerReady = function (event) {
5307
+ _defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
5416
5308
  return _this.props.onReady(event);
5417
- };
5309
+ });
5418
5310
 
5419
- _this.onPlayerError = function (event) {
5311
+ _defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
5420
5312
  return _this.props.onError(event);
5421
- };
5313
+ });
5422
5314
 
5423
- _this.onPlayerStateChange = function (event) {
5315
+ _defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
5424
5316
  _this.props.onStateChange(event);
5425
- switch (event.data) {
5426
5317
 
5318
+ switch (event.data) {
5427
5319
  case YouTube.PlayerState.ENDED:
5428
5320
  _this.props.onEnd(event);
5321
+
5429
5322
  break;
5430
5323
 
5431
5324
  case YouTube.PlayerState.PLAYING:
5432
5325
  _this.props.onPlay(event);
5326
+
5433
5327
  break;
5434
5328
 
5435
5329
  case YouTube.PlayerState.PAUSED:
5436
5330
  _this.props.onPause(event);
5331
+
5437
5332
  break;
5438
5333
  }
5439
- };
5334
+ });
5440
5335
 
5441
- _this.onPlayerPlaybackRateChange = function (event) {
5336
+ _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
5442
5337
  return _this.props.onPlaybackRateChange(event);
5443
- };
5338
+ });
5444
5339
 
5445
- _this.onPlayerPlaybackQualityChange = function (event) {
5340
+ _defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
5446
5341
  return _this.props.onPlaybackQualityChange(event);
5447
- };
5342
+ });
5448
5343
 
5449
- _this.createPlayer = function () {
5344
+ _defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
5450
5345
  // do not attempt to create a player server-side, it won't work
5451
- if (typeof document === 'undefined') return;
5452
- // create player
5453
- var playerOpts = _extends({}, _this.props.opts, {
5346
+ if (typeof document === 'undefined') return; // create player
5347
+
5348
+ var playerOpts = _objectSpread({}, _this.props.opts, {
5454
5349
  // preload the `videoId` video if one is already given
5455
5350
  videoId: _this.props.videoId
5456
5351
  });
5457
- _this.internalPlayer = youTubePlayer(_this.container, playerOpts);
5458
- // attach event handlers
5352
+
5353
+ _this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
5354
+
5459
5355
  _this.internalPlayer.on('ready', _this.onPlayerReady);
5356
+
5460
5357
  _this.internalPlayer.on('error', _this.onPlayerError);
5358
+
5461
5359
  _this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
5360
+
5462
5361
  _this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
5362
+
5463
5363
  _this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
5464
- };
5364
+ });
5465
5365
 
5466
- _this.resetPlayer = function () {
5366
+ _defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
5467
5367
  return _this.internalPlayer.destroy().then(_this.createPlayer);
5468
- };
5368
+ });
5469
5369
 
5470
- _this.updatePlayer = function () {
5370
+ _defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
5471
5371
  _this.internalPlayer.getIframe().then(function (iframe) {
5472
5372
  if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
5473
5373
  if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
5474
5374
  });
5475
- };
5375
+ });
5476
5376
 
5477
- _this.updateVideo = function () {
5377
+ _defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
5478
5378
  if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
5479
5379
  _this.internalPlayer.stopVideo();
5380
+
5480
5381
  return;
5481
- }
5382
+ } // set queueing options
5383
+
5482
5384
 
5483
- // set queueing options
5484
5385
  var autoplay = false;
5485
5386
  var opts = {
5486
5387
  videoId: _this.props.videoId
5487
5388
  };
5389
+
5488
5390
  if ('playerVars' in _this.props.opts) {
5489
5391
  autoplay = _this.props.opts.playerVars.autoplay === 1;
5392
+
5490
5393
  if ('start' in _this.props.opts.playerVars) {
5491
5394
  opts.startSeconds = _this.props.opts.playerVars.start;
5492
5395
  }
5396
+
5493
5397
  if ('end' in _this.props.opts.playerVars) {
5494
5398
  opts.endSeconds = _this.props.opts.playerVars.end;
5495
5399
  }
5496
- }
5400
+ } // if autoplay is enabled loadVideoById
5401
+
5497
5402
 
5498
- // if autoplay is enabled loadVideoById
5499
5403
  if (autoplay) {
5500
5404
  _this.internalPlayer.loadVideoById(opts);
5405
+
5501
5406
  return;
5502
- }
5503
- // default behaviour just cues the video
5407
+ } // default behaviour just cues the video
5408
+
5409
+
5504
5410
  _this.internalPlayer.cueVideoById(opts);
5505
- };
5411
+ });
5506
5412
 
5507
- _this.refContainer = function (container) {
5413
+ _defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
5508
5414
  _this.container = container;
5509
- };
5415
+ });
5510
5416
 
5511
5417
  _this.container = null;
5512
5418
  _this.internalPlayer = null;
5513
5419
  return _this;
5514
5420
  }
5515
5421
 
5516
- /**
5517
- * Expose PlayerState constants for convenience. These constants can also be
5518
- * accessed through the global YT object after the YouTube IFrame API is instantiated.
5519
- * https://developers.google.com/youtube/iframe_api_reference#onStateChange
5520
- */
5521
-
5522
-
5523
5422
  _createClass(YouTube, [{
5524
- key: 'componentDidMount',
5423
+ key: "componentDidMount",
5525
5424
  value: function componentDidMount() {
5526
5425
  this.createPlayer();
5527
5426
  }
5528
5427
  }, {
5529
- key: 'componentDidUpdate',
5428
+ key: "componentDidUpdate",
5530
5429
  value: function componentDidUpdate(prevProps) {
5531
5430
  if (shouldUpdatePlayer(prevProps, this.props)) {
5532
5431
  this.updatePlayer();
@@ -5541,112 +5440,58 @@ var YouTube = function (_React$Component) {
5541
5440
  }
5542
5441
  }
5543
5442
  }, {
5544
- key: 'componentWillUnmount',
5443
+ key: "componentWillUnmount",
5545
5444
  value: function componentWillUnmount() {
5546
- /**
5547
- * Note: The `youtube-player` package that is used promisifies all Youtube
5548
- * Player API calls, which introduces a delay of a tick before it actually
5549
- * gets destroyed. Since React attempts to remove the element instantly
5550
- * this method isn't quick enough to reset the container element.
5445
+ /**
5446
+ * Note: The `youtube-player` package that is used promisifies all YouTube
5447
+ * Player API calls, which introduces a delay of a tick before it actually
5448
+ * gets destroyed. Since React attempts to remove the element instantly
5449
+ * this method isn't quick enough to reset the container element.
5551
5450
  */
5552
5451
  this.internalPlayer.destroy();
5553
5452
  }
5554
-
5555
- /**
5556
- * https://developers.google.com/youtube/iframe_api_reference#onReady
5557
- *
5558
- * @param {Object} event
5559
- * @param {Object} target - player object
5560
- */
5561
-
5562
-
5563
- /**
5564
- * https://developers.google.com/youtube/iframe_api_reference#onError
5565
- *
5566
- * @param {Object} event
5567
- * @param {Integer} data - error type
5568
- * @param {Object} target - player object
5569
- */
5570
-
5571
-
5572
- /**
5573
- * https://developers.google.com/youtube/iframe_api_reference#onStateChange
5574
- *
5575
- * @param {Object} event
5576
- * @param {Integer} data - status change type
5577
- * @param {Object} target - actual YT player
5578
- */
5579
-
5580
-
5581
- /**
5582
- * https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
5583
- *
5584
- * @param {Object} event
5585
- * @param {Float} data - playback rate
5586
- * @param {Object} target - actual YT player
5587
- */
5588
-
5589
-
5590
- /**
5591
- * https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
5592
- *
5593
- * @param {Object} event
5594
- * @param {String} data - playback quality
5595
- * @param {Object} target - actual YT player
5596
- */
5597
-
5598
-
5599
- /**
5600
- * Initialize the Youtube Player API on the container and attach event handlers
5601
- */
5602
-
5603
-
5604
- /**
5605
- * Shorthand for destroying and then re-creating the Youtube Player
5606
- */
5607
-
5608
-
5609
- /**
5610
- * Method to update the id and class of the Youtube Player iframe.
5611
- * React should update this automatically but since the Youtube Player API
5612
- * replaced the DIV that is mounted by React we need to do this manually.
5613
- */
5614
-
5615
-
5616
- /**
5617
- * Call Youtube Player API methods to update the currently playing video.
5618
- * Depeding on the `opts.playerVars.autoplay` this function uses one of two
5619
- * Youtube Player API methods to update the video.
5453
+ /**
5454
+ * https://developers.google.com/youtube/iframe_api_reference#onReady
5455
+ *
5456
+ * @param {Object} event
5457
+ * @param {Object} target - player object
5620
5458
  */
5621
5459
 
5622
5460
  }, {
5623
- key: 'render',
5461
+ key: "render",
5624
5462
  value: function render() {
5625
- return React__default.createElement(
5626
- 'div',
5627
- { className: this.props.containerClassName },
5628
- React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
5629
- );
5463
+ return /*#__PURE__*/React__default.createElement("div", {
5464
+ className: this.props.containerClassName
5465
+ }, /*#__PURE__*/React__default.createElement("div", {
5466
+ id: this.props.id,
5467
+ className: this.props.className,
5468
+ ref: this.refContainer
5469
+ }));
5630
5470
  }
5631
5471
  }]);
5632
5472
 
5633
5473
  return YouTube;
5634
5474
  }(React__default.Component);
5635
5475
 
5476
+ _defineProperty(YouTube, "PlayerState", {
5477
+ UNSTARTED: -1,
5478
+ ENDED: 0,
5479
+ PLAYING: 1,
5480
+ PAUSED: 2,
5481
+ BUFFERING: 3,
5482
+ CUED: 5
5483
+ });
5484
+
5636
5485
  YouTube.propTypes = {
5637
5486
  videoId: PropTypes.string,
5638
-
5639
5487
  // custom ID for player element
5640
5488
  id: PropTypes.string,
5641
-
5642
5489
  // custom class name for player element
5643
5490
  className: PropTypes.string,
5644
5491
  // custom class name for player container element
5645
5492
  containerClassName: PropTypes.string,
5646
-
5647
5493
  // https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
5648
5494
  opts: PropTypes.objectOf(PropTypes.any),
5649
-
5650
5495
  // event subscriptions
5651
5496
  onReady: PropTypes.func,
5652
5497
  onError: PropTypes.func,
@@ -5658,6 +5503,7 @@ YouTube.propTypes = {
5658
5503
  onPlaybackQualityChange: PropTypes.func
5659
5504
  };
5660
5505
  YouTube.defaultProps = {
5506
+ videoId: null,
5661
5507
  id: null,
5662
5508
  className: null,
5663
5509
  opts: {},
@@ -5671,14 +5517,6 @@ YouTube.defaultProps = {
5671
5517
  onPlaybackRateChange: function onPlaybackRateChange() {},
5672
5518
  onPlaybackQualityChange: function onPlaybackQualityChange() {}
5673
5519
  };
5674
- YouTube.PlayerState = {
5675
- UNSTARTED: -1,
5676
- ENDED: 0,
5677
- PLAYING: 1,
5678
- PAUSED: 2,
5679
- BUFFERING: 3,
5680
- CUED: 5
5681
- };
5682
5520
 
5683
5521
  var YouTubePlayer = function YouTubePlayer(_ref) {
5684
5522
  var url = _ref.url;
@@ -6010,14 +5848,14 @@ var Media = function Media(_ref) {
6010
5848
  if (uploadDoc && uploadDoc.asset) {
6011
5849
  if (poster && poster.asset && caption && caption !== '') {
6012
5850
  return React__default.createElement(
6013
- Figure,
5851
+ Figure$1,
6014
5852
  { className: 'mb-3' },
6015
5853
  React__default.createElement(
6016
5854
  'a',
6017
5855
  { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
6018
- React__default.createElement(Figure.Image, { src: urlFor(poster).url(), fluid: true }),
5856
+ React__default.createElement(Figure$1.Image, { src: urlFor(poster).url(), fluid: true }),
6019
5857
  React__default.createElement(
6020
- Figure.Caption,
5858
+ Figure$1.Caption,
6021
5859
  { className: 'text-center' },
6022
5860
  caption
6023
5861
  )
@@ -6025,12 +5863,12 @@ var Media = function Media(_ref) {
6025
5863
  );
6026
5864
  } else if (poster && poster.asset) {
6027
5865
  return React__default.createElement(
6028
- Figure,
5866
+ Figure$1,
6029
5867
  { className: 'mb-3' },
6030
5868
  React__default.createElement(
6031
5869
  'a',
6032
5870
  { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
6033
- React__default.createElement(Figure.Image, { src: urlFor(poster).url(), fluid: true })
5871
+ React__default.createElement(Figure$1.Image, { src: urlFor(poster).url(), fluid: true })
6034
5872
  )
6035
5873
  );
6036
5874
  } else if (caption && caption !== '') {
@@ -6702,8 +6540,8 @@ var window_1 = win;
6702
6540
 
6703
6541
  /*! @name @brightcove/react-player-loader @version 1.4.0 @license Apache-2.0 */
6704
6542
 
6705
- function _extends$1() {
6706
- _extends$1 = Object.assign || function (target) {
6543
+ function _extends() {
6544
+ _extends = Object.assign || function (target) {
6707
6545
  for (var i = 1; i < arguments.length; i++) {
6708
6546
  var source = arguments[i];
6709
6547
 
@@ -6717,7 +6555,7 @@ function _extends$1() {
6717
6555
  return target;
6718
6556
  };
6719
6557
 
6720
- return _extends$1.apply(this, arguments);
6558
+ return _extends.apply(this, arguments);
6721
6559
  }
6722
6560
 
6723
6561
  function _inheritsLoose(subClass, superClass) {
@@ -6726,7 +6564,7 @@ function _inheritsLoose(subClass, superClass) {
6726
6564
  subClass.__proto__ = superClass;
6727
6565
  }
6728
6566
 
6729
- function _assertThisInitialized(self) {
6567
+ function _assertThisInitialized$1(self) {
6730
6568
  if (self === void 0) {
6731
6569
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
6732
6570
  }
@@ -6736,8 +6574,8 @@ function _assertThisInitialized(self) {
6736
6574
 
6737
6575
  /*! @name @brightcove/player-loader @version 1.7.1 @license Apache-2.0 */
6738
6576
 
6739
- function _extends$1$1() {
6740
- _extends$1$1 = Object.assign || function (target) {
6577
+ function _extends$1() {
6578
+ _extends$1 = Object.assign || function (target) {
6741
6579
  for (var i = 1; i < arguments.length; i++) {
6742
6580
  var source = arguments[i];
6743
6581
 
@@ -6751,7 +6589,7 @@ function _extends$1$1() {
6751
6589
  return target;
6752
6590
  };
6753
6591
 
6754
- return _extends$1$1.apply(this, arguments);
6592
+ return _extends$1.apply(this, arguments);
6755
6593
  }
6756
6594
 
6757
6595
  var version$1 = "1.7.1";
@@ -6759,7 +6597,7 @@ var version$1 = "1.7.1";
6759
6597
  /*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */
6760
6598
  var version$1$1 = "1.2.0";
6761
6599
 
6762
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
6600
+ var _typeof$1 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
6763
6601
  return typeof obj;
6764
6602
  } : function (obj) {
6765
6603
  return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
@@ -6894,7 +6732,7 @@ var brightcovePlayerUrl = function brightcovePlayerUrl(_ref) {
6894
6732
 
6895
6733
  var qs = '';
6896
6734
 
6897
- if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof(queryParams)) === 'object') {
6735
+ if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof$1(queryParams)) === 'object') {
6898
6736
  qs = getQueryString(queryParams);
6899
6737
  }
6900
6738
 
@@ -7128,7 +6966,7 @@ var wrapResponsive = function wrapResponsive(embedType, embedOptions, el) {
7128
6966
  el.style.width = '100%';
7129
6967
  el.style.height = '100%';
7130
6968
 
7131
- var responsive = _extends$1$1({
6969
+ var responsive = _extends$1({
7132
6970
  aspectRatio: DEFAULT_ASPECT_RATIO,
7133
6971
  iframeHorizontalPlaylist: DEFAULT_IFRAME_HORIZONTAL_PLAYLIST,
7134
6972
  maxWidth: DEFAULT_MAX_WIDTH
@@ -7813,7 +7651,7 @@ var loadPlayer = function loadPlayer(params, resolve, reject) {
7813
7651
 
7814
7652
 
7815
7653
  var brightcovePlayerLoader = function brightcovePlayerLoader(parameters) {
7816
- var params = _extends$1$1({}, DEFAULTS, parameters);
7654
+ var params = _extends$1({}, DEFAULTS, parameters);
7817
7655
 
7818
7656
  var Promise = params.Promise,
7819
7657
  onSuccess = params.onSuccess,
@@ -7955,7 +7793,7 @@ function (_React$Component) {
7955
7793
  _this.refNode = ref;
7956
7794
  };
7957
7795
 
7958
- _this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized(_this));
7796
+ _this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized$1(_this));
7959
7797
  return _this;
7960
7798
  }
7961
7799
  /**
@@ -7976,7 +7814,7 @@ function (_React$Component) {
7976
7814
  var userSuccess = this.props.onSuccess;
7977
7815
  var userFailure = this.props.onFailure;
7978
7816
 
7979
- var options = _extends$1({}, this.props, {
7817
+ var options = _extends({}, this.props, {
7980
7818
  refNode: this.refNode,
7981
7819
  refNodeInsert: 'append',
7982
7820
  onSuccess: function onSuccess(_ref) {
@@ -8285,7 +8123,7 @@ function (_React$Component) {
8285
8123
  ;
8286
8124
 
8287
8125
  _proto.render = function render() {
8288
- var props = _extends$1({
8126
+ var props = _extends({
8289
8127
  className: 'brightcove-react-player-loader'
8290
8128
  }, this.props.attrs, {
8291
8129
  ref: this.setRefNode
@@ -8699,11 +8537,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
8699
8537
 
8700
8538
  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; }
8701
8539
 
8702
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
8540
+ 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; } } }; }
8541
+
8542
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8543
+
8544
+ 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."); }
8545
+
8546
+ 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); }
8703
8547
 
8704
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
8548
+ 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; }
8705
8549
 
8706
- 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; }
8550
+ 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; }
8707
8551
 
8708
8552
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
8709
8553
 
@@ -8833,12 +8677,12 @@ function getSDK(url, sdkGlobal) {
8833
8677
 
8834
8678
  function getConfig(props$1, defaultProps, showWarning) {
8835
8679
  var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
8836
- var _iteratorNormalCompletion = true;
8837
- var _didIteratorError = false;
8838
- var _iteratorError = undefined;
8680
+
8681
+ var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
8682
+ _step;
8839
8683
 
8840
8684
  try {
8841
- for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
8685
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
8842
8686
  var p = _step.value;
8843
8687
 
8844
8688
  if (props$1[p]) {
@@ -8853,18 +8697,9 @@ function getConfig(props$1, defaultProps, showWarning) {
8853
8697
  }
8854
8698
  }
8855
8699
  } catch (err) {
8856
- _didIteratorError = true;
8857
- _iteratorError = err;
8700
+ _iterator.e(err);
8858
8701
  } finally {
8859
- try {
8860
- if (!_iteratorNormalCompletion && _iterator["return"] != null) {
8861
- _iterator["return"]();
8862
- }
8863
- } finally {
8864
- if (_didIteratorError) {
8865
- throw _iteratorError;
8866
- }
8867
- }
8702
+ _iterator.f();
8868
8703
  }
8869
8704
 
8870
8705
  return config;
@@ -9011,12 +8846,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9011
8846
 
9012
8847
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9013
8848
 
9014
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
8849
+ 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); }; }
9015
8850
 
9016
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
8851
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9017
8852
 
9018
8853
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9019
8854
 
8855
+ 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; } }
8856
+
8857
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
8858
+
9020
8859
  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); }
9021
8860
 
9022
8861
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9025,14 +8864,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
9025
8864
 
9026
8865
  var SEEK_ON_PLAY_EXPIRY = 5000;
9027
8866
 
9028
- var Player =
9029
- /*#__PURE__*/
9030
- function (_Component) {
8867
+ var Player = /*#__PURE__*/function (_Component) {
9031
8868
  _inherits(Player, _Component);
9032
8869
 
9033
- function Player() {
9034
- var _getPrototypeOf2;
8870
+ var _super = _createSuper(Player);
9035
8871
 
8872
+ function Player() {
9036
8873
  var _this;
9037
8874
 
9038
8875
  _classCallCheck(this, Player);
@@ -9041,7 +8878,7 @@ function (_Component) {
9041
8878
  _args[_key] = arguments[_key];
9042
8879
  }
9043
8880
 
9044
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
8881
+ _this = _super.call.apply(_super, [this].concat(_args));
9045
8882
 
9046
8883
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
9047
8884
 
@@ -9366,7 +9203,7 @@ function (_Component) {
9366
9203
  return null;
9367
9204
  }
9368
9205
 
9369
- return _react["default"].createElement(Player, _extends({}, this.props, {
9206
+ return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
9370
9207
  ref: this.ref,
9371
9208
  onReady: this.handleReady,
9372
9209
  onPlay: this.handlePlay,
@@ -9427,12 +9264,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9427
9264
 
9428
9265
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9429
9266
 
9430
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9267
+ 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); }; }
9431
9268
 
9432
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9269
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9433
9270
 
9434
9271
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9435
9272
 
9273
+ 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; } }
9274
+
9275
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9276
+
9436
9277
  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); }
9437
9278
 
9438
9279
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9444,14 +9285,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
9444
9285
  function createSinglePlayer(activePlayer) {
9445
9286
  var _class, _temp;
9446
9287
 
9447
- return _temp = _class =
9448
- /*#__PURE__*/
9449
- function (_Component) {
9288
+ return _temp = _class = /*#__PURE__*/function (_Component) {
9450
9289
  _inherits(SinglePlayer, _Component);
9451
9290
 
9452
- function SinglePlayer() {
9453
- var _getPrototypeOf2;
9291
+ var _super = _createSuper(SinglePlayer);
9454
9292
 
9293
+ function SinglePlayer() {
9455
9294
  var _this;
9456
9295
 
9457
9296
  _classCallCheck(this, SinglePlayer);
@@ -9460,7 +9299,7 @@ function createSinglePlayer(activePlayer) {
9460
9299
  args[_key] = arguments[_key];
9461
9300
  }
9462
9301
 
9463
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
9302
+ _this = _super.call.apply(_super, [this].concat(args));
9464
9303
 
9465
9304
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
9466
9305
 
@@ -9528,12 +9367,12 @@ function createSinglePlayer(activePlayer) {
9528
9367
  height = _this$props.height,
9529
9368
  Wrapper = _this$props.wrapper;
9530
9369
  var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
9531
- return _react["default"].createElement(Wrapper, _extends({
9370
+ return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
9532
9371
  style: _objectSpread({}, style, {
9533
9372
  width: width,
9534
9373
  height: height
9535
9374
  })
9536
- }, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
9375
+ }, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
9537
9376
  ref: this.ref,
9538
9377
  activePlayer: activePlayer,
9539
9378
  config: this.config
@@ -9579,23 +9418,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9579
9418
 
9580
9419
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9581
9420
 
9582
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9421
+ 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); }; }
9583
9422
 
9584
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9423
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9585
9424
 
9586
9425
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9587
9426
 
9427
+ 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; } }
9428
+
9429
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9430
+
9588
9431
  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); }
9589
9432
 
9590
9433
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9591
9434
 
9592
9435
  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; }
9593
9436
 
9594
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
9437
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
9438
+
9439
+ 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."); }
9440
+
9441
+ 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); }
9595
9442
 
9596
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
9443
+ 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; }
9597
9444
 
9598
- 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; }
9445
+ 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; }
9599
9446
 
9600
9447
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9601
9448
 
@@ -9620,14 +9467,12 @@ function parsePlaylist(url) {
9620
9467
  return {};
9621
9468
  }
9622
9469
 
9623
- var YouTube =
9624
- /*#__PURE__*/
9625
- function (_Component) {
9470
+ var YouTube = /*#__PURE__*/function (_Component) {
9626
9471
  _inherits(YouTube, _Component);
9627
9472
 
9628
- function YouTube() {
9629
- var _getPrototypeOf2;
9473
+ var _super = _createSuper(YouTube);
9630
9474
 
9475
+ function YouTube() {
9631
9476
  var _this;
9632
9477
 
9633
9478
  _classCallCheck(this, YouTube);
@@ -9636,7 +9481,7 @@ function (_Component) {
9636
9481
  args[_key] = arguments[_key];
9637
9482
  }
9638
9483
 
9639
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
9484
+ _this = _super.call.apply(_super, [this].concat(args));
9640
9485
 
9641
9486
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
9642
9487
 
@@ -9824,9 +9669,9 @@ function (_Component) {
9824
9669
  height: '100%',
9825
9670
  display: display
9826
9671
  };
9827
- return _react["default"].createElement("div", {
9672
+ return /*#__PURE__*/_react["default"].createElement("div", {
9828
9673
  style: style
9829
- }, _react["default"].createElement("div", {
9674
+ }, /*#__PURE__*/_react["default"].createElement("div", {
9830
9675
  ref: this.ref
9831
9676
  }));
9832
9677
  }
@@ -9882,12 +9727,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
9882
9727
 
9883
9728
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9884
9729
 
9885
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9730
+ 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); }; }
9886
9731
 
9887
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9732
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9888
9733
 
9889
9734
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9890
9735
 
9736
+ 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; } }
9737
+
9738
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9739
+
9891
9740
  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); }
9892
9741
 
9893
9742
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -9896,16 +9745,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
9896
9745
 
9897
9746
  var SDK_URL = 'https://w.soundcloud.com/player/api.js';
9898
9747
  var SDK_GLOBAL = 'SC';
9899
- var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
9748
+ var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
9900
9749
 
9901
- var SoundCloud =
9902
- /*#__PURE__*/
9903
- function (_Component) {
9750
+ var SoundCloud = /*#__PURE__*/function (_Component) {
9904
9751
  _inherits(SoundCloud, _Component);
9905
9752
 
9906
- function SoundCloud() {
9907
- var _getPrototypeOf2;
9753
+ var _super = _createSuper(SoundCloud);
9908
9754
 
9755
+ function SoundCloud() {
9909
9756
  var _this;
9910
9757
 
9911
9758
  _classCallCheck(this, SoundCloud);
@@ -9914,7 +9761,7 @@ function (_Component) {
9914
9761
  args[_key] = arguments[_key];
9915
9762
  }
9916
9763
 
9917
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
9764
+ _this = _super.call.apply(_super, [this].concat(args));
9918
9765
 
9919
9766
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
9920
9767
 
@@ -10035,7 +9882,7 @@ function (_Component) {
10035
9882
  height: '100%',
10036
9883
  display: display
10037
9884
  };
10038
- return _react["default"].createElement("iframe", {
9885
+ return /*#__PURE__*/_react["default"].createElement("iframe", {
10039
9886
  ref: this.ref,
10040
9887
  src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
10041
9888
  style: style,
@@ -10097,12 +9944,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10097
9944
 
10098
9945
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10099
9946
 
10100
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9947
+ 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); }; }
10101
9948
 
10102
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9949
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10103
9950
 
10104
9951
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10105
9952
 
9953
+ 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; } }
9954
+
9955
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9956
+
10106
9957
  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); }
10107
9958
 
10108
9959
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10114,14 +9965,12 @@ var SDK_GLOBAL = 'Vimeo';
10114
9965
  var MATCH_URL = /vimeo\.com\/.+/;
10115
9966
  var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
10116
9967
 
10117
- var Vimeo =
10118
- /*#__PURE__*/
10119
- function (_Component) {
9968
+ var Vimeo = /*#__PURE__*/function (_Component) {
10120
9969
  _inherits(Vimeo, _Component);
10121
9970
 
10122
- function Vimeo() {
10123
- var _getPrototypeOf2;
9971
+ var _super = _createSuper(Vimeo);
10124
9972
 
9973
+ function Vimeo() {
10125
9974
  var _this;
10126
9975
 
10127
9976
  _classCallCheck(this, Vimeo);
@@ -10130,7 +9979,7 @@ function (_Component) {
10130
9979
  args[_key] = arguments[_key];
10131
9980
  }
10132
9981
 
10133
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
9982
+ _this = _super.call.apply(_super, [this].concat(args));
10134
9983
 
10135
9984
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10136
9985
 
@@ -10287,7 +10136,7 @@ function (_Component) {
10287
10136
  overflow: 'hidden',
10288
10137
  display: display
10289
10138
  };
10290
- return _react["default"].createElement("div", {
10139
+ return /*#__PURE__*/_react["default"].createElement("div", {
10291
10140
  key: this.props.url,
10292
10141
  ref: this.ref,
10293
10142
  style: style
@@ -10347,12 +10196,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10347
10196
 
10348
10197
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10349
10198
 
10350
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10199
+ 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); }; }
10351
10200
 
10352
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10201
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10353
10202
 
10354
10203
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10355
10204
 
10205
+ 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; } }
10206
+
10207
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10208
+
10356
10209
  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); }
10357
10210
 
10358
10211
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10365,14 +10218,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
10365
10218
  var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
10366
10219
  var PLAYER_ID_PREFIX = 'facebook-player-';
10367
10220
 
10368
- var Facebook =
10369
- /*#__PURE__*/
10370
- function (_Component) {
10221
+ var Facebook = /*#__PURE__*/function (_Component) {
10371
10222
  _inherits(Facebook, _Component);
10372
10223
 
10373
- function Facebook() {
10374
- var _getPrototypeOf2;
10224
+ var _super = _createSuper(Facebook);
10375
10225
 
10226
+ function Facebook() {
10376
10227
  var _this;
10377
10228
 
10378
10229
  _classCallCheck(this, Facebook);
@@ -10381,7 +10232,7 @@ function (_Component) {
10381
10232
  args[_key] = arguments[_key];
10382
10233
  }
10383
10234
 
10384
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
10235
+ _this = _super.call.apply(_super, [this].concat(args));
10385
10236
 
10386
10237
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10387
10238
 
@@ -10497,7 +10348,7 @@ function (_Component) {
10497
10348
  width: '100%',
10498
10349
  height: '100%'
10499
10350
  };
10500
- return _react["default"].createElement("div", {
10351
+ return /*#__PURE__*/_react["default"].createElement("div", {
10501
10352
  style: style,
10502
10353
  id: this.playerID,
10503
10354
  className: "fb-video",
@@ -10557,12 +10408,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10557
10408
 
10558
10409
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10559
10410
 
10560
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10411
+ 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); }; }
10561
10412
 
10562
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10413
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10563
10414
 
10564
10415
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10565
10416
 
10417
+ 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; } }
10418
+
10419
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10420
+
10566
10421
  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); }
10567
10422
 
10568
10423
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10573,14 +10428,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
10573
10428
  var SDK_GLOBAL = 'playerjs';
10574
10429
  var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
10575
10430
 
10576
- var Streamable =
10577
- /*#__PURE__*/
10578
- function (_Component) {
10431
+ var Streamable = /*#__PURE__*/function (_Component) {
10579
10432
  _inherits(Streamable, _Component);
10580
10433
 
10581
- function Streamable() {
10582
- var _getPrototypeOf2;
10434
+ var _super = _createSuper(Streamable);
10583
10435
 
10436
+ function Streamable() {
10584
10437
  var _this;
10585
10438
 
10586
10439
  _classCallCheck(this, Streamable);
@@ -10589,7 +10442,7 @@ function (_Component) {
10589
10442
  args[_key] = arguments[_key];
10590
10443
  }
10591
10444
 
10592
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
10445
+ _this = _super.call.apply(_super, [this].concat(args));
10593
10446
 
10594
10447
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10595
10448
 
@@ -10709,7 +10562,7 @@ function (_Component) {
10709
10562
  width: '100%',
10710
10563
  height: '100%'
10711
10564
  };
10712
- return _react["default"].createElement("iframe", {
10565
+ return /*#__PURE__*/_react["default"].createElement("iframe", {
10713
10566
  ref: this.ref,
10714
10567
  src: "https://streamable.com/o/".concat(id),
10715
10568
  frameBorder: "0",
@@ -10770,12 +10623,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10770
10623
 
10771
10624
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10772
10625
 
10773
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10626
+ 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); }; }
10774
10627
 
10775
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10628
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10776
10629
 
10777
10630
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10778
10631
 
10632
+ 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; } }
10633
+
10634
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10635
+
10779
10636
  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); }
10780
10637
 
10781
10638
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -10786,26 +10643,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
10786
10643
  var SDK_GLOBAL = 'Wistia';
10787
10644
  var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
10788
10645
 
10789
- var Wistia =
10790
- /*#__PURE__*/
10791
- function (_Component) {
10646
+ var Wistia = /*#__PURE__*/function (_Component) {
10792
10647
  _inherits(Wistia, _Component);
10793
10648
 
10794
- function Wistia() {
10795
- var _getPrototypeOf2;
10649
+ var _super = _createSuper(Wistia);
10796
10650
 
10651
+ function Wistia() {
10797
10652
  var _this;
10798
10653
 
10799
10654
  _classCallCheck(this, Wistia);
10800
10655
 
10801
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
10802
- args[_key] = arguments[_key];
10656
+ for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
10657
+ _args[_key] = arguments[_key];
10803
10658
  }
10804
10659
 
10805
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
10660
+ _this = _super.call.apply(_super, [this].concat(_args));
10806
10661
 
10807
10662
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
10808
10663
 
10664
+ _defineProperty(_assertThisInitialized(_this), "onPlay", function () {
10665
+ var _this$props;
10666
+
10667
+ return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
10668
+ });
10669
+
10670
+ _defineProperty(_assertThisInitialized(_this), "onPause", function () {
10671
+ var _this$props2;
10672
+
10673
+ return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
10674
+ });
10675
+
10676
+ _defineProperty(_assertThisInitialized(_this), "onSeek", function () {
10677
+ var _this$props3;
10678
+
10679
+ return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
10680
+ });
10681
+
10682
+ _defineProperty(_assertThisInitialized(_this), "onEnded", function () {
10683
+ var _this$props4;
10684
+
10685
+ return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
10686
+ });
10687
+
10809
10688
  _defineProperty(_assertThisInitialized(_this), "mute", function () {
10810
10689
  _this.callPlayer('mute');
10811
10690
  });
@@ -10827,17 +10706,13 @@ function (_Component) {
10827
10706
  value: function load(url) {
10828
10707
  var _this2 = this;
10829
10708
 
10830
- var _this$props = this.props,
10831
- playing = _this$props.playing,
10832
- muted = _this$props.muted,
10833
- controls = _this$props.controls,
10834
- _onReady = _this$props.onReady,
10835
- onPlay = _this$props.onPlay,
10836
- onPause = _this$props.onPause,
10837
- onSeek = _this$props.onSeek,
10838
- onEnded = _this$props.onEnded,
10839
- config = _this$props.config,
10840
- onError = _this$props.onError;
10709
+ var _this$props5 = this.props,
10710
+ playing = _this$props5.playing,
10711
+ muted = _this$props5.muted,
10712
+ controls = _this$props5.controls,
10713
+ _onReady = _this$props5.onReady,
10714
+ config = _this$props5.config,
10715
+ onError = _this$props5.onError;
10841
10716
  (0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
10842
10717
  window._wq = window._wq || [];
10843
10718
 
@@ -10854,19 +10729,28 @@ function (_Component) {
10854
10729
 
10855
10730
  _this2.unbind();
10856
10731
 
10857
- _this2.player.bind('play', onPlay);
10732
+ _this2.player.bind('play', _this2.onPlay);
10858
10733
 
10859
- _this2.player.bind('pause', onPause);
10734
+ _this2.player.bind('pause', _this2.onPause);
10860
10735
 
10861
- _this2.player.bind('seek', onSeek);
10736
+ _this2.player.bind('seek', _this2.onSeek);
10862
10737
 
10863
- _this2.player.bind('end', onEnded);
10738
+ _this2.player.bind('end', _this2.onEnded);
10864
10739
 
10865
10740
  _onReady();
10866
10741
  }
10867
10742
  });
10868
10743
  }, onError);
10869
10744
  }
10745
+ }, {
10746
+ key: "unbind",
10747
+ value: function unbind() {
10748
+ this.player.unbind('play', this.onPlay);
10749
+ this.player.unbind('pause', this.onPause);
10750
+ this.player.unbind('seek', this.onSeek);
10751
+ this.player.unbind('end', this.onEnded);
10752
+ } // Proxy methods to prevent listener leaks
10753
+
10870
10754
  }, {
10871
10755
  key: "play",
10872
10756
  value: function play() {
@@ -10877,19 +10761,6 @@ function (_Component) {
10877
10761
  value: function pause() {
10878
10762
  this.callPlayer('pause');
10879
10763
  }
10880
- }, {
10881
- key: "unbind",
10882
- value: function unbind() {
10883
- var _this$props2 = this.props,
10884
- onPlay = _this$props2.onPlay,
10885
- onPause = _this$props2.onPause,
10886
- onSeek = _this$props2.onSeek,
10887
- onEnded = _this$props2.onEnded;
10888
- this.player.unbind('play', onPlay);
10889
- this.player.unbind('pause', onPause);
10890
- this.player.unbind('seek', onSeek);
10891
- this.player.unbind('end', onEnded);
10892
- }
10893
10764
  }, {
10894
10765
  key: "stop",
10895
10766
  value: function stop() {
@@ -10935,7 +10806,7 @@ function (_Component) {
10935
10806
  width: '100%',
10936
10807
  height: '100%'
10937
10808
  };
10938
- return _react["default"].createElement("div", {
10809
+ return /*#__PURE__*/_react["default"].createElement("div", {
10939
10810
  key: id,
10940
10811
  className: className,
10941
10812
  style: style
@@ -10995,12 +10866,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
10995
10866
 
10996
10867
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
10997
10868
 
10998
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
10869
+ 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); }; }
10999
10870
 
11000
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10871
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11001
10872
 
11002
10873
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11003
10874
 
10875
+ 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; } }
10876
+
10877
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10878
+
11004
10879
  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); }
11005
10880
 
11006
10881
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11013,14 +10888,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
11013
10888
  var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
11014
10889
  var PLAYER_ID_PREFIX = 'twitch-player-';
11015
10890
 
11016
- var Twitch =
11017
- /*#__PURE__*/
11018
- function (_Component) {
10891
+ var Twitch = /*#__PURE__*/function (_Component) {
11019
10892
  _inherits(Twitch, _Component);
11020
10893
 
11021
- function Twitch() {
11022
- var _getPrototypeOf2;
10894
+ var _super = _createSuper(Twitch);
11023
10895
 
10896
+ function Twitch() {
11024
10897
  var _this;
11025
10898
 
11026
10899
  _classCallCheck(this, Twitch);
@@ -11029,7 +10902,7 @@ function (_Component) {
11029
10902
  args[_key] = arguments[_key];
11030
10903
  }
11031
10904
 
11032
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
10905
+ _this = _super.call.apply(_super, [this].concat(args));
11033
10906
 
11034
10907
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11035
10908
 
@@ -11150,7 +11023,7 @@ function (_Component) {
11150
11023
  width: '100%',
11151
11024
  height: '100%'
11152
11025
  };
11153
- return _react["default"].createElement("div", {
11026
+ return /*#__PURE__*/_react["default"].createElement("div", {
11154
11027
  style: style,
11155
11028
  id: this.playerID
11156
11029
  });
@@ -11203,11 +11076,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
11203
11076
 
11204
11077
  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; }
11205
11078
 
11206
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
11079
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
11080
+
11081
+ 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."); }
11082
+
11083
+ 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); }
11207
11084
 
11208
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
11085
+ 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; }
11209
11086
 
11210
- 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; }
11087
+ 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; }
11211
11088
 
11212
11089
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11213
11090
 
@@ -11217,12 +11094,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11217
11094
 
11218
11095
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11219
11096
 
11220
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11097
+ 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); }; }
11221
11098
 
11222
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11099
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11223
11100
 
11224
11101
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11225
11102
 
11103
+ 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; } }
11104
+
11105
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11106
+
11226
11107
  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); }
11227
11108
 
11228
11109
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11234,14 +11115,12 @@ var SDK_GLOBAL = 'DM';
11234
11115
  var SDK_GLOBAL_READY = 'dmAsyncInit';
11235
11116
  var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
11236
11117
 
11237
- var DailyMotion =
11238
- /*#__PURE__*/
11239
- function (_Component) {
11118
+ var DailyMotion = /*#__PURE__*/function (_Component) {
11240
11119
  _inherits(DailyMotion, _Component);
11241
11120
 
11242
- function DailyMotion() {
11243
- var _getPrototypeOf2;
11121
+ var _super = _createSuper(DailyMotion);
11244
11122
 
11123
+ function DailyMotion() {
11245
11124
  var _this;
11246
11125
 
11247
11126
  _classCallCheck(this, DailyMotion);
@@ -11250,7 +11129,7 @@ function (_Component) {
11250
11129
  args[_key] = arguments[_key];
11251
11130
  }
11252
11131
 
11253
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
11132
+ _this = _super.call.apply(_super, [this].concat(args));
11254
11133
 
11255
11134
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11256
11135
 
@@ -11379,9 +11258,9 @@ function (_Component) {
11379
11258
  height: '100%',
11380
11259
  display: display
11381
11260
  };
11382
- return _react["default"].createElement("div", {
11261
+ return /*#__PURE__*/_react["default"].createElement("div", {
11383
11262
  style: style
11384
- }, _react["default"].createElement("div", {
11263
+ }, /*#__PURE__*/_react["default"].createElement("div", {
11385
11264
  ref: this.ref
11386
11265
  }));
11387
11266
  }
@@ -11439,12 +11318,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11439
11318
 
11440
11319
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11441
11320
 
11442
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11321
+ 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); }; }
11443
11322
 
11444
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11323
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11445
11324
 
11446
11325
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11447
11326
 
11327
+ 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; } }
11328
+
11329
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11330
+
11448
11331
  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); }
11449
11332
 
11450
11333
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -11455,14 +11338,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
11455
11338
  var SDK_GLOBAL = 'Mixcloud';
11456
11339
  var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
11457
11340
 
11458
- var Mixcloud =
11459
- /*#__PURE__*/
11460
- function (_Component) {
11341
+ var Mixcloud = /*#__PURE__*/function (_Component) {
11461
11342
  _inherits(Mixcloud, _Component);
11462
11343
 
11463
- function Mixcloud() {
11464
- var _getPrototypeOf2;
11344
+ var _super = _createSuper(Mixcloud);
11465
11345
 
11346
+ function Mixcloud() {
11466
11347
  var _this;
11467
11348
 
11468
11349
  _classCallCheck(this, Mixcloud);
@@ -11471,7 +11352,7 @@ function (_Component) {
11471
11352
  args[_key] = arguments[_key];
11472
11353
  }
11473
11354
 
11474
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
11355
+ _this = _super.call.apply(_super, [this].concat(args));
11475
11356
 
11476
11357
  _defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
11477
11358
 
@@ -11574,7 +11455,7 @@ function (_Component) {
11574
11455
  })); // We have to give the iframe a key here to prevent a
11575
11456
  // weird dialog appearing when loading a new track
11576
11457
 
11577
- return _react["default"].createElement("iframe", {
11458
+ return /*#__PURE__*/_react["default"].createElement("iframe", {
11578
11459
  key: id,
11579
11460
  ref: this.ref,
11580
11461
  style: style,
@@ -11634,23 +11515,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
11634
11515
 
11635
11516
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
11636
11517
 
11637
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11518
+ 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); }; }
11638
11519
 
11639
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11520
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
11640
11521
 
11641
11522
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11642
11523
 
11524
+ 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; } }
11525
+
11526
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11527
+
11643
11528
  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); }
11644
11529
 
11645
11530
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
11646
11531
 
11647
11532
  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; }
11648
11533
 
11534
+ 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; } } }; }
11535
+
11536
+ 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); }
11537
+
11538
+ 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; }
11539
+
11649
11540
  var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
11650
11541
  var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
11651
11542
  var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
11652
11543
  var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
11653
- var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
11544
+ var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
11654
11545
  var HLS_GLOBAL = 'Hls';
11655
11546
  var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
11656
11547
  var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
@@ -11659,12 +11550,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
11659
11550
 
11660
11551
  function canPlay(url) {
11661
11552
  if (url instanceof Array) {
11662
- var _iteratorNormalCompletion = true;
11663
- var _didIteratorError = false;
11664
- var _iteratorError = undefined;
11553
+ var _iterator = _createForOfIteratorHelper(url),
11554
+ _step;
11665
11555
 
11666
11556
  try {
11667
- for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
11557
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
11668
11558
  var item = _step.value;
11669
11559
 
11670
11560
  if (typeof item === 'string' && canPlay(item)) {
@@ -11676,18 +11566,9 @@ function canPlay(url) {
11676
11566
  }
11677
11567
  }
11678
11568
  } catch (err) {
11679
- _didIteratorError = true;
11680
- _iteratorError = err;
11569
+ _iterator.e(err);
11681
11570
  } finally {
11682
- try {
11683
- if (!_iteratorNormalCompletion && _iterator["return"] != null) {
11684
- _iterator["return"]();
11685
- }
11686
- } finally {
11687
- if (_didIteratorError) {
11688
- throw _iteratorError;
11689
- }
11690
- }
11571
+ _iterator.f();
11691
11572
  }
11692
11573
 
11693
11574
  return false;
@@ -11711,14 +11592,12 @@ function canEnablePIP(url) {
11711
11592
  return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
11712
11593
  }
11713
11594
 
11714
- var FilePlayer =
11715
- /*#__PURE__*/
11716
- function (_Component) {
11595
+ var FilePlayer = /*#__PURE__*/function (_Component) {
11717
11596
  _inherits(FilePlayer, _Component);
11718
11597
 
11719
- function FilePlayer() {
11720
- var _getPrototypeOf2;
11598
+ var _super = _createSuper(FilePlayer);
11721
11599
 
11600
+ function FilePlayer() {
11722
11601
  var _this;
11723
11602
 
11724
11603
  _classCallCheck(this, FilePlayer);
@@ -11727,7 +11606,7 @@ function (_Component) {
11727
11606
  _args[_key] = arguments[_key];
11728
11607
  }
11729
11608
 
11730
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
11609
+ _this = _super.call.apply(_super, [this].concat(_args));
11731
11610
 
11732
11611
  _defineProperty(_assertThisInitialized(_this), "onReady", function () {
11733
11612
  var _this$props;
@@ -11814,19 +11693,19 @@ function (_Component) {
11814
11693
 
11815
11694
  _defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
11816
11695
  if (typeof source === 'string') {
11817
- return _react["default"].createElement("source", {
11696
+ return /*#__PURE__*/_react["default"].createElement("source", {
11818
11697
  key: index,
11819
11698
  src: source
11820
11699
  });
11821
11700
  }
11822
11701
 
11823
- return _react["default"].createElement("source", _extends({
11702
+ return /*#__PURE__*/_react["default"].createElement("source", _extends({
11824
11703
  key: index
11825
11704
  }, source));
11826
11705
  });
11827
11706
 
11828
11707
  _defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
11829
- return _react["default"].createElement("track", _extends({
11708
+ return /*#__PURE__*/_react["default"].createElement("track", _extends({
11830
11709
  key: index
11831
11710
  }, track));
11832
11711
  });
@@ -11864,6 +11743,10 @@ function (_Component) {
11864
11743
  key: "componentWillUnmount",
11865
11744
  value: function componentWillUnmount() {
11866
11745
  this.removeListeners(this.player);
11746
+
11747
+ if (this.hls) {
11748
+ this.hls.destroy();
11749
+ }
11867
11750
  }
11868
11751
  }, {
11869
11752
  key: "addListeners",
@@ -11994,10 +11877,6 @@ function (_Component) {
11994
11877
  value: function stop() {
11995
11878
  this.player.removeAttribute('src');
11996
11879
 
11997
- if (this.hls) {
11998
- this.hls.destroy();
11999
- }
12000
-
12001
11880
  if (this.dash) {
12002
11881
  this.dash.reset();
12003
11882
  }
@@ -12109,7 +11988,7 @@ function (_Component) {
12109
11988
  width: width === 'auto' ? width : '100%',
12110
11989
  height: height === 'auto' ? height : '100%'
12111
11990
  };
12112
- return _react["default"].createElement(Element, _extends({
11991
+ return /*#__PURE__*/_react["default"].createElement(Element, _extends({
12113
11992
  ref: this.ref,
12114
11993
  src: this.getSource(url),
12115
11994
  style: style,
@@ -12199,12 +12078,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
12199
12078
 
12200
12079
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
12201
12080
 
12202
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12081
+ 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); }; }
12203
12082
 
12204
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12083
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12205
12084
 
12206
12085
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12207
12086
 
12087
+ 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; } }
12088
+
12089
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12090
+
12208
12091
  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); }
12209
12092
 
12210
12093
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -12213,14 +12096,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12213
12096
 
12214
12097
  var ICON_SIZE = '64px';
12215
12098
 
12216
- var Preview =
12217
- /*#__PURE__*/
12218
- function (_Component) {
12099
+ var Preview = /*#__PURE__*/function (_Component) {
12219
12100
  _inherits(Preview, _Component);
12220
12101
 
12221
- function Preview() {
12222
- var _getPrototypeOf2;
12102
+ var _super = _createSuper(Preview);
12223
12103
 
12104
+ function Preview() {
12224
12105
  var _this;
12225
12106
 
12226
12107
  _classCallCheck(this, Preview);
@@ -12229,7 +12110,7 @@ function (_Component) {
12229
12110
  args[_key] = arguments[_key];
12230
12111
  }
12231
12112
 
12232
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
12113
+ _this = _super.call.apply(_super, [this].concat(args));
12233
12114
 
12234
12115
  _defineProperty(_assertThisInitialized(_this), "mounted", false);
12235
12116
 
@@ -12327,15 +12208,15 @@ function (_Component) {
12327
12208
  }
12328
12209
  };
12329
12210
 
12330
- var defaultPlayIcon = _react["default"].createElement("div", {
12211
+ var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
12331
12212
  style: styles.shadow,
12332
12213
  className: "react-player__shadow"
12333
- }, _react["default"].createElement("div", {
12214
+ }, /*#__PURE__*/_react["default"].createElement("div", {
12334
12215
  style: styles.playIcon,
12335
12216
  className: "react-player__play-icon"
12336
12217
  }));
12337
12218
 
12338
- return _react["default"].createElement("div", {
12219
+ return /*#__PURE__*/_react["default"].createElement("div", {
12339
12220
  style: styles.preview,
12340
12221
  className: "react-player__preview",
12341
12222
  onClick: onClick
@@ -12372,6 +12253,12 @@ var _Player = _interopRequireDefault(Player_1);
12372
12253
 
12373
12254
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12374
12255
 
12256
+ 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; } } }; }
12257
+
12258
+ 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); }
12259
+
12260
+ 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; }
12261
+
12375
12262
  var PRELOAD_PLAYERS = [{
12376
12263
  Player: YouTube_1.YouTube,
12377
12264
  configKey: 'youtube',
@@ -12392,16 +12279,16 @@ var PRELOAD_PLAYERS = [{
12392
12279
 
12393
12280
  function renderPreloadPlayers(url, controls, config) {
12394
12281
  var players = [];
12395
- var _iteratorNormalCompletion = true;
12396
- var _didIteratorError = false;
12397
- var _iteratorError = undefined;
12282
+
12283
+ var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
12284
+ _step;
12398
12285
 
12399
12286
  try {
12400
- for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
12287
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
12401
12288
  var player = _step.value;
12402
12289
 
12403
12290
  if (!player.Player.canPlay(url) && config[player.configKey].preload) {
12404
- players.push(_react["default"].createElement(_Player["default"], {
12291
+ players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
12405
12292
  key: player.Player.displayName,
12406
12293
  activePlayer: player.Player,
12407
12294
  url: player.url,
@@ -12413,18 +12300,9 @@ function renderPreloadPlayers(url, controls, config) {
12413
12300
  }
12414
12301
  }
12415
12302
  } catch (err) {
12416
- _didIteratorError = true;
12417
- _iteratorError = err;
12303
+ _iterator.e(err);
12418
12304
  } finally {
12419
- try {
12420
- if (!_iteratorNormalCompletion && _iterator["return"] != null) {
12421
- _iterator["return"]();
12422
- }
12423
- } finally {
12424
- if (_didIteratorError) {
12425
- throw _iteratorError;
12426
- }
12427
- }
12305
+ _iterator.f();
12428
12306
  }
12429
12307
 
12430
12308
  return players;
@@ -12548,13 +12426,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
12548
12426
 
12549
12427
  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); }
12550
12428
 
12551
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
12429
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
12430
+
12431
+ 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."); }
12432
+
12433
+ 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); }
12552
12434
 
12553
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
12435
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
12554
12436
 
12555
- function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
12437
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
12556
12438
 
12557
- 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; } }
12439
+ 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; }
12558
12440
 
12559
12441
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
12560
12442
 
@@ -12562,12 +12444,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
12562
12444
 
12563
12445
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
12564
12446
 
12565
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12447
+ 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); }; }
12566
12448
 
12567
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12449
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12568
12450
 
12569
12451
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12570
12452
 
12453
+ 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; } }
12454
+
12455
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12456
+
12571
12457
  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); }
12572
12458
 
12573
12459
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -12577,14 +12463,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12577
12463
  var SUPPORTED_PROPS = Object.keys(props.propTypes);
12578
12464
  var customPlayers = [];
12579
12465
 
12580
- var ReactPlayer =
12581
- /*#__PURE__*/
12582
- function (_Component) {
12466
+ var ReactPlayer = /*#__PURE__*/function (_Component) {
12583
12467
  _inherits(ReactPlayer, _Component);
12584
12468
 
12585
- function ReactPlayer() {
12586
- var _getPrototypeOf2;
12469
+ var _super = _createSuper(ReactPlayer);
12587
12470
 
12471
+ function ReactPlayer() {
12588
12472
  var _this;
12589
12473
 
12590
12474
  _classCallCheck(this, ReactPlayer);
@@ -12593,7 +12477,7 @@ function (_Component) {
12593
12477
  args[_key] = arguments[_key];
12594
12478
  }
12595
12479
 
12596
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
12480
+ _this = _super.call.apply(_super, [this].concat(args));
12597
12481
 
12598
12482
  _defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
12599
12483
 
@@ -12704,7 +12588,7 @@ function (_Component) {
12704
12588
  key: "renderActivePlayer",
12705
12589
  value: function renderActivePlayer(url, activePlayer) {
12706
12590
  if (!url) return null;
12707
- return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
12591
+ return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
12708
12592
  key: activePlayer.displayName,
12709
12593
  ref: this.activePlayerRef,
12710
12594
  config: this.config,
@@ -12741,14 +12625,14 @@ function (_Component) {
12741
12625
  var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
12742
12626
  var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
12743
12627
 
12744
- var preview = _react["default"].createElement(_Preview["default"], {
12628
+ var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
12745
12629
  url: url,
12746
12630
  light: light,
12747
12631
  playIcon: playIcon,
12748
12632
  onClick: this.handleClickPreview
12749
12633
  });
12750
12634
 
12751
- return _react["default"].createElement(Wrapper, _extends({
12635
+ return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
12752
12636
  ref: this.wrapperRef,
12753
12637
  style: _objectSpread({}, style, {
12754
12638
  width: width,
@@ -13507,7 +13391,7 @@ var Leads = function Leads(_ref) {
13507
13391
  );
13508
13392
  };
13509
13393
 
13510
- var urlFor$3 = function urlFor(source, client) {
13394
+ var urlFor$2 = function urlFor(source, client) {
13511
13395
  var builder = imageUrlBuilder(client);
13512
13396
  return builder.image(source).auto('format');
13513
13397
  };
@@ -13561,7 +13445,7 @@ var Slideshow$1 = function Slideshow(_ref) {
13561
13445
  React__default.createElement(
13562
13446
  'a',
13563
13447
  { href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
13564
- React__default.createElement('img', { src: urlFor$3(slide.slideshowImage, client).url(), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
13448
+ React__default.createElement('img', { src: urlFor$2(slide.slideshowImage, client).url(), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
13565
13449
  ),
13566
13450
  React__default.createElement(
13567
13451
  'div',
@@ -13599,6 +13483,10 @@ var NativeAd = function NativeAd(props) {
13599
13483
  );
13600
13484
  };
13601
13485
 
13486
+ var Figure = dynamic(function () {
13487
+ return import('./Figure-d6e22818.js');
13488
+ }, { ssr: false });
13489
+
13602
13490
  var checkUrlIsExternal = function checkUrlIsExternal(url) {
13603
13491
  if (/https?:\/\/((?:[\w\d-]+\.)+[\w\d]{2,})|(^mailto)/i.test(url)) {
13604
13492
  return true;
@@ -13654,7 +13542,7 @@ var getSerializers = function getSerializers() {
13654
13542
  figure: function figure(_ref3) {
13655
13543
  var node = _ref3.node;
13656
13544
 
13657
- return React__default.createElement(FigureComponent, { node: node, client: client });
13545
+ return React__default.createElement(Figure, { node: node, client: client });
13658
13546
  },
13659
13547
  slideshow: function slideshow(_ref4) {
13660
13548
  var node = _ref4.node;
@@ -13962,13 +13850,13 @@ var SetCookie = function SetCookie(key, value) {
13962
13850
  js_cookie.set(key, value, { expires: 1, sameSite: 'none', secure: true });
13963
13851
  };
13964
13852
 
13965
- var urlFor$4 = function urlFor(source, client) {
13853
+ var urlFor$3 = function urlFor(source, client) {
13966
13854
  var builder = imageUrlBuilder(client);
13967
13855
  return builder.image(source).auto('format');
13968
13856
  };
13969
13857
 
13970
13858
  var renderCardImage = function renderCardImage(thumbnail, client, imageHeight, imageWidth) {
13971
- var url = urlFor$4(thumbnail, client);
13859
+ var url = urlFor$3(thumbnail, client);
13972
13860
  if (imageHeight) url = url.height(imageHeight);
13973
13861
  if (imageWidth) url = url.width(imageWidth);
13974
13862
  return url.url();
@@ -14177,16 +14065,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
14177
14065
  _ref$className = _ref.className,
14178
14066
  className = _ref$className === undefined ? '' : _ref$className;
14179
14067
 
14180
- /*
14181
- Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
14182
- example:
14183
- <RelatedTopicDropdown
14184
- page='/clinical'
14185
- exclude="clinical"
14186
- className='mb-3'
14187
- parentTaxonomy={props.parentTaxonomy}
14188
- subTaxonomies={props.subTaxonomies}
14189
- />
14068
+ /*
14069
+ Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
14070
+ example:
14071
+ <RelatedTopicDropdown
14072
+ page='/clinical'
14073
+ exclude="clinical"
14074
+ className='mb-3'
14075
+ parentTaxonomy={props.parentTaxonomy}
14076
+ subTaxonomies={props.subTaxonomies}
14077
+ />
14190
14078
  */
14191
14079
  if (subTaxonomies.length === 0 && parentTaxonomy) {
14192
14080
  if (parentTaxonomy.identifier == exclude) {
@@ -14224,19 +14112,19 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
14224
14112
  }
14225
14113
  };
14226
14114
 
14227
- /*
14228
- This dropdown is used inside Article body to display related content placement pages
14229
- sample usage: <ArticleDetailDropdown contentPlacement={content_placement} exclude={['News',]} />
14230
-
14231
- in article query, need to add '...' to content_placement to retreive additional info needed
14232
-
14233
- 'content_placement': taxonomyMapping[]-> {
14234
- ...,
14235
- 'ancestor': parent->parent->identifier,
14236
- 'parent': parent->identifier,
14237
- 'path': identifier
14238
- }
14239
-
14115
+ /*
14116
+ This dropdown is used inside Article body to display related content placement pages
14117
+ sample usage: <ArticleDetailDropdown contentPlacement={content_placement} exclude={['News',]} />
14118
+
14119
+ in article query, need to add '...' to content_placement to retreive additional info needed
14120
+
14121
+ 'content_placement': taxonomyMapping[]-> {
14122
+ ...,
14123
+ 'ancestor': parent->parent->identifier,
14124
+ 'parent': parent->identifier,
14125
+ 'path': identifier
14126
+ }
14127
+
14240
14128
  */
14241
14129
 
14242
14130
  var ArticleDetailDropdown = function ArticleDetailDropdown(props) {
@@ -15075,34 +14963,34 @@ var GridHero = function GridHero(props) {
15075
14963
  );
15076
14964
  };
15077
14965
 
15078
- /*
15079
- Sample query
15080
- let references = ''
15081
- if(article.taxonomyMapping.length > 0){
15082
- article.taxonomyMapping.forEach((ref, index) => {
15083
- references = references + `references('${ref._ref}') `
15084
- if(index+1 !== article.taxonomyMapping.length){
15085
- references = references + ` && `
15086
- }
15087
- })
15088
- }
15089
-
15090
- 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] {
15091
- ...,
15092
- title,
15093
- summary,
15094
- thumbnail,
15095
- url,
15096
- published,
15097
- authorMapping[]->,
15098
- contentCategory->
15099
- }`
15100
- const relatedArticles = await client.fetch(relatedArticlesQuery)
15101
-
15102
- Sample usage
15103
- <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
15104
-
15105
-
14966
+ /*
14967
+ Sample query
14968
+ let references = ''
14969
+ if(article.taxonomyMapping.length > 0){
14970
+ article.taxonomyMapping.forEach((ref, index) => {
14971
+ references = references + `references('${ref._ref}') `
14972
+ if(index+1 !== article.taxonomyMapping.length){
14973
+ references = references + ` && `
14974
+ }
14975
+ })
14976
+ }
14977
+
14978
+ 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] {
14979
+ ...,
14980
+ title,
14981
+ summary,
14982
+ thumbnail,
14983
+ url,
14984
+ published,
14985
+ authorMapping[]->,
14986
+ contentCategory->
14987
+ }`
14988
+ const relatedArticles = await client.fetch(relatedArticlesQuery)
14989
+
14990
+ Sample usage
14991
+ <RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
14992
+
14993
+
15106
14994
  */
15107
14995
  var RelatedContent = function RelatedContent(props) {
15108
14996
  var client = props.client,
@@ -15169,21 +15057,21 @@ var RelatedContent = function RelatedContent(props) {
15169
15057
  );
15170
15058
  };
15171
15059
 
15172
- /*
15173
- Example usage - targetedonc.com/latest-conference
15174
- 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] {
15175
- ...,
15176
- title,
15177
- summary,
15178
- thumbnail,
15179
- url,
15180
- published,
15181
- documentGroup->,
15182
- contentCategory->,
15183
- 'pageNumber': ${currentPage}
15184
- }`
15185
-
15186
- const posts = await client.fetch(query, params)
15060
+ /*
15061
+ Example usage - targetedonc.com/latest-conference
15062
+ 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] {
15063
+ ...,
15064
+ title,
15065
+ summary,
15066
+ thumbnail,
15067
+ url,
15068
+ published,
15069
+ documentGroup->,
15070
+ contentCategory->,
15071
+ 'pageNumber': ${currentPage}
15072
+ }`
15073
+
15074
+ const posts = await client.fetch(query, params)
15187
15075
  */
15188
15076
 
15189
15077
  var ConferenceArticleCard = function ConferenceArticleCard(props) {
@@ -15810,27 +15698,27 @@ var _initialiseProps = function _initialiseProps() {
15810
15698
  };
15811
15699
 
15812
15700
  var KMTracker = function KMTracker(props) {
15813
- var id = props.id;
15701
+ var id = props.id;
15814
15702
 
15815
- if (document && id) {
15703
+ if (document && id) {
15816
15704
  (function () {
15817
- var ecnJquery = document.createElement('script');
15705
+ var ecnJquery = document.createElement('script');
15818
15706
 
15819
- ecnJquery.type = 'text/javascript';
15820
- ecnJquery.async = true;
15821
- ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
15707
+ ecnJquery.type = 'text/javascript';
15708
+ ecnJquery.async = true;
15709
+ ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
15822
15710
 
15823
- var ecnScript = document.createElement('script');
15711
+ var ecnScript = document.createElement('script');
15824
15712
 
15825
- ecnScript.type = 'text/javascript';
15826
- ecnScript.async = true;
15827
- ecnScript.id = 'km-tracker';
15828
- ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
15713
+ ecnScript.type = 'text/javascript';
15714
+ ecnScript.async = true;
15715
+ ecnScript.id = 'km-tracker';
15716
+ ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
15829
15717
 
15830
- document.head.appendChild(ecnJquery);
15831
- document.head.appendChild(ecnScript);
15832
- })();
15833
- }
15718
+ document.head.appendChild(ecnJquery);
15719
+ document.head.appendChild(ecnScript);
15720
+ })();
15721
+ }
15834
15722
  };
15835
15723
 
15836
15724
  export { AD300x250, AD300x250x600, ADFloatingFooter, ADFooter, ADGutter, ADWelcome, AccordionPanel, AdSlotsProvider, AlphabeticList, ArticleDetailDropdown, ArticleQueue, Breadcrumbs$1 as Breadcrumbs, CMEDeck, ConferenceArticleCard, EventsDeck, Feature, fbsHero as ForbesHero, GridHero, Hero, HorizontalHero, KMTracker, OncliveHero, OncliveLargeHero, PdfDownload, RelatedContent, RelatedTopicsDropdown, SetCookie, SocialShare$1 as SocialShare, VerticalHero, YahooHero, getSerializers };