@mjhls/mjh-framework 1.0.537 → 1.0.540
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +172 -172
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +3 -3
- package/dist/cjs/AD300x250x600.js +3 -3
- package/dist/cjs/AD728x90.js +5 -5
- package/dist/cjs/ADFloatingFooter.js +5 -5
- package/dist/cjs/ADGutter.js +2 -2
- package/dist/cjs/ADSponsoredResources.js +2 -2
- package/dist/cjs/ADWebcast.js +2 -2
- package/dist/cjs/ADWelcome.js +2 -2
- package/dist/cjs/AccordionPanel.js +2 -2
- package/dist/cjs/AdSlot.js +2 -2
- package/dist/cjs/AdSlotsProvider.js +1 -1
- package/dist/cjs/ArticleQueue.js +10 -10
- package/dist/cjs/Auth.js +507 -256
- package/dist/cjs/{BlockContent-77f81ffc.js → BlockContent-f942392e.js} +1 -1
- package/dist/cjs/CMEDeck.js +5 -5
- package/dist/cjs/Column3.js +4 -4
- package/dist/cjs/ConferenceArticleCard.js +17 -17
- package/dist/cjs/DeckContent.js +15 -15
- package/dist/cjs/DeckQueue.js +6 -6
- package/dist/cjs/{Dfp-fcdeabc4.js → Dfp-fbe32b96.js} +1 -1
- package/dist/cjs/EventsDeck.js +22 -22
- package/dist/cjs/ExternalResources.js +6 -6
- package/dist/cjs/Feature.js +3 -3
- package/dist/cjs/ForbesHero.js +2 -2
- package/dist/cjs/GridContent.js +10 -10
- package/dist/cjs/GridHero.js +2 -2
- package/dist/cjs/GroupDeck.js +5 -5
- package/dist/cjs/HamMagazine.js +218 -39
- package/dist/cjs/Hero.js +1 -1
- package/dist/cjs/HorizontalHero.js +5 -5
- package/dist/cjs/IssueContentDeck.js +2 -2
- package/dist/cjs/IssueDeck.js +2 -2
- package/dist/cjs/IssueLanding.js +36 -36
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +2 -2
- package/dist/cjs/MasterDeck.js +20 -23
- package/dist/cjs/NavDvm.js +214 -14
- package/dist/cjs/NavMagazine.js +212 -25
- package/dist/cjs/NavNative.js +201 -24
- package/dist/cjs/NavNormal.js +229 -10
- package/dist/cjs/OncliveHero.js +4 -4
- package/dist/cjs/OncliveLargeHero.js +2 -2
- package/dist/cjs/PartnerDetailListing.js +14 -1210
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PublicationDeck.js +1 -1
- package/dist/cjs/PublicationLanding.js +41 -34
- package/dist/cjs/QueueDeckExpanded.js +9 -9
- package/dist/cjs/RelatedContent.js +30 -30
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/TaxonomyCard.js +2 -2
- package/dist/cjs/TemplateNormal.js +9 -9
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/Ustream.js +7 -7
- package/dist/cjs/VerticalHero.js +2 -2
- package/dist/cjs/VideoSeriesFilter.js +1 -1
- package/dist/cjs/VideoSeriesListing.js +6 -6
- package/dist/cjs/View.js +38 -38
- package/dist/cjs/YahooHero.js +2 -2
- package/dist/cjs/YoutubeGroup.js +5 -5
- package/dist/cjs/getQuery.js +1 -1
- package/dist/cjs/getRelatedArticle.js +6 -355
- package/dist/cjs/getSerializers.js +449 -437
- package/dist/cjs/{getTargeting-3d208b98.js → getTargeting-b15993cb.js} +11 -11
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{iconBase-637d3f1e.js → iconBase-68959171.js} +1 -0
- package/dist/cjs/{index-3294d3bc.js → index-5be2866f.js} +1 -1
- package/dist/cjs/{index-be0c82be.js → index-b5eb3ff8.js} +20 -19
- package/dist/cjs/{index-fa3cec70.js → index-f7ee1612.js} +4 -6
- package/dist/cjs/{index.es-9110add6.js → index.es-ab3f2690.js} +3 -1
- package/dist/cjs/index.esm-0e5c6a9e.js +11 -0
- package/dist/cjs/{index.esm-c0d8b44b.js → index.esm-66ffa47a.js} +1 -1
- package/dist/cjs/{index.esm-25423c2f.js → index.esm-89fabc47.js} +1 -1
- package/dist/cjs/{index.esm-fcdbd2c6.js → index.esm-fbd1f7e9.js} +1 -1
- package/dist/cjs/index.js +23 -21
- package/dist/cjs/{main-88348b15.js → main-bc4db521.js} +66 -35
- package/dist/cjs/{moment-575fe24c.js → moment-66a6a284.js} +1 -1
- package/dist/cjs/urlFor.js +2 -2
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +3 -3
- package/dist/esm/AD300x250x600.js +3 -3
- package/dist/esm/AD728x90.js +5 -5
- package/dist/esm/ADFloatingFooter.js +5 -5
- package/dist/esm/ADGutter.js +2 -2
- package/dist/esm/ADSponsoredResources.js +2 -2
- package/dist/esm/ADWebcast.js +2 -2
- package/dist/esm/ADWelcome.js +2 -2
- package/dist/esm/AccordionPanel.js +2 -2
- package/dist/esm/AdSlot.js +2 -2
- package/dist/esm/AdSlotsProvider.js +1 -1
- package/dist/esm/ArticleQueue.js +10 -10
- package/dist/esm/Auth.js +499 -248
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-a614acdf.js} +1 -1
- package/dist/esm/CMEDeck.js +5 -5
- package/dist/esm/Column3.js +4 -4
- package/dist/esm/ConferenceArticleCard.js +17 -17
- package/dist/esm/DeckContent.js +15 -15
- package/dist/esm/DeckQueue.js +6 -6
- package/dist/esm/{Dfp-81a052c2.js → Dfp-ae9336e2.js} +1 -1
- package/dist/esm/EventsDeck.js +22 -22
- package/dist/esm/ExternalResources.js +6 -6
- package/dist/esm/Feature.js +3 -3
- package/dist/esm/ForbesHero.js +2 -2
- package/dist/esm/GridContent.js +10 -10
- package/dist/esm/GridHero.js +2 -2
- package/dist/esm/GroupDeck.js +5 -5
- package/dist/esm/HamMagazine.js +218 -39
- package/dist/esm/Hero.js +1 -1
- package/dist/esm/HorizontalHero.js +4 -4
- package/dist/esm/IssueContentDeck.js +2 -2
- package/dist/esm/IssueDeck.js +2 -2
- package/dist/esm/IssueLanding.js +36 -36
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +2 -2
- package/dist/esm/MasterDeck.js +20 -23
- package/dist/esm/NavDvm.js +215 -15
- package/dist/esm/NavMagazine.js +212 -25
- package/dist/esm/NavNative.js +201 -24
- package/dist/esm/NavNormal.js +230 -11
- package/dist/esm/OncliveHero.js +4 -4
- package/dist/esm/OncliveLargeHero.js +2 -2
- package/dist/esm/PartnerDetailListing.js +12 -1208
- package/dist/esm/PdfDownload.js +2 -2
- package/dist/esm/PublicationDeck.js +1 -1
- package/dist/esm/PublicationLanding.js +41 -34
- package/dist/esm/QueueDeckExpanded.js +9 -9
- package/dist/esm/RelatedContent.js +30 -30
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/SideFooter.js +2 -2
- package/dist/esm/TaxonomyCard.js +2 -2
- package/dist/esm/TemplateNormal.js +9 -9
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/Ustream.js +5 -5
- package/dist/esm/VerticalHero.js +2 -2
- package/dist/esm/VideoSeriesFilter.js +1 -1
- package/dist/esm/VideoSeriesListing.js +6 -6
- package/dist/esm/View.js +13 -13
- package/dist/esm/YahooHero.js +2 -2
- package/dist/esm/YoutubeGroup.js +5 -5
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getRelatedArticle.js +6 -355
- package/dist/esm/getSerializers.js +449 -437
- package/dist/esm/{getTargeting-1f2c61e3.js → getTargeting-1a0bd08d.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{iconBase-6ee2f2fb.js → iconBase-602d52fe.js} +1 -1
- package/dist/esm/{index-73819142.js → index-51a80699.js} +20 -19
- package/dist/esm/{index-3f4dd6f2.js → index-93ec3c59.js} +4 -6
- package/dist/esm/{index-ef6d5dcf.js → index-d2f90501.js} +1 -1
- package/dist/esm/{index.es-29c1cef5.js → index.es-938a3a58.js} +3 -1
- package/dist/esm/index.esm-16536e81.js +9 -0
- package/dist/esm/{index.esm-b97cf389.js → index.esm-4b1d94b7.js} +1 -1
- package/dist/esm/{index.esm-a7ad65ba.js → index.esm-9a4c8813.js} +1 -1
- package/dist/esm/{index.esm-9d6faf80.js → index.esm-b08f4b04.js} +1 -1
- package/dist/esm/index.js +21 -19
- package/dist/esm/{main-d7ee6151.js → main-7255814e.js} +65 -34
- package/dist/esm/{moment-e2f9b20c.js → moment-12415288.js} +1 -1
- package/dist/esm/urlFor.js +2 -2
- package/package.json +107 -107
- package/dist/cjs/index-bd6c9f56.js +0 -211
- package/dist/esm/index-db3bb315.js +0 -207
- /package/dist/cjs/{ADInfeed-d8e47444.js → ADInfeed-3404200f.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-947c3a47.js → ADlgInfeed-2611e1a9.js} +0 -0
- /package/dist/esm/{ADInfeed-2eb234ae.js → ADInfeed-27674dc6.js} +0 -0
- /package/dist/esm/{ADlgInfeed-17c13711.js → ADlgInfeed-43060a77.js} +0 -0
|
@@ -5,20 +5,20 @@ import './_library-528f1934.js';
|
|
|
5
5
|
import './_iter-detect-6e099a34.js';
|
|
6
6
|
import { _ as _Array$from } from './from-2c0a5f49.js';
|
|
7
7
|
import './_object-pie-33c40e79.js';
|
|
8
|
-
import { _ as _extends
|
|
8
|
+
import { _ as _extends } from './extends-6e00b262.js';
|
|
9
9
|
import './web.dom.iterable-46c95e52.js';
|
|
10
10
|
import './typeof-5f046efd.js';
|
|
11
11
|
import './_is-array-dd5523d6.js';
|
|
12
12
|
import React__default, { useState, useEffect } from 'react';
|
|
13
|
-
import { l as lib_3 } from './index-
|
|
13
|
+
import { l as lib_3 } from './index-93ec3c59.js';
|
|
14
14
|
import PropTypes from 'prop-types';
|
|
15
15
|
import Router, { useRouter } from 'next/router';
|
|
16
16
|
import './isSymbol-b7b7434f.js';
|
|
17
17
|
import './debounce-048d9cb6.js';
|
|
18
18
|
import 'react-dom';
|
|
19
|
-
import { i as imageUrlBuilder } from './index-
|
|
19
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
20
20
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
21
|
-
import { b as main_16, c as
|
|
21
|
+
import { b as main_16, c as main_38 } from './main-7255814e.js';
|
|
22
22
|
import { h as html_decode_1 } from './entities-7cc3bf45.js';
|
|
23
23
|
import { _ as _slicedToArray } from './slicedToArray-f1e40361.js';
|
|
24
24
|
import './stringify-e30bc114.js';
|
|
@@ -26,7 +26,7 @@ import './asyncToGenerator-0379e924.js';
|
|
|
26
26
|
import './_set-species-6f64f1c1.js';
|
|
27
27
|
import { B as Beam, S as Segment } from './beam-a25bd8fd.js';
|
|
28
28
|
import DFPAdSlot from './AdSlot.js';
|
|
29
|
-
import { B as BlockContent } from './BlockContent-
|
|
29
|
+
import { B as BlockContent } from './BlockContent-a614acdf.js';
|
|
30
30
|
import { g as getYoutubeId } from './smoothscroll-4b699764.js';
|
|
31
31
|
import GroupDeck from './GroupDeck.js';
|
|
32
32
|
import { Carousel, Table, Figure as Figure$1, Button, ProgressBar, Row, Col } from 'react-bootstrap';
|
|
@@ -98,21 +98,18 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
98
98
|
);
|
|
99
99
|
};
|
|
100
100
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
// do not edit .js files directly - edit src/index.jst
|
|
102
|
+
|
|
103
|
+
|
|
104
104
|
|
|
105
105
|
var fastDeepEqual = function equal(a, b) {
|
|
106
106
|
if (a === b) return true;
|
|
107
107
|
|
|
108
108
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
109
|
-
|
|
110
|
-
, arrB = isArray(b)
|
|
111
|
-
, i
|
|
112
|
-
, length
|
|
113
|
-
, key;
|
|
109
|
+
if (a.constructor !== b.constructor) return false;
|
|
114
110
|
|
|
115
|
-
|
|
111
|
+
var length, i, keys;
|
|
112
|
+
if (Array.isArray(a)) {
|
|
116
113
|
length = a.length;
|
|
117
114
|
if (length != b.length) return false;
|
|
118
115
|
for (i = length; i-- !== 0;)
|
|
@@ -120,35 +117,29 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
120
117
|
return true;
|
|
121
118
|
}
|
|
122
119
|
|
|
123
|
-
if (arrA != arrB) return false;
|
|
124
120
|
|
|
125
|
-
var dateA = a instanceof Date
|
|
126
|
-
, dateB = b instanceof Date;
|
|
127
|
-
if (dateA != dateB) return false;
|
|
128
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
129
121
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
if (
|
|
133
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
122
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
123
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
124
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
134
125
|
|
|
135
|
-
|
|
126
|
+
keys = Object.keys(a);
|
|
136
127
|
length = keys.length;
|
|
137
|
-
|
|
138
|
-
if (length !== keyList(b).length)
|
|
139
|
-
return false;
|
|
128
|
+
if (length !== Object.keys(b).length) return false;
|
|
140
129
|
|
|
141
130
|
for (i = length; i-- !== 0;)
|
|
142
|
-
if (!
|
|
131
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
143
132
|
|
|
144
133
|
for (i = length; i-- !== 0;) {
|
|
145
|
-
key = keys[i];
|
|
134
|
+
var key = keys[i];
|
|
135
|
+
|
|
146
136
|
if (!equal(a[key], b[key])) return false;
|
|
147
137
|
}
|
|
148
138
|
|
|
149
139
|
return true;
|
|
150
140
|
}
|
|
151
141
|
|
|
142
|
+
// true if both NaN, false otherwise
|
|
152
143
|
return a!==a && b!==b;
|
|
153
144
|
};
|
|
154
145
|
|
|
@@ -1571,199 +1562,235 @@ module.exports = exports['default'];
|
|
|
1571
1562
|
|
|
1572
1563
|
var youTubePlayer = unwrapExports(dist);
|
|
1573
1564
|
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
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; };
|
|
1565
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
1577
1566
|
|
|
1578
1567
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1579
1568
|
|
|
1580
|
-
function
|
|
1569
|
+
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); } }
|
|
1570
|
+
|
|
1571
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1572
|
+
|
|
1573
|
+
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); }; }
|
|
1574
|
+
|
|
1575
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1576
|
+
|
|
1577
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1578
|
+
|
|
1579
|
+
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; } }
|
|
1580
|
+
|
|
1581
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1582
|
+
|
|
1583
|
+
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); }
|
|
1584
|
+
|
|
1585
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1586
|
+
|
|
1587
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
1581
1588
|
|
|
1582
|
-
function
|
|
1589
|
+
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; }
|
|
1583
1590
|
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
*
|
|
1587
|
-
*
|
|
1588
|
-
* @param {Object}
|
|
1591
|
+
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; }
|
|
1592
|
+
/**
|
|
1593
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1594
|
+
*
|
|
1595
|
+
* @param {Object} prevProps
|
|
1596
|
+
* @param {Object} props
|
|
1589
1597
|
*/
|
|
1598
|
+
|
|
1590
1599
|
function shouldUpdateVideo(prevProps, props) {
|
|
1591
1600
|
// A changing video should always trigger an update
|
|
1592
1601
|
if (prevProps.videoId !== props.videoId) {
|
|
1593
1602
|
return true;
|
|
1594
|
-
}
|
|
1595
|
-
|
|
1596
|
-
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1603
|
+
} // Otherwise, a change in the start/end time playerVars also requires a player
|
|
1597
1604
|
// update.
|
|
1605
|
+
|
|
1606
|
+
|
|
1598
1607
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1599
1608
|
var vars = props.opts.playerVars || {};
|
|
1600
|
-
|
|
1601
1609
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1602
1610
|
}
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
*
|
|
1606
|
-
*
|
|
1607
|
-
*
|
|
1608
|
-
*
|
|
1609
|
-
* @param {Object} opts
|
|
1611
|
+
/**
|
|
1612
|
+
* Neutralize API options that only require a video update, leaving only options
|
|
1613
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1614
|
+
* player reset is necessary.
|
|
1615
|
+
*
|
|
1616
|
+
* @param {Object} opts
|
|
1610
1617
|
*/
|
|
1618
|
+
|
|
1619
|
+
|
|
1611
1620
|
function filterResetOptions(opts) {
|
|
1612
|
-
return
|
|
1613
|
-
playerVars:
|
|
1621
|
+
return _objectSpread({}, opts, {
|
|
1622
|
+
playerVars: _objectSpread({}, opts.playerVars, {
|
|
1614
1623
|
autoplay: 0,
|
|
1615
1624
|
start: 0,
|
|
1616
1625
|
end: 0
|
|
1617
1626
|
})
|
|
1618
1627
|
});
|
|
1619
1628
|
}
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
*
|
|
1623
|
-
*
|
|
1624
|
-
*
|
|
1625
|
-
*
|
|
1626
|
-
*
|
|
1627
|
-
* @param {Object}
|
|
1628
|
-
* @param {Object} props
|
|
1629
|
+
/**
|
|
1630
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1631
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1632
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1633
|
+
* those.
|
|
1634
|
+
*
|
|
1635
|
+
* @param {Object} prevProps
|
|
1636
|
+
* @param {Object} props
|
|
1629
1637
|
*/
|
|
1638
|
+
|
|
1639
|
+
|
|
1630
1640
|
function shouldResetPlayer(prevProps, props) {
|
|
1631
1641
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1632
1642
|
}
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
*
|
|
1636
|
-
*
|
|
1637
|
-
* @param {Object}
|
|
1638
|
-
* @param {Object} props
|
|
1643
|
+
/**
|
|
1644
|
+
* Check whether a props change should result in an id or className update.
|
|
1645
|
+
*
|
|
1646
|
+
* @param {Object} prevProps
|
|
1647
|
+
* @param {Object} props
|
|
1639
1648
|
*/
|
|
1649
|
+
|
|
1650
|
+
|
|
1640
1651
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1641
1652
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1642
1653
|
}
|
|
1643
1654
|
|
|
1644
|
-
var YouTube = function (_React$Component) {
|
|
1655
|
+
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
1645
1656
|
_inherits(YouTube, _React$Component);
|
|
1646
1657
|
|
|
1658
|
+
var _super = _createSuper(YouTube);
|
|
1659
|
+
|
|
1660
|
+
/**
|
|
1661
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1662
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1663
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1664
|
+
*/
|
|
1647
1665
|
function YouTube(props) {
|
|
1666
|
+
var _this;
|
|
1667
|
+
|
|
1648
1668
|
_classCallCheck(this, YouTube);
|
|
1649
1669
|
|
|
1650
|
-
|
|
1670
|
+
_this = _super.call(this, props);
|
|
1651
1671
|
|
|
1652
|
-
_this
|
|
1672
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
|
|
1653
1673
|
return _this.props.onReady(event);
|
|
1654
|
-
};
|
|
1674
|
+
});
|
|
1655
1675
|
|
|
1656
|
-
_this
|
|
1676
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
|
|
1657
1677
|
return _this.props.onError(event);
|
|
1658
|
-
};
|
|
1678
|
+
});
|
|
1659
1679
|
|
|
1660
|
-
_this
|
|
1680
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
|
|
1661
1681
|
_this.props.onStateChange(event);
|
|
1662
|
-
switch (event.data) {
|
|
1663
1682
|
|
|
1683
|
+
switch (event.data) {
|
|
1664
1684
|
case YouTube.PlayerState.ENDED:
|
|
1665
1685
|
_this.props.onEnd(event);
|
|
1686
|
+
|
|
1666
1687
|
break;
|
|
1667
1688
|
|
|
1668
1689
|
case YouTube.PlayerState.PLAYING:
|
|
1669
1690
|
_this.props.onPlay(event);
|
|
1691
|
+
|
|
1670
1692
|
break;
|
|
1671
1693
|
|
|
1672
1694
|
case YouTube.PlayerState.PAUSED:
|
|
1673
1695
|
_this.props.onPause(event);
|
|
1696
|
+
|
|
1674
1697
|
break;
|
|
1675
1698
|
}
|
|
1676
|
-
};
|
|
1699
|
+
});
|
|
1677
1700
|
|
|
1678
|
-
_this
|
|
1701
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
|
|
1679
1702
|
return _this.props.onPlaybackRateChange(event);
|
|
1680
|
-
};
|
|
1703
|
+
});
|
|
1681
1704
|
|
|
1682
|
-
_this
|
|
1705
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
|
|
1683
1706
|
return _this.props.onPlaybackQualityChange(event);
|
|
1684
|
-
};
|
|
1707
|
+
});
|
|
1685
1708
|
|
|
1686
|
-
_this
|
|
1709
|
+
_defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
|
|
1687
1710
|
// do not attempt to create a player server-side, it won't work
|
|
1688
|
-
if (typeof document === 'undefined') return;
|
|
1689
|
-
|
|
1690
|
-
var playerOpts =
|
|
1711
|
+
if (typeof document === 'undefined') return; // create player
|
|
1712
|
+
|
|
1713
|
+
var playerOpts = _objectSpread({}, _this.props.opts, {
|
|
1691
1714
|
// preload the `videoId` video if one is already given
|
|
1692
1715
|
videoId: _this.props.videoId
|
|
1693
1716
|
});
|
|
1694
|
-
|
|
1695
|
-
// attach event handlers
|
|
1717
|
+
|
|
1718
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
|
|
1719
|
+
|
|
1696
1720
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1721
|
+
|
|
1697
1722
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1723
|
+
|
|
1698
1724
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1725
|
+
|
|
1699
1726
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1727
|
+
|
|
1700
1728
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1701
|
-
};
|
|
1729
|
+
});
|
|
1702
1730
|
|
|
1703
|
-
_this
|
|
1731
|
+
_defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
|
|
1704
1732
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1705
|
-
};
|
|
1733
|
+
});
|
|
1706
1734
|
|
|
1707
|
-
_this
|
|
1735
|
+
_defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
|
|
1708
1736
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1709
1737
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1710
1738
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1711
1739
|
});
|
|
1712
|
-
};
|
|
1740
|
+
});
|
|
1713
1741
|
|
|
1714
|
-
_this
|
|
1742
|
+
_defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
|
|
1715
1743
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1716
1744
|
_this.internalPlayer.stopVideo();
|
|
1745
|
+
|
|
1717
1746
|
return;
|
|
1718
|
-
}
|
|
1747
|
+
} // set queueing options
|
|
1748
|
+
|
|
1719
1749
|
|
|
1720
|
-
// set queueing options
|
|
1721
1750
|
var autoplay = false;
|
|
1722
1751
|
var opts = {
|
|
1723
1752
|
videoId: _this.props.videoId
|
|
1724
1753
|
};
|
|
1754
|
+
|
|
1725
1755
|
if ('playerVars' in _this.props.opts) {
|
|
1726
1756
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1757
|
+
|
|
1727
1758
|
if ('start' in _this.props.opts.playerVars) {
|
|
1728
1759
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1729
1760
|
}
|
|
1761
|
+
|
|
1730
1762
|
if ('end' in _this.props.opts.playerVars) {
|
|
1731
1763
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1732
1764
|
}
|
|
1733
|
-
}
|
|
1765
|
+
} // if autoplay is enabled loadVideoById
|
|
1766
|
+
|
|
1734
1767
|
|
|
1735
|
-
// if autoplay is enabled loadVideoById
|
|
1736
1768
|
if (autoplay) {
|
|
1737
1769
|
_this.internalPlayer.loadVideoById(opts);
|
|
1770
|
+
|
|
1738
1771
|
return;
|
|
1739
|
-
}
|
|
1740
|
-
|
|
1772
|
+
} // default behaviour just cues the video
|
|
1773
|
+
|
|
1774
|
+
|
|
1741
1775
|
_this.internalPlayer.cueVideoById(opts);
|
|
1742
|
-
};
|
|
1776
|
+
});
|
|
1743
1777
|
|
|
1744
|
-
_this
|
|
1778
|
+
_defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
|
|
1745
1779
|
_this.container = container;
|
|
1746
|
-
};
|
|
1780
|
+
});
|
|
1747
1781
|
|
|
1748
1782
|
_this.container = null;
|
|
1749
1783
|
_this.internalPlayer = null;
|
|
1750
1784
|
return _this;
|
|
1751
1785
|
}
|
|
1752
1786
|
|
|
1753
|
-
/**
|
|
1754
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1755
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1756
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1757
|
-
*/
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
1787
|
_createClass(YouTube, [{
|
|
1761
|
-
key:
|
|
1788
|
+
key: "componentDidMount",
|
|
1762
1789
|
value: function componentDidMount() {
|
|
1763
1790
|
this.createPlayer();
|
|
1764
1791
|
}
|
|
1765
1792
|
}, {
|
|
1766
|
-
key:
|
|
1793
|
+
key: "componentDidUpdate",
|
|
1767
1794
|
value: function componentDidUpdate(prevProps) {
|
|
1768
1795
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1769
1796
|
this.updatePlayer();
|
|
@@ -1778,112 +1805,58 @@ var YouTube = function (_React$Component) {
|
|
|
1778
1805
|
}
|
|
1779
1806
|
}
|
|
1780
1807
|
}, {
|
|
1781
|
-
key:
|
|
1808
|
+
key: "componentWillUnmount",
|
|
1782
1809
|
value: function componentWillUnmount() {
|
|
1783
|
-
/**
|
|
1784
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1785
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1786
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1787
|
-
* this method isn't quick enough to reset the container element.
|
|
1810
|
+
/**
|
|
1811
|
+
* Note: The `youtube-player` package that is used promisifies all YouTube
|
|
1812
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1813
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1814
|
+
* this method isn't quick enough to reset the container element.
|
|
1788
1815
|
*/
|
|
1789
1816
|
this.internalPlayer.destroy();
|
|
1790
1817
|
}
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
*
|
|
1794
|
-
*
|
|
1795
|
-
*
|
|
1796
|
-
* @param {Object} target - player object
|
|
1797
|
-
*/
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
/**
|
|
1801
|
-
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1802
|
-
*
|
|
1803
|
-
* @param {Object} event
|
|
1804
|
-
* @param {Integer} data - error type
|
|
1805
|
-
* @param {Object} target - player object
|
|
1806
|
-
*/
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
/**
|
|
1810
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1811
|
-
*
|
|
1812
|
-
* @param {Object} event
|
|
1813
|
-
* @param {Integer} data - status change type
|
|
1814
|
-
* @param {Object} target - actual YT player
|
|
1815
|
-
*/
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
/**
|
|
1819
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1820
|
-
*
|
|
1821
|
-
* @param {Object} event
|
|
1822
|
-
* @param {Float} data - playback rate
|
|
1823
|
-
* @param {Object} target - actual YT player
|
|
1824
|
-
*/
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
/**
|
|
1828
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1829
|
-
*
|
|
1830
|
-
* @param {Object} event
|
|
1831
|
-
* @param {String} data - playback quality
|
|
1832
|
-
* @param {Object} target - actual YT player
|
|
1833
|
-
*/
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
/**
|
|
1837
|
-
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1838
|
-
*/
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
/**
|
|
1842
|
-
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1843
|
-
*/
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
/**
|
|
1847
|
-
* Method to update the id and class of the Youtube Player iframe.
|
|
1848
|
-
* React should update this automatically but since the Youtube Player API
|
|
1849
|
-
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1850
|
-
*/
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
/**
|
|
1854
|
-
* Call Youtube Player API methods to update the currently playing video.
|
|
1855
|
-
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1856
|
-
* Youtube Player API methods to update the video.
|
|
1818
|
+
/**
|
|
1819
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1820
|
+
*
|
|
1821
|
+
* @param {Object} event
|
|
1822
|
+
* @param {Object} target - player object
|
|
1857
1823
|
*/
|
|
1858
1824
|
|
|
1859
1825
|
}, {
|
|
1860
|
-
key:
|
|
1826
|
+
key: "render",
|
|
1861
1827
|
value: function render() {
|
|
1862
|
-
return React__default.createElement(
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1828
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1829
|
+
className: this.props.containerClassName
|
|
1830
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1831
|
+
id: this.props.id,
|
|
1832
|
+
className: this.props.className,
|
|
1833
|
+
ref: this.refContainer
|
|
1834
|
+
}));
|
|
1867
1835
|
}
|
|
1868
1836
|
}]);
|
|
1869
1837
|
|
|
1870
1838
|
return YouTube;
|
|
1871
1839
|
}(React__default.Component);
|
|
1872
1840
|
|
|
1841
|
+
_defineProperty(YouTube, "PlayerState", {
|
|
1842
|
+
UNSTARTED: -1,
|
|
1843
|
+
ENDED: 0,
|
|
1844
|
+
PLAYING: 1,
|
|
1845
|
+
PAUSED: 2,
|
|
1846
|
+
BUFFERING: 3,
|
|
1847
|
+
CUED: 5
|
|
1848
|
+
});
|
|
1849
|
+
|
|
1873
1850
|
YouTube.propTypes = {
|
|
1874
1851
|
videoId: PropTypes.string,
|
|
1875
|
-
|
|
1876
1852
|
// custom ID for player element
|
|
1877
1853
|
id: PropTypes.string,
|
|
1878
|
-
|
|
1879
1854
|
// custom class name for player element
|
|
1880
1855
|
className: PropTypes.string,
|
|
1881
1856
|
// custom class name for player container element
|
|
1882
1857
|
containerClassName: PropTypes.string,
|
|
1883
|
-
|
|
1884
1858
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1885
1859
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1886
|
-
|
|
1887
1860
|
// event subscriptions
|
|
1888
1861
|
onReady: PropTypes.func,
|
|
1889
1862
|
onError: PropTypes.func,
|
|
@@ -1895,6 +1868,7 @@ YouTube.propTypes = {
|
|
|
1895
1868
|
onPlaybackQualityChange: PropTypes.func
|
|
1896
1869
|
};
|
|
1897
1870
|
YouTube.defaultProps = {
|
|
1871
|
+
videoId: null,
|
|
1898
1872
|
id: null,
|
|
1899
1873
|
className: null,
|
|
1900
1874
|
opts: {},
|
|
@@ -1908,14 +1882,6 @@ YouTube.defaultProps = {
|
|
|
1908
1882
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1909
1883
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1910
1884
|
};
|
|
1911
|
-
YouTube.PlayerState = {
|
|
1912
|
-
UNSTARTED: -1,
|
|
1913
|
-
ENDED: 0,
|
|
1914
|
-
PLAYING: 1,
|
|
1915
|
-
PAUSED: 2,
|
|
1916
|
-
BUFFERING: 3,
|
|
1917
|
-
CUED: 5
|
|
1918
|
-
};
|
|
1919
1885
|
|
|
1920
1886
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1921
1887
|
var url = _ref.url;
|
|
@@ -2176,7 +2142,7 @@ var Media = function Media(_ref) {
|
|
|
2176
2142
|
React__default.createElement(
|
|
2177
2143
|
'a',
|
|
2178
2144
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2179
|
-
React__default.createElement(Figure$1.Image, _extends
|
|
2145
|
+
React__default.createElement(Figure$1.Image, _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt })),
|
|
2180
2146
|
caption && React__default.createElement(
|
|
2181
2147
|
Figure$1.Caption,
|
|
2182
2148
|
{ className: 'media-caption' },
|
|
@@ -2187,7 +2153,7 @@ var Media = function Media(_ref) {
|
|
|
2187
2153
|
} else if (caption && caption !== '') {
|
|
2188
2154
|
return React__default.createElement(
|
|
2189
2155
|
'a',
|
|
2190
|
-
_extends
|
|
2156
|
+
_extends({}, uploadDoc.downloadMedia ? {
|
|
2191
2157
|
href: uploadDoc.asset.url + '?dl='
|
|
2192
2158
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2193
2159
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2750,11 +2716,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2750
2716
|
|
|
2751
2717
|
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; }
|
|
2752
2718
|
|
|
2753
|
-
function
|
|
2719
|
+
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
2720
|
+
|
|
2721
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2754
2722
|
|
|
2755
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2723
|
+
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."); }
|
|
2756
2724
|
|
|
2757
|
-
function
|
|
2725
|
+
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); }
|
|
2726
|
+
|
|
2727
|
+
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; }
|
|
2728
|
+
|
|
2729
|
+
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; }
|
|
2758
2730
|
|
|
2759
2731
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2760
2732
|
|
|
@@ -2884,12 +2856,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
2884
2856
|
|
|
2885
2857
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
2886
2858
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
2887
|
-
|
|
2888
|
-
var
|
|
2889
|
-
|
|
2859
|
+
|
|
2860
|
+
var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
|
|
2861
|
+
_step;
|
|
2890
2862
|
|
|
2891
2863
|
try {
|
|
2892
|
-
for (
|
|
2864
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
2893
2865
|
var p = _step.value;
|
|
2894
2866
|
|
|
2895
2867
|
if (props$1[p]) {
|
|
@@ -2904,18 +2876,9 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
2904
2876
|
}
|
|
2905
2877
|
}
|
|
2906
2878
|
} catch (err) {
|
|
2907
|
-
|
|
2908
|
-
_iteratorError = err;
|
|
2879
|
+
_iterator.e(err);
|
|
2909
2880
|
} finally {
|
|
2910
|
-
|
|
2911
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
2912
|
-
_iterator["return"]();
|
|
2913
|
-
}
|
|
2914
|
-
} finally {
|
|
2915
|
-
if (_didIteratorError) {
|
|
2916
|
-
throw _iteratorError;
|
|
2917
|
-
}
|
|
2918
|
-
}
|
|
2881
|
+
_iterator.f();
|
|
2919
2882
|
}
|
|
2920
2883
|
|
|
2921
2884
|
return config;
|
|
@@ -3062,12 +3025,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3062
3025
|
|
|
3063
3026
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3064
3027
|
|
|
3065
|
-
function
|
|
3028
|
+
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); }; }
|
|
3066
3029
|
|
|
3067
|
-
function
|
|
3030
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3068
3031
|
|
|
3069
3032
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3070
3033
|
|
|
3034
|
+
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; } }
|
|
3035
|
+
|
|
3036
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3037
|
+
|
|
3071
3038
|
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); }
|
|
3072
3039
|
|
|
3073
3040
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3076,14 +3043,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3076
3043
|
|
|
3077
3044
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3078
3045
|
|
|
3079
|
-
var Player =
|
|
3080
|
-
/*#__PURE__*/
|
|
3081
|
-
function (_Component) {
|
|
3046
|
+
var Player = /*#__PURE__*/function (_Component) {
|
|
3082
3047
|
_inherits(Player, _Component);
|
|
3083
3048
|
|
|
3084
|
-
|
|
3085
|
-
var _getPrototypeOf2;
|
|
3049
|
+
var _super = _createSuper(Player);
|
|
3086
3050
|
|
|
3051
|
+
function Player() {
|
|
3087
3052
|
var _this;
|
|
3088
3053
|
|
|
3089
3054
|
_classCallCheck(this, Player);
|
|
@@ -3092,7 +3057,7 @@ function (_Component) {
|
|
|
3092
3057
|
_args[_key] = arguments[_key];
|
|
3093
3058
|
}
|
|
3094
3059
|
|
|
3095
|
-
_this =
|
|
3060
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
3096
3061
|
|
|
3097
3062
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3098
3063
|
|
|
@@ -3417,7 +3382,7 @@ function (_Component) {
|
|
|
3417
3382
|
return null;
|
|
3418
3383
|
}
|
|
3419
3384
|
|
|
3420
|
-
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3385
|
+
return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
|
|
3421
3386
|
ref: this.ref,
|
|
3422
3387
|
onReady: this.handleReady,
|
|
3423
3388
|
onPlay: this.handlePlay,
|
|
@@ -3478,12 +3443,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3478
3443
|
|
|
3479
3444
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3480
3445
|
|
|
3481
|
-
function
|
|
3446
|
+
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); }; }
|
|
3482
3447
|
|
|
3483
|
-
function
|
|
3448
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3484
3449
|
|
|
3485
3450
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3486
3451
|
|
|
3452
|
+
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; } }
|
|
3453
|
+
|
|
3454
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3455
|
+
|
|
3487
3456
|
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); }
|
|
3488
3457
|
|
|
3489
3458
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3495,14 +3464,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3495
3464
|
function createSinglePlayer(activePlayer) {
|
|
3496
3465
|
var _class, _temp;
|
|
3497
3466
|
|
|
3498
|
-
return _temp = _class =
|
|
3499
|
-
/*#__PURE__*/
|
|
3500
|
-
function (_Component) {
|
|
3467
|
+
return _temp = _class = /*#__PURE__*/function (_Component) {
|
|
3501
3468
|
_inherits(SinglePlayer, _Component);
|
|
3502
3469
|
|
|
3503
|
-
|
|
3504
|
-
var _getPrototypeOf2;
|
|
3470
|
+
var _super = _createSuper(SinglePlayer);
|
|
3505
3471
|
|
|
3472
|
+
function SinglePlayer() {
|
|
3506
3473
|
var _this;
|
|
3507
3474
|
|
|
3508
3475
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3511,7 +3478,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3511
3478
|
args[_key] = arguments[_key];
|
|
3512
3479
|
}
|
|
3513
3480
|
|
|
3514
|
-
_this =
|
|
3481
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3515
3482
|
|
|
3516
3483
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3517
3484
|
|
|
@@ -3579,12 +3546,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3579
3546
|
height = _this$props.height,
|
|
3580
3547
|
Wrapper = _this$props.wrapper;
|
|
3581
3548
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3582
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
3549
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
3583
3550
|
style: _objectSpread({}, style, {
|
|
3584
3551
|
width: width,
|
|
3585
3552
|
height: height
|
|
3586
3553
|
})
|
|
3587
|
-
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3554
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3588
3555
|
ref: this.ref,
|
|
3589
3556
|
activePlayer: activePlayer,
|
|
3590
3557
|
config: this.config
|
|
@@ -3630,23 +3597,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3630
3597
|
|
|
3631
3598
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3632
3599
|
|
|
3633
|
-
function
|
|
3600
|
+
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); }; }
|
|
3634
3601
|
|
|
3635
|
-
function
|
|
3602
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3636
3603
|
|
|
3637
3604
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3638
3605
|
|
|
3606
|
+
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; } }
|
|
3607
|
+
|
|
3608
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3609
|
+
|
|
3639
3610
|
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); }
|
|
3640
3611
|
|
|
3641
3612
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3642
3613
|
|
|
3643
3614
|
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; }
|
|
3644
3615
|
|
|
3645
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3616
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3617
|
+
|
|
3618
|
+
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."); }
|
|
3619
|
+
|
|
3620
|
+
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); }
|
|
3646
3621
|
|
|
3647
|
-
function
|
|
3622
|
+
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; }
|
|
3648
3623
|
|
|
3649
|
-
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr)
|
|
3624
|
+
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; }
|
|
3650
3625
|
|
|
3651
3626
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3652
3627
|
|
|
@@ -3671,14 +3646,12 @@ function parsePlaylist(url) {
|
|
|
3671
3646
|
return {};
|
|
3672
3647
|
}
|
|
3673
3648
|
|
|
3674
|
-
var YouTube =
|
|
3675
|
-
/*#__PURE__*/
|
|
3676
|
-
function (_Component) {
|
|
3649
|
+
var YouTube = /*#__PURE__*/function (_Component) {
|
|
3677
3650
|
_inherits(YouTube, _Component);
|
|
3678
3651
|
|
|
3679
|
-
|
|
3680
|
-
var _getPrototypeOf2;
|
|
3652
|
+
var _super = _createSuper(YouTube);
|
|
3681
3653
|
|
|
3654
|
+
function YouTube() {
|
|
3682
3655
|
var _this;
|
|
3683
3656
|
|
|
3684
3657
|
_classCallCheck(this, YouTube);
|
|
@@ -3687,7 +3660,7 @@ function (_Component) {
|
|
|
3687
3660
|
args[_key] = arguments[_key];
|
|
3688
3661
|
}
|
|
3689
3662
|
|
|
3690
|
-
_this =
|
|
3663
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3691
3664
|
|
|
3692
3665
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3693
3666
|
|
|
@@ -3875,9 +3848,9 @@ function (_Component) {
|
|
|
3875
3848
|
height: '100%',
|
|
3876
3849
|
display: display
|
|
3877
3850
|
};
|
|
3878
|
-
return _react["default"].createElement("div", {
|
|
3851
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
3879
3852
|
style: style
|
|
3880
|
-
}, _react["default"].createElement("div", {
|
|
3853
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
3881
3854
|
ref: this.ref
|
|
3882
3855
|
}));
|
|
3883
3856
|
}
|
|
@@ -3933,12 +3906,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3933
3906
|
|
|
3934
3907
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3935
3908
|
|
|
3936
|
-
function
|
|
3909
|
+
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); }; }
|
|
3937
3910
|
|
|
3938
|
-
function
|
|
3911
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3939
3912
|
|
|
3940
3913
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3941
3914
|
|
|
3915
|
+
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; } }
|
|
3916
|
+
|
|
3917
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3918
|
+
|
|
3942
3919
|
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); }
|
|
3943
3920
|
|
|
3944
3921
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3947,16 +3924,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3947
3924
|
|
|
3948
3925
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
3949
3926
|
var SDK_GLOBAL = 'SC';
|
|
3950
|
-
var MATCH_URL = /(soundcloud\.com|snd\.sc)
|
|
3927
|
+
var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
3951
3928
|
|
|
3952
|
-
var SoundCloud =
|
|
3953
|
-
/*#__PURE__*/
|
|
3954
|
-
function (_Component) {
|
|
3929
|
+
var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
3955
3930
|
_inherits(SoundCloud, _Component);
|
|
3956
3931
|
|
|
3957
|
-
|
|
3958
|
-
var _getPrototypeOf2;
|
|
3932
|
+
var _super = _createSuper(SoundCloud);
|
|
3959
3933
|
|
|
3934
|
+
function SoundCloud() {
|
|
3960
3935
|
var _this;
|
|
3961
3936
|
|
|
3962
3937
|
_classCallCheck(this, SoundCloud);
|
|
@@ -3965,7 +3940,7 @@ function (_Component) {
|
|
|
3965
3940
|
args[_key] = arguments[_key];
|
|
3966
3941
|
}
|
|
3967
3942
|
|
|
3968
|
-
_this =
|
|
3943
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3969
3944
|
|
|
3970
3945
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3971
3946
|
|
|
@@ -4086,7 +4061,7 @@ function (_Component) {
|
|
|
4086
4061
|
height: '100%',
|
|
4087
4062
|
display: display
|
|
4088
4063
|
};
|
|
4089
|
-
return _react["default"].createElement("iframe", {
|
|
4064
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4090
4065
|
ref: this.ref,
|
|
4091
4066
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4092
4067
|
style: style,
|
|
@@ -4148,12 +4123,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4148
4123
|
|
|
4149
4124
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4150
4125
|
|
|
4151
|
-
function
|
|
4126
|
+
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); }; }
|
|
4152
4127
|
|
|
4153
|
-
function
|
|
4128
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4154
4129
|
|
|
4155
4130
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4156
4131
|
|
|
4132
|
+
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; } }
|
|
4133
|
+
|
|
4134
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4135
|
+
|
|
4157
4136
|
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); }
|
|
4158
4137
|
|
|
4159
4138
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4165,14 +4144,12 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4165
4144
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4166
4145
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4167
4146
|
|
|
4168
|
-
var Vimeo =
|
|
4169
|
-
/*#__PURE__*/
|
|
4170
|
-
function (_Component) {
|
|
4147
|
+
var Vimeo = /*#__PURE__*/function (_Component) {
|
|
4171
4148
|
_inherits(Vimeo, _Component);
|
|
4172
4149
|
|
|
4173
|
-
|
|
4174
|
-
var _getPrototypeOf2;
|
|
4150
|
+
var _super = _createSuper(Vimeo);
|
|
4175
4151
|
|
|
4152
|
+
function Vimeo() {
|
|
4176
4153
|
var _this;
|
|
4177
4154
|
|
|
4178
4155
|
_classCallCheck(this, Vimeo);
|
|
@@ -4181,7 +4158,7 @@ function (_Component) {
|
|
|
4181
4158
|
args[_key] = arguments[_key];
|
|
4182
4159
|
}
|
|
4183
4160
|
|
|
4184
|
-
_this =
|
|
4161
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4185
4162
|
|
|
4186
4163
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4187
4164
|
|
|
@@ -4338,7 +4315,7 @@ function (_Component) {
|
|
|
4338
4315
|
overflow: 'hidden',
|
|
4339
4316
|
display: display
|
|
4340
4317
|
};
|
|
4341
|
-
return _react["default"].createElement("div", {
|
|
4318
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4342
4319
|
key: this.props.url,
|
|
4343
4320
|
ref: this.ref,
|
|
4344
4321
|
style: style
|
|
@@ -4398,12 +4375,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4398
4375
|
|
|
4399
4376
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4400
4377
|
|
|
4401
|
-
function
|
|
4378
|
+
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); }; }
|
|
4402
4379
|
|
|
4403
|
-
function
|
|
4380
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4404
4381
|
|
|
4405
4382
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4406
4383
|
|
|
4384
|
+
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; } }
|
|
4385
|
+
|
|
4386
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4387
|
+
|
|
4407
4388
|
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); }
|
|
4408
4389
|
|
|
4409
4390
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4416,14 +4397,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4416
4397
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4417
4398
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4418
4399
|
|
|
4419
|
-
var Facebook =
|
|
4420
|
-
/*#__PURE__*/
|
|
4421
|
-
function (_Component) {
|
|
4400
|
+
var Facebook = /*#__PURE__*/function (_Component) {
|
|
4422
4401
|
_inherits(Facebook, _Component);
|
|
4423
4402
|
|
|
4424
|
-
|
|
4425
|
-
var _getPrototypeOf2;
|
|
4403
|
+
var _super = _createSuper(Facebook);
|
|
4426
4404
|
|
|
4405
|
+
function Facebook() {
|
|
4427
4406
|
var _this;
|
|
4428
4407
|
|
|
4429
4408
|
_classCallCheck(this, Facebook);
|
|
@@ -4432,7 +4411,7 @@ function (_Component) {
|
|
|
4432
4411
|
args[_key] = arguments[_key];
|
|
4433
4412
|
}
|
|
4434
4413
|
|
|
4435
|
-
_this =
|
|
4414
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4436
4415
|
|
|
4437
4416
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4438
4417
|
|
|
@@ -4548,7 +4527,7 @@ function (_Component) {
|
|
|
4548
4527
|
width: '100%',
|
|
4549
4528
|
height: '100%'
|
|
4550
4529
|
};
|
|
4551
|
-
return _react["default"].createElement("div", {
|
|
4530
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4552
4531
|
style: style,
|
|
4553
4532
|
id: this.playerID,
|
|
4554
4533
|
className: "fb-video",
|
|
@@ -4608,12 +4587,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4608
4587
|
|
|
4609
4588
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4610
4589
|
|
|
4611
|
-
function
|
|
4590
|
+
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); }; }
|
|
4612
4591
|
|
|
4613
|
-
function
|
|
4592
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4614
4593
|
|
|
4615
4594
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4616
4595
|
|
|
4596
|
+
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; } }
|
|
4597
|
+
|
|
4598
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4599
|
+
|
|
4617
4600
|
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); }
|
|
4618
4601
|
|
|
4619
4602
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4624,14 +4607,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4624
4607
|
var SDK_GLOBAL = 'playerjs';
|
|
4625
4608
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4626
4609
|
|
|
4627
|
-
var Streamable =
|
|
4628
|
-
/*#__PURE__*/
|
|
4629
|
-
function (_Component) {
|
|
4610
|
+
var Streamable = /*#__PURE__*/function (_Component) {
|
|
4630
4611
|
_inherits(Streamable, _Component);
|
|
4631
4612
|
|
|
4632
|
-
|
|
4633
|
-
var _getPrototypeOf2;
|
|
4613
|
+
var _super = _createSuper(Streamable);
|
|
4634
4614
|
|
|
4615
|
+
function Streamable() {
|
|
4635
4616
|
var _this;
|
|
4636
4617
|
|
|
4637
4618
|
_classCallCheck(this, Streamable);
|
|
@@ -4640,7 +4621,7 @@ function (_Component) {
|
|
|
4640
4621
|
args[_key] = arguments[_key];
|
|
4641
4622
|
}
|
|
4642
4623
|
|
|
4643
|
-
_this =
|
|
4624
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4644
4625
|
|
|
4645
4626
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4646
4627
|
|
|
@@ -4760,7 +4741,7 @@ function (_Component) {
|
|
|
4760
4741
|
width: '100%',
|
|
4761
4742
|
height: '100%'
|
|
4762
4743
|
};
|
|
4763
|
-
return _react["default"].createElement("iframe", {
|
|
4744
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4764
4745
|
ref: this.ref,
|
|
4765
4746
|
src: "https://streamable.com/o/".concat(id),
|
|
4766
4747
|
frameBorder: "0",
|
|
@@ -4821,12 +4802,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4821
4802
|
|
|
4822
4803
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4823
4804
|
|
|
4824
|
-
function
|
|
4805
|
+
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); }; }
|
|
4825
4806
|
|
|
4826
|
-
function
|
|
4807
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4827
4808
|
|
|
4828
4809
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4829
4810
|
|
|
4811
|
+
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; } }
|
|
4812
|
+
|
|
4813
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4814
|
+
|
|
4830
4815
|
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); }
|
|
4831
4816
|
|
|
4832
4817
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4837,26 +4822,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4837
4822
|
var SDK_GLOBAL = 'Wistia';
|
|
4838
4823
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4839
4824
|
|
|
4840
|
-
var Wistia =
|
|
4841
|
-
/*#__PURE__*/
|
|
4842
|
-
function (_Component) {
|
|
4825
|
+
var Wistia = /*#__PURE__*/function (_Component) {
|
|
4843
4826
|
_inherits(Wistia, _Component);
|
|
4844
4827
|
|
|
4845
|
-
|
|
4846
|
-
var _getPrototypeOf2;
|
|
4828
|
+
var _super = _createSuper(Wistia);
|
|
4847
4829
|
|
|
4830
|
+
function Wistia() {
|
|
4848
4831
|
var _this;
|
|
4849
4832
|
|
|
4850
4833
|
_classCallCheck(this, Wistia);
|
|
4851
4834
|
|
|
4852
|
-
for (var _len = arguments.length,
|
|
4853
|
-
|
|
4835
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4836
|
+
_args[_key] = arguments[_key];
|
|
4854
4837
|
}
|
|
4855
4838
|
|
|
4856
|
-
_this =
|
|
4839
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
4857
4840
|
|
|
4858
4841
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4859
4842
|
|
|
4843
|
+
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4844
|
+
var _this$props;
|
|
4845
|
+
|
|
4846
|
+
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4847
|
+
});
|
|
4848
|
+
|
|
4849
|
+
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4850
|
+
var _this$props2;
|
|
4851
|
+
|
|
4852
|
+
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4853
|
+
});
|
|
4854
|
+
|
|
4855
|
+
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
4856
|
+
var _this$props3;
|
|
4857
|
+
|
|
4858
|
+
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
4859
|
+
});
|
|
4860
|
+
|
|
4861
|
+
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
4862
|
+
var _this$props4;
|
|
4863
|
+
|
|
4864
|
+
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
4865
|
+
});
|
|
4866
|
+
|
|
4860
4867
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
4861
4868
|
_this.callPlayer('mute');
|
|
4862
4869
|
});
|
|
@@ -4878,17 +4885,13 @@ function (_Component) {
|
|
|
4878
4885
|
value: function load(url) {
|
|
4879
4886
|
var _this2 = this;
|
|
4880
4887
|
|
|
4881
|
-
var _this$
|
|
4882
|
-
playing = _this$
|
|
4883
|
-
muted = _this$
|
|
4884
|
-
controls = _this$
|
|
4885
|
-
_onReady = _this$
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
onSeek = _this$props.onSeek,
|
|
4889
|
-
onEnded = _this$props.onEnded,
|
|
4890
|
-
config = _this$props.config,
|
|
4891
|
-
onError = _this$props.onError;
|
|
4888
|
+
var _this$props5 = this.props,
|
|
4889
|
+
playing = _this$props5.playing,
|
|
4890
|
+
muted = _this$props5.muted,
|
|
4891
|
+
controls = _this$props5.controls,
|
|
4892
|
+
_onReady = _this$props5.onReady,
|
|
4893
|
+
config = _this$props5.config,
|
|
4894
|
+
onError = _this$props5.onError;
|
|
4892
4895
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
4893
4896
|
window._wq = window._wq || [];
|
|
4894
4897
|
|
|
@@ -4905,19 +4908,28 @@ function (_Component) {
|
|
|
4905
4908
|
|
|
4906
4909
|
_this2.unbind();
|
|
4907
4910
|
|
|
4908
|
-
_this2.player.bind('play', onPlay);
|
|
4911
|
+
_this2.player.bind('play', _this2.onPlay);
|
|
4909
4912
|
|
|
4910
|
-
_this2.player.bind('pause', onPause);
|
|
4913
|
+
_this2.player.bind('pause', _this2.onPause);
|
|
4911
4914
|
|
|
4912
|
-
_this2.player.bind('seek', onSeek);
|
|
4915
|
+
_this2.player.bind('seek', _this2.onSeek);
|
|
4913
4916
|
|
|
4914
|
-
_this2.player.bind('end', onEnded);
|
|
4917
|
+
_this2.player.bind('end', _this2.onEnded);
|
|
4915
4918
|
|
|
4916
4919
|
_onReady();
|
|
4917
4920
|
}
|
|
4918
4921
|
});
|
|
4919
4922
|
}, onError);
|
|
4920
4923
|
}
|
|
4924
|
+
}, {
|
|
4925
|
+
key: "unbind",
|
|
4926
|
+
value: function unbind() {
|
|
4927
|
+
this.player.unbind('play', this.onPlay);
|
|
4928
|
+
this.player.unbind('pause', this.onPause);
|
|
4929
|
+
this.player.unbind('seek', this.onSeek);
|
|
4930
|
+
this.player.unbind('end', this.onEnded);
|
|
4931
|
+
} // Proxy methods to prevent listener leaks
|
|
4932
|
+
|
|
4921
4933
|
}, {
|
|
4922
4934
|
key: "play",
|
|
4923
4935
|
value: function play() {
|
|
@@ -4928,19 +4940,6 @@ function (_Component) {
|
|
|
4928
4940
|
value: function pause() {
|
|
4929
4941
|
this.callPlayer('pause');
|
|
4930
4942
|
}
|
|
4931
|
-
}, {
|
|
4932
|
-
key: "unbind",
|
|
4933
|
-
value: function unbind() {
|
|
4934
|
-
var _this$props2 = this.props,
|
|
4935
|
-
onPlay = _this$props2.onPlay,
|
|
4936
|
-
onPause = _this$props2.onPause,
|
|
4937
|
-
onSeek = _this$props2.onSeek,
|
|
4938
|
-
onEnded = _this$props2.onEnded;
|
|
4939
|
-
this.player.unbind('play', onPlay);
|
|
4940
|
-
this.player.unbind('pause', onPause);
|
|
4941
|
-
this.player.unbind('seek', onSeek);
|
|
4942
|
-
this.player.unbind('end', onEnded);
|
|
4943
|
-
}
|
|
4944
4943
|
}, {
|
|
4945
4944
|
key: "stop",
|
|
4946
4945
|
value: function stop() {
|
|
@@ -4986,7 +4985,7 @@ function (_Component) {
|
|
|
4986
4985
|
width: '100%',
|
|
4987
4986
|
height: '100%'
|
|
4988
4987
|
};
|
|
4989
|
-
return _react["default"].createElement("div", {
|
|
4988
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4990
4989
|
key: id,
|
|
4991
4990
|
className: className,
|
|
4992
4991
|
style: style
|
|
@@ -5046,12 +5045,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5046
5045
|
|
|
5047
5046
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5048
5047
|
|
|
5049
|
-
function
|
|
5048
|
+
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); }; }
|
|
5050
5049
|
|
|
5051
|
-
function
|
|
5050
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5052
5051
|
|
|
5053
5052
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5054
5053
|
|
|
5054
|
+
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; } }
|
|
5055
|
+
|
|
5056
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5057
|
+
|
|
5055
5058
|
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); }
|
|
5056
5059
|
|
|
5057
5060
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5064,14 +5067,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5064
5067
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5065
5068
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5066
5069
|
|
|
5067
|
-
var Twitch =
|
|
5068
|
-
/*#__PURE__*/
|
|
5069
|
-
function (_Component) {
|
|
5070
|
+
var Twitch = /*#__PURE__*/function (_Component) {
|
|
5070
5071
|
_inherits(Twitch, _Component);
|
|
5071
5072
|
|
|
5072
|
-
|
|
5073
|
-
var _getPrototypeOf2;
|
|
5073
|
+
var _super = _createSuper(Twitch);
|
|
5074
5074
|
|
|
5075
|
+
function Twitch() {
|
|
5075
5076
|
var _this;
|
|
5076
5077
|
|
|
5077
5078
|
_classCallCheck(this, Twitch);
|
|
@@ -5080,7 +5081,7 @@ function (_Component) {
|
|
|
5080
5081
|
args[_key] = arguments[_key];
|
|
5081
5082
|
}
|
|
5082
5083
|
|
|
5083
|
-
_this =
|
|
5084
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5084
5085
|
|
|
5085
5086
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5086
5087
|
|
|
@@ -5201,7 +5202,7 @@ function (_Component) {
|
|
|
5201
5202
|
width: '100%',
|
|
5202
5203
|
height: '100%'
|
|
5203
5204
|
};
|
|
5204
|
-
return _react["default"].createElement("div", {
|
|
5205
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5205
5206
|
style: style,
|
|
5206
5207
|
id: this.playerID
|
|
5207
5208
|
});
|
|
@@ -5254,11 +5255,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5254
5255
|
|
|
5255
5256
|
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; }
|
|
5256
5257
|
|
|
5257
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5258
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5259
|
+
|
|
5260
|
+
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."); }
|
|
5261
|
+
|
|
5262
|
+
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); }
|
|
5258
5263
|
|
|
5259
|
-
function
|
|
5264
|
+
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; }
|
|
5260
5265
|
|
|
5261
|
-
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr)
|
|
5266
|
+
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; }
|
|
5262
5267
|
|
|
5263
5268
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5264
5269
|
|
|
@@ -5268,12 +5273,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5268
5273
|
|
|
5269
5274
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5270
5275
|
|
|
5271
|
-
function
|
|
5276
|
+
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); }; }
|
|
5272
5277
|
|
|
5273
|
-
function
|
|
5278
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5274
5279
|
|
|
5275
5280
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5276
5281
|
|
|
5282
|
+
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; } }
|
|
5283
|
+
|
|
5284
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5285
|
+
|
|
5277
5286
|
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); }
|
|
5278
5287
|
|
|
5279
5288
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5285,14 +5294,12 @@ var SDK_GLOBAL = 'DM';
|
|
|
5285
5294
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5286
5295
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5287
5296
|
|
|
5288
|
-
var DailyMotion =
|
|
5289
|
-
/*#__PURE__*/
|
|
5290
|
-
function (_Component) {
|
|
5297
|
+
var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
5291
5298
|
_inherits(DailyMotion, _Component);
|
|
5292
5299
|
|
|
5293
|
-
|
|
5294
|
-
var _getPrototypeOf2;
|
|
5300
|
+
var _super = _createSuper(DailyMotion);
|
|
5295
5301
|
|
|
5302
|
+
function DailyMotion() {
|
|
5296
5303
|
var _this;
|
|
5297
5304
|
|
|
5298
5305
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5301,7 +5308,7 @@ function (_Component) {
|
|
|
5301
5308
|
args[_key] = arguments[_key];
|
|
5302
5309
|
}
|
|
5303
5310
|
|
|
5304
|
-
_this =
|
|
5311
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5305
5312
|
|
|
5306
5313
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5307
5314
|
|
|
@@ -5430,9 +5437,9 @@ function (_Component) {
|
|
|
5430
5437
|
height: '100%',
|
|
5431
5438
|
display: display
|
|
5432
5439
|
};
|
|
5433
|
-
return _react["default"].createElement("div", {
|
|
5440
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5434
5441
|
style: style
|
|
5435
|
-
}, _react["default"].createElement("div", {
|
|
5442
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
5436
5443
|
ref: this.ref
|
|
5437
5444
|
}));
|
|
5438
5445
|
}
|
|
@@ -5490,12 +5497,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5490
5497
|
|
|
5491
5498
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5492
5499
|
|
|
5493
|
-
function
|
|
5500
|
+
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); }; }
|
|
5494
5501
|
|
|
5495
|
-
function
|
|
5502
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5496
5503
|
|
|
5497
5504
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5498
5505
|
|
|
5506
|
+
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; } }
|
|
5507
|
+
|
|
5508
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5509
|
+
|
|
5499
5510
|
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); }
|
|
5500
5511
|
|
|
5501
5512
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5506,14 +5517,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5506
5517
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5507
5518
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5508
5519
|
|
|
5509
|
-
var Mixcloud =
|
|
5510
|
-
/*#__PURE__*/
|
|
5511
|
-
function (_Component) {
|
|
5520
|
+
var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
5512
5521
|
_inherits(Mixcloud, _Component);
|
|
5513
5522
|
|
|
5514
|
-
|
|
5515
|
-
var _getPrototypeOf2;
|
|
5523
|
+
var _super = _createSuper(Mixcloud);
|
|
5516
5524
|
|
|
5525
|
+
function Mixcloud() {
|
|
5517
5526
|
var _this;
|
|
5518
5527
|
|
|
5519
5528
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5522,7 +5531,7 @@ function (_Component) {
|
|
|
5522
5531
|
args[_key] = arguments[_key];
|
|
5523
5532
|
}
|
|
5524
5533
|
|
|
5525
|
-
_this =
|
|
5534
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5526
5535
|
|
|
5527
5536
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5528
5537
|
|
|
@@ -5625,7 +5634,7 @@ function (_Component) {
|
|
|
5625
5634
|
})); // We have to give the iframe a key here to prevent a
|
|
5626
5635
|
// weird dialog appearing when loading a new track
|
|
5627
5636
|
|
|
5628
|
-
return _react["default"].createElement("iframe", {
|
|
5637
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
5629
5638
|
key: id,
|
|
5630
5639
|
ref: this.ref,
|
|
5631
5640
|
style: style,
|
|
@@ -5685,23 +5694,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5685
5694
|
|
|
5686
5695
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5687
5696
|
|
|
5688
|
-
function
|
|
5697
|
+
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); }; }
|
|
5689
5698
|
|
|
5690
|
-
function
|
|
5699
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5691
5700
|
|
|
5692
5701
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5693
5702
|
|
|
5703
|
+
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; } }
|
|
5704
|
+
|
|
5705
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5706
|
+
|
|
5694
5707
|
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); }
|
|
5695
5708
|
|
|
5696
5709
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5697
5710
|
|
|
5698
5711
|
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; }
|
|
5699
5712
|
|
|
5713
|
+
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; } } }; }
|
|
5714
|
+
|
|
5715
|
+
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); }
|
|
5716
|
+
|
|
5717
|
+
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; }
|
|
5718
|
+
|
|
5700
5719
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5701
5720
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5702
5721
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5703
5722
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5704
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5723
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
|
|
5705
5724
|
var HLS_GLOBAL = 'Hls';
|
|
5706
5725
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5707
5726
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5710,12 +5729,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5710
5729
|
|
|
5711
5730
|
function canPlay(url) {
|
|
5712
5731
|
if (url instanceof Array) {
|
|
5713
|
-
var
|
|
5714
|
-
|
|
5715
|
-
var _iteratorError = undefined;
|
|
5732
|
+
var _iterator = _createForOfIteratorHelper(url),
|
|
5733
|
+
_step;
|
|
5716
5734
|
|
|
5717
5735
|
try {
|
|
5718
|
-
for (
|
|
5736
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5719
5737
|
var item = _step.value;
|
|
5720
5738
|
|
|
5721
5739
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5727,18 +5745,9 @@ function canPlay(url) {
|
|
|
5727
5745
|
}
|
|
5728
5746
|
}
|
|
5729
5747
|
} catch (err) {
|
|
5730
|
-
|
|
5731
|
-
_iteratorError = err;
|
|
5748
|
+
_iterator.e(err);
|
|
5732
5749
|
} finally {
|
|
5733
|
-
|
|
5734
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5735
|
-
_iterator["return"]();
|
|
5736
|
-
}
|
|
5737
|
-
} finally {
|
|
5738
|
-
if (_didIteratorError) {
|
|
5739
|
-
throw _iteratorError;
|
|
5740
|
-
}
|
|
5741
|
-
}
|
|
5750
|
+
_iterator.f();
|
|
5742
5751
|
}
|
|
5743
5752
|
|
|
5744
5753
|
return false;
|
|
@@ -5762,14 +5771,12 @@ function canEnablePIP(url) {
|
|
|
5762
5771
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5763
5772
|
}
|
|
5764
5773
|
|
|
5765
|
-
var FilePlayer =
|
|
5766
|
-
/*#__PURE__*/
|
|
5767
|
-
function (_Component) {
|
|
5774
|
+
var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
5768
5775
|
_inherits(FilePlayer, _Component);
|
|
5769
5776
|
|
|
5770
|
-
|
|
5771
|
-
var _getPrototypeOf2;
|
|
5777
|
+
var _super = _createSuper(FilePlayer);
|
|
5772
5778
|
|
|
5779
|
+
function FilePlayer() {
|
|
5773
5780
|
var _this;
|
|
5774
5781
|
|
|
5775
5782
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5778,7 +5785,7 @@ function (_Component) {
|
|
|
5778
5785
|
_args[_key] = arguments[_key];
|
|
5779
5786
|
}
|
|
5780
5787
|
|
|
5781
|
-
_this =
|
|
5788
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5782
5789
|
|
|
5783
5790
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5784
5791
|
var _this$props;
|
|
@@ -5865,19 +5872,19 @@ function (_Component) {
|
|
|
5865
5872
|
|
|
5866
5873
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
5867
5874
|
if (typeof source === 'string') {
|
|
5868
|
-
return _react["default"].createElement("source", {
|
|
5875
|
+
return /*#__PURE__*/_react["default"].createElement("source", {
|
|
5869
5876
|
key: index,
|
|
5870
5877
|
src: source
|
|
5871
5878
|
});
|
|
5872
5879
|
}
|
|
5873
5880
|
|
|
5874
|
-
return _react["default"].createElement("source", _extends({
|
|
5881
|
+
return /*#__PURE__*/_react["default"].createElement("source", _extends({
|
|
5875
5882
|
key: index
|
|
5876
5883
|
}, source));
|
|
5877
5884
|
});
|
|
5878
5885
|
|
|
5879
5886
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
5880
|
-
return _react["default"].createElement("track", _extends({
|
|
5887
|
+
return /*#__PURE__*/_react["default"].createElement("track", _extends({
|
|
5881
5888
|
key: index
|
|
5882
5889
|
}, track));
|
|
5883
5890
|
});
|
|
@@ -5915,6 +5922,10 @@ function (_Component) {
|
|
|
5915
5922
|
key: "componentWillUnmount",
|
|
5916
5923
|
value: function componentWillUnmount() {
|
|
5917
5924
|
this.removeListeners(this.player);
|
|
5925
|
+
|
|
5926
|
+
if (this.hls) {
|
|
5927
|
+
this.hls.destroy();
|
|
5928
|
+
}
|
|
5918
5929
|
}
|
|
5919
5930
|
}, {
|
|
5920
5931
|
key: "addListeners",
|
|
@@ -6045,10 +6056,6 @@ function (_Component) {
|
|
|
6045
6056
|
value: function stop() {
|
|
6046
6057
|
this.player.removeAttribute('src');
|
|
6047
6058
|
|
|
6048
|
-
if (this.hls) {
|
|
6049
|
-
this.hls.destroy();
|
|
6050
|
-
}
|
|
6051
|
-
|
|
6052
6059
|
if (this.dash) {
|
|
6053
6060
|
this.dash.reset();
|
|
6054
6061
|
}
|
|
@@ -6160,7 +6167,7 @@ function (_Component) {
|
|
|
6160
6167
|
width: width === 'auto' ? width : '100%',
|
|
6161
6168
|
height: height === 'auto' ? height : '100%'
|
|
6162
6169
|
};
|
|
6163
|
-
return _react["default"].createElement(Element, _extends({
|
|
6170
|
+
return /*#__PURE__*/_react["default"].createElement(Element, _extends({
|
|
6164
6171
|
ref: this.ref,
|
|
6165
6172
|
src: this.getSource(url),
|
|
6166
6173
|
style: style,
|
|
@@ -6250,12 +6257,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6250
6257
|
|
|
6251
6258
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6252
6259
|
|
|
6253
|
-
function
|
|
6260
|
+
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); }; }
|
|
6254
6261
|
|
|
6255
|
-
function
|
|
6262
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6256
6263
|
|
|
6257
6264
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6258
6265
|
|
|
6266
|
+
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; } }
|
|
6267
|
+
|
|
6268
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6269
|
+
|
|
6259
6270
|
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); }
|
|
6260
6271
|
|
|
6261
6272
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6264,14 +6275,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6264
6275
|
|
|
6265
6276
|
var ICON_SIZE = '64px';
|
|
6266
6277
|
|
|
6267
|
-
var Preview =
|
|
6268
|
-
/*#__PURE__*/
|
|
6269
|
-
function (_Component) {
|
|
6278
|
+
var Preview = /*#__PURE__*/function (_Component) {
|
|
6270
6279
|
_inherits(Preview, _Component);
|
|
6271
6280
|
|
|
6272
|
-
|
|
6273
|
-
var _getPrototypeOf2;
|
|
6281
|
+
var _super = _createSuper(Preview);
|
|
6274
6282
|
|
|
6283
|
+
function Preview() {
|
|
6275
6284
|
var _this;
|
|
6276
6285
|
|
|
6277
6286
|
_classCallCheck(this, Preview);
|
|
@@ -6280,7 +6289,7 @@ function (_Component) {
|
|
|
6280
6289
|
args[_key] = arguments[_key];
|
|
6281
6290
|
}
|
|
6282
6291
|
|
|
6283
|
-
_this =
|
|
6292
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6284
6293
|
|
|
6285
6294
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6286
6295
|
|
|
@@ -6378,15 +6387,15 @@ function (_Component) {
|
|
|
6378
6387
|
}
|
|
6379
6388
|
};
|
|
6380
6389
|
|
|
6381
|
-
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6390
|
+
var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
|
|
6382
6391
|
style: styles.shadow,
|
|
6383
6392
|
className: "react-player__shadow"
|
|
6384
|
-
}, _react["default"].createElement("div", {
|
|
6393
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
6385
6394
|
style: styles.playIcon,
|
|
6386
6395
|
className: "react-player__play-icon"
|
|
6387
6396
|
}));
|
|
6388
6397
|
|
|
6389
|
-
return _react["default"].createElement("div", {
|
|
6398
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
6390
6399
|
style: styles.preview,
|
|
6391
6400
|
className: "react-player__preview",
|
|
6392
6401
|
onClick: onClick
|
|
@@ -6423,6 +6432,12 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6423
6432
|
|
|
6424
6433
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6425
6434
|
|
|
6435
|
+
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; } } }; }
|
|
6436
|
+
|
|
6437
|
+
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); }
|
|
6438
|
+
|
|
6439
|
+
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; }
|
|
6440
|
+
|
|
6426
6441
|
var PRELOAD_PLAYERS = [{
|
|
6427
6442
|
Player: YouTube_1.YouTube,
|
|
6428
6443
|
configKey: 'youtube',
|
|
@@ -6443,16 +6458,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6443
6458
|
|
|
6444
6459
|
function renderPreloadPlayers(url, controls, config) {
|
|
6445
6460
|
var players = [];
|
|
6446
|
-
|
|
6447
|
-
var
|
|
6448
|
-
|
|
6461
|
+
|
|
6462
|
+
var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
|
|
6463
|
+
_step;
|
|
6449
6464
|
|
|
6450
6465
|
try {
|
|
6451
|
-
for (
|
|
6466
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6452
6467
|
var player = _step.value;
|
|
6453
6468
|
|
|
6454
6469
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6455
|
-
players.push(_react["default"].createElement(_Player["default"], {
|
|
6470
|
+
players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
|
|
6456
6471
|
key: player.Player.displayName,
|
|
6457
6472
|
activePlayer: player.Player,
|
|
6458
6473
|
url: player.url,
|
|
@@ -6464,18 +6479,9 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6464
6479
|
}
|
|
6465
6480
|
}
|
|
6466
6481
|
} catch (err) {
|
|
6467
|
-
|
|
6468
|
-
_iteratorError = err;
|
|
6482
|
+
_iterator.e(err);
|
|
6469
6483
|
} finally {
|
|
6470
|
-
|
|
6471
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6472
|
-
_iterator["return"]();
|
|
6473
|
-
}
|
|
6474
|
-
} finally {
|
|
6475
|
-
if (_didIteratorError) {
|
|
6476
|
-
throw _iteratorError;
|
|
6477
|
-
}
|
|
6478
|
-
}
|
|
6484
|
+
_iterator.f();
|
|
6479
6485
|
}
|
|
6480
6486
|
|
|
6481
6487
|
return players;
|
|
@@ -6599,13 +6605,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6599
6605
|
|
|
6600
6606
|
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); }
|
|
6601
6607
|
|
|
6602
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6608
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6609
|
+
|
|
6610
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
6611
|
+
|
|
6612
|
+
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); }
|
|
6603
6613
|
|
|
6604
|
-
function
|
|
6614
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
6605
6615
|
|
|
6606
|
-
function
|
|
6616
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6607
6617
|
|
|
6608
|
-
function
|
|
6618
|
+
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; }
|
|
6609
6619
|
|
|
6610
6620
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6611
6621
|
|
|
@@ -6613,12 +6623,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6613
6623
|
|
|
6614
6624
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6615
6625
|
|
|
6616
|
-
function
|
|
6626
|
+
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); }; }
|
|
6617
6627
|
|
|
6618
|
-
function
|
|
6628
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6619
6629
|
|
|
6620
6630
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6621
6631
|
|
|
6632
|
+
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; } }
|
|
6633
|
+
|
|
6634
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6635
|
+
|
|
6622
6636
|
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); }
|
|
6623
6637
|
|
|
6624
6638
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6628,14 +6642,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6628
6642
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6629
6643
|
var customPlayers = [];
|
|
6630
6644
|
|
|
6631
|
-
var ReactPlayer =
|
|
6632
|
-
/*#__PURE__*/
|
|
6633
|
-
function (_Component) {
|
|
6645
|
+
var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
6634
6646
|
_inherits(ReactPlayer, _Component);
|
|
6635
6647
|
|
|
6636
|
-
|
|
6637
|
-
var _getPrototypeOf2;
|
|
6648
|
+
var _super = _createSuper(ReactPlayer);
|
|
6638
6649
|
|
|
6650
|
+
function ReactPlayer() {
|
|
6639
6651
|
var _this;
|
|
6640
6652
|
|
|
6641
6653
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6644,7 +6656,7 @@ function (_Component) {
|
|
|
6644
6656
|
args[_key] = arguments[_key];
|
|
6645
6657
|
}
|
|
6646
6658
|
|
|
6647
|
-
_this =
|
|
6659
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6648
6660
|
|
|
6649
6661
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6650
6662
|
|
|
@@ -6755,7 +6767,7 @@ function (_Component) {
|
|
|
6755
6767
|
key: "renderActivePlayer",
|
|
6756
6768
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6757
6769
|
if (!url) return null;
|
|
6758
|
-
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6770
|
+
return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6759
6771
|
key: activePlayer.displayName,
|
|
6760
6772
|
ref: this.activePlayerRef,
|
|
6761
6773
|
config: this.config,
|
|
@@ -6792,14 +6804,14 @@ function (_Component) {
|
|
|
6792
6804
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6793
6805
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6794
6806
|
|
|
6795
|
-
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6807
|
+
var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
|
|
6796
6808
|
url: url,
|
|
6797
6809
|
light: light,
|
|
6798
6810
|
playIcon: playIcon,
|
|
6799
6811
|
onClick: this.handleClickPreview
|
|
6800
6812
|
});
|
|
6801
6813
|
|
|
6802
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
6814
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
6803
6815
|
ref: this.wrapperRef,
|
|
6804
6816
|
style: _objectSpread({}, style, {
|
|
6805
6817
|
width: width,
|
|
@@ -7347,7 +7359,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7347
7359
|
{ className: 'mb-3' },
|
|
7348
7360
|
nodes.videos[series - 1].title
|
|
7349
7361
|
),
|
|
7350
|
-
nodes.videos[series - 1] && nodes.videos[series - 1].text && React__default.createElement(BlockContent, _extends
|
|
7362
|
+
nodes.videos[series - 1] && nodes.videos[series - 1].text && React__default.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: nodes.videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7351
7363
|
),
|
|
7352
7364
|
React__default.createElement(
|
|
7353
7365
|
'style',
|
|
@@ -7475,7 +7487,7 @@ var Poll = function Poll(_ref) {
|
|
|
7475
7487
|
);
|
|
7476
7488
|
};
|
|
7477
7489
|
|
|
7478
|
-
var numberOfPaginations =
|
|
7490
|
+
var numberOfPaginations = main_38 ? 4 : 10;
|
|
7479
7491
|
|
|
7480
7492
|
var Quiz = function Quiz(_ref) {
|
|
7481
7493
|
var quizzes = _ref.quizzes,
|
|
@@ -7588,7 +7600,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
7588
7600
|
var renderPagination = function renderPagination() {
|
|
7589
7601
|
return React__default.createElement(
|
|
7590
7602
|
Pagination,
|
|
7591
|
-
{ className: 'p-0 m-0', size:
|
|
7603
|
+
{ className: 'p-0 m-0', size: main_38 && 'sm' },
|
|
7592
7604
|
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7593
7605
|
return changePage('first');
|
|
7594
7606
|
}, disabled: currentPage === 1 }),
|
|
@@ -7922,7 +7934,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
7922
7934
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
7923
7935
|
React__default.createElement(
|
|
7924
7936
|
'a',
|
|
7925
|
-
_extends
|
|
7937
|
+
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
7926
7938
|
React__default.createElement(
|
|
7927
7939
|
'div',
|
|
7928
7940
|
{ className: 'multi-figure-image-container' },
|