@mjhls/mjh-framework 1.0.250 → 1.0.252
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 +171 -171
- package/dist/cjs/{AdSlot-58638d45.js → AdSlot-9f3af35d.js} +4 -2
- package/dist/cjs/DeckContent.js +10 -10
- package/dist/cjs/DeckQueue.js +1 -1
- package/dist/cjs/{GridContent-85c7b623.js → GridContent-007573a0.js} +3 -3
- package/dist/cjs/GridContent.js +3 -3
- package/dist/cjs/IssueContentDeck.js +1 -1
- package/dist/cjs/IssueDeck.js +1 -1
- package/dist/cjs/MasterDeck.js +11 -11
- package/dist/cjs/{Normal-77dfd44a.js → Normal-503df349.js} +30 -30
- package/dist/cjs/PublicationDeck.js +1 -1
- package/dist/cjs/QueueDeckExpanded.js +1 -1
- package/dist/cjs/{TaxonomyCard-b5074d6e.js → TaxonomyCard-e3566492.js} +1 -1
- package/dist/cjs/TaxonomyCard.js +2 -2
- package/dist/cjs/TemplateNormal.js +2 -2
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/VideoSeriesListing.js +1 -1
- package/dist/cjs/{YoutubeGroup-fd44f8a0.js → YoutubeGroup-5f480446.js} +4 -4
- package/dist/cjs/YoutubeGroup.js +1 -1
- package/dist/cjs/{index-39beccb3.js → index-be0c82be.js} +1 -2
- package/dist/cjs/index.js +738 -542
- package/dist/esm/{AdSlot-1e5a6a2f.js → AdSlot-0f82b407.js} +4 -2
- package/dist/esm/DeckContent.js +10 -10
- package/dist/esm/DeckQueue.js +1 -1
- package/dist/esm/{GridContent-0ee59a38.js → GridContent-9e96754b.js} +2 -2
- package/dist/esm/GridContent.js +3 -3
- package/dist/esm/IssueContentDeck.js +1 -1
- package/dist/esm/IssueDeck.js +1 -1
- package/dist/esm/MasterDeck.js +11 -11
- package/dist/esm/{Normal-48ff37c3.js → Normal-dfda02dc.js} +30 -30
- package/dist/esm/PublicationDeck.js +1 -1
- package/dist/esm/QueueDeckExpanded.js +1 -1
- package/dist/esm/{TaxonomyCard-ee1a22ae.js → TaxonomyCard-2d0ab635.js} +1 -1
- package/dist/esm/TaxonomyCard.js +2 -2
- package/dist/esm/TemplateNormal.js +2 -2
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/VideoSeriesListing.js +1 -1
- package/dist/esm/{YoutubeGroup-1b3eca73.js → YoutubeGroup-78d93d44.js} +4 -4
- package/dist/esm/YoutubeGroup.js +1 -1
- package/dist/esm/{index-3849e3fe.js → index-73819142.js} +1 -2
- package/dist/esm/index.js +740 -547
- package/package.json +102 -102
package/dist/cjs/index.js
CHANGED
|
@@ -26,21 +26,21 @@ var Link = _interopDefault(require('next/link'));
|
|
|
26
26
|
var Router = require('next/router');
|
|
27
27
|
var Router__default = _interopDefault(Router);
|
|
28
28
|
require('react-dom');
|
|
29
|
-
var index$1 = require('./index-
|
|
29
|
+
var index$1 = require('./index-be0c82be.js');
|
|
30
30
|
require('./index-fa0fb52c.js');
|
|
31
31
|
var entities = require('./entities-310b46ee.js');
|
|
32
32
|
var slicedToArray = require('./slicedToArray-e38fb29d.js');
|
|
33
|
-
var AdSlot = require('./AdSlot-
|
|
33
|
+
var AdSlot = require('./AdSlot-9f3af35d.js');
|
|
34
34
|
require('./promise-b96c61f8.js');
|
|
35
35
|
var DeckContent = require('./DeckContent.js');
|
|
36
36
|
require('./get-1f91592f.js');
|
|
37
|
-
var GridContent = require('./GridContent-
|
|
37
|
+
var GridContent = require('./GridContent-007573a0.js');
|
|
38
38
|
var DeckQueue = require('./DeckQueue.js');
|
|
39
39
|
require('react-bootstrap/Media');
|
|
40
40
|
var ThumbnailCard = require('./ThumbnailCard.js');
|
|
41
|
-
var TaxonomyCard = require('./TaxonomyCard-
|
|
41
|
+
var TaxonomyCard = require('./TaxonomyCard-e3566492.js');
|
|
42
42
|
var GroupDeck = require('./GroupDeck.js');
|
|
43
|
-
var YoutubeGroup = require('./YoutubeGroup-
|
|
43
|
+
var YoutubeGroup = require('./YoutubeGroup-5f480446.js');
|
|
44
44
|
var reactBootstrap = require('react-bootstrap');
|
|
45
45
|
var QueueDeckExpanded = require('./QueueDeckExpanded.js');
|
|
46
46
|
var index_esm = require('./index.esm-340d3792.js');
|
|
@@ -52,7 +52,7 @@ var IssueDeck = require('./IssueDeck.js');
|
|
|
52
52
|
require('react-bootstrap/Badge');
|
|
53
53
|
var IssueContentDeck = require('./IssueContentDeck.js');
|
|
54
54
|
var Spinner = _interopDefault(require('react-bootstrap/Spinner'));
|
|
55
|
-
var TemplateNormal = require('./Normal-
|
|
55
|
+
var TemplateNormal = require('./Normal-503df349.js');
|
|
56
56
|
require('react-bootstrap/ListGroup');
|
|
57
57
|
var Head = _interopDefault(require('next/head'));
|
|
58
58
|
var Accordion = _interopDefault(require('react-bootstrap/Accordion'));
|
|
@@ -63,6 +63,7 @@ require('react-bootstrap/Navbar');
|
|
|
63
63
|
require('react-bootstrap/NavDropdown');
|
|
64
64
|
require('react-bootstrap/Form');
|
|
65
65
|
require('react-bootstrap/FormControl');
|
|
66
|
+
var Modal = _interopDefault(require('react-bootstrap/Modal'));
|
|
66
67
|
var Pagination = _interopDefault(require('react-bootstrap/Pagination'));
|
|
67
68
|
var Carousel = _interopDefault(require('react-bootstrap/Carousel'));
|
|
68
69
|
var Breadcrumb = _interopDefault(require('react-bootstrap/Breadcrumb'));
|
|
@@ -2839,6 +2840,210 @@ var AdSlotsProvider = function AdSlotsProvider(_ref) {
|
|
|
2839
2840
|
);
|
|
2840
2841
|
};
|
|
2841
2842
|
|
|
2843
|
+
var ADFloatingFooter = function ADFloatingFooter(_ref) {
|
|
2844
|
+
var title = _ref.title,
|
|
2845
|
+
floatingAd = _ref.floatingAd,
|
|
2846
|
+
minScreenWidth = _ref.minScreenWidth;
|
|
2847
|
+
var className = floatingAd.className,
|
|
2848
|
+
slotId = floatingAd.slotId,
|
|
2849
|
+
adUnit = floatingAd.adUnit,
|
|
2850
|
+
_floatingAd$targeting = floatingAd.targeting,
|
|
2851
|
+
targeting = _floatingAd$targeting === undefined ? {} : _floatingAd$targeting,
|
|
2852
|
+
position = floatingAd.position,
|
|
2853
|
+
networkID = floatingAd.networkID,
|
|
2854
|
+
sizes = floatingAd.sizes;
|
|
2855
|
+
|
|
2856
|
+
var _useState = React.useState(false),
|
|
2857
|
+
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
2858
|
+
showAd = _useState2[0],
|
|
2859
|
+
setShowAd = _useState2[1];
|
|
2860
|
+
|
|
2861
|
+
var adTargeting = void 0;
|
|
2862
|
+
if (position && position.length > 0) {
|
|
2863
|
+
adTargeting = {
|
|
2864
|
+
content_placement: targeting.content_placement,
|
|
2865
|
+
document_url: targeting.document_url,
|
|
2866
|
+
pos: [position]
|
|
2867
|
+
};
|
|
2868
|
+
}
|
|
2869
|
+
|
|
2870
|
+
React.useEffect(function () {
|
|
2871
|
+
if (window && window.innerWidth >= minScreenWidth) {
|
|
2872
|
+
setShowAd(true);
|
|
2873
|
+
}
|
|
2874
|
+
}, [minScreenWidth]);
|
|
2875
|
+
|
|
2876
|
+
return React__default.createElement(
|
|
2877
|
+
React__default.Fragment,
|
|
2878
|
+
null,
|
|
2879
|
+
showAd && React__default.createElement(
|
|
2880
|
+
'div',
|
|
2881
|
+
{ className: 'floating-ad-wrapper ' + title },
|
|
2882
|
+
React__default.createElement(AdSlot.DFPAdSlot, { className: className, slotId: slotId, networkID: networkID, sizes: sizes, adUnit: adUnit, targeting: adTargeting, refreshFlag: false }),
|
|
2883
|
+
React__default.createElement(
|
|
2884
|
+
'div',
|
|
2885
|
+
{ className: 'closeButton', onClick: function onClick() {
|
|
2886
|
+
return setShowAd(false);
|
|
2887
|
+
} },
|
|
2888
|
+
'x'
|
|
2889
|
+
)
|
|
2890
|
+
),
|
|
2891
|
+
React__default.createElement(
|
|
2892
|
+
'style',
|
|
2893
|
+
{ jsx: 'true' },
|
|
2894
|
+
'\n .floating-ad-wrapper {\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 '
|
|
2895
|
+
)
|
|
2896
|
+
);
|
|
2897
|
+
};
|
|
2898
|
+
|
|
2899
|
+
var ADGutter = function ADGutter(_ref) {
|
|
2900
|
+
var title = _ref.title,
|
|
2901
|
+
gutterAd = _ref.gutterAd,
|
|
2902
|
+
minScreenWidth = _ref.minScreenWidth;
|
|
2903
|
+
var className = gutterAd.className,
|
|
2904
|
+
slotId = gutterAd.slotId,
|
|
2905
|
+
adUnit = gutterAd.adUnit,
|
|
2906
|
+
_gutterAd$targeting = gutterAd.targeting,
|
|
2907
|
+
targeting = _gutterAd$targeting === undefined ? {} : _gutterAd$targeting,
|
|
2908
|
+
position = gutterAd.position,
|
|
2909
|
+
networkID = gutterAd.networkID,
|
|
2910
|
+
sizes = gutterAd.sizes;
|
|
2911
|
+
|
|
2912
|
+
var _useState = React.useState(false),
|
|
2913
|
+
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
2914
|
+
showAd = _useState2[0],
|
|
2915
|
+
setShowAd = _useState2[1];
|
|
2916
|
+
|
|
2917
|
+
var adTargeting = void 0;
|
|
2918
|
+
if (position && position.length > 0) {
|
|
2919
|
+
adTargeting = {
|
|
2920
|
+
content_placement: targeting.content_placement,
|
|
2921
|
+
document_url: targeting.document_url,
|
|
2922
|
+
pos: [position]
|
|
2923
|
+
};
|
|
2924
|
+
}
|
|
2925
|
+
|
|
2926
|
+
React.useEffect(function () {
|
|
2927
|
+
if (window && window.innerWidth >= minScreenWidth) {
|
|
2928
|
+
setShowAd(true);
|
|
2929
|
+
}
|
|
2930
|
+
}, [minScreenWidth]);
|
|
2931
|
+
|
|
2932
|
+
if (showAd) {
|
|
2933
|
+
return React__default.createElement(
|
|
2934
|
+
React__default.Fragment,
|
|
2935
|
+
null,
|
|
2936
|
+
showAd && React__default.createElement(
|
|
2937
|
+
'div',
|
|
2938
|
+
{ className: 'gutter-ad-wrapper ' + title },
|
|
2939
|
+
React__default.createElement(
|
|
2940
|
+
'div',
|
|
2941
|
+
{ className: 'gutter-ad' },
|
|
2942
|
+
React__default.createElement(AdSlot.DFPAdSlot, { className: className, slotId: slotId, networkID: networkID, sizes: sizes, adUnit: adUnit, targeting: adTargeting, refreshFlag: false })
|
|
2943
|
+
)
|
|
2944
|
+
),
|
|
2945
|
+
React__default.createElement(
|
|
2946
|
+
'style',
|
|
2947
|
+
{ jsx: 'true' },
|
|
2948
|
+
'\n .gutter-ad-wrapper {\n position: fixed;\n width: 100%;\n height: 100%;\n z-index: 999;\n }\n .gutter-ad {\n width: 150px;\n position: relative;\n top: 50;\n }\n '
|
|
2949
|
+
)
|
|
2950
|
+
);
|
|
2951
|
+
} else return null;
|
|
2952
|
+
};
|
|
2953
|
+
|
|
2954
|
+
var ADWelcome = function ADWelcome(_ref) {
|
|
2955
|
+
var title = _ref.title,
|
|
2956
|
+
welcomeAd = _ref.welcomeAd,
|
|
2957
|
+
setFlag = _ref.setFlag,
|
|
2958
|
+
Website = _ref.Website,
|
|
2959
|
+
counter = _ref.counter;
|
|
2960
|
+
var className = welcomeAd.className,
|
|
2961
|
+
slotId = welcomeAd.slotId,
|
|
2962
|
+
adUnit = welcomeAd.adUnit,
|
|
2963
|
+
_welcomeAd$targeting = welcomeAd.targeting,
|
|
2964
|
+
targeting = _welcomeAd$targeting === undefined ? {} : _welcomeAd$targeting,
|
|
2965
|
+
position = welcomeAd.position,
|
|
2966
|
+
networkID = welcomeAd.networkID,
|
|
2967
|
+
sizes = welcomeAd.sizes;
|
|
2968
|
+
|
|
2969
|
+
|
|
2970
|
+
var adTargeting = void 0;
|
|
2971
|
+
if (position && position.length > 0) {
|
|
2972
|
+
adTargeting = {
|
|
2973
|
+
content_placement: targeting.content_placement,
|
|
2974
|
+
document_url: targeting.document_url,
|
|
2975
|
+
pos: [position]
|
|
2976
|
+
};
|
|
2977
|
+
}
|
|
2978
|
+
|
|
2979
|
+
var calculateTimeLeft = function calculateTimeLeft(timeLeft) {
|
|
2980
|
+
return --timeLeft;
|
|
2981
|
+
};
|
|
2982
|
+
|
|
2983
|
+
var _useState = React.useState(calculateTimeLeft(counter)),
|
|
2984
|
+
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
2985
|
+
timeLeft = _useState2[0],
|
|
2986
|
+
setTimeLeft = _useState2[1];
|
|
2987
|
+
|
|
2988
|
+
React.useEffect(function () {
|
|
2989
|
+
if (timeLeft > 0) {
|
|
2990
|
+
setTimeout(function () {
|
|
2991
|
+
setTimeLeft(calculateTimeLeft(timeLeft));
|
|
2992
|
+
}, 1000);
|
|
2993
|
+
} else {
|
|
2994
|
+
setFlag(true);
|
|
2995
|
+
}
|
|
2996
|
+
});
|
|
2997
|
+
|
|
2998
|
+
return React__default.createElement(
|
|
2999
|
+
Modal,
|
|
3000
|
+
{ show: true, 'aria-labelledby': 'contained-modal-title-vcenter', backdrop: 'static', style: { outline: 'none' }, dialogClassName: 'welcome-modal' },
|
|
3001
|
+
React__default.createElement(
|
|
3002
|
+
'div',
|
|
3003
|
+
{ className: 'right-top', style: { position: 'absolute', top: 0, right: 0, textAlign: 'center', margin: '2rem' } },
|
|
3004
|
+
React__default.createElement(
|
|
3005
|
+
'span',
|
|
3006
|
+
{
|
|
3007
|
+
className: 'continue-site',
|
|
3008
|
+
style: {
|
|
3009
|
+
fontSize: '1.2rem',
|
|
3010
|
+
fontWeight: 'bold',
|
|
3011
|
+
fontFamily: "'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'"
|
|
3012
|
+
},
|
|
3013
|
+
onClick: function onClick() {
|
|
3014
|
+
setFlag(true);
|
|
3015
|
+
} },
|
|
3016
|
+
'CONTINUE TO SITE >'
|
|
3017
|
+
),
|
|
3018
|
+
React__default.createElement(
|
|
3019
|
+
'p',
|
|
3020
|
+
{
|
|
3021
|
+
style: {
|
|
3022
|
+
fontSize: '0.8rem',
|
|
3023
|
+
fontFamily: "'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'"
|
|
3024
|
+
},
|
|
3025
|
+
className: 'timer-block' },
|
|
3026
|
+
'OR WAIT ' + timeLeft + ' SECS'
|
|
3027
|
+
)
|
|
3028
|
+
),
|
|
3029
|
+
React__default.createElement(
|
|
3030
|
+
'div',
|
|
3031
|
+
{ className: 'left-top', style: { position: 'absolute', top: 0, left: 0, maxWidth: '200px', margin: '2rem' } },
|
|
3032
|
+
React__default.createElement('img', { style: { width: '100%' }, src: Website.logo, alt: Website.title })
|
|
3033
|
+
),
|
|
3034
|
+
React__default.createElement(
|
|
3035
|
+
Modal.Body,
|
|
3036
|
+
{ className: title, style: { position: 'relative', width: '300px', height: '250px', margin: 'auto', top: '10rem' } },
|
|
3037
|
+
React__default.createElement(AdSlot.DFPAdSlot, { className: className, slotId: slotId, networkID: networkID, sizes: sizes, adUnit: adUnit, targeting: adTargeting, refreshFlag: false })
|
|
3038
|
+
),
|
|
3039
|
+
React__default.createElement(
|
|
3040
|
+
'style',
|
|
3041
|
+
{ jsx: 'true' },
|
|
3042
|
+
'\n .continue-site:hover {\n cursor: pointer;\n }\n\n @media (min-width: 1200px) {\n .modal-backdrop {\n display: block;\n }\n .modal-content {\n display: block;\n }\n }\n '
|
|
3043
|
+
)
|
|
3044
|
+
);
|
|
3045
|
+
};
|
|
3046
|
+
|
|
2842
3047
|
var urlFor$1 = function urlFor(source, client) {
|
|
2843
3048
|
var builder = index$1.imageUrlBuilder(client);
|
|
2844
3049
|
return builder.image(source).auto('format');
|
|
@@ -3048,18 +3253,21 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
3048
3253
|
);
|
|
3049
3254
|
};
|
|
3050
3255
|
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3256
|
+
var isArray = Array.isArray;
|
|
3257
|
+
var keyList = Object.keys;
|
|
3258
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
3054
3259
|
|
|
3055
3260
|
var fastDeepEqual = function equal(a, b) {
|
|
3056
3261
|
if (a === b) return true;
|
|
3057
3262
|
|
|
3058
3263
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
3059
|
-
|
|
3264
|
+
var arrA = isArray(a)
|
|
3265
|
+
, arrB = isArray(b)
|
|
3266
|
+
, i
|
|
3267
|
+
, length
|
|
3268
|
+
, key;
|
|
3060
3269
|
|
|
3061
|
-
|
|
3062
|
-
if (Array.isArray(a)) {
|
|
3270
|
+
if (arrA && arrB) {
|
|
3063
3271
|
length = a.length;
|
|
3064
3272
|
if (length != b.length) return false;
|
|
3065
3273
|
for (i = length; i-- !== 0;)
|
|
@@ -3067,29 +3275,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
3067
3275
|
return true;
|
|
3068
3276
|
}
|
|
3069
3277
|
|
|
3278
|
+
if (arrA != arrB) return false;
|
|
3070
3279
|
|
|
3280
|
+
var dateA = a instanceof Date
|
|
3281
|
+
, dateB = b instanceof Date;
|
|
3282
|
+
if (dateA != dateB) return false;
|
|
3283
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
3071
3284
|
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
if (
|
|
3285
|
+
var regexpA = a instanceof RegExp
|
|
3286
|
+
, regexpB = b instanceof RegExp;
|
|
3287
|
+
if (regexpA != regexpB) return false;
|
|
3288
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
3075
3289
|
|
|
3076
|
-
keys =
|
|
3290
|
+
var keys = keyList(a);
|
|
3077
3291
|
length = keys.length;
|
|
3078
|
-
|
|
3292
|
+
|
|
3293
|
+
if (length !== keyList(b).length)
|
|
3294
|
+
return false;
|
|
3079
3295
|
|
|
3080
3296
|
for (i = length; i-- !== 0;)
|
|
3081
|
-
if (!
|
|
3297
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
3082
3298
|
|
|
3083
3299
|
for (i = length; i-- !== 0;) {
|
|
3084
|
-
|
|
3085
|
-
|
|
3300
|
+
key = keys[i];
|
|
3086
3301
|
if (!equal(a[key], b[key])) return false;
|
|
3087
3302
|
}
|
|
3088
3303
|
|
|
3089
3304
|
return true;
|
|
3090
3305
|
}
|
|
3091
3306
|
|
|
3092
|
-
// true if both NaN, false otherwise
|
|
3093
3307
|
return a!==a && b!==b;
|
|
3094
3308
|
};
|
|
3095
3309
|
|
|
@@ -4112,7 +4326,7 @@ function formatValue(ctx, value, recurseTimes) {
|
|
|
4112
4326
|
var base = '', array = false, braces = ['{', '}'];
|
|
4113
4327
|
|
|
4114
4328
|
// Make Array say that they are Array
|
|
4115
|
-
if (isArray(value)) {
|
|
4329
|
+
if (isArray$1(value)) {
|
|
4116
4330
|
array = true;
|
|
4117
4331
|
braces = ['[', ']'];
|
|
4118
4332
|
}
|
|
@@ -4291,7 +4505,7 @@ function reduceToSingleString(output, base, braces) {
|
|
|
4291
4505
|
|
|
4292
4506
|
// NOTE: These type checking functions intentionally don't use `instanceof`
|
|
4293
4507
|
// because it is fragile and can be easily faked with `Object.create()`.
|
|
4294
|
-
function isArray(ar) {
|
|
4508
|
+
function isArray$1(ar) {
|
|
4295
4509
|
return Array.isArray(ar);
|
|
4296
4510
|
}
|
|
4297
4511
|
|
|
@@ -4418,7 +4632,7 @@ var util = {
|
|
|
4418
4632
|
isNullOrUndefined: isNullOrUndefined,
|
|
4419
4633
|
isNull: isNull,
|
|
4420
4634
|
isBoolean: isBoolean,
|
|
4421
|
-
isArray: isArray,
|
|
4635
|
+
isArray: isArray$1,
|
|
4422
4636
|
inspect: inspect,
|
|
4423
4637
|
deprecate: deprecate,
|
|
4424
4638
|
format: format,
|
|
@@ -5085,235 +5299,199 @@ module.exports = exports['default'];
|
|
|
5085
5299
|
|
|
5086
5300
|
var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
|
|
5087
5301
|
|
|
5088
|
-
function
|
|
5089
|
-
|
|
5090
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5091
|
-
|
|
5092
|
-
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); } }
|
|
5093
|
-
|
|
5094
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5095
|
-
|
|
5096
|
-
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); }; }
|
|
5097
|
-
|
|
5098
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5099
|
-
|
|
5100
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5302
|
+
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; }; }();
|
|
5101
5303
|
|
|
5102
|
-
function
|
|
5304
|
+
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; };
|
|
5103
5305
|
|
|
5104
|
-
function
|
|
5105
|
-
|
|
5106
|
-
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); }
|
|
5107
|
-
|
|
5108
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5306
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5109
5307
|
|
|
5110
|
-
function
|
|
5308
|
+
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; }
|
|
5111
5309
|
|
|
5112
|
-
function
|
|
5310
|
+
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; }
|
|
5113
5311
|
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
*
|
|
5117
|
-
*
|
|
5118
|
-
* @param {Object}
|
|
5119
|
-
* @param {Object} props
|
|
5312
|
+
/**
|
|
5313
|
+
* Check whether a `props` change should result in the video being updated.
|
|
5314
|
+
*
|
|
5315
|
+
* @param {Object} prevProps
|
|
5316
|
+
* @param {Object} props
|
|
5120
5317
|
*/
|
|
5121
|
-
|
|
5122
5318
|
function shouldUpdateVideo(prevProps, props) {
|
|
5123
5319
|
// A changing video should always trigger an update
|
|
5124
5320
|
if (prevProps.videoId !== props.videoId) {
|
|
5125
5321
|
return true;
|
|
5126
|
-
}
|
|
5127
|
-
// update.
|
|
5128
|
-
|
|
5322
|
+
}
|
|
5129
5323
|
|
|
5324
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
5325
|
+
// update.
|
|
5130
5326
|
var prevVars = prevProps.opts.playerVars || {};
|
|
5131
5327
|
var vars = props.opts.playerVars || {};
|
|
5328
|
+
|
|
5132
5329
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
5133
5330
|
}
|
|
5134
|
-
/**
|
|
5135
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
5136
|
-
* that require a player reset. The results can then be compared to see if a
|
|
5137
|
-
* player reset is necessary.
|
|
5138
|
-
*
|
|
5139
|
-
* @param {Object} opts
|
|
5140
|
-
*/
|
|
5141
|
-
|
|
5142
5331
|
|
|
5332
|
+
/**
|
|
5333
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
5334
|
+
* that require a player reset. The results can then be compared to see if a
|
|
5335
|
+
* player reset is necessary.
|
|
5336
|
+
*
|
|
5337
|
+
* @param {Object} opts
|
|
5338
|
+
*/
|
|
5143
5339
|
function filterResetOptions(opts) {
|
|
5144
|
-
return
|
|
5145
|
-
playerVars:
|
|
5340
|
+
return _extends({}, opts, {
|
|
5341
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
5146
5342
|
autoplay: 0,
|
|
5147
5343
|
start: 0,
|
|
5148
5344
|
end: 0
|
|
5149
5345
|
})
|
|
5150
5346
|
});
|
|
5151
5347
|
}
|
|
5152
|
-
/**
|
|
5153
|
-
* Check whether a `props` change should result in the player being reset.
|
|
5154
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
5155
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
5156
|
-
* those.
|
|
5157
|
-
*
|
|
5158
|
-
* @param {Object} prevProps
|
|
5159
|
-
* @param {Object} props
|
|
5160
|
-
*/
|
|
5161
|
-
|
|
5162
5348
|
|
|
5349
|
+
/**
|
|
5350
|
+
* Check whether a `props` change should result in the player being reset.
|
|
5351
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
5352
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
5353
|
+
* those.
|
|
5354
|
+
*
|
|
5355
|
+
* @param {Object} prevProps
|
|
5356
|
+
* @param {Object} props
|
|
5357
|
+
*/
|
|
5163
5358
|
function shouldResetPlayer(prevProps, props) {
|
|
5164
5359
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
5165
5360
|
}
|
|
5166
|
-
/**
|
|
5167
|
-
* Check whether a props change should result in an id or className update.
|
|
5168
|
-
*
|
|
5169
|
-
* @param {Object} prevProps
|
|
5170
|
-
* @param {Object} props
|
|
5171
|
-
*/
|
|
5172
|
-
|
|
5173
5361
|
|
|
5362
|
+
/**
|
|
5363
|
+
* Check whether a props change should result in an id or className update.
|
|
5364
|
+
*
|
|
5365
|
+
* @param {Object} prevProps
|
|
5366
|
+
* @param {Object} props
|
|
5367
|
+
*/
|
|
5174
5368
|
function shouldUpdatePlayer(prevProps, props) {
|
|
5175
5369
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
5176
5370
|
}
|
|
5177
5371
|
|
|
5178
|
-
var YouTube =
|
|
5372
|
+
var YouTube = function (_React$Component) {
|
|
5179
5373
|
_inherits(YouTube, _React$Component);
|
|
5180
5374
|
|
|
5181
|
-
var _super = _createSuper(YouTube);
|
|
5182
|
-
|
|
5183
|
-
/**
|
|
5184
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
5185
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
5186
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5187
|
-
*/
|
|
5188
5375
|
function YouTube(props) {
|
|
5189
|
-
var _this;
|
|
5190
|
-
|
|
5191
5376
|
_classCallCheck(this, YouTube);
|
|
5192
5377
|
|
|
5193
|
-
_this =
|
|
5378
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
5194
5379
|
|
|
5195
|
-
|
|
5380
|
+
_this.onPlayerReady = function (event) {
|
|
5196
5381
|
return _this.props.onReady(event);
|
|
5197
|
-
}
|
|
5382
|
+
};
|
|
5198
5383
|
|
|
5199
|
-
|
|
5384
|
+
_this.onPlayerError = function (event) {
|
|
5200
5385
|
return _this.props.onError(event);
|
|
5201
|
-
}
|
|
5386
|
+
};
|
|
5202
5387
|
|
|
5203
|
-
|
|
5388
|
+
_this.onPlayerStateChange = function (event) {
|
|
5204
5389
|
_this.props.onStateChange(event);
|
|
5205
|
-
|
|
5206
5390
|
switch (event.data) {
|
|
5391
|
+
|
|
5207
5392
|
case YouTube.PlayerState.ENDED:
|
|
5208
5393
|
_this.props.onEnd(event);
|
|
5209
|
-
|
|
5210
5394
|
break;
|
|
5211
5395
|
|
|
5212
5396
|
case YouTube.PlayerState.PLAYING:
|
|
5213
5397
|
_this.props.onPlay(event);
|
|
5214
|
-
|
|
5215
5398
|
break;
|
|
5216
5399
|
|
|
5217
5400
|
case YouTube.PlayerState.PAUSED:
|
|
5218
5401
|
_this.props.onPause(event);
|
|
5219
|
-
|
|
5220
5402
|
break;
|
|
5221
5403
|
}
|
|
5222
|
-
}
|
|
5404
|
+
};
|
|
5223
5405
|
|
|
5224
|
-
|
|
5406
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
5225
5407
|
return _this.props.onPlaybackRateChange(event);
|
|
5226
|
-
}
|
|
5408
|
+
};
|
|
5227
5409
|
|
|
5228
|
-
|
|
5410
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
5229
5411
|
return _this.props.onPlaybackQualityChange(event);
|
|
5230
|
-
}
|
|
5412
|
+
};
|
|
5231
5413
|
|
|
5232
|
-
|
|
5414
|
+
_this.createPlayer = function () {
|
|
5233
5415
|
// do not attempt to create a player server-side, it won't work
|
|
5234
|
-
if (typeof document === 'undefined') return;
|
|
5235
|
-
|
|
5236
|
-
var playerOpts =
|
|
5416
|
+
if (typeof document === 'undefined') return;
|
|
5417
|
+
// create player
|
|
5418
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
5237
5419
|
// preload the `videoId` video if one is already given
|
|
5238
5420
|
videoId: _this.props.videoId
|
|
5239
5421
|
});
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5422
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
5423
|
+
// attach event handlers
|
|
5243
5424
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
5244
|
-
|
|
5245
5425
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
5246
|
-
|
|
5247
5426
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
5248
|
-
|
|
5249
5427
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
5250
|
-
|
|
5251
5428
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
5252
|
-
}
|
|
5429
|
+
};
|
|
5253
5430
|
|
|
5254
|
-
|
|
5431
|
+
_this.resetPlayer = function () {
|
|
5255
5432
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
5256
|
-
}
|
|
5433
|
+
};
|
|
5257
5434
|
|
|
5258
|
-
|
|
5435
|
+
_this.updatePlayer = function () {
|
|
5259
5436
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
5260
5437
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
5261
5438
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
5262
5439
|
});
|
|
5263
|
-
}
|
|
5440
|
+
};
|
|
5264
5441
|
|
|
5265
|
-
|
|
5442
|
+
_this.updateVideo = function () {
|
|
5266
5443
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
5267
5444
|
_this.internalPlayer.stopVideo();
|
|
5268
|
-
|
|
5269
5445
|
return;
|
|
5270
|
-
}
|
|
5271
|
-
|
|
5446
|
+
}
|
|
5272
5447
|
|
|
5448
|
+
// set queueing options
|
|
5273
5449
|
var autoplay = false;
|
|
5274
5450
|
var opts = {
|
|
5275
5451
|
videoId: _this.props.videoId
|
|
5276
5452
|
};
|
|
5277
|
-
|
|
5278
5453
|
if ('playerVars' in _this.props.opts) {
|
|
5279
5454
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
5280
|
-
|
|
5281
5455
|
if ('start' in _this.props.opts.playerVars) {
|
|
5282
5456
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
5283
5457
|
}
|
|
5284
|
-
|
|
5285
5458
|
if ('end' in _this.props.opts.playerVars) {
|
|
5286
5459
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
5287
5460
|
}
|
|
5288
|
-
}
|
|
5289
|
-
|
|
5461
|
+
}
|
|
5290
5462
|
|
|
5463
|
+
// if autoplay is enabled loadVideoById
|
|
5291
5464
|
if (autoplay) {
|
|
5292
5465
|
_this.internalPlayer.loadVideoById(opts);
|
|
5293
|
-
|
|
5294
5466
|
return;
|
|
5295
|
-
}
|
|
5296
|
-
|
|
5297
|
-
|
|
5467
|
+
}
|
|
5468
|
+
// default behaviour just cues the video
|
|
5298
5469
|
_this.internalPlayer.cueVideoById(opts);
|
|
5299
|
-
}
|
|
5470
|
+
};
|
|
5300
5471
|
|
|
5301
|
-
|
|
5472
|
+
_this.refContainer = function (container) {
|
|
5302
5473
|
_this.container = container;
|
|
5303
|
-
}
|
|
5474
|
+
};
|
|
5304
5475
|
|
|
5305
5476
|
_this.container = null;
|
|
5306
5477
|
_this.internalPlayer = null;
|
|
5307
5478
|
return _this;
|
|
5308
5479
|
}
|
|
5309
5480
|
|
|
5481
|
+
/**
|
|
5482
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
5483
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
5484
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5485
|
+
*/
|
|
5486
|
+
|
|
5487
|
+
|
|
5310
5488
|
_createClass(YouTube, [{
|
|
5311
|
-
key:
|
|
5489
|
+
key: 'componentDidMount',
|
|
5312
5490
|
value: function componentDidMount() {
|
|
5313
5491
|
this.createPlayer();
|
|
5314
5492
|
}
|
|
5315
5493
|
}, {
|
|
5316
|
-
key:
|
|
5494
|
+
key: 'componentDidUpdate',
|
|
5317
5495
|
value: function componentDidUpdate(prevProps) {
|
|
5318
5496
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
5319
5497
|
this.updatePlayer();
|
|
@@ -5328,58 +5506,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
5328
5506
|
}
|
|
5329
5507
|
}
|
|
5330
5508
|
}, {
|
|
5331
|
-
key:
|
|
5509
|
+
key: 'componentWillUnmount',
|
|
5332
5510
|
value: function componentWillUnmount() {
|
|
5333
|
-
/**
|
|
5334
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
5335
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
5336
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
5337
|
-
* this method isn't quick enough to reset the container element.
|
|
5511
|
+
/**
|
|
5512
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
5513
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
5514
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
5515
|
+
* this method isn't quick enough to reset the container element.
|
|
5338
5516
|
*/
|
|
5339
5517
|
this.internalPlayer.destroy();
|
|
5340
5518
|
}
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
*
|
|
5344
|
-
*
|
|
5345
|
-
*
|
|
5519
|
+
|
|
5520
|
+
/**
|
|
5521
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
5522
|
+
*
|
|
5523
|
+
* @param {Object} event
|
|
5524
|
+
* @param {Object} target - player object
|
|
5525
|
+
*/
|
|
5526
|
+
|
|
5527
|
+
|
|
5528
|
+
/**
|
|
5529
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
5530
|
+
*
|
|
5531
|
+
* @param {Object} event
|
|
5532
|
+
* @param {Integer} data - error type
|
|
5533
|
+
* @param {Object} target - player object
|
|
5534
|
+
*/
|
|
5535
|
+
|
|
5536
|
+
|
|
5537
|
+
/**
|
|
5538
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5539
|
+
*
|
|
5540
|
+
* @param {Object} event
|
|
5541
|
+
* @param {Integer} data - status change type
|
|
5542
|
+
* @param {Object} target - actual YT player
|
|
5543
|
+
*/
|
|
5544
|
+
|
|
5545
|
+
|
|
5546
|
+
/**
|
|
5547
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
5548
|
+
*
|
|
5549
|
+
* @param {Object} event
|
|
5550
|
+
* @param {Float} data - playback rate
|
|
5551
|
+
* @param {Object} target - actual YT player
|
|
5552
|
+
*/
|
|
5553
|
+
|
|
5554
|
+
|
|
5555
|
+
/**
|
|
5556
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
5557
|
+
*
|
|
5558
|
+
* @param {Object} event
|
|
5559
|
+
* @param {String} data - playback quality
|
|
5560
|
+
* @param {Object} target - actual YT player
|
|
5561
|
+
*/
|
|
5562
|
+
|
|
5563
|
+
|
|
5564
|
+
/**
|
|
5565
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
5566
|
+
*/
|
|
5567
|
+
|
|
5568
|
+
|
|
5569
|
+
/**
|
|
5570
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
5571
|
+
*/
|
|
5572
|
+
|
|
5573
|
+
|
|
5574
|
+
/**
|
|
5575
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
5576
|
+
* React should update this automatically but since the Youtube Player API
|
|
5577
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
5578
|
+
*/
|
|
5579
|
+
|
|
5580
|
+
|
|
5581
|
+
/**
|
|
5582
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
5583
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
5584
|
+
* Youtube Player API methods to update the video.
|
|
5346
5585
|
*/
|
|
5347
5586
|
|
|
5348
5587
|
}, {
|
|
5349
|
-
key:
|
|
5588
|
+
key: 'render',
|
|
5350
5589
|
value: function render() {
|
|
5351
|
-
return
|
|
5352
|
-
|
|
5353
|
-
|
|
5354
|
-
id: this.props.id,
|
|
5355
|
-
|
|
5356
|
-
ref: this.refContainer
|
|
5357
|
-
}));
|
|
5590
|
+
return React__default.createElement(
|
|
5591
|
+
'div',
|
|
5592
|
+
{ className: this.props.containerClassName },
|
|
5593
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
5594
|
+
);
|
|
5358
5595
|
}
|
|
5359
5596
|
}]);
|
|
5360
5597
|
|
|
5361
5598
|
return YouTube;
|
|
5362
5599
|
}(React__default.Component);
|
|
5363
5600
|
|
|
5364
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
5365
|
-
UNSTARTED: -1,
|
|
5366
|
-
ENDED: 0,
|
|
5367
|
-
PLAYING: 1,
|
|
5368
|
-
PAUSED: 2,
|
|
5369
|
-
BUFFERING: 3,
|
|
5370
|
-
CUED: 5
|
|
5371
|
-
});
|
|
5372
|
-
|
|
5373
5601
|
YouTube.propTypes = {
|
|
5374
5602
|
videoId: PropTypes.string,
|
|
5603
|
+
|
|
5375
5604
|
// custom ID for player element
|
|
5376
5605
|
id: PropTypes.string,
|
|
5606
|
+
|
|
5377
5607
|
// custom class name for player element
|
|
5378
5608
|
className: PropTypes.string,
|
|
5379
5609
|
// custom class name for player container element
|
|
5380
5610
|
containerClassName: PropTypes.string,
|
|
5611
|
+
|
|
5381
5612
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
5382
5613
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
5614
|
+
|
|
5383
5615
|
// event subscriptions
|
|
5384
5616
|
onReady: PropTypes.func,
|
|
5385
5617
|
onError: PropTypes.func,
|
|
@@ -5391,7 +5623,6 @@ YouTube.propTypes = {
|
|
|
5391
5623
|
onPlaybackQualityChange: PropTypes.func
|
|
5392
5624
|
};
|
|
5393
5625
|
YouTube.defaultProps = {
|
|
5394
|
-
videoId: null,
|
|
5395
5626
|
id: null,
|
|
5396
5627
|
className: null,
|
|
5397
5628
|
opts: {},
|
|
@@ -5405,6 +5636,14 @@ YouTube.defaultProps = {
|
|
|
5405
5636
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
5406
5637
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
5407
5638
|
};
|
|
5639
|
+
YouTube.PlayerState = {
|
|
5640
|
+
UNSTARTED: -1,
|
|
5641
|
+
ENDED: 0,
|
|
5642
|
+
PLAYING: 1,
|
|
5643
|
+
PAUSED: 2,
|
|
5644
|
+
BUFFERING: 3,
|
|
5645
|
+
CUED: 5
|
|
5646
|
+
};
|
|
5408
5647
|
|
|
5409
5648
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
5410
5649
|
var url = _ref.url;
|
|
@@ -6428,8 +6667,8 @@ var window_1 = win;
|
|
|
6428
6667
|
|
|
6429
6668
|
/*! @name @brightcove/react-player-loader @version 1.4.0 @license Apache-2.0 */
|
|
6430
6669
|
|
|
6431
|
-
function _extends() {
|
|
6432
|
-
_extends = Object.assign || function (target) {
|
|
6670
|
+
function _extends$1() {
|
|
6671
|
+
_extends$1 = Object.assign || function (target) {
|
|
6433
6672
|
for (var i = 1; i < arguments.length; i++) {
|
|
6434
6673
|
var source = arguments[i];
|
|
6435
6674
|
|
|
@@ -6443,7 +6682,7 @@ function _extends() {
|
|
|
6443
6682
|
return target;
|
|
6444
6683
|
};
|
|
6445
6684
|
|
|
6446
|
-
return _extends.apply(this, arguments);
|
|
6685
|
+
return _extends$1.apply(this, arguments);
|
|
6447
6686
|
}
|
|
6448
6687
|
|
|
6449
6688
|
function _inheritsLoose(subClass, superClass) {
|
|
@@ -6452,7 +6691,7 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
6452
6691
|
subClass.__proto__ = superClass;
|
|
6453
6692
|
}
|
|
6454
6693
|
|
|
6455
|
-
function _assertThisInitialized
|
|
6694
|
+
function _assertThisInitialized(self) {
|
|
6456
6695
|
if (self === void 0) {
|
|
6457
6696
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
6458
6697
|
}
|
|
@@ -6462,8 +6701,8 @@ function _assertThisInitialized$1(self) {
|
|
|
6462
6701
|
|
|
6463
6702
|
/*! @name @brightcove/player-loader @version 1.7.1 @license Apache-2.0 */
|
|
6464
6703
|
|
|
6465
|
-
function _extends$1() {
|
|
6466
|
-
_extends$1 = Object.assign || function (target) {
|
|
6704
|
+
function _extends$1$1() {
|
|
6705
|
+
_extends$1$1 = Object.assign || function (target) {
|
|
6467
6706
|
for (var i = 1; i < arguments.length; i++) {
|
|
6468
6707
|
var source = arguments[i];
|
|
6469
6708
|
|
|
@@ -6477,7 +6716,7 @@ function _extends$1() {
|
|
|
6477
6716
|
return target;
|
|
6478
6717
|
};
|
|
6479
6718
|
|
|
6480
|
-
return _extends$1.apply(this, arguments);
|
|
6719
|
+
return _extends$1$1.apply(this, arguments);
|
|
6481
6720
|
}
|
|
6482
6721
|
|
|
6483
6722
|
var version$1 = "1.7.1";
|
|
@@ -6485,7 +6724,7 @@ var version$1 = "1.7.1";
|
|
|
6485
6724
|
/*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */
|
|
6486
6725
|
var version$1$1 = "1.2.0";
|
|
6487
6726
|
|
|
6488
|
-
var _typeof
|
|
6727
|
+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
|
6489
6728
|
return typeof obj;
|
|
6490
6729
|
} : function (obj) {
|
|
6491
6730
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
@@ -6620,7 +6859,7 @@ var brightcovePlayerUrl = function brightcovePlayerUrl(_ref) {
|
|
|
6620
6859
|
|
|
6621
6860
|
var qs = '';
|
|
6622
6861
|
|
|
6623
|
-
if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof
|
|
6862
|
+
if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof(queryParams)) === 'object') {
|
|
6624
6863
|
qs = getQueryString(queryParams);
|
|
6625
6864
|
}
|
|
6626
6865
|
|
|
@@ -6854,7 +7093,7 @@ var wrapResponsive = function wrapResponsive(embedType, embedOptions, el) {
|
|
|
6854
7093
|
el.style.width = '100%';
|
|
6855
7094
|
el.style.height = '100%';
|
|
6856
7095
|
|
|
6857
|
-
var responsive = _extends$1({
|
|
7096
|
+
var responsive = _extends$1$1({
|
|
6858
7097
|
aspectRatio: DEFAULT_ASPECT_RATIO,
|
|
6859
7098
|
iframeHorizontalPlaylist: DEFAULT_IFRAME_HORIZONTAL_PLAYLIST,
|
|
6860
7099
|
maxWidth: DEFAULT_MAX_WIDTH
|
|
@@ -7539,7 +7778,7 @@ var loadPlayer = function loadPlayer(params, resolve, reject) {
|
|
|
7539
7778
|
|
|
7540
7779
|
|
|
7541
7780
|
var brightcovePlayerLoader = function brightcovePlayerLoader(parameters) {
|
|
7542
|
-
var params = _extends$1({}, DEFAULTS, parameters);
|
|
7781
|
+
var params = _extends$1$1({}, DEFAULTS, parameters);
|
|
7543
7782
|
|
|
7544
7783
|
var Promise = params.Promise,
|
|
7545
7784
|
onSuccess = params.onSuccess,
|
|
@@ -7681,7 +7920,7 @@ function (_React$Component) {
|
|
|
7681
7920
|
_this.refNode = ref;
|
|
7682
7921
|
};
|
|
7683
7922
|
|
|
7684
|
-
_this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized
|
|
7923
|
+
_this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized(_this));
|
|
7685
7924
|
return _this;
|
|
7686
7925
|
}
|
|
7687
7926
|
/**
|
|
@@ -7702,7 +7941,7 @@ function (_React$Component) {
|
|
|
7702
7941
|
var userSuccess = this.props.onSuccess;
|
|
7703
7942
|
var userFailure = this.props.onFailure;
|
|
7704
7943
|
|
|
7705
|
-
var options = _extends({}, this.props, {
|
|
7944
|
+
var options = _extends$1({}, this.props, {
|
|
7706
7945
|
refNode: this.refNode,
|
|
7707
7946
|
refNodeInsert: 'append',
|
|
7708
7947
|
onSuccess: function onSuccess(_ref) {
|
|
@@ -8011,7 +8250,7 @@ function (_React$Component) {
|
|
|
8011
8250
|
;
|
|
8012
8251
|
|
|
8013
8252
|
_proto.render = function render() {
|
|
8014
|
-
var props = _extends({
|
|
8253
|
+
var props = _extends$1({
|
|
8015
8254
|
className: 'brightcove-react-player-loader'
|
|
8016
8255
|
}, this.props.attrs, {
|
|
8017
8256
|
ref: this.setRefNode
|
|
@@ -8425,17 +8664,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
8425
8664
|
|
|
8426
8665
|
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; }
|
|
8427
8666
|
|
|
8428
|
-
function
|
|
8429
|
-
|
|
8430
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8431
|
-
|
|
8432
|
-
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."); }
|
|
8667
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
8433
8668
|
|
|
8434
|
-
function
|
|
8669
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
8435
8670
|
|
|
8436
|
-
function
|
|
8437
|
-
|
|
8438
|
-
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; }
|
|
8671
|
+
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; }
|
|
8439
8672
|
|
|
8440
8673
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8441
8674
|
|
|
@@ -8565,12 +8798,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
8565
8798
|
|
|
8566
8799
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
8567
8800
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
8568
|
-
|
|
8569
|
-
var
|
|
8570
|
-
|
|
8801
|
+
var _iteratorNormalCompletion = true;
|
|
8802
|
+
var _didIteratorError = false;
|
|
8803
|
+
var _iteratorError = undefined;
|
|
8571
8804
|
|
|
8572
8805
|
try {
|
|
8573
|
-
for (_iterator.
|
|
8806
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
8574
8807
|
var p = _step.value;
|
|
8575
8808
|
|
|
8576
8809
|
if (props$1[p]) {
|
|
@@ -8585,9 +8818,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
8585
8818
|
}
|
|
8586
8819
|
}
|
|
8587
8820
|
} catch (err) {
|
|
8588
|
-
|
|
8821
|
+
_didIteratorError = true;
|
|
8822
|
+
_iteratorError = err;
|
|
8589
8823
|
} finally {
|
|
8590
|
-
|
|
8824
|
+
try {
|
|
8825
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
8826
|
+
_iterator["return"]();
|
|
8827
|
+
}
|
|
8828
|
+
} finally {
|
|
8829
|
+
if (_didIteratorError) {
|
|
8830
|
+
throw _iteratorError;
|
|
8831
|
+
}
|
|
8832
|
+
}
|
|
8591
8833
|
}
|
|
8592
8834
|
|
|
8593
8835
|
return config;
|
|
@@ -8734,16 +8976,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
8734
8976
|
|
|
8735
8977
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
8736
8978
|
|
|
8737
|
-
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); }; }
|
|
8738
|
-
|
|
8739
8979
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
8740
8980
|
|
|
8741
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
8742
|
-
|
|
8743
|
-
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; } }
|
|
8744
|
-
|
|
8745
8981
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8746
8982
|
|
|
8983
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
8984
|
+
|
|
8747
8985
|
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); }
|
|
8748
8986
|
|
|
8749
8987
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -8752,12 +8990,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
8752
8990
|
|
|
8753
8991
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
8754
8992
|
|
|
8755
|
-
var Player =
|
|
8993
|
+
var Player =
|
|
8994
|
+
/*#__PURE__*/
|
|
8995
|
+
function (_Component) {
|
|
8756
8996
|
_inherits(Player, _Component);
|
|
8757
8997
|
|
|
8758
|
-
var _super = _createSuper(Player);
|
|
8759
|
-
|
|
8760
8998
|
function Player() {
|
|
8999
|
+
var _getPrototypeOf2;
|
|
9000
|
+
|
|
8761
9001
|
var _this;
|
|
8762
9002
|
|
|
8763
9003
|
_classCallCheck(this, Player);
|
|
@@ -8766,7 +9006,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
8766
9006
|
_args[_key] = arguments[_key];
|
|
8767
9007
|
}
|
|
8768
9008
|
|
|
8769
|
-
_this =
|
|
9009
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
8770
9010
|
|
|
8771
9011
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
8772
9012
|
|
|
@@ -9091,7 +9331,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
9091
9331
|
return null;
|
|
9092
9332
|
}
|
|
9093
9333
|
|
|
9094
|
-
return
|
|
9334
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
9095
9335
|
ref: this.ref,
|
|
9096
9336
|
onReady: this.handleReady,
|
|
9097
9337
|
onPlay: this.handlePlay,
|
|
@@ -9152,16 +9392,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9152
9392
|
|
|
9153
9393
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9154
9394
|
|
|
9155
|
-
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); }; }
|
|
9156
|
-
|
|
9157
9395
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9158
9396
|
|
|
9159
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9160
|
-
|
|
9161
|
-
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; } }
|
|
9162
|
-
|
|
9163
9397
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9164
9398
|
|
|
9399
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9400
|
+
|
|
9165
9401
|
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); }
|
|
9166
9402
|
|
|
9167
9403
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -9173,12 +9409,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
9173
9409
|
function createSinglePlayer(activePlayer) {
|
|
9174
9410
|
var _class, _temp;
|
|
9175
9411
|
|
|
9176
|
-
return _temp = _class =
|
|
9412
|
+
return _temp = _class =
|
|
9413
|
+
/*#__PURE__*/
|
|
9414
|
+
function (_Component) {
|
|
9177
9415
|
_inherits(SinglePlayer, _Component);
|
|
9178
9416
|
|
|
9179
|
-
var _super = _createSuper(SinglePlayer);
|
|
9180
|
-
|
|
9181
9417
|
function SinglePlayer() {
|
|
9418
|
+
var _getPrototypeOf2;
|
|
9419
|
+
|
|
9182
9420
|
var _this;
|
|
9183
9421
|
|
|
9184
9422
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -9187,7 +9425,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
9187
9425
|
args[_key] = arguments[_key];
|
|
9188
9426
|
}
|
|
9189
9427
|
|
|
9190
|
-
_this =
|
|
9428
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
9191
9429
|
|
|
9192
9430
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
9193
9431
|
|
|
@@ -9255,12 +9493,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
9255
9493
|
height = _this$props.height,
|
|
9256
9494
|
Wrapper = _this$props.wrapper;
|
|
9257
9495
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
9258
|
-
return
|
|
9496
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
9259
9497
|
style: _objectSpread({}, style, {
|
|
9260
9498
|
width: width,
|
|
9261
9499
|
height: height
|
|
9262
9500
|
})
|
|
9263
|
-
}, otherProps),
|
|
9501
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
9264
9502
|
ref: this.ref,
|
|
9265
9503
|
activePlayer: activePlayer,
|
|
9266
9504
|
config: this.config
|
|
@@ -9306,31 +9544,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9306
9544
|
|
|
9307
9545
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9308
9546
|
|
|
9309
|
-
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); }; }
|
|
9310
|
-
|
|
9311
9547
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9312
9548
|
|
|
9313
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9314
|
-
|
|
9315
|
-
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; } }
|
|
9316
|
-
|
|
9317
9549
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9318
9550
|
|
|
9551
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9552
|
+
|
|
9319
9553
|
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); }
|
|
9320
9554
|
|
|
9321
9555
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
9322
9556
|
|
|
9323
9557
|
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; }
|
|
9324
9558
|
|
|
9325
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
9326
|
-
|
|
9327
|
-
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."); }
|
|
9328
|
-
|
|
9329
|
-
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); }
|
|
9559
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
9330
9560
|
|
|
9331
|
-
function
|
|
9561
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
9332
9562
|
|
|
9333
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
9563
|
+
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; }
|
|
9334
9564
|
|
|
9335
9565
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
9336
9566
|
|
|
@@ -9355,12 +9585,14 @@ function parsePlaylist(url) {
|
|
|
9355
9585
|
return {};
|
|
9356
9586
|
}
|
|
9357
9587
|
|
|
9358
|
-
var YouTube =
|
|
9588
|
+
var YouTube =
|
|
9589
|
+
/*#__PURE__*/
|
|
9590
|
+
function (_Component) {
|
|
9359
9591
|
_inherits(YouTube, _Component);
|
|
9360
9592
|
|
|
9361
|
-
var _super = _createSuper(YouTube);
|
|
9362
|
-
|
|
9363
9593
|
function YouTube() {
|
|
9594
|
+
var _getPrototypeOf2;
|
|
9595
|
+
|
|
9364
9596
|
var _this;
|
|
9365
9597
|
|
|
9366
9598
|
_classCallCheck(this, YouTube);
|
|
@@ -9369,7 +9601,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
9369
9601
|
args[_key] = arguments[_key];
|
|
9370
9602
|
}
|
|
9371
9603
|
|
|
9372
|
-
_this =
|
|
9604
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
9373
9605
|
|
|
9374
9606
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
9375
9607
|
|
|
@@ -9557,9 +9789,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
9557
9789
|
height: '100%',
|
|
9558
9790
|
display: display
|
|
9559
9791
|
};
|
|
9560
|
-
return
|
|
9792
|
+
return _react["default"].createElement("div", {
|
|
9561
9793
|
style: style
|
|
9562
|
-
},
|
|
9794
|
+
}, _react["default"].createElement("div", {
|
|
9563
9795
|
ref: this.ref
|
|
9564
9796
|
}));
|
|
9565
9797
|
}
|
|
@@ -9615,16 +9847,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9615
9847
|
|
|
9616
9848
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9617
9849
|
|
|
9618
|
-
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); }; }
|
|
9619
|
-
|
|
9620
9850
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9621
9851
|
|
|
9622
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9623
|
-
|
|
9624
|
-
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; } }
|
|
9625
|
-
|
|
9626
9852
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9627
9853
|
|
|
9854
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9855
|
+
|
|
9628
9856
|
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); }
|
|
9629
9857
|
|
|
9630
9858
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -9633,14 +9861,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
9633
9861
|
|
|
9634
9862
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
9635
9863
|
var SDK_GLOBAL = 'SC';
|
|
9636
|
-
var MATCH_URL = /(
|
|
9864
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
9637
9865
|
|
|
9638
|
-
var SoundCloud =
|
|
9866
|
+
var SoundCloud =
|
|
9867
|
+
/*#__PURE__*/
|
|
9868
|
+
function (_Component) {
|
|
9639
9869
|
_inherits(SoundCloud, _Component);
|
|
9640
9870
|
|
|
9641
|
-
var _super = _createSuper(SoundCloud);
|
|
9642
|
-
|
|
9643
9871
|
function SoundCloud() {
|
|
9872
|
+
var _getPrototypeOf2;
|
|
9873
|
+
|
|
9644
9874
|
var _this;
|
|
9645
9875
|
|
|
9646
9876
|
_classCallCheck(this, SoundCloud);
|
|
@@ -9649,7 +9879,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
9649
9879
|
args[_key] = arguments[_key];
|
|
9650
9880
|
}
|
|
9651
9881
|
|
|
9652
|
-
_this =
|
|
9882
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
9653
9883
|
|
|
9654
9884
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
9655
9885
|
|
|
@@ -9770,7 +10000,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
9770
10000
|
height: '100%',
|
|
9771
10001
|
display: display
|
|
9772
10002
|
};
|
|
9773
|
-
return
|
|
10003
|
+
return _react["default"].createElement("iframe", {
|
|
9774
10004
|
ref: this.ref,
|
|
9775
10005
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
9776
10006
|
style: style,
|
|
@@ -9832,16 +10062,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9832
10062
|
|
|
9833
10063
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9834
10064
|
|
|
9835
|
-
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); }; }
|
|
9836
|
-
|
|
9837
10065
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9838
10066
|
|
|
9839
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9840
|
-
|
|
9841
|
-
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; } }
|
|
9842
|
-
|
|
9843
10067
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9844
10068
|
|
|
10069
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10070
|
+
|
|
9845
10071
|
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); }
|
|
9846
10072
|
|
|
9847
10073
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -9853,12 +10079,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
9853
10079
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
9854
10080
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
9855
10081
|
|
|
9856
|
-
var Vimeo =
|
|
10082
|
+
var Vimeo =
|
|
10083
|
+
/*#__PURE__*/
|
|
10084
|
+
function (_Component) {
|
|
9857
10085
|
_inherits(Vimeo, _Component);
|
|
9858
10086
|
|
|
9859
|
-
var _super = _createSuper(Vimeo);
|
|
9860
|
-
|
|
9861
10087
|
function Vimeo() {
|
|
10088
|
+
var _getPrototypeOf2;
|
|
10089
|
+
|
|
9862
10090
|
var _this;
|
|
9863
10091
|
|
|
9864
10092
|
_classCallCheck(this, Vimeo);
|
|
@@ -9867,7 +10095,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
9867
10095
|
args[_key] = arguments[_key];
|
|
9868
10096
|
}
|
|
9869
10097
|
|
|
9870
|
-
_this =
|
|
10098
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
9871
10099
|
|
|
9872
10100
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
9873
10101
|
|
|
@@ -10024,7 +10252,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
10024
10252
|
overflow: 'hidden',
|
|
10025
10253
|
display: display
|
|
10026
10254
|
};
|
|
10027
|
-
return
|
|
10255
|
+
return _react["default"].createElement("div", {
|
|
10028
10256
|
key: this.props.url,
|
|
10029
10257
|
ref: this.ref,
|
|
10030
10258
|
style: style
|
|
@@ -10084,16 +10312,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10084
10312
|
|
|
10085
10313
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10086
10314
|
|
|
10087
|
-
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); }; }
|
|
10088
|
-
|
|
10089
10315
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10090
10316
|
|
|
10091
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10092
|
-
|
|
10093
|
-
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; } }
|
|
10094
|
-
|
|
10095
10317
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10096
10318
|
|
|
10319
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10320
|
+
|
|
10097
10321
|
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); }
|
|
10098
10322
|
|
|
10099
10323
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10106,12 +10330,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
10106
10330
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
10107
10331
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
10108
10332
|
|
|
10109
|
-
var Facebook =
|
|
10333
|
+
var Facebook =
|
|
10334
|
+
/*#__PURE__*/
|
|
10335
|
+
function (_Component) {
|
|
10110
10336
|
_inherits(Facebook, _Component);
|
|
10111
10337
|
|
|
10112
|
-
var _super = _createSuper(Facebook);
|
|
10113
|
-
|
|
10114
10338
|
function Facebook() {
|
|
10339
|
+
var _getPrototypeOf2;
|
|
10340
|
+
|
|
10115
10341
|
var _this;
|
|
10116
10342
|
|
|
10117
10343
|
_classCallCheck(this, Facebook);
|
|
@@ -10120,7 +10346,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
10120
10346
|
args[_key] = arguments[_key];
|
|
10121
10347
|
}
|
|
10122
10348
|
|
|
10123
|
-
_this =
|
|
10349
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10124
10350
|
|
|
10125
10351
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10126
10352
|
|
|
@@ -10236,7 +10462,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
10236
10462
|
width: '100%',
|
|
10237
10463
|
height: '100%'
|
|
10238
10464
|
};
|
|
10239
|
-
return
|
|
10465
|
+
return _react["default"].createElement("div", {
|
|
10240
10466
|
style: style,
|
|
10241
10467
|
id: this.playerID,
|
|
10242
10468
|
className: "fb-video",
|
|
@@ -10296,16 +10522,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10296
10522
|
|
|
10297
10523
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10298
10524
|
|
|
10299
|
-
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); }; }
|
|
10300
|
-
|
|
10301
10525
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10302
10526
|
|
|
10303
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10304
|
-
|
|
10305
|
-
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; } }
|
|
10306
|
-
|
|
10307
10527
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10308
10528
|
|
|
10529
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10530
|
+
|
|
10309
10531
|
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); }
|
|
10310
10532
|
|
|
10311
10533
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10316,12 +10538,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
10316
10538
|
var SDK_GLOBAL = 'playerjs';
|
|
10317
10539
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
10318
10540
|
|
|
10319
|
-
var Streamable =
|
|
10541
|
+
var Streamable =
|
|
10542
|
+
/*#__PURE__*/
|
|
10543
|
+
function (_Component) {
|
|
10320
10544
|
_inherits(Streamable, _Component);
|
|
10321
10545
|
|
|
10322
|
-
var _super = _createSuper(Streamable);
|
|
10323
|
-
|
|
10324
10546
|
function Streamable() {
|
|
10547
|
+
var _getPrototypeOf2;
|
|
10548
|
+
|
|
10325
10549
|
var _this;
|
|
10326
10550
|
|
|
10327
10551
|
_classCallCheck(this, Streamable);
|
|
@@ -10330,7 +10554,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
10330
10554
|
args[_key] = arguments[_key];
|
|
10331
10555
|
}
|
|
10332
10556
|
|
|
10333
|
-
_this =
|
|
10557
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10334
10558
|
|
|
10335
10559
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10336
10560
|
|
|
@@ -10450,7 +10674,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
10450
10674
|
width: '100%',
|
|
10451
10675
|
height: '100%'
|
|
10452
10676
|
};
|
|
10453
|
-
return
|
|
10677
|
+
return _react["default"].createElement("iframe", {
|
|
10454
10678
|
ref: this.ref,
|
|
10455
10679
|
src: "https://streamable.com/o/".concat(id),
|
|
10456
10680
|
frameBorder: "0",
|
|
@@ -10511,16 +10735,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10511
10735
|
|
|
10512
10736
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10513
10737
|
|
|
10514
|
-
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); }; }
|
|
10515
|
-
|
|
10516
10738
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10517
10739
|
|
|
10518
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10519
|
-
|
|
10520
|
-
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; } }
|
|
10521
|
-
|
|
10522
10740
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10523
10741
|
|
|
10742
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10743
|
+
|
|
10524
10744
|
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); }
|
|
10525
10745
|
|
|
10526
10746
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10531,48 +10751,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
10531
10751
|
var SDK_GLOBAL = 'Wistia';
|
|
10532
10752
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
10533
10753
|
|
|
10534
|
-
var Wistia =
|
|
10754
|
+
var Wistia =
|
|
10755
|
+
/*#__PURE__*/
|
|
10756
|
+
function (_Component) {
|
|
10535
10757
|
_inherits(Wistia, _Component);
|
|
10536
10758
|
|
|
10537
|
-
var _super = _createSuper(Wistia);
|
|
10538
|
-
|
|
10539
10759
|
function Wistia() {
|
|
10760
|
+
var _getPrototypeOf2;
|
|
10761
|
+
|
|
10540
10762
|
var _this;
|
|
10541
10763
|
|
|
10542
10764
|
_classCallCheck(this, Wistia);
|
|
10543
10765
|
|
|
10544
|
-
for (var _len = arguments.length,
|
|
10545
|
-
|
|
10766
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
10767
|
+
args[_key] = arguments[_key];
|
|
10546
10768
|
}
|
|
10547
10769
|
|
|
10548
|
-
_this =
|
|
10770
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10549
10771
|
|
|
10550
10772
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10551
10773
|
|
|
10552
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
10553
|
-
var _this$props;
|
|
10554
|
-
|
|
10555
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
10556
|
-
});
|
|
10557
|
-
|
|
10558
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
10559
|
-
var _this$props2;
|
|
10560
|
-
|
|
10561
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
10562
|
-
});
|
|
10563
|
-
|
|
10564
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
10565
|
-
var _this$props3;
|
|
10566
|
-
|
|
10567
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
10568
|
-
});
|
|
10569
|
-
|
|
10570
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
10571
|
-
var _this$props4;
|
|
10572
|
-
|
|
10573
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
10574
|
-
});
|
|
10575
|
-
|
|
10576
10774
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
10577
10775
|
_this.callPlayer('mute');
|
|
10578
10776
|
});
|
|
@@ -10594,13 +10792,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
10594
10792
|
value: function load(url) {
|
|
10595
10793
|
var _this2 = this;
|
|
10596
10794
|
|
|
10597
|
-
var _this$
|
|
10598
|
-
playing = _this$
|
|
10599
|
-
muted = _this$
|
|
10600
|
-
controls = _this$
|
|
10601
|
-
_onReady = _this$
|
|
10602
|
-
|
|
10603
|
-
|
|
10795
|
+
var _this$props = this.props,
|
|
10796
|
+
playing = _this$props.playing,
|
|
10797
|
+
muted = _this$props.muted,
|
|
10798
|
+
controls = _this$props.controls,
|
|
10799
|
+
_onReady = _this$props.onReady,
|
|
10800
|
+
onPlay = _this$props.onPlay,
|
|
10801
|
+
onPause = _this$props.onPause,
|
|
10802
|
+
onSeek = _this$props.onSeek,
|
|
10803
|
+
onEnded = _this$props.onEnded,
|
|
10804
|
+
config = _this$props.config,
|
|
10805
|
+
onError = _this$props.onError;
|
|
10604
10806
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
10605
10807
|
window._wq = window._wq || [];
|
|
10606
10808
|
|
|
@@ -10617,28 +10819,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
10617
10819
|
|
|
10618
10820
|
_this2.unbind();
|
|
10619
10821
|
|
|
10620
|
-
_this2.player.bind('play',
|
|
10822
|
+
_this2.player.bind('play', onPlay);
|
|
10621
10823
|
|
|
10622
|
-
_this2.player.bind('pause',
|
|
10824
|
+
_this2.player.bind('pause', onPause);
|
|
10623
10825
|
|
|
10624
|
-
_this2.player.bind('seek',
|
|
10826
|
+
_this2.player.bind('seek', onSeek);
|
|
10625
10827
|
|
|
10626
|
-
_this2.player.bind('end',
|
|
10828
|
+
_this2.player.bind('end', onEnded);
|
|
10627
10829
|
|
|
10628
10830
|
_onReady();
|
|
10629
10831
|
}
|
|
10630
10832
|
});
|
|
10631
10833
|
}, onError);
|
|
10632
10834
|
}
|
|
10633
|
-
}, {
|
|
10634
|
-
key: "unbind",
|
|
10635
|
-
value: function unbind() {
|
|
10636
|
-
this.player.unbind('play', this.onPlay);
|
|
10637
|
-
this.player.unbind('pause', this.onPause);
|
|
10638
|
-
this.player.unbind('seek', this.onSeek);
|
|
10639
|
-
this.player.unbind('end', this.onEnded);
|
|
10640
|
-
} // Proxy methods to prevent listener leaks
|
|
10641
|
-
|
|
10642
10835
|
}, {
|
|
10643
10836
|
key: "play",
|
|
10644
10837
|
value: function play() {
|
|
@@ -10649,6 +10842,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
10649
10842
|
value: function pause() {
|
|
10650
10843
|
this.callPlayer('pause');
|
|
10651
10844
|
}
|
|
10845
|
+
}, {
|
|
10846
|
+
key: "unbind",
|
|
10847
|
+
value: function unbind() {
|
|
10848
|
+
var _this$props2 = this.props,
|
|
10849
|
+
onPlay = _this$props2.onPlay,
|
|
10850
|
+
onPause = _this$props2.onPause,
|
|
10851
|
+
onSeek = _this$props2.onSeek,
|
|
10852
|
+
onEnded = _this$props2.onEnded;
|
|
10853
|
+
this.player.unbind('play', onPlay);
|
|
10854
|
+
this.player.unbind('pause', onPause);
|
|
10855
|
+
this.player.unbind('seek', onSeek);
|
|
10856
|
+
this.player.unbind('end', onEnded);
|
|
10857
|
+
}
|
|
10652
10858
|
}, {
|
|
10653
10859
|
key: "stop",
|
|
10654
10860
|
value: function stop() {
|
|
@@ -10694,7 +10900,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
10694
10900
|
width: '100%',
|
|
10695
10901
|
height: '100%'
|
|
10696
10902
|
};
|
|
10697
|
-
return
|
|
10903
|
+
return _react["default"].createElement("div", {
|
|
10698
10904
|
key: id,
|
|
10699
10905
|
className: className,
|
|
10700
10906
|
style: style
|
|
@@ -10754,16 +10960,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10754
10960
|
|
|
10755
10961
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10756
10962
|
|
|
10757
|
-
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); }; }
|
|
10758
|
-
|
|
10759
10963
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10760
10964
|
|
|
10761
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10762
|
-
|
|
10763
|
-
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; } }
|
|
10764
|
-
|
|
10765
10965
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10766
10966
|
|
|
10967
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10968
|
+
|
|
10767
10969
|
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); }
|
|
10768
10970
|
|
|
10769
10971
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10776,12 +10978,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
10776
10978
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
10777
10979
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
10778
10980
|
|
|
10779
|
-
var Twitch =
|
|
10981
|
+
var Twitch =
|
|
10982
|
+
/*#__PURE__*/
|
|
10983
|
+
function (_Component) {
|
|
10780
10984
|
_inherits(Twitch, _Component);
|
|
10781
10985
|
|
|
10782
|
-
var _super = _createSuper(Twitch);
|
|
10783
|
-
|
|
10784
10986
|
function Twitch() {
|
|
10987
|
+
var _getPrototypeOf2;
|
|
10988
|
+
|
|
10785
10989
|
var _this;
|
|
10786
10990
|
|
|
10787
10991
|
_classCallCheck(this, Twitch);
|
|
@@ -10790,7 +10994,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
10790
10994
|
args[_key] = arguments[_key];
|
|
10791
10995
|
}
|
|
10792
10996
|
|
|
10793
|
-
_this =
|
|
10997
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10794
10998
|
|
|
10795
10999
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10796
11000
|
|
|
@@ -10911,7 +11115,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
10911
11115
|
width: '100%',
|
|
10912
11116
|
height: '100%'
|
|
10913
11117
|
};
|
|
10914
|
-
return
|
|
11118
|
+
return _react["default"].createElement("div", {
|
|
10915
11119
|
style: style,
|
|
10916
11120
|
id: this.playerID
|
|
10917
11121
|
});
|
|
@@ -10964,15 +11168,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
10964
11168
|
|
|
10965
11169
|
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; }
|
|
10966
11170
|
|
|
10967
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
10968
|
-
|
|
10969
|
-
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."); }
|
|
10970
|
-
|
|
10971
|
-
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); }
|
|
11171
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
10972
11172
|
|
|
10973
|
-
function
|
|
11173
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
10974
11174
|
|
|
10975
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
11175
|
+
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; }
|
|
10976
11176
|
|
|
10977
11177
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
10978
11178
|
|
|
@@ -10982,16 +11182,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10982
11182
|
|
|
10983
11183
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10984
11184
|
|
|
10985
|
-
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); }; }
|
|
10986
|
-
|
|
10987
11185
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10988
11186
|
|
|
10989
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10990
|
-
|
|
10991
|
-
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; } }
|
|
10992
|
-
|
|
10993
11187
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10994
11188
|
|
|
11189
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11190
|
+
|
|
10995
11191
|
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); }
|
|
10996
11192
|
|
|
10997
11193
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -11003,12 +11199,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
11003
11199
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
11004
11200
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
11005
11201
|
|
|
11006
|
-
var DailyMotion =
|
|
11202
|
+
var DailyMotion =
|
|
11203
|
+
/*#__PURE__*/
|
|
11204
|
+
function (_Component) {
|
|
11007
11205
|
_inherits(DailyMotion, _Component);
|
|
11008
11206
|
|
|
11009
|
-
var _super = _createSuper(DailyMotion);
|
|
11010
|
-
|
|
11011
11207
|
function DailyMotion() {
|
|
11208
|
+
var _getPrototypeOf2;
|
|
11209
|
+
|
|
11012
11210
|
var _this;
|
|
11013
11211
|
|
|
11014
11212
|
_classCallCheck(this, DailyMotion);
|
|
@@ -11017,7 +11215,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
11017
11215
|
args[_key] = arguments[_key];
|
|
11018
11216
|
}
|
|
11019
11217
|
|
|
11020
|
-
_this =
|
|
11218
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
11021
11219
|
|
|
11022
11220
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
11023
11221
|
|
|
@@ -11146,9 +11344,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
11146
11344
|
height: '100%',
|
|
11147
11345
|
display: display
|
|
11148
11346
|
};
|
|
11149
|
-
return
|
|
11347
|
+
return _react["default"].createElement("div", {
|
|
11150
11348
|
style: style
|
|
11151
|
-
},
|
|
11349
|
+
}, _react["default"].createElement("div", {
|
|
11152
11350
|
ref: this.ref
|
|
11153
11351
|
}));
|
|
11154
11352
|
}
|
|
@@ -11206,16 +11404,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11206
11404
|
|
|
11207
11405
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11208
11406
|
|
|
11209
|
-
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); }; }
|
|
11210
|
-
|
|
11211
11407
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11212
11408
|
|
|
11213
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11214
|
-
|
|
11215
|
-
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; } }
|
|
11216
|
-
|
|
11217
11409
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11218
11410
|
|
|
11411
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11412
|
+
|
|
11219
11413
|
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); }
|
|
11220
11414
|
|
|
11221
11415
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -11226,12 +11420,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
11226
11420
|
var SDK_GLOBAL = 'Mixcloud';
|
|
11227
11421
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
11228
11422
|
|
|
11229
|
-
var Mixcloud =
|
|
11423
|
+
var Mixcloud =
|
|
11424
|
+
/*#__PURE__*/
|
|
11425
|
+
function (_Component) {
|
|
11230
11426
|
_inherits(Mixcloud, _Component);
|
|
11231
11427
|
|
|
11232
|
-
var _super = _createSuper(Mixcloud);
|
|
11233
|
-
|
|
11234
11428
|
function Mixcloud() {
|
|
11429
|
+
var _getPrototypeOf2;
|
|
11430
|
+
|
|
11235
11431
|
var _this;
|
|
11236
11432
|
|
|
11237
11433
|
_classCallCheck(this, Mixcloud);
|
|
@@ -11240,7 +11436,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
11240
11436
|
args[_key] = arguments[_key];
|
|
11241
11437
|
}
|
|
11242
11438
|
|
|
11243
|
-
_this =
|
|
11439
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
11244
11440
|
|
|
11245
11441
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
11246
11442
|
|
|
@@ -11343,7 +11539,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
11343
11539
|
})); // We have to give the iframe a key here to prevent a
|
|
11344
11540
|
// weird dialog appearing when loading a new track
|
|
11345
11541
|
|
|
11346
|
-
return
|
|
11542
|
+
return _react["default"].createElement("iframe", {
|
|
11347
11543
|
key: id,
|
|
11348
11544
|
ref: this.ref,
|
|
11349
11545
|
style: style,
|
|
@@ -11403,33 +11599,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11403
11599
|
|
|
11404
11600
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11405
11601
|
|
|
11406
|
-
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); }; }
|
|
11407
|
-
|
|
11408
11602
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11409
11603
|
|
|
11410
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11411
|
-
|
|
11412
|
-
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; } }
|
|
11413
|
-
|
|
11414
11604
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11415
11605
|
|
|
11606
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11607
|
+
|
|
11416
11608
|
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); }
|
|
11417
11609
|
|
|
11418
11610
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
11419
11611
|
|
|
11420
11612
|
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; }
|
|
11421
11613
|
|
|
11422
|
-
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; } } }; }
|
|
11423
|
-
|
|
11424
|
-
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); }
|
|
11425
|
-
|
|
11426
|
-
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; }
|
|
11427
|
-
|
|
11428
11614
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
11429
11615
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
11430
11616
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
11431
11617
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
11432
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
11618
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
11433
11619
|
var HLS_GLOBAL = 'Hls';
|
|
11434
11620
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
11435
11621
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -11438,11 +11624,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
11438
11624
|
|
|
11439
11625
|
function canPlay(url) {
|
|
11440
11626
|
if (url instanceof Array) {
|
|
11441
|
-
var
|
|
11442
|
-
|
|
11627
|
+
var _iteratorNormalCompletion = true;
|
|
11628
|
+
var _didIteratorError = false;
|
|
11629
|
+
var _iteratorError = undefined;
|
|
11443
11630
|
|
|
11444
11631
|
try {
|
|
11445
|
-
for (_iterator.
|
|
11632
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
11446
11633
|
var item = _step.value;
|
|
11447
11634
|
|
|
11448
11635
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -11454,9 +11641,18 @@ function canPlay(url) {
|
|
|
11454
11641
|
}
|
|
11455
11642
|
}
|
|
11456
11643
|
} catch (err) {
|
|
11457
|
-
|
|
11644
|
+
_didIteratorError = true;
|
|
11645
|
+
_iteratorError = err;
|
|
11458
11646
|
} finally {
|
|
11459
|
-
|
|
11647
|
+
try {
|
|
11648
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
11649
|
+
_iterator["return"]();
|
|
11650
|
+
}
|
|
11651
|
+
} finally {
|
|
11652
|
+
if (_didIteratorError) {
|
|
11653
|
+
throw _iteratorError;
|
|
11654
|
+
}
|
|
11655
|
+
}
|
|
11460
11656
|
}
|
|
11461
11657
|
|
|
11462
11658
|
return false;
|
|
@@ -11480,12 +11676,14 @@ function canEnablePIP(url) {
|
|
|
11480
11676
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
11481
11677
|
}
|
|
11482
11678
|
|
|
11483
|
-
var FilePlayer =
|
|
11679
|
+
var FilePlayer =
|
|
11680
|
+
/*#__PURE__*/
|
|
11681
|
+
function (_Component) {
|
|
11484
11682
|
_inherits(FilePlayer, _Component);
|
|
11485
11683
|
|
|
11486
|
-
var _super = _createSuper(FilePlayer);
|
|
11487
|
-
|
|
11488
11684
|
function FilePlayer() {
|
|
11685
|
+
var _getPrototypeOf2;
|
|
11686
|
+
|
|
11489
11687
|
var _this;
|
|
11490
11688
|
|
|
11491
11689
|
_classCallCheck(this, FilePlayer);
|
|
@@ -11494,7 +11692,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
11494
11692
|
_args[_key] = arguments[_key];
|
|
11495
11693
|
}
|
|
11496
11694
|
|
|
11497
|
-
_this =
|
|
11695
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
11498
11696
|
|
|
11499
11697
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
11500
11698
|
var _this$props;
|
|
@@ -11581,19 +11779,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
11581
11779
|
|
|
11582
11780
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
11583
11781
|
if (typeof source === 'string') {
|
|
11584
|
-
return
|
|
11782
|
+
return _react["default"].createElement("source", {
|
|
11585
11783
|
key: index,
|
|
11586
11784
|
src: source
|
|
11587
11785
|
});
|
|
11588
11786
|
}
|
|
11589
11787
|
|
|
11590
|
-
return
|
|
11788
|
+
return _react["default"].createElement("source", _extends({
|
|
11591
11789
|
key: index
|
|
11592
11790
|
}, source));
|
|
11593
11791
|
});
|
|
11594
11792
|
|
|
11595
11793
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
11596
|
-
return
|
|
11794
|
+
return _react["default"].createElement("track", _extends({
|
|
11597
11795
|
key: index
|
|
11598
11796
|
}, track));
|
|
11599
11797
|
});
|
|
@@ -11631,10 +11829,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
11631
11829
|
key: "componentWillUnmount",
|
|
11632
11830
|
value: function componentWillUnmount() {
|
|
11633
11831
|
this.removeListeners(this.player);
|
|
11634
|
-
|
|
11635
|
-
if (this.hls) {
|
|
11636
|
-
this.hls.destroy();
|
|
11637
|
-
}
|
|
11638
11832
|
}
|
|
11639
11833
|
}, {
|
|
11640
11834
|
key: "addListeners",
|
|
@@ -11765,6 +11959,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
11765
11959
|
value: function stop() {
|
|
11766
11960
|
this.player.removeAttribute('src');
|
|
11767
11961
|
|
|
11962
|
+
if (this.hls) {
|
|
11963
|
+
this.hls.destroy();
|
|
11964
|
+
}
|
|
11965
|
+
|
|
11768
11966
|
if (this.dash) {
|
|
11769
11967
|
this.dash.reset();
|
|
11770
11968
|
}
|
|
@@ -11876,7 +12074,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
11876
12074
|
width: width === 'auto' ? width : '100%',
|
|
11877
12075
|
height: height === 'auto' ? height : '100%'
|
|
11878
12076
|
};
|
|
11879
|
-
return
|
|
12077
|
+
return _react["default"].createElement(Element, _extends({
|
|
11880
12078
|
ref: this.ref,
|
|
11881
12079
|
src: this.getSource(url),
|
|
11882
12080
|
style: style,
|
|
@@ -11966,16 +12164,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11966
12164
|
|
|
11967
12165
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11968
12166
|
|
|
11969
|
-
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); }; }
|
|
11970
|
-
|
|
11971
12167
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11972
12168
|
|
|
11973
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11974
|
-
|
|
11975
|
-
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; } }
|
|
11976
|
-
|
|
11977
12169
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11978
12170
|
|
|
12171
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12172
|
+
|
|
11979
12173
|
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); }
|
|
11980
12174
|
|
|
11981
12175
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -11984,12 +12178,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
11984
12178
|
|
|
11985
12179
|
var ICON_SIZE = '64px';
|
|
11986
12180
|
|
|
11987
|
-
var Preview =
|
|
12181
|
+
var Preview =
|
|
12182
|
+
/*#__PURE__*/
|
|
12183
|
+
function (_Component) {
|
|
11988
12184
|
_inherits(Preview, _Component);
|
|
11989
12185
|
|
|
11990
|
-
var _super = _createSuper(Preview);
|
|
11991
|
-
|
|
11992
12186
|
function Preview() {
|
|
12187
|
+
var _getPrototypeOf2;
|
|
12188
|
+
|
|
11993
12189
|
var _this;
|
|
11994
12190
|
|
|
11995
12191
|
_classCallCheck(this, Preview);
|
|
@@ -11998,7 +12194,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
11998
12194
|
args[_key] = arguments[_key];
|
|
11999
12195
|
}
|
|
12000
12196
|
|
|
12001
|
-
_this =
|
|
12197
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
12002
12198
|
|
|
12003
12199
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
12004
12200
|
|
|
@@ -12096,15 +12292,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
12096
12292
|
}
|
|
12097
12293
|
};
|
|
12098
12294
|
|
|
12099
|
-
var defaultPlayIcon =
|
|
12295
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
12100
12296
|
style: styles.shadow,
|
|
12101
12297
|
className: "react-player__shadow"
|
|
12102
|
-
},
|
|
12298
|
+
}, _react["default"].createElement("div", {
|
|
12103
12299
|
style: styles.playIcon,
|
|
12104
12300
|
className: "react-player__play-icon"
|
|
12105
12301
|
}));
|
|
12106
12302
|
|
|
12107
|
-
return
|
|
12303
|
+
return _react["default"].createElement("div", {
|
|
12108
12304
|
style: styles.preview,
|
|
12109
12305
|
className: "react-player__preview",
|
|
12110
12306
|
onClick: onClick
|
|
@@ -12141,12 +12337,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
12141
12337
|
|
|
12142
12338
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12143
12339
|
|
|
12144
|
-
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; } } }; }
|
|
12145
|
-
|
|
12146
|
-
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); }
|
|
12147
|
-
|
|
12148
|
-
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; }
|
|
12149
|
-
|
|
12150
12340
|
var PRELOAD_PLAYERS = [{
|
|
12151
12341
|
Player: YouTube_1.YouTube,
|
|
12152
12342
|
configKey: 'youtube',
|
|
@@ -12167,16 +12357,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
12167
12357
|
|
|
12168
12358
|
function renderPreloadPlayers(url, controls, config) {
|
|
12169
12359
|
var players = [];
|
|
12170
|
-
|
|
12171
|
-
var
|
|
12172
|
-
|
|
12360
|
+
var _iteratorNormalCompletion = true;
|
|
12361
|
+
var _didIteratorError = false;
|
|
12362
|
+
var _iteratorError = undefined;
|
|
12173
12363
|
|
|
12174
12364
|
try {
|
|
12175
|
-
for (_iterator.
|
|
12365
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
12176
12366
|
var player = _step.value;
|
|
12177
12367
|
|
|
12178
12368
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
12179
|
-
players.push(
|
|
12369
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
12180
12370
|
key: player.Player.displayName,
|
|
12181
12371
|
activePlayer: player.Player,
|
|
12182
12372
|
url: player.url,
|
|
@@ -12188,9 +12378,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
12188
12378
|
}
|
|
12189
12379
|
}
|
|
12190
12380
|
} catch (err) {
|
|
12191
|
-
|
|
12381
|
+
_didIteratorError = true;
|
|
12382
|
+
_iteratorError = err;
|
|
12192
12383
|
} finally {
|
|
12193
|
-
|
|
12384
|
+
try {
|
|
12385
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
12386
|
+
_iterator["return"]();
|
|
12387
|
+
}
|
|
12388
|
+
} finally {
|
|
12389
|
+
if (_didIteratorError) {
|
|
12390
|
+
throw _iteratorError;
|
|
12391
|
+
}
|
|
12392
|
+
}
|
|
12194
12393
|
}
|
|
12195
12394
|
|
|
12196
12395
|
return players;
|
|
@@ -12314,17 +12513,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
12314
12513
|
|
|
12315
12514
|
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); }
|
|
12316
12515
|
|
|
12317
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
12318
|
-
|
|
12319
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
12320
|
-
|
|
12321
|
-
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); }
|
|
12516
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
12322
12517
|
|
|
12323
|
-
function
|
|
12518
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
12324
12519
|
|
|
12325
|
-
function
|
|
12520
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
12326
12521
|
|
|
12327
|
-
function
|
|
12522
|
+
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; } }
|
|
12328
12523
|
|
|
12329
12524
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
12330
12525
|
|
|
@@ -12332,16 +12527,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
12332
12527
|
|
|
12333
12528
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
12334
12529
|
|
|
12335
|
-
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); }; }
|
|
12336
|
-
|
|
12337
12530
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
12338
12531
|
|
|
12339
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12340
|
-
|
|
12341
|
-
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; } }
|
|
12342
|
-
|
|
12343
12532
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12344
12533
|
|
|
12534
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12535
|
+
|
|
12345
12536
|
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); }
|
|
12346
12537
|
|
|
12347
12538
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -12351,12 +12542,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
12351
12542
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
12352
12543
|
var customPlayers = [];
|
|
12353
12544
|
|
|
12354
|
-
var ReactPlayer =
|
|
12545
|
+
var ReactPlayer =
|
|
12546
|
+
/*#__PURE__*/
|
|
12547
|
+
function (_Component) {
|
|
12355
12548
|
_inherits(ReactPlayer, _Component);
|
|
12356
12549
|
|
|
12357
|
-
var _super = _createSuper(ReactPlayer);
|
|
12358
|
-
|
|
12359
12550
|
function ReactPlayer() {
|
|
12551
|
+
var _getPrototypeOf2;
|
|
12552
|
+
|
|
12360
12553
|
var _this;
|
|
12361
12554
|
|
|
12362
12555
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -12365,7 +12558,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
12365
12558
|
args[_key] = arguments[_key];
|
|
12366
12559
|
}
|
|
12367
12560
|
|
|
12368
|
-
_this =
|
|
12561
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
12369
12562
|
|
|
12370
12563
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
12371
12564
|
|
|
@@ -12476,7 +12669,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
12476
12669
|
key: "renderActivePlayer",
|
|
12477
12670
|
value: function renderActivePlayer(url, activePlayer) {
|
|
12478
12671
|
if (!url) return null;
|
|
12479
|
-
return
|
|
12672
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
12480
12673
|
key: activePlayer.displayName,
|
|
12481
12674
|
ref: this.activePlayerRef,
|
|
12482
12675
|
config: this.config,
|
|
@@ -12513,14 +12706,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
12513
12706
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
12514
12707
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
12515
12708
|
|
|
12516
|
-
var preview =
|
|
12709
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
12517
12710
|
url: url,
|
|
12518
12711
|
light: light,
|
|
12519
12712
|
playIcon: playIcon,
|
|
12520
12713
|
onClick: this.handleClickPreview
|
|
12521
12714
|
});
|
|
12522
12715
|
|
|
12523
|
-
return
|
|
12716
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
12524
12717
|
ref: this.wrapperRef,
|
|
12525
12718
|
style: _objectSpread({}, style, {
|
|
12526
12719
|
width: width,
|
|
@@ -13827,16 +14020,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
13827
14020
|
_ref$className = _ref.className,
|
|
13828
14021
|
className = _ref$className === undefined ? '' : _ref$className;
|
|
13829
14022
|
|
|
13830
|
-
/*
|
|
13831
|
-
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
13832
|
-
example:
|
|
13833
|
-
<RelatedTopicDropdown
|
|
13834
|
-
page='/clinical'
|
|
13835
|
-
exclude="clinical"
|
|
13836
|
-
className='mb-3'
|
|
13837
|
-
parentTaxonomy={props.parentTaxonomy}
|
|
13838
|
-
subTaxonomies={props.subTaxonomies}
|
|
13839
|
-
/>
|
|
14023
|
+
/*
|
|
14024
|
+
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
14025
|
+
example:
|
|
14026
|
+
<RelatedTopicDropdown
|
|
14027
|
+
page='/clinical'
|
|
14028
|
+
exclude="clinical"
|
|
14029
|
+
className='mb-3'
|
|
14030
|
+
parentTaxonomy={props.parentTaxonomy}
|
|
14031
|
+
subTaxonomies={props.subTaxonomies}
|
|
14032
|
+
/>
|
|
13840
14033
|
*/
|
|
13841
14034
|
if (subTaxonomies.length === 0 && parentTaxonomy) {
|
|
13842
14035
|
if (parentTaxonomy.identifier == exclude) {
|
|
@@ -13874,19 +14067,19 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
13874
14067
|
}
|
|
13875
14068
|
};
|
|
13876
14069
|
|
|
13877
|
-
/*
|
|
13878
|
-
This dropdown is used inside Article body to display related content placement pages
|
|
13879
|
-
sample usage: <ArticleDetailDropdown contentPlacement={content_placement} exclude={['News',]} />
|
|
13880
|
-
|
|
13881
|
-
in article query, need to add '...' to content_placement to retreive additional info needed
|
|
13882
|
-
|
|
13883
|
-
'content_placement': taxonomyMapping[]-> {
|
|
13884
|
-
...,
|
|
13885
|
-
'ancestor': parent->parent->identifier,
|
|
13886
|
-
'parent': parent->identifier,
|
|
13887
|
-
'path': identifier
|
|
13888
|
-
}
|
|
13889
|
-
|
|
14070
|
+
/*
|
|
14071
|
+
This dropdown is used inside Article body to display related content placement pages
|
|
14072
|
+
sample usage: <ArticleDetailDropdown contentPlacement={content_placement} exclude={['News',]} />
|
|
14073
|
+
|
|
14074
|
+
in article query, need to add '...' to content_placement to retreive additional info needed
|
|
14075
|
+
|
|
14076
|
+
'content_placement': taxonomyMapping[]-> {
|
|
14077
|
+
...,
|
|
14078
|
+
'ancestor': parent->parent->identifier,
|
|
14079
|
+
'parent': parent->identifier,
|
|
14080
|
+
'path': identifier
|
|
14081
|
+
}
|
|
14082
|
+
|
|
13890
14083
|
*/
|
|
13891
14084
|
|
|
13892
14085
|
var ArticleDetailDropdown = function ArticleDetailDropdown(props) {
|
|
@@ -14719,34 +14912,34 @@ var GridHero = function GridHero(props) {
|
|
|
14719
14912
|
);
|
|
14720
14913
|
};
|
|
14721
14914
|
|
|
14722
|
-
/*
|
|
14723
|
-
Sample query
|
|
14724
|
-
let references = ''
|
|
14725
|
-
if(article.taxonomyMapping.length > 0){
|
|
14726
|
-
article.taxonomyMapping.forEach((ref, index) => {
|
|
14727
|
-
references = references + `references('${ref._ref}') `
|
|
14728
|
-
if(index+1 !== article.taxonomyMapping.length){
|
|
14729
|
-
references = references + ` && `
|
|
14730
|
-
}
|
|
14731
|
-
})
|
|
14732
|
-
}
|
|
14733
|
-
|
|
14734
|
-
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] {
|
|
14735
|
-
...,
|
|
14736
|
-
title,
|
|
14737
|
-
summary,
|
|
14738
|
-
thumbnail,
|
|
14739
|
-
url,
|
|
14740
|
-
published,
|
|
14741
|
-
authorMapping[]->,
|
|
14742
|
-
contentCategory->
|
|
14743
|
-
}`
|
|
14744
|
-
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
14745
|
-
|
|
14746
|
-
Sample usage
|
|
14747
|
-
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
14748
|
-
|
|
14749
|
-
|
|
14915
|
+
/*
|
|
14916
|
+
Sample query
|
|
14917
|
+
let references = ''
|
|
14918
|
+
if(article.taxonomyMapping.length > 0){
|
|
14919
|
+
article.taxonomyMapping.forEach((ref, index) => {
|
|
14920
|
+
references = references + `references('${ref._ref}') `
|
|
14921
|
+
if(index+1 !== article.taxonomyMapping.length){
|
|
14922
|
+
references = references + ` && `
|
|
14923
|
+
}
|
|
14924
|
+
})
|
|
14925
|
+
}
|
|
14926
|
+
|
|
14927
|
+
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] {
|
|
14928
|
+
...,
|
|
14929
|
+
title,
|
|
14930
|
+
summary,
|
|
14931
|
+
thumbnail,
|
|
14932
|
+
url,
|
|
14933
|
+
published,
|
|
14934
|
+
authorMapping[]->,
|
|
14935
|
+
contentCategory->
|
|
14936
|
+
}`
|
|
14937
|
+
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
14938
|
+
|
|
14939
|
+
Sample usage
|
|
14940
|
+
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
14941
|
+
|
|
14942
|
+
|
|
14750
14943
|
*/
|
|
14751
14944
|
var RelatedContent = function RelatedContent(props) {
|
|
14752
14945
|
var client = props.client,
|
|
@@ -14813,21 +15006,21 @@ var RelatedContent = function RelatedContent(props) {
|
|
|
14813
15006
|
);
|
|
14814
15007
|
};
|
|
14815
15008
|
|
|
14816
|
-
/*
|
|
14817
|
-
Example usage - targetedonc.com/latest-conference
|
|
14818
|
-
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] {
|
|
14819
|
-
...,
|
|
14820
|
-
title,
|
|
14821
|
-
summary,
|
|
14822
|
-
thumbnail,
|
|
14823
|
-
url,
|
|
14824
|
-
published,
|
|
14825
|
-
documentGroup->,
|
|
14826
|
-
contentCategory->,
|
|
14827
|
-
'pageNumber': ${currentPage}
|
|
14828
|
-
}`
|
|
14829
|
-
|
|
14830
|
-
const posts = await client.fetch(query, params)
|
|
15009
|
+
/*
|
|
15010
|
+
Example usage - targetedonc.com/latest-conference
|
|
15011
|
+
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] {
|
|
15012
|
+
...,
|
|
15013
|
+
title,
|
|
15014
|
+
summary,
|
|
15015
|
+
thumbnail,
|
|
15016
|
+
url,
|
|
15017
|
+
published,
|
|
15018
|
+
documentGroup->,
|
|
15019
|
+
contentCategory->,
|
|
15020
|
+
'pageNumber': ${currentPage}
|
|
15021
|
+
}`
|
|
15022
|
+
|
|
15023
|
+
const posts = await client.fetch(query, params)
|
|
14831
15024
|
*/
|
|
14832
15025
|
|
|
14833
15026
|
var ConferenceArticleCard = function ConferenceArticleCard(props) {
|
|
@@ -15454,27 +15647,27 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
15454
15647
|
};
|
|
15455
15648
|
|
|
15456
15649
|
var KMTracker = function KMTracker(props) {
|
|
15457
|
-
|
|
15650
|
+
var id = props.id;
|
|
15458
15651
|
|
|
15459
|
-
|
|
15652
|
+
if (document && id) {
|
|
15460
15653
|
(function () {
|
|
15461
|
-
|
|
15654
|
+
var ecnJquery = document.createElement('script');
|
|
15462
15655
|
|
|
15463
|
-
|
|
15464
|
-
|
|
15465
|
-
|
|
15656
|
+
ecnJquery.type = 'text/javascript';
|
|
15657
|
+
ecnJquery.async = true;
|
|
15658
|
+
ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
|
|
15466
15659
|
|
|
15467
|
-
|
|
15660
|
+
var ecnScript = document.createElement('script');
|
|
15468
15661
|
|
|
15469
|
-
|
|
15470
|
-
|
|
15471
|
-
|
|
15472
|
-
|
|
15662
|
+
ecnScript.type = 'text/javascript';
|
|
15663
|
+
ecnScript.async = true;
|
|
15664
|
+
ecnScript.id = 'km-tracker';
|
|
15665
|
+
ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
|
|
15473
15666
|
|
|
15474
|
-
|
|
15475
|
-
|
|
15476
|
-
|
|
15477
|
-
|
|
15667
|
+
document.head.appendChild(ecnJquery);
|
|
15668
|
+
document.head.appendChild(ecnScript);
|
|
15669
|
+
})();
|
|
15670
|
+
}
|
|
15478
15671
|
};
|
|
15479
15672
|
|
|
15480
15673
|
exports.AdSlot = AdSlot.DFPAdSlot;
|
|
@@ -15511,7 +15704,10 @@ exports.TemplateNormal = TemplateNormal.TemplateNormal;
|
|
|
15511
15704
|
exports.Ustream = Ustream.Ustream;
|
|
15512
15705
|
exports.AD300x250 = AD300x250;
|
|
15513
15706
|
exports.AD300x250x600 = AD300x250x600;
|
|
15707
|
+
exports.ADFloatingFooter = ADFloatingFooter;
|
|
15514
15708
|
exports.ADFooter = ADFooter;
|
|
15709
|
+
exports.ADGutter = ADGutter;
|
|
15710
|
+
exports.ADWelcome = ADWelcome;
|
|
15515
15711
|
exports.AccordionPanel = AccordionPanel;
|
|
15516
15712
|
exports.AdSlotsProvider = AdSlotsProvider;
|
|
15517
15713
|
exports.AlphabeticList = AlphabeticList;
|