@mjhls/mjh-framework 1.0.423 → 1.0.425
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-494f5e6b.js → ADInfeed-99f812f9.js} +1 -1
- package/dist/cjs/{AdSlot-4d22aad4.js → AdSlot-6b3e5d3d.js} +2 -2
- package/dist/cjs/DeckContent.js +17 -17
- package/dist/cjs/DeckQueue.js +8 -8
- package/dist/cjs/{Dfp-2399639f.js → Dfp-f62806bd.js} +1 -1
- package/dist/cjs/{Figure-9e886c5b.js → Figure-7277baf0.js} +1 -1
- package/dist/cjs/{GridContent-f401c40f.js → GridContent-3acca2d2.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-405b758a.js → Normal-e35862e5.js} +39 -39
- package/dist/cjs/PublicationDeck.js +1 -1
- package/dist/cjs/QueueDeckExpanded.js +8 -8
- package/dist/cjs/{TaxonomyCard-eb928f05.js → TaxonomyCard-bbf7530c.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-b088070c.js → debounce-17653c0f.js} +6 -4
- package/dist/cjs/{get-5aa7468c.js → get-1f552668.js} +1 -1
- package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
- package/dist/cjs/{index.es-ab3f2690.js → index.es-9110add6.js} +1 -3
- package/dist/cjs/index.js +885 -936
- package/dist/cjs/{inherits-e793003e.js → inherits-be4dfb6b.js} +4 -4
- package/dist/cjs/{main-bc4db521.js → main-88348b15.js} +35 -66
- package/dist/cjs/{moment-66a6a284.js → moment-575fe24c.js} +1 -1
- package/dist/esm/{ADInfeed-e5cefea5.js → ADInfeed-f1c1780e.js} +1 -1
- package/dist/esm/{AdSlot-78e48a2c.js → AdSlot-4ca0419a.js} +2 -2
- package/dist/esm/DeckContent.js +16 -16
- package/dist/esm/DeckQueue.js +7 -7
- package/dist/esm/{Dfp-d5fe1252.js → Dfp-d372854b.js} +1 -1
- package/dist/esm/{Figure-cc1affbe.js → Figure-2d14847b.js} +1 -1
- package/dist/esm/{GridContent-e3224519.js → GridContent-09330066.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-c61851bf.js → Normal-7e1b2b80.js} +39 -39
- package/dist/esm/PublicationDeck.js +1 -1
- package/dist/esm/QueueDeckExpanded.js +8 -8
- package/dist/esm/{TaxonomyCard-b29aa7ac.js → TaxonomyCard-d49aa67a.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-df468b0e.js → debounce-53693e2b.js} +6 -4
- package/dist/esm/{get-53653403.js → get-b3f4645d.js} +1 -1
- package/dist/esm/{index-51a80699.js → index-73819142.js} +19 -20
- package/dist/esm/{index.es-938a3a58.js → index.es-29c1cef5.js} +1 -3
- package/dist/esm/index.js +882 -933
- package/dist/esm/{main-7d1b3c98.js → main-273675e1.js} +34 -65
- package/dist/esm/{moment-12415288.js → moment-e2f9b20c.js} +1 -1
- package/package.json +103 -103
package/dist/cjs/index.js
CHANGED
|
@@ -12,38 +12,38 @@ require('./_iter-detect-234453c3.js');
|
|
|
12
12
|
var toConsumableArray = require('./toConsumableArray-25d0e2a3.js');
|
|
13
13
|
require('./_object-pie-68c5bcbc.js');
|
|
14
14
|
var _extends$2 = require('./extends-60837c34.js');
|
|
15
|
-
var inherits$2 = require('./inherits-
|
|
16
|
-
var _typeof$
|
|
15
|
+
var inherits$2 = require('./inherits-be4dfb6b.js');
|
|
16
|
+
var _typeof$1 = require('./typeof-2747c582.js');
|
|
17
17
|
var React = require('react');
|
|
18
18
|
var React__default = _interopDefault(React);
|
|
19
|
-
var debounce = require('./debounce-
|
|
19
|
+
var debounce = require('./debounce-17653c0f.js');
|
|
20
20
|
var PropTypes = _interopDefault(require('prop-types'));
|
|
21
21
|
var Container = _interopDefault(require('react-bootstrap/Container'));
|
|
22
22
|
var Row = _interopDefault(require('react-bootstrap/Row'));
|
|
23
23
|
var Col = _interopDefault(require('react-bootstrap/Col'));
|
|
24
24
|
var Card = _interopDefault(require('react-bootstrap/Card'));
|
|
25
|
-
var moment = require('./moment-
|
|
25
|
+
var moment = require('./moment-575fe24c.js');
|
|
26
26
|
var Router = require('next/router');
|
|
27
27
|
var Router__default = _interopDefault(Router);
|
|
28
|
-
var index_es = require('./index.es-
|
|
28
|
+
var index_es = require('./index.es-9110add6.js');
|
|
29
29
|
require('react-dom');
|
|
30
30
|
var visibilitySensor = require('./visibility-sensor-0c45a583.js');
|
|
31
|
-
var index = require('./index-
|
|
31
|
+
var index = require('./index-be0c82be.js');
|
|
32
32
|
var index$1 = require('./index-fa0fb52c.js');
|
|
33
|
-
var main = require('./main-
|
|
33
|
+
var main = require('./main-88348b15.js');
|
|
34
34
|
var entities = require('./entities-310b46ee.js');
|
|
35
35
|
var slicedToArray = require('./slicedToArray-419d467a.js');
|
|
36
|
-
var AdSlot = require('./AdSlot-
|
|
36
|
+
var AdSlot = require('./AdSlot-6b3e5d3d.js');
|
|
37
37
|
var promise = require('./promise-0a493c7a.js');
|
|
38
|
-
require('./ADInfeed-
|
|
38
|
+
require('./ADInfeed-99f812f9.js');
|
|
39
39
|
var DeckContent = require('./DeckContent.js');
|
|
40
|
-
var get$1 = require('./get-
|
|
41
|
-
var GridContent = require('./GridContent-
|
|
40
|
+
var get$1 = require('./get-1f552668.js');
|
|
41
|
+
var GridContent = require('./GridContent-3acca2d2.js');
|
|
42
42
|
var AuthorComponent = require('./AuthorComponent-4706f297.js');
|
|
43
43
|
var DeckQueue = require('./DeckQueue.js');
|
|
44
44
|
require('react-bootstrap/Media');
|
|
45
45
|
var ThumbnailCard = require('./ThumbnailCard.js');
|
|
46
|
-
var TaxonomyCard = require('./TaxonomyCard-
|
|
46
|
+
var TaxonomyCard = require('./TaxonomyCard-bbf7530c.js');
|
|
47
47
|
require('./react-social-icons-cd0d9d3b.js');
|
|
48
48
|
var smoothscroll = require('./smoothscroll-95231a70.js');
|
|
49
49
|
var GroupDeck = require('./GroupDeck.js');
|
|
@@ -59,7 +59,7 @@ var IssueDeck = require('./IssueDeck.js');
|
|
|
59
59
|
require('react-bootstrap/Badge');
|
|
60
60
|
var IssueContentDeck = require('./IssueContentDeck.js');
|
|
61
61
|
var Spinner = _interopDefault(require('react-bootstrap/Spinner'));
|
|
62
|
-
var TemplateNormal = require('./Normal-
|
|
62
|
+
var TemplateNormal = require('./Normal-e35862e5.js');
|
|
63
63
|
require('react-bootstrap/ListGroup');
|
|
64
64
|
var Head = _interopDefault(require('next/head'));
|
|
65
65
|
var Accordion = _interopDefault(require('react-bootstrap/Accordion'));
|
|
@@ -1925,23 +1925,23 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
1925
1925
|
if (cventAccessToken && cventAccessToken !== 'undefined') {
|
|
1926
1926
|
setAccessToken(cventAccessToken);
|
|
1927
1927
|
} else {
|
|
1928
|
-
/*const encodedData = window.btoa(clientId + ':' + clientSecret)
|
|
1929
|
-
//const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
|
|
1930
|
-
const url = `https://api-platform.cvent.com/ea/oauth2/token`
|
|
1931
|
-
fetch(url, {
|
|
1932
|
-
headers: {
|
|
1933
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1934
|
-
Authorization: `Basic ${encodedData}`
|
|
1935
|
-
},
|
|
1936
|
-
method: 'POST',
|
|
1937
|
-
body: `grant_type=client_credentials&client_id=${clientId}`
|
|
1938
|
-
})
|
|
1939
|
-
.then((response) => response.json())
|
|
1940
|
-
.then((json) => {
|
|
1941
|
-
const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
|
|
1942
|
-
Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
|
|
1943
|
-
setAccessToken(json.access_token)
|
|
1944
|
-
})
|
|
1928
|
+
/*const encodedData = window.btoa(clientId + ':' + clientSecret)
|
|
1929
|
+
//const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
|
|
1930
|
+
const url = `https://api-platform.cvent.com/ea/oauth2/token`
|
|
1931
|
+
fetch(url, {
|
|
1932
|
+
headers: {
|
|
1933
|
+
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1934
|
+
Authorization: `Basic ${encodedData}`
|
|
1935
|
+
},
|
|
1936
|
+
method: 'POST',
|
|
1937
|
+
body: `grant_type=client_credentials&client_id=${clientId}`
|
|
1938
|
+
})
|
|
1939
|
+
.then((response) => response.json())
|
|
1940
|
+
.then((json) => {
|
|
1941
|
+
const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
|
|
1942
|
+
Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
|
|
1943
|
+
setAccessToken(json.access_token)
|
|
1944
|
+
})
|
|
1945
1945
|
.catch((e) => console.log(e))*/
|
|
1946
1946
|
// hello
|
|
1947
1947
|
var url = 'https://beam.mjhlifesciences.com/api/cvent/token';
|
|
@@ -2135,7 +2135,7 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
2135
2135
|
)
|
|
2136
2136
|
)
|
|
2137
2137
|
),
|
|
2138
|
-
main.
|
|
2138
|
+
main.main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
|
|
2139
2139
|
'div',
|
|
2140
2140
|
{ style: { margin: '0 auto' } },
|
|
2141
2141
|
renderMobileAd(index, numberOfItemsBeforeAd)
|
|
@@ -2470,7 +2470,7 @@ var CMEDeck = function CMEDeck(_ref) {
|
|
|
2470
2470
|
)
|
|
2471
2471
|
)
|
|
2472
2472
|
),
|
|
2473
|
-
main.
|
|
2473
|
+
main.main_36 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
|
|
2474
2474
|
'div',
|
|
2475
2475
|
{ style: { margin: '0 auto' } },
|
|
2476
2476
|
renderMobileAd(index, numberOfItemsBeforeAd)
|
|
@@ -2761,7 +2761,7 @@ var AD300x250 = function AD300x250(_ref) {
|
|
|
2761
2761
|
pos = _ref$pos === undefined ? 'rec1' : _ref$pos;
|
|
2762
2762
|
|
|
2763
2763
|
var mobileView = false;
|
|
2764
|
-
if (main.
|
|
2764
|
+
if (main.main_36) {
|
|
2765
2765
|
pos = 'rec1-mobile';
|
|
2766
2766
|
mobileView = true;
|
|
2767
2767
|
}
|
|
@@ -2793,7 +2793,7 @@ var AD300x250x600 = function AD300x250x600(_ref) {
|
|
|
2793
2793
|
pos = _ref$pos === undefined ? 'rec2' : _ref$pos;
|
|
2794
2794
|
|
|
2795
2795
|
var mobileView = false;
|
|
2796
|
-
if (main.
|
|
2796
|
+
if (main.main_36) {
|
|
2797
2797
|
pos = 'rec2-mobile';
|
|
2798
2798
|
mobileView = true;
|
|
2799
2799
|
}
|
|
@@ -2841,7 +2841,7 @@ var ADFooter = function ADFooter(_ref) {
|
|
|
2841
2841
|
React__default.createElement(
|
|
2842
2842
|
'style',
|
|
2843
2843
|
{ jsx: true },
|
|
2844
|
-
'\n .ADFooter {\n width: auto;\n margin: 0;\n background-color: #f5f5f5;\n position: fixed;\n bottom: 0;\n left: 50%;\n transform: translateX(-50%);\n z-index: 9000;\n }\n .closeButton {\n position: absolute;\n top: -10px;\n right: -10px;\n background: grey;\n color: white;\n font-weight: 500;\n border: 2px solid white;\n border-radius: 50%;\n width: 30px;\n height: 30px;\n text-align: center;\n font-size: 17px;\n cursor: pointer;\n }\n '
|
|
2844
|
+
'\n .ADFooter {\n width: auto;\n margin: 0;\n background-color: #f5f5f5;\n position: fixed;\n bottom: 0;\n left: 50%;\n transform: translateX(-50%);\n z-index: 9000;\n }\n .adBox > div:empty {\n display: none !important;\n }\n .adBox > div:not(:empty){\n display: block !important;\n }\n .closeButton {\n position: absolute;\n top: -10px;\n right: -10px;\n background: grey;\n color: white;\n font-weight: 500;\n border: 2px solid white;\n border-radius: 50%;\n width: 30px;\n height: 30px;\n text-align: center;\n font-size: 17px;\n cursor: pointer;\n }\n '
|
|
2845
2845
|
)
|
|
2846
2846
|
);
|
|
2847
2847
|
};
|
|
@@ -2900,19 +2900,30 @@ var ADFloatingFooter = function ADFloatingFooter(_ref) {
|
|
|
2900
2900
|
if (window && window.innerWidth > minScreenWidth) {
|
|
2901
2901
|
setWidthFlag(true);
|
|
2902
2902
|
}
|
|
2903
|
+
|
|
2904
|
+
try {
|
|
2905
|
+
var _floatingAd = document.getElementById('floating-ad');
|
|
2906
|
+
var parent = document.getElementById('floating-ad-wrapper');
|
|
2907
|
+
if (_floatingAd.children[0].children.length === 0) {
|
|
2908
|
+
parent.classList.remove('display-floating');
|
|
2909
|
+
parent.classList.add('hide-floating');
|
|
2910
|
+
}
|
|
2911
|
+
} catch (e) {}
|
|
2903
2912
|
}, [minScreenWidth]);
|
|
2904
2913
|
|
|
2905
2914
|
var collapseAd = function collapseAd() {
|
|
2906
2915
|
var parent = document.getElementById('floating-ad-wrapper');
|
|
2907
2916
|
parent.style.height = '0%';
|
|
2908
2917
|
parent.style.width = '0%';
|
|
2909
|
-
parent.
|
|
2918
|
+
parent.classList.remove('display-floating');
|
|
2919
|
+
parent.classList.add('hide-floating');
|
|
2910
2920
|
};
|
|
2911
2921
|
|
|
2912
2922
|
var checkIsAdFound = function checkIsAdFound(isFound, adData) {
|
|
2913
2923
|
if (isFound) {
|
|
2914
2924
|
var parent = document.getElementById('floating-ad-wrapper');
|
|
2915
|
-
parent.
|
|
2925
|
+
parent.classList.remove('hide-floating');
|
|
2926
|
+
parent.classList.add('display-floating');
|
|
2916
2927
|
if (adData && adData.event && adData.event.size) {
|
|
2917
2928
|
parent.style.width = adData.event.size[0] + 'px';
|
|
2918
2929
|
parent.style.height = adData.event.size[1] + 'px';
|
|
@@ -2927,7 +2938,7 @@ var ADFloatingFooter = function ADFloatingFooter(_ref) {
|
|
|
2927
2938
|
null,
|
|
2928
2939
|
widthFlag && adTargeting.document_url && React__default.createElement(
|
|
2929
2940
|
'div',
|
|
2930
|
-
{ id: 'floating-ad-wrapper', className: 'floating-ad-wrapper ' + title },
|
|
2941
|
+
{ id: 'floating-ad-wrapper', className: 'floating-ad-wrapper hide-floating ' + title },
|
|
2931
2942
|
React__default.createElement(AdSlot.DFPAdSlot, {
|
|
2932
2943
|
className: className,
|
|
2933
2944
|
slotId: slotId,
|
|
@@ -2949,7 +2960,7 @@ var ADFloatingFooter = function ADFloatingFooter(_ref) {
|
|
|
2949
2960
|
React__default.createElement(
|
|
2950
2961
|
'style',
|
|
2951
2962
|
{ jsx: 'true' },
|
|
2952
|
-
'\n .floating-ad-wrapper {\n margin: 0;\n background-color: #f5f5f5;\n position: fixed;\n bottom: 0;\n left: 50%;\n transform: translateX(-50%);\n z-index: 9000;\n
|
|
2963
|
+
'\n .display-floating {\n display: block;\n }\n .hide-floating {\n display: none;\n }\n .floating-ad-wrapper {\n margin: 0;\n background-color: #f5f5f5;\n position: fixed;\n bottom: 0;\n left: 50%;\n transform: translateX(-50%);\n z-index: 9000;\n }\n .closeButton {\n position: absolute;\n top: -10px;\n right: -10px;\n background: grey;\n color: white;\n font-weight: 500;\n border: 2px solid white;\n border-radius: 50%;\n width: 30px;\n height: 30px;\n text-align: center;\n font-size: 17px;\n cursor: pointer;\n }\n '
|
|
2953
2964
|
)
|
|
2954
2965
|
);
|
|
2955
2966
|
};
|
|
@@ -3199,18 +3210,21 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
3199
3210
|
);
|
|
3200
3211
|
};
|
|
3201
3212
|
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3213
|
+
var isArray = Array.isArray;
|
|
3214
|
+
var keyList = Object.keys;
|
|
3215
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
3205
3216
|
|
|
3206
3217
|
var fastDeepEqual = function equal(a, b) {
|
|
3207
3218
|
if (a === b) return true;
|
|
3208
3219
|
|
|
3209
3220
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
3210
|
-
|
|
3221
|
+
var arrA = isArray(a)
|
|
3222
|
+
, arrB = isArray(b)
|
|
3223
|
+
, i
|
|
3224
|
+
, length
|
|
3225
|
+
, key;
|
|
3211
3226
|
|
|
3212
|
-
|
|
3213
|
-
if (Array.isArray(a)) {
|
|
3227
|
+
if (arrA && arrB) {
|
|
3214
3228
|
length = a.length;
|
|
3215
3229
|
if (length != b.length) return false;
|
|
3216
3230
|
for (i = length; i-- !== 0;)
|
|
@@ -3218,29 +3232,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
3218
3232
|
return true;
|
|
3219
3233
|
}
|
|
3220
3234
|
|
|
3235
|
+
if (arrA != arrB) return false;
|
|
3221
3236
|
|
|
3237
|
+
var dateA = a instanceof Date
|
|
3238
|
+
, dateB = b instanceof Date;
|
|
3239
|
+
if (dateA != dateB) return false;
|
|
3240
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
3222
3241
|
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
if (
|
|
3242
|
+
var regexpA = a instanceof RegExp
|
|
3243
|
+
, regexpB = b instanceof RegExp;
|
|
3244
|
+
if (regexpA != regexpB) return false;
|
|
3245
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
3226
3246
|
|
|
3227
|
-
keys =
|
|
3247
|
+
var keys = keyList(a);
|
|
3228
3248
|
length = keys.length;
|
|
3229
|
-
|
|
3249
|
+
|
|
3250
|
+
if (length !== keyList(b).length)
|
|
3251
|
+
return false;
|
|
3230
3252
|
|
|
3231
3253
|
for (i = length; i-- !== 0;)
|
|
3232
|
-
if (!
|
|
3254
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
3233
3255
|
|
|
3234
3256
|
for (i = length; i-- !== 0;) {
|
|
3235
|
-
|
|
3236
|
-
|
|
3257
|
+
key = keys[i];
|
|
3237
3258
|
if (!equal(a[key], b[key])) return false;
|
|
3238
3259
|
}
|
|
3239
3260
|
|
|
3240
3261
|
return true;
|
|
3241
3262
|
}
|
|
3242
3263
|
|
|
3243
|
-
// true if both NaN, false otherwise
|
|
3244
3264
|
return a!==a && b!==b;
|
|
3245
3265
|
};
|
|
3246
3266
|
|
|
@@ -4263,7 +4283,7 @@ function formatValue(ctx, value, recurseTimes) {
|
|
|
4263
4283
|
var base = '', array = false, braces = ['{', '}'];
|
|
4264
4284
|
|
|
4265
4285
|
// Make Array say that they are Array
|
|
4266
|
-
if (isArray(value)) {
|
|
4286
|
+
if (isArray$1(value)) {
|
|
4267
4287
|
array = true;
|
|
4268
4288
|
braces = ['[', ']'];
|
|
4269
4289
|
}
|
|
@@ -4442,7 +4462,7 @@ function reduceToSingleString(output, base, braces) {
|
|
|
4442
4462
|
|
|
4443
4463
|
// NOTE: These type checking functions intentionally don't use `instanceof`
|
|
4444
4464
|
// because it is fragile and can be easily faked with `Object.create()`.
|
|
4445
|
-
function isArray(ar) {
|
|
4465
|
+
function isArray$1(ar) {
|
|
4446
4466
|
return Array.isArray(ar);
|
|
4447
4467
|
}
|
|
4448
4468
|
|
|
@@ -4569,7 +4589,7 @@ var util = {
|
|
|
4569
4589
|
isNullOrUndefined: isNullOrUndefined,
|
|
4570
4590
|
isNull: isNull,
|
|
4571
4591
|
isBoolean: isBoolean,
|
|
4572
|
-
isArray: isArray,
|
|
4592
|
+
isArray: isArray$1,
|
|
4573
4593
|
inspect: inspect,
|
|
4574
4594
|
deprecate: deprecate,
|
|
4575
4595
|
format: format,
|
|
@@ -5236,235 +5256,199 @@ module.exports = exports['default'];
|
|
|
5236
5256
|
|
|
5237
5257
|
var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
|
|
5238
5258
|
|
|
5239
|
-
function
|
|
5240
|
-
|
|
5241
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5242
|
-
|
|
5243
|
-
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); } }
|
|
5244
|
-
|
|
5245
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5246
|
-
|
|
5247
|
-
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); }; }
|
|
5248
|
-
|
|
5249
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5250
|
-
|
|
5251
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5252
|
-
|
|
5253
|
-
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; } }
|
|
5259
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
5254
5260
|
|
|
5255
|
-
function
|
|
5256
|
-
|
|
5257
|
-
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); }
|
|
5261
|
+
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; };
|
|
5258
5262
|
|
|
5259
|
-
function
|
|
5263
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5260
5264
|
|
|
5261
|
-
function
|
|
5265
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
5262
5266
|
|
|
5263
|
-
function
|
|
5267
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
5264
5268
|
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
*
|
|
5268
|
-
*
|
|
5269
|
-
* @param {Object}
|
|
5270
|
-
* @param {Object} props
|
|
5269
|
+
/**
|
|
5270
|
+
* Check whether a `props` change should result in the video being updated.
|
|
5271
|
+
*
|
|
5272
|
+
* @param {Object} prevProps
|
|
5273
|
+
* @param {Object} props
|
|
5271
5274
|
*/
|
|
5272
|
-
|
|
5273
5275
|
function shouldUpdateVideo(prevProps, props) {
|
|
5274
5276
|
// A changing video should always trigger an update
|
|
5275
5277
|
if (prevProps.videoId !== props.videoId) {
|
|
5276
5278
|
return true;
|
|
5277
|
-
}
|
|
5278
|
-
// update.
|
|
5279
|
-
|
|
5279
|
+
}
|
|
5280
5280
|
|
|
5281
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
5282
|
+
// update.
|
|
5281
5283
|
var prevVars = prevProps.opts.playerVars || {};
|
|
5282
5284
|
var vars = props.opts.playerVars || {};
|
|
5285
|
+
|
|
5283
5286
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
5284
5287
|
}
|
|
5285
|
-
/**
|
|
5286
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
5287
|
-
* that require a player reset. The results can then be compared to see if a
|
|
5288
|
-
* player reset is necessary.
|
|
5289
|
-
*
|
|
5290
|
-
* @param {Object} opts
|
|
5291
|
-
*/
|
|
5292
|
-
|
|
5293
5288
|
|
|
5289
|
+
/**
|
|
5290
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
5291
|
+
* that require a player reset. The results can then be compared to see if a
|
|
5292
|
+
* player reset is necessary.
|
|
5293
|
+
*
|
|
5294
|
+
* @param {Object} opts
|
|
5295
|
+
*/
|
|
5294
5296
|
function filterResetOptions(opts) {
|
|
5295
|
-
return
|
|
5296
|
-
playerVars:
|
|
5297
|
+
return _extends({}, opts, {
|
|
5298
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
5297
5299
|
autoplay: 0,
|
|
5298
5300
|
start: 0,
|
|
5299
5301
|
end: 0
|
|
5300
5302
|
})
|
|
5301
5303
|
});
|
|
5302
5304
|
}
|
|
5303
|
-
/**
|
|
5304
|
-
* Check whether a `props` change should result in the player being reset.
|
|
5305
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
5306
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
5307
|
-
* those.
|
|
5308
|
-
*
|
|
5309
|
-
* @param {Object} prevProps
|
|
5310
|
-
* @param {Object} props
|
|
5311
|
-
*/
|
|
5312
|
-
|
|
5313
5305
|
|
|
5306
|
+
/**
|
|
5307
|
+
* Check whether a `props` change should result in the player being reset.
|
|
5308
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
5309
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
5310
|
+
* those.
|
|
5311
|
+
*
|
|
5312
|
+
* @param {Object} prevProps
|
|
5313
|
+
* @param {Object} props
|
|
5314
|
+
*/
|
|
5314
5315
|
function shouldResetPlayer(prevProps, props) {
|
|
5315
5316
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
5316
5317
|
}
|
|
5317
|
-
/**
|
|
5318
|
-
* Check whether a props change should result in an id or className update.
|
|
5319
|
-
*
|
|
5320
|
-
* @param {Object} prevProps
|
|
5321
|
-
* @param {Object} props
|
|
5322
|
-
*/
|
|
5323
|
-
|
|
5324
5318
|
|
|
5319
|
+
/**
|
|
5320
|
+
* Check whether a props change should result in an id or className update.
|
|
5321
|
+
*
|
|
5322
|
+
* @param {Object} prevProps
|
|
5323
|
+
* @param {Object} props
|
|
5324
|
+
*/
|
|
5325
5325
|
function shouldUpdatePlayer(prevProps, props) {
|
|
5326
5326
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
5327
5327
|
}
|
|
5328
5328
|
|
|
5329
|
-
var YouTube =
|
|
5329
|
+
var YouTube = function (_React$Component) {
|
|
5330
5330
|
_inherits(YouTube, _React$Component);
|
|
5331
5331
|
|
|
5332
|
-
var _super = _createSuper(YouTube);
|
|
5333
|
-
|
|
5334
|
-
/**
|
|
5335
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
5336
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
5337
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5338
|
-
*/
|
|
5339
5332
|
function YouTube(props) {
|
|
5340
|
-
var _this;
|
|
5341
|
-
|
|
5342
5333
|
_classCallCheck(this, YouTube);
|
|
5343
5334
|
|
|
5344
|
-
_this =
|
|
5335
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
5345
5336
|
|
|
5346
|
-
|
|
5337
|
+
_this.onPlayerReady = function (event) {
|
|
5347
5338
|
return _this.props.onReady(event);
|
|
5348
|
-
}
|
|
5339
|
+
};
|
|
5349
5340
|
|
|
5350
|
-
|
|
5341
|
+
_this.onPlayerError = function (event) {
|
|
5351
5342
|
return _this.props.onError(event);
|
|
5352
|
-
}
|
|
5343
|
+
};
|
|
5353
5344
|
|
|
5354
|
-
|
|
5345
|
+
_this.onPlayerStateChange = function (event) {
|
|
5355
5346
|
_this.props.onStateChange(event);
|
|
5356
|
-
|
|
5357
5347
|
switch (event.data) {
|
|
5348
|
+
|
|
5358
5349
|
case YouTube.PlayerState.ENDED:
|
|
5359
5350
|
_this.props.onEnd(event);
|
|
5360
|
-
|
|
5361
5351
|
break;
|
|
5362
5352
|
|
|
5363
5353
|
case YouTube.PlayerState.PLAYING:
|
|
5364
5354
|
_this.props.onPlay(event);
|
|
5365
|
-
|
|
5366
5355
|
break;
|
|
5367
5356
|
|
|
5368
5357
|
case YouTube.PlayerState.PAUSED:
|
|
5369
5358
|
_this.props.onPause(event);
|
|
5370
|
-
|
|
5371
5359
|
break;
|
|
5372
5360
|
}
|
|
5373
|
-
}
|
|
5361
|
+
};
|
|
5374
5362
|
|
|
5375
|
-
|
|
5363
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
5376
5364
|
return _this.props.onPlaybackRateChange(event);
|
|
5377
|
-
}
|
|
5365
|
+
};
|
|
5378
5366
|
|
|
5379
|
-
|
|
5367
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
5380
5368
|
return _this.props.onPlaybackQualityChange(event);
|
|
5381
|
-
}
|
|
5369
|
+
};
|
|
5382
5370
|
|
|
5383
|
-
|
|
5371
|
+
_this.createPlayer = function () {
|
|
5384
5372
|
// do not attempt to create a player server-side, it won't work
|
|
5385
|
-
if (typeof document === 'undefined') return;
|
|
5386
|
-
|
|
5387
|
-
var playerOpts =
|
|
5373
|
+
if (typeof document === 'undefined') return;
|
|
5374
|
+
// create player
|
|
5375
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
5388
5376
|
// preload the `videoId` video if one is already given
|
|
5389
5377
|
videoId: _this.props.videoId
|
|
5390
5378
|
});
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
|
|
5379
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
5380
|
+
// attach event handlers
|
|
5394
5381
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
5395
|
-
|
|
5396
5382
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
5397
|
-
|
|
5398
5383
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
5399
|
-
|
|
5400
5384
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
5401
|
-
|
|
5402
5385
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
5403
|
-
}
|
|
5386
|
+
};
|
|
5404
5387
|
|
|
5405
|
-
|
|
5388
|
+
_this.resetPlayer = function () {
|
|
5406
5389
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
5407
|
-
}
|
|
5390
|
+
};
|
|
5408
5391
|
|
|
5409
|
-
|
|
5392
|
+
_this.updatePlayer = function () {
|
|
5410
5393
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
5411
5394
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
5412
5395
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
5413
5396
|
});
|
|
5414
|
-
}
|
|
5397
|
+
};
|
|
5415
5398
|
|
|
5416
|
-
|
|
5399
|
+
_this.updateVideo = function () {
|
|
5417
5400
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
5418
5401
|
_this.internalPlayer.stopVideo();
|
|
5419
|
-
|
|
5420
5402
|
return;
|
|
5421
|
-
}
|
|
5422
|
-
|
|
5403
|
+
}
|
|
5423
5404
|
|
|
5405
|
+
// set queueing options
|
|
5424
5406
|
var autoplay = false;
|
|
5425
5407
|
var opts = {
|
|
5426
5408
|
videoId: _this.props.videoId
|
|
5427
5409
|
};
|
|
5428
|
-
|
|
5429
5410
|
if ('playerVars' in _this.props.opts) {
|
|
5430
5411
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
5431
|
-
|
|
5432
5412
|
if ('start' in _this.props.opts.playerVars) {
|
|
5433
5413
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
5434
5414
|
}
|
|
5435
|
-
|
|
5436
5415
|
if ('end' in _this.props.opts.playerVars) {
|
|
5437
5416
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
5438
5417
|
}
|
|
5439
|
-
}
|
|
5440
|
-
|
|
5418
|
+
}
|
|
5441
5419
|
|
|
5420
|
+
// if autoplay is enabled loadVideoById
|
|
5442
5421
|
if (autoplay) {
|
|
5443
5422
|
_this.internalPlayer.loadVideoById(opts);
|
|
5444
|
-
|
|
5445
5423
|
return;
|
|
5446
|
-
}
|
|
5447
|
-
|
|
5448
|
-
|
|
5424
|
+
}
|
|
5425
|
+
// default behaviour just cues the video
|
|
5449
5426
|
_this.internalPlayer.cueVideoById(opts);
|
|
5450
|
-
}
|
|
5427
|
+
};
|
|
5451
5428
|
|
|
5452
|
-
|
|
5429
|
+
_this.refContainer = function (container) {
|
|
5453
5430
|
_this.container = container;
|
|
5454
|
-
}
|
|
5431
|
+
};
|
|
5455
5432
|
|
|
5456
5433
|
_this.container = null;
|
|
5457
5434
|
_this.internalPlayer = null;
|
|
5458
5435
|
return _this;
|
|
5459
5436
|
}
|
|
5460
5437
|
|
|
5438
|
+
/**
|
|
5439
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
5440
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
5441
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5442
|
+
*/
|
|
5443
|
+
|
|
5444
|
+
|
|
5461
5445
|
_createClass(YouTube, [{
|
|
5462
|
-
key:
|
|
5446
|
+
key: 'componentDidMount',
|
|
5463
5447
|
value: function componentDidMount() {
|
|
5464
5448
|
this.createPlayer();
|
|
5465
5449
|
}
|
|
5466
5450
|
}, {
|
|
5467
|
-
key:
|
|
5451
|
+
key: 'componentDidUpdate',
|
|
5468
5452
|
value: function componentDidUpdate(prevProps) {
|
|
5469
5453
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
5470
5454
|
this.updatePlayer();
|
|
@@ -5479,58 +5463,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
5479
5463
|
}
|
|
5480
5464
|
}
|
|
5481
5465
|
}, {
|
|
5482
|
-
key:
|
|
5466
|
+
key: 'componentWillUnmount',
|
|
5483
5467
|
value: function componentWillUnmount() {
|
|
5484
|
-
/**
|
|
5485
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
5486
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
5487
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
5488
|
-
* this method isn't quick enough to reset the container element.
|
|
5468
|
+
/**
|
|
5469
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
5470
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
5471
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
5472
|
+
* this method isn't quick enough to reset the container element.
|
|
5489
5473
|
*/
|
|
5490
5474
|
this.internalPlayer.destroy();
|
|
5491
5475
|
}
|
|
5492
|
-
|
|
5493
|
-
|
|
5494
|
-
*
|
|
5495
|
-
*
|
|
5496
|
-
*
|
|
5476
|
+
|
|
5477
|
+
/**
|
|
5478
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
5479
|
+
*
|
|
5480
|
+
* @param {Object} event
|
|
5481
|
+
* @param {Object} target - player object
|
|
5482
|
+
*/
|
|
5483
|
+
|
|
5484
|
+
|
|
5485
|
+
/**
|
|
5486
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
5487
|
+
*
|
|
5488
|
+
* @param {Object} event
|
|
5489
|
+
* @param {Integer} data - error type
|
|
5490
|
+
* @param {Object} target - player object
|
|
5491
|
+
*/
|
|
5492
|
+
|
|
5493
|
+
|
|
5494
|
+
/**
|
|
5495
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5496
|
+
*
|
|
5497
|
+
* @param {Object} event
|
|
5498
|
+
* @param {Integer} data - status change type
|
|
5499
|
+
* @param {Object} target - actual YT player
|
|
5500
|
+
*/
|
|
5501
|
+
|
|
5502
|
+
|
|
5503
|
+
/**
|
|
5504
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
5505
|
+
*
|
|
5506
|
+
* @param {Object} event
|
|
5507
|
+
* @param {Float} data - playback rate
|
|
5508
|
+
* @param {Object} target - actual YT player
|
|
5509
|
+
*/
|
|
5510
|
+
|
|
5511
|
+
|
|
5512
|
+
/**
|
|
5513
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
5514
|
+
*
|
|
5515
|
+
* @param {Object} event
|
|
5516
|
+
* @param {String} data - playback quality
|
|
5517
|
+
* @param {Object} target - actual YT player
|
|
5518
|
+
*/
|
|
5519
|
+
|
|
5520
|
+
|
|
5521
|
+
/**
|
|
5522
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
5523
|
+
*/
|
|
5524
|
+
|
|
5525
|
+
|
|
5526
|
+
/**
|
|
5527
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
5528
|
+
*/
|
|
5529
|
+
|
|
5530
|
+
|
|
5531
|
+
/**
|
|
5532
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
5533
|
+
* React should update this automatically but since the Youtube Player API
|
|
5534
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
5535
|
+
*/
|
|
5536
|
+
|
|
5537
|
+
|
|
5538
|
+
/**
|
|
5539
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
5540
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
5541
|
+
* Youtube Player API methods to update the video.
|
|
5497
5542
|
*/
|
|
5498
5543
|
|
|
5499
5544
|
}, {
|
|
5500
|
-
key:
|
|
5545
|
+
key: 'render',
|
|
5501
5546
|
value: function render() {
|
|
5502
|
-
return
|
|
5503
|
-
|
|
5504
|
-
|
|
5505
|
-
id: this.props.id,
|
|
5506
|
-
|
|
5507
|
-
ref: this.refContainer
|
|
5508
|
-
}));
|
|
5547
|
+
return React__default.createElement(
|
|
5548
|
+
'div',
|
|
5549
|
+
{ className: this.props.containerClassName },
|
|
5550
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
5551
|
+
);
|
|
5509
5552
|
}
|
|
5510
5553
|
}]);
|
|
5511
5554
|
|
|
5512
5555
|
return YouTube;
|
|
5513
5556
|
}(React__default.Component);
|
|
5514
5557
|
|
|
5515
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
5516
|
-
UNSTARTED: -1,
|
|
5517
|
-
ENDED: 0,
|
|
5518
|
-
PLAYING: 1,
|
|
5519
|
-
PAUSED: 2,
|
|
5520
|
-
BUFFERING: 3,
|
|
5521
|
-
CUED: 5
|
|
5522
|
-
});
|
|
5523
|
-
|
|
5524
5558
|
YouTube.propTypes = {
|
|
5525
5559
|
videoId: PropTypes.string,
|
|
5560
|
+
|
|
5526
5561
|
// custom ID for player element
|
|
5527
5562
|
id: PropTypes.string,
|
|
5563
|
+
|
|
5528
5564
|
// custom class name for player element
|
|
5529
5565
|
className: PropTypes.string,
|
|
5530
5566
|
// custom class name for player container element
|
|
5531
5567
|
containerClassName: PropTypes.string,
|
|
5568
|
+
|
|
5532
5569
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
5533
5570
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
5571
|
+
|
|
5534
5572
|
// event subscriptions
|
|
5535
5573
|
onReady: PropTypes.func,
|
|
5536
5574
|
onError: PropTypes.func,
|
|
@@ -5542,7 +5580,6 @@ YouTube.propTypes = {
|
|
|
5542
5580
|
onPlaybackQualityChange: PropTypes.func
|
|
5543
5581
|
};
|
|
5544
5582
|
YouTube.defaultProps = {
|
|
5545
|
-
videoId: null,
|
|
5546
5583
|
id: null,
|
|
5547
5584
|
className: null,
|
|
5548
5585
|
opts: {},
|
|
@@ -5556,6 +5593,14 @@ YouTube.defaultProps = {
|
|
|
5556
5593
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
5557
5594
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
5558
5595
|
};
|
|
5596
|
+
YouTube.PlayerState = {
|
|
5597
|
+
UNSTARTED: -1,
|
|
5598
|
+
ENDED: 0,
|
|
5599
|
+
PLAYING: 1,
|
|
5600
|
+
PAUSED: 2,
|
|
5601
|
+
BUFFERING: 3,
|
|
5602
|
+
CUED: 5
|
|
5603
|
+
};
|
|
5559
5604
|
|
|
5560
5605
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
5561
5606
|
var url = _ref.url;
|
|
@@ -6470,8 +6515,8 @@ var window_1 = win;
|
|
|
6470
6515
|
|
|
6471
6516
|
/*! @name @brightcove/react-player-loader @version 1.4.0 @license Apache-2.0 */
|
|
6472
6517
|
|
|
6473
|
-
function _extends() {
|
|
6474
|
-
_extends = Object.assign || function (target) {
|
|
6518
|
+
function _extends$1() {
|
|
6519
|
+
_extends$1 = Object.assign || function (target) {
|
|
6475
6520
|
for (var i = 1; i < arguments.length; i++) {
|
|
6476
6521
|
var source = arguments[i];
|
|
6477
6522
|
|
|
@@ -6485,7 +6530,7 @@ function _extends() {
|
|
|
6485
6530
|
return target;
|
|
6486
6531
|
};
|
|
6487
6532
|
|
|
6488
|
-
return _extends.apply(this, arguments);
|
|
6533
|
+
return _extends$1.apply(this, arguments);
|
|
6489
6534
|
}
|
|
6490
6535
|
|
|
6491
6536
|
function _inheritsLoose(subClass, superClass) {
|
|
@@ -6494,7 +6539,7 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
6494
6539
|
subClass.__proto__ = superClass;
|
|
6495
6540
|
}
|
|
6496
6541
|
|
|
6497
|
-
function _assertThisInitialized
|
|
6542
|
+
function _assertThisInitialized(self) {
|
|
6498
6543
|
if (self === void 0) {
|
|
6499
6544
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
6500
6545
|
}
|
|
@@ -6504,8 +6549,8 @@ function _assertThisInitialized$1(self) {
|
|
|
6504
6549
|
|
|
6505
6550
|
/*! @name @brightcove/player-loader @version 1.7.1 @license Apache-2.0 */
|
|
6506
6551
|
|
|
6507
|
-
function _extends$1() {
|
|
6508
|
-
_extends$1 = Object.assign || function (target) {
|
|
6552
|
+
function _extends$1$1() {
|
|
6553
|
+
_extends$1$1 = Object.assign || function (target) {
|
|
6509
6554
|
for (var i = 1; i < arguments.length; i++) {
|
|
6510
6555
|
var source = arguments[i];
|
|
6511
6556
|
|
|
@@ -6519,7 +6564,7 @@ function _extends$1() {
|
|
|
6519
6564
|
return target;
|
|
6520
6565
|
};
|
|
6521
6566
|
|
|
6522
|
-
return _extends$1.apply(this, arguments);
|
|
6567
|
+
return _extends$1$1.apply(this, arguments);
|
|
6523
6568
|
}
|
|
6524
6569
|
|
|
6525
6570
|
var version$1 = "1.7.1";
|
|
@@ -6527,7 +6572,7 @@ var version$1 = "1.7.1";
|
|
|
6527
6572
|
/*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */
|
|
6528
6573
|
var version$1$1 = "1.2.0";
|
|
6529
6574
|
|
|
6530
|
-
var _typeof
|
|
6575
|
+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
|
6531
6576
|
return typeof obj;
|
|
6532
6577
|
} : function (obj) {
|
|
6533
6578
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
@@ -6662,7 +6707,7 @@ var brightcovePlayerUrl = function brightcovePlayerUrl(_ref) {
|
|
|
6662
6707
|
|
|
6663
6708
|
var qs = '';
|
|
6664
6709
|
|
|
6665
|
-
if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof
|
|
6710
|
+
if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof(queryParams)) === 'object') {
|
|
6666
6711
|
qs = getQueryString(queryParams);
|
|
6667
6712
|
}
|
|
6668
6713
|
|
|
@@ -6896,7 +6941,7 @@ var wrapResponsive = function wrapResponsive(embedType, embedOptions, el) {
|
|
|
6896
6941
|
el.style.width = '100%';
|
|
6897
6942
|
el.style.height = '100%';
|
|
6898
6943
|
|
|
6899
|
-
var responsive = _extends$1({
|
|
6944
|
+
var responsive = _extends$1$1({
|
|
6900
6945
|
aspectRatio: DEFAULT_ASPECT_RATIO,
|
|
6901
6946
|
iframeHorizontalPlaylist: DEFAULT_IFRAME_HORIZONTAL_PLAYLIST,
|
|
6902
6947
|
maxWidth: DEFAULT_MAX_WIDTH
|
|
@@ -7581,7 +7626,7 @@ var loadPlayer = function loadPlayer(params, resolve, reject) {
|
|
|
7581
7626
|
|
|
7582
7627
|
|
|
7583
7628
|
var brightcovePlayerLoader = function brightcovePlayerLoader(parameters) {
|
|
7584
|
-
var params = _extends$1({}, DEFAULTS, parameters);
|
|
7629
|
+
var params = _extends$1$1({}, DEFAULTS, parameters);
|
|
7585
7630
|
|
|
7586
7631
|
var Promise = params.Promise,
|
|
7587
7632
|
onSuccess = params.onSuccess,
|
|
@@ -7723,7 +7768,7 @@ function (_React$Component) {
|
|
|
7723
7768
|
_this.refNode = ref;
|
|
7724
7769
|
};
|
|
7725
7770
|
|
|
7726
|
-
_this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized
|
|
7771
|
+
_this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized(_this));
|
|
7727
7772
|
return _this;
|
|
7728
7773
|
}
|
|
7729
7774
|
/**
|
|
@@ -7744,7 +7789,7 @@ function (_React$Component) {
|
|
|
7744
7789
|
var userSuccess = this.props.onSuccess;
|
|
7745
7790
|
var userFailure = this.props.onFailure;
|
|
7746
7791
|
|
|
7747
|
-
var options = _extends({}, this.props, {
|
|
7792
|
+
var options = _extends$1({}, this.props, {
|
|
7748
7793
|
refNode: this.refNode,
|
|
7749
7794
|
refNodeInsert: 'append',
|
|
7750
7795
|
onSuccess: function onSuccess(_ref) {
|
|
@@ -8053,7 +8098,7 @@ function (_React$Component) {
|
|
|
8053
8098
|
;
|
|
8054
8099
|
|
|
8055
8100
|
_proto.render = function render() {
|
|
8056
|
-
var props = _extends({
|
|
8101
|
+
var props = _extends$1({
|
|
8057
8102
|
className: 'brightcove-react-player-loader'
|
|
8058
8103
|
}, this.props.attrs, {
|
|
8059
8104
|
ref: this.setRefNode
|
|
@@ -8572,17 +8617,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
8572
8617
|
|
|
8573
8618
|
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; }
|
|
8574
8619
|
|
|
8575
|
-
function
|
|
8620
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
8576
8621
|
|
|
8577
|
-
function
|
|
8622
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
8578
8623
|
|
|
8579
|
-
function
|
|
8580
|
-
|
|
8581
|
-
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); }
|
|
8582
|
-
|
|
8583
|
-
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; }
|
|
8584
|
-
|
|
8585
|
-
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; }
|
|
8624
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
8586
8625
|
|
|
8587
8626
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8588
8627
|
|
|
@@ -8712,12 +8751,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
8712
8751
|
|
|
8713
8752
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
8714
8753
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
8715
|
-
|
|
8716
|
-
var
|
|
8717
|
-
|
|
8754
|
+
var _iteratorNormalCompletion = true;
|
|
8755
|
+
var _didIteratorError = false;
|
|
8756
|
+
var _iteratorError = undefined;
|
|
8718
8757
|
|
|
8719
8758
|
try {
|
|
8720
|
-
for (_iterator.
|
|
8759
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
8721
8760
|
var p = _step.value;
|
|
8722
8761
|
|
|
8723
8762
|
if (props$1[p]) {
|
|
@@ -8732,9 +8771,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
8732
8771
|
}
|
|
8733
8772
|
}
|
|
8734
8773
|
} catch (err) {
|
|
8735
|
-
|
|
8774
|
+
_didIteratorError = true;
|
|
8775
|
+
_iteratorError = err;
|
|
8736
8776
|
} finally {
|
|
8737
|
-
|
|
8777
|
+
try {
|
|
8778
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
8779
|
+
_iterator["return"]();
|
|
8780
|
+
}
|
|
8781
|
+
} finally {
|
|
8782
|
+
if (_didIteratorError) {
|
|
8783
|
+
throw _iteratorError;
|
|
8784
|
+
}
|
|
8785
|
+
}
|
|
8738
8786
|
}
|
|
8739
8787
|
|
|
8740
8788
|
return config;
|
|
@@ -8881,16 +8929,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
8881
8929
|
|
|
8882
8930
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
8883
8931
|
|
|
8884
|
-
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); }; }
|
|
8885
|
-
|
|
8886
8932
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
8887
8933
|
|
|
8888
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
8889
|
-
|
|
8890
|
-
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; } }
|
|
8891
|
-
|
|
8892
8934
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8893
8935
|
|
|
8936
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
8937
|
+
|
|
8894
8938
|
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); }
|
|
8895
8939
|
|
|
8896
8940
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -8899,12 +8943,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
8899
8943
|
|
|
8900
8944
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
8901
8945
|
|
|
8902
|
-
var Player =
|
|
8946
|
+
var Player =
|
|
8947
|
+
/*#__PURE__*/
|
|
8948
|
+
function (_Component) {
|
|
8903
8949
|
_inherits(Player, _Component);
|
|
8904
8950
|
|
|
8905
|
-
var _super = _createSuper(Player);
|
|
8906
|
-
|
|
8907
8951
|
function Player() {
|
|
8952
|
+
var _getPrototypeOf2;
|
|
8953
|
+
|
|
8908
8954
|
var _this;
|
|
8909
8955
|
|
|
8910
8956
|
_classCallCheck(this, Player);
|
|
@@ -8913,7 +8959,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
8913
8959
|
_args[_key] = arguments[_key];
|
|
8914
8960
|
}
|
|
8915
8961
|
|
|
8916
|
-
_this =
|
|
8962
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
8917
8963
|
|
|
8918
8964
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
8919
8965
|
|
|
@@ -9238,7 +9284,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
9238
9284
|
return null;
|
|
9239
9285
|
}
|
|
9240
9286
|
|
|
9241
|
-
return
|
|
9287
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
9242
9288
|
ref: this.ref,
|
|
9243
9289
|
onReady: this.handleReady,
|
|
9244
9290
|
onPlay: this.handlePlay,
|
|
@@ -9299,16 +9345,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9299
9345
|
|
|
9300
9346
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9301
9347
|
|
|
9302
|
-
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); }; }
|
|
9303
|
-
|
|
9304
9348
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9305
9349
|
|
|
9306
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9307
|
-
|
|
9308
|
-
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; } }
|
|
9309
|
-
|
|
9310
9350
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9311
9351
|
|
|
9352
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9353
|
+
|
|
9312
9354
|
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); }
|
|
9313
9355
|
|
|
9314
9356
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -9320,12 +9362,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
9320
9362
|
function createSinglePlayer(activePlayer) {
|
|
9321
9363
|
var _class, _temp;
|
|
9322
9364
|
|
|
9323
|
-
return _temp = _class =
|
|
9365
|
+
return _temp = _class =
|
|
9366
|
+
/*#__PURE__*/
|
|
9367
|
+
function (_Component) {
|
|
9324
9368
|
_inherits(SinglePlayer, _Component);
|
|
9325
9369
|
|
|
9326
|
-
var _super = _createSuper(SinglePlayer);
|
|
9327
|
-
|
|
9328
9370
|
function SinglePlayer() {
|
|
9371
|
+
var _getPrototypeOf2;
|
|
9372
|
+
|
|
9329
9373
|
var _this;
|
|
9330
9374
|
|
|
9331
9375
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -9334,7 +9378,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
9334
9378
|
args[_key] = arguments[_key];
|
|
9335
9379
|
}
|
|
9336
9380
|
|
|
9337
|
-
_this =
|
|
9381
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
9338
9382
|
|
|
9339
9383
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
9340
9384
|
|
|
@@ -9402,12 +9446,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
9402
9446
|
height = _this$props.height,
|
|
9403
9447
|
Wrapper = _this$props.wrapper;
|
|
9404
9448
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
9405
|
-
return
|
|
9449
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
9406
9450
|
style: _objectSpread({}, style, {
|
|
9407
9451
|
width: width,
|
|
9408
9452
|
height: height
|
|
9409
9453
|
})
|
|
9410
|
-
}, otherProps),
|
|
9454
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
9411
9455
|
ref: this.ref,
|
|
9412
9456
|
activePlayer: activePlayer,
|
|
9413
9457
|
config: this.config
|
|
@@ -9453,31 +9497,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9453
9497
|
|
|
9454
9498
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9455
9499
|
|
|
9456
|
-
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); }; }
|
|
9457
|
-
|
|
9458
9500
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9459
9501
|
|
|
9460
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9461
|
-
|
|
9462
|
-
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; } }
|
|
9463
|
-
|
|
9464
9502
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9465
9503
|
|
|
9504
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9505
|
+
|
|
9466
9506
|
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); }
|
|
9467
9507
|
|
|
9468
9508
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
9469
9509
|
|
|
9470
9510
|
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; }
|
|
9471
9511
|
|
|
9472
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
9473
|
-
|
|
9474
|
-
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."); }
|
|
9512
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
9475
9513
|
|
|
9476
|
-
function
|
|
9514
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
9477
9515
|
|
|
9478
|
-
function
|
|
9479
|
-
|
|
9480
|
-
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; }
|
|
9516
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
9481
9517
|
|
|
9482
9518
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
9483
9519
|
|
|
@@ -9502,12 +9538,14 @@ function parsePlaylist(url) {
|
|
|
9502
9538
|
return {};
|
|
9503
9539
|
}
|
|
9504
9540
|
|
|
9505
|
-
var YouTube =
|
|
9541
|
+
var YouTube =
|
|
9542
|
+
/*#__PURE__*/
|
|
9543
|
+
function (_Component) {
|
|
9506
9544
|
_inherits(YouTube, _Component);
|
|
9507
9545
|
|
|
9508
|
-
var _super = _createSuper(YouTube);
|
|
9509
|
-
|
|
9510
9546
|
function YouTube() {
|
|
9547
|
+
var _getPrototypeOf2;
|
|
9548
|
+
|
|
9511
9549
|
var _this;
|
|
9512
9550
|
|
|
9513
9551
|
_classCallCheck(this, YouTube);
|
|
@@ -9516,7 +9554,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
9516
9554
|
args[_key] = arguments[_key];
|
|
9517
9555
|
}
|
|
9518
9556
|
|
|
9519
|
-
_this =
|
|
9557
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
9520
9558
|
|
|
9521
9559
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
9522
9560
|
|
|
@@ -9704,9 +9742,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
9704
9742
|
height: '100%',
|
|
9705
9743
|
display: display
|
|
9706
9744
|
};
|
|
9707
|
-
return
|
|
9745
|
+
return _react["default"].createElement("div", {
|
|
9708
9746
|
style: style
|
|
9709
|
-
},
|
|
9747
|
+
}, _react["default"].createElement("div", {
|
|
9710
9748
|
ref: this.ref
|
|
9711
9749
|
}));
|
|
9712
9750
|
}
|
|
@@ -9762,16 +9800,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9762
9800
|
|
|
9763
9801
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9764
9802
|
|
|
9765
|
-
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); }; }
|
|
9766
|
-
|
|
9767
9803
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9768
9804
|
|
|
9769
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9770
|
-
|
|
9771
|
-
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; } }
|
|
9772
|
-
|
|
9773
9805
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9774
9806
|
|
|
9807
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9808
|
+
|
|
9775
9809
|
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); }
|
|
9776
9810
|
|
|
9777
9811
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -9780,14 +9814,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
9780
9814
|
|
|
9781
9815
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
9782
9816
|
var SDK_GLOBAL = 'SC';
|
|
9783
|
-
var MATCH_URL = /(
|
|
9817
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
9784
9818
|
|
|
9785
|
-
var SoundCloud =
|
|
9819
|
+
var SoundCloud =
|
|
9820
|
+
/*#__PURE__*/
|
|
9821
|
+
function (_Component) {
|
|
9786
9822
|
_inherits(SoundCloud, _Component);
|
|
9787
9823
|
|
|
9788
|
-
var _super = _createSuper(SoundCloud);
|
|
9789
|
-
|
|
9790
9824
|
function SoundCloud() {
|
|
9825
|
+
var _getPrototypeOf2;
|
|
9826
|
+
|
|
9791
9827
|
var _this;
|
|
9792
9828
|
|
|
9793
9829
|
_classCallCheck(this, SoundCloud);
|
|
@@ -9796,7 +9832,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
9796
9832
|
args[_key] = arguments[_key];
|
|
9797
9833
|
}
|
|
9798
9834
|
|
|
9799
|
-
_this =
|
|
9835
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
9800
9836
|
|
|
9801
9837
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
9802
9838
|
|
|
@@ -9917,7 +9953,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
9917
9953
|
height: '100%',
|
|
9918
9954
|
display: display
|
|
9919
9955
|
};
|
|
9920
|
-
return
|
|
9956
|
+
return _react["default"].createElement("iframe", {
|
|
9921
9957
|
ref: this.ref,
|
|
9922
9958
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
9923
9959
|
style: style,
|
|
@@ -9979,16 +10015,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9979
10015
|
|
|
9980
10016
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9981
10017
|
|
|
9982
|
-
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); }; }
|
|
9983
|
-
|
|
9984
10018
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9985
10019
|
|
|
9986
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9987
|
-
|
|
9988
|
-
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; } }
|
|
9989
|
-
|
|
9990
10020
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9991
10021
|
|
|
10022
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10023
|
+
|
|
9992
10024
|
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); }
|
|
9993
10025
|
|
|
9994
10026
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10000,12 +10032,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
10000
10032
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
10001
10033
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
10002
10034
|
|
|
10003
|
-
var Vimeo =
|
|
10035
|
+
var Vimeo =
|
|
10036
|
+
/*#__PURE__*/
|
|
10037
|
+
function (_Component) {
|
|
10004
10038
|
_inherits(Vimeo, _Component);
|
|
10005
10039
|
|
|
10006
|
-
var _super = _createSuper(Vimeo);
|
|
10007
|
-
|
|
10008
10040
|
function Vimeo() {
|
|
10041
|
+
var _getPrototypeOf2;
|
|
10042
|
+
|
|
10009
10043
|
var _this;
|
|
10010
10044
|
|
|
10011
10045
|
_classCallCheck(this, Vimeo);
|
|
@@ -10014,7 +10048,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
10014
10048
|
args[_key] = arguments[_key];
|
|
10015
10049
|
}
|
|
10016
10050
|
|
|
10017
|
-
_this =
|
|
10051
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10018
10052
|
|
|
10019
10053
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10020
10054
|
|
|
@@ -10171,7 +10205,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
10171
10205
|
overflow: 'hidden',
|
|
10172
10206
|
display: display
|
|
10173
10207
|
};
|
|
10174
|
-
return
|
|
10208
|
+
return _react["default"].createElement("div", {
|
|
10175
10209
|
key: this.props.url,
|
|
10176
10210
|
ref: this.ref,
|
|
10177
10211
|
style: style
|
|
@@ -10231,16 +10265,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10231
10265
|
|
|
10232
10266
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10233
10267
|
|
|
10234
|
-
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); }; }
|
|
10235
|
-
|
|
10236
10268
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10237
10269
|
|
|
10238
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10239
|
-
|
|
10240
|
-
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; } }
|
|
10241
|
-
|
|
10242
10270
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10243
10271
|
|
|
10272
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10273
|
+
|
|
10244
10274
|
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); }
|
|
10245
10275
|
|
|
10246
10276
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10253,12 +10283,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
10253
10283
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
10254
10284
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
10255
10285
|
|
|
10256
|
-
var Facebook =
|
|
10286
|
+
var Facebook =
|
|
10287
|
+
/*#__PURE__*/
|
|
10288
|
+
function (_Component) {
|
|
10257
10289
|
_inherits(Facebook, _Component);
|
|
10258
10290
|
|
|
10259
|
-
var _super = _createSuper(Facebook);
|
|
10260
|
-
|
|
10261
10291
|
function Facebook() {
|
|
10292
|
+
var _getPrototypeOf2;
|
|
10293
|
+
|
|
10262
10294
|
var _this;
|
|
10263
10295
|
|
|
10264
10296
|
_classCallCheck(this, Facebook);
|
|
@@ -10267,7 +10299,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
10267
10299
|
args[_key] = arguments[_key];
|
|
10268
10300
|
}
|
|
10269
10301
|
|
|
10270
|
-
_this =
|
|
10302
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10271
10303
|
|
|
10272
10304
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10273
10305
|
|
|
@@ -10383,7 +10415,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
10383
10415
|
width: '100%',
|
|
10384
10416
|
height: '100%'
|
|
10385
10417
|
};
|
|
10386
|
-
return
|
|
10418
|
+
return _react["default"].createElement("div", {
|
|
10387
10419
|
style: style,
|
|
10388
10420
|
id: this.playerID,
|
|
10389
10421
|
className: "fb-video",
|
|
@@ -10443,16 +10475,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10443
10475
|
|
|
10444
10476
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10445
10477
|
|
|
10446
|
-
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); }; }
|
|
10447
|
-
|
|
10448
10478
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10449
10479
|
|
|
10450
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10451
|
-
|
|
10452
|
-
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; } }
|
|
10453
|
-
|
|
10454
10480
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10455
10481
|
|
|
10482
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10483
|
+
|
|
10456
10484
|
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); }
|
|
10457
10485
|
|
|
10458
10486
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10463,12 +10491,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
10463
10491
|
var SDK_GLOBAL = 'playerjs';
|
|
10464
10492
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
10465
10493
|
|
|
10466
|
-
var Streamable =
|
|
10494
|
+
var Streamable =
|
|
10495
|
+
/*#__PURE__*/
|
|
10496
|
+
function (_Component) {
|
|
10467
10497
|
_inherits(Streamable, _Component);
|
|
10468
10498
|
|
|
10469
|
-
var _super = _createSuper(Streamable);
|
|
10470
|
-
|
|
10471
10499
|
function Streamable() {
|
|
10500
|
+
var _getPrototypeOf2;
|
|
10501
|
+
|
|
10472
10502
|
var _this;
|
|
10473
10503
|
|
|
10474
10504
|
_classCallCheck(this, Streamable);
|
|
@@ -10477,7 +10507,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
10477
10507
|
args[_key] = arguments[_key];
|
|
10478
10508
|
}
|
|
10479
10509
|
|
|
10480
|
-
_this =
|
|
10510
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10481
10511
|
|
|
10482
10512
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10483
10513
|
|
|
@@ -10597,7 +10627,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
10597
10627
|
width: '100%',
|
|
10598
10628
|
height: '100%'
|
|
10599
10629
|
};
|
|
10600
|
-
return
|
|
10630
|
+
return _react["default"].createElement("iframe", {
|
|
10601
10631
|
ref: this.ref,
|
|
10602
10632
|
src: "https://streamable.com/o/".concat(id),
|
|
10603
10633
|
frameBorder: "0",
|
|
@@ -10658,17 +10688,13 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10658
10688
|
|
|
10659
10689
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10660
10690
|
|
|
10661
|
-
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); }; }
|
|
10662
|
-
|
|
10663
10691
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10664
10692
|
|
|
10693
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10694
|
+
|
|
10665
10695
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10666
10696
|
|
|
10667
|
-
function
|
|
10668
|
-
|
|
10669
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10670
|
-
|
|
10671
|
-
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); }
|
|
10697
|
+
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); }
|
|
10672
10698
|
|
|
10673
10699
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
10674
10700
|
|
|
@@ -10678,48 +10704,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
10678
10704
|
var SDK_GLOBAL = 'Wistia';
|
|
10679
10705
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
10680
10706
|
|
|
10681
|
-
var Wistia =
|
|
10707
|
+
var Wistia =
|
|
10708
|
+
/*#__PURE__*/
|
|
10709
|
+
function (_Component) {
|
|
10682
10710
|
_inherits(Wistia, _Component);
|
|
10683
10711
|
|
|
10684
|
-
var _super = _createSuper(Wistia);
|
|
10685
|
-
|
|
10686
10712
|
function Wistia() {
|
|
10713
|
+
var _getPrototypeOf2;
|
|
10714
|
+
|
|
10687
10715
|
var _this;
|
|
10688
10716
|
|
|
10689
10717
|
_classCallCheck(this, Wistia);
|
|
10690
10718
|
|
|
10691
|
-
for (var _len = arguments.length,
|
|
10692
|
-
|
|
10719
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
10720
|
+
args[_key] = arguments[_key];
|
|
10693
10721
|
}
|
|
10694
10722
|
|
|
10695
|
-
_this =
|
|
10723
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10696
10724
|
|
|
10697
10725
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10698
10726
|
|
|
10699
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
10700
|
-
var _this$props;
|
|
10701
|
-
|
|
10702
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
10703
|
-
});
|
|
10704
|
-
|
|
10705
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
10706
|
-
var _this$props2;
|
|
10707
|
-
|
|
10708
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
10709
|
-
});
|
|
10710
|
-
|
|
10711
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
10712
|
-
var _this$props3;
|
|
10713
|
-
|
|
10714
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
10715
|
-
});
|
|
10716
|
-
|
|
10717
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
10718
|
-
var _this$props4;
|
|
10719
|
-
|
|
10720
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
10721
|
-
});
|
|
10722
|
-
|
|
10723
10727
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
10724
10728
|
_this.callPlayer('mute');
|
|
10725
10729
|
});
|
|
@@ -10741,13 +10745,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
10741
10745
|
value: function load(url) {
|
|
10742
10746
|
var _this2 = this;
|
|
10743
10747
|
|
|
10744
|
-
var _this$
|
|
10745
|
-
playing = _this$
|
|
10746
|
-
muted = _this$
|
|
10747
|
-
controls = _this$
|
|
10748
|
-
_onReady = _this$
|
|
10749
|
-
|
|
10750
|
-
|
|
10748
|
+
var _this$props = this.props,
|
|
10749
|
+
playing = _this$props.playing,
|
|
10750
|
+
muted = _this$props.muted,
|
|
10751
|
+
controls = _this$props.controls,
|
|
10752
|
+
_onReady = _this$props.onReady,
|
|
10753
|
+
onPlay = _this$props.onPlay,
|
|
10754
|
+
onPause = _this$props.onPause,
|
|
10755
|
+
onSeek = _this$props.onSeek,
|
|
10756
|
+
onEnded = _this$props.onEnded,
|
|
10757
|
+
config = _this$props.config,
|
|
10758
|
+
onError = _this$props.onError;
|
|
10751
10759
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
10752
10760
|
window._wq = window._wq || [];
|
|
10753
10761
|
|
|
@@ -10764,28 +10772,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
10764
10772
|
|
|
10765
10773
|
_this2.unbind();
|
|
10766
10774
|
|
|
10767
|
-
_this2.player.bind('play',
|
|
10775
|
+
_this2.player.bind('play', onPlay);
|
|
10768
10776
|
|
|
10769
|
-
_this2.player.bind('pause',
|
|
10777
|
+
_this2.player.bind('pause', onPause);
|
|
10770
10778
|
|
|
10771
|
-
_this2.player.bind('seek',
|
|
10779
|
+
_this2.player.bind('seek', onSeek);
|
|
10772
10780
|
|
|
10773
|
-
_this2.player.bind('end',
|
|
10781
|
+
_this2.player.bind('end', onEnded);
|
|
10774
10782
|
|
|
10775
10783
|
_onReady();
|
|
10776
10784
|
}
|
|
10777
10785
|
});
|
|
10778
10786
|
}, onError);
|
|
10779
10787
|
}
|
|
10780
|
-
}, {
|
|
10781
|
-
key: "unbind",
|
|
10782
|
-
value: function unbind() {
|
|
10783
|
-
this.player.unbind('play', this.onPlay);
|
|
10784
|
-
this.player.unbind('pause', this.onPause);
|
|
10785
|
-
this.player.unbind('seek', this.onSeek);
|
|
10786
|
-
this.player.unbind('end', this.onEnded);
|
|
10787
|
-
} // Proxy methods to prevent listener leaks
|
|
10788
|
-
|
|
10789
10788
|
}, {
|
|
10790
10789
|
key: "play",
|
|
10791
10790
|
value: function play() {
|
|
@@ -10796,6 +10795,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
10796
10795
|
value: function pause() {
|
|
10797
10796
|
this.callPlayer('pause');
|
|
10798
10797
|
}
|
|
10798
|
+
}, {
|
|
10799
|
+
key: "unbind",
|
|
10800
|
+
value: function unbind() {
|
|
10801
|
+
var _this$props2 = this.props,
|
|
10802
|
+
onPlay = _this$props2.onPlay,
|
|
10803
|
+
onPause = _this$props2.onPause,
|
|
10804
|
+
onSeek = _this$props2.onSeek,
|
|
10805
|
+
onEnded = _this$props2.onEnded;
|
|
10806
|
+
this.player.unbind('play', onPlay);
|
|
10807
|
+
this.player.unbind('pause', onPause);
|
|
10808
|
+
this.player.unbind('seek', onSeek);
|
|
10809
|
+
this.player.unbind('end', onEnded);
|
|
10810
|
+
}
|
|
10799
10811
|
}, {
|
|
10800
10812
|
key: "stop",
|
|
10801
10813
|
value: function stop() {
|
|
@@ -10841,7 +10853,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
10841
10853
|
width: '100%',
|
|
10842
10854
|
height: '100%'
|
|
10843
10855
|
};
|
|
10844
|
-
return
|
|
10856
|
+
return _react["default"].createElement("div", {
|
|
10845
10857
|
key: id,
|
|
10846
10858
|
className: className,
|
|
10847
10859
|
style: style
|
|
@@ -10901,16 +10913,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10901
10913
|
|
|
10902
10914
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10903
10915
|
|
|
10904
|
-
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); }; }
|
|
10905
|
-
|
|
10906
10916
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10907
10917
|
|
|
10908
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10909
|
-
|
|
10910
|
-
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; } }
|
|
10911
|
-
|
|
10912
10918
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10913
10919
|
|
|
10920
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10921
|
+
|
|
10914
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); }
|
|
10915
10923
|
|
|
10916
10924
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10923,12 +10931,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
10923
10931
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
10924
10932
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
10925
10933
|
|
|
10926
|
-
var Twitch =
|
|
10934
|
+
var Twitch =
|
|
10935
|
+
/*#__PURE__*/
|
|
10936
|
+
function (_Component) {
|
|
10927
10937
|
_inherits(Twitch, _Component);
|
|
10928
10938
|
|
|
10929
|
-
var _super = _createSuper(Twitch);
|
|
10930
|
-
|
|
10931
10939
|
function Twitch() {
|
|
10940
|
+
var _getPrototypeOf2;
|
|
10941
|
+
|
|
10932
10942
|
var _this;
|
|
10933
10943
|
|
|
10934
10944
|
_classCallCheck(this, Twitch);
|
|
@@ -10937,7 +10947,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
10937
10947
|
args[_key] = arguments[_key];
|
|
10938
10948
|
}
|
|
10939
10949
|
|
|
10940
|
-
_this =
|
|
10950
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10941
10951
|
|
|
10942
10952
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10943
10953
|
|
|
@@ -11058,7 +11068,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
11058
11068
|
width: '100%',
|
|
11059
11069
|
height: '100%'
|
|
11060
11070
|
};
|
|
11061
|
-
return
|
|
11071
|
+
return _react["default"].createElement("div", {
|
|
11062
11072
|
style: style,
|
|
11063
11073
|
id: this.playerID
|
|
11064
11074
|
});
|
|
@@ -11111,15 +11121,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
11111
11121
|
|
|
11112
11122
|
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; }
|
|
11113
11123
|
|
|
11114
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
11115
|
-
|
|
11116
|
-
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."); }
|
|
11124
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
11117
11125
|
|
|
11118
|
-
function
|
|
11126
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
11119
11127
|
|
|
11120
|
-
function
|
|
11121
|
-
|
|
11122
|
-
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; }
|
|
11128
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
11123
11129
|
|
|
11124
11130
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11125
11131
|
|
|
@@ -11129,16 +11135,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11129
11135
|
|
|
11130
11136
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11131
11137
|
|
|
11132
|
-
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); }; }
|
|
11133
|
-
|
|
11134
11138
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11135
11139
|
|
|
11136
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11137
|
-
|
|
11138
|
-
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; } }
|
|
11139
|
-
|
|
11140
11140
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11141
11141
|
|
|
11142
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11143
|
+
|
|
11142
11144
|
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); }
|
|
11143
11145
|
|
|
11144
11146
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -11150,12 +11152,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
11150
11152
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
11151
11153
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
11152
11154
|
|
|
11153
|
-
var DailyMotion =
|
|
11155
|
+
var DailyMotion =
|
|
11156
|
+
/*#__PURE__*/
|
|
11157
|
+
function (_Component) {
|
|
11154
11158
|
_inherits(DailyMotion, _Component);
|
|
11155
11159
|
|
|
11156
|
-
var _super = _createSuper(DailyMotion);
|
|
11157
|
-
|
|
11158
11160
|
function DailyMotion() {
|
|
11161
|
+
var _getPrototypeOf2;
|
|
11162
|
+
|
|
11159
11163
|
var _this;
|
|
11160
11164
|
|
|
11161
11165
|
_classCallCheck(this, DailyMotion);
|
|
@@ -11164,7 +11168,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
11164
11168
|
args[_key] = arguments[_key];
|
|
11165
11169
|
}
|
|
11166
11170
|
|
|
11167
|
-
_this =
|
|
11171
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
11168
11172
|
|
|
11169
11173
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
11170
11174
|
|
|
@@ -11293,9 +11297,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
11293
11297
|
height: '100%',
|
|
11294
11298
|
display: display
|
|
11295
11299
|
};
|
|
11296
|
-
return
|
|
11300
|
+
return _react["default"].createElement("div", {
|
|
11297
11301
|
style: style
|
|
11298
|
-
},
|
|
11302
|
+
}, _react["default"].createElement("div", {
|
|
11299
11303
|
ref: this.ref
|
|
11300
11304
|
}));
|
|
11301
11305
|
}
|
|
@@ -11353,16 +11357,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11353
11357
|
|
|
11354
11358
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11355
11359
|
|
|
11356
|
-
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); }; }
|
|
11357
|
-
|
|
11358
11360
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11359
11361
|
|
|
11360
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11361
|
-
|
|
11362
|
-
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; } }
|
|
11363
|
-
|
|
11364
11362
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11365
11363
|
|
|
11364
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11365
|
+
|
|
11366
11366
|
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); }
|
|
11367
11367
|
|
|
11368
11368
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -11373,12 +11373,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
11373
11373
|
var SDK_GLOBAL = 'Mixcloud';
|
|
11374
11374
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
11375
11375
|
|
|
11376
|
-
var Mixcloud =
|
|
11376
|
+
var Mixcloud =
|
|
11377
|
+
/*#__PURE__*/
|
|
11378
|
+
function (_Component) {
|
|
11377
11379
|
_inherits(Mixcloud, _Component);
|
|
11378
11380
|
|
|
11379
|
-
var _super = _createSuper(Mixcloud);
|
|
11380
|
-
|
|
11381
11381
|
function Mixcloud() {
|
|
11382
|
+
var _getPrototypeOf2;
|
|
11383
|
+
|
|
11382
11384
|
var _this;
|
|
11383
11385
|
|
|
11384
11386
|
_classCallCheck(this, Mixcloud);
|
|
@@ -11387,7 +11389,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
11387
11389
|
args[_key] = arguments[_key];
|
|
11388
11390
|
}
|
|
11389
11391
|
|
|
11390
|
-
_this =
|
|
11392
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
11391
11393
|
|
|
11392
11394
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
11393
11395
|
|
|
@@ -11490,7 +11492,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
11490
11492
|
})); // We have to give the iframe a key here to prevent a
|
|
11491
11493
|
// weird dialog appearing when loading a new track
|
|
11492
11494
|
|
|
11493
|
-
return
|
|
11495
|
+
return _react["default"].createElement("iframe", {
|
|
11494
11496
|
key: id,
|
|
11495
11497
|
ref: this.ref,
|
|
11496
11498
|
style: style,
|
|
@@ -11550,33 +11552,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11550
11552
|
|
|
11551
11553
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11552
11554
|
|
|
11553
|
-
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); }; }
|
|
11554
|
-
|
|
11555
11555
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11556
11556
|
|
|
11557
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11558
|
-
|
|
11559
|
-
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; } }
|
|
11560
|
-
|
|
11561
11557
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11562
11558
|
|
|
11559
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11560
|
+
|
|
11563
11561
|
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); }
|
|
11564
11562
|
|
|
11565
11563
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
11566
11564
|
|
|
11567
11565
|
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; }
|
|
11568
11566
|
|
|
11569
|
-
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; } } }; }
|
|
11570
|
-
|
|
11571
|
-
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); }
|
|
11572
|
-
|
|
11573
|
-
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; }
|
|
11574
|
-
|
|
11575
11567
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
11576
11568
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
11577
11569
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
11578
11570
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
11579
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
11571
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
11580
11572
|
var HLS_GLOBAL = 'Hls';
|
|
11581
11573
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
11582
11574
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -11585,11 +11577,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
11585
11577
|
|
|
11586
11578
|
function canPlay(url) {
|
|
11587
11579
|
if (url instanceof Array) {
|
|
11588
|
-
var
|
|
11589
|
-
|
|
11580
|
+
var _iteratorNormalCompletion = true;
|
|
11581
|
+
var _didIteratorError = false;
|
|
11582
|
+
var _iteratorError = undefined;
|
|
11590
11583
|
|
|
11591
11584
|
try {
|
|
11592
|
-
for (_iterator.
|
|
11585
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
11593
11586
|
var item = _step.value;
|
|
11594
11587
|
|
|
11595
11588
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -11601,9 +11594,18 @@ function canPlay(url) {
|
|
|
11601
11594
|
}
|
|
11602
11595
|
}
|
|
11603
11596
|
} catch (err) {
|
|
11604
|
-
|
|
11597
|
+
_didIteratorError = true;
|
|
11598
|
+
_iteratorError = err;
|
|
11605
11599
|
} finally {
|
|
11606
|
-
|
|
11600
|
+
try {
|
|
11601
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
11602
|
+
_iterator["return"]();
|
|
11603
|
+
}
|
|
11604
|
+
} finally {
|
|
11605
|
+
if (_didIteratorError) {
|
|
11606
|
+
throw _iteratorError;
|
|
11607
|
+
}
|
|
11608
|
+
}
|
|
11607
11609
|
}
|
|
11608
11610
|
|
|
11609
11611
|
return false;
|
|
@@ -11627,12 +11629,14 @@ function canEnablePIP(url) {
|
|
|
11627
11629
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
11628
11630
|
}
|
|
11629
11631
|
|
|
11630
|
-
var FilePlayer =
|
|
11632
|
+
var FilePlayer =
|
|
11633
|
+
/*#__PURE__*/
|
|
11634
|
+
function (_Component) {
|
|
11631
11635
|
_inherits(FilePlayer, _Component);
|
|
11632
11636
|
|
|
11633
|
-
var _super = _createSuper(FilePlayer);
|
|
11634
|
-
|
|
11635
11637
|
function FilePlayer() {
|
|
11638
|
+
var _getPrototypeOf2;
|
|
11639
|
+
|
|
11636
11640
|
var _this;
|
|
11637
11641
|
|
|
11638
11642
|
_classCallCheck(this, FilePlayer);
|
|
@@ -11641,7 +11645,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
11641
11645
|
_args[_key] = arguments[_key];
|
|
11642
11646
|
}
|
|
11643
11647
|
|
|
11644
|
-
_this =
|
|
11648
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
11645
11649
|
|
|
11646
11650
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
11647
11651
|
var _this$props;
|
|
@@ -11728,19 +11732,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
11728
11732
|
|
|
11729
11733
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
11730
11734
|
if (typeof source === 'string') {
|
|
11731
|
-
return
|
|
11735
|
+
return _react["default"].createElement("source", {
|
|
11732
11736
|
key: index,
|
|
11733
11737
|
src: source
|
|
11734
11738
|
});
|
|
11735
11739
|
}
|
|
11736
11740
|
|
|
11737
|
-
return
|
|
11741
|
+
return _react["default"].createElement("source", _extends({
|
|
11738
11742
|
key: index
|
|
11739
11743
|
}, source));
|
|
11740
11744
|
});
|
|
11741
11745
|
|
|
11742
11746
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
11743
|
-
return
|
|
11747
|
+
return _react["default"].createElement("track", _extends({
|
|
11744
11748
|
key: index
|
|
11745
11749
|
}, track));
|
|
11746
11750
|
});
|
|
@@ -11778,10 +11782,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
11778
11782
|
key: "componentWillUnmount",
|
|
11779
11783
|
value: function componentWillUnmount() {
|
|
11780
11784
|
this.removeListeners(this.player);
|
|
11781
|
-
|
|
11782
|
-
if (this.hls) {
|
|
11783
|
-
this.hls.destroy();
|
|
11784
|
-
}
|
|
11785
11785
|
}
|
|
11786
11786
|
}, {
|
|
11787
11787
|
key: "addListeners",
|
|
@@ -11912,6 +11912,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
11912
11912
|
value: function stop() {
|
|
11913
11913
|
this.player.removeAttribute('src');
|
|
11914
11914
|
|
|
11915
|
+
if (this.hls) {
|
|
11916
|
+
this.hls.destroy();
|
|
11917
|
+
}
|
|
11918
|
+
|
|
11915
11919
|
if (this.dash) {
|
|
11916
11920
|
this.dash.reset();
|
|
11917
11921
|
}
|
|
@@ -12023,7 +12027,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
12023
12027
|
width: width === 'auto' ? width : '100%',
|
|
12024
12028
|
height: height === 'auto' ? height : '100%'
|
|
12025
12029
|
};
|
|
12026
|
-
return
|
|
12030
|
+
return _react["default"].createElement(Element, _extends({
|
|
12027
12031
|
ref: this.ref,
|
|
12028
12032
|
src: this.getSource(url),
|
|
12029
12033
|
style: style,
|
|
@@ -12113,16 +12117,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
12113
12117
|
|
|
12114
12118
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
12115
12119
|
|
|
12116
|
-
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); }; }
|
|
12117
|
-
|
|
12118
12120
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
12119
12121
|
|
|
12120
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12121
|
-
|
|
12122
|
-
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; } }
|
|
12123
|
-
|
|
12124
12122
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12125
12123
|
|
|
12124
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12125
|
+
|
|
12126
12126
|
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); }
|
|
12127
12127
|
|
|
12128
12128
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -12131,12 +12131,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
12131
12131
|
|
|
12132
12132
|
var ICON_SIZE = '64px';
|
|
12133
12133
|
|
|
12134
|
-
var Preview =
|
|
12134
|
+
var Preview =
|
|
12135
|
+
/*#__PURE__*/
|
|
12136
|
+
function (_Component) {
|
|
12135
12137
|
_inherits(Preview, _Component);
|
|
12136
12138
|
|
|
12137
|
-
var _super = _createSuper(Preview);
|
|
12138
|
-
|
|
12139
12139
|
function Preview() {
|
|
12140
|
+
var _getPrototypeOf2;
|
|
12141
|
+
|
|
12140
12142
|
var _this;
|
|
12141
12143
|
|
|
12142
12144
|
_classCallCheck(this, Preview);
|
|
@@ -12145,7 +12147,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
12145
12147
|
args[_key] = arguments[_key];
|
|
12146
12148
|
}
|
|
12147
12149
|
|
|
12148
|
-
_this =
|
|
12150
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
12149
12151
|
|
|
12150
12152
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
12151
12153
|
|
|
@@ -12243,15 +12245,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
12243
12245
|
}
|
|
12244
12246
|
};
|
|
12245
12247
|
|
|
12246
|
-
var defaultPlayIcon =
|
|
12248
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
12247
12249
|
style: styles.shadow,
|
|
12248
12250
|
className: "react-player__shadow"
|
|
12249
|
-
},
|
|
12251
|
+
}, _react["default"].createElement("div", {
|
|
12250
12252
|
style: styles.playIcon,
|
|
12251
12253
|
className: "react-player__play-icon"
|
|
12252
12254
|
}));
|
|
12253
12255
|
|
|
12254
|
-
return
|
|
12256
|
+
return _react["default"].createElement("div", {
|
|
12255
12257
|
style: styles.preview,
|
|
12256
12258
|
className: "react-player__preview",
|
|
12257
12259
|
onClick: onClick
|
|
@@ -12288,12 +12290,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
12288
12290
|
|
|
12289
12291
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12290
12292
|
|
|
12291
|
-
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; } } }; }
|
|
12292
|
-
|
|
12293
|
-
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); }
|
|
12294
|
-
|
|
12295
|
-
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; }
|
|
12296
|
-
|
|
12297
12293
|
var PRELOAD_PLAYERS = [{
|
|
12298
12294
|
Player: YouTube_1.YouTube,
|
|
12299
12295
|
configKey: 'youtube',
|
|
@@ -12314,16 +12310,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
12314
12310
|
|
|
12315
12311
|
function renderPreloadPlayers(url, controls, config) {
|
|
12316
12312
|
var players = [];
|
|
12317
|
-
|
|
12318
|
-
var
|
|
12319
|
-
|
|
12313
|
+
var _iteratorNormalCompletion = true;
|
|
12314
|
+
var _didIteratorError = false;
|
|
12315
|
+
var _iteratorError = undefined;
|
|
12320
12316
|
|
|
12321
12317
|
try {
|
|
12322
|
-
for (_iterator.
|
|
12318
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
12323
12319
|
var player = _step.value;
|
|
12324
12320
|
|
|
12325
12321
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
12326
|
-
players.push(
|
|
12322
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
12327
12323
|
key: player.Player.displayName,
|
|
12328
12324
|
activePlayer: player.Player,
|
|
12329
12325
|
url: player.url,
|
|
@@ -12335,9 +12331,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
12335
12331
|
}
|
|
12336
12332
|
}
|
|
12337
12333
|
} catch (err) {
|
|
12338
|
-
|
|
12334
|
+
_didIteratorError = true;
|
|
12335
|
+
_iteratorError = err;
|
|
12339
12336
|
} finally {
|
|
12340
|
-
|
|
12337
|
+
try {
|
|
12338
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
12339
|
+
_iterator["return"]();
|
|
12340
|
+
}
|
|
12341
|
+
} finally {
|
|
12342
|
+
if (_didIteratorError) {
|
|
12343
|
+
throw _iteratorError;
|
|
12344
|
+
}
|
|
12345
|
+
}
|
|
12341
12346
|
}
|
|
12342
12347
|
|
|
12343
12348
|
return players;
|
|
@@ -12461,17 +12466,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
12461
12466
|
|
|
12462
12467
|
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); }
|
|
12463
12468
|
|
|
12464
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
12469
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
12465
12470
|
|
|
12466
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
12471
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
12467
12472
|
|
|
12468
|
-
function
|
|
12473
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
12469
12474
|
|
|
12470
|
-
function
|
|
12471
|
-
|
|
12472
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
12473
|
-
|
|
12474
|
-
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; }
|
|
12475
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
|
|
12475
12476
|
|
|
12476
12477
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
12477
12478
|
|
|
@@ -12479,16 +12480,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
12479
12480
|
|
|
12480
12481
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
12481
12482
|
|
|
12482
|
-
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); }; }
|
|
12483
|
-
|
|
12484
12483
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
12485
12484
|
|
|
12486
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12487
|
-
|
|
12488
|
-
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; } }
|
|
12489
|
-
|
|
12490
12485
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12491
12486
|
|
|
12487
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12488
|
+
|
|
12492
12489
|
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); }
|
|
12493
12490
|
|
|
12494
12491
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -12498,12 +12495,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
12498
12495
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
12499
12496
|
var customPlayers = [];
|
|
12500
12497
|
|
|
12501
|
-
var ReactPlayer =
|
|
12498
|
+
var ReactPlayer =
|
|
12499
|
+
/*#__PURE__*/
|
|
12500
|
+
function (_Component) {
|
|
12502
12501
|
_inherits(ReactPlayer, _Component);
|
|
12503
12502
|
|
|
12504
|
-
var _super = _createSuper(ReactPlayer);
|
|
12505
|
-
|
|
12506
12503
|
function ReactPlayer() {
|
|
12504
|
+
var _getPrototypeOf2;
|
|
12505
|
+
|
|
12507
12506
|
var _this;
|
|
12508
12507
|
|
|
12509
12508
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -12512,7 +12511,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
12512
12511
|
args[_key] = arguments[_key];
|
|
12513
12512
|
}
|
|
12514
12513
|
|
|
12515
|
-
_this =
|
|
12514
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
12516
12515
|
|
|
12517
12516
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
12518
12517
|
|
|
@@ -12623,7 +12622,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
12623
12622
|
key: "renderActivePlayer",
|
|
12624
12623
|
value: function renderActivePlayer(url, activePlayer) {
|
|
12625
12624
|
if (!url) return null;
|
|
12626
|
-
return
|
|
12625
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
12627
12626
|
key: activePlayer.displayName,
|
|
12628
12627
|
ref: this.activePlayerRef,
|
|
12629
12628
|
config: this.config,
|
|
@@ -12660,14 +12659,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
12660
12659
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
12661
12660
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
12662
12661
|
|
|
12663
|
-
var preview =
|
|
12662
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
12664
12663
|
url: url,
|
|
12665
12664
|
light: light,
|
|
12666
12665
|
playIcon: playIcon,
|
|
12667
12666
|
onClick: this.handleClickPreview
|
|
12668
12667
|
});
|
|
12669
12668
|
|
|
12670
|
-
return
|
|
12669
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
12671
12670
|
ref: this.wrapperRef,
|
|
12672
12671
|
style: _objectSpread({}, style, {
|
|
12673
12672
|
width: width,
|
|
@@ -13280,7 +13279,7 @@ var Poll = function Poll(_ref) {
|
|
|
13280
13279
|
);
|
|
13281
13280
|
};
|
|
13282
13281
|
|
|
13283
|
-
var numberOfPaginations = main.
|
|
13282
|
+
var numberOfPaginations = main.main_35 ? 4 : 10;
|
|
13284
13283
|
|
|
13285
13284
|
var Quiz = function Quiz(_ref) {
|
|
13286
13285
|
var quizzes = _ref.quizzes,
|
|
@@ -13393,7 +13392,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
13393
13392
|
var renderPagination = function renderPagination() {
|
|
13394
13393
|
return React__default.createElement(
|
|
13395
13394
|
Pagination,
|
|
13396
|
-
{ className: 'p-0 m-0', size: main.
|
|
13395
|
+
{ className: 'p-0 m-0', size: main.main_35 && 'sm' },
|
|
13397
13396
|
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
13398
13397
|
return changePage('first');
|
|
13399
13398
|
}, disabled: currentPage === 1 }),
|
|
@@ -13633,7 +13632,7 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
13633
13632
|
};
|
|
13634
13633
|
|
|
13635
13634
|
var Figure = dynamic(function () {
|
|
13636
|
-
return Promise.resolve().then(function () { return require('./Figure-
|
|
13635
|
+
return Promise.resolve().then(function () { return require('./Figure-7277baf0.js'); });
|
|
13637
13636
|
}, { ssr: false });
|
|
13638
13637
|
|
|
13639
13638
|
var ScrollToElement = function ScrollToElement(elementId) {
|
|
@@ -13694,11 +13693,6 @@ var getSerializers = function getSerializers() {
|
|
|
13694
13693
|
return {
|
|
13695
13694
|
types: {
|
|
13696
13695
|
block: function block(props) {
|
|
13697
|
-
var _props$node$style = props.node.style,
|
|
13698
|
-
style = _props$node$style === undefined ? 'normal' : _props$node$style;
|
|
13699
|
-
|
|
13700
|
-
if (style === 'hr') return React__default.createElement('hr', { className: 'horizontal-rule' });
|
|
13701
|
-
if (style === 'br') return React__default.createElement('br', { className: 'line-break' });
|
|
13702
13696
|
props = convertEntities(props);
|
|
13703
13697
|
return TaxonomyCard.BlockContent.defaultSerializers.types.block(props);
|
|
13704
13698
|
},
|
|
@@ -13794,6 +13788,12 @@ var getSerializers = function getSerializers() {
|
|
|
13794
13788
|
var node = _ref17.node;
|
|
13795
13789
|
|
|
13796
13790
|
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
13791
|
+
},
|
|
13792
|
+
hrtag: function hrtag() {
|
|
13793
|
+
return React__default.createElement('hr', { className: 'horizontal-rule' });
|
|
13794
|
+
},
|
|
13795
|
+
brtag: function brtag() {
|
|
13796
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
13797
13797
|
}
|
|
13798
13798
|
},
|
|
13799
13799
|
marks: {
|
|
@@ -13903,7 +13903,7 @@ var Feature = function Feature(props) {
|
|
|
13903
13903
|
};
|
|
13904
13904
|
//image width
|
|
13905
13905
|
var imageWidth = 900;
|
|
13906
|
-
if (main.
|
|
13906
|
+
if (main.main_36) {
|
|
13907
13907
|
imageWidth = 450;
|
|
13908
13908
|
}
|
|
13909
13909
|
|
|
@@ -14283,16 +14283,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
14283
14283
|
_ref$className = _ref.className,
|
|
14284
14284
|
className = _ref$className === undefined ? '' : _ref$className;
|
|
14285
14285
|
|
|
14286
|
-
/*
|
|
14287
|
-
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
14288
|
-
example:
|
|
14289
|
-
<RelatedTopicDropdown
|
|
14290
|
-
page='/clinical'
|
|
14291
|
-
exclude="clinical"
|
|
14292
|
-
className='mb-3'
|
|
14293
|
-
parentTaxonomy={props.parentTaxonomy}
|
|
14294
|
-
subTaxonomies={props.subTaxonomies}
|
|
14295
|
-
/>
|
|
14286
|
+
/*
|
|
14287
|
+
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
14288
|
+
example:
|
|
14289
|
+
<RelatedTopicDropdown
|
|
14290
|
+
page='/clinical'
|
|
14291
|
+
exclude="clinical"
|
|
14292
|
+
className='mb-3'
|
|
14293
|
+
parentTaxonomy={props.parentTaxonomy}
|
|
14294
|
+
subTaxonomies={props.subTaxonomies}
|
|
14295
|
+
/>
|
|
14296
14296
|
*/
|
|
14297
14297
|
if (subTaxonomies.length === 0 && parentTaxonomy) {
|
|
14298
14298
|
if (parentTaxonomy.identifier == exclude) {
|
|
@@ -14421,7 +14421,7 @@ var dP = _toObject._objectDp.f;
|
|
|
14421
14421
|
|
|
14422
14422
|
|
|
14423
14423
|
|
|
14424
|
-
var fastKey = _typeof$
|
|
14424
|
+
var fastKey = _typeof$1._meta.fastKey;
|
|
14425
14425
|
|
|
14426
14426
|
var SIZE = _toObject._descriptors ? '_s' : 'size';
|
|
14427
14427
|
|
|
@@ -14559,10 +14559,10 @@ var SPECIES = web_dom_iterable._wks('species');
|
|
|
14559
14559
|
|
|
14560
14560
|
var _arraySpeciesConstructor = function (original) {
|
|
14561
14561
|
var C;
|
|
14562
|
-
if (_typeof$
|
|
14562
|
+
if (_typeof$1._isArray(original)) {
|
|
14563
14563
|
C = original.constructor;
|
|
14564
14564
|
// cross-realm fallback
|
|
14565
|
-
if (typeof C == 'function' && (C === Array || _typeof$
|
|
14565
|
+
if (typeof C == 'function' && (C === Array || _typeof$1._isArray(C.prototype))) C = undefined;
|
|
14566
14566
|
if (_toObject._isObject(C)) {
|
|
14567
14567
|
C = C[SPECIES];
|
|
14568
14568
|
if (C === null) C = undefined;
|
|
@@ -14638,7 +14638,7 @@ var _collection = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {
|
|
|
14638
14638
|
// create collection constructor
|
|
14639
14639
|
C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);
|
|
14640
14640
|
promise._redefineAll(C.prototype, methods);
|
|
14641
|
-
_typeof$
|
|
14641
|
+
_typeof$1._meta.NEED = true;
|
|
14642
14642
|
} else {
|
|
14643
14643
|
C = wrapper(function (target, iterable) {
|
|
14644
14644
|
promise._anInstance(target, C, NAME, '_c');
|
|
@@ -14758,48 +14758,48 @@ module.exports = { "default": set, __esModule: true };
|
|
|
14758
14758
|
|
|
14759
14759
|
var _Set = _commonjsHelpers.unwrapExports(set$1);
|
|
14760
14760
|
|
|
14761
|
-
/* usage & query
|
|
14762
|
-
const Publication = (props) => {
|
|
14763
|
-
const { cache, pub, year } = props
|
|
14764
|
-
|
|
14765
|
-
const targeting = {
|
|
14766
|
-
content_placement: [`/journals/${pub.identifier.current}`],
|
|
14767
|
-
document_url: [`/journals/${pub.identifier.current}`],
|
|
14768
|
-
}
|
|
14769
|
-
|
|
14770
|
-
return (
|
|
14771
|
-
<Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
|
|
14772
|
-
<PublicationLanding publication={pub} year={year} href={'journals'} />
|
|
14773
|
-
</Shell>
|
|
14774
|
-
)
|
|
14775
|
-
}
|
|
14776
|
-
|
|
14777
|
-
Publication.getInitialProps = async (ctx) => {
|
|
14778
|
-
const { query } = ctx
|
|
14779
|
-
const {
|
|
14780
|
-
query: { year },
|
|
14781
|
-
} = ctx
|
|
14782
|
-
const pub = await client.fetch(
|
|
14783
|
-
`*[_type == 'publication'
|
|
14784
|
-
&& identifier.current == $publication][0] {
|
|
14785
|
-
...,
|
|
14786
|
-
'issues': *[_type == 'publication'
|
|
14787
|
-
&& is_visible
|
|
14788
|
-
&& references(^._id)] | order(year desc, month desc)
|
|
14789
|
-
}`,
|
|
14790
|
-
query
|
|
14791
|
-
)
|
|
14792
|
-
const builder = imageUrlBuilder(client)
|
|
14793
|
-
const urlFor = (source) => {
|
|
14794
|
-
return builder.image(source)
|
|
14795
|
-
}
|
|
14796
|
-
pub.issues.map((issue) => {
|
|
14797
|
-
issue.thumbnail = urlFor(issue.thumbnail).url()
|
|
14798
|
-
})
|
|
14799
|
-
return { pub, year }
|
|
14800
|
-
}
|
|
14801
|
-
|
|
14802
|
-
export default Publication
|
|
14761
|
+
/* usage & query
|
|
14762
|
+
const Publication = (props) => {
|
|
14763
|
+
const { cache, pub, year } = props
|
|
14764
|
+
|
|
14765
|
+
const targeting = {
|
|
14766
|
+
content_placement: [`/journals/${pub.identifier.current}`],
|
|
14767
|
+
document_url: [`/journals/${pub.identifier.current}`],
|
|
14768
|
+
}
|
|
14769
|
+
|
|
14770
|
+
return (
|
|
14771
|
+
<Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
|
|
14772
|
+
<PublicationLanding publication={pub} year={year} href={'journals'} />
|
|
14773
|
+
</Shell>
|
|
14774
|
+
)
|
|
14775
|
+
}
|
|
14776
|
+
|
|
14777
|
+
Publication.getInitialProps = async (ctx) => {
|
|
14778
|
+
const { query } = ctx
|
|
14779
|
+
const {
|
|
14780
|
+
query: { year },
|
|
14781
|
+
} = ctx
|
|
14782
|
+
const pub = await client.fetch(
|
|
14783
|
+
`*[_type == 'publication'
|
|
14784
|
+
&& identifier.current == $publication][0] {
|
|
14785
|
+
...,
|
|
14786
|
+
'issues': *[_type == 'publication'
|
|
14787
|
+
&& is_visible
|
|
14788
|
+
&& references(^._id)] | order(year desc, month desc)
|
|
14789
|
+
}`,
|
|
14790
|
+
query
|
|
14791
|
+
)
|
|
14792
|
+
const builder = imageUrlBuilder(client)
|
|
14793
|
+
const urlFor = (source) => {
|
|
14794
|
+
return builder.image(source)
|
|
14795
|
+
}
|
|
14796
|
+
pub.issues.map((issue) => {
|
|
14797
|
+
issue.thumbnail = urlFor(issue.thumbnail).url()
|
|
14798
|
+
})
|
|
14799
|
+
return { pub, year }
|
|
14800
|
+
}
|
|
14801
|
+
|
|
14802
|
+
export default Publication
|
|
14803
14803
|
*/
|
|
14804
14804
|
|
|
14805
14805
|
var PublicationLanding = function PublicationLanding(props) {
|
|
@@ -15766,34 +15766,34 @@ var GridHero = function GridHero(props) {
|
|
|
15766
15766
|
);
|
|
15767
15767
|
};
|
|
15768
15768
|
|
|
15769
|
-
/*
|
|
15770
|
-
Sample query
|
|
15771
|
-
let references = ''
|
|
15772
|
-
if(article.taxonomyMapping.length > 0){
|
|
15773
|
-
article.taxonomyMapping.forEach((ref, index) => {
|
|
15774
|
-
references = references + `references('${ref._ref}') `
|
|
15775
|
-
if(index+1 !== article.taxonomyMapping.length){
|
|
15776
|
-
references = references + ` && `
|
|
15777
|
-
}
|
|
15778
|
-
})
|
|
15779
|
-
}
|
|
15780
|
-
|
|
15781
|
-
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] {
|
|
15782
|
-
...,
|
|
15783
|
-
title,
|
|
15784
|
-
summary,
|
|
15785
|
-
thumbnail,
|
|
15786
|
-
url,
|
|
15787
|
-
published,
|
|
15788
|
-
authorMapping[]->,
|
|
15789
|
-
contentCategory->
|
|
15790
|
-
}`
|
|
15791
|
-
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
15792
|
-
|
|
15793
|
-
Sample usage
|
|
15794
|
-
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
15795
|
-
|
|
15796
|
-
|
|
15769
|
+
/*
|
|
15770
|
+
Sample query
|
|
15771
|
+
let references = ''
|
|
15772
|
+
if(article.taxonomyMapping.length > 0){
|
|
15773
|
+
article.taxonomyMapping.forEach((ref, index) => {
|
|
15774
|
+
references = references + `references('${ref._ref}') `
|
|
15775
|
+
if(index+1 !== article.taxonomyMapping.length){
|
|
15776
|
+
references = references + ` && `
|
|
15777
|
+
}
|
|
15778
|
+
})
|
|
15779
|
+
}
|
|
15780
|
+
|
|
15781
|
+
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] {
|
|
15782
|
+
...,
|
|
15783
|
+
title,
|
|
15784
|
+
summary,
|
|
15785
|
+
thumbnail,
|
|
15786
|
+
url,
|
|
15787
|
+
published,
|
|
15788
|
+
authorMapping[]->,
|
|
15789
|
+
contentCategory->
|
|
15790
|
+
}`
|
|
15791
|
+
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
15792
|
+
|
|
15793
|
+
Sample usage
|
|
15794
|
+
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
15795
|
+
|
|
15796
|
+
|
|
15797
15797
|
*/
|
|
15798
15798
|
var RelatedContent = function RelatedContent(props) {
|
|
15799
15799
|
var client = props.client,
|
|
@@ -15860,21 +15860,21 @@ var RelatedContent = function RelatedContent(props) {
|
|
|
15860
15860
|
);
|
|
15861
15861
|
};
|
|
15862
15862
|
|
|
15863
|
-
/*
|
|
15864
|
-
Example usage - targetedonc.com/latest-conference
|
|
15865
|
-
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] {
|
|
15866
|
-
...,
|
|
15867
|
-
title,
|
|
15868
|
-
summary,
|
|
15869
|
-
thumbnail,
|
|
15870
|
-
url,
|
|
15871
|
-
published,
|
|
15872
|
-
documentGroup->,
|
|
15873
|
-
contentCategory->,
|
|
15874
|
-
'pageNumber': ${currentPage}
|
|
15875
|
-
}`
|
|
15876
|
-
|
|
15877
|
-
const posts = await client.fetch(query, params)
|
|
15863
|
+
/*
|
|
15864
|
+
Example usage - targetedonc.com/latest-conference
|
|
15865
|
+
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] {
|
|
15866
|
+
...,
|
|
15867
|
+
title,
|
|
15868
|
+
summary,
|
|
15869
|
+
thumbnail,
|
|
15870
|
+
url,
|
|
15871
|
+
published,
|
|
15872
|
+
documentGroup->,
|
|
15873
|
+
contentCategory->,
|
|
15874
|
+
'pageNumber': ${currentPage}
|
|
15875
|
+
}`
|
|
15876
|
+
|
|
15877
|
+
const posts = await client.fetch(query, params)
|
|
15878
15878
|
*/
|
|
15879
15879
|
|
|
15880
15880
|
var ConferenceArticleCard = function ConferenceArticleCard(props) {
|
|
@@ -17288,7 +17288,7 @@ var Article = function Article(props) {
|
|
|
17288
17288
|
React__default.createElement('br', null),
|
|
17289
17289
|
React__default.createElement('br', null)
|
|
17290
17290
|
),
|
|
17291
|
-
main.
|
|
17291
|
+
main.main_36 && props.article.Ads.map(function (ad, index) {
|
|
17292
17292
|
if (index === 0) {
|
|
17293
17293
|
return React__default.createElement(
|
|
17294
17294
|
'div',
|
|
@@ -17313,7 +17313,7 @@ var Article = function Article(props) {
|
|
|
17313
17313
|
renderIsiContent(props.article)
|
|
17314
17314
|
)
|
|
17315
17315
|
),
|
|
17316
|
-
main.
|
|
17316
|
+
main.main_36 && props.article.Ads.map(function (ad, index) {
|
|
17317
17317
|
if (index > 0) {
|
|
17318
17318
|
return React__default.createElement(
|
|
17319
17319
|
'div',
|
|
@@ -17430,7 +17430,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
17430
17430
|
setQueueData = _useState4[1];
|
|
17431
17431
|
|
|
17432
17432
|
var refreshAD = function refreshAD(path) {
|
|
17433
|
-
if (!main.
|
|
17433
|
+
if (!main.main_36) {
|
|
17434
17434
|
var activeArticle = queueData.find(function (item) {
|
|
17435
17435
|
return item.url.current === path;
|
|
17436
17436
|
});
|
|
@@ -17558,27 +17558,27 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
17558
17558
|
};
|
|
17559
17559
|
|
|
17560
17560
|
var KMTracker = function KMTracker(props) {
|
|
17561
|
-
|
|
17561
|
+
var id = props.id;
|
|
17562
17562
|
|
|
17563
|
-
|
|
17563
|
+
if (document && id) {
|
|
17564
17564
|
(function () {
|
|
17565
|
-
|
|
17565
|
+
var ecnJquery = document.createElement('script');
|
|
17566
17566
|
|
|
17567
|
-
|
|
17568
|
-
|
|
17569
|
-
|
|
17567
|
+
ecnJquery.type = 'text/javascript';
|
|
17568
|
+
ecnJquery.async = true;
|
|
17569
|
+
ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
|
|
17570
17570
|
|
|
17571
|
-
|
|
17571
|
+
var ecnScript = document.createElement('script');
|
|
17572
17572
|
|
|
17573
|
-
|
|
17574
|
-
|
|
17575
|
-
|
|
17576
|
-
|
|
17573
|
+
ecnScript.type = 'text/javascript';
|
|
17574
|
+
ecnScript.async = true;
|
|
17575
|
+
ecnScript.id = 'km-tracker';
|
|
17576
|
+
ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
|
|
17577
17577
|
|
|
17578
|
-
|
|
17579
|
-
|
|
17580
|
-
|
|
17581
|
-
|
|
17578
|
+
document.head.appendChild(ecnJquery);
|
|
17579
|
+
document.head.appendChild(ecnScript);
|
|
17580
|
+
})();
|
|
17581
|
+
}
|
|
17582
17582
|
};
|
|
17583
17583
|
|
|
17584
17584
|
var getSeriesDetail = function getSeriesDetail(article, currentSeries) {
|
|
@@ -19640,6 +19640,9 @@ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
19640
19640
|
if (value != null) {
|
|
19641
19641
|
if ($gOPD && (i + 1) >= parts.length) {
|
|
19642
19642
|
var desc = $gOPD(value, parts[i]);
|
|
19643
|
+
if (!allowMissing && !(parts[i] in value)) {
|
|
19644
|
+
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
19645
|
+
}
|
|
19643
19646
|
value = desc ? (desc.get || desc.value) : value[parts[i]];
|
|
19644
19647
|
} else {
|
|
19645
19648
|
value = value[parts[i]];
|
|
@@ -19672,7 +19675,16 @@ var callBound = function callBoundIntrinsic(name, allowMissing) {
|
|
|
19672
19675
|
return intrinsic;
|
|
19673
19676
|
};
|
|
19674
19677
|
|
|
19675
|
-
var $defineProperty = GetIntrinsic('%Object.defineProperty%');
|
|
19678
|
+
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
19679
|
+
|
|
19680
|
+
if ($defineProperty) {
|
|
19681
|
+
try {
|
|
19682
|
+
$defineProperty({}, 'a', { value: 1 });
|
|
19683
|
+
} catch (e) {
|
|
19684
|
+
// IE 8 has a broken defineProperty
|
|
19685
|
+
$defineProperty = null;
|
|
19686
|
+
}
|
|
19687
|
+
}
|
|
19676
19688
|
|
|
19677
19689
|
|
|
19678
19690
|
|
|
@@ -19815,6 +19827,224 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
|
|
|
19815
19827
|
return obj;
|
|
19816
19828
|
};
|
|
19817
19829
|
|
|
19830
|
+
var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
|
|
19831
|
+
if ($gOPD$1) {
|
|
19832
|
+
try {
|
|
19833
|
+
$gOPD$1([], 'length');
|
|
19834
|
+
} catch (e) {
|
|
19835
|
+
// IE 8 has a broken gOPD
|
|
19836
|
+
$gOPD$1 = null;
|
|
19837
|
+
}
|
|
19838
|
+
}
|
|
19839
|
+
|
|
19840
|
+
var getOwnPropertyDescriptor = $gOPD$1;
|
|
19841
|
+
|
|
19842
|
+
var $Array = GetIntrinsic('%Array%');
|
|
19843
|
+
|
|
19844
|
+
// eslint-disable-next-line global-require
|
|
19845
|
+
var toStr$4 = !$Array.isArray && callBound('Object.prototype.toString');
|
|
19846
|
+
|
|
19847
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-isarray
|
|
19848
|
+
|
|
19849
|
+
var IsArray = $Array.isArray || function IsArray(argument) {
|
|
19850
|
+
return toStr$4(argument) === '[object Array]';
|
|
19851
|
+
};
|
|
19852
|
+
|
|
19853
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
|
|
19854
|
+
|
|
19855
|
+
var IsPropertyKey = function IsPropertyKey(argument) {
|
|
19856
|
+
return typeof argument === 'string' || typeof argument === 'symbol';
|
|
19857
|
+
};
|
|
19858
|
+
|
|
19859
|
+
var regexExec = RegExp.prototype.exec;
|
|
19860
|
+
var gOPD = Object.getOwnPropertyDescriptor;
|
|
19861
|
+
|
|
19862
|
+
var tryRegexExecCall = function tryRegexExec(value) {
|
|
19863
|
+
try {
|
|
19864
|
+
var lastIndex = value.lastIndex;
|
|
19865
|
+
value.lastIndex = 0; // eslint-disable-line no-param-reassign
|
|
19866
|
+
|
|
19867
|
+
regexExec.call(value);
|
|
19868
|
+
return true;
|
|
19869
|
+
} catch (e) {
|
|
19870
|
+
return false;
|
|
19871
|
+
} finally {
|
|
19872
|
+
value.lastIndex = lastIndex; // eslint-disable-line no-param-reassign
|
|
19873
|
+
}
|
|
19874
|
+
};
|
|
19875
|
+
var toStr$5 = Object.prototype.toString;
|
|
19876
|
+
var regexClass = '[object RegExp]';
|
|
19877
|
+
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
19878
|
+
|
|
19879
|
+
var isRegex = function isRegex(value) {
|
|
19880
|
+
if (!value || typeof value !== 'object') {
|
|
19881
|
+
return false;
|
|
19882
|
+
}
|
|
19883
|
+
if (!hasToStringTag) {
|
|
19884
|
+
return toStr$5.call(value) === regexClass;
|
|
19885
|
+
}
|
|
19886
|
+
|
|
19887
|
+
var descriptor = gOPD(value, 'lastIndex');
|
|
19888
|
+
var hasLastIndexDataProperty = descriptor && src$1(descriptor, 'value');
|
|
19889
|
+
if (!hasLastIndexDataProperty) {
|
|
19890
|
+
return false;
|
|
19891
|
+
}
|
|
19892
|
+
|
|
19893
|
+
return tryRegexExecCall(value);
|
|
19894
|
+
};
|
|
19895
|
+
|
|
19896
|
+
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
|
|
19897
|
+
|
|
19898
|
+
var ToBoolean = function ToBoolean(value) { return !!value; };
|
|
19899
|
+
|
|
19900
|
+
var $match = GetIntrinsic('%Symbol.match%', true);
|
|
19901
|
+
|
|
19902
|
+
|
|
19903
|
+
|
|
19904
|
+
|
|
19905
|
+
|
|
19906
|
+
// https://ecma-international.org/ecma-262/6.0/#sec-isregexp
|
|
19907
|
+
|
|
19908
|
+
var IsRegExp = function IsRegExp(argument) {
|
|
19909
|
+
if (!argument || typeof argument !== 'object') {
|
|
19910
|
+
return false;
|
|
19911
|
+
}
|
|
19912
|
+
if ($match) {
|
|
19913
|
+
var isRegExp = argument[$match];
|
|
19914
|
+
if (typeof isRegExp !== 'undefined') {
|
|
19915
|
+
return ToBoolean(isRegExp);
|
|
19916
|
+
}
|
|
19917
|
+
}
|
|
19918
|
+
return isRegex(argument);
|
|
19919
|
+
};
|
|
19920
|
+
|
|
19921
|
+
var fnToStr = Function.prototype.toString;
|
|
19922
|
+
|
|
19923
|
+
var constructorRegex = /^\s*class\b/;
|
|
19924
|
+
var isES6ClassFn = function isES6ClassFunction(value) {
|
|
19925
|
+
try {
|
|
19926
|
+
var fnStr = fnToStr.call(value);
|
|
19927
|
+
return constructorRegex.test(fnStr);
|
|
19928
|
+
} catch (e) {
|
|
19929
|
+
return false; // not a function
|
|
19930
|
+
}
|
|
19931
|
+
};
|
|
19932
|
+
|
|
19933
|
+
var tryFunctionObject = function tryFunctionToStr(value) {
|
|
19934
|
+
try {
|
|
19935
|
+
if (isES6ClassFn(value)) { return false; }
|
|
19936
|
+
fnToStr.call(value);
|
|
19937
|
+
return true;
|
|
19938
|
+
} catch (e) {
|
|
19939
|
+
return false;
|
|
19940
|
+
}
|
|
19941
|
+
};
|
|
19942
|
+
var toStr$6 = Object.prototype.toString;
|
|
19943
|
+
var fnClass = '[object Function]';
|
|
19944
|
+
var genClass = '[object GeneratorFunction]';
|
|
19945
|
+
var hasToStringTag$1 = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
19946
|
+
|
|
19947
|
+
var isCallable = function isCallable(value) {
|
|
19948
|
+
if (!value) { return false; }
|
|
19949
|
+
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
19950
|
+
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
19951
|
+
if (hasToStringTag$1) { return tryFunctionObject(value); }
|
|
19952
|
+
if (isES6ClassFn(value)) { return false; }
|
|
19953
|
+
var strClass = toStr$6.call(value);
|
|
19954
|
+
return strClass === fnClass || strClass === genClass;
|
|
19955
|
+
};
|
|
19956
|
+
|
|
19957
|
+
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
|
|
19958
|
+
|
|
19959
|
+
var IsCallable = isCallable;
|
|
19960
|
+
|
|
19961
|
+
var $TypeError$2 = GetIntrinsic('%TypeError%');
|
|
19962
|
+
|
|
19963
|
+
|
|
19964
|
+
|
|
19965
|
+
|
|
19966
|
+
|
|
19967
|
+
// https://ecma-international.org/ecma-262/5.1/#sec-8.10.5
|
|
19968
|
+
|
|
19969
|
+
var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
|
|
19970
|
+
if (Type$1(Obj) !== 'Object') {
|
|
19971
|
+
throw new $TypeError$2('ToPropertyDescriptor requires an object');
|
|
19972
|
+
}
|
|
19973
|
+
|
|
19974
|
+
var desc = {};
|
|
19975
|
+
if (src$1(Obj, 'enumerable')) {
|
|
19976
|
+
desc['[[Enumerable]]'] = ToBoolean(Obj.enumerable);
|
|
19977
|
+
}
|
|
19978
|
+
if (src$1(Obj, 'configurable')) {
|
|
19979
|
+
desc['[[Configurable]]'] = ToBoolean(Obj.configurable);
|
|
19980
|
+
}
|
|
19981
|
+
if (src$1(Obj, 'value')) {
|
|
19982
|
+
desc['[[Value]]'] = Obj.value;
|
|
19983
|
+
}
|
|
19984
|
+
if (src$1(Obj, 'writable')) {
|
|
19985
|
+
desc['[[Writable]]'] = ToBoolean(Obj.writable);
|
|
19986
|
+
}
|
|
19987
|
+
if (src$1(Obj, 'get')) {
|
|
19988
|
+
var getter = Obj.get;
|
|
19989
|
+
if (typeof getter !== 'undefined' && !IsCallable(getter)) {
|
|
19990
|
+
throw new TypeError('getter must be a function');
|
|
19991
|
+
}
|
|
19992
|
+
desc['[[Get]]'] = getter;
|
|
19993
|
+
}
|
|
19994
|
+
if (src$1(Obj, 'set')) {
|
|
19995
|
+
var setter = Obj.set;
|
|
19996
|
+
if (typeof setter !== 'undefined' && !IsCallable(setter)) {
|
|
19997
|
+
throw new $TypeError$2('setter must be a function');
|
|
19998
|
+
}
|
|
19999
|
+
desc['[[Set]]'] = setter;
|
|
20000
|
+
}
|
|
20001
|
+
|
|
20002
|
+
if ((src$1(desc, '[[Get]]') || src$1(desc, '[[Set]]')) && (src$1(desc, '[[Value]]') || src$1(desc, '[[Writable]]'))) {
|
|
20003
|
+
throw new $TypeError$2('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute');
|
|
20004
|
+
}
|
|
20005
|
+
return desc;
|
|
20006
|
+
};
|
|
20007
|
+
|
|
20008
|
+
var $TypeError$3 = GetIntrinsic('%TypeError%');
|
|
20009
|
+
|
|
20010
|
+
|
|
20011
|
+
|
|
20012
|
+
var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
|
|
20013
|
+
|
|
20014
|
+
|
|
20015
|
+
|
|
20016
|
+
|
|
20017
|
+
|
|
20018
|
+
|
|
20019
|
+
|
|
20020
|
+
|
|
20021
|
+
|
|
20022
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
|
|
20023
|
+
|
|
20024
|
+
var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
|
|
20025
|
+
if (Type$1(O) !== 'Object') {
|
|
20026
|
+
throw new $TypeError$3('Assertion failed: O must be an Object');
|
|
20027
|
+
}
|
|
20028
|
+
if (!IsPropertyKey(P)) {
|
|
20029
|
+
throw new $TypeError$3('Assertion failed: P must be a Property Key');
|
|
20030
|
+
}
|
|
20031
|
+
if (!src$1(O, P)) {
|
|
20032
|
+
return void 0;
|
|
20033
|
+
}
|
|
20034
|
+
if (!getOwnPropertyDescriptor) {
|
|
20035
|
+
// ES3 / IE 8 fallback
|
|
20036
|
+
var arrayLength = IsArray(O) && P === 'length';
|
|
20037
|
+
var regexLastIndex = IsRegExp(O) && P === 'lastIndex';
|
|
20038
|
+
return {
|
|
20039
|
+
'[[Configurable]]': !(arrayLength || regexLastIndex),
|
|
20040
|
+
'[[Enumerable]]': $isEnumerable$1(O, P),
|
|
20041
|
+
'[[Value]]': O[P],
|
|
20042
|
+
'[[Writable]]': true
|
|
20043
|
+
};
|
|
20044
|
+
}
|
|
20045
|
+
return ToPropertyDescriptor(getOwnPropertyDescriptor(O, P));
|
|
20046
|
+
};
|
|
20047
|
+
|
|
19818
20048
|
// https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
|
|
19819
20049
|
|
|
19820
20050
|
var IsDataDescriptor = function IsDataDescriptor(Desc) {
|
|
@@ -19848,16 +20078,10 @@ var IsExtensible = $preventExtensions
|
|
|
19848
20078
|
? function IsExtensible(obj) {
|
|
19849
20079
|
return !isPrimitive$1(obj) && $isExtensible(obj);
|
|
19850
20080
|
}
|
|
19851
|
-
: function IsExtensible(obj) {
|
|
19852
|
-
return
|
|
20081
|
+
: function IsExtensible(obj) {
|
|
20082
|
+
return !isPrimitive$1(obj);
|
|
19853
20083
|
};
|
|
19854
20084
|
|
|
19855
|
-
// https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
|
|
19856
|
-
|
|
19857
|
-
var IsPropertyKey = function IsPropertyKey(argument) {
|
|
19858
|
-
return typeof argument === 'string' || typeof argument === 'symbol';
|
|
19859
|
-
};
|
|
19860
|
-
|
|
19861
20085
|
var _isNaN = Number.isNaN || function isNaN(a) {
|
|
19862
20086
|
return a !== a;
|
|
19863
20087
|
};
|
|
@@ -19872,8 +20096,8 @@ var SameValue = function SameValue(x, y) {
|
|
|
19872
20096
|
return _isNaN(x) && _isNaN(y);
|
|
19873
20097
|
};
|
|
19874
20098
|
|
|
19875
|
-
var $
|
|
19876
|
-
|
|
20099
|
+
var $TypeError$4 = GetIntrinsic('%TypeError%');
|
|
20100
|
+
|
|
19877
20101
|
|
|
19878
20102
|
|
|
19879
20103
|
|
|
@@ -19888,12 +20112,12 @@ var $TypeError$2 = GetIntrinsic('%TypeError%');
|
|
|
19888
20112
|
|
|
19889
20113
|
var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
19890
20114
|
if (Type$1(O) !== 'Object') {
|
|
19891
|
-
throw new $TypeError$
|
|
20115
|
+
throw new $TypeError$4('Assertion failed: Type(O) is not Object');
|
|
19892
20116
|
}
|
|
19893
20117
|
if (!IsPropertyKey(P)) {
|
|
19894
|
-
throw new $TypeError$
|
|
20118
|
+
throw new $TypeError$4('Assertion failed: IsPropertyKey(P) is not true');
|
|
19895
20119
|
}
|
|
19896
|
-
var oldDesc =
|
|
20120
|
+
var oldDesc = OrdinaryGetOwnProperty(O, P);
|
|
19897
20121
|
var extensible = oldDesc || IsExtensible(O);
|
|
19898
20122
|
var immutable = oldDesc && (!oldDesc.writable || !oldDesc.configurable);
|
|
19899
20123
|
if (immutable || !extensible) {
|
|
@@ -19914,53 +20138,13 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
|
19914
20138
|
);
|
|
19915
20139
|
};
|
|
19916
20140
|
|
|
19917
|
-
var
|
|
19918
|
-
|
|
19919
|
-
var constructorRegex = /^\s*class\b/;
|
|
19920
|
-
var isES6ClassFn = function isES6ClassFunction(value) {
|
|
19921
|
-
try {
|
|
19922
|
-
var fnStr = fnToStr.call(value);
|
|
19923
|
-
return constructorRegex.test(fnStr);
|
|
19924
|
-
} catch (e) {
|
|
19925
|
-
return false; // not a function
|
|
19926
|
-
}
|
|
19927
|
-
};
|
|
19928
|
-
|
|
19929
|
-
var tryFunctionObject = function tryFunctionToStr(value) {
|
|
19930
|
-
try {
|
|
19931
|
-
if (isES6ClassFn(value)) { return false; }
|
|
19932
|
-
fnToStr.call(value);
|
|
19933
|
-
return true;
|
|
19934
|
-
} catch (e) {
|
|
19935
|
-
return false;
|
|
19936
|
-
}
|
|
19937
|
-
};
|
|
19938
|
-
var toStr$4 = Object.prototype.toString;
|
|
19939
|
-
var fnClass = '[object Function]';
|
|
19940
|
-
var genClass = '[object GeneratorFunction]';
|
|
19941
|
-
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
19942
|
-
|
|
19943
|
-
var isCallable = function isCallable(value) {
|
|
19944
|
-
if (!value) { return false; }
|
|
19945
|
-
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
19946
|
-
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
19947
|
-
if (hasToStringTag) { return tryFunctionObject(value); }
|
|
19948
|
-
if (isES6ClassFn(value)) { return false; }
|
|
19949
|
-
var strClass = toStr$4.call(value);
|
|
19950
|
-
return strClass === fnClass || strClass === genClass;
|
|
19951
|
-
};
|
|
19952
|
-
|
|
19953
|
-
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
|
|
19954
|
-
|
|
19955
|
-
var IsCallable = isCallable;
|
|
19956
|
-
|
|
19957
|
-
var $TypeError$3 = GetIntrinsic('%TypeError%');
|
|
20141
|
+
var $TypeError$5 = GetIntrinsic('%TypeError%');
|
|
19958
20142
|
|
|
19959
20143
|
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
|
|
19960
20144
|
|
|
19961
20145
|
var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
|
|
19962
20146
|
if (value == null) {
|
|
19963
|
-
throw new $TypeError$
|
|
20147
|
+
throw new $TypeError$5(optMessage || ('Cannot call method on ' + value));
|
|
19964
20148
|
}
|
|
19965
20149
|
return value;
|
|
19966
20150
|
};
|
|
@@ -20031,241 +20215,6 @@ defineProperties_1(implementation$2, {
|
|
|
20031
20215
|
|
|
20032
20216
|
var object_getownpropertydescriptors = implementation$2;
|
|
20033
20217
|
|
|
20034
|
-
/* globals
|
|
20035
|
-
Atomics,
|
|
20036
|
-
SharedArrayBuffer,
|
|
20037
|
-
*/
|
|
20038
|
-
|
|
20039
|
-
var undefined$2;
|
|
20040
|
-
|
|
20041
|
-
var $TypeError$4 = TypeError;
|
|
20042
|
-
|
|
20043
|
-
var $gOPD$3 = Object.getOwnPropertyDescriptor;
|
|
20044
|
-
if ($gOPD$3) {
|
|
20045
|
-
try {
|
|
20046
|
-
$gOPD$3({}, '');
|
|
20047
|
-
} catch (e) {
|
|
20048
|
-
$gOPD$3 = null; // this is IE 8, which has a broken gOPD
|
|
20049
|
-
}
|
|
20050
|
-
}
|
|
20051
|
-
|
|
20052
|
-
var throwTypeError$1 = function () { throw new $TypeError$4(); };
|
|
20053
|
-
var ThrowTypeError$1 = $gOPD$3
|
|
20054
|
-
? (function () {
|
|
20055
|
-
try {
|
|
20056
|
-
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
20057
|
-
arguments.callee; // IE 8 does not throw here
|
|
20058
|
-
return throwTypeError$1;
|
|
20059
|
-
} catch (calleeThrows) {
|
|
20060
|
-
try {
|
|
20061
|
-
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
20062
|
-
return $gOPD$3(arguments, 'callee').get;
|
|
20063
|
-
} catch (gOPDthrows) {
|
|
20064
|
-
return throwTypeError$1;
|
|
20065
|
-
}
|
|
20066
|
-
}
|
|
20067
|
-
}())
|
|
20068
|
-
: throwTypeError$1;
|
|
20069
|
-
|
|
20070
|
-
var hasSymbols$3 = hasSymbols$1();
|
|
20071
|
-
|
|
20072
|
-
var getProto$1 = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
20073
|
-
var generatorFunction$1 = undefined$2;
|
|
20074
|
-
var asyncFunction$1 = undefined$2;
|
|
20075
|
-
var asyncGenFunction$1 = undefined$2;
|
|
20076
|
-
|
|
20077
|
-
var TypedArray$1 = typeof Uint8Array === 'undefined' ? undefined$2 : getProto$1(Uint8Array);
|
|
20078
|
-
|
|
20079
|
-
var INTRINSICS$1 = {
|
|
20080
|
-
'%Array%': Array,
|
|
20081
|
-
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer,
|
|
20082
|
-
'%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer.prototype,
|
|
20083
|
-
'%ArrayIteratorPrototype%': hasSymbols$3 ? getProto$1([][Symbol.iterator]()) : undefined$2,
|
|
20084
|
-
'%ArrayPrototype%': Array.prototype,
|
|
20085
|
-
'%ArrayProto_entries%': Array.prototype.entries,
|
|
20086
|
-
'%ArrayProto_forEach%': Array.prototype.forEach,
|
|
20087
|
-
'%ArrayProto_keys%': Array.prototype.keys,
|
|
20088
|
-
'%ArrayProto_values%': Array.prototype.values,
|
|
20089
|
-
'%AsyncFromSyncIteratorPrototype%': undefined$2,
|
|
20090
|
-
'%AsyncFunction%': asyncFunction$1,
|
|
20091
|
-
'%AsyncFunctionPrototype%': undefined$2,
|
|
20092
|
-
'%AsyncGenerator%': undefined$2,
|
|
20093
|
-
'%AsyncGeneratorFunction%': asyncGenFunction$1,
|
|
20094
|
-
'%AsyncGeneratorPrototype%': undefined$2,
|
|
20095
|
-
'%AsyncIteratorPrototype%': undefined$2,
|
|
20096
|
-
'%Atomics%': typeof Atomics === 'undefined' ? undefined$2 : Atomics,
|
|
20097
|
-
'%Boolean%': Boolean,
|
|
20098
|
-
'%BooleanPrototype%': Boolean.prototype,
|
|
20099
|
-
'%DataView%': typeof DataView === 'undefined' ? undefined$2 : DataView,
|
|
20100
|
-
'%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$2 : DataView.prototype,
|
|
20101
|
-
'%Date%': Date,
|
|
20102
|
-
'%DatePrototype%': Date.prototype,
|
|
20103
|
-
'%decodeURI%': decodeURI,
|
|
20104
|
-
'%decodeURIComponent%': decodeURIComponent,
|
|
20105
|
-
'%encodeURI%': encodeURI,
|
|
20106
|
-
'%encodeURIComponent%': encodeURIComponent,
|
|
20107
|
-
'%Error%': Error,
|
|
20108
|
-
'%ErrorPrototype%': Error.prototype,
|
|
20109
|
-
'%eval%': eval, // eslint-disable-line no-eval
|
|
20110
|
-
'%EvalError%': EvalError,
|
|
20111
|
-
'%EvalErrorPrototype%': EvalError.prototype,
|
|
20112
|
-
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array,
|
|
20113
|
-
'%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array.prototype,
|
|
20114
|
-
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array,
|
|
20115
|
-
'%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array.prototype,
|
|
20116
|
-
'%Function%': Function,
|
|
20117
|
-
'%FunctionPrototype%': Function.prototype,
|
|
20118
|
-
'%Generator%': undefined$2,
|
|
20119
|
-
'%GeneratorFunction%': generatorFunction$1,
|
|
20120
|
-
'%GeneratorPrototype%': undefined$2,
|
|
20121
|
-
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array,
|
|
20122
|
-
'%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array.prototype,
|
|
20123
|
-
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined$2 : Int16Array,
|
|
20124
|
-
'%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$2 : Int8Array.prototype,
|
|
20125
|
-
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array,
|
|
20126
|
-
'%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array.prototype,
|
|
20127
|
-
'%isFinite%': isFinite,
|
|
20128
|
-
'%isNaN%': isNaN,
|
|
20129
|
-
'%IteratorPrototype%': hasSymbols$3 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$2,
|
|
20130
|
-
'%JSON%': typeof JSON === 'object' ? JSON : undefined$2,
|
|
20131
|
-
'%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$2,
|
|
20132
|
-
'%Map%': typeof Map === 'undefined' ? undefined$2 : Map,
|
|
20133
|
-
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Map()[Symbol.iterator]()),
|
|
20134
|
-
'%MapPrototype%': typeof Map === 'undefined' ? undefined$2 : Map.prototype,
|
|
20135
|
-
'%Math%': Math,
|
|
20136
|
-
'%Number%': Number,
|
|
20137
|
-
'%NumberPrototype%': Number.prototype,
|
|
20138
|
-
'%Object%': Object,
|
|
20139
|
-
'%ObjectPrototype%': Object.prototype,
|
|
20140
|
-
'%ObjProto_toString%': Object.prototype.toString,
|
|
20141
|
-
'%ObjProto_valueOf%': Object.prototype.valueOf,
|
|
20142
|
-
'%parseFloat%': parseFloat,
|
|
20143
|
-
'%parseInt%': parseInt,
|
|
20144
|
-
'%Promise%': typeof Promise === 'undefined' ? undefined$2 : Promise,
|
|
20145
|
-
'%PromisePrototype%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype,
|
|
20146
|
-
'%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype.then,
|
|
20147
|
-
'%Promise_all%': typeof Promise === 'undefined' ? undefined$2 : Promise.all,
|
|
20148
|
-
'%Promise_reject%': typeof Promise === 'undefined' ? undefined$2 : Promise.reject,
|
|
20149
|
-
'%Promise_resolve%': typeof Promise === 'undefined' ? undefined$2 : Promise.resolve,
|
|
20150
|
-
'%Proxy%': typeof Proxy === 'undefined' ? undefined$2 : Proxy,
|
|
20151
|
-
'%RangeError%': RangeError,
|
|
20152
|
-
'%RangeErrorPrototype%': RangeError.prototype,
|
|
20153
|
-
'%ReferenceError%': ReferenceError,
|
|
20154
|
-
'%ReferenceErrorPrototype%': ReferenceError.prototype,
|
|
20155
|
-
'%Reflect%': typeof Reflect === 'undefined' ? undefined$2 : Reflect,
|
|
20156
|
-
'%RegExp%': RegExp,
|
|
20157
|
-
'%RegExpPrototype%': RegExp.prototype,
|
|
20158
|
-
'%Set%': typeof Set === 'undefined' ? undefined$2 : Set,
|
|
20159
|
-
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Set()[Symbol.iterator]()),
|
|
20160
|
-
'%SetPrototype%': typeof Set === 'undefined' ? undefined$2 : Set.prototype,
|
|
20161
|
-
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer,
|
|
20162
|
-
'%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer.prototype,
|
|
20163
|
-
'%String%': String,
|
|
20164
|
-
'%StringIteratorPrototype%': hasSymbols$3 ? getProto$1(''[Symbol.iterator]()) : undefined$2,
|
|
20165
|
-
'%StringPrototype%': String.prototype,
|
|
20166
|
-
'%Symbol%': hasSymbols$3 ? Symbol : undefined$2,
|
|
20167
|
-
'%SymbolPrototype%': hasSymbols$3 ? Symbol.prototype : undefined$2,
|
|
20168
|
-
'%SyntaxError%': SyntaxError,
|
|
20169
|
-
'%SyntaxErrorPrototype%': SyntaxError.prototype,
|
|
20170
|
-
'%ThrowTypeError%': ThrowTypeError$1,
|
|
20171
|
-
'%TypedArray%': TypedArray$1,
|
|
20172
|
-
'%TypedArrayPrototype%': TypedArray$1 ? TypedArray$1.prototype : undefined$2,
|
|
20173
|
-
'%TypeError%': $TypeError$4,
|
|
20174
|
-
'%TypeErrorPrototype%': $TypeError$4.prototype,
|
|
20175
|
-
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array,
|
|
20176
|
-
'%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array.prototype,
|
|
20177
|
-
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray,
|
|
20178
|
-
'%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray.prototype,
|
|
20179
|
-
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array,
|
|
20180
|
-
'%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array.prototype,
|
|
20181
|
-
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array,
|
|
20182
|
-
'%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array.prototype,
|
|
20183
|
-
'%URIError%': URIError,
|
|
20184
|
-
'%URIErrorPrototype%': URIError.prototype,
|
|
20185
|
-
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap,
|
|
20186
|
-
'%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap.prototype,
|
|
20187
|
-
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet,
|
|
20188
|
-
'%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet.prototype
|
|
20189
|
-
};
|
|
20190
|
-
|
|
20191
|
-
|
|
20192
|
-
var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
|
|
20193
|
-
|
|
20194
|
-
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
20195
|
-
var rePropName$1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
20196
|
-
var reEscapeChar$1 = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
20197
|
-
var stringToPath$1 = function stringToPath(string) {
|
|
20198
|
-
var result = [];
|
|
20199
|
-
$replace$1(string, rePropName$1, function (match, number, quote, subString) {
|
|
20200
|
-
result[result.length] = quote ? $replace$1(subString, reEscapeChar$1, '$1') : (number || match);
|
|
20201
|
-
});
|
|
20202
|
-
return result;
|
|
20203
|
-
};
|
|
20204
|
-
/* end adaptation */
|
|
20205
|
-
|
|
20206
|
-
var getBaseIntrinsic$1 = function getBaseIntrinsic(name, allowMissing) {
|
|
20207
|
-
if (!(name in INTRINSICS$1)) {
|
|
20208
|
-
throw new SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
20209
|
-
}
|
|
20210
|
-
|
|
20211
|
-
// istanbul ignore if // hopefully this is impossible to test :-)
|
|
20212
|
-
if (typeof INTRINSICS$1[name] === 'undefined' && !allowMissing) {
|
|
20213
|
-
throw new $TypeError$4('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
20214
|
-
}
|
|
20215
|
-
|
|
20216
|
-
return INTRINSICS$1[name];
|
|
20217
|
-
};
|
|
20218
|
-
|
|
20219
|
-
var GetIntrinsic$1 = function GetIntrinsic(name, allowMissing) {
|
|
20220
|
-
if (typeof name !== 'string' || name.length === 0) {
|
|
20221
|
-
throw new TypeError('intrinsic name must be a non-empty string');
|
|
20222
|
-
}
|
|
20223
|
-
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
20224
|
-
throw new TypeError('"allowMissing" argument must be a boolean');
|
|
20225
|
-
}
|
|
20226
|
-
|
|
20227
|
-
var parts = stringToPath$1(name);
|
|
20228
|
-
|
|
20229
|
-
var value = getBaseIntrinsic$1('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
|
|
20230
|
-
for (var i = 1; i < parts.length; i += 1) {
|
|
20231
|
-
if (value != null) {
|
|
20232
|
-
if ($gOPD$3 && (i + 1) >= parts.length) {
|
|
20233
|
-
var desc = $gOPD$3(value, parts[i]);
|
|
20234
|
-
if (!allowMissing && !(parts[i] in value)) {
|
|
20235
|
-
throw new $TypeError$4('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
20236
|
-
}
|
|
20237
|
-
value = desc ? (desc.get || desc.value) : value[parts[i]];
|
|
20238
|
-
} else {
|
|
20239
|
-
value = value[parts[i]];
|
|
20240
|
-
}
|
|
20241
|
-
}
|
|
20242
|
-
}
|
|
20243
|
-
return value;
|
|
20244
|
-
};
|
|
20245
|
-
|
|
20246
|
-
var $apply$1 = GetIntrinsic$1('%Function.prototype.apply%');
|
|
20247
|
-
var $call$1 = GetIntrinsic$1('%Function.prototype.call%');
|
|
20248
|
-
var $reflectApply = GetIntrinsic$1('%Reflect.apply%', true) || functionBind.call($call$1, $apply$1);
|
|
20249
|
-
|
|
20250
|
-
var callBind$1 = function callBind() {
|
|
20251
|
-
return $reflectApply(functionBind, $call$1, arguments);
|
|
20252
|
-
};
|
|
20253
|
-
|
|
20254
|
-
var apply$1 = function applyBind() {
|
|
20255
|
-
return $reflectApply(functionBind, $apply$1, arguments);
|
|
20256
|
-
};
|
|
20257
|
-
callBind$1.apply = apply$1;
|
|
20258
|
-
|
|
20259
|
-
var $indexOf$1 = callBind$1(GetIntrinsic$1('String.prototype.indexOf'));
|
|
20260
|
-
|
|
20261
|
-
var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
|
|
20262
|
-
var intrinsic = GetIntrinsic$1(name, !!allowMissing);
|
|
20263
|
-
if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.')) {
|
|
20264
|
-
return callBind$1(intrinsic);
|
|
20265
|
-
}
|
|
20266
|
-
return intrinsic;
|
|
20267
|
-
};
|
|
20268
|
-
|
|
20269
20218
|
var isES5$1 = typeof Object.defineProperty === 'function'
|
|
20270
20219
|
&& typeof Object.defineProperties === 'function';
|
|
20271
20220
|
|
|
@@ -20283,14 +20232,14 @@ if (typeof Promise !== 'function') {
|
|
|
20283
20232
|
|
|
20284
20233
|
|
|
20285
20234
|
|
|
20286
|
-
var $slice = callBound
|
|
20287
|
-
var $concat$1 = callBound
|
|
20288
|
-
var $forEach = callBound
|
|
20235
|
+
var $slice = callBound('Array.prototype.slice');
|
|
20236
|
+
var $concat$1 = callBound('Array.prototype.concat');
|
|
20237
|
+
var $forEach = callBound('Array.prototype.forEach');
|
|
20289
20238
|
|
|
20290
|
-
var hasSymbols$
|
|
20239
|
+
var hasSymbols$3 = hasSymbols$1();
|
|
20291
20240
|
|
|
20292
|
-
var kCustomPromisifiedSymbol = hasSymbols$
|
|
20293
|
-
var kCustomPromisifyArgsSymbol = hasSymbols$
|
|
20241
|
+
var kCustomPromisifiedSymbol = hasSymbols$3 ? Symbol('util.promisify.custom') : null;
|
|
20242
|
+
var kCustomPromisifyArgsSymbol = hasSymbols$3 ? Symbol('customPromisifyArgs') : null;
|
|
20294
20243
|
|
|
20295
20244
|
var implementation$3 = function promisify(orig) {
|
|
20296
20245
|
if (typeof orig !== 'function') {
|
|
@@ -20300,7 +20249,7 @@ var implementation$3 = function promisify(orig) {
|
|
|
20300
20249
|
throw error;
|
|
20301
20250
|
}
|
|
20302
20251
|
|
|
20303
|
-
if (hasSymbols$
|
|
20252
|
+
if (hasSymbols$3 && orig[kCustomPromisifiedSymbol]) {
|
|
20304
20253
|
var customFunction = orig[kCustomPromisifiedSymbol];
|
|
20305
20254
|
if (typeof customFunction !== 'function') {
|
|
20306
20255
|
throw new TypeError('The [util.promisify.custom] property must be a function');
|
|
@@ -21599,18 +21548,18 @@ var renderAuthor$1 = function renderAuthor(authorName, authorURL, index, length)
|
|
|
21599
21548
|
};
|
|
21600
21549
|
|
|
21601
21550
|
var getContentPlacementUrl = function getContentPlacementUrl(cp) {
|
|
21602
|
-
|
|
21603
|
-
|
|
21604
|
-
|
|
21605
|
-
|
|
21551
|
+
var cp_url = '';
|
|
21552
|
+
if (cp.ancestor && typeof cp.ancestor == 'string') {
|
|
21553
|
+
cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
|
|
21554
|
+
}
|
|
21606
21555
|
|
|
21607
|
-
|
|
21608
|
-
|
|
21609
|
-
|
|
21556
|
+
if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
|
|
21557
|
+
cp_url += (cp_url === '' ? '' : '/') + cp.parent;
|
|
21558
|
+
}
|
|
21610
21559
|
|
|
21611
|
-
|
|
21560
|
+
cp_url += (cp_url === '' ? '' : '/') + cp.path;
|
|
21612
21561
|
|
|
21613
|
-
|
|
21562
|
+
return cp_url;
|
|
21614
21563
|
};
|
|
21615
21564
|
|
|
21616
21565
|
var getArticleSummary$1 = function getArticleSummary(article) {
|
|
@@ -21637,7 +21586,7 @@ var getArticleSummary$1 = function getArticleSummary(article) {
|
|
|
21637
21586
|
};
|
|
21638
21587
|
|
|
21639
21588
|
function urlFor$5(client, source) {
|
|
21640
|
-
|
|
21589
|
+
return index.imageUrlBuilder(client).image(source);
|
|
21641
21590
|
}
|
|
21642
21591
|
|
|
21643
21592
|
var getDocumentGroupUrl = function getDocumentGroupUrl(docGroup) {
|
|
@@ -21706,9 +21655,9 @@ var DocumentGroup = function DocumentGroup(_ref) {
|
|
|
21706
21655
|
style: { display: 'flex', flexDirection: 'column', padding: '0 1rem', justifyContent: thumbnailUrl ? 'center' : 'flex-start', alignItems: 'center' } },
|
|
21707
21656
|
thumbnailUrl && React__default.createElement('img', { style: { maxWidth: '220px', maxHeight: '100px', marginTop: '1rem' }, src: thumbnailUrl, alt: name }),
|
|
21708
21657
|
React__default.createElement('p', {
|
|
21709
|
-
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main.
|
|
21658
|
+
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main.main_36 ? 'left' : 'right', marginTop: '.25rem' },
|
|
21710
21659
|
dangerouslySetInnerHTML: { __html: name } }),
|
|
21711
|
-
main.
|
|
21660
|
+
main.main_36 && !thumbnailUrl && React__default.createElement(
|
|
21712
21661
|
'style',
|
|
21713
21662
|
{ jsx: 'true' },
|
|
21714
21663
|
'\n a.doc-group {\n display: block !important;\n padding: 0!important;\n }\n '
|
|
@@ -22291,7 +22240,7 @@ var Article$1 = function Article(props) {
|
|
|
22291
22240
|
React__default.createElement(
|
|
22292
22241
|
'div',
|
|
22293
22242
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
22294
|
-
main.
|
|
22243
|
+
main.main_36 && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
22295
22244
|
if (index === 0) {
|
|
22296
22245
|
return React__default.createElement(
|
|
22297
22246
|
'div',
|
|
@@ -22346,7 +22295,7 @@ var Article$1 = function Article(props) {
|
|
|
22346
22295
|
renderIsiContent(props.article)
|
|
22347
22296
|
)
|
|
22348
22297
|
),
|
|
22349
|
-
main.
|
|
22298
|
+
main.main_36 && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
22350
22299
|
if (index > 0) {
|
|
22351
22300
|
return React__default.createElement(
|
|
22352
22301
|
'div',
|
|
@@ -22397,7 +22346,7 @@ exports.default = function (obj, key, value) {
|
|
|
22397
22346
|
};
|
|
22398
22347
|
});
|
|
22399
22348
|
|
|
22400
|
-
var _defineProperty
|
|
22349
|
+
var _defineProperty = _commonjsHelpers.unwrapExports(defineProperty$1);
|
|
22401
22350
|
|
|
22402
22351
|
var getTargeting = function getTargeting(props) {
|
|
22403
22352
|
var article = props.article,
|
|
@@ -22513,7 +22462,7 @@ var ArticleQueue$1 = function ArticleQueue(props) {
|
|
|
22513
22462
|
|
|
22514
22463
|
var refreshAD = function refreshAD(path) {
|
|
22515
22464
|
|
|
22516
|
-
if (!main.
|
|
22465
|
+
if (!main.main_36) {
|
|
22517
22466
|
var activeArticle = queueData.find(function (item) {
|
|
22518
22467
|
return item.url.current === path;
|
|
22519
22468
|
});
|
|
@@ -22707,7 +22656,7 @@ var Articles = function Articles(props) {
|
|
|
22707
22656
|
Ads: WAds,
|
|
22708
22657
|
regionalPages: regionalPages,
|
|
22709
22658
|
nationalPage: nationalPage
|
|
22710
|
-
}, _defineProperty
|
|
22659
|
+
}, _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));
|
|
22711
22660
|
};
|
|
22712
22661
|
|
|
22713
22662
|
var View = function View(props) {
|