@mjhls/mjh-framework 1.0.455 → 1.0.457
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 +1 -1
- package/dist/cjs/AD300x250.js +1 -1
- package/dist/cjs/AD300x250x600.js +1 -1
- package/dist/cjs/AD728x90.js +1 -1
- package/dist/cjs/ADFloatingFooter.js +1 -1
- package/dist/cjs/ADGutter.js +1 -1
- package/dist/cjs/ADSponsoredResources.js +1 -1
- package/dist/cjs/ADWebcast.js +1 -1
- package/dist/cjs/ADWelcome.js +1 -1
- package/dist/cjs/AdSlot.js +1 -1
- package/dist/cjs/ArticleQueue.js +31 -30
- package/dist/cjs/Auth.js +6 -6
- package/dist/cjs/{BlockContent-77f81ffc.js → BlockContent-f942392e.js} +1 -1
- package/dist/cjs/CMEDeck.js +2 -2
- package/dist/cjs/Column3.js +1 -1
- package/dist/cjs/ConferenceArticleCard.js +2 -2
- package/dist/cjs/DeckContent.js +5 -5
- package/dist/cjs/DeckQueue.js +4 -4
- package/dist/cjs/EventsDeck.js +2 -2
- package/dist/cjs/Feature.js +2 -2
- package/dist/cjs/{Figure-eeac313a.js → Figure-05b73e6a.js} +1 -1
- package/dist/cjs/ForbesHero.js +2 -2
- package/dist/cjs/GridContent.js +6 -6
- package/dist/cjs/GridHero.js +2 -2
- package/dist/cjs/GroupDeck.js +1 -1
- package/dist/cjs/HamMagazine.js +1 -1
- package/dist/cjs/Hero.js +1 -1
- package/dist/cjs/HorizontalHero.js +2 -2
- package/dist/cjs/{InscreenSensor-bcdec6b0.js → InscreenSensor-f9989c04.js} +1 -1
- package/dist/cjs/IssueContentDeck.js +2 -2
- package/dist/cjs/IssueDeck.js +1 -1
- package/dist/cjs/IssueLanding.js +5 -5
- package/dist/cjs/LeftNav.js +1 -1
- package/dist/cjs/MasterDeck.js +4 -4
- package/dist/cjs/NavMagazine.js +1 -1
- package/dist/cjs/NavNative.js +1 -1
- package/dist/cjs/OncliveHero.js +2 -2
- package/dist/cjs/OncliveLargeHero.js +2 -2
- package/dist/cjs/PublicationDeck.js +1 -1
- package/dist/cjs/QueueDeckExpanded.js +5 -5
- package/dist/cjs/RelatedContent.js +2 -2
- package/dist/cjs/TaxonomyCard.js +2 -2
- package/dist/cjs/TemplateNormal.js +1 -1
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/VerticalHero.js +2 -2
- package/dist/cjs/VideoSeriesFilter.js +1 -1
- package/dist/cjs/VideoSeriesListing.js +3 -3
- package/dist/cjs/View.js +66 -63
- package/dist/cjs/YahooHero.js +2 -2
- package/dist/cjs/YoutubeGroup.js +1 -1
- package/dist/cjs/getQuery.js +1 -1
- package/dist/cjs/getSerializers.js +447 -435
- package/dist/cjs/{getTargeting-ec7dd217.js → getTargeting-3ced038f.js} +11 -24
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{index-be0c82be.js → index-b5eb3ff8.js} +20 -19
- package/dist/cjs/index.js +9 -9
- package/dist/cjs/{inherits-93684212.js → inherits-14962339.js} +4 -4
- package/dist/cjs/{main-88348b15.js → main-00905561.js} +6 -6
- package/dist/cjs/{moment-575fe24c.js → moment-3cf060f6.js} +5 -5
- package/dist/cjs/urlFor.js +1 -1
- package/dist/esm/AD300x250.js +1 -1
- package/dist/esm/AD300x250x600.js +1 -1
- package/dist/esm/AD728x90.js +1 -1
- package/dist/esm/ADFloatingFooter.js +1 -1
- package/dist/esm/ADGutter.js +1 -1
- package/dist/esm/ADSponsoredResources.js +1 -1
- package/dist/esm/ADWebcast.js +1 -1
- package/dist/esm/ADWelcome.js +1 -1
- package/dist/esm/AdSlot.js +1 -1
- package/dist/esm/ArticleQueue.js +29 -28
- package/dist/esm/Auth.js +3 -3
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-a614acdf.js} +1 -1
- package/dist/esm/CMEDeck.js +2 -2
- package/dist/esm/Column3.js +1 -1
- package/dist/esm/ConferenceArticleCard.js +2 -2
- package/dist/esm/DeckContent.js +4 -4
- package/dist/esm/DeckQueue.js +3 -3
- package/dist/esm/EventsDeck.js +2 -2
- package/dist/esm/Feature.js +2 -2
- package/dist/esm/{Figure-bc2b95d7.js → Figure-23e3ecc0.js} +1 -1
- package/dist/esm/ForbesHero.js +2 -2
- package/dist/esm/GridContent.js +5 -5
- package/dist/esm/GridHero.js +2 -2
- package/dist/esm/GroupDeck.js +1 -1
- package/dist/esm/HamMagazine.js +1 -1
- package/dist/esm/Hero.js +1 -1
- package/dist/esm/HorizontalHero.js +2 -2
- package/dist/esm/IssueContentDeck.js +2 -2
- package/dist/esm/IssueDeck.js +1 -1
- package/dist/esm/IssueLanding.js +5 -5
- package/dist/esm/LeftNav.js +1 -1
- package/dist/esm/MasterDeck.js +3 -3
- package/dist/esm/NavMagazine.js +1 -1
- package/dist/esm/NavNative.js +1 -1
- package/dist/esm/OncliveHero.js +2 -2
- package/dist/esm/OncliveLargeHero.js +2 -2
- package/dist/esm/PublicationDeck.js +1 -1
- package/dist/esm/QueueDeckExpanded.js +5 -5
- package/dist/esm/RelatedContent.js +2 -2
- package/dist/esm/TaxonomyCard.js +2 -2
- package/dist/esm/TemplateNormal.js +1 -1
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/VerticalHero.js +2 -2
- package/dist/esm/VideoSeriesFilter.js +1 -1
- package/dist/esm/VideoSeriesListing.js +2 -2
- package/dist/esm/View.js +42 -39
- package/dist/esm/YahooHero.js +2 -2
- package/dist/esm/YoutubeGroup.js +1 -1
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getSerializers.js +447 -435
- package/dist/esm/{getTargeting-02118961.js → getTargeting-8f4bd5db.js} +9 -22
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-73819142.js → index-51a80699.js} +20 -19
- package/dist/esm/index.js +7 -7
- package/dist/esm/{main-d7ee6151.js → main-adf6ec37.js} +6 -6
- package/dist/esm/{moment-e2f9b20c.js → moment-49ae13fa.js} +5 -5
- package/dist/esm/urlFor.js +1 -1
- package/package.json +1 -1
- /package/dist/cjs/{ADInfeed-5c1d1425.js → ADInfeed-5adbfbba.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-ce35bd57.js → ADlgInfeed-028da9eb.js} +0 -0
- /package/dist/esm/{ADInfeed-24924eab.js → ADInfeed-08192400.js} +0 -0
- /package/dist/esm/{ADlgInfeed-019d6cd9.js → ADlgInfeed-a90cf553.js} +0 -0
|
@@ -5,7 +5,7 @@ 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';
|
|
@@ -16,9 +16,9 @@ import Router, { useRouter } from 'next/router';
|
|
|
16
16
|
import './isSymbol-c1b9be80.js';
|
|
17
17
|
import './debounce-8cd9e09c.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 main_35 } from './main-
|
|
21
|
+
import { b as main_16, c as main_35 } from './main-adf6ec37.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';
|
|
@@ -28,7 +28,7 @@ import './promise-53143c9a.js';
|
|
|
28
28
|
import Beam from './Beam.js';
|
|
29
29
|
import './Segment.js';
|
|
30
30
|
import DFPAdSlot from './AdSlot.js';
|
|
31
|
-
import { B as BlockContent } from './BlockContent-
|
|
31
|
+
import { B as BlockContent } from './BlockContent-a614acdf.js';
|
|
32
32
|
import { g as getYoutubeId } from './smoothscroll-4b699764.js';
|
|
33
33
|
import GroupDeck from './GroupDeck.js';
|
|
34
34
|
import { Carousel, Table, Figure as Figure$1, Button, ProgressBar, Row, Col } from 'react-bootstrap';
|
|
@@ -101,21 +101,18 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
101
101
|
);
|
|
102
102
|
};
|
|
103
103
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
104
|
+
// do not edit .js files directly - edit src/index.jst
|
|
105
|
+
|
|
106
|
+
|
|
107
107
|
|
|
108
108
|
var fastDeepEqual = function equal(a, b) {
|
|
109
109
|
if (a === b) return true;
|
|
110
110
|
|
|
111
111
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
112
|
-
|
|
113
|
-
, arrB = isArray(b)
|
|
114
|
-
, i
|
|
115
|
-
, length
|
|
116
|
-
, key;
|
|
112
|
+
if (a.constructor !== b.constructor) return false;
|
|
117
113
|
|
|
118
|
-
|
|
114
|
+
var length, i, keys;
|
|
115
|
+
if (Array.isArray(a)) {
|
|
119
116
|
length = a.length;
|
|
120
117
|
if (length != b.length) return false;
|
|
121
118
|
for (i = length; i-- !== 0;)
|
|
@@ -123,35 +120,29 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
123
120
|
return true;
|
|
124
121
|
}
|
|
125
122
|
|
|
126
|
-
if (arrA != arrB) return false;
|
|
127
123
|
|
|
128
|
-
var dateA = a instanceof Date
|
|
129
|
-
, dateB = b instanceof Date;
|
|
130
|
-
if (dateA != dateB) return false;
|
|
131
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
132
124
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
if (
|
|
136
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
125
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
126
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
127
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
137
128
|
|
|
138
|
-
|
|
129
|
+
keys = Object.keys(a);
|
|
139
130
|
length = keys.length;
|
|
140
|
-
|
|
141
|
-
if (length !== keyList(b).length)
|
|
142
|
-
return false;
|
|
131
|
+
if (length !== Object.keys(b).length) return false;
|
|
143
132
|
|
|
144
133
|
for (i = length; i-- !== 0;)
|
|
145
|
-
if (!
|
|
134
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
146
135
|
|
|
147
136
|
for (i = length; i-- !== 0;) {
|
|
148
|
-
key = keys[i];
|
|
137
|
+
var key = keys[i];
|
|
138
|
+
|
|
149
139
|
if (!equal(a[key], b[key])) return false;
|
|
150
140
|
}
|
|
151
141
|
|
|
152
142
|
return true;
|
|
153
143
|
}
|
|
154
144
|
|
|
145
|
+
// true if both NaN, false otherwise
|
|
155
146
|
return a!==a && b!==b;
|
|
156
147
|
};
|
|
157
148
|
|
|
@@ -1574,199 +1565,235 @@ module.exports = exports['default'];
|
|
|
1574
1565
|
|
|
1575
1566
|
var youTubePlayer = unwrapExports(dist);
|
|
1576
1567
|
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
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; };
|
|
1568
|
+
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); }
|
|
1580
1569
|
|
|
1581
1570
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1582
1571
|
|
|
1583
|
-
function
|
|
1572
|
+
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); } }
|
|
1573
|
+
|
|
1574
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1575
|
+
|
|
1576
|
+
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); }; }
|
|
1577
|
+
|
|
1578
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1579
|
+
|
|
1580
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1581
|
+
|
|
1582
|
+
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; } }
|
|
1583
|
+
|
|
1584
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1585
|
+
|
|
1586
|
+
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); }
|
|
1587
|
+
|
|
1588
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1589
|
+
|
|
1590
|
+
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; }
|
|
1584
1591
|
|
|
1585
|
-
function
|
|
1592
|
+
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; }
|
|
1586
1593
|
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
*
|
|
1590
|
-
*
|
|
1591
|
-
* @param {Object}
|
|
1594
|
+
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; }
|
|
1595
|
+
/**
|
|
1596
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1597
|
+
*
|
|
1598
|
+
* @param {Object} prevProps
|
|
1599
|
+
* @param {Object} props
|
|
1592
1600
|
*/
|
|
1601
|
+
|
|
1593
1602
|
function shouldUpdateVideo(prevProps, props) {
|
|
1594
1603
|
// A changing video should always trigger an update
|
|
1595
1604
|
if (prevProps.videoId !== props.videoId) {
|
|
1596
1605
|
return true;
|
|
1597
|
-
}
|
|
1598
|
-
|
|
1599
|
-
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1606
|
+
} // Otherwise, a change in the start/end time playerVars also requires a player
|
|
1600
1607
|
// update.
|
|
1608
|
+
|
|
1609
|
+
|
|
1601
1610
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1602
1611
|
var vars = props.opts.playerVars || {};
|
|
1603
|
-
|
|
1604
1612
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1605
1613
|
}
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
*
|
|
1609
|
-
*
|
|
1610
|
-
*
|
|
1611
|
-
*
|
|
1612
|
-
* @param {Object} opts
|
|
1614
|
+
/**
|
|
1615
|
+
* Neutralize API options that only require a video update, leaving only options
|
|
1616
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1617
|
+
* player reset is necessary.
|
|
1618
|
+
*
|
|
1619
|
+
* @param {Object} opts
|
|
1613
1620
|
*/
|
|
1621
|
+
|
|
1622
|
+
|
|
1614
1623
|
function filterResetOptions(opts) {
|
|
1615
|
-
return
|
|
1616
|
-
playerVars:
|
|
1624
|
+
return _objectSpread({}, opts, {
|
|
1625
|
+
playerVars: _objectSpread({}, opts.playerVars, {
|
|
1617
1626
|
autoplay: 0,
|
|
1618
1627
|
start: 0,
|
|
1619
1628
|
end: 0
|
|
1620
1629
|
})
|
|
1621
1630
|
});
|
|
1622
1631
|
}
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
*
|
|
1626
|
-
*
|
|
1627
|
-
*
|
|
1628
|
-
*
|
|
1629
|
-
*
|
|
1630
|
-
* @param {Object}
|
|
1631
|
-
* @param {Object} props
|
|
1632
|
+
/**
|
|
1633
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1634
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1635
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1636
|
+
* those.
|
|
1637
|
+
*
|
|
1638
|
+
* @param {Object} prevProps
|
|
1639
|
+
* @param {Object} props
|
|
1632
1640
|
*/
|
|
1641
|
+
|
|
1642
|
+
|
|
1633
1643
|
function shouldResetPlayer(prevProps, props) {
|
|
1634
1644
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1635
1645
|
}
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
*
|
|
1639
|
-
*
|
|
1640
|
-
* @param {Object}
|
|
1641
|
-
* @param {Object} props
|
|
1646
|
+
/**
|
|
1647
|
+
* Check whether a props change should result in an id or className update.
|
|
1648
|
+
*
|
|
1649
|
+
* @param {Object} prevProps
|
|
1650
|
+
* @param {Object} props
|
|
1642
1651
|
*/
|
|
1652
|
+
|
|
1653
|
+
|
|
1643
1654
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1644
1655
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1645
1656
|
}
|
|
1646
1657
|
|
|
1647
|
-
var YouTube = function (_React$Component) {
|
|
1658
|
+
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
1648
1659
|
_inherits(YouTube, _React$Component);
|
|
1649
1660
|
|
|
1661
|
+
var _super = _createSuper(YouTube);
|
|
1662
|
+
|
|
1663
|
+
/**
|
|
1664
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1665
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1666
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1667
|
+
*/
|
|
1650
1668
|
function YouTube(props) {
|
|
1669
|
+
var _this;
|
|
1670
|
+
|
|
1651
1671
|
_classCallCheck(this, YouTube);
|
|
1652
1672
|
|
|
1653
|
-
|
|
1673
|
+
_this = _super.call(this, props);
|
|
1654
1674
|
|
|
1655
|
-
_this
|
|
1675
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
|
|
1656
1676
|
return _this.props.onReady(event);
|
|
1657
|
-
};
|
|
1677
|
+
});
|
|
1658
1678
|
|
|
1659
|
-
_this
|
|
1679
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
|
|
1660
1680
|
return _this.props.onError(event);
|
|
1661
|
-
};
|
|
1681
|
+
});
|
|
1662
1682
|
|
|
1663
|
-
_this
|
|
1683
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
|
|
1664
1684
|
_this.props.onStateChange(event);
|
|
1665
|
-
switch (event.data) {
|
|
1666
1685
|
|
|
1686
|
+
switch (event.data) {
|
|
1667
1687
|
case YouTube.PlayerState.ENDED:
|
|
1668
1688
|
_this.props.onEnd(event);
|
|
1689
|
+
|
|
1669
1690
|
break;
|
|
1670
1691
|
|
|
1671
1692
|
case YouTube.PlayerState.PLAYING:
|
|
1672
1693
|
_this.props.onPlay(event);
|
|
1694
|
+
|
|
1673
1695
|
break;
|
|
1674
1696
|
|
|
1675
1697
|
case YouTube.PlayerState.PAUSED:
|
|
1676
1698
|
_this.props.onPause(event);
|
|
1699
|
+
|
|
1677
1700
|
break;
|
|
1678
1701
|
}
|
|
1679
|
-
};
|
|
1702
|
+
});
|
|
1680
1703
|
|
|
1681
|
-
_this
|
|
1704
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
|
|
1682
1705
|
return _this.props.onPlaybackRateChange(event);
|
|
1683
|
-
};
|
|
1706
|
+
});
|
|
1684
1707
|
|
|
1685
|
-
_this
|
|
1708
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
|
|
1686
1709
|
return _this.props.onPlaybackQualityChange(event);
|
|
1687
|
-
};
|
|
1710
|
+
});
|
|
1688
1711
|
|
|
1689
|
-
_this
|
|
1712
|
+
_defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
|
|
1690
1713
|
// do not attempt to create a player server-side, it won't work
|
|
1691
|
-
if (typeof document === 'undefined') return;
|
|
1692
|
-
|
|
1693
|
-
var playerOpts =
|
|
1714
|
+
if (typeof document === 'undefined') return; // create player
|
|
1715
|
+
|
|
1716
|
+
var playerOpts = _objectSpread({}, _this.props.opts, {
|
|
1694
1717
|
// preload the `videoId` video if one is already given
|
|
1695
1718
|
videoId: _this.props.videoId
|
|
1696
1719
|
});
|
|
1697
|
-
|
|
1698
|
-
// attach event handlers
|
|
1720
|
+
|
|
1721
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
|
|
1722
|
+
|
|
1699
1723
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1724
|
+
|
|
1700
1725
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1726
|
+
|
|
1701
1727
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1728
|
+
|
|
1702
1729
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1730
|
+
|
|
1703
1731
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1704
|
-
};
|
|
1732
|
+
});
|
|
1705
1733
|
|
|
1706
|
-
_this
|
|
1734
|
+
_defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
|
|
1707
1735
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1708
|
-
};
|
|
1736
|
+
});
|
|
1709
1737
|
|
|
1710
|
-
_this
|
|
1738
|
+
_defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
|
|
1711
1739
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1712
1740
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1713
1741
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1714
1742
|
});
|
|
1715
|
-
};
|
|
1743
|
+
});
|
|
1716
1744
|
|
|
1717
|
-
_this
|
|
1745
|
+
_defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
|
|
1718
1746
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1719
1747
|
_this.internalPlayer.stopVideo();
|
|
1748
|
+
|
|
1720
1749
|
return;
|
|
1721
|
-
}
|
|
1750
|
+
} // set queueing options
|
|
1751
|
+
|
|
1722
1752
|
|
|
1723
|
-
// set queueing options
|
|
1724
1753
|
var autoplay = false;
|
|
1725
1754
|
var opts = {
|
|
1726
1755
|
videoId: _this.props.videoId
|
|
1727
1756
|
};
|
|
1757
|
+
|
|
1728
1758
|
if ('playerVars' in _this.props.opts) {
|
|
1729
1759
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1760
|
+
|
|
1730
1761
|
if ('start' in _this.props.opts.playerVars) {
|
|
1731
1762
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1732
1763
|
}
|
|
1764
|
+
|
|
1733
1765
|
if ('end' in _this.props.opts.playerVars) {
|
|
1734
1766
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1735
1767
|
}
|
|
1736
|
-
}
|
|
1768
|
+
} // if autoplay is enabled loadVideoById
|
|
1769
|
+
|
|
1737
1770
|
|
|
1738
|
-
// if autoplay is enabled loadVideoById
|
|
1739
1771
|
if (autoplay) {
|
|
1740
1772
|
_this.internalPlayer.loadVideoById(opts);
|
|
1773
|
+
|
|
1741
1774
|
return;
|
|
1742
|
-
}
|
|
1743
|
-
|
|
1775
|
+
} // default behaviour just cues the video
|
|
1776
|
+
|
|
1777
|
+
|
|
1744
1778
|
_this.internalPlayer.cueVideoById(opts);
|
|
1745
|
-
};
|
|
1779
|
+
});
|
|
1746
1780
|
|
|
1747
|
-
_this
|
|
1781
|
+
_defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
|
|
1748
1782
|
_this.container = container;
|
|
1749
|
-
};
|
|
1783
|
+
});
|
|
1750
1784
|
|
|
1751
1785
|
_this.container = null;
|
|
1752
1786
|
_this.internalPlayer = null;
|
|
1753
1787
|
return _this;
|
|
1754
1788
|
}
|
|
1755
1789
|
|
|
1756
|
-
/**
|
|
1757
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1758
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1759
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1760
|
-
*/
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
1790
|
_createClass(YouTube, [{
|
|
1764
|
-
key:
|
|
1791
|
+
key: "componentDidMount",
|
|
1765
1792
|
value: function componentDidMount() {
|
|
1766
1793
|
this.createPlayer();
|
|
1767
1794
|
}
|
|
1768
1795
|
}, {
|
|
1769
|
-
key:
|
|
1796
|
+
key: "componentDidUpdate",
|
|
1770
1797
|
value: function componentDidUpdate(prevProps) {
|
|
1771
1798
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1772
1799
|
this.updatePlayer();
|
|
@@ -1781,112 +1808,58 @@ var YouTube = function (_React$Component) {
|
|
|
1781
1808
|
}
|
|
1782
1809
|
}
|
|
1783
1810
|
}, {
|
|
1784
|
-
key:
|
|
1811
|
+
key: "componentWillUnmount",
|
|
1785
1812
|
value: function componentWillUnmount() {
|
|
1786
|
-
/**
|
|
1787
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1788
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1789
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1790
|
-
* this method isn't quick enough to reset the container element.
|
|
1813
|
+
/**
|
|
1814
|
+
* Note: The `youtube-player` package that is used promisifies all YouTube
|
|
1815
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1816
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1817
|
+
* this method isn't quick enough to reset the container element.
|
|
1791
1818
|
*/
|
|
1792
1819
|
this.internalPlayer.destroy();
|
|
1793
1820
|
}
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
*
|
|
1797
|
-
*
|
|
1798
|
-
*
|
|
1799
|
-
* @param {Object} target - player object
|
|
1800
|
-
*/
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
/**
|
|
1804
|
-
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1805
|
-
*
|
|
1806
|
-
* @param {Object} event
|
|
1807
|
-
* @param {Integer} data - error type
|
|
1808
|
-
* @param {Object} target - player object
|
|
1809
|
-
*/
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
/**
|
|
1813
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1814
|
-
*
|
|
1815
|
-
* @param {Object} event
|
|
1816
|
-
* @param {Integer} data - status change type
|
|
1817
|
-
* @param {Object} target - actual YT player
|
|
1818
|
-
*/
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
/**
|
|
1822
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1823
|
-
*
|
|
1824
|
-
* @param {Object} event
|
|
1825
|
-
* @param {Float} data - playback rate
|
|
1826
|
-
* @param {Object} target - actual YT player
|
|
1827
|
-
*/
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
/**
|
|
1831
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1832
|
-
*
|
|
1833
|
-
* @param {Object} event
|
|
1834
|
-
* @param {String} data - playback quality
|
|
1835
|
-
* @param {Object} target - actual YT player
|
|
1836
|
-
*/
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
/**
|
|
1840
|
-
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1841
|
-
*/
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
/**
|
|
1845
|
-
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1846
|
-
*/
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
/**
|
|
1850
|
-
* Method to update the id and class of the Youtube Player iframe.
|
|
1851
|
-
* React should update this automatically but since the Youtube Player API
|
|
1852
|
-
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1853
|
-
*/
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
/**
|
|
1857
|
-
* Call Youtube Player API methods to update the currently playing video.
|
|
1858
|
-
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1859
|
-
* Youtube Player API methods to update the video.
|
|
1821
|
+
/**
|
|
1822
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1823
|
+
*
|
|
1824
|
+
* @param {Object} event
|
|
1825
|
+
* @param {Object} target - player object
|
|
1860
1826
|
*/
|
|
1861
1827
|
|
|
1862
1828
|
}, {
|
|
1863
|
-
key:
|
|
1829
|
+
key: "render",
|
|
1864
1830
|
value: function render() {
|
|
1865
|
-
return React__default.createElement(
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1831
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1832
|
+
className: this.props.containerClassName
|
|
1833
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1834
|
+
id: this.props.id,
|
|
1835
|
+
className: this.props.className,
|
|
1836
|
+
ref: this.refContainer
|
|
1837
|
+
}));
|
|
1870
1838
|
}
|
|
1871
1839
|
}]);
|
|
1872
1840
|
|
|
1873
1841
|
return YouTube;
|
|
1874
1842
|
}(React__default.Component);
|
|
1875
1843
|
|
|
1844
|
+
_defineProperty(YouTube, "PlayerState", {
|
|
1845
|
+
UNSTARTED: -1,
|
|
1846
|
+
ENDED: 0,
|
|
1847
|
+
PLAYING: 1,
|
|
1848
|
+
PAUSED: 2,
|
|
1849
|
+
BUFFERING: 3,
|
|
1850
|
+
CUED: 5
|
|
1851
|
+
});
|
|
1852
|
+
|
|
1876
1853
|
YouTube.propTypes = {
|
|
1877
1854
|
videoId: PropTypes.string,
|
|
1878
|
-
|
|
1879
1855
|
// custom ID for player element
|
|
1880
1856
|
id: PropTypes.string,
|
|
1881
|
-
|
|
1882
1857
|
// custom class name for player element
|
|
1883
1858
|
className: PropTypes.string,
|
|
1884
1859
|
// custom class name for player container element
|
|
1885
1860
|
containerClassName: PropTypes.string,
|
|
1886
|
-
|
|
1887
1861
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1888
1862
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1889
|
-
|
|
1890
1863
|
// event subscriptions
|
|
1891
1864
|
onReady: PropTypes.func,
|
|
1892
1865
|
onError: PropTypes.func,
|
|
@@ -1898,6 +1871,7 @@ YouTube.propTypes = {
|
|
|
1898
1871
|
onPlaybackQualityChange: PropTypes.func
|
|
1899
1872
|
};
|
|
1900
1873
|
YouTube.defaultProps = {
|
|
1874
|
+
videoId: null,
|
|
1901
1875
|
id: null,
|
|
1902
1876
|
className: null,
|
|
1903
1877
|
opts: {},
|
|
@@ -1911,14 +1885,6 @@ YouTube.defaultProps = {
|
|
|
1911
1885
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1912
1886
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1913
1887
|
};
|
|
1914
|
-
YouTube.PlayerState = {
|
|
1915
|
-
UNSTARTED: -1,
|
|
1916
|
-
ENDED: 0,
|
|
1917
|
-
PLAYING: 1,
|
|
1918
|
-
PAUSED: 2,
|
|
1919
|
-
BUFFERING: 3,
|
|
1920
|
-
CUED: 5
|
|
1921
|
-
};
|
|
1922
1888
|
|
|
1923
1889
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1924
1890
|
var url = _ref.url;
|
|
@@ -2174,7 +2140,7 @@ var Media = function Media(_ref) {
|
|
|
2174
2140
|
React__default.createElement(
|
|
2175
2141
|
'a',
|
|
2176
2142
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2177
|
-
React__default.createElement(Figure$1.Image, _extends
|
|
2143
|
+
React__default.createElement(Figure$1.Image, _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt })),
|
|
2178
2144
|
caption && React__default.createElement(
|
|
2179
2145
|
Figure$1.Caption,
|
|
2180
2146
|
{ className: 'media-caption' },
|
|
@@ -2185,7 +2151,7 @@ var Media = function Media(_ref) {
|
|
|
2185
2151
|
} else if (caption && caption !== '') {
|
|
2186
2152
|
return React__default.createElement(
|
|
2187
2153
|
'a',
|
|
2188
|
-
_extends
|
|
2154
|
+
_extends({}, uploadDoc.downloadMedia ? {
|
|
2189
2155
|
href: uploadDoc.asset.url + '?dl='
|
|
2190
2156
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2191
2157
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2741,11 +2707,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2741
2707
|
|
|
2742
2708
|
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; }
|
|
2743
2709
|
|
|
2744
|
-
function
|
|
2710
|
+
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; } } }; }
|
|
2711
|
+
|
|
2712
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2745
2713
|
|
|
2746
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2714
|
+
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."); }
|
|
2747
2715
|
|
|
2748
|
-
function
|
|
2716
|
+
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); }
|
|
2717
|
+
|
|
2718
|
+
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; }
|
|
2719
|
+
|
|
2720
|
+
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; }
|
|
2749
2721
|
|
|
2750
2722
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2751
2723
|
|
|
@@ -2875,12 +2847,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
2875
2847
|
|
|
2876
2848
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
2877
2849
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
2878
|
-
|
|
2879
|
-
var
|
|
2880
|
-
|
|
2850
|
+
|
|
2851
|
+
var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
|
|
2852
|
+
_step;
|
|
2881
2853
|
|
|
2882
2854
|
try {
|
|
2883
|
-
for (
|
|
2855
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
2884
2856
|
var p = _step.value;
|
|
2885
2857
|
|
|
2886
2858
|
if (props$1[p]) {
|
|
@@ -2895,18 +2867,9 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
2895
2867
|
}
|
|
2896
2868
|
}
|
|
2897
2869
|
} catch (err) {
|
|
2898
|
-
|
|
2899
|
-
_iteratorError = err;
|
|
2870
|
+
_iterator.e(err);
|
|
2900
2871
|
} finally {
|
|
2901
|
-
|
|
2902
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
2903
|
-
_iterator["return"]();
|
|
2904
|
-
}
|
|
2905
|
-
} finally {
|
|
2906
|
-
if (_didIteratorError) {
|
|
2907
|
-
throw _iteratorError;
|
|
2908
|
-
}
|
|
2909
|
-
}
|
|
2872
|
+
_iterator.f();
|
|
2910
2873
|
}
|
|
2911
2874
|
|
|
2912
2875
|
return config;
|
|
@@ -3053,12 +3016,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3053
3016
|
|
|
3054
3017
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3055
3018
|
|
|
3056
|
-
function
|
|
3019
|
+
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); }; }
|
|
3057
3020
|
|
|
3058
|
-
function
|
|
3021
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3059
3022
|
|
|
3060
3023
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3061
3024
|
|
|
3025
|
+
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; } }
|
|
3026
|
+
|
|
3027
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3028
|
+
|
|
3062
3029
|
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); }
|
|
3063
3030
|
|
|
3064
3031
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3067,14 +3034,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3067
3034
|
|
|
3068
3035
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3069
3036
|
|
|
3070
|
-
var Player =
|
|
3071
|
-
/*#__PURE__*/
|
|
3072
|
-
function (_Component) {
|
|
3037
|
+
var Player = /*#__PURE__*/function (_Component) {
|
|
3073
3038
|
_inherits(Player, _Component);
|
|
3074
3039
|
|
|
3075
|
-
|
|
3076
|
-
var _getPrototypeOf2;
|
|
3040
|
+
var _super = _createSuper(Player);
|
|
3077
3041
|
|
|
3042
|
+
function Player() {
|
|
3078
3043
|
var _this;
|
|
3079
3044
|
|
|
3080
3045
|
_classCallCheck(this, Player);
|
|
@@ -3083,7 +3048,7 @@ function (_Component) {
|
|
|
3083
3048
|
_args[_key] = arguments[_key];
|
|
3084
3049
|
}
|
|
3085
3050
|
|
|
3086
|
-
_this =
|
|
3051
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
3087
3052
|
|
|
3088
3053
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3089
3054
|
|
|
@@ -3408,7 +3373,7 @@ function (_Component) {
|
|
|
3408
3373
|
return null;
|
|
3409
3374
|
}
|
|
3410
3375
|
|
|
3411
|
-
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3376
|
+
return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
|
|
3412
3377
|
ref: this.ref,
|
|
3413
3378
|
onReady: this.handleReady,
|
|
3414
3379
|
onPlay: this.handlePlay,
|
|
@@ -3469,12 +3434,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3469
3434
|
|
|
3470
3435
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3471
3436
|
|
|
3472
|
-
function
|
|
3437
|
+
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); }; }
|
|
3473
3438
|
|
|
3474
|
-
function
|
|
3439
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3475
3440
|
|
|
3476
3441
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3477
3442
|
|
|
3443
|
+
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; } }
|
|
3444
|
+
|
|
3445
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3446
|
+
|
|
3478
3447
|
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); }
|
|
3479
3448
|
|
|
3480
3449
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3486,14 +3455,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3486
3455
|
function createSinglePlayer(activePlayer) {
|
|
3487
3456
|
var _class, _temp;
|
|
3488
3457
|
|
|
3489
|
-
return _temp = _class =
|
|
3490
|
-
/*#__PURE__*/
|
|
3491
|
-
function (_Component) {
|
|
3458
|
+
return _temp = _class = /*#__PURE__*/function (_Component) {
|
|
3492
3459
|
_inherits(SinglePlayer, _Component);
|
|
3493
3460
|
|
|
3494
|
-
|
|
3495
|
-
var _getPrototypeOf2;
|
|
3461
|
+
var _super = _createSuper(SinglePlayer);
|
|
3496
3462
|
|
|
3463
|
+
function SinglePlayer() {
|
|
3497
3464
|
var _this;
|
|
3498
3465
|
|
|
3499
3466
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3502,7 +3469,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3502
3469
|
args[_key] = arguments[_key];
|
|
3503
3470
|
}
|
|
3504
3471
|
|
|
3505
|
-
_this =
|
|
3472
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3506
3473
|
|
|
3507
3474
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3508
3475
|
|
|
@@ -3570,12 +3537,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3570
3537
|
height = _this$props.height,
|
|
3571
3538
|
Wrapper = _this$props.wrapper;
|
|
3572
3539
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3573
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
3540
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
3574
3541
|
style: _objectSpread({}, style, {
|
|
3575
3542
|
width: width,
|
|
3576
3543
|
height: height
|
|
3577
3544
|
})
|
|
3578
|
-
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3545
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3579
3546
|
ref: this.ref,
|
|
3580
3547
|
activePlayer: activePlayer,
|
|
3581
3548
|
config: this.config
|
|
@@ -3621,23 +3588,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3621
3588
|
|
|
3622
3589
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3623
3590
|
|
|
3624
|
-
function
|
|
3591
|
+
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); }; }
|
|
3625
3592
|
|
|
3626
|
-
function
|
|
3593
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3627
3594
|
|
|
3628
3595
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3629
3596
|
|
|
3597
|
+
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; } }
|
|
3598
|
+
|
|
3599
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3600
|
+
|
|
3630
3601
|
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); }
|
|
3631
3602
|
|
|
3632
3603
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3633
3604
|
|
|
3634
3605
|
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; }
|
|
3635
3606
|
|
|
3636
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3607
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3608
|
+
|
|
3609
|
+
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."); }
|
|
3610
|
+
|
|
3611
|
+
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); }
|
|
3637
3612
|
|
|
3638
|
-
function
|
|
3613
|
+
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; }
|
|
3639
3614
|
|
|
3640
|
-
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr)
|
|
3615
|
+
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; }
|
|
3641
3616
|
|
|
3642
3617
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3643
3618
|
|
|
@@ -3662,14 +3637,12 @@ function parsePlaylist(url) {
|
|
|
3662
3637
|
return {};
|
|
3663
3638
|
}
|
|
3664
3639
|
|
|
3665
|
-
var YouTube =
|
|
3666
|
-
/*#__PURE__*/
|
|
3667
|
-
function (_Component) {
|
|
3640
|
+
var YouTube = /*#__PURE__*/function (_Component) {
|
|
3668
3641
|
_inherits(YouTube, _Component);
|
|
3669
3642
|
|
|
3670
|
-
|
|
3671
|
-
var _getPrototypeOf2;
|
|
3643
|
+
var _super = _createSuper(YouTube);
|
|
3672
3644
|
|
|
3645
|
+
function YouTube() {
|
|
3673
3646
|
var _this;
|
|
3674
3647
|
|
|
3675
3648
|
_classCallCheck(this, YouTube);
|
|
@@ -3678,7 +3651,7 @@ function (_Component) {
|
|
|
3678
3651
|
args[_key] = arguments[_key];
|
|
3679
3652
|
}
|
|
3680
3653
|
|
|
3681
|
-
_this =
|
|
3654
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3682
3655
|
|
|
3683
3656
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3684
3657
|
|
|
@@ -3866,9 +3839,9 @@ function (_Component) {
|
|
|
3866
3839
|
height: '100%',
|
|
3867
3840
|
display: display
|
|
3868
3841
|
};
|
|
3869
|
-
return _react["default"].createElement("div", {
|
|
3842
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
3870
3843
|
style: style
|
|
3871
|
-
}, _react["default"].createElement("div", {
|
|
3844
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
3872
3845
|
ref: this.ref
|
|
3873
3846
|
}));
|
|
3874
3847
|
}
|
|
@@ -3924,12 +3897,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3924
3897
|
|
|
3925
3898
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3926
3899
|
|
|
3927
|
-
function
|
|
3900
|
+
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); }; }
|
|
3928
3901
|
|
|
3929
|
-
function
|
|
3902
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3930
3903
|
|
|
3931
3904
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3932
3905
|
|
|
3906
|
+
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; } }
|
|
3907
|
+
|
|
3908
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3909
|
+
|
|
3933
3910
|
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); }
|
|
3934
3911
|
|
|
3935
3912
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3938,16 +3915,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3938
3915
|
|
|
3939
3916
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
3940
3917
|
var SDK_GLOBAL = 'SC';
|
|
3941
|
-
var MATCH_URL = /(soundcloud\.com|snd\.sc)
|
|
3918
|
+
var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
3942
3919
|
|
|
3943
|
-
var SoundCloud =
|
|
3944
|
-
/*#__PURE__*/
|
|
3945
|
-
function (_Component) {
|
|
3920
|
+
var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
3946
3921
|
_inherits(SoundCloud, _Component);
|
|
3947
3922
|
|
|
3948
|
-
|
|
3949
|
-
var _getPrototypeOf2;
|
|
3923
|
+
var _super = _createSuper(SoundCloud);
|
|
3950
3924
|
|
|
3925
|
+
function SoundCloud() {
|
|
3951
3926
|
var _this;
|
|
3952
3927
|
|
|
3953
3928
|
_classCallCheck(this, SoundCloud);
|
|
@@ -3956,7 +3931,7 @@ function (_Component) {
|
|
|
3956
3931
|
args[_key] = arguments[_key];
|
|
3957
3932
|
}
|
|
3958
3933
|
|
|
3959
|
-
_this =
|
|
3934
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3960
3935
|
|
|
3961
3936
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3962
3937
|
|
|
@@ -4077,7 +4052,7 @@ function (_Component) {
|
|
|
4077
4052
|
height: '100%',
|
|
4078
4053
|
display: display
|
|
4079
4054
|
};
|
|
4080
|
-
return _react["default"].createElement("iframe", {
|
|
4055
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4081
4056
|
ref: this.ref,
|
|
4082
4057
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4083
4058
|
style: style,
|
|
@@ -4139,12 +4114,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4139
4114
|
|
|
4140
4115
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4141
4116
|
|
|
4142
|
-
function
|
|
4117
|
+
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); }; }
|
|
4143
4118
|
|
|
4144
|
-
function
|
|
4119
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4145
4120
|
|
|
4146
4121
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4147
4122
|
|
|
4123
|
+
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; } }
|
|
4124
|
+
|
|
4125
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4126
|
+
|
|
4148
4127
|
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); }
|
|
4149
4128
|
|
|
4150
4129
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4156,14 +4135,12 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4156
4135
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4157
4136
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4158
4137
|
|
|
4159
|
-
var Vimeo =
|
|
4160
|
-
/*#__PURE__*/
|
|
4161
|
-
function (_Component) {
|
|
4138
|
+
var Vimeo = /*#__PURE__*/function (_Component) {
|
|
4162
4139
|
_inherits(Vimeo, _Component);
|
|
4163
4140
|
|
|
4164
|
-
|
|
4165
|
-
var _getPrototypeOf2;
|
|
4141
|
+
var _super = _createSuper(Vimeo);
|
|
4166
4142
|
|
|
4143
|
+
function Vimeo() {
|
|
4167
4144
|
var _this;
|
|
4168
4145
|
|
|
4169
4146
|
_classCallCheck(this, Vimeo);
|
|
@@ -4172,7 +4149,7 @@ function (_Component) {
|
|
|
4172
4149
|
args[_key] = arguments[_key];
|
|
4173
4150
|
}
|
|
4174
4151
|
|
|
4175
|
-
_this =
|
|
4152
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4176
4153
|
|
|
4177
4154
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4178
4155
|
|
|
@@ -4329,7 +4306,7 @@ function (_Component) {
|
|
|
4329
4306
|
overflow: 'hidden',
|
|
4330
4307
|
display: display
|
|
4331
4308
|
};
|
|
4332
|
-
return _react["default"].createElement("div", {
|
|
4309
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4333
4310
|
key: this.props.url,
|
|
4334
4311
|
ref: this.ref,
|
|
4335
4312
|
style: style
|
|
@@ -4389,12 +4366,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4389
4366
|
|
|
4390
4367
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4391
4368
|
|
|
4392
|
-
function
|
|
4369
|
+
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); }; }
|
|
4393
4370
|
|
|
4394
|
-
function
|
|
4371
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4395
4372
|
|
|
4396
4373
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4397
4374
|
|
|
4375
|
+
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; } }
|
|
4376
|
+
|
|
4377
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4378
|
+
|
|
4398
4379
|
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); }
|
|
4399
4380
|
|
|
4400
4381
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4407,14 +4388,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4407
4388
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4408
4389
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4409
4390
|
|
|
4410
|
-
var Facebook =
|
|
4411
|
-
/*#__PURE__*/
|
|
4412
|
-
function (_Component) {
|
|
4391
|
+
var Facebook = /*#__PURE__*/function (_Component) {
|
|
4413
4392
|
_inherits(Facebook, _Component);
|
|
4414
4393
|
|
|
4415
|
-
|
|
4416
|
-
var _getPrototypeOf2;
|
|
4394
|
+
var _super = _createSuper(Facebook);
|
|
4417
4395
|
|
|
4396
|
+
function Facebook() {
|
|
4418
4397
|
var _this;
|
|
4419
4398
|
|
|
4420
4399
|
_classCallCheck(this, Facebook);
|
|
@@ -4423,7 +4402,7 @@ function (_Component) {
|
|
|
4423
4402
|
args[_key] = arguments[_key];
|
|
4424
4403
|
}
|
|
4425
4404
|
|
|
4426
|
-
_this =
|
|
4405
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4427
4406
|
|
|
4428
4407
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4429
4408
|
|
|
@@ -4539,7 +4518,7 @@ function (_Component) {
|
|
|
4539
4518
|
width: '100%',
|
|
4540
4519
|
height: '100%'
|
|
4541
4520
|
};
|
|
4542
|
-
return _react["default"].createElement("div", {
|
|
4521
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4543
4522
|
style: style,
|
|
4544
4523
|
id: this.playerID,
|
|
4545
4524
|
className: "fb-video",
|
|
@@ -4599,12 +4578,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4599
4578
|
|
|
4600
4579
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4601
4580
|
|
|
4602
|
-
function
|
|
4581
|
+
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); }; }
|
|
4603
4582
|
|
|
4604
|
-
function
|
|
4583
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4605
4584
|
|
|
4606
4585
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4607
4586
|
|
|
4587
|
+
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; } }
|
|
4588
|
+
|
|
4589
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4590
|
+
|
|
4608
4591
|
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); }
|
|
4609
4592
|
|
|
4610
4593
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4615,14 +4598,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4615
4598
|
var SDK_GLOBAL = 'playerjs';
|
|
4616
4599
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4617
4600
|
|
|
4618
|
-
var Streamable =
|
|
4619
|
-
/*#__PURE__*/
|
|
4620
|
-
function (_Component) {
|
|
4601
|
+
var Streamable = /*#__PURE__*/function (_Component) {
|
|
4621
4602
|
_inherits(Streamable, _Component);
|
|
4622
4603
|
|
|
4623
|
-
|
|
4624
|
-
var _getPrototypeOf2;
|
|
4604
|
+
var _super = _createSuper(Streamable);
|
|
4625
4605
|
|
|
4606
|
+
function Streamable() {
|
|
4626
4607
|
var _this;
|
|
4627
4608
|
|
|
4628
4609
|
_classCallCheck(this, Streamable);
|
|
@@ -4631,7 +4612,7 @@ function (_Component) {
|
|
|
4631
4612
|
args[_key] = arguments[_key];
|
|
4632
4613
|
}
|
|
4633
4614
|
|
|
4634
|
-
_this =
|
|
4615
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4635
4616
|
|
|
4636
4617
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4637
4618
|
|
|
@@ -4751,7 +4732,7 @@ function (_Component) {
|
|
|
4751
4732
|
width: '100%',
|
|
4752
4733
|
height: '100%'
|
|
4753
4734
|
};
|
|
4754
|
-
return _react["default"].createElement("iframe", {
|
|
4735
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4755
4736
|
ref: this.ref,
|
|
4756
4737
|
src: "https://streamable.com/o/".concat(id),
|
|
4757
4738
|
frameBorder: "0",
|
|
@@ -4812,12 +4793,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4812
4793
|
|
|
4813
4794
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4814
4795
|
|
|
4815
|
-
function
|
|
4796
|
+
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); }; }
|
|
4816
4797
|
|
|
4817
|
-
function
|
|
4798
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4818
4799
|
|
|
4819
4800
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4820
4801
|
|
|
4802
|
+
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; } }
|
|
4803
|
+
|
|
4804
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4805
|
+
|
|
4821
4806
|
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); }
|
|
4822
4807
|
|
|
4823
4808
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4828,26 +4813,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4828
4813
|
var SDK_GLOBAL = 'Wistia';
|
|
4829
4814
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4830
4815
|
|
|
4831
|
-
var Wistia =
|
|
4832
|
-
/*#__PURE__*/
|
|
4833
|
-
function (_Component) {
|
|
4816
|
+
var Wistia = /*#__PURE__*/function (_Component) {
|
|
4834
4817
|
_inherits(Wistia, _Component);
|
|
4835
4818
|
|
|
4836
|
-
|
|
4837
|
-
var _getPrototypeOf2;
|
|
4819
|
+
var _super = _createSuper(Wistia);
|
|
4838
4820
|
|
|
4821
|
+
function Wistia() {
|
|
4839
4822
|
var _this;
|
|
4840
4823
|
|
|
4841
4824
|
_classCallCheck(this, Wistia);
|
|
4842
4825
|
|
|
4843
|
-
for (var _len = arguments.length,
|
|
4844
|
-
|
|
4826
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4827
|
+
_args[_key] = arguments[_key];
|
|
4845
4828
|
}
|
|
4846
4829
|
|
|
4847
|
-
_this =
|
|
4830
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
4848
4831
|
|
|
4849
4832
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4850
4833
|
|
|
4834
|
+
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4835
|
+
var _this$props;
|
|
4836
|
+
|
|
4837
|
+
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4838
|
+
});
|
|
4839
|
+
|
|
4840
|
+
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4841
|
+
var _this$props2;
|
|
4842
|
+
|
|
4843
|
+
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4844
|
+
});
|
|
4845
|
+
|
|
4846
|
+
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
4847
|
+
var _this$props3;
|
|
4848
|
+
|
|
4849
|
+
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
4850
|
+
});
|
|
4851
|
+
|
|
4852
|
+
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
4853
|
+
var _this$props4;
|
|
4854
|
+
|
|
4855
|
+
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
4856
|
+
});
|
|
4857
|
+
|
|
4851
4858
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
4852
4859
|
_this.callPlayer('mute');
|
|
4853
4860
|
});
|
|
@@ -4869,17 +4876,13 @@ function (_Component) {
|
|
|
4869
4876
|
value: function load(url) {
|
|
4870
4877
|
var _this2 = this;
|
|
4871
4878
|
|
|
4872
|
-
var _this$
|
|
4873
|
-
playing = _this$
|
|
4874
|
-
muted = _this$
|
|
4875
|
-
controls = _this$
|
|
4876
|
-
_onReady = _this$
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
onSeek = _this$props.onSeek,
|
|
4880
|
-
onEnded = _this$props.onEnded,
|
|
4881
|
-
config = _this$props.config,
|
|
4882
|
-
onError = _this$props.onError;
|
|
4879
|
+
var _this$props5 = this.props,
|
|
4880
|
+
playing = _this$props5.playing,
|
|
4881
|
+
muted = _this$props5.muted,
|
|
4882
|
+
controls = _this$props5.controls,
|
|
4883
|
+
_onReady = _this$props5.onReady,
|
|
4884
|
+
config = _this$props5.config,
|
|
4885
|
+
onError = _this$props5.onError;
|
|
4883
4886
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
4884
4887
|
window._wq = window._wq || [];
|
|
4885
4888
|
|
|
@@ -4896,19 +4899,28 @@ function (_Component) {
|
|
|
4896
4899
|
|
|
4897
4900
|
_this2.unbind();
|
|
4898
4901
|
|
|
4899
|
-
_this2.player.bind('play', onPlay);
|
|
4902
|
+
_this2.player.bind('play', _this2.onPlay);
|
|
4900
4903
|
|
|
4901
|
-
_this2.player.bind('pause', onPause);
|
|
4904
|
+
_this2.player.bind('pause', _this2.onPause);
|
|
4902
4905
|
|
|
4903
|
-
_this2.player.bind('seek', onSeek);
|
|
4906
|
+
_this2.player.bind('seek', _this2.onSeek);
|
|
4904
4907
|
|
|
4905
|
-
_this2.player.bind('end', onEnded);
|
|
4908
|
+
_this2.player.bind('end', _this2.onEnded);
|
|
4906
4909
|
|
|
4907
4910
|
_onReady();
|
|
4908
4911
|
}
|
|
4909
4912
|
});
|
|
4910
4913
|
}, onError);
|
|
4911
4914
|
}
|
|
4915
|
+
}, {
|
|
4916
|
+
key: "unbind",
|
|
4917
|
+
value: function unbind() {
|
|
4918
|
+
this.player.unbind('play', this.onPlay);
|
|
4919
|
+
this.player.unbind('pause', this.onPause);
|
|
4920
|
+
this.player.unbind('seek', this.onSeek);
|
|
4921
|
+
this.player.unbind('end', this.onEnded);
|
|
4922
|
+
} // Proxy methods to prevent listener leaks
|
|
4923
|
+
|
|
4912
4924
|
}, {
|
|
4913
4925
|
key: "play",
|
|
4914
4926
|
value: function play() {
|
|
@@ -4919,19 +4931,6 @@ function (_Component) {
|
|
|
4919
4931
|
value: function pause() {
|
|
4920
4932
|
this.callPlayer('pause');
|
|
4921
4933
|
}
|
|
4922
|
-
}, {
|
|
4923
|
-
key: "unbind",
|
|
4924
|
-
value: function unbind() {
|
|
4925
|
-
var _this$props2 = this.props,
|
|
4926
|
-
onPlay = _this$props2.onPlay,
|
|
4927
|
-
onPause = _this$props2.onPause,
|
|
4928
|
-
onSeek = _this$props2.onSeek,
|
|
4929
|
-
onEnded = _this$props2.onEnded;
|
|
4930
|
-
this.player.unbind('play', onPlay);
|
|
4931
|
-
this.player.unbind('pause', onPause);
|
|
4932
|
-
this.player.unbind('seek', onSeek);
|
|
4933
|
-
this.player.unbind('end', onEnded);
|
|
4934
|
-
}
|
|
4935
4934
|
}, {
|
|
4936
4935
|
key: "stop",
|
|
4937
4936
|
value: function stop() {
|
|
@@ -4977,7 +4976,7 @@ function (_Component) {
|
|
|
4977
4976
|
width: '100%',
|
|
4978
4977
|
height: '100%'
|
|
4979
4978
|
};
|
|
4980
|
-
return _react["default"].createElement("div", {
|
|
4979
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4981
4980
|
key: id,
|
|
4982
4981
|
className: className,
|
|
4983
4982
|
style: style
|
|
@@ -5037,12 +5036,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5037
5036
|
|
|
5038
5037
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5039
5038
|
|
|
5040
|
-
function
|
|
5039
|
+
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); }; }
|
|
5041
5040
|
|
|
5042
|
-
function
|
|
5041
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5043
5042
|
|
|
5044
5043
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5045
5044
|
|
|
5045
|
+
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; } }
|
|
5046
|
+
|
|
5047
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5048
|
+
|
|
5046
5049
|
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); }
|
|
5047
5050
|
|
|
5048
5051
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5055,14 +5058,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5055
5058
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5056
5059
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5057
5060
|
|
|
5058
|
-
var Twitch =
|
|
5059
|
-
/*#__PURE__*/
|
|
5060
|
-
function (_Component) {
|
|
5061
|
+
var Twitch = /*#__PURE__*/function (_Component) {
|
|
5061
5062
|
_inherits(Twitch, _Component);
|
|
5062
5063
|
|
|
5063
|
-
|
|
5064
|
-
var _getPrototypeOf2;
|
|
5064
|
+
var _super = _createSuper(Twitch);
|
|
5065
5065
|
|
|
5066
|
+
function Twitch() {
|
|
5066
5067
|
var _this;
|
|
5067
5068
|
|
|
5068
5069
|
_classCallCheck(this, Twitch);
|
|
@@ -5071,7 +5072,7 @@ function (_Component) {
|
|
|
5071
5072
|
args[_key] = arguments[_key];
|
|
5072
5073
|
}
|
|
5073
5074
|
|
|
5074
|
-
_this =
|
|
5075
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5075
5076
|
|
|
5076
5077
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5077
5078
|
|
|
@@ -5192,7 +5193,7 @@ function (_Component) {
|
|
|
5192
5193
|
width: '100%',
|
|
5193
5194
|
height: '100%'
|
|
5194
5195
|
};
|
|
5195
|
-
return _react["default"].createElement("div", {
|
|
5196
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5196
5197
|
style: style,
|
|
5197
5198
|
id: this.playerID
|
|
5198
5199
|
});
|
|
@@ -5245,11 +5246,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5245
5246
|
|
|
5246
5247
|
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; }
|
|
5247
5248
|
|
|
5248
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5249
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5250
|
+
|
|
5251
|
+
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."); }
|
|
5252
|
+
|
|
5253
|
+
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); }
|
|
5249
5254
|
|
|
5250
|
-
function
|
|
5255
|
+
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; }
|
|
5251
5256
|
|
|
5252
|
-
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr)
|
|
5257
|
+
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; }
|
|
5253
5258
|
|
|
5254
5259
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5255
5260
|
|
|
@@ -5259,12 +5264,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5259
5264
|
|
|
5260
5265
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5261
5266
|
|
|
5262
|
-
function
|
|
5267
|
+
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); }; }
|
|
5263
5268
|
|
|
5264
|
-
function
|
|
5269
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5265
5270
|
|
|
5266
5271
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5267
5272
|
|
|
5273
|
+
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; } }
|
|
5274
|
+
|
|
5275
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5276
|
+
|
|
5268
5277
|
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); }
|
|
5269
5278
|
|
|
5270
5279
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5276,14 +5285,12 @@ var SDK_GLOBAL = 'DM';
|
|
|
5276
5285
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5277
5286
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5278
5287
|
|
|
5279
|
-
var DailyMotion =
|
|
5280
|
-
/*#__PURE__*/
|
|
5281
|
-
function (_Component) {
|
|
5288
|
+
var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
5282
5289
|
_inherits(DailyMotion, _Component);
|
|
5283
5290
|
|
|
5284
|
-
|
|
5285
|
-
var _getPrototypeOf2;
|
|
5291
|
+
var _super = _createSuper(DailyMotion);
|
|
5286
5292
|
|
|
5293
|
+
function DailyMotion() {
|
|
5287
5294
|
var _this;
|
|
5288
5295
|
|
|
5289
5296
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5292,7 +5299,7 @@ function (_Component) {
|
|
|
5292
5299
|
args[_key] = arguments[_key];
|
|
5293
5300
|
}
|
|
5294
5301
|
|
|
5295
|
-
_this =
|
|
5302
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5296
5303
|
|
|
5297
5304
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5298
5305
|
|
|
@@ -5421,9 +5428,9 @@ function (_Component) {
|
|
|
5421
5428
|
height: '100%',
|
|
5422
5429
|
display: display
|
|
5423
5430
|
};
|
|
5424
|
-
return _react["default"].createElement("div", {
|
|
5431
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5425
5432
|
style: style
|
|
5426
|
-
}, _react["default"].createElement("div", {
|
|
5433
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
5427
5434
|
ref: this.ref
|
|
5428
5435
|
}));
|
|
5429
5436
|
}
|
|
@@ -5481,12 +5488,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5481
5488
|
|
|
5482
5489
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5483
5490
|
|
|
5484
|
-
function
|
|
5491
|
+
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); }; }
|
|
5485
5492
|
|
|
5486
|
-
function
|
|
5493
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5487
5494
|
|
|
5488
5495
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5489
5496
|
|
|
5497
|
+
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; } }
|
|
5498
|
+
|
|
5499
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5500
|
+
|
|
5490
5501
|
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); }
|
|
5491
5502
|
|
|
5492
5503
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5497,14 +5508,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5497
5508
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5498
5509
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5499
5510
|
|
|
5500
|
-
var Mixcloud =
|
|
5501
|
-
/*#__PURE__*/
|
|
5502
|
-
function (_Component) {
|
|
5511
|
+
var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
5503
5512
|
_inherits(Mixcloud, _Component);
|
|
5504
5513
|
|
|
5505
|
-
|
|
5506
|
-
var _getPrototypeOf2;
|
|
5514
|
+
var _super = _createSuper(Mixcloud);
|
|
5507
5515
|
|
|
5516
|
+
function Mixcloud() {
|
|
5508
5517
|
var _this;
|
|
5509
5518
|
|
|
5510
5519
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5513,7 +5522,7 @@ function (_Component) {
|
|
|
5513
5522
|
args[_key] = arguments[_key];
|
|
5514
5523
|
}
|
|
5515
5524
|
|
|
5516
|
-
_this =
|
|
5525
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5517
5526
|
|
|
5518
5527
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5519
5528
|
|
|
@@ -5616,7 +5625,7 @@ function (_Component) {
|
|
|
5616
5625
|
})); // We have to give the iframe a key here to prevent a
|
|
5617
5626
|
// weird dialog appearing when loading a new track
|
|
5618
5627
|
|
|
5619
|
-
return _react["default"].createElement("iframe", {
|
|
5628
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
5620
5629
|
key: id,
|
|
5621
5630
|
ref: this.ref,
|
|
5622
5631
|
style: style,
|
|
@@ -5676,23 +5685,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5676
5685
|
|
|
5677
5686
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5678
5687
|
|
|
5679
|
-
function
|
|
5688
|
+
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); }; }
|
|
5680
5689
|
|
|
5681
|
-
function
|
|
5690
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5682
5691
|
|
|
5683
5692
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5684
5693
|
|
|
5694
|
+
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; } }
|
|
5695
|
+
|
|
5696
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5697
|
+
|
|
5685
5698
|
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); }
|
|
5686
5699
|
|
|
5687
5700
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5688
5701
|
|
|
5689
5702
|
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; }
|
|
5690
5703
|
|
|
5704
|
+
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; } } }; }
|
|
5705
|
+
|
|
5706
|
+
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); }
|
|
5707
|
+
|
|
5708
|
+
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; }
|
|
5709
|
+
|
|
5691
5710
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5692
5711
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5693
5712
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5694
5713
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5695
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5714
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
|
|
5696
5715
|
var HLS_GLOBAL = 'Hls';
|
|
5697
5716
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5698
5717
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5701,12 +5720,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5701
5720
|
|
|
5702
5721
|
function canPlay(url) {
|
|
5703
5722
|
if (url instanceof Array) {
|
|
5704
|
-
var
|
|
5705
|
-
|
|
5706
|
-
var _iteratorError = undefined;
|
|
5723
|
+
var _iterator = _createForOfIteratorHelper(url),
|
|
5724
|
+
_step;
|
|
5707
5725
|
|
|
5708
5726
|
try {
|
|
5709
|
-
for (
|
|
5727
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5710
5728
|
var item = _step.value;
|
|
5711
5729
|
|
|
5712
5730
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5718,18 +5736,9 @@ function canPlay(url) {
|
|
|
5718
5736
|
}
|
|
5719
5737
|
}
|
|
5720
5738
|
} catch (err) {
|
|
5721
|
-
|
|
5722
|
-
_iteratorError = err;
|
|
5739
|
+
_iterator.e(err);
|
|
5723
5740
|
} finally {
|
|
5724
|
-
|
|
5725
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5726
|
-
_iterator["return"]();
|
|
5727
|
-
}
|
|
5728
|
-
} finally {
|
|
5729
|
-
if (_didIteratorError) {
|
|
5730
|
-
throw _iteratorError;
|
|
5731
|
-
}
|
|
5732
|
-
}
|
|
5741
|
+
_iterator.f();
|
|
5733
5742
|
}
|
|
5734
5743
|
|
|
5735
5744
|
return false;
|
|
@@ -5753,14 +5762,12 @@ function canEnablePIP(url) {
|
|
|
5753
5762
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5754
5763
|
}
|
|
5755
5764
|
|
|
5756
|
-
var FilePlayer =
|
|
5757
|
-
/*#__PURE__*/
|
|
5758
|
-
function (_Component) {
|
|
5765
|
+
var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
5759
5766
|
_inherits(FilePlayer, _Component);
|
|
5760
5767
|
|
|
5761
|
-
|
|
5762
|
-
var _getPrototypeOf2;
|
|
5768
|
+
var _super = _createSuper(FilePlayer);
|
|
5763
5769
|
|
|
5770
|
+
function FilePlayer() {
|
|
5764
5771
|
var _this;
|
|
5765
5772
|
|
|
5766
5773
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5769,7 +5776,7 @@ function (_Component) {
|
|
|
5769
5776
|
_args[_key] = arguments[_key];
|
|
5770
5777
|
}
|
|
5771
5778
|
|
|
5772
|
-
_this =
|
|
5779
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5773
5780
|
|
|
5774
5781
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5775
5782
|
var _this$props;
|
|
@@ -5856,19 +5863,19 @@ function (_Component) {
|
|
|
5856
5863
|
|
|
5857
5864
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
5858
5865
|
if (typeof source === 'string') {
|
|
5859
|
-
return _react["default"].createElement("source", {
|
|
5866
|
+
return /*#__PURE__*/_react["default"].createElement("source", {
|
|
5860
5867
|
key: index,
|
|
5861
5868
|
src: source
|
|
5862
5869
|
});
|
|
5863
5870
|
}
|
|
5864
5871
|
|
|
5865
|
-
return _react["default"].createElement("source", _extends({
|
|
5872
|
+
return /*#__PURE__*/_react["default"].createElement("source", _extends({
|
|
5866
5873
|
key: index
|
|
5867
5874
|
}, source));
|
|
5868
5875
|
});
|
|
5869
5876
|
|
|
5870
5877
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
5871
|
-
return _react["default"].createElement("track", _extends({
|
|
5878
|
+
return /*#__PURE__*/_react["default"].createElement("track", _extends({
|
|
5872
5879
|
key: index
|
|
5873
5880
|
}, track));
|
|
5874
5881
|
});
|
|
@@ -5906,6 +5913,10 @@ function (_Component) {
|
|
|
5906
5913
|
key: "componentWillUnmount",
|
|
5907
5914
|
value: function componentWillUnmount() {
|
|
5908
5915
|
this.removeListeners(this.player);
|
|
5916
|
+
|
|
5917
|
+
if (this.hls) {
|
|
5918
|
+
this.hls.destroy();
|
|
5919
|
+
}
|
|
5909
5920
|
}
|
|
5910
5921
|
}, {
|
|
5911
5922
|
key: "addListeners",
|
|
@@ -6036,10 +6047,6 @@ function (_Component) {
|
|
|
6036
6047
|
value: function stop() {
|
|
6037
6048
|
this.player.removeAttribute('src');
|
|
6038
6049
|
|
|
6039
|
-
if (this.hls) {
|
|
6040
|
-
this.hls.destroy();
|
|
6041
|
-
}
|
|
6042
|
-
|
|
6043
6050
|
if (this.dash) {
|
|
6044
6051
|
this.dash.reset();
|
|
6045
6052
|
}
|
|
@@ -6151,7 +6158,7 @@ function (_Component) {
|
|
|
6151
6158
|
width: width === 'auto' ? width : '100%',
|
|
6152
6159
|
height: height === 'auto' ? height : '100%'
|
|
6153
6160
|
};
|
|
6154
|
-
return _react["default"].createElement(Element, _extends({
|
|
6161
|
+
return /*#__PURE__*/_react["default"].createElement(Element, _extends({
|
|
6155
6162
|
ref: this.ref,
|
|
6156
6163
|
src: this.getSource(url),
|
|
6157
6164
|
style: style,
|
|
@@ -6241,12 +6248,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6241
6248
|
|
|
6242
6249
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6243
6250
|
|
|
6244
|
-
function
|
|
6251
|
+
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); }; }
|
|
6245
6252
|
|
|
6246
|
-
function
|
|
6253
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6247
6254
|
|
|
6248
6255
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6249
6256
|
|
|
6257
|
+
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; } }
|
|
6258
|
+
|
|
6259
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6260
|
+
|
|
6250
6261
|
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); }
|
|
6251
6262
|
|
|
6252
6263
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6255,14 +6266,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6255
6266
|
|
|
6256
6267
|
var ICON_SIZE = '64px';
|
|
6257
6268
|
|
|
6258
|
-
var Preview =
|
|
6259
|
-
/*#__PURE__*/
|
|
6260
|
-
function (_Component) {
|
|
6269
|
+
var Preview = /*#__PURE__*/function (_Component) {
|
|
6261
6270
|
_inherits(Preview, _Component);
|
|
6262
6271
|
|
|
6263
|
-
|
|
6264
|
-
var _getPrototypeOf2;
|
|
6272
|
+
var _super = _createSuper(Preview);
|
|
6265
6273
|
|
|
6274
|
+
function Preview() {
|
|
6266
6275
|
var _this;
|
|
6267
6276
|
|
|
6268
6277
|
_classCallCheck(this, Preview);
|
|
@@ -6271,7 +6280,7 @@ function (_Component) {
|
|
|
6271
6280
|
args[_key] = arguments[_key];
|
|
6272
6281
|
}
|
|
6273
6282
|
|
|
6274
|
-
_this =
|
|
6283
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6275
6284
|
|
|
6276
6285
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6277
6286
|
|
|
@@ -6369,15 +6378,15 @@ function (_Component) {
|
|
|
6369
6378
|
}
|
|
6370
6379
|
};
|
|
6371
6380
|
|
|
6372
|
-
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6381
|
+
var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
|
|
6373
6382
|
style: styles.shadow,
|
|
6374
6383
|
className: "react-player__shadow"
|
|
6375
|
-
}, _react["default"].createElement("div", {
|
|
6384
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
6376
6385
|
style: styles.playIcon,
|
|
6377
6386
|
className: "react-player__play-icon"
|
|
6378
6387
|
}));
|
|
6379
6388
|
|
|
6380
|
-
return _react["default"].createElement("div", {
|
|
6389
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
6381
6390
|
style: styles.preview,
|
|
6382
6391
|
className: "react-player__preview",
|
|
6383
6392
|
onClick: onClick
|
|
@@ -6414,6 +6423,12 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6414
6423
|
|
|
6415
6424
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6416
6425
|
|
|
6426
|
+
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; } } }; }
|
|
6427
|
+
|
|
6428
|
+
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); }
|
|
6429
|
+
|
|
6430
|
+
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; }
|
|
6431
|
+
|
|
6417
6432
|
var PRELOAD_PLAYERS = [{
|
|
6418
6433
|
Player: YouTube_1.YouTube,
|
|
6419
6434
|
configKey: 'youtube',
|
|
@@ -6434,16 +6449,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6434
6449
|
|
|
6435
6450
|
function renderPreloadPlayers(url, controls, config) {
|
|
6436
6451
|
var players = [];
|
|
6437
|
-
|
|
6438
|
-
var
|
|
6439
|
-
|
|
6452
|
+
|
|
6453
|
+
var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
|
|
6454
|
+
_step;
|
|
6440
6455
|
|
|
6441
6456
|
try {
|
|
6442
|
-
for (
|
|
6457
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6443
6458
|
var player = _step.value;
|
|
6444
6459
|
|
|
6445
6460
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6446
|
-
players.push(_react["default"].createElement(_Player["default"], {
|
|
6461
|
+
players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
|
|
6447
6462
|
key: player.Player.displayName,
|
|
6448
6463
|
activePlayer: player.Player,
|
|
6449
6464
|
url: player.url,
|
|
@@ -6455,18 +6470,9 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6455
6470
|
}
|
|
6456
6471
|
}
|
|
6457
6472
|
} catch (err) {
|
|
6458
|
-
|
|
6459
|
-
_iteratorError = err;
|
|
6473
|
+
_iterator.e(err);
|
|
6460
6474
|
} finally {
|
|
6461
|
-
|
|
6462
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6463
|
-
_iterator["return"]();
|
|
6464
|
-
}
|
|
6465
|
-
} finally {
|
|
6466
|
-
if (_didIteratorError) {
|
|
6467
|
-
throw _iteratorError;
|
|
6468
|
-
}
|
|
6469
|
-
}
|
|
6475
|
+
_iterator.f();
|
|
6470
6476
|
}
|
|
6471
6477
|
|
|
6472
6478
|
return players;
|
|
@@ -6590,13 +6596,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6590
6596
|
|
|
6591
6597
|
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); }
|
|
6592
6598
|
|
|
6593
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6599
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6600
|
+
|
|
6601
|
+
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."); }
|
|
6602
|
+
|
|
6603
|
+
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); }
|
|
6594
6604
|
|
|
6595
|
-
function
|
|
6605
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
6596
6606
|
|
|
6597
|
-
function
|
|
6607
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6598
6608
|
|
|
6599
|
-
function
|
|
6609
|
+
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; }
|
|
6600
6610
|
|
|
6601
6611
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6602
6612
|
|
|
@@ -6604,12 +6614,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6604
6614
|
|
|
6605
6615
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6606
6616
|
|
|
6607
|
-
function
|
|
6617
|
+
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); }; }
|
|
6608
6618
|
|
|
6609
|
-
function
|
|
6619
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6610
6620
|
|
|
6611
6621
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6612
6622
|
|
|
6623
|
+
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; } }
|
|
6624
|
+
|
|
6625
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6626
|
+
|
|
6613
6627
|
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); }
|
|
6614
6628
|
|
|
6615
6629
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6619,14 +6633,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6619
6633
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6620
6634
|
var customPlayers = [];
|
|
6621
6635
|
|
|
6622
|
-
var ReactPlayer =
|
|
6623
|
-
/*#__PURE__*/
|
|
6624
|
-
function (_Component) {
|
|
6636
|
+
var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
6625
6637
|
_inherits(ReactPlayer, _Component);
|
|
6626
6638
|
|
|
6627
|
-
|
|
6628
|
-
var _getPrototypeOf2;
|
|
6639
|
+
var _super = _createSuper(ReactPlayer);
|
|
6629
6640
|
|
|
6641
|
+
function ReactPlayer() {
|
|
6630
6642
|
var _this;
|
|
6631
6643
|
|
|
6632
6644
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6635,7 +6647,7 @@ function (_Component) {
|
|
|
6635
6647
|
args[_key] = arguments[_key];
|
|
6636
6648
|
}
|
|
6637
6649
|
|
|
6638
|
-
_this =
|
|
6650
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6639
6651
|
|
|
6640
6652
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6641
6653
|
|
|
@@ -6746,7 +6758,7 @@ function (_Component) {
|
|
|
6746
6758
|
key: "renderActivePlayer",
|
|
6747
6759
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6748
6760
|
if (!url) return null;
|
|
6749
|
-
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6761
|
+
return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6750
6762
|
key: activePlayer.displayName,
|
|
6751
6763
|
ref: this.activePlayerRef,
|
|
6752
6764
|
config: this.config,
|
|
@@ -6783,14 +6795,14 @@ function (_Component) {
|
|
|
6783
6795
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6784
6796
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6785
6797
|
|
|
6786
|
-
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6798
|
+
var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
|
|
6787
6799
|
url: url,
|
|
6788
6800
|
light: light,
|
|
6789
6801
|
playIcon: playIcon,
|
|
6790
6802
|
onClick: this.handleClickPreview
|
|
6791
6803
|
});
|
|
6792
6804
|
|
|
6793
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
6805
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
6794
6806
|
ref: this.wrapperRef,
|
|
6795
6807
|
style: _objectSpread({}, style, {
|
|
6796
6808
|
width: width,
|
|
@@ -7302,7 +7314,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7302
7314
|
{ className: 'mb-3' },
|
|
7303
7315
|
nodes.videos[series - 1].title
|
|
7304
7316
|
),
|
|
7305
|
-
nodes.videos[series - 1] && nodes.videos[series - 1].text && React__default.createElement(BlockContent, _extends
|
|
7317
|
+
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()))
|
|
7306
7318
|
),
|
|
7307
7319
|
React__default.createElement(
|
|
7308
7320
|
'style',
|
|
@@ -7732,7 +7744,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
7732
7744
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
7733
7745
|
React__default.createElement(
|
|
7734
7746
|
'a',
|
|
7735
|
-
_extends
|
|
7747
|
+
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
7736
7748
|
React__default.createElement(
|
|
7737
7749
|
'div',
|
|
7738
7750
|
{ className: 'multi-figure-image-container' },
|
|
@@ -7777,7 +7789,7 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
7777
7789
|
};
|
|
7778
7790
|
|
|
7779
7791
|
var Figure = dynamic(function () {
|
|
7780
|
-
return import('./Figure-
|
|
7792
|
+
return import('./Figure-23e3ecc0.js');
|
|
7781
7793
|
}, { ssr: false });
|
|
7782
7794
|
|
|
7783
7795
|
var ScrollToElement = function ScrollToElement(elementId) {
|