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