@mjhls/mjh-framework 1.0.691-beta.4 → 1.0.691-beta.6
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/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +2 -2
- package/dist/cjs/AD300x250x600.js +2 -2
- package/dist/cjs/AD728x90.js +2 -2
- package/dist/cjs/ADFloatingFooter.js +2 -2
- package/dist/cjs/ADGutter.js +3 -3
- package/dist/cjs/{ADInfeed-24664851.js → ADInfeed-fd8c792f.js} +1 -1
- package/dist/cjs/ADSkyscraper.js +3 -3
- package/dist/cjs/ADSponsoredResources.js +6 -4
- package/dist/cjs/ADWebcast.js +3 -3
- package/dist/cjs/ADWelcome.js +2 -2
- package/dist/cjs/{ADlgInfeed-c417a192.js → ADlgInfeed-40259fe0.js} +1 -1
- package/dist/cjs/AdSlot.js +7 -12
- package/dist/cjs/AdSlotsProvider.js +7 -4
- package/dist/cjs/ArticleCarousel.js +1 -1
- package/dist/cjs/ArticleSeriesListing.js +2 -2
- package/dist/cjs/Auth.js +5 -5
- package/dist/cjs/{BlockContent-091a991f.js → BlockContent-80b15fac.js} +1 -1
- package/dist/cjs/BrowseVideosListing.js +1 -1
- package/dist/cjs/CMEDeck.js +2 -2
- package/dist/cjs/Column3.js +2 -2
- package/dist/cjs/ConferenceArticleCard.js +1 -1
- package/dist/cjs/DeckContent.js +6 -5
- package/dist/cjs/DeckQueue.js +3 -3
- package/dist/cjs/{Dfp-f6a18ed2.js → Dfp-390337bf.js} +1 -1
- package/dist/cjs/EventsDeck.js +1 -1
- package/dist/cjs/ExternalResources.js +5 -5
- package/dist/cjs/Feature.js +2 -2
- package/dist/cjs/ForbesHero.js +1 -1
- package/dist/cjs/GridContent.js +10 -8
- package/dist/cjs/GridHero.js +1 -1
- package/dist/cjs/GroupDeck.js +1 -1
- package/dist/cjs/HamMagazine.js +2 -2
- package/dist/cjs/Hero.js +1 -1
- package/dist/cjs/HorizontalHero.js +1 -1
- package/dist/cjs/IssueContentDeck.js +1 -1
- package/dist/cjs/IssueDeck.js +1 -1
- package/dist/cjs/IssueLanding.js +6 -6
- package/dist/cjs/LeftNav.js +2 -2
- package/dist/cjs/MasterDeck.js +10 -8
- package/dist/cjs/NavMagazine.js +2 -2
- package/dist/cjs/NavNative.js +2 -2
- package/dist/cjs/OncliveHero.js +1 -1
- package/dist/cjs/OncliveLargeHero.js +1 -1
- package/dist/cjs/PartnerDetailListing.js +15 -15
- package/dist/cjs/PublicationDeck.js +2 -2
- package/dist/cjs/QueueDeckExpanded.js +10 -8
- package/dist/cjs/RecentNews.js +1 -1
- package/dist/cjs/RelatedContent.js +1 -1
- package/dist/cjs/{SocialSearchComponent-9cd24578.js → SocialSearchComponent-56d49a1a.js} +1 -1
- package/dist/cjs/TaxonomyCard.js +2 -2
- package/dist/cjs/TemplateNormal.js +3 -3
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/Ustream.js +1 -1
- package/dist/cjs/VerticalHero.js +1 -1
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/VideoSeriesListing.js +2 -2
- package/dist/cjs/View.js +35 -33
- package/dist/cjs/YahooHero.js +1 -1
- package/dist/cjs/YoutubeGroup.js +1 -1
- package/dist/cjs/getRelatedArticle.js +1 -1
- package/dist/cjs/getSerializers.js +5 -5
- package/dist/cjs/{getTargeting-9af0ef69.js → getTargeting-fee8c429.js} +2 -2
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{index-fa8ed292.js → index-099d45ae.js} +30 -21
- package/dist/cjs/{index-d80358aa.js → index-1735f801.js} +452 -440
- package/dist/cjs/{index-be0c82be.js → index-39beccb3.js} +2 -1
- package/dist/cjs/index.js +10 -10
- package/dist/cjs/{lodash-fc2922d0.js → lodash-7fd85bcf.js} +71 -22
- package/dist/cjs/{main-a4cb15bb.js → main-03ffa84c.js} +1 -0
- package/dist/cjs/urlFor.js +1 -1
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +2 -2
- package/dist/esm/AD300x250x600.js +2 -2
- package/dist/esm/AD728x90.js +2 -2
- package/dist/esm/ADFloatingFooter.js +2 -2
- package/dist/esm/ADGutter.js +3 -3
- package/dist/esm/{ADInfeed-ffcb5391.js → ADInfeed-af6b0616.js} +1 -1
- package/dist/esm/ADSkyscraper.js +3 -3
- package/dist/esm/ADSponsoredResources.js +6 -4
- package/dist/esm/ADWebcast.js +3 -3
- package/dist/esm/ADWelcome.js +2 -2
- package/dist/esm/{ADlgInfeed-6df5151e.js → ADlgInfeed-27ba8238.js} +1 -1
- package/dist/esm/AdSlot.js +7 -12
- package/dist/esm/AdSlotsProvider.js +7 -4
- package/dist/esm/ArticleCarousel.js +1 -1
- package/dist/esm/ArticleSeriesListing.js +2 -2
- package/dist/esm/Auth.js +2 -2
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-c409aca5.js} +1 -1
- package/dist/esm/BrowseVideosListing.js +1 -1
- package/dist/esm/CMEDeck.js +2 -2
- package/dist/esm/Column3.js +2 -2
- package/dist/esm/ConferenceArticleCard.js +1 -1
- package/dist/esm/DeckContent.js +6 -5
- package/dist/esm/DeckQueue.js +3 -3
- package/dist/esm/{Dfp-96b49def.js → Dfp-741c01be.js} +1 -1
- package/dist/esm/EventsDeck.js +1 -1
- package/dist/esm/ExternalResources.js +5 -5
- package/dist/esm/Feature.js +2 -2
- package/dist/esm/ForbesHero.js +1 -1
- package/dist/esm/GridContent.js +10 -8
- package/dist/esm/GridHero.js +1 -1
- package/dist/esm/GroupDeck.js +1 -1
- package/dist/esm/HamMagazine.js +2 -2
- package/dist/esm/Hero.js +1 -1
- package/dist/esm/HorizontalHero.js +1 -1
- package/dist/esm/IssueContentDeck.js +1 -1
- package/dist/esm/IssueDeck.js +1 -1
- package/dist/esm/IssueLanding.js +6 -6
- package/dist/esm/LeftNav.js +2 -2
- package/dist/esm/MasterDeck.js +10 -8
- package/dist/esm/NavMagazine.js +2 -2
- package/dist/esm/NavNative.js +2 -2
- package/dist/esm/OncliveHero.js +1 -1
- package/dist/esm/OncliveLargeHero.js +1 -1
- package/dist/esm/PartnerDetailListing.js +13 -13
- package/dist/esm/PublicationDeck.js +2 -2
- package/dist/esm/QueueDeckExpanded.js +10 -8
- package/dist/esm/RecentNews.js +1 -1
- package/dist/esm/RelatedContent.js +1 -1
- package/dist/esm/{SocialSearchComponent-93233334.js → SocialSearchComponent-677ed3bd.js} +1 -1
- package/dist/esm/TaxonomyCard.js +2 -2
- package/dist/esm/TemplateNormal.js +3 -3
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/Ustream.js +1 -1
- package/dist/esm/VerticalHero.js +1 -1
- package/dist/esm/VideoSeriesCard.js +1 -1
- package/dist/esm/VideoSeriesListing.js +2 -2
- package/dist/esm/View.js +12 -10
- package/dist/esm/YahooHero.js +1 -1
- package/dist/esm/YoutubeGroup.js +1 -1
- package/dist/esm/getRelatedArticle.js +1 -1
- package/dist/esm/getSerializers.js +5 -5
- package/dist/esm/{index-1ee3baee.js → index-273cc821.js} +452 -440
- package/dist/esm/{index-73819142.js → index-3849e3fe.js} +2 -1
- package/dist/esm/{index-0e45a0b2.js → index-3f4dd6f2.js} +30 -21
- package/dist/esm/index.js +9 -9
- package/dist/esm/{lodash-17fdfebb.js → lodash-ec8c6b48.js} +71 -22
- package/dist/esm/{main-5d1e4bd3.js → main-35ff7b4f.js} +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/package.json +3 -3
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-725434a0.js';
|
|
3
|
-
import { _ as _extends
|
|
3
|
+
import { _ as _extends } from './extends-cc5da797.js';
|
|
4
4
|
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-7ee3e0c1.js';
|
|
5
|
-
import { _ as _typeof } from './typeof-08f2c380.js';
|
|
5
|
+
import { _ as _typeof$1 } from './typeof-08f2c380.js';
|
|
6
6
|
import React__default, { useState, useEffect, useRef, useCallback } from 'react';
|
|
7
|
-
import { l as lib_3 } from './index-
|
|
7
|
+
import { l as lib_3 } from './index-3f4dd6f2.js';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
import Row from 'react-bootstrap/Row';
|
|
10
10
|
import Col from 'react-bootstrap/Col';
|
|
11
11
|
import { m as moment } from './moment-e2f9b20c.js';
|
|
12
12
|
import Router, { useRouter } from 'next/router';
|
|
13
|
-
import { i as imageUrlBuilder } from './index-
|
|
13
|
+
import { i as imageUrlBuilder } from './index-3849e3fe.js';
|
|
14
14
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
15
|
-
import { b as main_16,
|
|
15
|
+
import { b as main_16, d as main_35, m as main_36 } from './main-35ff7b4f.js';
|
|
16
16
|
import { h as html_decode_1 } from './entities-7cc3bf45.js';
|
|
17
17
|
import { _ as _slicedToArray } from './slicedToArray-7021e5df.js';
|
|
18
18
|
import Segment from './Segment.js';
|
|
19
19
|
import Beam from './Beam.js';
|
|
20
20
|
import DFPAdSlot from './AdSlot.js';
|
|
21
|
-
import { B as BlockContent } from './BlockContent-
|
|
21
|
+
import { B as BlockContent } from './BlockContent-c409aca5.js';
|
|
22
22
|
import { g as getYoutubeId } from './smoothscroll-4b699764.js';
|
|
23
23
|
import GroupDeck from './GroupDeck.js';
|
|
24
24
|
import { Carousel, Table, Figure as Figure$1, Button, ProgressBar, Card, Row as Row$1, Col as Col$1 } from 'react-bootstrap';
|
|
@@ -91,21 +91,18 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
91
91
|
);
|
|
92
92
|
};
|
|
93
93
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
// do not edit .js files directly - edit src/index.jst
|
|
95
|
+
|
|
96
|
+
|
|
97
97
|
|
|
98
98
|
var fastDeepEqual = function equal(a, b) {
|
|
99
99
|
if (a === b) return true;
|
|
100
100
|
|
|
101
101
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
102
|
-
|
|
103
|
-
, arrB = isArray(b)
|
|
104
|
-
, i
|
|
105
|
-
, length
|
|
106
|
-
, key;
|
|
102
|
+
if (a.constructor !== b.constructor) return false;
|
|
107
103
|
|
|
108
|
-
|
|
104
|
+
var length, i, keys;
|
|
105
|
+
if (Array.isArray(a)) {
|
|
109
106
|
length = a.length;
|
|
110
107
|
if (length != b.length) return false;
|
|
111
108
|
for (i = length; i-- !== 0;)
|
|
@@ -113,35 +110,29 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
113
110
|
return true;
|
|
114
111
|
}
|
|
115
112
|
|
|
116
|
-
if (arrA != arrB) return false;
|
|
117
113
|
|
|
118
|
-
var dateA = a instanceof Date
|
|
119
|
-
, dateB = b instanceof Date;
|
|
120
|
-
if (dateA != dateB) return false;
|
|
121
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
122
114
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
if (
|
|
126
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
115
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
116
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
117
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
127
118
|
|
|
128
|
-
|
|
119
|
+
keys = Object.keys(a);
|
|
129
120
|
length = keys.length;
|
|
130
|
-
|
|
131
|
-
if (length !== keyList(b).length)
|
|
132
|
-
return false;
|
|
121
|
+
if (length !== Object.keys(b).length) return false;
|
|
133
122
|
|
|
134
123
|
for (i = length; i-- !== 0;)
|
|
135
|
-
if (!
|
|
124
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
136
125
|
|
|
137
126
|
for (i = length; i-- !== 0;) {
|
|
138
|
-
key = keys[i];
|
|
127
|
+
var key = keys[i];
|
|
128
|
+
|
|
139
129
|
if (!equal(a[key], b[key])) return false;
|
|
140
130
|
}
|
|
141
131
|
|
|
142
132
|
return true;
|
|
143
133
|
}
|
|
144
134
|
|
|
135
|
+
// true if both NaN, false otherwise
|
|
145
136
|
return a!==a && b!==b;
|
|
146
137
|
};
|
|
147
138
|
|
|
@@ -1564,199 +1555,235 @@ module.exports = exports['default'];
|
|
|
1564
1555
|
|
|
1565
1556
|
var youTubePlayer = unwrapExports(dist);
|
|
1566
1557
|
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
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; };
|
|
1558
|
+
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); }
|
|
1570
1559
|
|
|
1571
1560
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1572
1561
|
|
|
1573
|
-
function
|
|
1562
|
+
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); } }
|
|
1563
|
+
|
|
1564
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1565
|
+
|
|
1566
|
+
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); }; }
|
|
1567
|
+
|
|
1568
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1569
|
+
|
|
1570
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1571
|
+
|
|
1572
|
+
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; } }
|
|
1573
|
+
|
|
1574
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1575
|
+
|
|
1576
|
+
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); }
|
|
1577
|
+
|
|
1578
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1579
|
+
|
|
1580
|
+
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; }
|
|
1574
1581
|
|
|
1575
|
-
function
|
|
1582
|
+
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; }
|
|
1576
1583
|
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
*
|
|
1580
|
-
*
|
|
1581
|
-
* @param {Object}
|
|
1584
|
+
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; }
|
|
1585
|
+
/**
|
|
1586
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1587
|
+
*
|
|
1588
|
+
* @param {Object} prevProps
|
|
1589
|
+
* @param {Object} props
|
|
1582
1590
|
*/
|
|
1591
|
+
|
|
1583
1592
|
function shouldUpdateVideo(prevProps, props) {
|
|
1584
1593
|
// A changing video should always trigger an update
|
|
1585
1594
|
if (prevProps.videoId !== props.videoId) {
|
|
1586
1595
|
return true;
|
|
1587
|
-
}
|
|
1588
|
-
|
|
1589
|
-
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1596
|
+
} // Otherwise, a change in the start/end time playerVars also requires a player
|
|
1590
1597
|
// update.
|
|
1598
|
+
|
|
1599
|
+
|
|
1591
1600
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1592
1601
|
var vars = props.opts.playerVars || {};
|
|
1593
|
-
|
|
1594
1602
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1595
1603
|
}
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
*
|
|
1599
|
-
*
|
|
1600
|
-
*
|
|
1601
|
-
*
|
|
1602
|
-
* @param {Object} opts
|
|
1604
|
+
/**
|
|
1605
|
+
* Neutralize API options that only require a video update, leaving only options
|
|
1606
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1607
|
+
* player reset is necessary.
|
|
1608
|
+
*
|
|
1609
|
+
* @param {Object} opts
|
|
1603
1610
|
*/
|
|
1611
|
+
|
|
1612
|
+
|
|
1604
1613
|
function filterResetOptions(opts) {
|
|
1605
|
-
return
|
|
1606
|
-
playerVars:
|
|
1614
|
+
return _objectSpread({}, opts, {
|
|
1615
|
+
playerVars: _objectSpread({}, opts.playerVars, {
|
|
1607
1616
|
autoplay: 0,
|
|
1608
1617
|
start: 0,
|
|
1609
1618
|
end: 0
|
|
1610
1619
|
})
|
|
1611
1620
|
});
|
|
1612
1621
|
}
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
*
|
|
1616
|
-
*
|
|
1617
|
-
*
|
|
1618
|
-
*
|
|
1619
|
-
*
|
|
1620
|
-
* @param {Object}
|
|
1621
|
-
* @param {Object} props
|
|
1622
|
+
/**
|
|
1623
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1624
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1625
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1626
|
+
* those.
|
|
1627
|
+
*
|
|
1628
|
+
* @param {Object} prevProps
|
|
1629
|
+
* @param {Object} props
|
|
1622
1630
|
*/
|
|
1631
|
+
|
|
1632
|
+
|
|
1623
1633
|
function shouldResetPlayer(prevProps, props) {
|
|
1624
1634
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1625
1635
|
}
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
*
|
|
1629
|
-
*
|
|
1630
|
-
* @param {Object}
|
|
1631
|
-
* @param {Object} props
|
|
1636
|
+
/**
|
|
1637
|
+
* Check whether a props change should result in an id or className update.
|
|
1638
|
+
*
|
|
1639
|
+
* @param {Object} prevProps
|
|
1640
|
+
* @param {Object} props
|
|
1632
1641
|
*/
|
|
1642
|
+
|
|
1643
|
+
|
|
1633
1644
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1634
1645
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1635
1646
|
}
|
|
1636
1647
|
|
|
1637
|
-
var YouTube = function (_React$Component) {
|
|
1648
|
+
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
1638
1649
|
_inherits(YouTube, _React$Component);
|
|
1639
1650
|
|
|
1651
|
+
var _super = _createSuper(YouTube);
|
|
1652
|
+
|
|
1653
|
+
/**
|
|
1654
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1655
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1656
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1657
|
+
*/
|
|
1640
1658
|
function YouTube(props) {
|
|
1659
|
+
var _this;
|
|
1660
|
+
|
|
1641
1661
|
_classCallCheck(this, YouTube);
|
|
1642
1662
|
|
|
1643
|
-
|
|
1663
|
+
_this = _super.call(this, props);
|
|
1644
1664
|
|
|
1645
|
-
_this
|
|
1665
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
|
|
1646
1666
|
return _this.props.onReady(event);
|
|
1647
|
-
};
|
|
1667
|
+
});
|
|
1648
1668
|
|
|
1649
|
-
_this
|
|
1669
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
|
|
1650
1670
|
return _this.props.onError(event);
|
|
1651
|
-
};
|
|
1671
|
+
});
|
|
1652
1672
|
|
|
1653
|
-
_this
|
|
1673
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
|
|
1654
1674
|
_this.props.onStateChange(event);
|
|
1655
|
-
switch (event.data) {
|
|
1656
1675
|
|
|
1676
|
+
switch (event.data) {
|
|
1657
1677
|
case YouTube.PlayerState.ENDED:
|
|
1658
1678
|
_this.props.onEnd(event);
|
|
1679
|
+
|
|
1659
1680
|
break;
|
|
1660
1681
|
|
|
1661
1682
|
case YouTube.PlayerState.PLAYING:
|
|
1662
1683
|
_this.props.onPlay(event);
|
|
1684
|
+
|
|
1663
1685
|
break;
|
|
1664
1686
|
|
|
1665
1687
|
case YouTube.PlayerState.PAUSED:
|
|
1666
1688
|
_this.props.onPause(event);
|
|
1689
|
+
|
|
1667
1690
|
break;
|
|
1668
1691
|
}
|
|
1669
|
-
};
|
|
1692
|
+
});
|
|
1670
1693
|
|
|
1671
|
-
_this
|
|
1694
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
|
|
1672
1695
|
return _this.props.onPlaybackRateChange(event);
|
|
1673
|
-
};
|
|
1696
|
+
});
|
|
1674
1697
|
|
|
1675
|
-
_this
|
|
1698
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
|
|
1676
1699
|
return _this.props.onPlaybackQualityChange(event);
|
|
1677
|
-
};
|
|
1700
|
+
});
|
|
1678
1701
|
|
|
1679
|
-
_this
|
|
1702
|
+
_defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
|
|
1680
1703
|
// do not attempt to create a player server-side, it won't work
|
|
1681
|
-
if (typeof document === 'undefined') return;
|
|
1682
|
-
|
|
1683
|
-
var playerOpts =
|
|
1704
|
+
if (typeof document === 'undefined') return; // create player
|
|
1705
|
+
|
|
1706
|
+
var playerOpts = _objectSpread({}, _this.props.opts, {
|
|
1684
1707
|
// preload the `videoId` video if one is already given
|
|
1685
1708
|
videoId: _this.props.videoId
|
|
1686
1709
|
});
|
|
1687
|
-
|
|
1688
|
-
// attach event handlers
|
|
1710
|
+
|
|
1711
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
|
|
1712
|
+
|
|
1689
1713
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1714
|
+
|
|
1690
1715
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1716
|
+
|
|
1691
1717
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1718
|
+
|
|
1692
1719
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1720
|
+
|
|
1693
1721
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1694
|
-
};
|
|
1722
|
+
});
|
|
1695
1723
|
|
|
1696
|
-
_this
|
|
1724
|
+
_defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
|
|
1697
1725
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1698
|
-
};
|
|
1726
|
+
});
|
|
1699
1727
|
|
|
1700
|
-
_this
|
|
1728
|
+
_defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
|
|
1701
1729
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1702
1730
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1703
1731
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1704
1732
|
});
|
|
1705
|
-
};
|
|
1733
|
+
});
|
|
1706
1734
|
|
|
1707
|
-
_this
|
|
1735
|
+
_defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
|
|
1708
1736
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1709
1737
|
_this.internalPlayer.stopVideo();
|
|
1738
|
+
|
|
1710
1739
|
return;
|
|
1711
|
-
}
|
|
1740
|
+
} // set queueing options
|
|
1741
|
+
|
|
1712
1742
|
|
|
1713
|
-
// set queueing options
|
|
1714
1743
|
var autoplay = false;
|
|
1715
1744
|
var opts = {
|
|
1716
1745
|
videoId: _this.props.videoId
|
|
1717
1746
|
};
|
|
1747
|
+
|
|
1718
1748
|
if ('playerVars' in _this.props.opts) {
|
|
1719
1749
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1750
|
+
|
|
1720
1751
|
if ('start' in _this.props.opts.playerVars) {
|
|
1721
1752
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1722
1753
|
}
|
|
1754
|
+
|
|
1723
1755
|
if ('end' in _this.props.opts.playerVars) {
|
|
1724
1756
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1725
1757
|
}
|
|
1726
|
-
}
|
|
1758
|
+
} // if autoplay is enabled loadVideoById
|
|
1759
|
+
|
|
1727
1760
|
|
|
1728
|
-
// if autoplay is enabled loadVideoById
|
|
1729
1761
|
if (autoplay) {
|
|
1730
1762
|
_this.internalPlayer.loadVideoById(opts);
|
|
1763
|
+
|
|
1731
1764
|
return;
|
|
1732
|
-
}
|
|
1733
|
-
|
|
1765
|
+
} // default behaviour just cues the video
|
|
1766
|
+
|
|
1767
|
+
|
|
1734
1768
|
_this.internalPlayer.cueVideoById(opts);
|
|
1735
|
-
};
|
|
1769
|
+
});
|
|
1736
1770
|
|
|
1737
|
-
_this
|
|
1771
|
+
_defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
|
|
1738
1772
|
_this.container = container;
|
|
1739
|
-
};
|
|
1773
|
+
});
|
|
1740
1774
|
|
|
1741
1775
|
_this.container = null;
|
|
1742
1776
|
_this.internalPlayer = null;
|
|
1743
1777
|
return _this;
|
|
1744
1778
|
}
|
|
1745
1779
|
|
|
1746
|
-
/**
|
|
1747
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1748
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1749
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1750
|
-
*/
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
1780
|
_createClass(YouTube, [{
|
|
1754
|
-
key:
|
|
1781
|
+
key: "componentDidMount",
|
|
1755
1782
|
value: function componentDidMount() {
|
|
1756
1783
|
this.createPlayer();
|
|
1757
1784
|
}
|
|
1758
1785
|
}, {
|
|
1759
|
-
key:
|
|
1786
|
+
key: "componentDidUpdate",
|
|
1760
1787
|
value: function componentDidUpdate(prevProps) {
|
|
1761
1788
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1762
1789
|
this.updatePlayer();
|
|
@@ -1771,112 +1798,58 @@ var YouTube = function (_React$Component) {
|
|
|
1771
1798
|
}
|
|
1772
1799
|
}
|
|
1773
1800
|
}, {
|
|
1774
|
-
key:
|
|
1801
|
+
key: "componentWillUnmount",
|
|
1775
1802
|
value: function componentWillUnmount() {
|
|
1776
|
-
/**
|
|
1777
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1778
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1779
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1780
|
-
* this method isn't quick enough to reset the container element.
|
|
1803
|
+
/**
|
|
1804
|
+
* Note: The `youtube-player` package that is used promisifies all YouTube
|
|
1805
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1806
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1807
|
+
* this method isn't quick enough to reset the container element.
|
|
1781
1808
|
*/
|
|
1782
1809
|
this.internalPlayer.destroy();
|
|
1783
1810
|
}
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
*
|
|
1787
|
-
*
|
|
1788
|
-
*
|
|
1789
|
-
* @param {Object} target - player object
|
|
1790
|
-
*/
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
/**
|
|
1794
|
-
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1795
|
-
*
|
|
1796
|
-
* @param {Object} event
|
|
1797
|
-
* @param {Integer} data - error type
|
|
1798
|
-
* @param {Object} target - player object
|
|
1799
|
-
*/
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
/**
|
|
1803
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1804
|
-
*
|
|
1805
|
-
* @param {Object} event
|
|
1806
|
-
* @param {Integer} data - status change type
|
|
1807
|
-
* @param {Object} target - actual YT player
|
|
1808
|
-
*/
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
/**
|
|
1812
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1813
|
-
*
|
|
1814
|
-
* @param {Object} event
|
|
1815
|
-
* @param {Float} data - playback rate
|
|
1816
|
-
* @param {Object} target - actual YT player
|
|
1817
|
-
*/
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
/**
|
|
1821
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1822
|
-
*
|
|
1823
|
-
* @param {Object} event
|
|
1824
|
-
* @param {String} data - playback quality
|
|
1825
|
-
* @param {Object} target - actual YT player
|
|
1826
|
-
*/
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
/**
|
|
1830
|
-
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1831
|
-
*/
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
/**
|
|
1835
|
-
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1836
|
-
*/
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
/**
|
|
1840
|
-
* Method to update the id and class of the Youtube Player iframe.
|
|
1841
|
-
* React should update this automatically but since the Youtube Player API
|
|
1842
|
-
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1843
|
-
*/
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
/**
|
|
1847
|
-
* Call Youtube Player API methods to update the currently playing video.
|
|
1848
|
-
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1849
|
-
* Youtube Player API methods to update the video.
|
|
1811
|
+
/**
|
|
1812
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1813
|
+
*
|
|
1814
|
+
* @param {Object} event
|
|
1815
|
+
* @param {Object} target - player object
|
|
1850
1816
|
*/
|
|
1851
1817
|
|
|
1852
1818
|
}, {
|
|
1853
|
-
key:
|
|
1819
|
+
key: "render",
|
|
1854
1820
|
value: function render() {
|
|
1855
|
-
return React__default.createElement(
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1821
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1822
|
+
className: this.props.containerClassName
|
|
1823
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1824
|
+
id: this.props.id,
|
|
1825
|
+
className: this.props.className,
|
|
1826
|
+
ref: this.refContainer
|
|
1827
|
+
}));
|
|
1860
1828
|
}
|
|
1861
1829
|
}]);
|
|
1862
1830
|
|
|
1863
1831
|
return YouTube;
|
|
1864
1832
|
}(React__default.Component);
|
|
1865
1833
|
|
|
1834
|
+
_defineProperty(YouTube, "PlayerState", {
|
|
1835
|
+
UNSTARTED: -1,
|
|
1836
|
+
ENDED: 0,
|
|
1837
|
+
PLAYING: 1,
|
|
1838
|
+
PAUSED: 2,
|
|
1839
|
+
BUFFERING: 3,
|
|
1840
|
+
CUED: 5
|
|
1841
|
+
});
|
|
1842
|
+
|
|
1866
1843
|
YouTube.propTypes = {
|
|
1867
1844
|
videoId: PropTypes.string,
|
|
1868
|
-
|
|
1869
1845
|
// custom ID for player element
|
|
1870
1846
|
id: PropTypes.string,
|
|
1871
|
-
|
|
1872
1847
|
// custom class name for player element
|
|
1873
1848
|
className: PropTypes.string,
|
|
1874
1849
|
// custom class name for player container element
|
|
1875
1850
|
containerClassName: PropTypes.string,
|
|
1876
|
-
|
|
1877
1851
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1878
1852
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1879
|
-
|
|
1880
1853
|
// event subscriptions
|
|
1881
1854
|
onReady: PropTypes.func,
|
|
1882
1855
|
onError: PropTypes.func,
|
|
@@ -1888,6 +1861,7 @@ YouTube.propTypes = {
|
|
|
1888
1861
|
onPlaybackQualityChange: PropTypes.func
|
|
1889
1862
|
};
|
|
1890
1863
|
YouTube.defaultProps = {
|
|
1864
|
+
videoId: null,
|
|
1891
1865
|
id: null,
|
|
1892
1866
|
className: null,
|
|
1893
1867
|
opts: {},
|
|
@@ -1901,14 +1875,6 @@ YouTube.defaultProps = {
|
|
|
1901
1875
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1902
1876
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1903
1877
|
};
|
|
1904
|
-
YouTube.PlayerState = {
|
|
1905
|
-
UNSTARTED: -1,
|
|
1906
|
-
ENDED: 0,
|
|
1907
|
-
PLAYING: 1,
|
|
1908
|
-
PAUSED: 2,
|
|
1909
|
-
BUFFERING: 3,
|
|
1910
|
-
CUED: 5
|
|
1911
|
-
};
|
|
1912
1878
|
|
|
1913
1879
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1914
1880
|
var url = _ref.url;
|
|
@@ -2172,7 +2138,7 @@ var Media = function Media(_ref) {
|
|
|
2172
2138
|
React__default.createElement(
|
|
2173
2139
|
LazyLoad,
|
|
2174
2140
|
{ once: true },
|
|
2175
|
-
React__default.createElement(Figure$1.Image, _extends
|
|
2141
|
+
React__default.createElement(Figure$1.Image, _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt }))
|
|
2176
2142
|
),
|
|
2177
2143
|
caption && React__default.createElement(
|
|
2178
2144
|
Figure$1.Caption,
|
|
@@ -2184,7 +2150,7 @@ var Media = function Media(_ref) {
|
|
|
2184
2150
|
} else if (caption && caption !== '') {
|
|
2185
2151
|
return React__default.createElement(
|
|
2186
2152
|
'a',
|
|
2187
|
-
_extends
|
|
2153
|
+
_extends({}, uploadDoc.downloadMedia ? {
|
|
2188
2154
|
href: uploadDoc.asset.url + '?dl='
|
|
2189
2155
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2190
2156
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2237,7 +2203,7 @@ var Video = function Video(_ref) {
|
|
|
2237
2203
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2238
2204
|
//console.log('success:', success.ref)
|
|
2239
2205
|
var player = success.ref;
|
|
2240
|
-
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2206
|
+
if (_typeof$1(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2241
2207
|
player.ima3.settings.debug = true;
|
|
2242
2208
|
if (targeting.content_placement && targeting.document_url) {
|
|
2243
2209
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2752,11 +2718,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2752
2718
|
|
|
2753
2719
|
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; }
|
|
2754
2720
|
|
|
2755
|
-
function
|
|
2721
|
+
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; } } }; }
|
|
2722
|
+
|
|
2723
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2724
|
+
|
|
2725
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
2756
2726
|
|
|
2757
|
-
function
|
|
2727
|
+
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); }
|
|
2758
2728
|
|
|
2759
|
-
function
|
|
2729
|
+
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; }
|
|
2730
|
+
|
|
2731
|
+
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; }
|
|
2760
2732
|
|
|
2761
2733
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2762
2734
|
|
|
@@ -2886,12 +2858,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
2886
2858
|
|
|
2887
2859
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
2888
2860
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
2889
|
-
|
|
2890
|
-
var
|
|
2891
|
-
|
|
2861
|
+
|
|
2862
|
+
var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
|
|
2863
|
+
_step;
|
|
2892
2864
|
|
|
2893
2865
|
try {
|
|
2894
|
-
for (
|
|
2866
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
2895
2867
|
var p = _step.value;
|
|
2896
2868
|
|
|
2897
2869
|
if (props$1[p]) {
|
|
@@ -2906,18 +2878,9 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
2906
2878
|
}
|
|
2907
2879
|
}
|
|
2908
2880
|
} catch (err) {
|
|
2909
|
-
|
|
2910
|
-
_iteratorError = err;
|
|
2881
|
+
_iterator.e(err);
|
|
2911
2882
|
} finally {
|
|
2912
|
-
|
|
2913
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
2914
|
-
_iterator["return"]();
|
|
2915
|
-
}
|
|
2916
|
-
} finally {
|
|
2917
|
-
if (_didIteratorError) {
|
|
2918
|
-
throw _iteratorError;
|
|
2919
|
-
}
|
|
2920
|
-
}
|
|
2883
|
+
_iterator.f();
|
|
2921
2884
|
}
|
|
2922
2885
|
|
|
2923
2886
|
return config;
|
|
@@ -3064,12 +3027,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3064
3027
|
|
|
3065
3028
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3066
3029
|
|
|
3067
|
-
function
|
|
3030
|
+
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); }; }
|
|
3068
3031
|
|
|
3069
|
-
function
|
|
3032
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3070
3033
|
|
|
3071
3034
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3072
3035
|
|
|
3036
|
+
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; } }
|
|
3037
|
+
|
|
3038
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3039
|
+
|
|
3073
3040
|
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); }
|
|
3074
3041
|
|
|
3075
3042
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3078,14 +3045,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3078
3045
|
|
|
3079
3046
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3080
3047
|
|
|
3081
|
-
var Player =
|
|
3082
|
-
/*#__PURE__*/
|
|
3083
|
-
function (_Component) {
|
|
3048
|
+
var Player = /*#__PURE__*/function (_Component) {
|
|
3084
3049
|
_inherits(Player, _Component);
|
|
3085
3050
|
|
|
3086
|
-
|
|
3087
|
-
var _getPrototypeOf2;
|
|
3051
|
+
var _super = _createSuper(Player);
|
|
3088
3052
|
|
|
3053
|
+
function Player() {
|
|
3089
3054
|
var _this;
|
|
3090
3055
|
|
|
3091
3056
|
_classCallCheck(this, Player);
|
|
@@ -3094,7 +3059,7 @@ function (_Component) {
|
|
|
3094
3059
|
_args[_key] = arguments[_key];
|
|
3095
3060
|
}
|
|
3096
3061
|
|
|
3097
|
-
_this =
|
|
3062
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
3098
3063
|
|
|
3099
3064
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3100
3065
|
|
|
@@ -3419,7 +3384,7 @@ function (_Component) {
|
|
|
3419
3384
|
return null;
|
|
3420
3385
|
}
|
|
3421
3386
|
|
|
3422
|
-
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3387
|
+
return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
|
|
3423
3388
|
ref: this.ref,
|
|
3424
3389
|
onReady: this.handleReady,
|
|
3425
3390
|
onPlay: this.handlePlay,
|
|
@@ -3480,12 +3445,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3480
3445
|
|
|
3481
3446
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3482
3447
|
|
|
3483
|
-
function
|
|
3448
|
+
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); }; }
|
|
3484
3449
|
|
|
3485
|
-
function
|
|
3450
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3486
3451
|
|
|
3487
3452
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3488
3453
|
|
|
3454
|
+
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; } }
|
|
3455
|
+
|
|
3456
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3457
|
+
|
|
3489
3458
|
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); }
|
|
3490
3459
|
|
|
3491
3460
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3497,14 +3466,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3497
3466
|
function createSinglePlayer(activePlayer) {
|
|
3498
3467
|
var _class, _temp;
|
|
3499
3468
|
|
|
3500
|
-
return _temp = _class =
|
|
3501
|
-
/*#__PURE__*/
|
|
3502
|
-
function (_Component) {
|
|
3469
|
+
return _temp = _class = /*#__PURE__*/function (_Component) {
|
|
3503
3470
|
_inherits(SinglePlayer, _Component);
|
|
3504
3471
|
|
|
3505
|
-
|
|
3506
|
-
var _getPrototypeOf2;
|
|
3472
|
+
var _super = _createSuper(SinglePlayer);
|
|
3507
3473
|
|
|
3474
|
+
function SinglePlayer() {
|
|
3508
3475
|
var _this;
|
|
3509
3476
|
|
|
3510
3477
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3513,7 +3480,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3513
3480
|
args[_key] = arguments[_key];
|
|
3514
3481
|
}
|
|
3515
3482
|
|
|
3516
|
-
_this =
|
|
3483
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3517
3484
|
|
|
3518
3485
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3519
3486
|
|
|
@@ -3581,12 +3548,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3581
3548
|
height = _this$props.height,
|
|
3582
3549
|
Wrapper = _this$props.wrapper;
|
|
3583
3550
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3584
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
3551
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
3585
3552
|
style: _objectSpread({}, style, {
|
|
3586
3553
|
width: width,
|
|
3587
3554
|
height: height
|
|
3588
3555
|
})
|
|
3589
|
-
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3556
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3590
3557
|
ref: this.ref,
|
|
3591
3558
|
activePlayer: activePlayer,
|
|
3592
3559
|
config: this.config
|
|
@@ -3632,23 +3599,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3632
3599
|
|
|
3633
3600
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3634
3601
|
|
|
3635
|
-
function
|
|
3602
|
+
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); }; }
|
|
3636
3603
|
|
|
3637
|
-
function
|
|
3604
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3638
3605
|
|
|
3639
3606
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3640
3607
|
|
|
3608
|
+
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; } }
|
|
3609
|
+
|
|
3610
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3611
|
+
|
|
3641
3612
|
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); }
|
|
3642
3613
|
|
|
3643
3614
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3644
3615
|
|
|
3645
3616
|
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; }
|
|
3646
3617
|
|
|
3647
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3618
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3648
3619
|
|
|
3649
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3620
|
+
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."); }
|
|
3650
3621
|
|
|
3651
|
-
function
|
|
3622
|
+
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); }
|
|
3623
|
+
|
|
3624
|
+
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; }
|
|
3625
|
+
|
|
3626
|
+
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; }
|
|
3652
3627
|
|
|
3653
3628
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3654
3629
|
|
|
@@ -3673,14 +3648,12 @@ function parsePlaylist(url) {
|
|
|
3673
3648
|
return {};
|
|
3674
3649
|
}
|
|
3675
3650
|
|
|
3676
|
-
var YouTube =
|
|
3677
|
-
/*#__PURE__*/
|
|
3678
|
-
function (_Component) {
|
|
3651
|
+
var YouTube = /*#__PURE__*/function (_Component) {
|
|
3679
3652
|
_inherits(YouTube, _Component);
|
|
3680
3653
|
|
|
3681
|
-
|
|
3682
|
-
var _getPrototypeOf2;
|
|
3654
|
+
var _super = _createSuper(YouTube);
|
|
3683
3655
|
|
|
3656
|
+
function YouTube() {
|
|
3684
3657
|
var _this;
|
|
3685
3658
|
|
|
3686
3659
|
_classCallCheck(this, YouTube);
|
|
@@ -3689,7 +3662,7 @@ function (_Component) {
|
|
|
3689
3662
|
args[_key] = arguments[_key];
|
|
3690
3663
|
}
|
|
3691
3664
|
|
|
3692
|
-
_this =
|
|
3665
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3693
3666
|
|
|
3694
3667
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3695
3668
|
|
|
@@ -3877,9 +3850,9 @@ function (_Component) {
|
|
|
3877
3850
|
height: '100%',
|
|
3878
3851
|
display: display
|
|
3879
3852
|
};
|
|
3880
|
-
return _react["default"].createElement("div", {
|
|
3853
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
3881
3854
|
style: style
|
|
3882
|
-
}, _react["default"].createElement("div", {
|
|
3855
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
3883
3856
|
ref: this.ref
|
|
3884
3857
|
}));
|
|
3885
3858
|
}
|
|
@@ -3935,12 +3908,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3935
3908
|
|
|
3936
3909
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3937
3910
|
|
|
3938
|
-
function
|
|
3911
|
+
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); }; }
|
|
3939
3912
|
|
|
3940
|
-
function
|
|
3913
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3941
3914
|
|
|
3942
3915
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3943
3916
|
|
|
3917
|
+
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; } }
|
|
3918
|
+
|
|
3919
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3920
|
+
|
|
3944
3921
|
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); }
|
|
3945
3922
|
|
|
3946
3923
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3949,16 +3926,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3949
3926
|
|
|
3950
3927
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
3951
3928
|
var SDK_GLOBAL = 'SC';
|
|
3952
|
-
var MATCH_URL = /(soundcloud\.com|snd\.sc)
|
|
3929
|
+
var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
3953
3930
|
|
|
3954
|
-
var SoundCloud =
|
|
3955
|
-
/*#__PURE__*/
|
|
3956
|
-
function (_Component) {
|
|
3931
|
+
var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
3957
3932
|
_inherits(SoundCloud, _Component);
|
|
3958
3933
|
|
|
3959
|
-
|
|
3960
|
-
var _getPrototypeOf2;
|
|
3934
|
+
var _super = _createSuper(SoundCloud);
|
|
3961
3935
|
|
|
3936
|
+
function SoundCloud() {
|
|
3962
3937
|
var _this;
|
|
3963
3938
|
|
|
3964
3939
|
_classCallCheck(this, SoundCloud);
|
|
@@ -3967,7 +3942,7 @@ function (_Component) {
|
|
|
3967
3942
|
args[_key] = arguments[_key];
|
|
3968
3943
|
}
|
|
3969
3944
|
|
|
3970
|
-
_this =
|
|
3945
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3971
3946
|
|
|
3972
3947
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3973
3948
|
|
|
@@ -4088,7 +4063,7 @@ function (_Component) {
|
|
|
4088
4063
|
height: '100%',
|
|
4089
4064
|
display: display
|
|
4090
4065
|
};
|
|
4091
|
-
return _react["default"].createElement("iframe", {
|
|
4066
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4092
4067
|
ref: this.ref,
|
|
4093
4068
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4094
4069
|
style: style,
|
|
@@ -4150,12 +4125,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4150
4125
|
|
|
4151
4126
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4152
4127
|
|
|
4153
|
-
function
|
|
4128
|
+
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); }; }
|
|
4154
4129
|
|
|
4155
|
-
function
|
|
4130
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4156
4131
|
|
|
4157
4132
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4158
4133
|
|
|
4134
|
+
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; } }
|
|
4135
|
+
|
|
4136
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4137
|
+
|
|
4159
4138
|
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); }
|
|
4160
4139
|
|
|
4161
4140
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4167,14 +4146,12 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4167
4146
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4168
4147
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4169
4148
|
|
|
4170
|
-
var Vimeo =
|
|
4171
|
-
/*#__PURE__*/
|
|
4172
|
-
function (_Component) {
|
|
4149
|
+
var Vimeo = /*#__PURE__*/function (_Component) {
|
|
4173
4150
|
_inherits(Vimeo, _Component);
|
|
4174
4151
|
|
|
4175
|
-
|
|
4176
|
-
var _getPrototypeOf2;
|
|
4152
|
+
var _super = _createSuper(Vimeo);
|
|
4177
4153
|
|
|
4154
|
+
function Vimeo() {
|
|
4178
4155
|
var _this;
|
|
4179
4156
|
|
|
4180
4157
|
_classCallCheck(this, Vimeo);
|
|
@@ -4183,7 +4160,7 @@ function (_Component) {
|
|
|
4183
4160
|
args[_key] = arguments[_key];
|
|
4184
4161
|
}
|
|
4185
4162
|
|
|
4186
|
-
_this =
|
|
4163
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4187
4164
|
|
|
4188
4165
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4189
4166
|
|
|
@@ -4340,7 +4317,7 @@ function (_Component) {
|
|
|
4340
4317
|
overflow: 'hidden',
|
|
4341
4318
|
display: display
|
|
4342
4319
|
};
|
|
4343
|
-
return _react["default"].createElement("div", {
|
|
4320
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4344
4321
|
key: this.props.url,
|
|
4345
4322
|
ref: this.ref,
|
|
4346
4323
|
style: style
|
|
@@ -4400,12 +4377,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4400
4377
|
|
|
4401
4378
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4402
4379
|
|
|
4403
|
-
function
|
|
4380
|
+
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); }; }
|
|
4404
4381
|
|
|
4405
|
-
function
|
|
4382
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4406
4383
|
|
|
4407
4384
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4408
4385
|
|
|
4386
|
+
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; } }
|
|
4387
|
+
|
|
4388
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4389
|
+
|
|
4409
4390
|
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); }
|
|
4410
4391
|
|
|
4411
4392
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4418,14 +4399,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4418
4399
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4419
4400
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4420
4401
|
|
|
4421
|
-
var Facebook =
|
|
4422
|
-
/*#__PURE__*/
|
|
4423
|
-
function (_Component) {
|
|
4402
|
+
var Facebook = /*#__PURE__*/function (_Component) {
|
|
4424
4403
|
_inherits(Facebook, _Component);
|
|
4425
4404
|
|
|
4426
|
-
|
|
4427
|
-
var _getPrototypeOf2;
|
|
4405
|
+
var _super = _createSuper(Facebook);
|
|
4428
4406
|
|
|
4407
|
+
function Facebook() {
|
|
4429
4408
|
var _this;
|
|
4430
4409
|
|
|
4431
4410
|
_classCallCheck(this, Facebook);
|
|
@@ -4434,7 +4413,7 @@ function (_Component) {
|
|
|
4434
4413
|
args[_key] = arguments[_key];
|
|
4435
4414
|
}
|
|
4436
4415
|
|
|
4437
|
-
_this =
|
|
4416
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4438
4417
|
|
|
4439
4418
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4440
4419
|
|
|
@@ -4550,7 +4529,7 @@ function (_Component) {
|
|
|
4550
4529
|
width: '100%',
|
|
4551
4530
|
height: '100%'
|
|
4552
4531
|
};
|
|
4553
|
-
return _react["default"].createElement("div", {
|
|
4532
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4554
4533
|
style: style,
|
|
4555
4534
|
id: this.playerID,
|
|
4556
4535
|
className: "fb-video",
|
|
@@ -4610,12 +4589,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4610
4589
|
|
|
4611
4590
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4612
4591
|
|
|
4613
|
-
function
|
|
4592
|
+
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); }; }
|
|
4614
4593
|
|
|
4615
|
-
function
|
|
4594
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4616
4595
|
|
|
4617
4596
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4618
4597
|
|
|
4598
|
+
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; } }
|
|
4599
|
+
|
|
4600
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4601
|
+
|
|
4619
4602
|
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); }
|
|
4620
4603
|
|
|
4621
4604
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4626,14 +4609,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4626
4609
|
var SDK_GLOBAL = 'playerjs';
|
|
4627
4610
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4628
4611
|
|
|
4629
|
-
var Streamable =
|
|
4630
|
-
/*#__PURE__*/
|
|
4631
|
-
function (_Component) {
|
|
4612
|
+
var Streamable = /*#__PURE__*/function (_Component) {
|
|
4632
4613
|
_inherits(Streamable, _Component);
|
|
4633
4614
|
|
|
4634
|
-
|
|
4635
|
-
var _getPrototypeOf2;
|
|
4615
|
+
var _super = _createSuper(Streamable);
|
|
4636
4616
|
|
|
4617
|
+
function Streamable() {
|
|
4637
4618
|
var _this;
|
|
4638
4619
|
|
|
4639
4620
|
_classCallCheck(this, Streamable);
|
|
@@ -4642,7 +4623,7 @@ function (_Component) {
|
|
|
4642
4623
|
args[_key] = arguments[_key];
|
|
4643
4624
|
}
|
|
4644
4625
|
|
|
4645
|
-
_this =
|
|
4626
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4646
4627
|
|
|
4647
4628
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4648
4629
|
|
|
@@ -4762,7 +4743,7 @@ function (_Component) {
|
|
|
4762
4743
|
width: '100%',
|
|
4763
4744
|
height: '100%'
|
|
4764
4745
|
};
|
|
4765
|
-
return _react["default"].createElement("iframe", {
|
|
4746
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4766
4747
|
ref: this.ref,
|
|
4767
4748
|
src: "https://streamable.com/o/".concat(id),
|
|
4768
4749
|
frameBorder: "0",
|
|
@@ -4823,12 +4804,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4823
4804
|
|
|
4824
4805
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4825
4806
|
|
|
4826
|
-
function
|
|
4807
|
+
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); }; }
|
|
4827
4808
|
|
|
4828
|
-
function
|
|
4809
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4829
4810
|
|
|
4830
4811
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4831
4812
|
|
|
4813
|
+
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; } }
|
|
4814
|
+
|
|
4815
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4816
|
+
|
|
4832
4817
|
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); }
|
|
4833
4818
|
|
|
4834
4819
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4839,26 +4824,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4839
4824
|
var SDK_GLOBAL = 'Wistia';
|
|
4840
4825
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4841
4826
|
|
|
4842
|
-
var Wistia =
|
|
4843
|
-
/*#__PURE__*/
|
|
4844
|
-
function (_Component) {
|
|
4827
|
+
var Wistia = /*#__PURE__*/function (_Component) {
|
|
4845
4828
|
_inherits(Wistia, _Component);
|
|
4846
4829
|
|
|
4847
|
-
|
|
4848
|
-
var _getPrototypeOf2;
|
|
4830
|
+
var _super = _createSuper(Wistia);
|
|
4849
4831
|
|
|
4832
|
+
function Wistia() {
|
|
4850
4833
|
var _this;
|
|
4851
4834
|
|
|
4852
4835
|
_classCallCheck(this, Wistia);
|
|
4853
4836
|
|
|
4854
|
-
for (var _len = arguments.length,
|
|
4855
|
-
|
|
4837
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4838
|
+
_args[_key] = arguments[_key];
|
|
4856
4839
|
}
|
|
4857
4840
|
|
|
4858
|
-
_this =
|
|
4841
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
4859
4842
|
|
|
4860
4843
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4861
4844
|
|
|
4845
|
+
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4846
|
+
var _this$props;
|
|
4847
|
+
|
|
4848
|
+
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4849
|
+
});
|
|
4850
|
+
|
|
4851
|
+
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4852
|
+
var _this$props2;
|
|
4853
|
+
|
|
4854
|
+
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4855
|
+
});
|
|
4856
|
+
|
|
4857
|
+
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
4858
|
+
var _this$props3;
|
|
4859
|
+
|
|
4860
|
+
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
4861
|
+
});
|
|
4862
|
+
|
|
4863
|
+
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
4864
|
+
var _this$props4;
|
|
4865
|
+
|
|
4866
|
+
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
4867
|
+
});
|
|
4868
|
+
|
|
4862
4869
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
4863
4870
|
_this.callPlayer('mute');
|
|
4864
4871
|
});
|
|
@@ -4880,17 +4887,13 @@ function (_Component) {
|
|
|
4880
4887
|
value: function load(url) {
|
|
4881
4888
|
var _this2 = this;
|
|
4882
4889
|
|
|
4883
|
-
var _this$
|
|
4884
|
-
playing = _this$
|
|
4885
|
-
muted = _this$
|
|
4886
|
-
controls = _this$
|
|
4887
|
-
_onReady = _this$
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
onSeek = _this$props.onSeek,
|
|
4891
|
-
onEnded = _this$props.onEnded,
|
|
4892
|
-
config = _this$props.config,
|
|
4893
|
-
onError = _this$props.onError;
|
|
4890
|
+
var _this$props5 = this.props,
|
|
4891
|
+
playing = _this$props5.playing,
|
|
4892
|
+
muted = _this$props5.muted,
|
|
4893
|
+
controls = _this$props5.controls,
|
|
4894
|
+
_onReady = _this$props5.onReady,
|
|
4895
|
+
config = _this$props5.config,
|
|
4896
|
+
onError = _this$props5.onError;
|
|
4894
4897
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
4895
4898
|
window._wq = window._wq || [];
|
|
4896
4899
|
|
|
@@ -4907,19 +4910,28 @@ function (_Component) {
|
|
|
4907
4910
|
|
|
4908
4911
|
_this2.unbind();
|
|
4909
4912
|
|
|
4910
|
-
_this2.player.bind('play', onPlay);
|
|
4913
|
+
_this2.player.bind('play', _this2.onPlay);
|
|
4911
4914
|
|
|
4912
|
-
_this2.player.bind('pause', onPause);
|
|
4915
|
+
_this2.player.bind('pause', _this2.onPause);
|
|
4913
4916
|
|
|
4914
|
-
_this2.player.bind('seek', onSeek);
|
|
4917
|
+
_this2.player.bind('seek', _this2.onSeek);
|
|
4915
4918
|
|
|
4916
|
-
_this2.player.bind('end', onEnded);
|
|
4919
|
+
_this2.player.bind('end', _this2.onEnded);
|
|
4917
4920
|
|
|
4918
4921
|
_onReady();
|
|
4919
4922
|
}
|
|
4920
4923
|
});
|
|
4921
4924
|
}, onError);
|
|
4922
4925
|
}
|
|
4926
|
+
}, {
|
|
4927
|
+
key: "unbind",
|
|
4928
|
+
value: function unbind() {
|
|
4929
|
+
this.player.unbind('play', this.onPlay);
|
|
4930
|
+
this.player.unbind('pause', this.onPause);
|
|
4931
|
+
this.player.unbind('seek', this.onSeek);
|
|
4932
|
+
this.player.unbind('end', this.onEnded);
|
|
4933
|
+
} // Proxy methods to prevent listener leaks
|
|
4934
|
+
|
|
4923
4935
|
}, {
|
|
4924
4936
|
key: "play",
|
|
4925
4937
|
value: function play() {
|
|
@@ -4930,19 +4942,6 @@ function (_Component) {
|
|
|
4930
4942
|
value: function pause() {
|
|
4931
4943
|
this.callPlayer('pause');
|
|
4932
4944
|
}
|
|
4933
|
-
}, {
|
|
4934
|
-
key: "unbind",
|
|
4935
|
-
value: function unbind() {
|
|
4936
|
-
var _this$props2 = this.props,
|
|
4937
|
-
onPlay = _this$props2.onPlay,
|
|
4938
|
-
onPause = _this$props2.onPause,
|
|
4939
|
-
onSeek = _this$props2.onSeek,
|
|
4940
|
-
onEnded = _this$props2.onEnded;
|
|
4941
|
-
this.player.unbind('play', onPlay);
|
|
4942
|
-
this.player.unbind('pause', onPause);
|
|
4943
|
-
this.player.unbind('seek', onSeek);
|
|
4944
|
-
this.player.unbind('end', onEnded);
|
|
4945
|
-
}
|
|
4946
4945
|
}, {
|
|
4947
4946
|
key: "stop",
|
|
4948
4947
|
value: function stop() {
|
|
@@ -4988,7 +4987,7 @@ function (_Component) {
|
|
|
4988
4987
|
width: '100%',
|
|
4989
4988
|
height: '100%'
|
|
4990
4989
|
};
|
|
4991
|
-
return _react["default"].createElement("div", {
|
|
4990
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4992
4991
|
key: id,
|
|
4993
4992
|
className: className,
|
|
4994
4993
|
style: style
|
|
@@ -5048,12 +5047,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5048
5047
|
|
|
5049
5048
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5050
5049
|
|
|
5051
|
-
function
|
|
5050
|
+
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); }; }
|
|
5052
5051
|
|
|
5053
|
-
function
|
|
5052
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5054
5053
|
|
|
5055
5054
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5056
5055
|
|
|
5056
|
+
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; } }
|
|
5057
|
+
|
|
5058
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5059
|
+
|
|
5057
5060
|
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); }
|
|
5058
5061
|
|
|
5059
5062
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5066,14 +5069,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5066
5069
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5067
5070
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5068
5071
|
|
|
5069
|
-
var Twitch =
|
|
5070
|
-
/*#__PURE__*/
|
|
5071
|
-
function (_Component) {
|
|
5072
|
+
var Twitch = /*#__PURE__*/function (_Component) {
|
|
5072
5073
|
_inherits(Twitch, _Component);
|
|
5073
5074
|
|
|
5074
|
-
|
|
5075
|
-
var _getPrototypeOf2;
|
|
5075
|
+
var _super = _createSuper(Twitch);
|
|
5076
5076
|
|
|
5077
|
+
function Twitch() {
|
|
5077
5078
|
var _this;
|
|
5078
5079
|
|
|
5079
5080
|
_classCallCheck(this, Twitch);
|
|
@@ -5082,7 +5083,7 @@ function (_Component) {
|
|
|
5082
5083
|
args[_key] = arguments[_key];
|
|
5083
5084
|
}
|
|
5084
5085
|
|
|
5085
|
-
_this =
|
|
5086
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5086
5087
|
|
|
5087
5088
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5088
5089
|
|
|
@@ -5203,7 +5204,7 @@ function (_Component) {
|
|
|
5203
5204
|
width: '100%',
|
|
5204
5205
|
height: '100%'
|
|
5205
5206
|
};
|
|
5206
|
-
return _react["default"].createElement("div", {
|
|
5207
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5207
5208
|
style: style,
|
|
5208
5209
|
id: this.playerID
|
|
5209
5210
|
});
|
|
@@ -5256,11 +5257,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5256
5257
|
|
|
5257
5258
|
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; }
|
|
5258
5259
|
|
|
5259
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5260
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5261
|
+
|
|
5262
|
+
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."); }
|
|
5260
5263
|
|
|
5261
|
-
function
|
|
5264
|
+
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); }
|
|
5262
5265
|
|
|
5263
|
-
function
|
|
5266
|
+
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; }
|
|
5267
|
+
|
|
5268
|
+
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; }
|
|
5264
5269
|
|
|
5265
5270
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5266
5271
|
|
|
@@ -5270,12 +5275,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5270
5275
|
|
|
5271
5276
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5272
5277
|
|
|
5273
|
-
function
|
|
5278
|
+
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); }; }
|
|
5274
5279
|
|
|
5275
|
-
function
|
|
5280
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5276
5281
|
|
|
5277
5282
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5278
5283
|
|
|
5284
|
+
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; } }
|
|
5285
|
+
|
|
5286
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5287
|
+
|
|
5279
5288
|
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); }
|
|
5280
5289
|
|
|
5281
5290
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5287,14 +5296,12 @@ var SDK_GLOBAL = 'DM';
|
|
|
5287
5296
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5288
5297
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5289
5298
|
|
|
5290
|
-
var DailyMotion =
|
|
5291
|
-
/*#__PURE__*/
|
|
5292
|
-
function (_Component) {
|
|
5299
|
+
var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
5293
5300
|
_inherits(DailyMotion, _Component);
|
|
5294
5301
|
|
|
5295
|
-
|
|
5296
|
-
var _getPrototypeOf2;
|
|
5302
|
+
var _super = _createSuper(DailyMotion);
|
|
5297
5303
|
|
|
5304
|
+
function DailyMotion() {
|
|
5298
5305
|
var _this;
|
|
5299
5306
|
|
|
5300
5307
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5303,7 +5310,7 @@ function (_Component) {
|
|
|
5303
5310
|
args[_key] = arguments[_key];
|
|
5304
5311
|
}
|
|
5305
5312
|
|
|
5306
|
-
_this =
|
|
5313
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5307
5314
|
|
|
5308
5315
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5309
5316
|
|
|
@@ -5432,9 +5439,9 @@ function (_Component) {
|
|
|
5432
5439
|
height: '100%',
|
|
5433
5440
|
display: display
|
|
5434
5441
|
};
|
|
5435
|
-
return _react["default"].createElement("div", {
|
|
5442
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5436
5443
|
style: style
|
|
5437
|
-
}, _react["default"].createElement("div", {
|
|
5444
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
5438
5445
|
ref: this.ref
|
|
5439
5446
|
}));
|
|
5440
5447
|
}
|
|
@@ -5492,12 +5499,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5492
5499
|
|
|
5493
5500
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5494
5501
|
|
|
5495
|
-
function
|
|
5502
|
+
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); }; }
|
|
5496
5503
|
|
|
5497
|
-
function
|
|
5504
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5498
5505
|
|
|
5499
5506
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5500
5507
|
|
|
5508
|
+
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; } }
|
|
5509
|
+
|
|
5510
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5511
|
+
|
|
5501
5512
|
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); }
|
|
5502
5513
|
|
|
5503
5514
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5508,14 +5519,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5508
5519
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5509
5520
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5510
5521
|
|
|
5511
|
-
var Mixcloud =
|
|
5512
|
-
/*#__PURE__*/
|
|
5513
|
-
function (_Component) {
|
|
5522
|
+
var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
5514
5523
|
_inherits(Mixcloud, _Component);
|
|
5515
5524
|
|
|
5516
|
-
|
|
5517
|
-
var _getPrototypeOf2;
|
|
5525
|
+
var _super = _createSuper(Mixcloud);
|
|
5518
5526
|
|
|
5527
|
+
function Mixcloud() {
|
|
5519
5528
|
var _this;
|
|
5520
5529
|
|
|
5521
5530
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5524,7 +5533,7 @@ function (_Component) {
|
|
|
5524
5533
|
args[_key] = arguments[_key];
|
|
5525
5534
|
}
|
|
5526
5535
|
|
|
5527
|
-
_this =
|
|
5536
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5528
5537
|
|
|
5529
5538
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5530
5539
|
|
|
@@ -5627,7 +5636,7 @@ function (_Component) {
|
|
|
5627
5636
|
})); // We have to give the iframe a key here to prevent a
|
|
5628
5637
|
// weird dialog appearing when loading a new track
|
|
5629
5638
|
|
|
5630
|
-
return _react["default"].createElement("iframe", {
|
|
5639
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
5631
5640
|
key: id,
|
|
5632
5641
|
ref: this.ref,
|
|
5633
5642
|
style: style,
|
|
@@ -5687,23 +5696,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5687
5696
|
|
|
5688
5697
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5689
5698
|
|
|
5690
|
-
function
|
|
5699
|
+
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); }; }
|
|
5691
5700
|
|
|
5692
|
-
function
|
|
5701
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5693
5702
|
|
|
5694
5703
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5695
5704
|
|
|
5705
|
+
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; } }
|
|
5706
|
+
|
|
5707
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5708
|
+
|
|
5696
5709
|
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); }
|
|
5697
5710
|
|
|
5698
5711
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5699
5712
|
|
|
5700
5713
|
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; }
|
|
5701
5714
|
|
|
5715
|
+
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; } } }; }
|
|
5716
|
+
|
|
5717
|
+
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); }
|
|
5718
|
+
|
|
5719
|
+
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; }
|
|
5720
|
+
|
|
5702
5721
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5703
5722
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5704
5723
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5705
5724
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5706
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5725
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
|
|
5707
5726
|
var HLS_GLOBAL = 'Hls';
|
|
5708
5727
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5709
5728
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5712,12 +5731,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5712
5731
|
|
|
5713
5732
|
function canPlay(url) {
|
|
5714
5733
|
if (url instanceof Array) {
|
|
5715
|
-
var
|
|
5716
|
-
|
|
5717
|
-
var _iteratorError = undefined;
|
|
5734
|
+
var _iterator = _createForOfIteratorHelper(url),
|
|
5735
|
+
_step;
|
|
5718
5736
|
|
|
5719
5737
|
try {
|
|
5720
|
-
for (
|
|
5738
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5721
5739
|
var item = _step.value;
|
|
5722
5740
|
|
|
5723
5741
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5729,18 +5747,9 @@ function canPlay(url) {
|
|
|
5729
5747
|
}
|
|
5730
5748
|
}
|
|
5731
5749
|
} catch (err) {
|
|
5732
|
-
|
|
5733
|
-
_iteratorError = err;
|
|
5750
|
+
_iterator.e(err);
|
|
5734
5751
|
} finally {
|
|
5735
|
-
|
|
5736
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5737
|
-
_iterator["return"]();
|
|
5738
|
-
}
|
|
5739
|
-
} finally {
|
|
5740
|
-
if (_didIteratorError) {
|
|
5741
|
-
throw _iteratorError;
|
|
5742
|
-
}
|
|
5743
|
-
}
|
|
5752
|
+
_iterator.f();
|
|
5744
5753
|
}
|
|
5745
5754
|
|
|
5746
5755
|
return false;
|
|
@@ -5764,14 +5773,12 @@ function canEnablePIP(url) {
|
|
|
5764
5773
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5765
5774
|
}
|
|
5766
5775
|
|
|
5767
|
-
var FilePlayer =
|
|
5768
|
-
/*#__PURE__*/
|
|
5769
|
-
function (_Component) {
|
|
5776
|
+
var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
5770
5777
|
_inherits(FilePlayer, _Component);
|
|
5771
5778
|
|
|
5772
|
-
|
|
5773
|
-
var _getPrototypeOf2;
|
|
5779
|
+
var _super = _createSuper(FilePlayer);
|
|
5774
5780
|
|
|
5781
|
+
function FilePlayer() {
|
|
5775
5782
|
var _this;
|
|
5776
5783
|
|
|
5777
5784
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5780,7 +5787,7 @@ function (_Component) {
|
|
|
5780
5787
|
_args[_key] = arguments[_key];
|
|
5781
5788
|
}
|
|
5782
5789
|
|
|
5783
|
-
_this =
|
|
5790
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5784
5791
|
|
|
5785
5792
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5786
5793
|
var _this$props;
|
|
@@ -5867,19 +5874,19 @@ function (_Component) {
|
|
|
5867
5874
|
|
|
5868
5875
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
5869
5876
|
if (typeof source === 'string') {
|
|
5870
|
-
return _react["default"].createElement("source", {
|
|
5877
|
+
return /*#__PURE__*/_react["default"].createElement("source", {
|
|
5871
5878
|
key: index,
|
|
5872
5879
|
src: source
|
|
5873
5880
|
});
|
|
5874
5881
|
}
|
|
5875
5882
|
|
|
5876
|
-
return _react["default"].createElement("source", _extends({
|
|
5883
|
+
return /*#__PURE__*/_react["default"].createElement("source", _extends({
|
|
5877
5884
|
key: index
|
|
5878
5885
|
}, source));
|
|
5879
5886
|
});
|
|
5880
5887
|
|
|
5881
5888
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
5882
|
-
return _react["default"].createElement("track", _extends({
|
|
5889
|
+
return /*#__PURE__*/_react["default"].createElement("track", _extends({
|
|
5883
5890
|
key: index
|
|
5884
5891
|
}, track));
|
|
5885
5892
|
});
|
|
@@ -5917,6 +5924,10 @@ function (_Component) {
|
|
|
5917
5924
|
key: "componentWillUnmount",
|
|
5918
5925
|
value: function componentWillUnmount() {
|
|
5919
5926
|
this.removeListeners(this.player);
|
|
5927
|
+
|
|
5928
|
+
if (this.hls) {
|
|
5929
|
+
this.hls.destroy();
|
|
5930
|
+
}
|
|
5920
5931
|
}
|
|
5921
5932
|
}, {
|
|
5922
5933
|
key: "addListeners",
|
|
@@ -6047,10 +6058,6 @@ function (_Component) {
|
|
|
6047
6058
|
value: function stop() {
|
|
6048
6059
|
this.player.removeAttribute('src');
|
|
6049
6060
|
|
|
6050
|
-
if (this.hls) {
|
|
6051
|
-
this.hls.destroy();
|
|
6052
|
-
}
|
|
6053
|
-
|
|
6054
6061
|
if (this.dash) {
|
|
6055
6062
|
this.dash.reset();
|
|
6056
6063
|
}
|
|
@@ -6162,7 +6169,7 @@ function (_Component) {
|
|
|
6162
6169
|
width: width === 'auto' ? width : '100%',
|
|
6163
6170
|
height: height === 'auto' ? height : '100%'
|
|
6164
6171
|
};
|
|
6165
|
-
return _react["default"].createElement(Element, _extends({
|
|
6172
|
+
return /*#__PURE__*/_react["default"].createElement(Element, _extends({
|
|
6166
6173
|
ref: this.ref,
|
|
6167
6174
|
src: this.getSource(url),
|
|
6168
6175
|
style: style,
|
|
@@ -6252,12 +6259,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6252
6259
|
|
|
6253
6260
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6254
6261
|
|
|
6255
|
-
function
|
|
6262
|
+
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); }; }
|
|
6256
6263
|
|
|
6257
|
-
function
|
|
6264
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6258
6265
|
|
|
6259
6266
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6260
6267
|
|
|
6268
|
+
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; } }
|
|
6269
|
+
|
|
6270
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6271
|
+
|
|
6261
6272
|
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); }
|
|
6262
6273
|
|
|
6263
6274
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6266,14 +6277,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6266
6277
|
|
|
6267
6278
|
var ICON_SIZE = '64px';
|
|
6268
6279
|
|
|
6269
|
-
var Preview =
|
|
6270
|
-
/*#__PURE__*/
|
|
6271
|
-
function (_Component) {
|
|
6280
|
+
var Preview = /*#__PURE__*/function (_Component) {
|
|
6272
6281
|
_inherits(Preview, _Component);
|
|
6273
6282
|
|
|
6274
|
-
|
|
6275
|
-
var _getPrototypeOf2;
|
|
6283
|
+
var _super = _createSuper(Preview);
|
|
6276
6284
|
|
|
6285
|
+
function Preview() {
|
|
6277
6286
|
var _this;
|
|
6278
6287
|
|
|
6279
6288
|
_classCallCheck(this, Preview);
|
|
@@ -6282,7 +6291,7 @@ function (_Component) {
|
|
|
6282
6291
|
args[_key] = arguments[_key];
|
|
6283
6292
|
}
|
|
6284
6293
|
|
|
6285
|
-
_this =
|
|
6294
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6286
6295
|
|
|
6287
6296
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6288
6297
|
|
|
@@ -6380,15 +6389,15 @@ function (_Component) {
|
|
|
6380
6389
|
}
|
|
6381
6390
|
};
|
|
6382
6391
|
|
|
6383
|
-
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6392
|
+
var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
|
|
6384
6393
|
style: styles.shadow,
|
|
6385
6394
|
className: "react-player__shadow"
|
|
6386
|
-
}, _react["default"].createElement("div", {
|
|
6395
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
6387
6396
|
style: styles.playIcon,
|
|
6388
6397
|
className: "react-player__play-icon"
|
|
6389
6398
|
}));
|
|
6390
6399
|
|
|
6391
|
-
return _react["default"].createElement("div", {
|
|
6400
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
6392
6401
|
style: styles.preview,
|
|
6393
6402
|
className: "react-player__preview",
|
|
6394
6403
|
onClick: onClick
|
|
@@ -6425,6 +6434,12 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6425
6434
|
|
|
6426
6435
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6427
6436
|
|
|
6437
|
+
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; } } }; }
|
|
6438
|
+
|
|
6439
|
+
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); }
|
|
6440
|
+
|
|
6441
|
+
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; }
|
|
6442
|
+
|
|
6428
6443
|
var PRELOAD_PLAYERS = [{
|
|
6429
6444
|
Player: YouTube_1.YouTube,
|
|
6430
6445
|
configKey: 'youtube',
|
|
@@ -6445,16 +6460,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6445
6460
|
|
|
6446
6461
|
function renderPreloadPlayers(url, controls, config) {
|
|
6447
6462
|
var players = [];
|
|
6448
|
-
|
|
6449
|
-
var
|
|
6450
|
-
|
|
6463
|
+
|
|
6464
|
+
var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
|
|
6465
|
+
_step;
|
|
6451
6466
|
|
|
6452
6467
|
try {
|
|
6453
|
-
for (
|
|
6468
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6454
6469
|
var player = _step.value;
|
|
6455
6470
|
|
|
6456
6471
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6457
|
-
players.push(_react["default"].createElement(_Player["default"], {
|
|
6472
|
+
players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
|
|
6458
6473
|
key: player.Player.displayName,
|
|
6459
6474
|
activePlayer: player.Player,
|
|
6460
6475
|
url: player.url,
|
|
@@ -6466,18 +6481,9 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6466
6481
|
}
|
|
6467
6482
|
}
|
|
6468
6483
|
} catch (err) {
|
|
6469
|
-
|
|
6470
|
-
_iteratorError = err;
|
|
6484
|
+
_iterator.e(err);
|
|
6471
6485
|
} finally {
|
|
6472
|
-
|
|
6473
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6474
|
-
_iterator["return"]();
|
|
6475
|
-
}
|
|
6476
|
-
} finally {
|
|
6477
|
-
if (_didIteratorError) {
|
|
6478
|
-
throw _iteratorError;
|
|
6479
|
-
}
|
|
6480
|
-
}
|
|
6486
|
+
_iterator.f();
|
|
6481
6487
|
}
|
|
6482
6488
|
|
|
6483
6489
|
return players;
|
|
@@ -6601,13 +6607,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6601
6607
|
|
|
6602
6608
|
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); }
|
|
6603
6609
|
|
|
6604
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6610
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6611
|
+
|
|
6612
|
+
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."); }
|
|
6613
|
+
|
|
6614
|
+
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); }
|
|
6605
6615
|
|
|
6606
|
-
function
|
|
6616
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
6607
6617
|
|
|
6608
|
-
function
|
|
6618
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6609
6619
|
|
|
6610
|
-
function
|
|
6620
|
+
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; }
|
|
6611
6621
|
|
|
6612
6622
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6613
6623
|
|
|
@@ -6615,12 +6625,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6615
6625
|
|
|
6616
6626
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6617
6627
|
|
|
6618
|
-
function
|
|
6628
|
+
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); }; }
|
|
6619
6629
|
|
|
6620
|
-
function
|
|
6630
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6621
6631
|
|
|
6622
6632
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6623
6633
|
|
|
6634
|
+
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; } }
|
|
6635
|
+
|
|
6636
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6637
|
+
|
|
6624
6638
|
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); }
|
|
6625
6639
|
|
|
6626
6640
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6630,14 +6644,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6630
6644
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6631
6645
|
var customPlayers = [];
|
|
6632
6646
|
|
|
6633
|
-
var ReactPlayer =
|
|
6634
|
-
/*#__PURE__*/
|
|
6635
|
-
function (_Component) {
|
|
6647
|
+
var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
6636
6648
|
_inherits(ReactPlayer, _Component);
|
|
6637
6649
|
|
|
6638
|
-
|
|
6639
|
-
var _getPrototypeOf2;
|
|
6650
|
+
var _super = _createSuper(ReactPlayer);
|
|
6640
6651
|
|
|
6652
|
+
function ReactPlayer() {
|
|
6641
6653
|
var _this;
|
|
6642
6654
|
|
|
6643
6655
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6646,7 +6658,7 @@ function (_Component) {
|
|
|
6646
6658
|
args[_key] = arguments[_key];
|
|
6647
6659
|
}
|
|
6648
6660
|
|
|
6649
|
-
_this =
|
|
6661
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6650
6662
|
|
|
6651
6663
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6652
6664
|
|
|
@@ -6757,7 +6769,7 @@ function (_Component) {
|
|
|
6757
6769
|
key: "renderActivePlayer",
|
|
6758
6770
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6759
6771
|
if (!url) return null;
|
|
6760
|
-
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6772
|
+
return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6761
6773
|
key: activePlayer.displayName,
|
|
6762
6774
|
ref: this.activePlayerRef,
|
|
6763
6775
|
config: this.config,
|
|
@@ -6794,14 +6806,14 @@ function (_Component) {
|
|
|
6794
6806
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6795
6807
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6796
6808
|
|
|
6797
|
-
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6809
|
+
var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
|
|
6798
6810
|
url: url,
|
|
6799
6811
|
light: light,
|
|
6800
6812
|
playIcon: playIcon,
|
|
6801
6813
|
onClick: this.handleClickPreview
|
|
6802
6814
|
});
|
|
6803
6815
|
|
|
6804
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
6816
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
6805
6817
|
ref: this.wrapperRef,
|
|
6806
6818
|
style: _objectSpread({}, style, {
|
|
6807
6819
|
width: width,
|
|
@@ -7358,7 +7370,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7358
7370
|
nodes.videos[series - 1].intro
|
|
7359
7371
|
)
|
|
7360
7372
|
),
|
|
7361
|
-
nodes.videos[series - 1] && nodes.videos[series - 1].text && React__default.createElement(BlockContent, _extends
|
|
7373
|
+
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()))
|
|
7362
7374
|
),
|
|
7363
7375
|
React__default.createElement(
|
|
7364
7376
|
'style',
|
|
@@ -7832,7 +7844,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
7832
7844
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
7833
7845
|
React__default.createElement(
|
|
7834
7846
|
'a',
|
|
7835
|
-
_extends
|
|
7847
|
+
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
7836
7848
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
7837
7849
|
React__default.createElement(
|
|
7838
7850
|
'div',
|
|
@@ -8142,7 +8154,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8142
8154
|
|
|
8143
8155
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8144
8156
|
if (biography) {
|
|
8145
|
-
return React__default.createElement(BlockContent, _extends
|
|
8157
|
+
return React__default.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8146
8158
|
}
|
|
8147
8159
|
};
|
|
8148
8160
|
|
|
@@ -8353,7 +8365,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8353
8365
|
React__default.createElement(
|
|
8354
8366
|
'div',
|
|
8355
8367
|
{ className: 'mt-2 mb-2' },
|
|
8356
|
-
React__default.createElement(BlockContent, _extends
|
|
8368
|
+
React__default.createElement(BlockContent, _extends({
|
|
8357
8369
|
serializers: getSerializers,
|
|
8358
8370
|
videoAccountIDs: accountIDs,
|
|
8359
8371
|
blocks: article.text,
|
|
@@ -8632,7 +8644,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
8632
8644
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
8633
8645
|
image.link ? React__default.createElement(
|
|
8634
8646
|
'a',
|
|
8635
|
-
_extends
|
|
8647
|
+
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
8636
8648
|
React__default.createElement(
|
|
8637
8649
|
'div',
|
|
8638
8650
|
{ className: 'multi-figure-image-container' },
|