@mjhls/mjh-framework 1.0.285 → 1.0.287
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/{ADInfeed-a33644bc.js → ADInfeed-db54195d.js} +1 -1
- package/dist/cjs/{AdSlot-1886ea26.js → AdSlot-0cd6f861.js} +6 -6
- package/dist/cjs/DeckContent.js +11 -11
- package/dist/cjs/DeckQueue.js +1 -1
- package/dist/cjs/{Figure-a7cd5161.js → Figure-8789df2d.js} +1 -1
- package/dist/cjs/{GridContent-26572c38.js → GridContent-fa2e1b56.js} +3 -3
- package/dist/cjs/GridContent.js +4 -4
- package/dist/cjs/IssueContentDeck.js +1 -1
- package/dist/cjs/IssueDeck.js +1 -1
- package/dist/cjs/MasterDeck.js +9 -9
- package/dist/cjs/{Normal-92be86eb.js → Normal-39da6300.js} +30 -30
- package/dist/cjs/PublicationDeck.js +1 -1
- package/dist/cjs/QueueDeckExpanded.js +3 -3
- package/dist/cjs/{TaxonomyCard-cf5bbc07.js → TaxonomyCard-7ba4a872.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-98ffbc57.js → YoutubeGroup-39eba427.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 +574 -565
- package/dist/esm/{ADInfeed-fd816c1f.js → ADInfeed-ac3ac372.js} +1 -1
- package/dist/esm/{AdSlot-cc6a4f74.js → AdSlot-03043ffb.js} +6 -6
- package/dist/esm/DeckContent.js +11 -11
- package/dist/esm/DeckQueue.js +1 -1
- package/dist/esm/{Figure-d6e22818.js → Figure-b5847ea2.js} +1 -1
- package/dist/esm/{GridContent-2e9e7528.js → GridContent-88ed988c.js} +2 -2
- package/dist/esm/GridContent.js +4 -4
- package/dist/esm/IssueContentDeck.js +1 -1
- package/dist/esm/IssueDeck.js +1 -1
- package/dist/esm/MasterDeck.js +9 -9
- package/dist/esm/{Normal-319bc9fb.js → Normal-246ae27e.js} +30 -30
- package/dist/esm/PublicationDeck.js +1 -1
- package/dist/esm/QueueDeckExpanded.js +3 -3
- 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-562ed456.js → YoutubeGroup-f59297bb.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 +578 -569
- package/package.json +103 -103
package/dist/esm/index.js
CHANGED
|
@@ -17,26 +17,26 @@ import { m as moment, I as InfiniteScroll, V as VisibilitySensor } from './visib
|
|
|
17
17
|
import Link from 'next/link';
|
|
18
18
|
import Router, { useRouter } from 'next/router';
|
|
19
19
|
import 'react-dom';
|
|
20
|
-
import { i as imageUrlBuilder } from './index-
|
|
20
|
+
import { i as imageUrlBuilder } from './index-73819142.js';
|
|
21
21
|
import './index-5f9f807a.js';
|
|
22
22
|
import { h as html_decode_1, c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
23
23
|
import { _ as _slicedToArray } from './slicedToArray-d0a9593a.js';
|
|
24
|
-
import { _ as _JSON$stringify, a as _asyncToGenerator, r as regenerator, D as DFPAdSlot, B as Beam } from './AdSlot-
|
|
25
|
-
export { D as AdSlot, B as Beam } from './AdSlot-
|
|
24
|
+
import { _ as _JSON$stringify, a as _asyncToGenerator, r as regenerator, D as DFPAdSlot, B as Beam } from './AdSlot-03043ffb.js';
|
|
25
|
+
export { D as AdSlot, B as Beam } from './AdSlot-03043ffb.js';
|
|
26
26
|
import './promise-e3480f1c.js';
|
|
27
|
-
import './ADInfeed-
|
|
27
|
+
import './ADInfeed-ac3ac372.js';
|
|
28
28
|
export { default as DeckContent } from './DeckContent.js';
|
|
29
29
|
import { i as isFunction_1, a as isArray_1, _ as _arrayMap } from './get-9c285a85.js';
|
|
30
|
-
export { A as AD, G as GridContent } from './GridContent-
|
|
30
|
+
export { A as AD, G as GridContent } from './GridContent-88ed988c.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-f59297bb.js';
|
|
39
|
+
export { Y as YoutubeGroup } from './YoutubeGroup-f59297bb.js';
|
|
40
40
|
import { Spinner as Spinner$1, Container as Container$1, Row as Row$1, Col as Col$1, Carousel, Table, Figure as Figure$1, Button as Button$1, ProgressBar, Card } from 'react-bootstrap';
|
|
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-246ae27e.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-246ae27e.js';
|
|
53
53
|
import 'react-bootstrap/ListGroup';
|
|
54
54
|
import Head from 'next/head';
|
|
55
55
|
import Accordion from 'react-bootstrap/Accordion';
|
|
@@ -60,7 +60,6 @@ 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';
|
|
64
63
|
import Pagination from 'react-bootstrap/Pagination';
|
|
65
64
|
import dynamic from 'next/dynamic';
|
|
66
65
|
import Carousel$1 from 'react-bootstrap/Carousel';
|
|
@@ -3027,14 +3026,21 @@ var ADWelcome = function ADWelcome(_ref) {
|
|
|
3027
3026
|
adTargeting = _useState2[0],
|
|
3028
3027
|
setTargeting = _useState2[1];
|
|
3029
3028
|
|
|
3029
|
+
var adRef = useRef(null);
|
|
3030
|
+
|
|
3031
|
+
var _useState3 = useState(),
|
|
3032
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
3033
|
+
showAd = _useState4[0],
|
|
3034
|
+
setShowAd = _useState4[1];
|
|
3035
|
+
|
|
3030
3036
|
var calculateTimeLeft = function calculateTimeLeft(timeLeft) {
|
|
3031
3037
|
return --timeLeft;
|
|
3032
3038
|
};
|
|
3033
3039
|
|
|
3034
|
-
var
|
|
3035
|
-
|
|
3036
|
-
timeLeft =
|
|
3037
|
-
setTimeLeft =
|
|
3040
|
+
var _useState5 = useState(calculateTimeLeft(counter + 1)),
|
|
3041
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
3042
|
+
timeLeft = _useState6[0],
|
|
3043
|
+
setTimeLeft = _useState6[1];
|
|
3038
3044
|
|
|
3039
3045
|
useEffect(function () {
|
|
3040
3046
|
if (timeLeft > 0) {
|
|
@@ -3046,9 +3052,17 @@ var ADWelcome = function ADWelcome(_ref) {
|
|
|
3046
3052
|
}
|
|
3047
3053
|
});
|
|
3048
3054
|
|
|
3055
|
+
useEffect(function () {
|
|
3056
|
+
if (typeof showAd !== 'undefined' && showAd) {
|
|
3057
|
+
adRef.current.style.opacity = '1';
|
|
3058
|
+
} else if (typeof showAd !== 'undefined' && !showAd) {
|
|
3059
|
+
setFlag(true);
|
|
3060
|
+
}
|
|
3061
|
+
}, [showAd]);
|
|
3062
|
+
|
|
3049
3063
|
return React__default.createElement(
|
|
3050
|
-
|
|
3051
|
-
{
|
|
3064
|
+
'div',
|
|
3065
|
+
{ ref: adRef, style: { outline: 'none', opacity: 0 }, className: 'welcome-modal' },
|
|
3052
3066
|
React__default.createElement(
|
|
3053
3067
|
'div',
|
|
3054
3068
|
{ className: 'right-top', style: { position: 'absolute', top: 0, right: 0, textAlign: 'center', margin: '2rem' } },
|
|
@@ -3083,14 +3097,14 @@ var ADWelcome = function ADWelcome(_ref) {
|
|
|
3083
3097
|
React__default.createElement('img', { style: { width: '100%' }, src: Website.logo, alt: Website.title })
|
|
3084
3098
|
),
|
|
3085
3099
|
React__default.createElement(
|
|
3086
|
-
|
|
3100
|
+
'div',
|
|
3087
3101
|
{ className: title, style: { position: 'relative', width: '300px', height: '250px', margin: 'auto', top: '10rem' } },
|
|
3088
|
-
React__default.createElement(DFPAdSlot, { className: className, slotId: slotId, networkID: networkID, sizes: sizes, adUnit: adUnit, targeting: adTargeting, refreshFlag: false })
|
|
3102
|
+
React__default.createElement(DFPAdSlot, { className: className, slotId: slotId, networkID: networkID, sizes: sizes, adUnit: adUnit, targeting: adTargeting, refreshFlag: false, setShowAd: setShowAd })
|
|
3089
3103
|
),
|
|
3090
3104
|
React__default.createElement(
|
|
3091
3105
|
'style',
|
|
3092
3106
|
{ jsx: 'true' },
|
|
3093
|
-
'\n .
|
|
3107
|
+
'\n .continue-site:hover {\n cursor: pointer;\n }\n\n .welcome-modal {\n max-width: 100% !important;\n margin: 0px !important;\n }\n '
|
|
3094
3108
|
)
|
|
3095
3109
|
);
|
|
3096
3110
|
};
|
|
@@ -3158,18 +3172,21 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
3158
3172
|
);
|
|
3159
3173
|
};
|
|
3160
3174
|
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3175
|
+
var isArray = Array.isArray;
|
|
3176
|
+
var keyList = Object.keys;
|
|
3177
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
3164
3178
|
|
|
3165
3179
|
var fastDeepEqual = function equal(a, b) {
|
|
3166
3180
|
if (a === b) return true;
|
|
3167
3181
|
|
|
3168
3182
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
3169
|
-
|
|
3183
|
+
var arrA = isArray(a)
|
|
3184
|
+
, arrB = isArray(b)
|
|
3185
|
+
, i
|
|
3186
|
+
, length
|
|
3187
|
+
, key;
|
|
3170
3188
|
|
|
3171
|
-
|
|
3172
|
-
if (Array.isArray(a)) {
|
|
3189
|
+
if (arrA && arrB) {
|
|
3173
3190
|
length = a.length;
|
|
3174
3191
|
if (length != b.length) return false;
|
|
3175
3192
|
for (i = length; i-- !== 0;)
|
|
@@ -3177,29 +3194,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
3177
3194
|
return true;
|
|
3178
3195
|
}
|
|
3179
3196
|
|
|
3197
|
+
if (arrA != arrB) return false;
|
|
3180
3198
|
|
|
3199
|
+
var dateA = a instanceof Date
|
|
3200
|
+
, dateB = b instanceof Date;
|
|
3201
|
+
if (dateA != dateB) return false;
|
|
3202
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
3181
3203
|
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
if (
|
|
3204
|
+
var regexpA = a instanceof RegExp
|
|
3205
|
+
, regexpB = b instanceof RegExp;
|
|
3206
|
+
if (regexpA != regexpB) return false;
|
|
3207
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
3185
3208
|
|
|
3186
|
-
keys =
|
|
3209
|
+
var keys = keyList(a);
|
|
3187
3210
|
length = keys.length;
|
|
3188
|
-
|
|
3211
|
+
|
|
3212
|
+
if (length !== keyList(b).length)
|
|
3213
|
+
return false;
|
|
3189
3214
|
|
|
3190
3215
|
for (i = length; i-- !== 0;)
|
|
3191
|
-
if (!
|
|
3216
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
3192
3217
|
|
|
3193
3218
|
for (i = length; i-- !== 0;) {
|
|
3194
|
-
|
|
3195
|
-
|
|
3219
|
+
key = keys[i];
|
|
3196
3220
|
if (!equal(a[key], b[key])) return false;
|
|
3197
3221
|
}
|
|
3198
3222
|
|
|
3199
3223
|
return true;
|
|
3200
3224
|
}
|
|
3201
3225
|
|
|
3202
|
-
// true if both NaN, false otherwise
|
|
3203
3226
|
return a!==a && b!==b;
|
|
3204
3227
|
};
|
|
3205
3228
|
|
|
@@ -4222,7 +4245,7 @@ function formatValue(ctx, value, recurseTimes) {
|
|
|
4222
4245
|
var base = '', array = false, braces = ['{', '}'];
|
|
4223
4246
|
|
|
4224
4247
|
// Make Array say that they are Array
|
|
4225
|
-
if (isArray(value)) {
|
|
4248
|
+
if (isArray$1(value)) {
|
|
4226
4249
|
array = true;
|
|
4227
4250
|
braces = ['[', ']'];
|
|
4228
4251
|
}
|
|
@@ -4401,7 +4424,7 @@ function reduceToSingleString(output, base, braces) {
|
|
|
4401
4424
|
|
|
4402
4425
|
// NOTE: These type checking functions intentionally don't use `instanceof`
|
|
4403
4426
|
// because it is fragile and can be easily faked with `Object.create()`.
|
|
4404
|
-
function isArray(ar) {
|
|
4427
|
+
function isArray$1(ar) {
|
|
4405
4428
|
return Array.isArray(ar);
|
|
4406
4429
|
}
|
|
4407
4430
|
|
|
@@ -4528,7 +4551,7 @@ var util = {
|
|
|
4528
4551
|
isNullOrUndefined: isNullOrUndefined,
|
|
4529
4552
|
isNull: isNull,
|
|
4530
4553
|
isBoolean: isBoolean,
|
|
4531
|
-
isArray: isArray,
|
|
4554
|
+
isArray: isArray$1,
|
|
4532
4555
|
inspect: inspect,
|
|
4533
4556
|
deprecate: deprecate,
|
|
4534
4557
|
format: format,
|
|
@@ -5195,235 +5218,199 @@ module.exports = exports['default'];
|
|
|
5195
5218
|
|
|
5196
5219
|
var youTubePlayer = unwrapExports(dist);
|
|
5197
5220
|
|
|
5198
|
-
function
|
|
5199
|
-
|
|
5200
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5201
|
-
|
|
5202
|
-
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); } }
|
|
5203
|
-
|
|
5204
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5205
|
-
|
|
5206
|
-
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); }; }
|
|
5221
|
+
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; }; }();
|
|
5207
5222
|
|
|
5208
|
-
function
|
|
5209
|
-
|
|
5210
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5211
|
-
|
|
5212
|
-
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; } }
|
|
5223
|
+
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; };
|
|
5213
5224
|
|
|
5214
|
-
function
|
|
5215
|
-
|
|
5216
|
-
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); }
|
|
5217
|
-
|
|
5218
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5225
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5219
5226
|
|
|
5220
|
-
function
|
|
5227
|
+
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; }
|
|
5221
5228
|
|
|
5222
|
-
function
|
|
5229
|
+
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; }
|
|
5223
5230
|
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
*
|
|
5227
|
-
*
|
|
5228
|
-
* @param {Object}
|
|
5229
|
-
* @param {Object} props
|
|
5231
|
+
/**
|
|
5232
|
+
* Check whether a `props` change should result in the video being updated.
|
|
5233
|
+
*
|
|
5234
|
+
* @param {Object} prevProps
|
|
5235
|
+
* @param {Object} props
|
|
5230
5236
|
*/
|
|
5231
|
-
|
|
5232
5237
|
function shouldUpdateVideo(prevProps, props) {
|
|
5233
5238
|
// A changing video should always trigger an update
|
|
5234
5239
|
if (prevProps.videoId !== props.videoId) {
|
|
5235
5240
|
return true;
|
|
5236
|
-
}
|
|
5237
|
-
// update.
|
|
5238
|
-
|
|
5241
|
+
}
|
|
5239
5242
|
|
|
5243
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
5244
|
+
// update.
|
|
5240
5245
|
var prevVars = prevProps.opts.playerVars || {};
|
|
5241
5246
|
var vars = props.opts.playerVars || {};
|
|
5247
|
+
|
|
5242
5248
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
5243
5249
|
}
|
|
5244
|
-
/**
|
|
5245
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
5246
|
-
* that require a player reset. The results can then be compared to see if a
|
|
5247
|
-
* player reset is necessary.
|
|
5248
|
-
*
|
|
5249
|
-
* @param {Object} opts
|
|
5250
|
-
*/
|
|
5251
|
-
|
|
5252
5250
|
|
|
5251
|
+
/**
|
|
5252
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
5253
|
+
* that require a player reset. The results can then be compared to see if a
|
|
5254
|
+
* player reset is necessary.
|
|
5255
|
+
*
|
|
5256
|
+
* @param {Object} opts
|
|
5257
|
+
*/
|
|
5253
5258
|
function filterResetOptions(opts) {
|
|
5254
|
-
return
|
|
5255
|
-
playerVars:
|
|
5259
|
+
return _extends({}, opts, {
|
|
5260
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
5256
5261
|
autoplay: 0,
|
|
5257
5262
|
start: 0,
|
|
5258
5263
|
end: 0
|
|
5259
5264
|
})
|
|
5260
5265
|
});
|
|
5261
5266
|
}
|
|
5262
|
-
/**
|
|
5263
|
-
* Check whether a `props` change should result in the player being reset.
|
|
5264
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
5265
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
5266
|
-
* those.
|
|
5267
|
-
*
|
|
5268
|
-
* @param {Object} prevProps
|
|
5269
|
-
* @param {Object} props
|
|
5270
|
-
*/
|
|
5271
|
-
|
|
5272
5267
|
|
|
5268
|
+
/**
|
|
5269
|
+
* Check whether a `props` change should result in the player being reset.
|
|
5270
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
5271
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
5272
|
+
* those.
|
|
5273
|
+
*
|
|
5274
|
+
* @param {Object} prevProps
|
|
5275
|
+
* @param {Object} props
|
|
5276
|
+
*/
|
|
5273
5277
|
function shouldResetPlayer(prevProps, props) {
|
|
5274
5278
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
5275
5279
|
}
|
|
5276
|
-
/**
|
|
5277
|
-
* Check whether a props change should result in an id or className update.
|
|
5278
|
-
*
|
|
5279
|
-
* @param {Object} prevProps
|
|
5280
|
-
* @param {Object} props
|
|
5281
|
-
*/
|
|
5282
|
-
|
|
5283
5280
|
|
|
5281
|
+
/**
|
|
5282
|
+
* Check whether a props change should result in an id or className update.
|
|
5283
|
+
*
|
|
5284
|
+
* @param {Object} prevProps
|
|
5285
|
+
* @param {Object} props
|
|
5286
|
+
*/
|
|
5284
5287
|
function shouldUpdatePlayer(prevProps, props) {
|
|
5285
5288
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
5286
5289
|
}
|
|
5287
5290
|
|
|
5288
|
-
var YouTube =
|
|
5291
|
+
var YouTube = function (_React$Component) {
|
|
5289
5292
|
_inherits(YouTube, _React$Component);
|
|
5290
5293
|
|
|
5291
|
-
var _super = _createSuper(YouTube);
|
|
5292
|
-
|
|
5293
|
-
/**
|
|
5294
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
5295
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
5296
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5297
|
-
*/
|
|
5298
5294
|
function YouTube(props) {
|
|
5299
|
-
var _this;
|
|
5300
|
-
|
|
5301
5295
|
_classCallCheck(this, YouTube);
|
|
5302
5296
|
|
|
5303
|
-
_this =
|
|
5297
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
5304
5298
|
|
|
5305
|
-
|
|
5299
|
+
_this.onPlayerReady = function (event) {
|
|
5306
5300
|
return _this.props.onReady(event);
|
|
5307
|
-
}
|
|
5301
|
+
};
|
|
5308
5302
|
|
|
5309
|
-
|
|
5303
|
+
_this.onPlayerError = function (event) {
|
|
5310
5304
|
return _this.props.onError(event);
|
|
5311
|
-
}
|
|
5305
|
+
};
|
|
5312
5306
|
|
|
5313
|
-
|
|
5307
|
+
_this.onPlayerStateChange = function (event) {
|
|
5314
5308
|
_this.props.onStateChange(event);
|
|
5315
|
-
|
|
5316
5309
|
switch (event.data) {
|
|
5310
|
+
|
|
5317
5311
|
case YouTube.PlayerState.ENDED:
|
|
5318
5312
|
_this.props.onEnd(event);
|
|
5319
|
-
|
|
5320
5313
|
break;
|
|
5321
5314
|
|
|
5322
5315
|
case YouTube.PlayerState.PLAYING:
|
|
5323
5316
|
_this.props.onPlay(event);
|
|
5324
|
-
|
|
5325
5317
|
break;
|
|
5326
5318
|
|
|
5327
5319
|
case YouTube.PlayerState.PAUSED:
|
|
5328
5320
|
_this.props.onPause(event);
|
|
5329
|
-
|
|
5330
5321
|
break;
|
|
5331
5322
|
}
|
|
5332
|
-
}
|
|
5323
|
+
};
|
|
5333
5324
|
|
|
5334
|
-
|
|
5325
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
5335
5326
|
return _this.props.onPlaybackRateChange(event);
|
|
5336
|
-
}
|
|
5327
|
+
};
|
|
5337
5328
|
|
|
5338
|
-
|
|
5329
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
5339
5330
|
return _this.props.onPlaybackQualityChange(event);
|
|
5340
|
-
}
|
|
5331
|
+
};
|
|
5341
5332
|
|
|
5342
|
-
|
|
5333
|
+
_this.createPlayer = function () {
|
|
5343
5334
|
// do not attempt to create a player server-side, it won't work
|
|
5344
|
-
if (typeof document === 'undefined') return;
|
|
5345
|
-
|
|
5346
|
-
var playerOpts =
|
|
5335
|
+
if (typeof document === 'undefined') return;
|
|
5336
|
+
// create player
|
|
5337
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
5347
5338
|
// preload the `videoId` video if one is already given
|
|
5348
5339
|
videoId: _this.props.videoId
|
|
5349
5340
|
});
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
|
|
5341
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
5342
|
+
// attach event handlers
|
|
5353
5343
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
5354
|
-
|
|
5355
5344
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
5356
|
-
|
|
5357
5345
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
5358
|
-
|
|
5359
5346
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
5360
|
-
|
|
5361
5347
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
5362
|
-
}
|
|
5348
|
+
};
|
|
5363
5349
|
|
|
5364
|
-
|
|
5350
|
+
_this.resetPlayer = function () {
|
|
5365
5351
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
5366
|
-
}
|
|
5352
|
+
};
|
|
5367
5353
|
|
|
5368
|
-
|
|
5354
|
+
_this.updatePlayer = function () {
|
|
5369
5355
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
5370
5356
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
5371
5357
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
5372
5358
|
});
|
|
5373
|
-
}
|
|
5359
|
+
};
|
|
5374
5360
|
|
|
5375
|
-
|
|
5361
|
+
_this.updateVideo = function () {
|
|
5376
5362
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
5377
5363
|
_this.internalPlayer.stopVideo();
|
|
5378
|
-
|
|
5379
5364
|
return;
|
|
5380
|
-
}
|
|
5381
|
-
|
|
5365
|
+
}
|
|
5382
5366
|
|
|
5367
|
+
// set queueing options
|
|
5383
5368
|
var autoplay = false;
|
|
5384
5369
|
var opts = {
|
|
5385
5370
|
videoId: _this.props.videoId
|
|
5386
5371
|
};
|
|
5387
|
-
|
|
5388
5372
|
if ('playerVars' in _this.props.opts) {
|
|
5389
5373
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
5390
|
-
|
|
5391
5374
|
if ('start' in _this.props.opts.playerVars) {
|
|
5392
5375
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
5393
5376
|
}
|
|
5394
|
-
|
|
5395
5377
|
if ('end' in _this.props.opts.playerVars) {
|
|
5396
5378
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
5397
5379
|
}
|
|
5398
|
-
}
|
|
5399
|
-
|
|
5380
|
+
}
|
|
5400
5381
|
|
|
5382
|
+
// if autoplay is enabled loadVideoById
|
|
5401
5383
|
if (autoplay) {
|
|
5402
5384
|
_this.internalPlayer.loadVideoById(opts);
|
|
5403
|
-
|
|
5404
5385
|
return;
|
|
5405
|
-
}
|
|
5406
|
-
|
|
5407
|
-
|
|
5386
|
+
}
|
|
5387
|
+
// default behaviour just cues the video
|
|
5408
5388
|
_this.internalPlayer.cueVideoById(opts);
|
|
5409
|
-
}
|
|
5389
|
+
};
|
|
5410
5390
|
|
|
5411
|
-
|
|
5391
|
+
_this.refContainer = function (container) {
|
|
5412
5392
|
_this.container = container;
|
|
5413
|
-
}
|
|
5393
|
+
};
|
|
5414
5394
|
|
|
5415
5395
|
_this.container = null;
|
|
5416
5396
|
_this.internalPlayer = null;
|
|
5417
5397
|
return _this;
|
|
5418
5398
|
}
|
|
5419
5399
|
|
|
5400
|
+
/**
|
|
5401
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
5402
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
5403
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5404
|
+
*/
|
|
5405
|
+
|
|
5406
|
+
|
|
5420
5407
|
_createClass(YouTube, [{
|
|
5421
|
-
key:
|
|
5408
|
+
key: 'componentDidMount',
|
|
5422
5409
|
value: function componentDidMount() {
|
|
5423
5410
|
this.createPlayer();
|
|
5424
5411
|
}
|
|
5425
5412
|
}, {
|
|
5426
|
-
key:
|
|
5413
|
+
key: 'componentDidUpdate',
|
|
5427
5414
|
value: function componentDidUpdate(prevProps) {
|
|
5428
5415
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
5429
5416
|
this.updatePlayer();
|
|
@@ -5438,58 +5425,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
5438
5425
|
}
|
|
5439
5426
|
}
|
|
5440
5427
|
}, {
|
|
5441
|
-
key:
|
|
5428
|
+
key: 'componentWillUnmount',
|
|
5442
5429
|
value: function componentWillUnmount() {
|
|
5443
|
-
/**
|
|
5444
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
5445
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
5446
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
5447
|
-
* this method isn't quick enough to reset the container element.
|
|
5430
|
+
/**
|
|
5431
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
5432
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
5433
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
5434
|
+
* this method isn't quick enough to reset the container element.
|
|
5448
5435
|
*/
|
|
5449
5436
|
this.internalPlayer.destroy();
|
|
5450
5437
|
}
|
|
5451
|
-
|
|
5452
|
-
|
|
5453
|
-
*
|
|
5454
|
-
*
|
|
5455
|
-
*
|
|
5438
|
+
|
|
5439
|
+
/**
|
|
5440
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
5441
|
+
*
|
|
5442
|
+
* @param {Object} event
|
|
5443
|
+
* @param {Object} target - player object
|
|
5444
|
+
*/
|
|
5445
|
+
|
|
5446
|
+
|
|
5447
|
+
/**
|
|
5448
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
5449
|
+
*
|
|
5450
|
+
* @param {Object} event
|
|
5451
|
+
* @param {Integer} data - error type
|
|
5452
|
+
* @param {Object} target - player object
|
|
5453
|
+
*/
|
|
5454
|
+
|
|
5455
|
+
|
|
5456
|
+
/**
|
|
5457
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5458
|
+
*
|
|
5459
|
+
* @param {Object} event
|
|
5460
|
+
* @param {Integer} data - status change type
|
|
5461
|
+
* @param {Object} target - actual YT player
|
|
5462
|
+
*/
|
|
5463
|
+
|
|
5464
|
+
|
|
5465
|
+
/**
|
|
5466
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
5467
|
+
*
|
|
5468
|
+
* @param {Object} event
|
|
5469
|
+
* @param {Float} data - playback rate
|
|
5470
|
+
* @param {Object} target - actual YT player
|
|
5471
|
+
*/
|
|
5472
|
+
|
|
5473
|
+
|
|
5474
|
+
/**
|
|
5475
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
5476
|
+
*
|
|
5477
|
+
* @param {Object} event
|
|
5478
|
+
* @param {String} data - playback quality
|
|
5479
|
+
* @param {Object} target - actual YT player
|
|
5480
|
+
*/
|
|
5481
|
+
|
|
5482
|
+
|
|
5483
|
+
/**
|
|
5484
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
5485
|
+
*/
|
|
5486
|
+
|
|
5487
|
+
|
|
5488
|
+
/**
|
|
5489
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
5490
|
+
*/
|
|
5491
|
+
|
|
5492
|
+
|
|
5493
|
+
/**
|
|
5494
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
5495
|
+
* React should update this automatically but since the Youtube Player API
|
|
5496
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
5497
|
+
*/
|
|
5498
|
+
|
|
5499
|
+
|
|
5500
|
+
/**
|
|
5501
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
5502
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
5503
|
+
* Youtube Player API methods to update the video.
|
|
5456
5504
|
*/
|
|
5457
5505
|
|
|
5458
5506
|
}, {
|
|
5459
|
-
key:
|
|
5507
|
+
key: 'render',
|
|
5460
5508
|
value: function render() {
|
|
5461
|
-
return
|
|
5462
|
-
|
|
5463
|
-
|
|
5464
|
-
id: this.props.id,
|
|
5465
|
-
|
|
5466
|
-
ref: this.refContainer
|
|
5467
|
-
}));
|
|
5509
|
+
return React__default.createElement(
|
|
5510
|
+
'div',
|
|
5511
|
+
{ className: this.props.containerClassName },
|
|
5512
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
5513
|
+
);
|
|
5468
5514
|
}
|
|
5469
5515
|
}]);
|
|
5470
5516
|
|
|
5471
5517
|
return YouTube;
|
|
5472
5518
|
}(React__default.Component);
|
|
5473
5519
|
|
|
5474
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
5475
|
-
UNSTARTED: -1,
|
|
5476
|
-
ENDED: 0,
|
|
5477
|
-
PLAYING: 1,
|
|
5478
|
-
PAUSED: 2,
|
|
5479
|
-
BUFFERING: 3,
|
|
5480
|
-
CUED: 5
|
|
5481
|
-
});
|
|
5482
|
-
|
|
5483
5520
|
YouTube.propTypes = {
|
|
5484
5521
|
videoId: PropTypes.string,
|
|
5522
|
+
|
|
5485
5523
|
// custom ID for player element
|
|
5486
5524
|
id: PropTypes.string,
|
|
5525
|
+
|
|
5487
5526
|
// custom class name for player element
|
|
5488
5527
|
className: PropTypes.string,
|
|
5489
5528
|
// custom class name for player container element
|
|
5490
5529
|
containerClassName: PropTypes.string,
|
|
5530
|
+
|
|
5491
5531
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
5492
5532
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
5533
|
+
|
|
5493
5534
|
// event subscriptions
|
|
5494
5535
|
onReady: PropTypes.func,
|
|
5495
5536
|
onError: PropTypes.func,
|
|
@@ -5501,7 +5542,6 @@ YouTube.propTypes = {
|
|
|
5501
5542
|
onPlaybackQualityChange: PropTypes.func
|
|
5502
5543
|
};
|
|
5503
5544
|
YouTube.defaultProps = {
|
|
5504
|
-
videoId: null,
|
|
5505
5545
|
id: null,
|
|
5506
5546
|
className: null,
|
|
5507
5547
|
opts: {},
|
|
@@ -5515,6 +5555,14 @@ YouTube.defaultProps = {
|
|
|
5515
5555
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
5516
5556
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
5517
5557
|
};
|
|
5558
|
+
YouTube.PlayerState = {
|
|
5559
|
+
UNSTARTED: -1,
|
|
5560
|
+
ENDED: 0,
|
|
5561
|
+
PLAYING: 1,
|
|
5562
|
+
PAUSED: 2,
|
|
5563
|
+
BUFFERING: 3,
|
|
5564
|
+
CUED: 5
|
|
5565
|
+
};
|
|
5518
5566
|
|
|
5519
5567
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
5520
5568
|
var url = _ref.url;
|
|
@@ -6426,17 +6474,17 @@ DocumentFragment.prototype.toString =
|
|
|
6426
6474
|
}).join("")
|
|
6427
6475
|
};
|
|
6428
6476
|
|
|
6429
|
-
var event = Event;
|
|
6477
|
+
var event = Event$1;
|
|
6430
6478
|
|
|
6431
|
-
function Event(family) {}
|
|
6479
|
+
function Event$1(family) {}
|
|
6432
6480
|
|
|
6433
|
-
Event.prototype.initEvent = function _Event_initEvent(type, bubbles, cancelable) {
|
|
6481
|
+
Event$1.prototype.initEvent = function _Event_initEvent(type, bubbles, cancelable) {
|
|
6434
6482
|
this.type = type;
|
|
6435
6483
|
this.bubbles = bubbles;
|
|
6436
6484
|
this.cancelable = cancelable;
|
|
6437
6485
|
};
|
|
6438
6486
|
|
|
6439
|
-
Event.prototype.preventDefault = function _Event_preventDefault() {
|
|
6487
|
+
Event$1.prototype.preventDefault = function _Event_preventDefault() {
|
|
6440
6488
|
|
|
6441
6489
|
};
|
|
6442
6490
|
|
|
@@ -6538,8 +6586,8 @@ var window_1 = win;
|
|
|
6538
6586
|
|
|
6539
6587
|
/*! @name @brightcove/react-player-loader @version 1.4.0 @license Apache-2.0 */
|
|
6540
6588
|
|
|
6541
|
-
function _extends() {
|
|
6542
|
-
_extends = Object.assign || function (target) {
|
|
6589
|
+
function _extends$1() {
|
|
6590
|
+
_extends$1 = Object.assign || function (target) {
|
|
6543
6591
|
for (var i = 1; i < arguments.length; i++) {
|
|
6544
6592
|
var source = arguments[i];
|
|
6545
6593
|
|
|
@@ -6553,7 +6601,7 @@ function _extends() {
|
|
|
6553
6601
|
return target;
|
|
6554
6602
|
};
|
|
6555
6603
|
|
|
6556
|
-
return _extends.apply(this, arguments);
|
|
6604
|
+
return _extends$1.apply(this, arguments);
|
|
6557
6605
|
}
|
|
6558
6606
|
|
|
6559
6607
|
function _inheritsLoose(subClass, superClass) {
|
|
@@ -6562,7 +6610,7 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
6562
6610
|
subClass.__proto__ = superClass;
|
|
6563
6611
|
}
|
|
6564
6612
|
|
|
6565
|
-
function _assertThisInitialized
|
|
6613
|
+
function _assertThisInitialized(self) {
|
|
6566
6614
|
if (self === void 0) {
|
|
6567
6615
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
6568
6616
|
}
|
|
@@ -6572,8 +6620,8 @@ function _assertThisInitialized$1(self) {
|
|
|
6572
6620
|
|
|
6573
6621
|
/*! @name @brightcove/player-loader @version 1.7.1 @license Apache-2.0 */
|
|
6574
6622
|
|
|
6575
|
-
function _extends$1() {
|
|
6576
|
-
_extends$1 = Object.assign || function (target) {
|
|
6623
|
+
function _extends$1$1() {
|
|
6624
|
+
_extends$1$1 = Object.assign || function (target) {
|
|
6577
6625
|
for (var i = 1; i < arguments.length; i++) {
|
|
6578
6626
|
var source = arguments[i];
|
|
6579
6627
|
|
|
@@ -6587,7 +6635,7 @@ function _extends$1() {
|
|
|
6587
6635
|
return target;
|
|
6588
6636
|
};
|
|
6589
6637
|
|
|
6590
|
-
return _extends$1.apply(this, arguments);
|
|
6638
|
+
return _extends$1$1.apply(this, arguments);
|
|
6591
6639
|
}
|
|
6592
6640
|
|
|
6593
6641
|
var version$1 = "1.7.1";
|
|
@@ -6595,7 +6643,7 @@ var version$1 = "1.7.1";
|
|
|
6595
6643
|
/*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */
|
|
6596
6644
|
var version$1$1 = "1.2.0";
|
|
6597
6645
|
|
|
6598
|
-
var _typeof
|
|
6646
|
+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
|
6599
6647
|
return typeof obj;
|
|
6600
6648
|
} : function (obj) {
|
|
6601
6649
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
@@ -6730,7 +6778,7 @@ var brightcovePlayerUrl = function brightcovePlayerUrl(_ref) {
|
|
|
6730
6778
|
|
|
6731
6779
|
var qs = '';
|
|
6732
6780
|
|
|
6733
|
-
if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof
|
|
6781
|
+
if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof(queryParams)) === 'object') {
|
|
6734
6782
|
qs = getQueryString(queryParams);
|
|
6735
6783
|
}
|
|
6736
6784
|
|
|
@@ -6964,7 +7012,7 @@ var wrapResponsive = function wrapResponsive(embedType, embedOptions, el) {
|
|
|
6964
7012
|
el.style.width = '100%';
|
|
6965
7013
|
el.style.height = '100%';
|
|
6966
7014
|
|
|
6967
|
-
var responsive = _extends$1({
|
|
7015
|
+
var responsive = _extends$1$1({
|
|
6968
7016
|
aspectRatio: DEFAULT_ASPECT_RATIO,
|
|
6969
7017
|
iframeHorizontalPlaylist: DEFAULT_IFRAME_HORIZONTAL_PLAYLIST,
|
|
6970
7018
|
maxWidth: DEFAULT_MAX_WIDTH
|
|
@@ -7649,7 +7697,7 @@ var loadPlayer = function loadPlayer(params, resolve, reject) {
|
|
|
7649
7697
|
|
|
7650
7698
|
|
|
7651
7699
|
var brightcovePlayerLoader = function brightcovePlayerLoader(parameters) {
|
|
7652
|
-
var params = _extends$1({}, DEFAULTS, parameters);
|
|
7700
|
+
var params = _extends$1$1({}, DEFAULTS, parameters);
|
|
7653
7701
|
|
|
7654
7702
|
var Promise = params.Promise,
|
|
7655
7703
|
onSuccess = params.onSuccess,
|
|
@@ -7791,7 +7839,7 @@ function (_React$Component) {
|
|
|
7791
7839
|
_this.refNode = ref;
|
|
7792
7840
|
};
|
|
7793
7841
|
|
|
7794
|
-
_this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized
|
|
7842
|
+
_this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized(_this));
|
|
7795
7843
|
return _this;
|
|
7796
7844
|
}
|
|
7797
7845
|
/**
|
|
@@ -7812,7 +7860,7 @@ function (_React$Component) {
|
|
|
7812
7860
|
var userSuccess = this.props.onSuccess;
|
|
7813
7861
|
var userFailure = this.props.onFailure;
|
|
7814
7862
|
|
|
7815
|
-
var options = _extends({}, this.props, {
|
|
7863
|
+
var options = _extends$1({}, this.props, {
|
|
7816
7864
|
refNode: this.refNode,
|
|
7817
7865
|
refNodeInsert: 'append',
|
|
7818
7866
|
onSuccess: function onSuccess(_ref) {
|
|
@@ -8121,7 +8169,7 @@ function (_React$Component) {
|
|
|
8121
8169
|
;
|
|
8122
8170
|
|
|
8123
8171
|
_proto.render = function render() {
|
|
8124
|
-
var props = _extends({
|
|
8172
|
+
var props = _extends$1({
|
|
8125
8173
|
className: 'brightcove-react-player-loader'
|
|
8126
8174
|
}, this.props.attrs, {
|
|
8127
8175
|
ref: this.setRefNode
|
|
@@ -8535,17 +8583,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
8535
8583
|
|
|
8536
8584
|
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; }
|
|
8537
8585
|
|
|
8538
|
-
function
|
|
8586
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
8539
8587
|
|
|
8540
|
-
function
|
|
8588
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
8541
8589
|
|
|
8542
|
-
function
|
|
8543
|
-
|
|
8544
|
-
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); }
|
|
8545
|
-
|
|
8546
|
-
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; }
|
|
8547
|
-
|
|
8548
|
-
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; }
|
|
8590
|
+
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; }
|
|
8549
8591
|
|
|
8550
8592
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8551
8593
|
|
|
@@ -8675,12 +8717,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
8675
8717
|
|
|
8676
8718
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
8677
8719
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
8678
|
-
|
|
8679
|
-
var
|
|
8680
|
-
|
|
8720
|
+
var _iteratorNormalCompletion = true;
|
|
8721
|
+
var _didIteratorError = false;
|
|
8722
|
+
var _iteratorError = undefined;
|
|
8681
8723
|
|
|
8682
8724
|
try {
|
|
8683
|
-
for (_iterator.
|
|
8725
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
8684
8726
|
var p = _step.value;
|
|
8685
8727
|
|
|
8686
8728
|
if (props$1[p]) {
|
|
@@ -8695,9 +8737,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
8695
8737
|
}
|
|
8696
8738
|
}
|
|
8697
8739
|
} catch (err) {
|
|
8698
|
-
|
|
8740
|
+
_didIteratorError = true;
|
|
8741
|
+
_iteratorError = err;
|
|
8699
8742
|
} finally {
|
|
8700
|
-
|
|
8743
|
+
try {
|
|
8744
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
8745
|
+
_iterator["return"]();
|
|
8746
|
+
}
|
|
8747
|
+
} finally {
|
|
8748
|
+
if (_didIteratorError) {
|
|
8749
|
+
throw _iteratorError;
|
|
8750
|
+
}
|
|
8751
|
+
}
|
|
8701
8752
|
}
|
|
8702
8753
|
|
|
8703
8754
|
return config;
|
|
@@ -8844,16 +8895,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
8844
8895
|
|
|
8845
8896
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
8846
8897
|
|
|
8847
|
-
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); }; }
|
|
8848
|
-
|
|
8849
8898
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
8850
8899
|
|
|
8851
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
8852
|
-
|
|
8853
|
-
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; } }
|
|
8854
|
-
|
|
8855
8900
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8856
8901
|
|
|
8902
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
8903
|
+
|
|
8857
8904
|
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); }
|
|
8858
8905
|
|
|
8859
8906
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -8862,12 +8909,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
8862
8909
|
|
|
8863
8910
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
8864
8911
|
|
|
8865
|
-
var Player =
|
|
8912
|
+
var Player =
|
|
8913
|
+
/*#__PURE__*/
|
|
8914
|
+
function (_Component) {
|
|
8866
8915
|
_inherits(Player, _Component);
|
|
8867
8916
|
|
|
8868
|
-
var _super = _createSuper(Player);
|
|
8869
|
-
|
|
8870
8917
|
function Player() {
|
|
8918
|
+
var _getPrototypeOf2;
|
|
8919
|
+
|
|
8871
8920
|
var _this;
|
|
8872
8921
|
|
|
8873
8922
|
_classCallCheck(this, Player);
|
|
@@ -8876,7 +8925,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
8876
8925
|
_args[_key] = arguments[_key];
|
|
8877
8926
|
}
|
|
8878
8927
|
|
|
8879
|
-
_this =
|
|
8928
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
8880
8929
|
|
|
8881
8930
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
8882
8931
|
|
|
@@ -9201,7 +9250,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
9201
9250
|
return null;
|
|
9202
9251
|
}
|
|
9203
9252
|
|
|
9204
|
-
return
|
|
9253
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
9205
9254
|
ref: this.ref,
|
|
9206
9255
|
onReady: this.handleReady,
|
|
9207
9256
|
onPlay: this.handlePlay,
|
|
@@ -9262,16 +9311,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9262
9311
|
|
|
9263
9312
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9264
9313
|
|
|
9265
|
-
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); }; }
|
|
9266
|
-
|
|
9267
9314
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9268
9315
|
|
|
9269
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9270
|
-
|
|
9271
|
-
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; } }
|
|
9272
|
-
|
|
9273
9316
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9274
9317
|
|
|
9318
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9319
|
+
|
|
9275
9320
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
9276
9321
|
|
|
9277
9322
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -9283,12 +9328,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
9283
9328
|
function createSinglePlayer(activePlayer) {
|
|
9284
9329
|
var _class, _temp;
|
|
9285
9330
|
|
|
9286
|
-
return _temp = _class =
|
|
9331
|
+
return _temp = _class =
|
|
9332
|
+
/*#__PURE__*/
|
|
9333
|
+
function (_Component) {
|
|
9287
9334
|
_inherits(SinglePlayer, _Component);
|
|
9288
9335
|
|
|
9289
|
-
var _super = _createSuper(SinglePlayer);
|
|
9290
|
-
|
|
9291
9336
|
function SinglePlayer() {
|
|
9337
|
+
var _getPrototypeOf2;
|
|
9338
|
+
|
|
9292
9339
|
var _this;
|
|
9293
9340
|
|
|
9294
9341
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -9297,7 +9344,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
9297
9344
|
args[_key] = arguments[_key];
|
|
9298
9345
|
}
|
|
9299
9346
|
|
|
9300
|
-
_this =
|
|
9347
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
9301
9348
|
|
|
9302
9349
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
9303
9350
|
|
|
@@ -9365,12 +9412,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
9365
9412
|
height = _this$props.height,
|
|
9366
9413
|
Wrapper = _this$props.wrapper;
|
|
9367
9414
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
9368
|
-
return
|
|
9415
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
9369
9416
|
style: _objectSpread({}, style, {
|
|
9370
9417
|
width: width,
|
|
9371
9418
|
height: height
|
|
9372
9419
|
})
|
|
9373
|
-
}, otherProps),
|
|
9420
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
9374
9421
|
ref: this.ref,
|
|
9375
9422
|
activePlayer: activePlayer,
|
|
9376
9423
|
config: this.config
|
|
@@ -9416,31 +9463,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9416
9463
|
|
|
9417
9464
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9418
9465
|
|
|
9419
|
-
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); }; }
|
|
9420
|
-
|
|
9421
9466
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9422
9467
|
|
|
9423
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9424
|
-
|
|
9425
|
-
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; } }
|
|
9426
|
-
|
|
9427
9468
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9428
9469
|
|
|
9470
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9471
|
+
|
|
9429
9472
|
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); }
|
|
9430
9473
|
|
|
9431
9474
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
9432
9475
|
|
|
9433
9476
|
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; }
|
|
9434
9477
|
|
|
9435
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
9436
|
-
|
|
9437
|
-
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."); }
|
|
9438
|
-
|
|
9439
|
-
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); }
|
|
9478
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
9440
9479
|
|
|
9441
|
-
function
|
|
9480
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
9442
9481
|
|
|
9443
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
9482
|
+
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; }
|
|
9444
9483
|
|
|
9445
9484
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
9446
9485
|
|
|
@@ -9465,12 +9504,14 @@ function parsePlaylist(url) {
|
|
|
9465
9504
|
return {};
|
|
9466
9505
|
}
|
|
9467
9506
|
|
|
9468
|
-
var YouTube =
|
|
9507
|
+
var YouTube =
|
|
9508
|
+
/*#__PURE__*/
|
|
9509
|
+
function (_Component) {
|
|
9469
9510
|
_inherits(YouTube, _Component);
|
|
9470
9511
|
|
|
9471
|
-
var _super = _createSuper(YouTube);
|
|
9472
|
-
|
|
9473
9512
|
function YouTube() {
|
|
9513
|
+
var _getPrototypeOf2;
|
|
9514
|
+
|
|
9474
9515
|
var _this;
|
|
9475
9516
|
|
|
9476
9517
|
_classCallCheck(this, YouTube);
|
|
@@ -9479,7 +9520,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
9479
9520
|
args[_key] = arguments[_key];
|
|
9480
9521
|
}
|
|
9481
9522
|
|
|
9482
|
-
_this =
|
|
9523
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
9483
9524
|
|
|
9484
9525
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
9485
9526
|
|
|
@@ -9667,9 +9708,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
9667
9708
|
height: '100%',
|
|
9668
9709
|
display: display
|
|
9669
9710
|
};
|
|
9670
|
-
return
|
|
9711
|
+
return _react["default"].createElement("div", {
|
|
9671
9712
|
style: style
|
|
9672
|
-
},
|
|
9713
|
+
}, _react["default"].createElement("div", {
|
|
9673
9714
|
ref: this.ref
|
|
9674
9715
|
}));
|
|
9675
9716
|
}
|
|
@@ -9725,16 +9766,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9725
9766
|
|
|
9726
9767
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9727
9768
|
|
|
9728
|
-
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); }; }
|
|
9729
|
-
|
|
9730
9769
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9731
9770
|
|
|
9732
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9733
|
-
|
|
9734
|
-
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; } }
|
|
9735
|
-
|
|
9736
9771
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9737
9772
|
|
|
9773
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9774
|
+
|
|
9738
9775
|
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); }
|
|
9739
9776
|
|
|
9740
9777
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -9743,14 +9780,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
9743
9780
|
|
|
9744
9781
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
9745
9782
|
var SDK_GLOBAL = 'SC';
|
|
9746
|
-
var MATCH_URL = /(
|
|
9783
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
9747
9784
|
|
|
9748
|
-
var SoundCloud =
|
|
9785
|
+
var SoundCloud =
|
|
9786
|
+
/*#__PURE__*/
|
|
9787
|
+
function (_Component) {
|
|
9749
9788
|
_inherits(SoundCloud, _Component);
|
|
9750
9789
|
|
|
9751
|
-
var _super = _createSuper(SoundCloud);
|
|
9752
|
-
|
|
9753
9790
|
function SoundCloud() {
|
|
9791
|
+
var _getPrototypeOf2;
|
|
9792
|
+
|
|
9754
9793
|
var _this;
|
|
9755
9794
|
|
|
9756
9795
|
_classCallCheck(this, SoundCloud);
|
|
@@ -9759,7 +9798,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
9759
9798
|
args[_key] = arguments[_key];
|
|
9760
9799
|
}
|
|
9761
9800
|
|
|
9762
|
-
_this =
|
|
9801
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
9763
9802
|
|
|
9764
9803
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
9765
9804
|
|
|
@@ -9880,7 +9919,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
9880
9919
|
height: '100%',
|
|
9881
9920
|
display: display
|
|
9882
9921
|
};
|
|
9883
|
-
return
|
|
9922
|
+
return _react["default"].createElement("iframe", {
|
|
9884
9923
|
ref: this.ref,
|
|
9885
9924
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
9886
9925
|
style: style,
|
|
@@ -9942,16 +9981,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9942
9981
|
|
|
9943
9982
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9944
9983
|
|
|
9945
|
-
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); }; }
|
|
9946
|
-
|
|
9947
9984
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9948
9985
|
|
|
9949
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9950
|
-
|
|
9951
|
-
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; } }
|
|
9952
|
-
|
|
9953
9986
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9954
9987
|
|
|
9988
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9989
|
+
|
|
9955
9990
|
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); }
|
|
9956
9991
|
|
|
9957
9992
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -9963,12 +9998,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
9963
9998
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
9964
9999
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
9965
10000
|
|
|
9966
|
-
var Vimeo =
|
|
10001
|
+
var Vimeo =
|
|
10002
|
+
/*#__PURE__*/
|
|
10003
|
+
function (_Component) {
|
|
9967
10004
|
_inherits(Vimeo, _Component);
|
|
9968
10005
|
|
|
9969
|
-
var _super = _createSuper(Vimeo);
|
|
9970
|
-
|
|
9971
10006
|
function Vimeo() {
|
|
10007
|
+
var _getPrototypeOf2;
|
|
10008
|
+
|
|
9972
10009
|
var _this;
|
|
9973
10010
|
|
|
9974
10011
|
_classCallCheck(this, Vimeo);
|
|
@@ -9977,7 +10014,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
9977
10014
|
args[_key] = arguments[_key];
|
|
9978
10015
|
}
|
|
9979
10016
|
|
|
9980
|
-
_this =
|
|
10017
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
9981
10018
|
|
|
9982
10019
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
9983
10020
|
|
|
@@ -10134,7 +10171,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
10134
10171
|
overflow: 'hidden',
|
|
10135
10172
|
display: display
|
|
10136
10173
|
};
|
|
10137
|
-
return
|
|
10174
|
+
return _react["default"].createElement("div", {
|
|
10138
10175
|
key: this.props.url,
|
|
10139
10176
|
ref: this.ref,
|
|
10140
10177
|
style: style
|
|
@@ -10194,16 +10231,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10194
10231
|
|
|
10195
10232
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10196
10233
|
|
|
10197
|
-
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); }; }
|
|
10198
|
-
|
|
10199
10234
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10200
10235
|
|
|
10201
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10202
|
-
|
|
10203
|
-
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; } }
|
|
10204
|
-
|
|
10205
10236
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10206
10237
|
|
|
10238
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10239
|
+
|
|
10207
10240
|
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); }
|
|
10208
10241
|
|
|
10209
10242
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10216,12 +10249,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
10216
10249
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
10217
10250
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
10218
10251
|
|
|
10219
|
-
var Facebook =
|
|
10252
|
+
var Facebook =
|
|
10253
|
+
/*#__PURE__*/
|
|
10254
|
+
function (_Component) {
|
|
10220
10255
|
_inherits(Facebook, _Component);
|
|
10221
10256
|
|
|
10222
|
-
var _super = _createSuper(Facebook);
|
|
10223
|
-
|
|
10224
10257
|
function Facebook() {
|
|
10258
|
+
var _getPrototypeOf2;
|
|
10259
|
+
|
|
10225
10260
|
var _this;
|
|
10226
10261
|
|
|
10227
10262
|
_classCallCheck(this, Facebook);
|
|
@@ -10230,7 +10265,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
10230
10265
|
args[_key] = arguments[_key];
|
|
10231
10266
|
}
|
|
10232
10267
|
|
|
10233
|
-
_this =
|
|
10268
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10234
10269
|
|
|
10235
10270
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10236
10271
|
|
|
@@ -10346,7 +10381,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
10346
10381
|
width: '100%',
|
|
10347
10382
|
height: '100%'
|
|
10348
10383
|
};
|
|
10349
|
-
return
|
|
10384
|
+
return _react["default"].createElement("div", {
|
|
10350
10385
|
style: style,
|
|
10351
10386
|
id: this.playerID,
|
|
10352
10387
|
className: "fb-video",
|
|
@@ -10406,16 +10441,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10406
10441
|
|
|
10407
10442
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10408
10443
|
|
|
10409
|
-
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); }; }
|
|
10410
|
-
|
|
10411
10444
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10412
10445
|
|
|
10413
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10414
|
-
|
|
10415
|
-
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; } }
|
|
10416
|
-
|
|
10417
10446
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10418
10447
|
|
|
10448
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10449
|
+
|
|
10419
10450
|
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); }
|
|
10420
10451
|
|
|
10421
10452
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10426,12 +10457,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
10426
10457
|
var SDK_GLOBAL = 'playerjs';
|
|
10427
10458
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
10428
10459
|
|
|
10429
|
-
var Streamable =
|
|
10460
|
+
var Streamable =
|
|
10461
|
+
/*#__PURE__*/
|
|
10462
|
+
function (_Component) {
|
|
10430
10463
|
_inherits(Streamable, _Component);
|
|
10431
10464
|
|
|
10432
|
-
var _super = _createSuper(Streamable);
|
|
10433
|
-
|
|
10434
10465
|
function Streamable() {
|
|
10466
|
+
var _getPrototypeOf2;
|
|
10467
|
+
|
|
10435
10468
|
var _this;
|
|
10436
10469
|
|
|
10437
10470
|
_classCallCheck(this, Streamable);
|
|
@@ -10440,7 +10473,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
10440
10473
|
args[_key] = arguments[_key];
|
|
10441
10474
|
}
|
|
10442
10475
|
|
|
10443
|
-
_this =
|
|
10476
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10444
10477
|
|
|
10445
10478
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10446
10479
|
|
|
@@ -10560,7 +10593,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
10560
10593
|
width: '100%',
|
|
10561
10594
|
height: '100%'
|
|
10562
10595
|
};
|
|
10563
|
-
return
|
|
10596
|
+
return _react["default"].createElement("iframe", {
|
|
10564
10597
|
ref: this.ref,
|
|
10565
10598
|
src: "https://streamable.com/o/".concat(id),
|
|
10566
10599
|
frameBorder: "0",
|
|
@@ -10621,16 +10654,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10621
10654
|
|
|
10622
10655
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10623
10656
|
|
|
10624
|
-
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); }; }
|
|
10625
|
-
|
|
10626
10657
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10627
10658
|
|
|
10628
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10629
|
-
|
|
10630
|
-
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; } }
|
|
10631
|
-
|
|
10632
10659
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10633
10660
|
|
|
10661
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10662
|
+
|
|
10634
10663
|
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); }
|
|
10635
10664
|
|
|
10636
10665
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10641,48 +10670,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
10641
10670
|
var SDK_GLOBAL = 'Wistia';
|
|
10642
10671
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
10643
10672
|
|
|
10644
|
-
var Wistia =
|
|
10673
|
+
var Wistia =
|
|
10674
|
+
/*#__PURE__*/
|
|
10675
|
+
function (_Component) {
|
|
10645
10676
|
_inherits(Wistia, _Component);
|
|
10646
10677
|
|
|
10647
|
-
var _super = _createSuper(Wistia);
|
|
10648
|
-
|
|
10649
10678
|
function Wistia() {
|
|
10679
|
+
var _getPrototypeOf2;
|
|
10680
|
+
|
|
10650
10681
|
var _this;
|
|
10651
10682
|
|
|
10652
10683
|
_classCallCheck(this, Wistia);
|
|
10653
10684
|
|
|
10654
|
-
for (var _len = arguments.length,
|
|
10655
|
-
|
|
10685
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
10686
|
+
args[_key] = arguments[_key];
|
|
10656
10687
|
}
|
|
10657
10688
|
|
|
10658
|
-
_this =
|
|
10689
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10659
10690
|
|
|
10660
10691
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10661
10692
|
|
|
10662
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
10663
|
-
var _this$props;
|
|
10664
|
-
|
|
10665
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
10666
|
-
});
|
|
10667
|
-
|
|
10668
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
10669
|
-
var _this$props2;
|
|
10670
|
-
|
|
10671
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
10672
|
-
});
|
|
10673
|
-
|
|
10674
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
10675
|
-
var _this$props3;
|
|
10676
|
-
|
|
10677
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
10678
|
-
});
|
|
10679
|
-
|
|
10680
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
10681
|
-
var _this$props4;
|
|
10682
|
-
|
|
10683
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
10684
|
-
});
|
|
10685
|
-
|
|
10686
10693
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
10687
10694
|
_this.callPlayer('mute');
|
|
10688
10695
|
});
|
|
@@ -10704,13 +10711,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
10704
10711
|
value: function load(url) {
|
|
10705
10712
|
var _this2 = this;
|
|
10706
10713
|
|
|
10707
|
-
var _this$
|
|
10708
|
-
playing = _this$
|
|
10709
|
-
muted = _this$
|
|
10710
|
-
controls = _this$
|
|
10711
|
-
_onReady = _this$
|
|
10712
|
-
|
|
10713
|
-
|
|
10714
|
+
var _this$props = this.props,
|
|
10715
|
+
playing = _this$props.playing,
|
|
10716
|
+
muted = _this$props.muted,
|
|
10717
|
+
controls = _this$props.controls,
|
|
10718
|
+
_onReady = _this$props.onReady,
|
|
10719
|
+
onPlay = _this$props.onPlay,
|
|
10720
|
+
onPause = _this$props.onPause,
|
|
10721
|
+
onSeek = _this$props.onSeek,
|
|
10722
|
+
onEnded = _this$props.onEnded,
|
|
10723
|
+
config = _this$props.config,
|
|
10724
|
+
onError = _this$props.onError;
|
|
10714
10725
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
10715
10726
|
window._wq = window._wq || [];
|
|
10716
10727
|
|
|
@@ -10727,28 +10738,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
10727
10738
|
|
|
10728
10739
|
_this2.unbind();
|
|
10729
10740
|
|
|
10730
|
-
_this2.player.bind('play',
|
|
10741
|
+
_this2.player.bind('play', onPlay);
|
|
10731
10742
|
|
|
10732
|
-
_this2.player.bind('pause',
|
|
10743
|
+
_this2.player.bind('pause', onPause);
|
|
10733
10744
|
|
|
10734
|
-
_this2.player.bind('seek',
|
|
10745
|
+
_this2.player.bind('seek', onSeek);
|
|
10735
10746
|
|
|
10736
|
-
_this2.player.bind('end',
|
|
10747
|
+
_this2.player.bind('end', onEnded);
|
|
10737
10748
|
|
|
10738
10749
|
_onReady();
|
|
10739
10750
|
}
|
|
10740
10751
|
});
|
|
10741
10752
|
}, onError);
|
|
10742
10753
|
}
|
|
10743
|
-
}, {
|
|
10744
|
-
key: "unbind",
|
|
10745
|
-
value: function unbind() {
|
|
10746
|
-
this.player.unbind('play', this.onPlay);
|
|
10747
|
-
this.player.unbind('pause', this.onPause);
|
|
10748
|
-
this.player.unbind('seek', this.onSeek);
|
|
10749
|
-
this.player.unbind('end', this.onEnded);
|
|
10750
|
-
} // Proxy methods to prevent listener leaks
|
|
10751
|
-
|
|
10752
10754
|
}, {
|
|
10753
10755
|
key: "play",
|
|
10754
10756
|
value: function play() {
|
|
@@ -10759,6 +10761,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
10759
10761
|
value: function pause() {
|
|
10760
10762
|
this.callPlayer('pause');
|
|
10761
10763
|
}
|
|
10764
|
+
}, {
|
|
10765
|
+
key: "unbind",
|
|
10766
|
+
value: function unbind() {
|
|
10767
|
+
var _this$props2 = this.props,
|
|
10768
|
+
onPlay = _this$props2.onPlay,
|
|
10769
|
+
onPause = _this$props2.onPause,
|
|
10770
|
+
onSeek = _this$props2.onSeek,
|
|
10771
|
+
onEnded = _this$props2.onEnded;
|
|
10772
|
+
this.player.unbind('play', onPlay);
|
|
10773
|
+
this.player.unbind('pause', onPause);
|
|
10774
|
+
this.player.unbind('seek', onSeek);
|
|
10775
|
+
this.player.unbind('end', onEnded);
|
|
10776
|
+
}
|
|
10762
10777
|
}, {
|
|
10763
10778
|
key: "stop",
|
|
10764
10779
|
value: function stop() {
|
|
@@ -10804,7 +10819,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
10804
10819
|
width: '100%',
|
|
10805
10820
|
height: '100%'
|
|
10806
10821
|
};
|
|
10807
|
-
return
|
|
10822
|
+
return _react["default"].createElement("div", {
|
|
10808
10823
|
key: id,
|
|
10809
10824
|
className: className,
|
|
10810
10825
|
style: style
|
|
@@ -10864,16 +10879,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10864
10879
|
|
|
10865
10880
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10866
10881
|
|
|
10867
|
-
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); }; }
|
|
10868
|
-
|
|
10869
10882
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10870
10883
|
|
|
10871
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10872
|
-
|
|
10873
|
-
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; } }
|
|
10874
|
-
|
|
10875
10884
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10876
10885
|
|
|
10886
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10887
|
+
|
|
10877
10888
|
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); }
|
|
10878
10889
|
|
|
10879
10890
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10886,12 +10897,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
10886
10897
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
10887
10898
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
10888
10899
|
|
|
10889
|
-
var Twitch =
|
|
10900
|
+
var Twitch =
|
|
10901
|
+
/*#__PURE__*/
|
|
10902
|
+
function (_Component) {
|
|
10890
10903
|
_inherits(Twitch, _Component);
|
|
10891
10904
|
|
|
10892
|
-
var _super = _createSuper(Twitch);
|
|
10893
|
-
|
|
10894
10905
|
function Twitch() {
|
|
10906
|
+
var _getPrototypeOf2;
|
|
10907
|
+
|
|
10895
10908
|
var _this;
|
|
10896
10909
|
|
|
10897
10910
|
_classCallCheck(this, Twitch);
|
|
@@ -10900,7 +10913,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
10900
10913
|
args[_key] = arguments[_key];
|
|
10901
10914
|
}
|
|
10902
10915
|
|
|
10903
|
-
_this =
|
|
10916
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
10904
10917
|
|
|
10905
10918
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10906
10919
|
|
|
@@ -11021,7 +11034,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
11021
11034
|
width: '100%',
|
|
11022
11035
|
height: '100%'
|
|
11023
11036
|
};
|
|
11024
|
-
return
|
|
11037
|
+
return _react["default"].createElement("div", {
|
|
11025
11038
|
style: style,
|
|
11026
11039
|
id: this.playerID
|
|
11027
11040
|
});
|
|
@@ -11074,15 +11087,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
11074
11087
|
|
|
11075
11088
|
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; }
|
|
11076
11089
|
|
|
11077
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
11078
|
-
|
|
11079
|
-
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."); }
|
|
11080
|
-
|
|
11081
|
-
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); }
|
|
11090
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
11082
11091
|
|
|
11083
|
-
function
|
|
11092
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
11084
11093
|
|
|
11085
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
11094
|
+
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; }
|
|
11086
11095
|
|
|
11087
11096
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11088
11097
|
|
|
@@ -11092,16 +11101,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11092
11101
|
|
|
11093
11102
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11094
11103
|
|
|
11095
|
-
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); }; }
|
|
11096
|
-
|
|
11097
11104
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11098
11105
|
|
|
11099
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11100
|
-
|
|
11101
|
-
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; } }
|
|
11102
|
-
|
|
11103
11106
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11104
11107
|
|
|
11108
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11109
|
+
|
|
11105
11110
|
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); }
|
|
11106
11111
|
|
|
11107
11112
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -11113,12 +11118,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
11113
11118
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
11114
11119
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
11115
11120
|
|
|
11116
|
-
var DailyMotion =
|
|
11121
|
+
var DailyMotion =
|
|
11122
|
+
/*#__PURE__*/
|
|
11123
|
+
function (_Component) {
|
|
11117
11124
|
_inherits(DailyMotion, _Component);
|
|
11118
11125
|
|
|
11119
|
-
var _super = _createSuper(DailyMotion);
|
|
11120
|
-
|
|
11121
11126
|
function DailyMotion() {
|
|
11127
|
+
var _getPrototypeOf2;
|
|
11128
|
+
|
|
11122
11129
|
var _this;
|
|
11123
11130
|
|
|
11124
11131
|
_classCallCheck(this, DailyMotion);
|
|
@@ -11127,7 +11134,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
11127
11134
|
args[_key] = arguments[_key];
|
|
11128
11135
|
}
|
|
11129
11136
|
|
|
11130
|
-
_this =
|
|
11137
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
11131
11138
|
|
|
11132
11139
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
11133
11140
|
|
|
@@ -11256,9 +11263,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
11256
11263
|
height: '100%',
|
|
11257
11264
|
display: display
|
|
11258
11265
|
};
|
|
11259
|
-
return
|
|
11266
|
+
return _react["default"].createElement("div", {
|
|
11260
11267
|
style: style
|
|
11261
|
-
},
|
|
11268
|
+
}, _react["default"].createElement("div", {
|
|
11262
11269
|
ref: this.ref
|
|
11263
11270
|
}));
|
|
11264
11271
|
}
|
|
@@ -11316,16 +11323,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11316
11323
|
|
|
11317
11324
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11318
11325
|
|
|
11319
|
-
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); }; }
|
|
11320
|
-
|
|
11321
11326
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11322
11327
|
|
|
11323
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11324
|
-
|
|
11325
|
-
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; } }
|
|
11326
|
-
|
|
11327
11328
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11328
11329
|
|
|
11330
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11331
|
+
|
|
11329
11332
|
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); }
|
|
11330
11333
|
|
|
11331
11334
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -11336,12 +11339,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
11336
11339
|
var SDK_GLOBAL = 'Mixcloud';
|
|
11337
11340
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
11338
11341
|
|
|
11339
|
-
var Mixcloud =
|
|
11342
|
+
var Mixcloud =
|
|
11343
|
+
/*#__PURE__*/
|
|
11344
|
+
function (_Component) {
|
|
11340
11345
|
_inherits(Mixcloud, _Component);
|
|
11341
11346
|
|
|
11342
|
-
var _super = _createSuper(Mixcloud);
|
|
11343
|
-
|
|
11344
11347
|
function Mixcloud() {
|
|
11348
|
+
var _getPrototypeOf2;
|
|
11349
|
+
|
|
11345
11350
|
var _this;
|
|
11346
11351
|
|
|
11347
11352
|
_classCallCheck(this, Mixcloud);
|
|
@@ -11350,7 +11355,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
11350
11355
|
args[_key] = arguments[_key];
|
|
11351
11356
|
}
|
|
11352
11357
|
|
|
11353
|
-
_this =
|
|
11358
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
11354
11359
|
|
|
11355
11360
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
11356
11361
|
|
|
@@ -11453,7 +11458,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
11453
11458
|
})); // We have to give the iframe a key here to prevent a
|
|
11454
11459
|
// weird dialog appearing when loading a new track
|
|
11455
11460
|
|
|
11456
|
-
return
|
|
11461
|
+
return _react["default"].createElement("iframe", {
|
|
11457
11462
|
key: id,
|
|
11458
11463
|
ref: this.ref,
|
|
11459
11464
|
style: style,
|
|
@@ -11513,33 +11518,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11513
11518
|
|
|
11514
11519
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11515
11520
|
|
|
11516
|
-
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); }; }
|
|
11517
|
-
|
|
11518
11521
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11519
11522
|
|
|
11520
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11521
|
-
|
|
11522
|
-
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; } }
|
|
11523
|
-
|
|
11524
11523
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11525
11524
|
|
|
11525
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11526
|
+
|
|
11526
11527
|
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); }
|
|
11527
11528
|
|
|
11528
11529
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
11529
11530
|
|
|
11530
11531
|
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; }
|
|
11531
11532
|
|
|
11532
|
-
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; } } }; }
|
|
11533
|
-
|
|
11534
|
-
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); }
|
|
11535
|
-
|
|
11536
|
-
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; }
|
|
11537
|
-
|
|
11538
11533
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
11539
11534
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
11540
11535
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
11541
11536
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
11542
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
11537
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
11543
11538
|
var HLS_GLOBAL = 'Hls';
|
|
11544
11539
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
11545
11540
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -11548,11 +11543,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
11548
11543
|
|
|
11549
11544
|
function canPlay(url) {
|
|
11550
11545
|
if (url instanceof Array) {
|
|
11551
|
-
var
|
|
11552
|
-
|
|
11546
|
+
var _iteratorNormalCompletion = true;
|
|
11547
|
+
var _didIteratorError = false;
|
|
11548
|
+
var _iteratorError = undefined;
|
|
11553
11549
|
|
|
11554
11550
|
try {
|
|
11555
|
-
for (_iterator.
|
|
11551
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
11556
11552
|
var item = _step.value;
|
|
11557
11553
|
|
|
11558
11554
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -11564,9 +11560,18 @@ function canPlay(url) {
|
|
|
11564
11560
|
}
|
|
11565
11561
|
}
|
|
11566
11562
|
} catch (err) {
|
|
11567
|
-
|
|
11563
|
+
_didIteratorError = true;
|
|
11564
|
+
_iteratorError = err;
|
|
11568
11565
|
} finally {
|
|
11569
|
-
|
|
11566
|
+
try {
|
|
11567
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
11568
|
+
_iterator["return"]();
|
|
11569
|
+
}
|
|
11570
|
+
} finally {
|
|
11571
|
+
if (_didIteratorError) {
|
|
11572
|
+
throw _iteratorError;
|
|
11573
|
+
}
|
|
11574
|
+
}
|
|
11570
11575
|
}
|
|
11571
11576
|
|
|
11572
11577
|
return false;
|
|
@@ -11590,12 +11595,14 @@ function canEnablePIP(url) {
|
|
|
11590
11595
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
11591
11596
|
}
|
|
11592
11597
|
|
|
11593
|
-
var FilePlayer =
|
|
11598
|
+
var FilePlayer =
|
|
11599
|
+
/*#__PURE__*/
|
|
11600
|
+
function (_Component) {
|
|
11594
11601
|
_inherits(FilePlayer, _Component);
|
|
11595
11602
|
|
|
11596
|
-
var _super = _createSuper(FilePlayer);
|
|
11597
|
-
|
|
11598
11603
|
function FilePlayer() {
|
|
11604
|
+
var _getPrototypeOf2;
|
|
11605
|
+
|
|
11599
11606
|
var _this;
|
|
11600
11607
|
|
|
11601
11608
|
_classCallCheck(this, FilePlayer);
|
|
@@ -11604,7 +11611,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
11604
11611
|
_args[_key] = arguments[_key];
|
|
11605
11612
|
}
|
|
11606
11613
|
|
|
11607
|
-
_this =
|
|
11614
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
11608
11615
|
|
|
11609
11616
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
11610
11617
|
var _this$props;
|
|
@@ -11691,19 +11698,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
11691
11698
|
|
|
11692
11699
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
11693
11700
|
if (typeof source === 'string') {
|
|
11694
|
-
return
|
|
11701
|
+
return _react["default"].createElement("source", {
|
|
11695
11702
|
key: index,
|
|
11696
11703
|
src: source
|
|
11697
11704
|
});
|
|
11698
11705
|
}
|
|
11699
11706
|
|
|
11700
|
-
return
|
|
11707
|
+
return _react["default"].createElement("source", _extends({
|
|
11701
11708
|
key: index
|
|
11702
11709
|
}, source));
|
|
11703
11710
|
});
|
|
11704
11711
|
|
|
11705
11712
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
11706
|
-
return
|
|
11713
|
+
return _react["default"].createElement("track", _extends({
|
|
11707
11714
|
key: index
|
|
11708
11715
|
}, track));
|
|
11709
11716
|
});
|
|
@@ -11741,10 +11748,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
11741
11748
|
key: "componentWillUnmount",
|
|
11742
11749
|
value: function componentWillUnmount() {
|
|
11743
11750
|
this.removeListeners(this.player);
|
|
11744
|
-
|
|
11745
|
-
if (this.hls) {
|
|
11746
|
-
this.hls.destroy();
|
|
11747
|
-
}
|
|
11748
11751
|
}
|
|
11749
11752
|
}, {
|
|
11750
11753
|
key: "addListeners",
|
|
@@ -11875,6 +11878,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
11875
11878
|
value: function stop() {
|
|
11876
11879
|
this.player.removeAttribute('src');
|
|
11877
11880
|
|
|
11881
|
+
if (this.hls) {
|
|
11882
|
+
this.hls.destroy();
|
|
11883
|
+
}
|
|
11884
|
+
|
|
11878
11885
|
if (this.dash) {
|
|
11879
11886
|
this.dash.reset();
|
|
11880
11887
|
}
|
|
@@ -11986,7 +11993,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
11986
11993
|
width: width === 'auto' ? width : '100%',
|
|
11987
11994
|
height: height === 'auto' ? height : '100%'
|
|
11988
11995
|
};
|
|
11989
|
-
return
|
|
11996
|
+
return _react["default"].createElement(Element, _extends({
|
|
11990
11997
|
ref: this.ref,
|
|
11991
11998
|
src: this.getSource(url),
|
|
11992
11999
|
style: style,
|
|
@@ -12076,16 +12083,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
12076
12083
|
|
|
12077
12084
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
12078
12085
|
|
|
12079
|
-
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); }; }
|
|
12080
|
-
|
|
12081
12086
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
12082
12087
|
|
|
12083
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12084
|
-
|
|
12085
|
-
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; } }
|
|
12086
|
-
|
|
12087
12088
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12088
12089
|
|
|
12090
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12091
|
+
|
|
12089
12092
|
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); }
|
|
12090
12093
|
|
|
12091
12094
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -12094,12 +12097,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
12094
12097
|
|
|
12095
12098
|
var ICON_SIZE = '64px';
|
|
12096
12099
|
|
|
12097
|
-
var Preview =
|
|
12100
|
+
var Preview =
|
|
12101
|
+
/*#__PURE__*/
|
|
12102
|
+
function (_Component) {
|
|
12098
12103
|
_inherits(Preview, _Component);
|
|
12099
12104
|
|
|
12100
|
-
var _super = _createSuper(Preview);
|
|
12101
|
-
|
|
12102
12105
|
function Preview() {
|
|
12106
|
+
var _getPrototypeOf2;
|
|
12107
|
+
|
|
12103
12108
|
var _this;
|
|
12104
12109
|
|
|
12105
12110
|
_classCallCheck(this, Preview);
|
|
@@ -12108,7 +12113,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
12108
12113
|
args[_key] = arguments[_key];
|
|
12109
12114
|
}
|
|
12110
12115
|
|
|
12111
|
-
_this =
|
|
12116
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
12112
12117
|
|
|
12113
12118
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
12114
12119
|
|
|
@@ -12206,15 +12211,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
12206
12211
|
}
|
|
12207
12212
|
};
|
|
12208
12213
|
|
|
12209
|
-
var defaultPlayIcon =
|
|
12214
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
12210
12215
|
style: styles.shadow,
|
|
12211
12216
|
className: "react-player__shadow"
|
|
12212
|
-
},
|
|
12217
|
+
}, _react["default"].createElement("div", {
|
|
12213
12218
|
style: styles.playIcon,
|
|
12214
12219
|
className: "react-player__play-icon"
|
|
12215
12220
|
}));
|
|
12216
12221
|
|
|
12217
|
-
return
|
|
12222
|
+
return _react["default"].createElement("div", {
|
|
12218
12223
|
style: styles.preview,
|
|
12219
12224
|
className: "react-player__preview",
|
|
12220
12225
|
onClick: onClick
|
|
@@ -12251,12 +12256,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
12251
12256
|
|
|
12252
12257
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12253
12258
|
|
|
12254
|
-
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; } } }; }
|
|
12255
|
-
|
|
12256
|
-
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); }
|
|
12257
|
-
|
|
12258
|
-
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; }
|
|
12259
|
-
|
|
12260
12259
|
var PRELOAD_PLAYERS = [{
|
|
12261
12260
|
Player: YouTube_1.YouTube,
|
|
12262
12261
|
configKey: 'youtube',
|
|
@@ -12277,16 +12276,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
12277
12276
|
|
|
12278
12277
|
function renderPreloadPlayers(url, controls, config) {
|
|
12279
12278
|
var players = [];
|
|
12280
|
-
|
|
12281
|
-
var
|
|
12282
|
-
|
|
12279
|
+
var _iteratorNormalCompletion = true;
|
|
12280
|
+
var _didIteratorError = false;
|
|
12281
|
+
var _iteratorError = undefined;
|
|
12283
12282
|
|
|
12284
12283
|
try {
|
|
12285
|
-
for (_iterator.
|
|
12284
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
12286
12285
|
var player = _step.value;
|
|
12287
12286
|
|
|
12288
12287
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
12289
|
-
players.push(
|
|
12288
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
12290
12289
|
key: player.Player.displayName,
|
|
12291
12290
|
activePlayer: player.Player,
|
|
12292
12291
|
url: player.url,
|
|
@@ -12298,9 +12297,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
12298
12297
|
}
|
|
12299
12298
|
}
|
|
12300
12299
|
} catch (err) {
|
|
12301
|
-
|
|
12300
|
+
_didIteratorError = true;
|
|
12301
|
+
_iteratorError = err;
|
|
12302
12302
|
} finally {
|
|
12303
|
-
|
|
12303
|
+
try {
|
|
12304
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
12305
|
+
_iterator["return"]();
|
|
12306
|
+
}
|
|
12307
|
+
} finally {
|
|
12308
|
+
if (_didIteratorError) {
|
|
12309
|
+
throw _iteratorError;
|
|
12310
|
+
}
|
|
12311
|
+
}
|
|
12304
12312
|
}
|
|
12305
12313
|
|
|
12306
12314
|
return players;
|
|
@@ -12424,17 +12432,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
12424
12432
|
|
|
12425
12433
|
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); }
|
|
12426
12434
|
|
|
12427
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
12435
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
12428
12436
|
|
|
12429
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
12437
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
12430
12438
|
|
|
12431
|
-
function
|
|
12439
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
12432
12440
|
|
|
12433
|
-
function
|
|
12434
|
-
|
|
12435
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
12436
|
-
|
|
12437
|
-
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; }
|
|
12441
|
+
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; } }
|
|
12438
12442
|
|
|
12439
12443
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
12440
12444
|
|
|
@@ -12442,16 +12446,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
12442
12446
|
|
|
12443
12447
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
12444
12448
|
|
|
12445
|
-
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); }; }
|
|
12446
|
-
|
|
12447
12449
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
12448
12450
|
|
|
12449
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12450
|
-
|
|
12451
|
-
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; } }
|
|
12452
|
-
|
|
12453
12451
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12454
12452
|
|
|
12453
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12454
|
+
|
|
12455
12455
|
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); }
|
|
12456
12456
|
|
|
12457
12457
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -12461,12 +12461,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
12461
12461
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
12462
12462
|
var customPlayers = [];
|
|
12463
12463
|
|
|
12464
|
-
var ReactPlayer =
|
|
12464
|
+
var ReactPlayer =
|
|
12465
|
+
/*#__PURE__*/
|
|
12466
|
+
function (_Component) {
|
|
12465
12467
|
_inherits(ReactPlayer, _Component);
|
|
12466
12468
|
|
|
12467
|
-
var _super = _createSuper(ReactPlayer);
|
|
12468
|
-
|
|
12469
12469
|
function ReactPlayer() {
|
|
12470
|
+
var _getPrototypeOf2;
|
|
12471
|
+
|
|
12470
12472
|
var _this;
|
|
12471
12473
|
|
|
12472
12474
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -12475,7 +12477,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
12475
12477
|
args[_key] = arguments[_key];
|
|
12476
12478
|
}
|
|
12477
12479
|
|
|
12478
|
-
_this =
|
|
12480
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
12479
12481
|
|
|
12480
12482
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
12481
12483
|
|
|
@@ -12586,7 +12588,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
12586
12588
|
key: "renderActivePlayer",
|
|
12587
12589
|
value: function renderActivePlayer(url, activePlayer) {
|
|
12588
12590
|
if (!url) return null;
|
|
12589
|
-
return
|
|
12591
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
12590
12592
|
key: activePlayer.displayName,
|
|
12591
12593
|
ref: this.activePlayerRef,
|
|
12592
12594
|
config: this.config,
|
|
@@ -12623,14 +12625,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
12623
12625
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
12624
12626
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
12625
12627
|
|
|
12626
|
-
var preview =
|
|
12628
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
12627
12629
|
url: url,
|
|
12628
12630
|
light: light,
|
|
12629
12631
|
playIcon: playIcon,
|
|
12630
12632
|
onClick: this.handleClickPreview
|
|
12631
12633
|
});
|
|
12632
12634
|
|
|
12633
|
-
return
|
|
12635
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
12634
12636
|
ref: this.wrapperRef,
|
|
12635
12637
|
style: _objectSpread({}, style, {
|
|
12636
12638
|
width: width,
|
|
@@ -12926,6 +12928,12 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
12926
12928
|
setData(data);
|
|
12927
12929
|
}, []);
|
|
12928
12930
|
|
|
12931
|
+
useEffect(function () {
|
|
12932
|
+
if (vidLoaded == true) {
|
|
12933
|
+
document.title = nodes.videos[series - 1].title;
|
|
12934
|
+
}
|
|
12935
|
+
}, [vidLoaded]);
|
|
12936
|
+
|
|
12929
12937
|
function toggleSeries() {
|
|
12930
12938
|
var series = document.querySelector('.vid-series');
|
|
12931
12939
|
if (series.classList.contains('active')) {
|
|
@@ -12946,6 +12954,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
12946
12954
|
var newPath = '/' + get2 + '/' + get3 + ('?seriesVid=' + vidIndex);
|
|
12947
12955
|
var vidState = { vid_id: vidIndex };
|
|
12948
12956
|
window.history.pushState(vidState, '', newPath);
|
|
12957
|
+
|
|
12949
12958
|
setSeries(vidIndex);
|
|
12950
12959
|
setVidLoaded(true);
|
|
12951
12960
|
}, 100);
|
|
@@ -12994,7 +13003,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
12994
13003
|
var vidState = { vid_id: nextVid + 1 };
|
|
12995
13004
|
var title = '';
|
|
12996
13005
|
window.history.pushState(vidState, title, newPath);
|
|
12997
|
-
|
|
13006
|
+
window.dispatchEvent(new Event('urlChange'));
|
|
12998
13007
|
//Small pause before starting next video
|
|
12999
13008
|
setTimeout(function () {
|
|
13000
13009
|
//Youtube API to start video playing automatically
|
|
@@ -13482,7 +13491,7 @@ var NativeAd = function NativeAd(props) {
|
|
|
13482
13491
|
};
|
|
13483
13492
|
|
|
13484
13493
|
var Figure = dynamic(function () {
|
|
13485
|
-
return import('./Figure-
|
|
13494
|
+
return import('./Figure-b5847ea2.js');
|
|
13486
13495
|
}, { ssr: false });
|
|
13487
13496
|
|
|
13488
13497
|
var checkUrlIsExternal = function checkUrlIsExternal(url) {
|
|
@@ -14063,16 +14072,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
14063
14072
|
_ref$className = _ref.className,
|
|
14064
14073
|
className = _ref$className === undefined ? '' : _ref$className;
|
|
14065
14074
|
|
|
14066
|
-
/*
|
|
14067
|
-
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
14068
|
-
example:
|
|
14069
|
-
<RelatedTopicDropdown
|
|
14070
|
-
page='/clinical'
|
|
14071
|
-
exclude="clinical"
|
|
14072
|
-
className='mb-3'
|
|
14073
|
-
parentTaxonomy={props.parentTaxonomy}
|
|
14074
|
-
subTaxonomies={props.subTaxonomies}
|
|
14075
|
-
/>
|
|
14075
|
+
/*
|
|
14076
|
+
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
14077
|
+
example:
|
|
14078
|
+
<RelatedTopicDropdown
|
|
14079
|
+
page='/clinical'
|
|
14080
|
+
exclude="clinical"
|
|
14081
|
+
className='mb-3'
|
|
14082
|
+
parentTaxonomy={props.parentTaxonomy}
|
|
14083
|
+
subTaxonomies={props.subTaxonomies}
|
|
14084
|
+
/>
|
|
14076
14085
|
*/
|
|
14077
14086
|
if (subTaxonomies.length === 0 && parentTaxonomy) {
|
|
14078
14087
|
if (parentTaxonomy.identifier == exclude) {
|
|
@@ -14110,25 +14119,25 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
14110
14119
|
}
|
|
14111
14120
|
};
|
|
14112
14121
|
|
|
14113
|
-
/*
|
|
14114
|
-
This dropdown is used inside Article body to display related content placement and document group pages
|
|
14115
|
-
sample usage: <ArticleDetailDropdown article={props.article} exclude={['News']} style={{ backgroundColor: 'var(--primary)', border: 0 }} />
|
|
14116
|
-
|
|
14117
|
-
- accepts any normal html arrtibute (style, id, class)
|
|
14118
|
-
|
|
14119
|
-
- in article query, need to add '...' to content_placement to retreive additional info needed, and document_group to retrieve group data if available
|
|
14120
|
-
|
|
14121
|
-
'content_placement': taxonomyMapping[]-> {
|
|
14122
|
-
...,
|
|
14123
|
-
'ancestor': parent->parent->identifier,
|
|
14124
|
-
'parent': parent->identifier,
|
|
14125
|
-
'path': identifier
|
|
14126
|
-
},
|
|
14127
|
-
'document_group': documentGroup-> {
|
|
14128
|
-
name,
|
|
14129
|
-
'parent': parent->identifier,
|
|
14130
|
-
'path': identifier.current
|
|
14131
|
-
}
|
|
14122
|
+
/*
|
|
14123
|
+
This dropdown is used inside Article body to display related content placement and document group pages
|
|
14124
|
+
sample usage: <ArticleDetailDropdown article={props.article} exclude={['News']} style={{ backgroundColor: 'var(--primary)', border: 0 }} />
|
|
14125
|
+
|
|
14126
|
+
- accepts any normal html arrtibute (style, id, class)
|
|
14127
|
+
|
|
14128
|
+
- in article query, need to add '...' to content_placement to retreive additional info needed, and document_group to retrieve group data if available
|
|
14129
|
+
|
|
14130
|
+
'content_placement': taxonomyMapping[]-> {
|
|
14131
|
+
...,
|
|
14132
|
+
'ancestor': parent->parent->identifier,
|
|
14133
|
+
'parent': parent->identifier,
|
|
14134
|
+
'path': identifier
|
|
14135
|
+
},
|
|
14136
|
+
'document_group': documentGroup-> {
|
|
14137
|
+
name,
|
|
14138
|
+
'parent': parent->identifier,
|
|
14139
|
+
'path': identifier.current
|
|
14140
|
+
}
|
|
14132
14141
|
*/
|
|
14133
14142
|
|
|
14134
14143
|
var ArticleDetailDropdown = function ArticleDetailDropdown(props) {
|
|
@@ -15017,34 +15026,34 @@ var GridHero = function GridHero(props) {
|
|
|
15017
15026
|
);
|
|
15018
15027
|
};
|
|
15019
15028
|
|
|
15020
|
-
/*
|
|
15021
|
-
Sample query
|
|
15022
|
-
let references = ''
|
|
15023
|
-
if(article.taxonomyMapping.length > 0){
|
|
15024
|
-
article.taxonomyMapping.forEach((ref, index) => {
|
|
15025
|
-
references = references + `references('${ref._ref}') `
|
|
15026
|
-
if(index+1 !== article.taxonomyMapping.length){
|
|
15027
|
-
references = references + ` && `
|
|
15028
|
-
}
|
|
15029
|
-
})
|
|
15030
|
-
}
|
|
15031
|
-
|
|
15032
|
-
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] {
|
|
15033
|
-
...,
|
|
15034
|
-
title,
|
|
15035
|
-
summary,
|
|
15036
|
-
thumbnail,
|
|
15037
|
-
url,
|
|
15038
|
-
published,
|
|
15039
|
-
authorMapping[]->,
|
|
15040
|
-
contentCategory->
|
|
15041
|
-
}`
|
|
15042
|
-
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
15043
|
-
|
|
15044
|
-
Sample usage
|
|
15045
|
-
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
15046
|
-
|
|
15047
|
-
|
|
15029
|
+
/*
|
|
15030
|
+
Sample query
|
|
15031
|
+
let references = ''
|
|
15032
|
+
if(article.taxonomyMapping.length > 0){
|
|
15033
|
+
article.taxonomyMapping.forEach((ref, index) => {
|
|
15034
|
+
references = references + `references('${ref._ref}') `
|
|
15035
|
+
if(index+1 !== article.taxonomyMapping.length){
|
|
15036
|
+
references = references + ` && `
|
|
15037
|
+
}
|
|
15038
|
+
})
|
|
15039
|
+
}
|
|
15040
|
+
|
|
15041
|
+
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] {
|
|
15042
|
+
...,
|
|
15043
|
+
title,
|
|
15044
|
+
summary,
|
|
15045
|
+
thumbnail,
|
|
15046
|
+
url,
|
|
15047
|
+
published,
|
|
15048
|
+
authorMapping[]->,
|
|
15049
|
+
contentCategory->
|
|
15050
|
+
}`
|
|
15051
|
+
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
15052
|
+
|
|
15053
|
+
Sample usage
|
|
15054
|
+
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
15055
|
+
|
|
15056
|
+
|
|
15048
15057
|
*/
|
|
15049
15058
|
var RelatedContent = function RelatedContent(props) {
|
|
15050
15059
|
var client = props.client,
|
|
@@ -15111,21 +15120,21 @@ var RelatedContent = function RelatedContent(props) {
|
|
|
15111
15120
|
);
|
|
15112
15121
|
};
|
|
15113
15122
|
|
|
15114
|
-
/*
|
|
15115
|
-
Example usage - targetedonc.com/latest-conference
|
|
15116
|
-
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] {
|
|
15117
|
-
...,
|
|
15118
|
-
title,
|
|
15119
|
-
summary,
|
|
15120
|
-
thumbnail,
|
|
15121
|
-
url,
|
|
15122
|
-
published,
|
|
15123
|
-
documentGroup->,
|
|
15124
|
-
contentCategory->,
|
|
15125
|
-
'pageNumber': ${currentPage}
|
|
15126
|
-
}`
|
|
15127
|
-
|
|
15128
|
-
const posts = await client.fetch(query, params)
|
|
15123
|
+
/*
|
|
15124
|
+
Example usage - targetedonc.com/latest-conference
|
|
15125
|
+
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] {
|
|
15126
|
+
...,
|
|
15127
|
+
title,
|
|
15128
|
+
summary,
|
|
15129
|
+
thumbnail,
|
|
15130
|
+
url,
|
|
15131
|
+
published,
|
|
15132
|
+
documentGroup->,
|
|
15133
|
+
contentCategory->,
|
|
15134
|
+
'pageNumber': ${currentPage}
|
|
15135
|
+
}`
|
|
15136
|
+
|
|
15137
|
+
const posts = await client.fetch(query, params)
|
|
15129
15138
|
*/
|
|
15130
15139
|
|
|
15131
15140
|
var ConferenceArticleCard = function ConferenceArticleCard(props) {
|
|
@@ -16529,27 +16538,27 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
16529
16538
|
};
|
|
16530
16539
|
|
|
16531
16540
|
var KMTracker = function KMTracker(props) {
|
|
16532
|
-
|
|
16541
|
+
var id = props.id;
|
|
16533
16542
|
|
|
16534
|
-
|
|
16543
|
+
if (document && id) {
|
|
16535
16544
|
(function () {
|
|
16536
|
-
|
|
16545
|
+
var ecnJquery = document.createElement('script');
|
|
16537
16546
|
|
|
16538
|
-
|
|
16539
|
-
|
|
16540
|
-
|
|
16547
|
+
ecnJquery.type = 'text/javascript';
|
|
16548
|
+
ecnJquery.async = true;
|
|
16549
|
+
ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
|
|
16541
16550
|
|
|
16542
|
-
|
|
16551
|
+
var ecnScript = document.createElement('script');
|
|
16543
16552
|
|
|
16544
|
-
|
|
16545
|
-
|
|
16546
|
-
|
|
16547
|
-
|
|
16553
|
+
ecnScript.type = 'text/javascript';
|
|
16554
|
+
ecnScript.async = true;
|
|
16555
|
+
ecnScript.id = 'km-tracker';
|
|
16556
|
+
ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
|
|
16548
16557
|
|
|
16549
|
-
|
|
16550
|
-
|
|
16551
|
-
|
|
16552
|
-
|
|
16558
|
+
document.head.appendChild(ecnJquery);
|
|
16559
|
+
document.head.appendChild(ecnScript);
|
|
16560
|
+
})();
|
|
16561
|
+
}
|
|
16553
16562
|
};
|
|
16554
16563
|
|
|
16555
16564
|
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, HighlightenVideo, HorizontalHero, KMTracker, OncliveHero, OncliveLargeHero, PdfDownload, RelatedContent, RelatedTopicsDropdown, SetCookie, SocialShare$1 as SocialShare, VerticalHero, YahooHero, getSerializers };
|