@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
|
@@ -4,12 +4,12 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
|
|
|
4
4
|
|
|
5
5
|
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
6
6
|
var toConsumableArray = require('./toConsumableArray-9a3476fe.js');
|
|
7
|
-
var _extends
|
|
7
|
+
var _extends = require('./extends-60837c34.js');
|
|
8
8
|
var inherits = require('./inherits-513d81cd.js');
|
|
9
|
-
var _typeof = require('./typeof-725500bc.js');
|
|
9
|
+
var _typeof$1 = require('./typeof-725500bc.js');
|
|
10
10
|
var React = require('react');
|
|
11
11
|
var React__default = _interopDefault(React);
|
|
12
|
-
var index = require('./index-
|
|
12
|
+
var index = require('./index-099d45ae.js');
|
|
13
13
|
var PropTypes = require('prop-types');
|
|
14
14
|
var PropTypes__default = _interopDefault(PropTypes);
|
|
15
15
|
var Row = _interopDefault(require('react-bootstrap/Row'));
|
|
@@ -17,15 +17,15 @@ var Col = _interopDefault(require('react-bootstrap/Col'));
|
|
|
17
17
|
var moment = require('./moment-575fe24c.js');
|
|
18
18
|
var Router = require('next/router');
|
|
19
19
|
var Router__default = _interopDefault(Router);
|
|
20
|
-
var index$1 = require('./index-
|
|
20
|
+
var index$1 = require('./index-39beccb3.js');
|
|
21
21
|
var index$2 = require('./index-da796b8c.js');
|
|
22
|
-
var main = require('./main-
|
|
22
|
+
var main = require('./main-03ffa84c.js');
|
|
23
23
|
var entities = require('./entities-310b46ee.js');
|
|
24
24
|
var slicedToArray = require('./slicedToArray-8f385299.js');
|
|
25
25
|
var Segment = require('./Segment.js');
|
|
26
26
|
var Beam = require('./Beam.js');
|
|
27
27
|
var AdSlot = require('./AdSlot.js');
|
|
28
|
-
var BlockContent = require('./BlockContent-
|
|
28
|
+
var BlockContent = require('./BlockContent-80b15fac.js');
|
|
29
29
|
var smoothscroll = require('./smoothscroll-95231a70.js');
|
|
30
30
|
var GroupDeck = require('./GroupDeck.js');
|
|
31
31
|
var reactBootstrap = require('react-bootstrap');
|
|
@@ -98,21 +98,18 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
98
98
|
);
|
|
99
99
|
};
|
|
100
100
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
// do not edit .js files directly - edit src/index.jst
|
|
102
|
+
|
|
103
|
+
|
|
104
104
|
|
|
105
105
|
var fastDeepEqual = function equal(a, b) {
|
|
106
106
|
if (a === b) return true;
|
|
107
107
|
|
|
108
108
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
109
|
-
|
|
110
|
-
, arrB = isArray(b)
|
|
111
|
-
, i
|
|
112
|
-
, length
|
|
113
|
-
, key;
|
|
109
|
+
if (a.constructor !== b.constructor) return false;
|
|
114
110
|
|
|
115
|
-
|
|
111
|
+
var length, i, keys;
|
|
112
|
+
if (Array.isArray(a)) {
|
|
116
113
|
length = a.length;
|
|
117
114
|
if (length != b.length) return false;
|
|
118
115
|
for (i = length; i-- !== 0;)
|
|
@@ -120,35 +117,29 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
120
117
|
return true;
|
|
121
118
|
}
|
|
122
119
|
|
|
123
|
-
if (arrA != arrB) return false;
|
|
124
120
|
|
|
125
|
-
var dateA = a instanceof Date
|
|
126
|
-
, dateB = b instanceof Date;
|
|
127
|
-
if (dateA != dateB) return false;
|
|
128
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
129
121
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
if (
|
|
133
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
122
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
123
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
124
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
134
125
|
|
|
135
|
-
|
|
126
|
+
keys = Object.keys(a);
|
|
136
127
|
length = keys.length;
|
|
137
|
-
|
|
138
|
-
if (length !== keyList(b).length)
|
|
139
|
-
return false;
|
|
128
|
+
if (length !== Object.keys(b).length) return false;
|
|
140
129
|
|
|
141
130
|
for (i = length; i-- !== 0;)
|
|
142
|
-
if (!
|
|
131
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
143
132
|
|
|
144
133
|
for (i = length; i-- !== 0;) {
|
|
145
|
-
key = keys[i];
|
|
134
|
+
var key = keys[i];
|
|
135
|
+
|
|
146
136
|
if (!equal(a[key], b[key])) return false;
|
|
147
137
|
}
|
|
148
138
|
|
|
149
139
|
return true;
|
|
150
140
|
}
|
|
151
141
|
|
|
142
|
+
// true if both NaN, false otherwise
|
|
152
143
|
return a!==a && b!==b;
|
|
153
144
|
};
|
|
154
145
|
|
|
@@ -1571,199 +1562,235 @@ module.exports = exports['default'];
|
|
|
1571
1562
|
|
|
1572
1563
|
var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
|
|
1573
1564
|
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
1565
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
1577
1566
|
|
|
1578
1567
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1579
1568
|
|
|
1580
|
-
function
|
|
1569
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
1570
|
+
|
|
1571
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1572
|
+
|
|
1573
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
1574
|
+
|
|
1575
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1576
|
+
|
|
1577
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1578
|
+
|
|
1579
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
1580
|
+
|
|
1581
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1582
|
+
|
|
1583
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
1584
|
+
|
|
1585
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1586
|
+
|
|
1587
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
1581
1588
|
|
|
1582
|
-
function
|
|
1589
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
1583
1590
|
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
*
|
|
1587
|
-
*
|
|
1588
|
-
* @param {Object}
|
|
1591
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1592
|
+
/**
|
|
1593
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1594
|
+
*
|
|
1595
|
+
* @param {Object} prevProps
|
|
1596
|
+
* @param {Object} props
|
|
1589
1597
|
*/
|
|
1598
|
+
|
|
1590
1599
|
function shouldUpdateVideo(prevProps, props) {
|
|
1591
1600
|
// A changing video should always trigger an update
|
|
1592
1601
|
if (prevProps.videoId !== props.videoId) {
|
|
1593
1602
|
return true;
|
|
1594
|
-
}
|
|
1595
|
-
|
|
1596
|
-
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1603
|
+
} // Otherwise, a change in the start/end time playerVars also requires a player
|
|
1597
1604
|
// update.
|
|
1605
|
+
|
|
1606
|
+
|
|
1598
1607
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1599
1608
|
var vars = props.opts.playerVars || {};
|
|
1600
|
-
|
|
1601
1609
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1602
1610
|
}
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
*
|
|
1606
|
-
*
|
|
1607
|
-
*
|
|
1608
|
-
*
|
|
1609
|
-
* @param {Object} opts
|
|
1611
|
+
/**
|
|
1612
|
+
* Neutralize API options that only require a video update, leaving only options
|
|
1613
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1614
|
+
* player reset is necessary.
|
|
1615
|
+
*
|
|
1616
|
+
* @param {Object} opts
|
|
1610
1617
|
*/
|
|
1618
|
+
|
|
1619
|
+
|
|
1611
1620
|
function filterResetOptions(opts) {
|
|
1612
|
-
return
|
|
1613
|
-
playerVars:
|
|
1621
|
+
return _objectSpread({}, opts, {
|
|
1622
|
+
playerVars: _objectSpread({}, opts.playerVars, {
|
|
1614
1623
|
autoplay: 0,
|
|
1615
1624
|
start: 0,
|
|
1616
1625
|
end: 0
|
|
1617
1626
|
})
|
|
1618
1627
|
});
|
|
1619
1628
|
}
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
*
|
|
1623
|
-
*
|
|
1624
|
-
*
|
|
1625
|
-
*
|
|
1626
|
-
*
|
|
1627
|
-
* @param {Object}
|
|
1628
|
-
* @param {Object} props
|
|
1629
|
+
/**
|
|
1630
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1631
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1632
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1633
|
+
* those.
|
|
1634
|
+
*
|
|
1635
|
+
* @param {Object} prevProps
|
|
1636
|
+
* @param {Object} props
|
|
1629
1637
|
*/
|
|
1638
|
+
|
|
1639
|
+
|
|
1630
1640
|
function shouldResetPlayer(prevProps, props) {
|
|
1631
1641
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1632
1642
|
}
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
*
|
|
1636
|
-
*
|
|
1637
|
-
* @param {Object}
|
|
1638
|
-
* @param {Object} props
|
|
1643
|
+
/**
|
|
1644
|
+
* Check whether a props change should result in an id or className update.
|
|
1645
|
+
*
|
|
1646
|
+
* @param {Object} prevProps
|
|
1647
|
+
* @param {Object} props
|
|
1639
1648
|
*/
|
|
1649
|
+
|
|
1650
|
+
|
|
1640
1651
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1641
1652
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1642
1653
|
}
|
|
1643
1654
|
|
|
1644
|
-
var YouTube = function (_React$Component) {
|
|
1655
|
+
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
1645
1656
|
_inherits(YouTube, _React$Component);
|
|
1646
1657
|
|
|
1658
|
+
var _super = _createSuper(YouTube);
|
|
1659
|
+
|
|
1660
|
+
/**
|
|
1661
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1662
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1663
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1664
|
+
*/
|
|
1647
1665
|
function YouTube(props) {
|
|
1666
|
+
var _this;
|
|
1667
|
+
|
|
1648
1668
|
_classCallCheck(this, YouTube);
|
|
1649
1669
|
|
|
1650
|
-
|
|
1670
|
+
_this = _super.call(this, props);
|
|
1651
1671
|
|
|
1652
|
-
_this
|
|
1672
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
|
|
1653
1673
|
return _this.props.onReady(event);
|
|
1654
|
-
};
|
|
1674
|
+
});
|
|
1655
1675
|
|
|
1656
|
-
_this
|
|
1676
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
|
|
1657
1677
|
return _this.props.onError(event);
|
|
1658
|
-
};
|
|
1678
|
+
});
|
|
1659
1679
|
|
|
1660
|
-
_this
|
|
1680
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
|
|
1661
1681
|
_this.props.onStateChange(event);
|
|
1662
|
-
switch (event.data) {
|
|
1663
1682
|
|
|
1683
|
+
switch (event.data) {
|
|
1664
1684
|
case YouTube.PlayerState.ENDED:
|
|
1665
1685
|
_this.props.onEnd(event);
|
|
1686
|
+
|
|
1666
1687
|
break;
|
|
1667
1688
|
|
|
1668
1689
|
case YouTube.PlayerState.PLAYING:
|
|
1669
1690
|
_this.props.onPlay(event);
|
|
1691
|
+
|
|
1670
1692
|
break;
|
|
1671
1693
|
|
|
1672
1694
|
case YouTube.PlayerState.PAUSED:
|
|
1673
1695
|
_this.props.onPause(event);
|
|
1696
|
+
|
|
1674
1697
|
break;
|
|
1675
1698
|
}
|
|
1676
|
-
};
|
|
1699
|
+
});
|
|
1677
1700
|
|
|
1678
|
-
_this
|
|
1701
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
|
|
1679
1702
|
return _this.props.onPlaybackRateChange(event);
|
|
1680
|
-
};
|
|
1703
|
+
});
|
|
1681
1704
|
|
|
1682
|
-
_this
|
|
1705
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
|
|
1683
1706
|
return _this.props.onPlaybackQualityChange(event);
|
|
1684
|
-
};
|
|
1707
|
+
});
|
|
1685
1708
|
|
|
1686
|
-
_this
|
|
1709
|
+
_defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
|
|
1687
1710
|
// do not attempt to create a player server-side, it won't work
|
|
1688
|
-
if (typeof document === 'undefined') return;
|
|
1689
|
-
|
|
1690
|
-
var playerOpts =
|
|
1711
|
+
if (typeof document === 'undefined') return; // create player
|
|
1712
|
+
|
|
1713
|
+
var playerOpts = _objectSpread({}, _this.props.opts, {
|
|
1691
1714
|
// preload the `videoId` video if one is already given
|
|
1692
1715
|
videoId: _this.props.videoId
|
|
1693
1716
|
});
|
|
1694
|
-
|
|
1695
|
-
// attach event handlers
|
|
1717
|
+
|
|
1718
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
|
|
1719
|
+
|
|
1696
1720
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1721
|
+
|
|
1697
1722
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1723
|
+
|
|
1698
1724
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1725
|
+
|
|
1699
1726
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1727
|
+
|
|
1700
1728
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1701
|
-
};
|
|
1729
|
+
});
|
|
1702
1730
|
|
|
1703
|
-
_this
|
|
1731
|
+
_defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
|
|
1704
1732
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1705
|
-
};
|
|
1733
|
+
});
|
|
1706
1734
|
|
|
1707
|
-
_this
|
|
1735
|
+
_defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
|
|
1708
1736
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1709
1737
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1710
1738
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1711
1739
|
});
|
|
1712
|
-
};
|
|
1740
|
+
});
|
|
1713
1741
|
|
|
1714
|
-
_this
|
|
1742
|
+
_defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
|
|
1715
1743
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1716
1744
|
_this.internalPlayer.stopVideo();
|
|
1745
|
+
|
|
1717
1746
|
return;
|
|
1718
|
-
}
|
|
1747
|
+
} // set queueing options
|
|
1748
|
+
|
|
1719
1749
|
|
|
1720
|
-
// set queueing options
|
|
1721
1750
|
var autoplay = false;
|
|
1722
1751
|
var opts = {
|
|
1723
1752
|
videoId: _this.props.videoId
|
|
1724
1753
|
};
|
|
1754
|
+
|
|
1725
1755
|
if ('playerVars' in _this.props.opts) {
|
|
1726
1756
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1757
|
+
|
|
1727
1758
|
if ('start' in _this.props.opts.playerVars) {
|
|
1728
1759
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1729
1760
|
}
|
|
1761
|
+
|
|
1730
1762
|
if ('end' in _this.props.opts.playerVars) {
|
|
1731
1763
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1732
1764
|
}
|
|
1733
|
-
}
|
|
1765
|
+
} // if autoplay is enabled loadVideoById
|
|
1766
|
+
|
|
1734
1767
|
|
|
1735
|
-
// if autoplay is enabled loadVideoById
|
|
1736
1768
|
if (autoplay) {
|
|
1737
1769
|
_this.internalPlayer.loadVideoById(opts);
|
|
1770
|
+
|
|
1738
1771
|
return;
|
|
1739
|
-
}
|
|
1740
|
-
|
|
1772
|
+
} // default behaviour just cues the video
|
|
1773
|
+
|
|
1774
|
+
|
|
1741
1775
|
_this.internalPlayer.cueVideoById(opts);
|
|
1742
|
-
};
|
|
1776
|
+
});
|
|
1743
1777
|
|
|
1744
|
-
_this
|
|
1778
|
+
_defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
|
|
1745
1779
|
_this.container = container;
|
|
1746
|
-
};
|
|
1780
|
+
});
|
|
1747
1781
|
|
|
1748
1782
|
_this.container = null;
|
|
1749
1783
|
_this.internalPlayer = null;
|
|
1750
1784
|
return _this;
|
|
1751
1785
|
}
|
|
1752
1786
|
|
|
1753
|
-
/**
|
|
1754
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1755
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1756
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1757
|
-
*/
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
1787
|
_createClass(YouTube, [{
|
|
1761
|
-
key:
|
|
1788
|
+
key: "componentDidMount",
|
|
1762
1789
|
value: function componentDidMount() {
|
|
1763
1790
|
this.createPlayer();
|
|
1764
1791
|
}
|
|
1765
1792
|
}, {
|
|
1766
|
-
key:
|
|
1793
|
+
key: "componentDidUpdate",
|
|
1767
1794
|
value: function componentDidUpdate(prevProps) {
|
|
1768
1795
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1769
1796
|
this.updatePlayer();
|
|
@@ -1778,112 +1805,58 @@ var YouTube = function (_React$Component) {
|
|
|
1778
1805
|
}
|
|
1779
1806
|
}
|
|
1780
1807
|
}, {
|
|
1781
|
-
key:
|
|
1808
|
+
key: "componentWillUnmount",
|
|
1782
1809
|
value: function componentWillUnmount() {
|
|
1783
|
-
/**
|
|
1784
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1785
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1786
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1787
|
-
* this method isn't quick enough to reset the container element.
|
|
1810
|
+
/**
|
|
1811
|
+
* Note: The `youtube-player` package that is used promisifies all YouTube
|
|
1812
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1813
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1814
|
+
* this method isn't quick enough to reset the container element.
|
|
1788
1815
|
*/
|
|
1789
1816
|
this.internalPlayer.destroy();
|
|
1790
1817
|
}
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
*
|
|
1794
|
-
*
|
|
1795
|
-
*
|
|
1796
|
-
* @param {Object} target - player object
|
|
1797
|
-
*/
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
/**
|
|
1801
|
-
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1802
|
-
*
|
|
1803
|
-
* @param {Object} event
|
|
1804
|
-
* @param {Integer} data - error type
|
|
1805
|
-
* @param {Object} target - player object
|
|
1806
|
-
*/
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
/**
|
|
1810
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1811
|
-
*
|
|
1812
|
-
* @param {Object} event
|
|
1813
|
-
* @param {Integer} data - status change type
|
|
1814
|
-
* @param {Object} target - actual YT player
|
|
1815
|
-
*/
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
/**
|
|
1819
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1820
|
-
*
|
|
1821
|
-
* @param {Object} event
|
|
1822
|
-
* @param {Float} data - playback rate
|
|
1823
|
-
* @param {Object} target - actual YT player
|
|
1824
|
-
*/
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
/**
|
|
1828
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1829
|
-
*
|
|
1830
|
-
* @param {Object} event
|
|
1831
|
-
* @param {String} data - playback quality
|
|
1832
|
-
* @param {Object} target - actual YT player
|
|
1833
|
-
*/
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
/**
|
|
1837
|
-
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1838
|
-
*/
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
/**
|
|
1842
|
-
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1843
|
-
*/
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
/**
|
|
1847
|
-
* Method to update the id and class of the Youtube Player iframe.
|
|
1848
|
-
* React should update this automatically but since the Youtube Player API
|
|
1849
|
-
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1850
|
-
*/
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
/**
|
|
1854
|
-
* Call Youtube Player API methods to update the currently playing video.
|
|
1855
|
-
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1856
|
-
* Youtube Player API methods to update the video.
|
|
1818
|
+
/**
|
|
1819
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1820
|
+
*
|
|
1821
|
+
* @param {Object} event
|
|
1822
|
+
* @param {Object} target - player object
|
|
1857
1823
|
*/
|
|
1858
1824
|
|
|
1859
1825
|
}, {
|
|
1860
|
-
key:
|
|
1826
|
+
key: "render",
|
|
1861
1827
|
value: function render() {
|
|
1862
|
-
return React__default.createElement(
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1828
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1829
|
+
className: this.props.containerClassName
|
|
1830
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1831
|
+
id: this.props.id,
|
|
1832
|
+
className: this.props.className,
|
|
1833
|
+
ref: this.refContainer
|
|
1834
|
+
}));
|
|
1867
1835
|
}
|
|
1868
1836
|
}]);
|
|
1869
1837
|
|
|
1870
1838
|
return YouTube;
|
|
1871
1839
|
}(React__default.Component);
|
|
1872
1840
|
|
|
1841
|
+
_defineProperty(YouTube, "PlayerState", {
|
|
1842
|
+
UNSTARTED: -1,
|
|
1843
|
+
ENDED: 0,
|
|
1844
|
+
PLAYING: 1,
|
|
1845
|
+
PAUSED: 2,
|
|
1846
|
+
BUFFERING: 3,
|
|
1847
|
+
CUED: 5
|
|
1848
|
+
});
|
|
1849
|
+
|
|
1873
1850
|
YouTube.propTypes = {
|
|
1874
1851
|
videoId: PropTypes__default.string,
|
|
1875
|
-
|
|
1876
1852
|
// custom ID for player element
|
|
1877
1853
|
id: PropTypes__default.string,
|
|
1878
|
-
|
|
1879
1854
|
// custom class name for player element
|
|
1880
1855
|
className: PropTypes__default.string,
|
|
1881
1856
|
// custom class name for player container element
|
|
1882
1857
|
containerClassName: PropTypes__default.string,
|
|
1883
|
-
|
|
1884
1858
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1885
1859
|
opts: PropTypes__default.objectOf(PropTypes__default.any),
|
|
1886
|
-
|
|
1887
1860
|
// event subscriptions
|
|
1888
1861
|
onReady: PropTypes__default.func,
|
|
1889
1862
|
onError: PropTypes__default.func,
|
|
@@ -1895,6 +1868,7 @@ YouTube.propTypes = {
|
|
|
1895
1868
|
onPlaybackQualityChange: PropTypes__default.func
|
|
1896
1869
|
};
|
|
1897
1870
|
YouTube.defaultProps = {
|
|
1871
|
+
videoId: null,
|
|
1898
1872
|
id: null,
|
|
1899
1873
|
className: null,
|
|
1900
1874
|
opts: {},
|
|
@@ -1908,14 +1882,6 @@ YouTube.defaultProps = {
|
|
|
1908
1882
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1909
1883
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1910
1884
|
};
|
|
1911
|
-
YouTube.PlayerState = {
|
|
1912
|
-
UNSTARTED: -1,
|
|
1913
|
-
ENDED: 0,
|
|
1914
|
-
PLAYING: 1,
|
|
1915
|
-
PAUSED: 2,
|
|
1916
|
-
BUFFERING: 3,
|
|
1917
|
-
CUED: 5
|
|
1918
|
-
};
|
|
1919
1885
|
|
|
1920
1886
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1921
1887
|
var url = _ref.url;
|
|
@@ -2179,7 +2145,7 @@ var Media = function Media(_ref) {
|
|
|
2179
2145
|
React__default.createElement(
|
|
2180
2146
|
index$2.LazyLoad,
|
|
2181
2147
|
{ once: true },
|
|
2182
|
-
React__default.createElement(reactBootstrap.Figure.Image, _extends
|
|
2148
|
+
React__default.createElement(reactBootstrap.Figure.Image, _extends._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt }))
|
|
2183
2149
|
),
|
|
2184
2150
|
caption && React__default.createElement(
|
|
2185
2151
|
reactBootstrap.Figure.Caption,
|
|
@@ -2191,7 +2157,7 @@ var Media = function Media(_ref) {
|
|
|
2191
2157
|
} else if (caption && caption !== '') {
|
|
2192
2158
|
return React__default.createElement(
|
|
2193
2159
|
'a',
|
|
2194
|
-
_extends
|
|
2160
|
+
_extends._extends({}, uploadDoc.downloadMedia ? {
|
|
2195
2161
|
href: uploadDoc.asset.url + '?dl='
|
|
2196
2162
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2197
2163
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2244,7 +2210,7 @@ var Video = function Video(_ref) {
|
|
|
2244
2210
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2245
2211
|
//console.log('success:', success.ref)
|
|
2246
2212
|
var player = success.ref;
|
|
2247
|
-
if (_typeof._typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2213
|
+
if (_typeof$1._typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2248
2214
|
player.ima3.settings.debug = true;
|
|
2249
2215
|
if (targeting.content_placement && targeting.document_url) {
|
|
2250
2216
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2759,11 +2725,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2759
2725
|
|
|
2760
2726
|
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; }
|
|
2761
2727
|
|
|
2762
|
-
function
|
|
2728
|
+
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; } } }; }
|
|
2729
|
+
|
|
2730
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2731
|
+
|
|
2732
|
+
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."); }
|
|
2763
2733
|
|
|
2764
|
-
function
|
|
2734
|
+
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); }
|
|
2765
2735
|
|
|
2766
|
-
function
|
|
2736
|
+
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; }
|
|
2737
|
+
|
|
2738
|
+
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; }
|
|
2767
2739
|
|
|
2768
2740
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2769
2741
|
|
|
@@ -2893,12 +2865,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
2893
2865
|
|
|
2894
2866
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
2895
2867
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
2896
|
-
|
|
2897
|
-
var
|
|
2898
|
-
|
|
2868
|
+
|
|
2869
|
+
var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
|
|
2870
|
+
_step;
|
|
2899
2871
|
|
|
2900
2872
|
try {
|
|
2901
|
-
for (
|
|
2873
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
2902
2874
|
var p = _step.value;
|
|
2903
2875
|
|
|
2904
2876
|
if (props$1[p]) {
|
|
@@ -2913,18 +2885,9 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
2913
2885
|
}
|
|
2914
2886
|
}
|
|
2915
2887
|
} catch (err) {
|
|
2916
|
-
|
|
2917
|
-
_iteratorError = err;
|
|
2888
|
+
_iterator.e(err);
|
|
2918
2889
|
} finally {
|
|
2919
|
-
|
|
2920
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
2921
|
-
_iterator["return"]();
|
|
2922
|
-
}
|
|
2923
|
-
} finally {
|
|
2924
|
-
if (_didIteratorError) {
|
|
2925
|
-
throw _iteratorError;
|
|
2926
|
-
}
|
|
2927
|
-
}
|
|
2890
|
+
_iterator.f();
|
|
2928
2891
|
}
|
|
2929
2892
|
|
|
2930
2893
|
return config;
|
|
@@ -3071,12 +3034,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3071
3034
|
|
|
3072
3035
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3073
3036
|
|
|
3074
|
-
function
|
|
3037
|
+
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); }; }
|
|
3075
3038
|
|
|
3076
|
-
function
|
|
3039
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3077
3040
|
|
|
3078
3041
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3079
3042
|
|
|
3043
|
+
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; } }
|
|
3044
|
+
|
|
3045
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3046
|
+
|
|
3080
3047
|
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); }
|
|
3081
3048
|
|
|
3082
3049
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3085,14 +3052,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3085
3052
|
|
|
3086
3053
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3087
3054
|
|
|
3088
|
-
var Player =
|
|
3089
|
-
/*#__PURE__*/
|
|
3090
|
-
function (_Component) {
|
|
3055
|
+
var Player = /*#__PURE__*/function (_Component) {
|
|
3091
3056
|
_inherits(Player, _Component);
|
|
3092
3057
|
|
|
3093
|
-
|
|
3094
|
-
var _getPrototypeOf2;
|
|
3058
|
+
var _super = _createSuper(Player);
|
|
3095
3059
|
|
|
3060
|
+
function Player() {
|
|
3096
3061
|
var _this;
|
|
3097
3062
|
|
|
3098
3063
|
_classCallCheck(this, Player);
|
|
@@ -3101,7 +3066,7 @@ function (_Component) {
|
|
|
3101
3066
|
_args[_key] = arguments[_key];
|
|
3102
3067
|
}
|
|
3103
3068
|
|
|
3104
|
-
_this =
|
|
3069
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
3105
3070
|
|
|
3106
3071
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3107
3072
|
|
|
@@ -3426,7 +3391,7 @@ function (_Component) {
|
|
|
3426
3391
|
return null;
|
|
3427
3392
|
}
|
|
3428
3393
|
|
|
3429
|
-
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3394
|
+
return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
|
|
3430
3395
|
ref: this.ref,
|
|
3431
3396
|
onReady: this.handleReady,
|
|
3432
3397
|
onPlay: this.handlePlay,
|
|
@@ -3487,12 +3452,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3487
3452
|
|
|
3488
3453
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3489
3454
|
|
|
3490
|
-
function
|
|
3455
|
+
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); }; }
|
|
3491
3456
|
|
|
3492
|
-
function
|
|
3457
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3493
3458
|
|
|
3494
3459
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3495
3460
|
|
|
3461
|
+
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; } }
|
|
3462
|
+
|
|
3463
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3464
|
+
|
|
3496
3465
|
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); }
|
|
3497
3466
|
|
|
3498
3467
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3504,14 +3473,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3504
3473
|
function createSinglePlayer(activePlayer) {
|
|
3505
3474
|
var _class, _temp;
|
|
3506
3475
|
|
|
3507
|
-
return _temp = _class =
|
|
3508
|
-
/*#__PURE__*/
|
|
3509
|
-
function (_Component) {
|
|
3476
|
+
return _temp = _class = /*#__PURE__*/function (_Component) {
|
|
3510
3477
|
_inherits(SinglePlayer, _Component);
|
|
3511
3478
|
|
|
3512
|
-
|
|
3513
|
-
var _getPrototypeOf2;
|
|
3479
|
+
var _super = _createSuper(SinglePlayer);
|
|
3514
3480
|
|
|
3481
|
+
function SinglePlayer() {
|
|
3515
3482
|
var _this;
|
|
3516
3483
|
|
|
3517
3484
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3520,7 +3487,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3520
3487
|
args[_key] = arguments[_key];
|
|
3521
3488
|
}
|
|
3522
3489
|
|
|
3523
|
-
_this =
|
|
3490
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3524
3491
|
|
|
3525
3492
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3526
3493
|
|
|
@@ -3588,12 +3555,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3588
3555
|
height = _this$props.height,
|
|
3589
3556
|
Wrapper = _this$props.wrapper;
|
|
3590
3557
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3591
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
3558
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
3592
3559
|
style: _objectSpread({}, style, {
|
|
3593
3560
|
width: width,
|
|
3594
3561
|
height: height
|
|
3595
3562
|
})
|
|
3596
|
-
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3563
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3597
3564
|
ref: this.ref,
|
|
3598
3565
|
activePlayer: activePlayer,
|
|
3599
3566
|
config: this.config
|
|
@@ -3639,23 +3606,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3639
3606
|
|
|
3640
3607
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3641
3608
|
|
|
3642
|
-
function
|
|
3609
|
+
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); }; }
|
|
3643
3610
|
|
|
3644
|
-
function
|
|
3611
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3645
3612
|
|
|
3646
3613
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3647
3614
|
|
|
3615
|
+
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; } }
|
|
3616
|
+
|
|
3617
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3618
|
+
|
|
3648
3619
|
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); }
|
|
3649
3620
|
|
|
3650
3621
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3651
3622
|
|
|
3652
3623
|
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; }
|
|
3653
3624
|
|
|
3654
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3625
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3655
3626
|
|
|
3656
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3627
|
+
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."); }
|
|
3657
3628
|
|
|
3658
|
-
function
|
|
3629
|
+
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); }
|
|
3630
|
+
|
|
3631
|
+
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; }
|
|
3632
|
+
|
|
3633
|
+
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; }
|
|
3659
3634
|
|
|
3660
3635
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3661
3636
|
|
|
@@ -3680,14 +3655,12 @@ function parsePlaylist(url) {
|
|
|
3680
3655
|
return {};
|
|
3681
3656
|
}
|
|
3682
3657
|
|
|
3683
|
-
var YouTube =
|
|
3684
|
-
/*#__PURE__*/
|
|
3685
|
-
function (_Component) {
|
|
3658
|
+
var YouTube = /*#__PURE__*/function (_Component) {
|
|
3686
3659
|
_inherits(YouTube, _Component);
|
|
3687
3660
|
|
|
3688
|
-
|
|
3689
|
-
var _getPrototypeOf2;
|
|
3661
|
+
var _super = _createSuper(YouTube);
|
|
3690
3662
|
|
|
3663
|
+
function YouTube() {
|
|
3691
3664
|
var _this;
|
|
3692
3665
|
|
|
3693
3666
|
_classCallCheck(this, YouTube);
|
|
@@ -3696,7 +3669,7 @@ function (_Component) {
|
|
|
3696
3669
|
args[_key] = arguments[_key];
|
|
3697
3670
|
}
|
|
3698
3671
|
|
|
3699
|
-
_this =
|
|
3672
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3700
3673
|
|
|
3701
3674
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3702
3675
|
|
|
@@ -3884,9 +3857,9 @@ function (_Component) {
|
|
|
3884
3857
|
height: '100%',
|
|
3885
3858
|
display: display
|
|
3886
3859
|
};
|
|
3887
|
-
return _react["default"].createElement("div", {
|
|
3860
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
3888
3861
|
style: style
|
|
3889
|
-
}, _react["default"].createElement("div", {
|
|
3862
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
3890
3863
|
ref: this.ref
|
|
3891
3864
|
}));
|
|
3892
3865
|
}
|
|
@@ -3942,12 +3915,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3942
3915
|
|
|
3943
3916
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3944
3917
|
|
|
3945
|
-
function
|
|
3918
|
+
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); }; }
|
|
3946
3919
|
|
|
3947
|
-
function
|
|
3920
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3948
3921
|
|
|
3949
3922
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3950
3923
|
|
|
3924
|
+
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; } }
|
|
3925
|
+
|
|
3926
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3927
|
+
|
|
3951
3928
|
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); }
|
|
3952
3929
|
|
|
3953
3930
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3956,16 +3933,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3956
3933
|
|
|
3957
3934
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
3958
3935
|
var SDK_GLOBAL = 'SC';
|
|
3959
|
-
var MATCH_URL = /(soundcloud\.com|snd\.sc)
|
|
3936
|
+
var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
3960
3937
|
|
|
3961
|
-
var SoundCloud =
|
|
3962
|
-
/*#__PURE__*/
|
|
3963
|
-
function (_Component) {
|
|
3938
|
+
var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
3964
3939
|
_inherits(SoundCloud, _Component);
|
|
3965
3940
|
|
|
3966
|
-
|
|
3967
|
-
var _getPrototypeOf2;
|
|
3941
|
+
var _super = _createSuper(SoundCloud);
|
|
3968
3942
|
|
|
3943
|
+
function SoundCloud() {
|
|
3969
3944
|
var _this;
|
|
3970
3945
|
|
|
3971
3946
|
_classCallCheck(this, SoundCloud);
|
|
@@ -3974,7 +3949,7 @@ function (_Component) {
|
|
|
3974
3949
|
args[_key] = arguments[_key];
|
|
3975
3950
|
}
|
|
3976
3951
|
|
|
3977
|
-
_this =
|
|
3952
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3978
3953
|
|
|
3979
3954
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3980
3955
|
|
|
@@ -4095,7 +4070,7 @@ function (_Component) {
|
|
|
4095
4070
|
height: '100%',
|
|
4096
4071
|
display: display
|
|
4097
4072
|
};
|
|
4098
|
-
return _react["default"].createElement("iframe", {
|
|
4073
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4099
4074
|
ref: this.ref,
|
|
4100
4075
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4101
4076
|
style: style,
|
|
@@ -4157,12 +4132,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4157
4132
|
|
|
4158
4133
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4159
4134
|
|
|
4160
|
-
function
|
|
4135
|
+
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); }; }
|
|
4161
4136
|
|
|
4162
|
-
function
|
|
4137
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4163
4138
|
|
|
4164
4139
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4165
4140
|
|
|
4141
|
+
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; } }
|
|
4142
|
+
|
|
4143
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4144
|
+
|
|
4166
4145
|
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); }
|
|
4167
4146
|
|
|
4168
4147
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4174,14 +4153,12 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4174
4153
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4175
4154
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4176
4155
|
|
|
4177
|
-
var Vimeo =
|
|
4178
|
-
/*#__PURE__*/
|
|
4179
|
-
function (_Component) {
|
|
4156
|
+
var Vimeo = /*#__PURE__*/function (_Component) {
|
|
4180
4157
|
_inherits(Vimeo, _Component);
|
|
4181
4158
|
|
|
4182
|
-
|
|
4183
|
-
var _getPrototypeOf2;
|
|
4159
|
+
var _super = _createSuper(Vimeo);
|
|
4184
4160
|
|
|
4161
|
+
function Vimeo() {
|
|
4185
4162
|
var _this;
|
|
4186
4163
|
|
|
4187
4164
|
_classCallCheck(this, Vimeo);
|
|
@@ -4190,7 +4167,7 @@ function (_Component) {
|
|
|
4190
4167
|
args[_key] = arguments[_key];
|
|
4191
4168
|
}
|
|
4192
4169
|
|
|
4193
|
-
_this =
|
|
4170
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4194
4171
|
|
|
4195
4172
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4196
4173
|
|
|
@@ -4347,7 +4324,7 @@ function (_Component) {
|
|
|
4347
4324
|
overflow: 'hidden',
|
|
4348
4325
|
display: display
|
|
4349
4326
|
};
|
|
4350
|
-
return _react["default"].createElement("div", {
|
|
4327
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4351
4328
|
key: this.props.url,
|
|
4352
4329
|
ref: this.ref,
|
|
4353
4330
|
style: style
|
|
@@ -4407,12 +4384,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4407
4384
|
|
|
4408
4385
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4409
4386
|
|
|
4410
|
-
function
|
|
4387
|
+
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); }; }
|
|
4411
4388
|
|
|
4412
|
-
function
|
|
4389
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4413
4390
|
|
|
4414
4391
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4415
4392
|
|
|
4393
|
+
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; } }
|
|
4394
|
+
|
|
4395
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4396
|
+
|
|
4416
4397
|
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); }
|
|
4417
4398
|
|
|
4418
4399
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4425,14 +4406,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4425
4406
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4426
4407
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4427
4408
|
|
|
4428
|
-
var Facebook =
|
|
4429
|
-
/*#__PURE__*/
|
|
4430
|
-
function (_Component) {
|
|
4409
|
+
var Facebook = /*#__PURE__*/function (_Component) {
|
|
4431
4410
|
_inherits(Facebook, _Component);
|
|
4432
4411
|
|
|
4433
|
-
|
|
4434
|
-
var _getPrototypeOf2;
|
|
4412
|
+
var _super = _createSuper(Facebook);
|
|
4435
4413
|
|
|
4414
|
+
function Facebook() {
|
|
4436
4415
|
var _this;
|
|
4437
4416
|
|
|
4438
4417
|
_classCallCheck(this, Facebook);
|
|
@@ -4441,7 +4420,7 @@ function (_Component) {
|
|
|
4441
4420
|
args[_key] = arguments[_key];
|
|
4442
4421
|
}
|
|
4443
4422
|
|
|
4444
|
-
_this =
|
|
4423
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4445
4424
|
|
|
4446
4425
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4447
4426
|
|
|
@@ -4557,7 +4536,7 @@ function (_Component) {
|
|
|
4557
4536
|
width: '100%',
|
|
4558
4537
|
height: '100%'
|
|
4559
4538
|
};
|
|
4560
|
-
return _react["default"].createElement("div", {
|
|
4539
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4561
4540
|
style: style,
|
|
4562
4541
|
id: this.playerID,
|
|
4563
4542
|
className: "fb-video",
|
|
@@ -4617,12 +4596,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4617
4596
|
|
|
4618
4597
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4619
4598
|
|
|
4620
|
-
function
|
|
4599
|
+
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); }; }
|
|
4621
4600
|
|
|
4622
|
-
function
|
|
4601
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4623
4602
|
|
|
4624
4603
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4625
4604
|
|
|
4605
|
+
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; } }
|
|
4606
|
+
|
|
4607
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4608
|
+
|
|
4626
4609
|
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); }
|
|
4627
4610
|
|
|
4628
4611
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4633,14 +4616,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4633
4616
|
var SDK_GLOBAL = 'playerjs';
|
|
4634
4617
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4635
4618
|
|
|
4636
|
-
var Streamable =
|
|
4637
|
-
/*#__PURE__*/
|
|
4638
|
-
function (_Component) {
|
|
4619
|
+
var Streamable = /*#__PURE__*/function (_Component) {
|
|
4639
4620
|
_inherits(Streamable, _Component);
|
|
4640
4621
|
|
|
4641
|
-
|
|
4642
|
-
var _getPrototypeOf2;
|
|
4622
|
+
var _super = _createSuper(Streamable);
|
|
4643
4623
|
|
|
4624
|
+
function Streamable() {
|
|
4644
4625
|
var _this;
|
|
4645
4626
|
|
|
4646
4627
|
_classCallCheck(this, Streamable);
|
|
@@ -4649,7 +4630,7 @@ function (_Component) {
|
|
|
4649
4630
|
args[_key] = arguments[_key];
|
|
4650
4631
|
}
|
|
4651
4632
|
|
|
4652
|
-
_this =
|
|
4633
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4653
4634
|
|
|
4654
4635
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4655
4636
|
|
|
@@ -4769,7 +4750,7 @@ function (_Component) {
|
|
|
4769
4750
|
width: '100%',
|
|
4770
4751
|
height: '100%'
|
|
4771
4752
|
};
|
|
4772
|
-
return _react["default"].createElement("iframe", {
|
|
4753
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4773
4754
|
ref: this.ref,
|
|
4774
4755
|
src: "https://streamable.com/o/".concat(id),
|
|
4775
4756
|
frameBorder: "0",
|
|
@@ -4830,12 +4811,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4830
4811
|
|
|
4831
4812
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4832
4813
|
|
|
4833
|
-
function
|
|
4814
|
+
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); }; }
|
|
4834
4815
|
|
|
4835
|
-
function
|
|
4816
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4836
4817
|
|
|
4837
4818
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4838
4819
|
|
|
4820
|
+
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; } }
|
|
4821
|
+
|
|
4822
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4823
|
+
|
|
4839
4824
|
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); }
|
|
4840
4825
|
|
|
4841
4826
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4846,26 +4831,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4846
4831
|
var SDK_GLOBAL = 'Wistia';
|
|
4847
4832
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4848
4833
|
|
|
4849
|
-
var Wistia =
|
|
4850
|
-
/*#__PURE__*/
|
|
4851
|
-
function (_Component) {
|
|
4834
|
+
var Wistia = /*#__PURE__*/function (_Component) {
|
|
4852
4835
|
_inherits(Wistia, _Component);
|
|
4853
4836
|
|
|
4854
|
-
|
|
4855
|
-
var _getPrototypeOf2;
|
|
4837
|
+
var _super = _createSuper(Wistia);
|
|
4856
4838
|
|
|
4839
|
+
function Wistia() {
|
|
4857
4840
|
var _this;
|
|
4858
4841
|
|
|
4859
4842
|
_classCallCheck(this, Wistia);
|
|
4860
4843
|
|
|
4861
|
-
for (var _len = arguments.length,
|
|
4862
|
-
|
|
4844
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4845
|
+
_args[_key] = arguments[_key];
|
|
4863
4846
|
}
|
|
4864
4847
|
|
|
4865
|
-
_this =
|
|
4848
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
4866
4849
|
|
|
4867
4850
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4868
4851
|
|
|
4852
|
+
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4853
|
+
var _this$props;
|
|
4854
|
+
|
|
4855
|
+
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4856
|
+
});
|
|
4857
|
+
|
|
4858
|
+
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4859
|
+
var _this$props2;
|
|
4860
|
+
|
|
4861
|
+
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4862
|
+
});
|
|
4863
|
+
|
|
4864
|
+
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
4865
|
+
var _this$props3;
|
|
4866
|
+
|
|
4867
|
+
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
4868
|
+
});
|
|
4869
|
+
|
|
4870
|
+
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
4871
|
+
var _this$props4;
|
|
4872
|
+
|
|
4873
|
+
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
4874
|
+
});
|
|
4875
|
+
|
|
4869
4876
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
4870
4877
|
_this.callPlayer('mute');
|
|
4871
4878
|
});
|
|
@@ -4887,17 +4894,13 @@ function (_Component) {
|
|
|
4887
4894
|
value: function load(url) {
|
|
4888
4895
|
var _this2 = this;
|
|
4889
4896
|
|
|
4890
|
-
var _this$
|
|
4891
|
-
playing = _this$
|
|
4892
|
-
muted = _this$
|
|
4893
|
-
controls = _this$
|
|
4894
|
-
_onReady = _this$
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
onSeek = _this$props.onSeek,
|
|
4898
|
-
onEnded = _this$props.onEnded,
|
|
4899
|
-
config = _this$props.config,
|
|
4900
|
-
onError = _this$props.onError;
|
|
4897
|
+
var _this$props5 = this.props,
|
|
4898
|
+
playing = _this$props5.playing,
|
|
4899
|
+
muted = _this$props5.muted,
|
|
4900
|
+
controls = _this$props5.controls,
|
|
4901
|
+
_onReady = _this$props5.onReady,
|
|
4902
|
+
config = _this$props5.config,
|
|
4903
|
+
onError = _this$props5.onError;
|
|
4901
4904
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
4902
4905
|
window._wq = window._wq || [];
|
|
4903
4906
|
|
|
@@ -4914,19 +4917,28 @@ function (_Component) {
|
|
|
4914
4917
|
|
|
4915
4918
|
_this2.unbind();
|
|
4916
4919
|
|
|
4917
|
-
_this2.player.bind('play', onPlay);
|
|
4920
|
+
_this2.player.bind('play', _this2.onPlay);
|
|
4918
4921
|
|
|
4919
|
-
_this2.player.bind('pause', onPause);
|
|
4922
|
+
_this2.player.bind('pause', _this2.onPause);
|
|
4920
4923
|
|
|
4921
|
-
_this2.player.bind('seek', onSeek);
|
|
4924
|
+
_this2.player.bind('seek', _this2.onSeek);
|
|
4922
4925
|
|
|
4923
|
-
_this2.player.bind('end', onEnded);
|
|
4926
|
+
_this2.player.bind('end', _this2.onEnded);
|
|
4924
4927
|
|
|
4925
4928
|
_onReady();
|
|
4926
4929
|
}
|
|
4927
4930
|
});
|
|
4928
4931
|
}, onError);
|
|
4929
4932
|
}
|
|
4933
|
+
}, {
|
|
4934
|
+
key: "unbind",
|
|
4935
|
+
value: function unbind() {
|
|
4936
|
+
this.player.unbind('play', this.onPlay);
|
|
4937
|
+
this.player.unbind('pause', this.onPause);
|
|
4938
|
+
this.player.unbind('seek', this.onSeek);
|
|
4939
|
+
this.player.unbind('end', this.onEnded);
|
|
4940
|
+
} // Proxy methods to prevent listener leaks
|
|
4941
|
+
|
|
4930
4942
|
}, {
|
|
4931
4943
|
key: "play",
|
|
4932
4944
|
value: function play() {
|
|
@@ -4937,19 +4949,6 @@ function (_Component) {
|
|
|
4937
4949
|
value: function pause() {
|
|
4938
4950
|
this.callPlayer('pause');
|
|
4939
4951
|
}
|
|
4940
|
-
}, {
|
|
4941
|
-
key: "unbind",
|
|
4942
|
-
value: function unbind() {
|
|
4943
|
-
var _this$props2 = this.props,
|
|
4944
|
-
onPlay = _this$props2.onPlay,
|
|
4945
|
-
onPause = _this$props2.onPause,
|
|
4946
|
-
onSeek = _this$props2.onSeek,
|
|
4947
|
-
onEnded = _this$props2.onEnded;
|
|
4948
|
-
this.player.unbind('play', onPlay);
|
|
4949
|
-
this.player.unbind('pause', onPause);
|
|
4950
|
-
this.player.unbind('seek', onSeek);
|
|
4951
|
-
this.player.unbind('end', onEnded);
|
|
4952
|
-
}
|
|
4953
4952
|
}, {
|
|
4954
4953
|
key: "stop",
|
|
4955
4954
|
value: function stop() {
|
|
@@ -4995,7 +4994,7 @@ function (_Component) {
|
|
|
4995
4994
|
width: '100%',
|
|
4996
4995
|
height: '100%'
|
|
4997
4996
|
};
|
|
4998
|
-
return _react["default"].createElement("div", {
|
|
4997
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4999
4998
|
key: id,
|
|
5000
4999
|
className: className,
|
|
5001
5000
|
style: style
|
|
@@ -5055,12 +5054,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5055
5054
|
|
|
5056
5055
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5057
5056
|
|
|
5058
|
-
function
|
|
5057
|
+
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); }; }
|
|
5059
5058
|
|
|
5060
|
-
function
|
|
5059
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5061
5060
|
|
|
5062
5061
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5063
5062
|
|
|
5063
|
+
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; } }
|
|
5064
|
+
|
|
5065
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5066
|
+
|
|
5064
5067
|
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); }
|
|
5065
5068
|
|
|
5066
5069
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5073,14 +5076,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5073
5076
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5074
5077
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5075
5078
|
|
|
5076
|
-
var Twitch =
|
|
5077
|
-
/*#__PURE__*/
|
|
5078
|
-
function (_Component) {
|
|
5079
|
+
var Twitch = /*#__PURE__*/function (_Component) {
|
|
5079
5080
|
_inherits(Twitch, _Component);
|
|
5080
5081
|
|
|
5081
|
-
|
|
5082
|
-
var _getPrototypeOf2;
|
|
5082
|
+
var _super = _createSuper(Twitch);
|
|
5083
5083
|
|
|
5084
|
+
function Twitch() {
|
|
5084
5085
|
var _this;
|
|
5085
5086
|
|
|
5086
5087
|
_classCallCheck(this, Twitch);
|
|
@@ -5089,7 +5090,7 @@ function (_Component) {
|
|
|
5089
5090
|
args[_key] = arguments[_key];
|
|
5090
5091
|
}
|
|
5091
5092
|
|
|
5092
|
-
_this =
|
|
5093
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5093
5094
|
|
|
5094
5095
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5095
5096
|
|
|
@@ -5210,7 +5211,7 @@ function (_Component) {
|
|
|
5210
5211
|
width: '100%',
|
|
5211
5212
|
height: '100%'
|
|
5212
5213
|
};
|
|
5213
|
-
return _react["default"].createElement("div", {
|
|
5214
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5214
5215
|
style: style,
|
|
5215
5216
|
id: this.playerID
|
|
5216
5217
|
});
|
|
@@ -5263,11 +5264,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5263
5264
|
|
|
5264
5265
|
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; }
|
|
5265
5266
|
|
|
5266
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5267
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5268
|
+
|
|
5269
|
+
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."); }
|
|
5267
5270
|
|
|
5268
|
-
function
|
|
5271
|
+
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); }
|
|
5269
5272
|
|
|
5270
|
-
function
|
|
5273
|
+
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; }
|
|
5274
|
+
|
|
5275
|
+
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; }
|
|
5271
5276
|
|
|
5272
5277
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5273
5278
|
|
|
@@ -5277,12 +5282,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5277
5282
|
|
|
5278
5283
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5279
5284
|
|
|
5280
|
-
function
|
|
5285
|
+
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); }; }
|
|
5281
5286
|
|
|
5282
|
-
function
|
|
5287
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5283
5288
|
|
|
5284
5289
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5285
5290
|
|
|
5291
|
+
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; } }
|
|
5292
|
+
|
|
5293
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5294
|
+
|
|
5286
5295
|
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); }
|
|
5287
5296
|
|
|
5288
5297
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5294,14 +5303,12 @@ var SDK_GLOBAL = 'DM';
|
|
|
5294
5303
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5295
5304
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5296
5305
|
|
|
5297
|
-
var DailyMotion =
|
|
5298
|
-
/*#__PURE__*/
|
|
5299
|
-
function (_Component) {
|
|
5306
|
+
var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
5300
5307
|
_inherits(DailyMotion, _Component);
|
|
5301
5308
|
|
|
5302
|
-
|
|
5303
|
-
var _getPrototypeOf2;
|
|
5309
|
+
var _super = _createSuper(DailyMotion);
|
|
5304
5310
|
|
|
5311
|
+
function DailyMotion() {
|
|
5305
5312
|
var _this;
|
|
5306
5313
|
|
|
5307
5314
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5310,7 +5317,7 @@ function (_Component) {
|
|
|
5310
5317
|
args[_key] = arguments[_key];
|
|
5311
5318
|
}
|
|
5312
5319
|
|
|
5313
|
-
_this =
|
|
5320
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5314
5321
|
|
|
5315
5322
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5316
5323
|
|
|
@@ -5439,9 +5446,9 @@ function (_Component) {
|
|
|
5439
5446
|
height: '100%',
|
|
5440
5447
|
display: display
|
|
5441
5448
|
};
|
|
5442
|
-
return _react["default"].createElement("div", {
|
|
5449
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5443
5450
|
style: style
|
|
5444
|
-
}, _react["default"].createElement("div", {
|
|
5451
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
5445
5452
|
ref: this.ref
|
|
5446
5453
|
}));
|
|
5447
5454
|
}
|
|
@@ -5499,12 +5506,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5499
5506
|
|
|
5500
5507
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5501
5508
|
|
|
5502
|
-
function
|
|
5509
|
+
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); }; }
|
|
5503
5510
|
|
|
5504
|
-
function
|
|
5511
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5505
5512
|
|
|
5506
5513
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5507
5514
|
|
|
5515
|
+
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; } }
|
|
5516
|
+
|
|
5517
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5518
|
+
|
|
5508
5519
|
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); }
|
|
5509
5520
|
|
|
5510
5521
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5515,14 +5526,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5515
5526
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5516
5527
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5517
5528
|
|
|
5518
|
-
var Mixcloud =
|
|
5519
|
-
/*#__PURE__*/
|
|
5520
|
-
function (_Component) {
|
|
5529
|
+
var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
5521
5530
|
_inherits(Mixcloud, _Component);
|
|
5522
5531
|
|
|
5523
|
-
|
|
5524
|
-
var _getPrototypeOf2;
|
|
5532
|
+
var _super = _createSuper(Mixcloud);
|
|
5525
5533
|
|
|
5534
|
+
function Mixcloud() {
|
|
5526
5535
|
var _this;
|
|
5527
5536
|
|
|
5528
5537
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5531,7 +5540,7 @@ function (_Component) {
|
|
|
5531
5540
|
args[_key] = arguments[_key];
|
|
5532
5541
|
}
|
|
5533
5542
|
|
|
5534
|
-
_this =
|
|
5543
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5535
5544
|
|
|
5536
5545
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5537
5546
|
|
|
@@ -5634,7 +5643,7 @@ function (_Component) {
|
|
|
5634
5643
|
})); // We have to give the iframe a key here to prevent a
|
|
5635
5644
|
// weird dialog appearing when loading a new track
|
|
5636
5645
|
|
|
5637
|
-
return _react["default"].createElement("iframe", {
|
|
5646
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
5638
5647
|
key: id,
|
|
5639
5648
|
ref: this.ref,
|
|
5640
5649
|
style: style,
|
|
@@ -5694,23 +5703,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5694
5703
|
|
|
5695
5704
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5696
5705
|
|
|
5697
|
-
function
|
|
5706
|
+
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); }; }
|
|
5698
5707
|
|
|
5699
|
-
function
|
|
5708
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5700
5709
|
|
|
5701
5710
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5702
5711
|
|
|
5712
|
+
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; } }
|
|
5713
|
+
|
|
5714
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5715
|
+
|
|
5703
5716
|
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); }
|
|
5704
5717
|
|
|
5705
5718
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5706
5719
|
|
|
5707
5720
|
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; }
|
|
5708
5721
|
|
|
5722
|
+
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; } } }; }
|
|
5723
|
+
|
|
5724
|
+
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); }
|
|
5725
|
+
|
|
5726
|
+
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; }
|
|
5727
|
+
|
|
5709
5728
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5710
5729
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5711
5730
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5712
5731
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5713
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5732
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
|
|
5714
5733
|
var HLS_GLOBAL = 'Hls';
|
|
5715
5734
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5716
5735
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5719,12 +5738,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5719
5738
|
|
|
5720
5739
|
function canPlay(url) {
|
|
5721
5740
|
if (url instanceof Array) {
|
|
5722
|
-
var
|
|
5723
|
-
|
|
5724
|
-
var _iteratorError = undefined;
|
|
5741
|
+
var _iterator = _createForOfIteratorHelper(url),
|
|
5742
|
+
_step;
|
|
5725
5743
|
|
|
5726
5744
|
try {
|
|
5727
|
-
for (
|
|
5745
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5728
5746
|
var item = _step.value;
|
|
5729
5747
|
|
|
5730
5748
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5736,18 +5754,9 @@ function canPlay(url) {
|
|
|
5736
5754
|
}
|
|
5737
5755
|
}
|
|
5738
5756
|
} catch (err) {
|
|
5739
|
-
|
|
5740
|
-
_iteratorError = err;
|
|
5757
|
+
_iterator.e(err);
|
|
5741
5758
|
} finally {
|
|
5742
|
-
|
|
5743
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5744
|
-
_iterator["return"]();
|
|
5745
|
-
}
|
|
5746
|
-
} finally {
|
|
5747
|
-
if (_didIteratorError) {
|
|
5748
|
-
throw _iteratorError;
|
|
5749
|
-
}
|
|
5750
|
-
}
|
|
5759
|
+
_iterator.f();
|
|
5751
5760
|
}
|
|
5752
5761
|
|
|
5753
5762
|
return false;
|
|
@@ -5771,14 +5780,12 @@ function canEnablePIP(url) {
|
|
|
5771
5780
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5772
5781
|
}
|
|
5773
5782
|
|
|
5774
|
-
var FilePlayer =
|
|
5775
|
-
/*#__PURE__*/
|
|
5776
|
-
function (_Component) {
|
|
5783
|
+
var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
5777
5784
|
_inherits(FilePlayer, _Component);
|
|
5778
5785
|
|
|
5779
|
-
|
|
5780
|
-
var _getPrototypeOf2;
|
|
5786
|
+
var _super = _createSuper(FilePlayer);
|
|
5781
5787
|
|
|
5788
|
+
function FilePlayer() {
|
|
5782
5789
|
var _this;
|
|
5783
5790
|
|
|
5784
5791
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5787,7 +5794,7 @@ function (_Component) {
|
|
|
5787
5794
|
_args[_key] = arguments[_key];
|
|
5788
5795
|
}
|
|
5789
5796
|
|
|
5790
|
-
_this =
|
|
5797
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5791
5798
|
|
|
5792
5799
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5793
5800
|
var _this$props;
|
|
@@ -5874,19 +5881,19 @@ function (_Component) {
|
|
|
5874
5881
|
|
|
5875
5882
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
5876
5883
|
if (typeof source === 'string') {
|
|
5877
|
-
return _react["default"].createElement("source", {
|
|
5884
|
+
return /*#__PURE__*/_react["default"].createElement("source", {
|
|
5878
5885
|
key: index,
|
|
5879
5886
|
src: source
|
|
5880
5887
|
});
|
|
5881
5888
|
}
|
|
5882
5889
|
|
|
5883
|
-
return _react["default"].createElement("source", _extends({
|
|
5890
|
+
return /*#__PURE__*/_react["default"].createElement("source", _extends({
|
|
5884
5891
|
key: index
|
|
5885
5892
|
}, source));
|
|
5886
5893
|
});
|
|
5887
5894
|
|
|
5888
5895
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
5889
|
-
return _react["default"].createElement("track", _extends({
|
|
5896
|
+
return /*#__PURE__*/_react["default"].createElement("track", _extends({
|
|
5890
5897
|
key: index
|
|
5891
5898
|
}, track));
|
|
5892
5899
|
});
|
|
@@ -5924,6 +5931,10 @@ function (_Component) {
|
|
|
5924
5931
|
key: "componentWillUnmount",
|
|
5925
5932
|
value: function componentWillUnmount() {
|
|
5926
5933
|
this.removeListeners(this.player);
|
|
5934
|
+
|
|
5935
|
+
if (this.hls) {
|
|
5936
|
+
this.hls.destroy();
|
|
5937
|
+
}
|
|
5927
5938
|
}
|
|
5928
5939
|
}, {
|
|
5929
5940
|
key: "addListeners",
|
|
@@ -6054,10 +6065,6 @@ function (_Component) {
|
|
|
6054
6065
|
value: function stop() {
|
|
6055
6066
|
this.player.removeAttribute('src');
|
|
6056
6067
|
|
|
6057
|
-
if (this.hls) {
|
|
6058
|
-
this.hls.destroy();
|
|
6059
|
-
}
|
|
6060
|
-
|
|
6061
6068
|
if (this.dash) {
|
|
6062
6069
|
this.dash.reset();
|
|
6063
6070
|
}
|
|
@@ -6169,7 +6176,7 @@ function (_Component) {
|
|
|
6169
6176
|
width: width === 'auto' ? width : '100%',
|
|
6170
6177
|
height: height === 'auto' ? height : '100%'
|
|
6171
6178
|
};
|
|
6172
|
-
return _react["default"].createElement(Element, _extends({
|
|
6179
|
+
return /*#__PURE__*/_react["default"].createElement(Element, _extends({
|
|
6173
6180
|
ref: this.ref,
|
|
6174
6181
|
src: this.getSource(url),
|
|
6175
6182
|
style: style,
|
|
@@ -6259,12 +6266,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6259
6266
|
|
|
6260
6267
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6261
6268
|
|
|
6262
|
-
function
|
|
6269
|
+
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); }; }
|
|
6263
6270
|
|
|
6264
|
-
function
|
|
6271
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6265
6272
|
|
|
6266
6273
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6267
6274
|
|
|
6275
|
+
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; } }
|
|
6276
|
+
|
|
6277
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6278
|
+
|
|
6268
6279
|
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); }
|
|
6269
6280
|
|
|
6270
6281
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6273,14 +6284,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6273
6284
|
|
|
6274
6285
|
var ICON_SIZE = '64px';
|
|
6275
6286
|
|
|
6276
|
-
var Preview =
|
|
6277
|
-
/*#__PURE__*/
|
|
6278
|
-
function (_Component) {
|
|
6287
|
+
var Preview = /*#__PURE__*/function (_Component) {
|
|
6279
6288
|
_inherits(Preview, _Component);
|
|
6280
6289
|
|
|
6281
|
-
|
|
6282
|
-
var _getPrototypeOf2;
|
|
6290
|
+
var _super = _createSuper(Preview);
|
|
6283
6291
|
|
|
6292
|
+
function Preview() {
|
|
6284
6293
|
var _this;
|
|
6285
6294
|
|
|
6286
6295
|
_classCallCheck(this, Preview);
|
|
@@ -6289,7 +6298,7 @@ function (_Component) {
|
|
|
6289
6298
|
args[_key] = arguments[_key];
|
|
6290
6299
|
}
|
|
6291
6300
|
|
|
6292
|
-
_this =
|
|
6301
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6293
6302
|
|
|
6294
6303
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6295
6304
|
|
|
@@ -6387,15 +6396,15 @@ function (_Component) {
|
|
|
6387
6396
|
}
|
|
6388
6397
|
};
|
|
6389
6398
|
|
|
6390
|
-
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6399
|
+
var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
|
|
6391
6400
|
style: styles.shadow,
|
|
6392
6401
|
className: "react-player__shadow"
|
|
6393
|
-
}, _react["default"].createElement("div", {
|
|
6402
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
6394
6403
|
style: styles.playIcon,
|
|
6395
6404
|
className: "react-player__play-icon"
|
|
6396
6405
|
}));
|
|
6397
6406
|
|
|
6398
|
-
return _react["default"].createElement("div", {
|
|
6407
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
6399
6408
|
style: styles.preview,
|
|
6400
6409
|
className: "react-player__preview",
|
|
6401
6410
|
onClick: onClick
|
|
@@ -6432,6 +6441,12 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6432
6441
|
|
|
6433
6442
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6434
6443
|
|
|
6444
|
+
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; } } }; }
|
|
6445
|
+
|
|
6446
|
+
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); }
|
|
6447
|
+
|
|
6448
|
+
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; }
|
|
6449
|
+
|
|
6435
6450
|
var PRELOAD_PLAYERS = [{
|
|
6436
6451
|
Player: YouTube_1.YouTube,
|
|
6437
6452
|
configKey: 'youtube',
|
|
@@ -6452,16 +6467,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6452
6467
|
|
|
6453
6468
|
function renderPreloadPlayers(url, controls, config) {
|
|
6454
6469
|
var players = [];
|
|
6455
|
-
|
|
6456
|
-
var
|
|
6457
|
-
|
|
6470
|
+
|
|
6471
|
+
var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
|
|
6472
|
+
_step;
|
|
6458
6473
|
|
|
6459
6474
|
try {
|
|
6460
|
-
for (
|
|
6475
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6461
6476
|
var player = _step.value;
|
|
6462
6477
|
|
|
6463
6478
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6464
|
-
players.push(_react["default"].createElement(_Player["default"], {
|
|
6479
|
+
players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
|
|
6465
6480
|
key: player.Player.displayName,
|
|
6466
6481
|
activePlayer: player.Player,
|
|
6467
6482
|
url: player.url,
|
|
@@ -6473,18 +6488,9 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6473
6488
|
}
|
|
6474
6489
|
}
|
|
6475
6490
|
} catch (err) {
|
|
6476
|
-
|
|
6477
|
-
_iteratorError = err;
|
|
6491
|
+
_iterator.e(err);
|
|
6478
6492
|
} finally {
|
|
6479
|
-
|
|
6480
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6481
|
-
_iterator["return"]();
|
|
6482
|
-
}
|
|
6483
|
-
} finally {
|
|
6484
|
-
if (_didIteratorError) {
|
|
6485
|
-
throw _iteratorError;
|
|
6486
|
-
}
|
|
6487
|
-
}
|
|
6493
|
+
_iterator.f();
|
|
6488
6494
|
}
|
|
6489
6495
|
|
|
6490
6496
|
return players;
|
|
@@ -6608,13 +6614,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6608
6614
|
|
|
6609
6615
|
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); }
|
|
6610
6616
|
|
|
6611
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6617
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6618
|
+
|
|
6619
|
+
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."); }
|
|
6620
|
+
|
|
6621
|
+
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); }
|
|
6612
6622
|
|
|
6613
|
-
function
|
|
6623
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
6614
6624
|
|
|
6615
|
-
function
|
|
6625
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6616
6626
|
|
|
6617
|
-
function
|
|
6627
|
+
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; }
|
|
6618
6628
|
|
|
6619
6629
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6620
6630
|
|
|
@@ -6622,12 +6632,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6622
6632
|
|
|
6623
6633
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6624
6634
|
|
|
6625
|
-
function
|
|
6635
|
+
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); }; }
|
|
6626
6636
|
|
|
6627
|
-
function
|
|
6637
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6628
6638
|
|
|
6629
6639
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6630
6640
|
|
|
6641
|
+
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; } }
|
|
6642
|
+
|
|
6643
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6644
|
+
|
|
6631
6645
|
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); }
|
|
6632
6646
|
|
|
6633
6647
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6637,14 +6651,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6637
6651
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6638
6652
|
var customPlayers = [];
|
|
6639
6653
|
|
|
6640
|
-
var ReactPlayer =
|
|
6641
|
-
/*#__PURE__*/
|
|
6642
|
-
function (_Component) {
|
|
6654
|
+
var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
6643
6655
|
_inherits(ReactPlayer, _Component);
|
|
6644
6656
|
|
|
6645
|
-
|
|
6646
|
-
var _getPrototypeOf2;
|
|
6657
|
+
var _super = _createSuper(ReactPlayer);
|
|
6647
6658
|
|
|
6659
|
+
function ReactPlayer() {
|
|
6648
6660
|
var _this;
|
|
6649
6661
|
|
|
6650
6662
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6653,7 +6665,7 @@ function (_Component) {
|
|
|
6653
6665
|
args[_key] = arguments[_key];
|
|
6654
6666
|
}
|
|
6655
6667
|
|
|
6656
|
-
_this =
|
|
6668
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6657
6669
|
|
|
6658
6670
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6659
6671
|
|
|
@@ -6764,7 +6776,7 @@ function (_Component) {
|
|
|
6764
6776
|
key: "renderActivePlayer",
|
|
6765
6777
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6766
6778
|
if (!url) return null;
|
|
6767
|
-
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6779
|
+
return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6768
6780
|
key: activePlayer.displayName,
|
|
6769
6781
|
ref: this.activePlayerRef,
|
|
6770
6782
|
config: this.config,
|
|
@@ -6801,14 +6813,14 @@ function (_Component) {
|
|
|
6801
6813
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6802
6814
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6803
6815
|
|
|
6804
|
-
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6816
|
+
var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
|
|
6805
6817
|
url: url,
|
|
6806
6818
|
light: light,
|
|
6807
6819
|
playIcon: playIcon,
|
|
6808
6820
|
onClick: this.handleClickPreview
|
|
6809
6821
|
});
|
|
6810
6822
|
|
|
6811
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
6823
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
6812
6824
|
ref: this.wrapperRef,
|
|
6813
6825
|
style: _objectSpread({}, style, {
|
|
6814
6826
|
width: width,
|
|
@@ -7365,7 +7377,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7365
7377
|
nodes.videos[series - 1].intro
|
|
7366
7378
|
)
|
|
7367
7379
|
),
|
|
7368
|
-
nodes.videos[series - 1] && nodes.videos[series - 1].text && React__default.createElement(BlockContent.BlockContent, _extends
|
|
7380
|
+
nodes.videos[series - 1] && nodes.videos[series - 1].text && React__default.createElement(BlockContent.BlockContent, _extends._extends({ serializers: getSerializers, blocks: nodes.videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7369
7381
|
),
|
|
7370
7382
|
React__default.createElement(
|
|
7371
7383
|
'style',
|
|
@@ -7839,7 +7851,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
7839
7851
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
7840
7852
|
React__default.createElement(
|
|
7841
7853
|
'a',
|
|
7842
|
-
_extends
|
|
7854
|
+
_extends._extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
7843
7855
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
7844
7856
|
React__default.createElement(
|
|
7845
7857
|
'div',
|
|
@@ -8149,7 +8161,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8149
8161
|
|
|
8150
8162
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8151
8163
|
if (biography) {
|
|
8152
|
-
return React__default.createElement(BlockContent.BlockContent, _extends
|
|
8164
|
+
return React__default.createElement(BlockContent.BlockContent, _extends._extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8153
8165
|
}
|
|
8154
8166
|
};
|
|
8155
8167
|
|
|
@@ -8360,7 +8372,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8360
8372
|
React__default.createElement(
|
|
8361
8373
|
'div',
|
|
8362
8374
|
{ className: 'mt-2 mb-2' },
|
|
8363
|
-
React__default.createElement(BlockContent.BlockContent, _extends
|
|
8375
|
+
React__default.createElement(BlockContent.BlockContent, _extends._extends({
|
|
8364
8376
|
serializers: getSerializers,
|
|
8365
8377
|
videoAccountIDs: accountIDs,
|
|
8366
8378
|
blocks: article.text,
|
|
@@ -8639,7 +8651,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
8639
8651
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
8640
8652
|
image.link ? React__default.createElement(
|
|
8641
8653
|
'a',
|
|
8642
|
-
_extends
|
|
8654
|
+
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
8643
8655
|
React__default.createElement(
|
|
8644
8656
|
'div',
|
|
8645
8657
|
{ className: 'multi-figure-image-container' },
|