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