@mjhls/mjh-framework 1.0.720-beta.0 → 1.0.720-navigation-scroll-fix-v2
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/ArticleCarousel.js +1 -1
- package/dist/cjs/ArticleProgramLandingPage.js +6 -6
- package/dist/cjs/ArticleSeriesLandingPage.js +3 -3
- package/dist/cjs/ArticleSeriesListing.js +2 -2
- package/dist/cjs/Auth.js +11 -211
- package/dist/cjs/{BlockContent-091a991f.js → BlockContent-80b15fac.js} +1 -1
- package/dist/cjs/ConferenceArticleCard.js +1 -1
- package/dist/cjs/DeckContent.js +2 -2
- package/dist/cjs/DeckQueue.js +2 -2
- package/dist/cjs/ExternalResources.js +4 -4
- package/dist/cjs/Feature.js +1 -1
- package/dist/cjs/ForbesHero.js +1 -1
- package/dist/cjs/GridContent.js +3 -3
- package/dist/cjs/GridHero.js +1 -1
- package/dist/cjs/GroupDeck.js +1 -1
- package/dist/cjs/HamMagazine.js +9 -8
- package/dist/cjs/Hero.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +4 -4
- 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 +2 -2
- package/dist/cjs/MasterDeck.js +3 -3
- package/dist/cjs/OncliveHero.js +1 -1
- package/dist/cjs/OncliveLargeHero.js +1 -1
- package/dist/cjs/PartnerDetailListing.js +7 -7
- package/dist/cjs/PublicationDeck.js +2 -2
- package/dist/cjs/QueueDeckExpanded.js +2 -2
- package/dist/cjs/RecentNews.js +1 -1
- package/dist/cjs/RelatedContent.js +1 -1
- package/dist/cjs/TaxonomyCard.js +2 -2
- package/dist/cjs/TaxonomyDescription.js +4 -4
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/VerticalHero.js +1 -1
- package/dist/cjs/VideoProgramLandingPage.js +6 -6
- package/dist/cjs/VideoSeriesCard.js +3 -3
- package/dist/cjs/VideoSeriesLandingPage.js +5 -5
- package/dist/cjs/VideoSeriesListing.js +2 -2
- package/dist/cjs/View.js +32 -32
- package/dist/cjs/YahooHero.js +1 -1
- package/dist/cjs/YoutubeGroup.js +9 -11
- package/dist/cjs/getRelatedArticle.js +416 -5
- package/dist/cjs/getSerializers.js +4 -4
- package/dist/cjs/{getTargeting-9af0ef69.js → getTargeting-fee8c429.js} +2 -2
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{index-be0c82be.js → index-39beccb3.js} +2 -1
- package/dist/cjs/{index-792274b1.js → index-a2ecf598.js} +451 -439
- package/dist/cjs/index-bd6c9f56.js +211 -0
- package/dist/cjs/index.js +9 -9
- package/dist/cjs/{inherits-c9f99d47.js → inherits-513d81cd.js} +4 -4
- package/dist/cjs/{lodash-fc2922d0.js → lodash-7fd85bcf.js} +71 -22
- package/dist/cjs/urlFor.js +1 -1
- package/dist/esm/ArticleCarousel.js +1 -1
- package/dist/esm/ArticleProgramLandingPage.js +3 -3
- package/dist/esm/ArticleSeriesLandingPage.js +2 -2
- package/dist/esm/ArticleSeriesListing.js +1 -1
- package/dist/esm/Auth.js +3 -203
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-c409aca5.js} +1 -1
- package/dist/esm/ConferenceArticleCard.js +1 -1
- package/dist/esm/DeckContent.js +1 -1
- package/dist/esm/DeckQueue.js +1 -1
- package/dist/esm/ExternalResources.js +3 -3
- package/dist/esm/Feature.js +1 -1
- package/dist/esm/ForbesHero.js +1 -1
- package/dist/esm/GridContent.js +2 -2
- package/dist/esm/GridHero.js +1 -1
- package/dist/esm/GroupDeck.js +1 -1
- package/dist/esm/HamMagazine.js +9 -8
- package/dist/esm/Hero.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +3 -3
- 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 +2 -2
- package/dist/esm/MasterDeck.js +2 -2
- package/dist/esm/OncliveHero.js +1 -1
- package/dist/esm/OncliveLargeHero.js +1 -1
- package/dist/esm/PartnerDetailListing.js +4 -4
- package/dist/esm/PublicationDeck.js +2 -2
- package/dist/esm/QueueDeckExpanded.js +2 -2
- package/dist/esm/RecentNews.js +1 -1
- package/dist/esm/RelatedContent.js +1 -1
- package/dist/esm/TaxonomyCard.js +2 -2
- package/dist/esm/TaxonomyDescription.js +3 -3
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/VerticalHero.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +3 -3
- package/dist/esm/VideoSeriesCard.js +1 -1
- package/dist/esm/VideoSeriesLandingPage.js +2 -2
- package/dist/esm/VideoSeriesListing.js +1 -1
- package/dist/esm/View.js +5 -5
- package/dist/esm/YahooHero.js +1 -1
- package/dist/esm/YoutubeGroup.js +9 -11
- package/dist/esm/getRelatedArticle.js +416 -5
- package/dist/esm/getSerializers.js +3 -3
- package/dist/esm/{index-c3a5ff39.js → index-2749e7d8.js} +450 -438
- package/dist/esm/{index-73819142.js → index-3849e3fe.js} +2 -1
- package/dist/esm/index-db3bb315.js +207 -0
- package/dist/esm/index.js +6 -6
- package/dist/esm/{lodash-17fdfebb.js → lodash-ec8c6b48.js} +71 -22
- package/dist/esm/urlFor.js +1 -1
- package/package.json +3 -3
|
@@ -5,9 +5,9 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
|
|
|
5
5
|
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
6
6
|
var _toObject = require('./_to-object-329a650b.js');
|
|
7
7
|
var toConsumableArray = require('./toConsumableArray-9a3476fe.js');
|
|
8
|
-
var _extends
|
|
9
|
-
var inherits = require('./inherits-
|
|
10
|
-
var _typeof = require('./typeof-725500bc.js');
|
|
8
|
+
var _extends = require('./extends-60837c34.js');
|
|
9
|
+
var inherits = require('./inherits-513d81cd.js');
|
|
10
|
+
var _typeof$1 = require('./typeof-725500bc.js');
|
|
11
11
|
var React = require('react');
|
|
12
12
|
var React__default = _interopDefault(React);
|
|
13
13
|
var index = require('./index-8bf6c863.js');
|
|
@@ -18,7 +18,7 @@ var Col = _interopDefault(require('react-bootstrap/Col'));
|
|
|
18
18
|
var moment = require('./moment-575fe24c.js');
|
|
19
19
|
var Router = require('next/router');
|
|
20
20
|
var Router__default = _interopDefault(Router);
|
|
21
|
-
var index$1 = require('./index-
|
|
21
|
+
var index$1 = require('./index-39beccb3.js');
|
|
22
22
|
var index$2 = require('./index-da796b8c.js');
|
|
23
23
|
var main = require('./main-02daeefe.js');
|
|
24
24
|
var entities = require('./entities-310b46ee.js');
|
|
@@ -26,7 +26,7 @@ var slicedToArray = require('./slicedToArray-8f385299.js');
|
|
|
26
26
|
var Segment = require('./Segment.js');
|
|
27
27
|
var Beam = require('./Beam.js');
|
|
28
28
|
var AdSlot = require('./AdSlot.js');
|
|
29
|
-
var BlockContent = require('./BlockContent-
|
|
29
|
+
var BlockContent = require('./BlockContent-80b15fac.js');
|
|
30
30
|
var index$3 = require('./index-187c967e.js');
|
|
31
31
|
var GroupDeck = require('./GroupDeck.js');
|
|
32
32
|
var reactBootstrap = require('react-bootstrap');
|
|
@@ -102,21 +102,18 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
102
102
|
);
|
|
103
103
|
};
|
|
104
104
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
// do not edit .js files directly - edit src/index.jst
|
|
106
|
+
|
|
107
|
+
|
|
108
108
|
|
|
109
109
|
var fastDeepEqual = function equal(a, b) {
|
|
110
110
|
if (a === b) return true;
|
|
111
111
|
|
|
112
112
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
113
|
-
|
|
114
|
-
, arrB = isArray(b)
|
|
115
|
-
, i
|
|
116
|
-
, length
|
|
117
|
-
, key;
|
|
113
|
+
if (a.constructor !== b.constructor) return false;
|
|
118
114
|
|
|
119
|
-
|
|
115
|
+
var length, i, keys;
|
|
116
|
+
if (Array.isArray(a)) {
|
|
120
117
|
length = a.length;
|
|
121
118
|
if (length != b.length) return false;
|
|
122
119
|
for (i = length; i-- !== 0;)
|
|
@@ -124,35 +121,29 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
124
121
|
return true;
|
|
125
122
|
}
|
|
126
123
|
|
|
127
|
-
if (arrA != arrB) return false;
|
|
128
124
|
|
|
129
|
-
var dateA = a instanceof Date
|
|
130
|
-
, dateB = b instanceof Date;
|
|
131
|
-
if (dateA != dateB) return false;
|
|
132
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
133
125
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
if (
|
|
137
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
126
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
127
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
128
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
138
129
|
|
|
139
|
-
|
|
130
|
+
keys = Object.keys(a);
|
|
140
131
|
length = keys.length;
|
|
141
|
-
|
|
142
|
-
if (length !== keyList(b).length)
|
|
143
|
-
return false;
|
|
132
|
+
if (length !== Object.keys(b).length) return false;
|
|
144
133
|
|
|
145
134
|
for (i = length; i-- !== 0;)
|
|
146
|
-
if (!
|
|
135
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
147
136
|
|
|
148
137
|
for (i = length; i-- !== 0;) {
|
|
149
|
-
key = keys[i];
|
|
138
|
+
var key = keys[i];
|
|
139
|
+
|
|
150
140
|
if (!equal(a[key], b[key])) return false;
|
|
151
141
|
}
|
|
152
142
|
|
|
153
143
|
return true;
|
|
154
144
|
}
|
|
155
145
|
|
|
146
|
+
// true if both NaN, false otherwise
|
|
156
147
|
return a!==a && b!==b;
|
|
157
148
|
};
|
|
158
149
|
|
|
@@ -1575,199 +1566,235 @@ module.exports = exports['default'];
|
|
|
1575
1566
|
|
|
1576
1567
|
var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
|
|
1577
1568
|
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
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; };
|
|
1569
|
+
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); }
|
|
1581
1570
|
|
|
1582
1571
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1583
1572
|
|
|
1584
|
-
function
|
|
1573
|
+
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); } }
|
|
1574
|
+
|
|
1575
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1576
|
+
|
|
1577
|
+
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); }; }
|
|
1578
|
+
|
|
1579
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1580
|
+
|
|
1581
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1582
|
+
|
|
1583
|
+
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; } }
|
|
1584
|
+
|
|
1585
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1585
1586
|
|
|
1586
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function
|
|
1587
|
+
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); }
|
|
1588
|
+
|
|
1589
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1587
1590
|
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1591
|
+
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; }
|
|
1592
|
+
|
|
1593
|
+
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; }
|
|
1594
|
+
|
|
1595
|
+
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; }
|
|
1596
|
+
/**
|
|
1597
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1598
|
+
*
|
|
1599
|
+
* @param {Object} prevProps
|
|
1600
|
+
* @param {Object} props
|
|
1593
1601
|
*/
|
|
1602
|
+
|
|
1594
1603
|
function shouldUpdateVideo(prevProps, props) {
|
|
1595
1604
|
// A changing video should always trigger an update
|
|
1596
1605
|
if (prevProps.videoId !== props.videoId) {
|
|
1597
1606
|
return true;
|
|
1598
|
-
}
|
|
1599
|
-
|
|
1600
|
-
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1607
|
+
} // Otherwise, a change in the start/end time playerVars also requires a player
|
|
1601
1608
|
// update.
|
|
1609
|
+
|
|
1610
|
+
|
|
1602
1611
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1603
1612
|
var vars = props.opts.playerVars || {};
|
|
1604
|
-
|
|
1605
1613
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1606
1614
|
}
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
*
|
|
1610
|
-
*
|
|
1611
|
-
*
|
|
1612
|
-
*
|
|
1613
|
-
* @param {Object} opts
|
|
1615
|
+
/**
|
|
1616
|
+
* Neutralize API options that only require a video update, leaving only options
|
|
1617
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1618
|
+
* player reset is necessary.
|
|
1619
|
+
*
|
|
1620
|
+
* @param {Object} opts
|
|
1614
1621
|
*/
|
|
1622
|
+
|
|
1623
|
+
|
|
1615
1624
|
function filterResetOptions(opts) {
|
|
1616
|
-
return
|
|
1617
|
-
playerVars:
|
|
1625
|
+
return _objectSpread({}, opts, {
|
|
1626
|
+
playerVars: _objectSpread({}, opts.playerVars, {
|
|
1618
1627
|
autoplay: 0,
|
|
1619
1628
|
start: 0,
|
|
1620
1629
|
end: 0
|
|
1621
1630
|
})
|
|
1622
1631
|
});
|
|
1623
1632
|
}
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
*
|
|
1627
|
-
*
|
|
1628
|
-
*
|
|
1629
|
-
*
|
|
1630
|
-
*
|
|
1631
|
-
* @param {Object}
|
|
1632
|
-
* @param {Object} props
|
|
1633
|
+
/**
|
|
1634
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1635
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1636
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1637
|
+
* those.
|
|
1638
|
+
*
|
|
1639
|
+
* @param {Object} prevProps
|
|
1640
|
+
* @param {Object} props
|
|
1633
1641
|
*/
|
|
1642
|
+
|
|
1643
|
+
|
|
1634
1644
|
function shouldResetPlayer(prevProps, props) {
|
|
1635
1645
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1636
1646
|
}
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
*
|
|
1640
|
-
*
|
|
1641
|
-
* @param {Object}
|
|
1642
|
-
* @param {Object} props
|
|
1647
|
+
/**
|
|
1648
|
+
* Check whether a props change should result in an id or className update.
|
|
1649
|
+
*
|
|
1650
|
+
* @param {Object} prevProps
|
|
1651
|
+
* @param {Object} props
|
|
1643
1652
|
*/
|
|
1653
|
+
|
|
1654
|
+
|
|
1644
1655
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1645
1656
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1646
1657
|
}
|
|
1647
1658
|
|
|
1648
|
-
var YouTube = function (_React$Component) {
|
|
1659
|
+
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
1649
1660
|
_inherits(YouTube, _React$Component);
|
|
1650
1661
|
|
|
1662
|
+
var _super = _createSuper(YouTube);
|
|
1663
|
+
|
|
1664
|
+
/**
|
|
1665
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1666
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1667
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1668
|
+
*/
|
|
1651
1669
|
function YouTube(props) {
|
|
1670
|
+
var _this;
|
|
1671
|
+
|
|
1652
1672
|
_classCallCheck(this, YouTube);
|
|
1653
1673
|
|
|
1654
|
-
|
|
1674
|
+
_this = _super.call(this, props);
|
|
1655
1675
|
|
|
1656
|
-
_this
|
|
1676
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
|
|
1657
1677
|
return _this.props.onReady(event);
|
|
1658
|
-
};
|
|
1678
|
+
});
|
|
1659
1679
|
|
|
1660
|
-
_this
|
|
1680
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
|
|
1661
1681
|
return _this.props.onError(event);
|
|
1662
|
-
};
|
|
1682
|
+
});
|
|
1663
1683
|
|
|
1664
|
-
_this
|
|
1684
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
|
|
1665
1685
|
_this.props.onStateChange(event);
|
|
1666
|
-
switch (event.data) {
|
|
1667
1686
|
|
|
1687
|
+
switch (event.data) {
|
|
1668
1688
|
case YouTube.PlayerState.ENDED:
|
|
1669
1689
|
_this.props.onEnd(event);
|
|
1690
|
+
|
|
1670
1691
|
break;
|
|
1671
1692
|
|
|
1672
1693
|
case YouTube.PlayerState.PLAYING:
|
|
1673
1694
|
_this.props.onPlay(event);
|
|
1695
|
+
|
|
1674
1696
|
break;
|
|
1675
1697
|
|
|
1676
1698
|
case YouTube.PlayerState.PAUSED:
|
|
1677
1699
|
_this.props.onPause(event);
|
|
1700
|
+
|
|
1678
1701
|
break;
|
|
1679
1702
|
}
|
|
1680
|
-
};
|
|
1703
|
+
});
|
|
1681
1704
|
|
|
1682
|
-
_this
|
|
1705
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
|
|
1683
1706
|
return _this.props.onPlaybackRateChange(event);
|
|
1684
|
-
};
|
|
1707
|
+
});
|
|
1685
1708
|
|
|
1686
|
-
_this
|
|
1709
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
|
|
1687
1710
|
return _this.props.onPlaybackQualityChange(event);
|
|
1688
|
-
};
|
|
1711
|
+
});
|
|
1689
1712
|
|
|
1690
|
-
_this
|
|
1713
|
+
_defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
|
|
1691
1714
|
// do not attempt to create a player server-side, it won't work
|
|
1692
|
-
if (typeof document === 'undefined') return;
|
|
1693
|
-
|
|
1694
|
-
var playerOpts =
|
|
1715
|
+
if (typeof document === 'undefined') return; // create player
|
|
1716
|
+
|
|
1717
|
+
var playerOpts = _objectSpread({}, _this.props.opts, {
|
|
1695
1718
|
// preload the `videoId` video if one is already given
|
|
1696
1719
|
videoId: _this.props.videoId
|
|
1697
1720
|
});
|
|
1698
|
-
|
|
1699
|
-
// attach event handlers
|
|
1721
|
+
|
|
1722
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
|
|
1723
|
+
|
|
1700
1724
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1725
|
+
|
|
1701
1726
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1727
|
+
|
|
1702
1728
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1729
|
+
|
|
1703
1730
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1731
|
+
|
|
1704
1732
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1705
|
-
};
|
|
1733
|
+
});
|
|
1706
1734
|
|
|
1707
|
-
_this
|
|
1735
|
+
_defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
|
|
1708
1736
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1709
|
-
};
|
|
1737
|
+
});
|
|
1710
1738
|
|
|
1711
|
-
_this
|
|
1739
|
+
_defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
|
|
1712
1740
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1713
1741
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1714
1742
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1715
1743
|
});
|
|
1716
|
-
};
|
|
1744
|
+
});
|
|
1717
1745
|
|
|
1718
|
-
_this
|
|
1746
|
+
_defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
|
|
1719
1747
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1720
1748
|
_this.internalPlayer.stopVideo();
|
|
1749
|
+
|
|
1721
1750
|
return;
|
|
1722
|
-
}
|
|
1751
|
+
} // set queueing options
|
|
1752
|
+
|
|
1723
1753
|
|
|
1724
|
-
// set queueing options
|
|
1725
1754
|
var autoplay = false;
|
|
1726
1755
|
var opts = {
|
|
1727
1756
|
videoId: _this.props.videoId
|
|
1728
1757
|
};
|
|
1758
|
+
|
|
1729
1759
|
if ('playerVars' in _this.props.opts) {
|
|
1730
1760
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1761
|
+
|
|
1731
1762
|
if ('start' in _this.props.opts.playerVars) {
|
|
1732
1763
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1733
1764
|
}
|
|
1765
|
+
|
|
1734
1766
|
if ('end' in _this.props.opts.playerVars) {
|
|
1735
1767
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1736
1768
|
}
|
|
1737
|
-
}
|
|
1769
|
+
} // if autoplay is enabled loadVideoById
|
|
1770
|
+
|
|
1738
1771
|
|
|
1739
|
-
// if autoplay is enabled loadVideoById
|
|
1740
1772
|
if (autoplay) {
|
|
1741
1773
|
_this.internalPlayer.loadVideoById(opts);
|
|
1774
|
+
|
|
1742
1775
|
return;
|
|
1743
|
-
}
|
|
1744
|
-
|
|
1776
|
+
} // default behaviour just cues the video
|
|
1777
|
+
|
|
1778
|
+
|
|
1745
1779
|
_this.internalPlayer.cueVideoById(opts);
|
|
1746
|
-
};
|
|
1780
|
+
});
|
|
1747
1781
|
|
|
1748
|
-
_this
|
|
1782
|
+
_defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
|
|
1749
1783
|
_this.container = container;
|
|
1750
|
-
};
|
|
1784
|
+
});
|
|
1751
1785
|
|
|
1752
1786
|
_this.container = null;
|
|
1753
1787
|
_this.internalPlayer = null;
|
|
1754
1788
|
return _this;
|
|
1755
1789
|
}
|
|
1756
1790
|
|
|
1757
|
-
/**
|
|
1758
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1759
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1760
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1761
|
-
*/
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
1791
|
_createClass(YouTube, [{
|
|
1765
|
-
key:
|
|
1792
|
+
key: "componentDidMount",
|
|
1766
1793
|
value: function componentDidMount() {
|
|
1767
1794
|
this.createPlayer();
|
|
1768
1795
|
}
|
|
1769
1796
|
}, {
|
|
1770
|
-
key:
|
|
1797
|
+
key: "componentDidUpdate",
|
|
1771
1798
|
value: function componentDidUpdate(prevProps) {
|
|
1772
1799
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1773
1800
|
this.updatePlayer();
|
|
@@ -1782,112 +1809,58 @@ var YouTube = function (_React$Component) {
|
|
|
1782
1809
|
}
|
|
1783
1810
|
}
|
|
1784
1811
|
}, {
|
|
1785
|
-
key:
|
|
1812
|
+
key: "componentWillUnmount",
|
|
1786
1813
|
value: function componentWillUnmount() {
|
|
1787
|
-
/**
|
|
1788
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1789
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1790
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1791
|
-
* this method isn't quick enough to reset the container element.
|
|
1814
|
+
/**
|
|
1815
|
+
* Note: The `youtube-player` package that is used promisifies all YouTube
|
|
1816
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1817
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1818
|
+
* this method isn't quick enough to reset the container element.
|
|
1792
1819
|
*/
|
|
1793
1820
|
this.internalPlayer.destroy();
|
|
1794
1821
|
}
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
*
|
|
1798
|
-
*
|
|
1799
|
-
*
|
|
1800
|
-
* @param {Object} target - player object
|
|
1801
|
-
*/
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
/**
|
|
1805
|
-
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1806
|
-
*
|
|
1807
|
-
* @param {Object} event
|
|
1808
|
-
* @param {Integer} data - error type
|
|
1809
|
-
* @param {Object} target - player object
|
|
1810
|
-
*/
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
/**
|
|
1814
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1815
|
-
*
|
|
1816
|
-
* @param {Object} event
|
|
1817
|
-
* @param {Integer} data - status change type
|
|
1818
|
-
* @param {Object} target - actual YT player
|
|
1819
|
-
*/
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
/**
|
|
1823
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1824
|
-
*
|
|
1825
|
-
* @param {Object} event
|
|
1826
|
-
* @param {Float} data - playback rate
|
|
1827
|
-
* @param {Object} target - actual YT player
|
|
1828
|
-
*/
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
/**
|
|
1832
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1833
|
-
*
|
|
1834
|
-
* @param {Object} event
|
|
1835
|
-
* @param {String} data - playback quality
|
|
1836
|
-
* @param {Object} target - actual YT player
|
|
1837
|
-
*/
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
/**
|
|
1841
|
-
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1842
|
-
*/
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
/**
|
|
1846
|
-
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1847
|
-
*/
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
/**
|
|
1851
|
-
* Method to update the id and class of the Youtube Player iframe.
|
|
1852
|
-
* React should update this automatically but since the Youtube Player API
|
|
1853
|
-
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1854
|
-
*/
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
/**
|
|
1858
|
-
* Call Youtube Player API methods to update the currently playing video.
|
|
1859
|
-
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1860
|
-
* Youtube Player API methods to update the video.
|
|
1822
|
+
/**
|
|
1823
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1824
|
+
*
|
|
1825
|
+
* @param {Object} event
|
|
1826
|
+
* @param {Object} target - player object
|
|
1861
1827
|
*/
|
|
1862
1828
|
|
|
1863
1829
|
}, {
|
|
1864
|
-
key:
|
|
1830
|
+
key: "render",
|
|
1865
1831
|
value: function render() {
|
|
1866
|
-
return React__default.createElement(
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1832
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1833
|
+
className: this.props.containerClassName
|
|
1834
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1835
|
+
id: this.props.id,
|
|
1836
|
+
className: this.props.className,
|
|
1837
|
+
ref: this.refContainer
|
|
1838
|
+
}));
|
|
1871
1839
|
}
|
|
1872
1840
|
}]);
|
|
1873
1841
|
|
|
1874
1842
|
return YouTube;
|
|
1875
1843
|
}(React__default.Component);
|
|
1876
1844
|
|
|
1845
|
+
_defineProperty(YouTube, "PlayerState", {
|
|
1846
|
+
UNSTARTED: -1,
|
|
1847
|
+
ENDED: 0,
|
|
1848
|
+
PLAYING: 1,
|
|
1849
|
+
PAUSED: 2,
|
|
1850
|
+
BUFFERING: 3,
|
|
1851
|
+
CUED: 5
|
|
1852
|
+
});
|
|
1853
|
+
|
|
1877
1854
|
YouTube.propTypes = {
|
|
1878
1855
|
videoId: PropTypes__default.string,
|
|
1879
|
-
|
|
1880
1856
|
// custom ID for player element
|
|
1881
1857
|
id: PropTypes__default.string,
|
|
1882
|
-
|
|
1883
1858
|
// custom class name for player element
|
|
1884
1859
|
className: PropTypes__default.string,
|
|
1885
1860
|
// custom class name for player container element
|
|
1886
1861
|
containerClassName: PropTypes__default.string,
|
|
1887
|
-
|
|
1888
1862
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1889
1863
|
opts: PropTypes__default.objectOf(PropTypes__default.any),
|
|
1890
|
-
|
|
1891
1864
|
// event subscriptions
|
|
1892
1865
|
onReady: PropTypes__default.func,
|
|
1893
1866
|
onError: PropTypes__default.func,
|
|
@@ -1899,6 +1872,7 @@ YouTube.propTypes = {
|
|
|
1899
1872
|
onPlaybackQualityChange: PropTypes__default.func
|
|
1900
1873
|
};
|
|
1901
1874
|
YouTube.defaultProps = {
|
|
1875
|
+
videoId: null,
|
|
1902
1876
|
id: null,
|
|
1903
1877
|
className: null,
|
|
1904
1878
|
opts: {},
|
|
@@ -1912,14 +1886,6 @@ YouTube.defaultProps = {
|
|
|
1912
1886
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1913
1887
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1914
1888
|
};
|
|
1915
|
-
YouTube.PlayerState = {
|
|
1916
|
-
UNSTARTED: -1,
|
|
1917
|
-
ENDED: 0,
|
|
1918
|
-
PLAYING: 1,
|
|
1919
|
-
PAUSED: 2,
|
|
1920
|
-
BUFFERING: 3,
|
|
1921
|
-
CUED: 5
|
|
1922
|
-
};
|
|
1923
1889
|
|
|
1924
1890
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1925
1891
|
var url = _ref.url;
|
|
@@ -2183,7 +2149,7 @@ var Media = function Media(_ref) {
|
|
|
2183
2149
|
React__default.createElement(
|
|
2184
2150
|
index$2.LazyLoad,
|
|
2185
2151
|
{ once: true },
|
|
2186
|
-
React__default.createElement(reactBootstrap.Figure.Image, _extends
|
|
2152
|
+
React__default.createElement(reactBootstrap.Figure.Image, _extends._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt }))
|
|
2187
2153
|
),
|
|
2188
2154
|
caption && React__default.createElement(
|
|
2189
2155
|
reactBootstrap.Figure.Caption,
|
|
@@ -2195,7 +2161,7 @@ var Media = function Media(_ref) {
|
|
|
2195
2161
|
} else if (caption && caption !== '') {
|
|
2196
2162
|
return React__default.createElement(
|
|
2197
2163
|
'a',
|
|
2198
|
-
_extends
|
|
2164
|
+
_extends._extends({}, uploadDoc.downloadMedia ? {
|
|
2199
2165
|
href: uploadDoc.asset.url + '?dl='
|
|
2200
2166
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2201
2167
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2248,7 +2214,7 @@ var Video = function Video(_ref) {
|
|
|
2248
2214
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2249
2215
|
//console.log('success:', success.ref)
|
|
2250
2216
|
var player = success.ref;
|
|
2251
|
-
if (_typeof._typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2217
|
+
if (_typeof$1._typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2252
2218
|
player.ima3.settings.debug = true;
|
|
2253
2219
|
if (targeting.content_placement && targeting.document_url) {
|
|
2254
2220
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2763,11 +2729,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2763
2729
|
|
|
2764
2730
|
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; }
|
|
2765
2731
|
|
|
2766
|
-
function
|
|
2732
|
+
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; } } }; }
|
|
2733
|
+
|
|
2734
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2735
|
+
|
|
2736
|
+
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."); }
|
|
2737
|
+
|
|
2738
|
+
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); }
|
|
2767
2739
|
|
|
2768
|
-
function
|
|
2740
|
+
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; }
|
|
2769
2741
|
|
|
2770
|
-
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr)
|
|
2742
|
+
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; }
|
|
2771
2743
|
|
|
2772
2744
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2773
2745
|
|
|
@@ -2897,12 +2869,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
2897
2869
|
|
|
2898
2870
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
2899
2871
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
2900
|
-
|
|
2901
|
-
var
|
|
2902
|
-
|
|
2872
|
+
|
|
2873
|
+
var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
|
|
2874
|
+
_step;
|
|
2903
2875
|
|
|
2904
2876
|
try {
|
|
2905
|
-
for (
|
|
2877
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
2906
2878
|
var p = _step.value;
|
|
2907
2879
|
|
|
2908
2880
|
if (props$1[p]) {
|
|
@@ -2917,18 +2889,9 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
2917
2889
|
}
|
|
2918
2890
|
}
|
|
2919
2891
|
} catch (err) {
|
|
2920
|
-
|
|
2921
|
-
_iteratorError = err;
|
|
2892
|
+
_iterator.e(err);
|
|
2922
2893
|
} finally {
|
|
2923
|
-
|
|
2924
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
2925
|
-
_iterator["return"]();
|
|
2926
|
-
}
|
|
2927
|
-
} finally {
|
|
2928
|
-
if (_didIteratorError) {
|
|
2929
|
-
throw _iteratorError;
|
|
2930
|
-
}
|
|
2931
|
-
}
|
|
2894
|
+
_iterator.f();
|
|
2932
2895
|
}
|
|
2933
2896
|
|
|
2934
2897
|
return config;
|
|
@@ -3075,12 +3038,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3075
3038
|
|
|
3076
3039
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3077
3040
|
|
|
3078
|
-
function
|
|
3041
|
+
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); }; }
|
|
3079
3042
|
|
|
3080
|
-
function
|
|
3043
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3081
3044
|
|
|
3082
3045
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3083
3046
|
|
|
3047
|
+
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; } }
|
|
3048
|
+
|
|
3049
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3050
|
+
|
|
3084
3051
|
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); }
|
|
3085
3052
|
|
|
3086
3053
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3089,14 +3056,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3089
3056
|
|
|
3090
3057
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3091
3058
|
|
|
3092
|
-
var Player =
|
|
3093
|
-
/*#__PURE__*/
|
|
3094
|
-
function (_Component) {
|
|
3059
|
+
var Player = /*#__PURE__*/function (_Component) {
|
|
3095
3060
|
_inherits(Player, _Component);
|
|
3096
3061
|
|
|
3097
|
-
|
|
3098
|
-
var _getPrototypeOf2;
|
|
3062
|
+
var _super = _createSuper(Player);
|
|
3099
3063
|
|
|
3064
|
+
function Player() {
|
|
3100
3065
|
var _this;
|
|
3101
3066
|
|
|
3102
3067
|
_classCallCheck(this, Player);
|
|
@@ -3105,7 +3070,7 @@ function (_Component) {
|
|
|
3105
3070
|
_args[_key] = arguments[_key];
|
|
3106
3071
|
}
|
|
3107
3072
|
|
|
3108
|
-
_this =
|
|
3073
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
3109
3074
|
|
|
3110
3075
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3111
3076
|
|
|
@@ -3430,7 +3395,7 @@ function (_Component) {
|
|
|
3430
3395
|
return null;
|
|
3431
3396
|
}
|
|
3432
3397
|
|
|
3433
|
-
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3398
|
+
return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
|
|
3434
3399
|
ref: this.ref,
|
|
3435
3400
|
onReady: this.handleReady,
|
|
3436
3401
|
onPlay: this.handlePlay,
|
|
@@ -3491,12 +3456,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3491
3456
|
|
|
3492
3457
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3493
3458
|
|
|
3494
|
-
function
|
|
3459
|
+
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); }; }
|
|
3495
3460
|
|
|
3496
|
-
function
|
|
3461
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3497
3462
|
|
|
3498
3463
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3499
3464
|
|
|
3465
|
+
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; } }
|
|
3466
|
+
|
|
3467
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3468
|
+
|
|
3500
3469
|
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); }
|
|
3501
3470
|
|
|
3502
3471
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3508,14 +3477,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3508
3477
|
function createSinglePlayer(activePlayer) {
|
|
3509
3478
|
var _class, _temp;
|
|
3510
3479
|
|
|
3511
|
-
return _temp = _class =
|
|
3512
|
-
/*#__PURE__*/
|
|
3513
|
-
function (_Component) {
|
|
3480
|
+
return _temp = _class = /*#__PURE__*/function (_Component) {
|
|
3514
3481
|
_inherits(SinglePlayer, _Component);
|
|
3515
3482
|
|
|
3516
|
-
|
|
3517
|
-
var _getPrototypeOf2;
|
|
3483
|
+
var _super = _createSuper(SinglePlayer);
|
|
3518
3484
|
|
|
3485
|
+
function SinglePlayer() {
|
|
3519
3486
|
var _this;
|
|
3520
3487
|
|
|
3521
3488
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3524,7 +3491,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3524
3491
|
args[_key] = arguments[_key];
|
|
3525
3492
|
}
|
|
3526
3493
|
|
|
3527
|
-
_this =
|
|
3494
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3528
3495
|
|
|
3529
3496
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3530
3497
|
|
|
@@ -3592,12 +3559,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3592
3559
|
height = _this$props.height,
|
|
3593
3560
|
Wrapper = _this$props.wrapper;
|
|
3594
3561
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3595
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
3562
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
3596
3563
|
style: _objectSpread({}, style, {
|
|
3597
3564
|
width: width,
|
|
3598
3565
|
height: height
|
|
3599
3566
|
})
|
|
3600
|
-
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3567
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3601
3568
|
ref: this.ref,
|
|
3602
3569
|
activePlayer: activePlayer,
|
|
3603
3570
|
config: this.config
|
|
@@ -3643,23 +3610,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3643
3610
|
|
|
3644
3611
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3645
3612
|
|
|
3646
|
-
function
|
|
3613
|
+
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); }; }
|
|
3647
3614
|
|
|
3648
|
-
function
|
|
3615
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3649
3616
|
|
|
3650
3617
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3651
3618
|
|
|
3619
|
+
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; } }
|
|
3620
|
+
|
|
3621
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3622
|
+
|
|
3652
3623
|
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); }
|
|
3653
3624
|
|
|
3654
3625
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3655
3626
|
|
|
3656
3627
|
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; }
|
|
3657
3628
|
|
|
3658
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3629
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3630
|
+
|
|
3631
|
+
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."); }
|
|
3632
|
+
|
|
3633
|
+
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); }
|
|
3659
3634
|
|
|
3660
|
-
function
|
|
3635
|
+
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; }
|
|
3661
3636
|
|
|
3662
|
-
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr)
|
|
3637
|
+
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; }
|
|
3663
3638
|
|
|
3664
3639
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3665
3640
|
|
|
@@ -3684,14 +3659,12 @@ function parsePlaylist(url) {
|
|
|
3684
3659
|
return {};
|
|
3685
3660
|
}
|
|
3686
3661
|
|
|
3687
|
-
var YouTube =
|
|
3688
|
-
/*#__PURE__*/
|
|
3689
|
-
function (_Component) {
|
|
3662
|
+
var YouTube = /*#__PURE__*/function (_Component) {
|
|
3690
3663
|
_inherits(YouTube, _Component);
|
|
3691
3664
|
|
|
3692
|
-
|
|
3693
|
-
var _getPrototypeOf2;
|
|
3665
|
+
var _super = _createSuper(YouTube);
|
|
3694
3666
|
|
|
3667
|
+
function YouTube() {
|
|
3695
3668
|
var _this;
|
|
3696
3669
|
|
|
3697
3670
|
_classCallCheck(this, YouTube);
|
|
@@ -3700,7 +3673,7 @@ function (_Component) {
|
|
|
3700
3673
|
args[_key] = arguments[_key];
|
|
3701
3674
|
}
|
|
3702
3675
|
|
|
3703
|
-
_this =
|
|
3676
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3704
3677
|
|
|
3705
3678
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3706
3679
|
|
|
@@ -3888,9 +3861,9 @@ function (_Component) {
|
|
|
3888
3861
|
height: '100%',
|
|
3889
3862
|
display: display
|
|
3890
3863
|
};
|
|
3891
|
-
return _react["default"].createElement("div", {
|
|
3864
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
3892
3865
|
style: style
|
|
3893
|
-
}, _react["default"].createElement("div", {
|
|
3866
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
3894
3867
|
ref: this.ref
|
|
3895
3868
|
}));
|
|
3896
3869
|
}
|
|
@@ -3946,12 +3919,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3946
3919
|
|
|
3947
3920
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3948
3921
|
|
|
3949
|
-
function
|
|
3922
|
+
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); }; }
|
|
3950
3923
|
|
|
3951
|
-
function
|
|
3924
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3952
3925
|
|
|
3953
3926
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3954
3927
|
|
|
3928
|
+
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; } }
|
|
3929
|
+
|
|
3930
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3931
|
+
|
|
3955
3932
|
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); }
|
|
3956
3933
|
|
|
3957
3934
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3960,16 +3937,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3960
3937
|
|
|
3961
3938
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
3962
3939
|
var SDK_GLOBAL = 'SC';
|
|
3963
|
-
var MATCH_URL = /(soundcloud\.com|snd\.sc)
|
|
3940
|
+
var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
3964
3941
|
|
|
3965
|
-
var SoundCloud =
|
|
3966
|
-
/*#__PURE__*/
|
|
3967
|
-
function (_Component) {
|
|
3942
|
+
var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
3968
3943
|
_inherits(SoundCloud, _Component);
|
|
3969
3944
|
|
|
3970
|
-
|
|
3971
|
-
var _getPrototypeOf2;
|
|
3945
|
+
var _super = _createSuper(SoundCloud);
|
|
3972
3946
|
|
|
3947
|
+
function SoundCloud() {
|
|
3973
3948
|
var _this;
|
|
3974
3949
|
|
|
3975
3950
|
_classCallCheck(this, SoundCloud);
|
|
@@ -3978,7 +3953,7 @@ function (_Component) {
|
|
|
3978
3953
|
args[_key] = arguments[_key];
|
|
3979
3954
|
}
|
|
3980
3955
|
|
|
3981
|
-
_this =
|
|
3956
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3982
3957
|
|
|
3983
3958
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3984
3959
|
|
|
@@ -4099,7 +4074,7 @@ function (_Component) {
|
|
|
4099
4074
|
height: '100%',
|
|
4100
4075
|
display: display
|
|
4101
4076
|
};
|
|
4102
|
-
return _react["default"].createElement("iframe", {
|
|
4077
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4103
4078
|
ref: this.ref,
|
|
4104
4079
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4105
4080
|
style: style,
|
|
@@ -4161,12 +4136,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4161
4136
|
|
|
4162
4137
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4163
4138
|
|
|
4164
|
-
function
|
|
4139
|
+
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); }; }
|
|
4165
4140
|
|
|
4166
|
-
function
|
|
4141
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4167
4142
|
|
|
4168
4143
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4169
4144
|
|
|
4145
|
+
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; } }
|
|
4146
|
+
|
|
4147
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4148
|
+
|
|
4170
4149
|
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); }
|
|
4171
4150
|
|
|
4172
4151
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4178,14 +4157,12 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4178
4157
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4179
4158
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4180
4159
|
|
|
4181
|
-
var Vimeo =
|
|
4182
|
-
/*#__PURE__*/
|
|
4183
|
-
function (_Component) {
|
|
4160
|
+
var Vimeo = /*#__PURE__*/function (_Component) {
|
|
4184
4161
|
_inherits(Vimeo, _Component);
|
|
4185
4162
|
|
|
4186
|
-
|
|
4187
|
-
var _getPrototypeOf2;
|
|
4163
|
+
var _super = _createSuper(Vimeo);
|
|
4188
4164
|
|
|
4165
|
+
function Vimeo() {
|
|
4189
4166
|
var _this;
|
|
4190
4167
|
|
|
4191
4168
|
_classCallCheck(this, Vimeo);
|
|
@@ -4194,7 +4171,7 @@ function (_Component) {
|
|
|
4194
4171
|
args[_key] = arguments[_key];
|
|
4195
4172
|
}
|
|
4196
4173
|
|
|
4197
|
-
_this =
|
|
4174
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4198
4175
|
|
|
4199
4176
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4200
4177
|
|
|
@@ -4351,7 +4328,7 @@ function (_Component) {
|
|
|
4351
4328
|
overflow: 'hidden',
|
|
4352
4329
|
display: display
|
|
4353
4330
|
};
|
|
4354
|
-
return _react["default"].createElement("div", {
|
|
4331
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4355
4332
|
key: this.props.url,
|
|
4356
4333
|
ref: this.ref,
|
|
4357
4334
|
style: style
|
|
@@ -4411,12 +4388,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4411
4388
|
|
|
4412
4389
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4413
4390
|
|
|
4414
|
-
function
|
|
4391
|
+
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); }; }
|
|
4415
4392
|
|
|
4416
|
-
function
|
|
4393
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4417
4394
|
|
|
4418
4395
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4419
4396
|
|
|
4397
|
+
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; } }
|
|
4398
|
+
|
|
4399
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4400
|
+
|
|
4420
4401
|
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); }
|
|
4421
4402
|
|
|
4422
4403
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4429,14 +4410,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4429
4410
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4430
4411
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4431
4412
|
|
|
4432
|
-
var Facebook =
|
|
4433
|
-
/*#__PURE__*/
|
|
4434
|
-
function (_Component) {
|
|
4413
|
+
var Facebook = /*#__PURE__*/function (_Component) {
|
|
4435
4414
|
_inherits(Facebook, _Component);
|
|
4436
4415
|
|
|
4437
|
-
|
|
4438
|
-
var _getPrototypeOf2;
|
|
4416
|
+
var _super = _createSuper(Facebook);
|
|
4439
4417
|
|
|
4418
|
+
function Facebook() {
|
|
4440
4419
|
var _this;
|
|
4441
4420
|
|
|
4442
4421
|
_classCallCheck(this, Facebook);
|
|
@@ -4445,7 +4424,7 @@ function (_Component) {
|
|
|
4445
4424
|
args[_key] = arguments[_key];
|
|
4446
4425
|
}
|
|
4447
4426
|
|
|
4448
|
-
_this =
|
|
4427
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4449
4428
|
|
|
4450
4429
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4451
4430
|
|
|
@@ -4561,7 +4540,7 @@ function (_Component) {
|
|
|
4561
4540
|
width: '100%',
|
|
4562
4541
|
height: '100%'
|
|
4563
4542
|
};
|
|
4564
|
-
return _react["default"].createElement("div", {
|
|
4543
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4565
4544
|
style: style,
|
|
4566
4545
|
id: this.playerID,
|
|
4567
4546
|
className: "fb-video",
|
|
@@ -4621,12 +4600,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4621
4600
|
|
|
4622
4601
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4623
4602
|
|
|
4624
|
-
function
|
|
4603
|
+
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); }; }
|
|
4625
4604
|
|
|
4626
|
-
function
|
|
4605
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4627
4606
|
|
|
4628
4607
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4629
4608
|
|
|
4609
|
+
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; } }
|
|
4610
|
+
|
|
4611
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4612
|
+
|
|
4630
4613
|
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); }
|
|
4631
4614
|
|
|
4632
4615
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4637,14 +4620,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4637
4620
|
var SDK_GLOBAL = 'playerjs';
|
|
4638
4621
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4639
4622
|
|
|
4640
|
-
var Streamable =
|
|
4641
|
-
/*#__PURE__*/
|
|
4642
|
-
function (_Component) {
|
|
4623
|
+
var Streamable = /*#__PURE__*/function (_Component) {
|
|
4643
4624
|
_inherits(Streamable, _Component);
|
|
4644
4625
|
|
|
4645
|
-
|
|
4646
|
-
var _getPrototypeOf2;
|
|
4626
|
+
var _super = _createSuper(Streamable);
|
|
4647
4627
|
|
|
4628
|
+
function Streamable() {
|
|
4648
4629
|
var _this;
|
|
4649
4630
|
|
|
4650
4631
|
_classCallCheck(this, Streamable);
|
|
@@ -4653,7 +4634,7 @@ function (_Component) {
|
|
|
4653
4634
|
args[_key] = arguments[_key];
|
|
4654
4635
|
}
|
|
4655
4636
|
|
|
4656
|
-
_this =
|
|
4637
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4657
4638
|
|
|
4658
4639
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4659
4640
|
|
|
@@ -4773,7 +4754,7 @@ function (_Component) {
|
|
|
4773
4754
|
width: '100%',
|
|
4774
4755
|
height: '100%'
|
|
4775
4756
|
};
|
|
4776
|
-
return _react["default"].createElement("iframe", {
|
|
4757
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4777
4758
|
ref: this.ref,
|
|
4778
4759
|
src: "https://streamable.com/o/".concat(id),
|
|
4779
4760
|
frameBorder: "0",
|
|
@@ -4834,12 +4815,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4834
4815
|
|
|
4835
4816
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4836
4817
|
|
|
4837
|
-
function
|
|
4818
|
+
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); }; }
|
|
4838
4819
|
|
|
4839
|
-
function
|
|
4820
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4840
4821
|
|
|
4841
4822
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4842
4823
|
|
|
4824
|
+
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; } }
|
|
4825
|
+
|
|
4826
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4827
|
+
|
|
4843
4828
|
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); }
|
|
4844
4829
|
|
|
4845
4830
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4850,26 +4835,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4850
4835
|
var SDK_GLOBAL = 'Wistia';
|
|
4851
4836
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4852
4837
|
|
|
4853
|
-
var Wistia =
|
|
4854
|
-
/*#__PURE__*/
|
|
4855
|
-
function (_Component) {
|
|
4838
|
+
var Wistia = /*#__PURE__*/function (_Component) {
|
|
4856
4839
|
_inherits(Wistia, _Component);
|
|
4857
4840
|
|
|
4858
|
-
|
|
4859
|
-
var _getPrototypeOf2;
|
|
4841
|
+
var _super = _createSuper(Wistia);
|
|
4860
4842
|
|
|
4843
|
+
function Wistia() {
|
|
4861
4844
|
var _this;
|
|
4862
4845
|
|
|
4863
4846
|
_classCallCheck(this, Wistia);
|
|
4864
4847
|
|
|
4865
|
-
for (var _len = arguments.length,
|
|
4866
|
-
|
|
4848
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4849
|
+
_args[_key] = arguments[_key];
|
|
4867
4850
|
}
|
|
4868
4851
|
|
|
4869
|
-
_this =
|
|
4852
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
4870
4853
|
|
|
4871
4854
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4872
4855
|
|
|
4856
|
+
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4857
|
+
var _this$props;
|
|
4858
|
+
|
|
4859
|
+
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4860
|
+
});
|
|
4861
|
+
|
|
4862
|
+
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4863
|
+
var _this$props2;
|
|
4864
|
+
|
|
4865
|
+
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4866
|
+
});
|
|
4867
|
+
|
|
4868
|
+
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
4869
|
+
var _this$props3;
|
|
4870
|
+
|
|
4871
|
+
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
4872
|
+
});
|
|
4873
|
+
|
|
4874
|
+
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
4875
|
+
var _this$props4;
|
|
4876
|
+
|
|
4877
|
+
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
4878
|
+
});
|
|
4879
|
+
|
|
4873
4880
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
4874
4881
|
_this.callPlayer('mute');
|
|
4875
4882
|
});
|
|
@@ -4891,17 +4898,13 @@ function (_Component) {
|
|
|
4891
4898
|
value: function load(url) {
|
|
4892
4899
|
var _this2 = this;
|
|
4893
4900
|
|
|
4894
|
-
var _this$
|
|
4895
|
-
playing = _this$
|
|
4896
|
-
muted = _this$
|
|
4897
|
-
controls = _this$
|
|
4898
|
-
_onReady = _this$
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
onSeek = _this$props.onSeek,
|
|
4902
|
-
onEnded = _this$props.onEnded,
|
|
4903
|
-
config = _this$props.config,
|
|
4904
|
-
onError = _this$props.onError;
|
|
4901
|
+
var _this$props5 = this.props,
|
|
4902
|
+
playing = _this$props5.playing,
|
|
4903
|
+
muted = _this$props5.muted,
|
|
4904
|
+
controls = _this$props5.controls,
|
|
4905
|
+
_onReady = _this$props5.onReady,
|
|
4906
|
+
config = _this$props5.config,
|
|
4907
|
+
onError = _this$props5.onError;
|
|
4905
4908
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
4906
4909
|
window._wq = window._wq || [];
|
|
4907
4910
|
|
|
@@ -4918,19 +4921,28 @@ function (_Component) {
|
|
|
4918
4921
|
|
|
4919
4922
|
_this2.unbind();
|
|
4920
4923
|
|
|
4921
|
-
_this2.player.bind('play', onPlay);
|
|
4924
|
+
_this2.player.bind('play', _this2.onPlay);
|
|
4922
4925
|
|
|
4923
|
-
_this2.player.bind('pause', onPause);
|
|
4926
|
+
_this2.player.bind('pause', _this2.onPause);
|
|
4924
4927
|
|
|
4925
|
-
_this2.player.bind('seek', onSeek);
|
|
4928
|
+
_this2.player.bind('seek', _this2.onSeek);
|
|
4926
4929
|
|
|
4927
|
-
_this2.player.bind('end', onEnded);
|
|
4930
|
+
_this2.player.bind('end', _this2.onEnded);
|
|
4928
4931
|
|
|
4929
4932
|
_onReady();
|
|
4930
4933
|
}
|
|
4931
4934
|
});
|
|
4932
4935
|
}, onError);
|
|
4933
4936
|
}
|
|
4937
|
+
}, {
|
|
4938
|
+
key: "unbind",
|
|
4939
|
+
value: function unbind() {
|
|
4940
|
+
this.player.unbind('play', this.onPlay);
|
|
4941
|
+
this.player.unbind('pause', this.onPause);
|
|
4942
|
+
this.player.unbind('seek', this.onSeek);
|
|
4943
|
+
this.player.unbind('end', this.onEnded);
|
|
4944
|
+
} // Proxy methods to prevent listener leaks
|
|
4945
|
+
|
|
4934
4946
|
}, {
|
|
4935
4947
|
key: "play",
|
|
4936
4948
|
value: function play() {
|
|
@@ -4941,19 +4953,6 @@ function (_Component) {
|
|
|
4941
4953
|
value: function pause() {
|
|
4942
4954
|
this.callPlayer('pause');
|
|
4943
4955
|
}
|
|
4944
|
-
}, {
|
|
4945
|
-
key: "unbind",
|
|
4946
|
-
value: function unbind() {
|
|
4947
|
-
var _this$props2 = this.props,
|
|
4948
|
-
onPlay = _this$props2.onPlay,
|
|
4949
|
-
onPause = _this$props2.onPause,
|
|
4950
|
-
onSeek = _this$props2.onSeek,
|
|
4951
|
-
onEnded = _this$props2.onEnded;
|
|
4952
|
-
this.player.unbind('play', onPlay);
|
|
4953
|
-
this.player.unbind('pause', onPause);
|
|
4954
|
-
this.player.unbind('seek', onSeek);
|
|
4955
|
-
this.player.unbind('end', onEnded);
|
|
4956
|
-
}
|
|
4957
4956
|
}, {
|
|
4958
4957
|
key: "stop",
|
|
4959
4958
|
value: function stop() {
|
|
@@ -4999,7 +4998,7 @@ function (_Component) {
|
|
|
4999
4998
|
width: '100%',
|
|
5000
4999
|
height: '100%'
|
|
5001
5000
|
};
|
|
5002
|
-
return _react["default"].createElement("div", {
|
|
5001
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5003
5002
|
key: id,
|
|
5004
5003
|
className: className,
|
|
5005
5004
|
style: style
|
|
@@ -5059,12 +5058,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5059
5058
|
|
|
5060
5059
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5061
5060
|
|
|
5062
|
-
function
|
|
5061
|
+
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); }; }
|
|
5063
5062
|
|
|
5064
|
-
function
|
|
5063
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5065
5064
|
|
|
5066
5065
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5067
5066
|
|
|
5067
|
+
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; } }
|
|
5068
|
+
|
|
5069
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5070
|
+
|
|
5068
5071
|
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); }
|
|
5069
5072
|
|
|
5070
5073
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5077,14 +5080,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5077
5080
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5078
5081
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5079
5082
|
|
|
5080
|
-
var Twitch =
|
|
5081
|
-
/*#__PURE__*/
|
|
5082
|
-
function (_Component) {
|
|
5083
|
+
var Twitch = /*#__PURE__*/function (_Component) {
|
|
5083
5084
|
_inherits(Twitch, _Component);
|
|
5084
5085
|
|
|
5085
|
-
|
|
5086
|
-
var _getPrototypeOf2;
|
|
5086
|
+
var _super = _createSuper(Twitch);
|
|
5087
5087
|
|
|
5088
|
+
function Twitch() {
|
|
5088
5089
|
var _this;
|
|
5089
5090
|
|
|
5090
5091
|
_classCallCheck(this, Twitch);
|
|
@@ -5093,7 +5094,7 @@ function (_Component) {
|
|
|
5093
5094
|
args[_key] = arguments[_key];
|
|
5094
5095
|
}
|
|
5095
5096
|
|
|
5096
|
-
_this =
|
|
5097
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5097
5098
|
|
|
5098
5099
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5099
5100
|
|
|
@@ -5214,7 +5215,7 @@ function (_Component) {
|
|
|
5214
5215
|
width: '100%',
|
|
5215
5216
|
height: '100%'
|
|
5216
5217
|
};
|
|
5217
|
-
return _react["default"].createElement("div", {
|
|
5218
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5218
5219
|
style: style,
|
|
5219
5220
|
id: this.playerID
|
|
5220
5221
|
});
|
|
@@ -5267,11 +5268,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5267
5268
|
|
|
5268
5269
|
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; }
|
|
5269
5270
|
|
|
5270
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5271
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5272
|
+
|
|
5273
|
+
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."); }
|
|
5274
|
+
|
|
5275
|
+
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); }
|
|
5271
5276
|
|
|
5272
|
-
function
|
|
5277
|
+
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; }
|
|
5273
5278
|
|
|
5274
|
-
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr)
|
|
5279
|
+
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; }
|
|
5275
5280
|
|
|
5276
5281
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5277
5282
|
|
|
@@ -5281,12 +5286,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5281
5286
|
|
|
5282
5287
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5283
5288
|
|
|
5284
|
-
function
|
|
5289
|
+
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); }; }
|
|
5285
5290
|
|
|
5286
|
-
function
|
|
5291
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5287
5292
|
|
|
5288
5293
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5289
5294
|
|
|
5295
|
+
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; } }
|
|
5296
|
+
|
|
5297
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5298
|
+
|
|
5290
5299
|
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); }
|
|
5291
5300
|
|
|
5292
5301
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5298,14 +5307,12 @@ var SDK_GLOBAL = 'DM';
|
|
|
5298
5307
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5299
5308
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5300
5309
|
|
|
5301
|
-
var DailyMotion =
|
|
5302
|
-
/*#__PURE__*/
|
|
5303
|
-
function (_Component) {
|
|
5310
|
+
var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
5304
5311
|
_inherits(DailyMotion, _Component);
|
|
5305
5312
|
|
|
5306
|
-
|
|
5307
|
-
var _getPrototypeOf2;
|
|
5313
|
+
var _super = _createSuper(DailyMotion);
|
|
5308
5314
|
|
|
5315
|
+
function DailyMotion() {
|
|
5309
5316
|
var _this;
|
|
5310
5317
|
|
|
5311
5318
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5314,7 +5321,7 @@ function (_Component) {
|
|
|
5314
5321
|
args[_key] = arguments[_key];
|
|
5315
5322
|
}
|
|
5316
5323
|
|
|
5317
|
-
_this =
|
|
5324
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5318
5325
|
|
|
5319
5326
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5320
5327
|
|
|
@@ -5443,9 +5450,9 @@ function (_Component) {
|
|
|
5443
5450
|
height: '100%',
|
|
5444
5451
|
display: display
|
|
5445
5452
|
};
|
|
5446
|
-
return _react["default"].createElement("div", {
|
|
5453
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5447
5454
|
style: style
|
|
5448
|
-
}, _react["default"].createElement("div", {
|
|
5455
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
5449
5456
|
ref: this.ref
|
|
5450
5457
|
}));
|
|
5451
5458
|
}
|
|
@@ -5503,12 +5510,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5503
5510
|
|
|
5504
5511
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5505
5512
|
|
|
5506
|
-
function
|
|
5513
|
+
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); }; }
|
|
5507
5514
|
|
|
5508
|
-
function
|
|
5515
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5509
5516
|
|
|
5510
5517
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5511
5518
|
|
|
5519
|
+
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; } }
|
|
5520
|
+
|
|
5521
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5522
|
+
|
|
5512
5523
|
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); }
|
|
5513
5524
|
|
|
5514
5525
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5519,14 +5530,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5519
5530
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5520
5531
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5521
5532
|
|
|
5522
|
-
var Mixcloud =
|
|
5523
|
-
/*#__PURE__*/
|
|
5524
|
-
function (_Component) {
|
|
5533
|
+
var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
5525
5534
|
_inherits(Mixcloud, _Component);
|
|
5526
5535
|
|
|
5527
|
-
|
|
5528
|
-
var _getPrototypeOf2;
|
|
5536
|
+
var _super = _createSuper(Mixcloud);
|
|
5529
5537
|
|
|
5538
|
+
function Mixcloud() {
|
|
5530
5539
|
var _this;
|
|
5531
5540
|
|
|
5532
5541
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5535,7 +5544,7 @@ function (_Component) {
|
|
|
5535
5544
|
args[_key] = arguments[_key];
|
|
5536
5545
|
}
|
|
5537
5546
|
|
|
5538
|
-
_this =
|
|
5547
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5539
5548
|
|
|
5540
5549
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5541
5550
|
|
|
@@ -5638,7 +5647,7 @@ function (_Component) {
|
|
|
5638
5647
|
})); // We have to give the iframe a key here to prevent a
|
|
5639
5648
|
// weird dialog appearing when loading a new track
|
|
5640
5649
|
|
|
5641
|
-
return _react["default"].createElement("iframe", {
|
|
5650
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
5642
5651
|
key: id,
|
|
5643
5652
|
ref: this.ref,
|
|
5644
5653
|
style: style,
|
|
@@ -5698,23 +5707,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5698
5707
|
|
|
5699
5708
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5700
5709
|
|
|
5701
|
-
function
|
|
5710
|
+
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); }; }
|
|
5702
5711
|
|
|
5703
|
-
function
|
|
5712
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5704
5713
|
|
|
5705
5714
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5706
5715
|
|
|
5716
|
+
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; } }
|
|
5717
|
+
|
|
5718
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5719
|
+
|
|
5707
5720
|
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); }
|
|
5708
5721
|
|
|
5709
5722
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5710
5723
|
|
|
5711
5724
|
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; }
|
|
5712
5725
|
|
|
5726
|
+
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; } } }; }
|
|
5727
|
+
|
|
5728
|
+
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); }
|
|
5729
|
+
|
|
5730
|
+
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; }
|
|
5731
|
+
|
|
5713
5732
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5714
5733
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5715
5734
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5716
5735
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5717
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5736
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
|
|
5718
5737
|
var HLS_GLOBAL = 'Hls';
|
|
5719
5738
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5720
5739
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5723,12 +5742,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5723
5742
|
|
|
5724
5743
|
function canPlay(url) {
|
|
5725
5744
|
if (url instanceof Array) {
|
|
5726
|
-
var
|
|
5727
|
-
|
|
5728
|
-
var _iteratorError = undefined;
|
|
5745
|
+
var _iterator = _createForOfIteratorHelper(url),
|
|
5746
|
+
_step;
|
|
5729
5747
|
|
|
5730
5748
|
try {
|
|
5731
|
-
for (
|
|
5749
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5732
5750
|
var item = _step.value;
|
|
5733
5751
|
|
|
5734
5752
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5740,18 +5758,9 @@ function canPlay(url) {
|
|
|
5740
5758
|
}
|
|
5741
5759
|
}
|
|
5742
5760
|
} catch (err) {
|
|
5743
|
-
|
|
5744
|
-
_iteratorError = err;
|
|
5761
|
+
_iterator.e(err);
|
|
5745
5762
|
} finally {
|
|
5746
|
-
|
|
5747
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5748
|
-
_iterator["return"]();
|
|
5749
|
-
}
|
|
5750
|
-
} finally {
|
|
5751
|
-
if (_didIteratorError) {
|
|
5752
|
-
throw _iteratorError;
|
|
5753
|
-
}
|
|
5754
|
-
}
|
|
5763
|
+
_iterator.f();
|
|
5755
5764
|
}
|
|
5756
5765
|
|
|
5757
5766
|
return false;
|
|
@@ -5775,14 +5784,12 @@ function canEnablePIP(url) {
|
|
|
5775
5784
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5776
5785
|
}
|
|
5777
5786
|
|
|
5778
|
-
var FilePlayer =
|
|
5779
|
-
/*#__PURE__*/
|
|
5780
|
-
function (_Component) {
|
|
5787
|
+
var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
5781
5788
|
_inherits(FilePlayer, _Component);
|
|
5782
5789
|
|
|
5783
|
-
|
|
5784
|
-
var _getPrototypeOf2;
|
|
5790
|
+
var _super = _createSuper(FilePlayer);
|
|
5785
5791
|
|
|
5792
|
+
function FilePlayer() {
|
|
5786
5793
|
var _this;
|
|
5787
5794
|
|
|
5788
5795
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5791,7 +5798,7 @@ function (_Component) {
|
|
|
5791
5798
|
_args[_key] = arguments[_key];
|
|
5792
5799
|
}
|
|
5793
5800
|
|
|
5794
|
-
_this =
|
|
5801
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5795
5802
|
|
|
5796
5803
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5797
5804
|
var _this$props;
|
|
@@ -5878,19 +5885,19 @@ function (_Component) {
|
|
|
5878
5885
|
|
|
5879
5886
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
5880
5887
|
if (typeof source === 'string') {
|
|
5881
|
-
return _react["default"].createElement("source", {
|
|
5888
|
+
return /*#__PURE__*/_react["default"].createElement("source", {
|
|
5882
5889
|
key: index,
|
|
5883
5890
|
src: source
|
|
5884
5891
|
});
|
|
5885
5892
|
}
|
|
5886
5893
|
|
|
5887
|
-
return _react["default"].createElement("source", _extends({
|
|
5894
|
+
return /*#__PURE__*/_react["default"].createElement("source", _extends({
|
|
5888
5895
|
key: index
|
|
5889
5896
|
}, source));
|
|
5890
5897
|
});
|
|
5891
5898
|
|
|
5892
5899
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
5893
|
-
return _react["default"].createElement("track", _extends({
|
|
5900
|
+
return /*#__PURE__*/_react["default"].createElement("track", _extends({
|
|
5894
5901
|
key: index
|
|
5895
5902
|
}, track));
|
|
5896
5903
|
});
|
|
@@ -5928,6 +5935,10 @@ function (_Component) {
|
|
|
5928
5935
|
key: "componentWillUnmount",
|
|
5929
5936
|
value: function componentWillUnmount() {
|
|
5930
5937
|
this.removeListeners(this.player);
|
|
5938
|
+
|
|
5939
|
+
if (this.hls) {
|
|
5940
|
+
this.hls.destroy();
|
|
5941
|
+
}
|
|
5931
5942
|
}
|
|
5932
5943
|
}, {
|
|
5933
5944
|
key: "addListeners",
|
|
@@ -6058,10 +6069,6 @@ function (_Component) {
|
|
|
6058
6069
|
value: function stop() {
|
|
6059
6070
|
this.player.removeAttribute('src');
|
|
6060
6071
|
|
|
6061
|
-
if (this.hls) {
|
|
6062
|
-
this.hls.destroy();
|
|
6063
|
-
}
|
|
6064
|
-
|
|
6065
6072
|
if (this.dash) {
|
|
6066
6073
|
this.dash.reset();
|
|
6067
6074
|
}
|
|
@@ -6173,7 +6180,7 @@ function (_Component) {
|
|
|
6173
6180
|
width: width === 'auto' ? width : '100%',
|
|
6174
6181
|
height: height === 'auto' ? height : '100%'
|
|
6175
6182
|
};
|
|
6176
|
-
return _react["default"].createElement(Element, _extends({
|
|
6183
|
+
return /*#__PURE__*/_react["default"].createElement(Element, _extends({
|
|
6177
6184
|
ref: this.ref,
|
|
6178
6185
|
src: this.getSource(url),
|
|
6179
6186
|
style: style,
|
|
@@ -6263,12 +6270,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6263
6270
|
|
|
6264
6271
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6265
6272
|
|
|
6266
|
-
function
|
|
6273
|
+
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); }; }
|
|
6267
6274
|
|
|
6268
|
-
function
|
|
6275
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6269
6276
|
|
|
6270
6277
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6271
6278
|
|
|
6279
|
+
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; } }
|
|
6280
|
+
|
|
6281
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6282
|
+
|
|
6272
6283
|
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); }
|
|
6273
6284
|
|
|
6274
6285
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6277,14 +6288,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6277
6288
|
|
|
6278
6289
|
var ICON_SIZE = '64px';
|
|
6279
6290
|
|
|
6280
|
-
var Preview =
|
|
6281
|
-
/*#__PURE__*/
|
|
6282
|
-
function (_Component) {
|
|
6291
|
+
var Preview = /*#__PURE__*/function (_Component) {
|
|
6283
6292
|
_inherits(Preview, _Component);
|
|
6284
6293
|
|
|
6285
|
-
|
|
6286
|
-
var _getPrototypeOf2;
|
|
6294
|
+
var _super = _createSuper(Preview);
|
|
6287
6295
|
|
|
6296
|
+
function Preview() {
|
|
6288
6297
|
var _this;
|
|
6289
6298
|
|
|
6290
6299
|
_classCallCheck(this, Preview);
|
|
@@ -6293,7 +6302,7 @@ function (_Component) {
|
|
|
6293
6302
|
args[_key] = arguments[_key];
|
|
6294
6303
|
}
|
|
6295
6304
|
|
|
6296
|
-
_this =
|
|
6305
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6297
6306
|
|
|
6298
6307
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6299
6308
|
|
|
@@ -6391,15 +6400,15 @@ function (_Component) {
|
|
|
6391
6400
|
}
|
|
6392
6401
|
};
|
|
6393
6402
|
|
|
6394
|
-
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6403
|
+
var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
|
|
6395
6404
|
style: styles.shadow,
|
|
6396
6405
|
className: "react-player__shadow"
|
|
6397
|
-
}, _react["default"].createElement("div", {
|
|
6406
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
6398
6407
|
style: styles.playIcon,
|
|
6399
6408
|
className: "react-player__play-icon"
|
|
6400
6409
|
}));
|
|
6401
6410
|
|
|
6402
|
-
return _react["default"].createElement("div", {
|
|
6411
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
6403
6412
|
style: styles.preview,
|
|
6404
6413
|
className: "react-player__preview",
|
|
6405
6414
|
onClick: onClick
|
|
@@ -6436,6 +6445,12 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6436
6445
|
|
|
6437
6446
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6438
6447
|
|
|
6448
|
+
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; } } }; }
|
|
6449
|
+
|
|
6450
|
+
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); }
|
|
6451
|
+
|
|
6452
|
+
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; }
|
|
6453
|
+
|
|
6439
6454
|
var PRELOAD_PLAYERS = [{
|
|
6440
6455
|
Player: YouTube_1.YouTube,
|
|
6441
6456
|
configKey: 'youtube',
|
|
@@ -6456,16 +6471,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6456
6471
|
|
|
6457
6472
|
function renderPreloadPlayers(url, controls, config) {
|
|
6458
6473
|
var players = [];
|
|
6459
|
-
|
|
6460
|
-
var
|
|
6461
|
-
|
|
6474
|
+
|
|
6475
|
+
var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
|
|
6476
|
+
_step;
|
|
6462
6477
|
|
|
6463
6478
|
try {
|
|
6464
|
-
for (
|
|
6479
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6465
6480
|
var player = _step.value;
|
|
6466
6481
|
|
|
6467
6482
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6468
|
-
players.push(_react["default"].createElement(_Player["default"], {
|
|
6483
|
+
players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
|
|
6469
6484
|
key: player.Player.displayName,
|
|
6470
6485
|
activePlayer: player.Player,
|
|
6471
6486
|
url: player.url,
|
|
@@ -6477,18 +6492,9 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6477
6492
|
}
|
|
6478
6493
|
}
|
|
6479
6494
|
} catch (err) {
|
|
6480
|
-
|
|
6481
|
-
_iteratorError = err;
|
|
6495
|
+
_iterator.e(err);
|
|
6482
6496
|
} finally {
|
|
6483
|
-
|
|
6484
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6485
|
-
_iterator["return"]();
|
|
6486
|
-
}
|
|
6487
|
-
} finally {
|
|
6488
|
-
if (_didIteratorError) {
|
|
6489
|
-
throw _iteratorError;
|
|
6490
|
-
}
|
|
6491
|
-
}
|
|
6497
|
+
_iterator.f();
|
|
6492
6498
|
}
|
|
6493
6499
|
|
|
6494
6500
|
return players;
|
|
@@ -6612,13 +6618,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6612
6618
|
|
|
6613
6619
|
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); }
|
|
6614
6620
|
|
|
6615
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6621
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6622
|
+
|
|
6623
|
+
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."); }
|
|
6624
|
+
|
|
6625
|
+
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); }
|
|
6616
6626
|
|
|
6617
|
-
function
|
|
6627
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
6618
6628
|
|
|
6619
|
-
function
|
|
6629
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6620
6630
|
|
|
6621
|
-
function
|
|
6631
|
+
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; }
|
|
6622
6632
|
|
|
6623
6633
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6624
6634
|
|
|
@@ -6626,12 +6636,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6626
6636
|
|
|
6627
6637
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6628
6638
|
|
|
6629
|
-
function
|
|
6639
|
+
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); }; }
|
|
6630
6640
|
|
|
6631
|
-
function
|
|
6641
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6632
6642
|
|
|
6633
6643
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6634
6644
|
|
|
6645
|
+
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; } }
|
|
6646
|
+
|
|
6647
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6648
|
+
|
|
6635
6649
|
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); }
|
|
6636
6650
|
|
|
6637
6651
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6641,14 +6655,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6641
6655
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6642
6656
|
var customPlayers = [];
|
|
6643
6657
|
|
|
6644
|
-
var ReactPlayer =
|
|
6645
|
-
/*#__PURE__*/
|
|
6646
|
-
function (_Component) {
|
|
6658
|
+
var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
6647
6659
|
_inherits(ReactPlayer, _Component);
|
|
6648
6660
|
|
|
6649
|
-
|
|
6650
|
-
var _getPrototypeOf2;
|
|
6661
|
+
var _super = _createSuper(ReactPlayer);
|
|
6651
6662
|
|
|
6663
|
+
function ReactPlayer() {
|
|
6652
6664
|
var _this;
|
|
6653
6665
|
|
|
6654
6666
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6657,7 +6669,7 @@ function (_Component) {
|
|
|
6657
6669
|
args[_key] = arguments[_key];
|
|
6658
6670
|
}
|
|
6659
6671
|
|
|
6660
|
-
_this =
|
|
6672
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6661
6673
|
|
|
6662
6674
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6663
6675
|
|
|
@@ -6768,7 +6780,7 @@ function (_Component) {
|
|
|
6768
6780
|
key: "renderActivePlayer",
|
|
6769
6781
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6770
6782
|
if (!url) return null;
|
|
6771
|
-
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6783
|
+
return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6772
6784
|
key: activePlayer.displayName,
|
|
6773
6785
|
ref: this.activePlayerRef,
|
|
6774
6786
|
config: this.config,
|
|
@@ -6805,14 +6817,14 @@ function (_Component) {
|
|
|
6805
6817
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6806
6818
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6807
6819
|
|
|
6808
|
-
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6820
|
+
var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
|
|
6809
6821
|
url: url,
|
|
6810
6822
|
light: light,
|
|
6811
6823
|
playIcon: playIcon,
|
|
6812
6824
|
onClick: this.handleClickPreview
|
|
6813
6825
|
});
|
|
6814
6826
|
|
|
6815
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
6827
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
6816
6828
|
ref: this.wrapperRef,
|
|
6817
6829
|
style: _objectSpread({}, style, {
|
|
6818
6830
|
width: width,
|
|
@@ -7378,7 +7390,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7378
7390
|
Videos[series - 1].intro
|
|
7379
7391
|
)
|
|
7380
7392
|
),
|
|
7381
|
-
Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent.BlockContent, _extends
|
|
7393
|
+
Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent.BlockContent, _extends._extends({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7382
7394
|
),
|
|
7383
7395
|
React__default.createElement(
|
|
7384
7396
|
'style',
|
|
@@ -8148,7 +8160,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8148
8160
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8149
8161
|
React__default.createElement(
|
|
8150
8162
|
'a',
|
|
8151
|
-
_extends
|
|
8163
|
+
_extends._extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8152
8164
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8153
8165
|
React__default.createElement(
|
|
8154
8166
|
'div',
|
|
@@ -8498,7 +8510,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8498
8510
|
|
|
8499
8511
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8500
8512
|
if (biography) {
|
|
8501
|
-
return React__default.createElement(BlockContent.BlockContent, _extends
|
|
8513
|
+
return React__default.createElement(BlockContent.BlockContent, _extends._extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8502
8514
|
}
|
|
8503
8515
|
};
|
|
8504
8516
|
|
|
@@ -8776,7 +8788,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8776
8788
|
React__default.createElement(
|
|
8777
8789
|
'div',
|
|
8778
8790
|
{ className: 'mt-2 mb-2' },
|
|
8779
|
-
React__default.createElement(BlockContent.BlockContent, _extends
|
|
8791
|
+
React__default.createElement(BlockContent.BlockContent, _extends._extends({
|
|
8780
8792
|
serializers: getSerializers,
|
|
8781
8793
|
videoAccountIDs: accountIDs,
|
|
8782
8794
|
blocks: article.text,
|
|
@@ -9090,7 +9102,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9090
9102
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9091
9103
|
image.link ? React__default.createElement(
|
|
9092
9104
|
'a',
|
|
9093
|
-
_extends
|
|
9105
|
+
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9094
9106
|
React__default.createElement(
|
|
9095
9107
|
'div',
|
|
9096
9108
|
{ className: 'multi-figure-image-container' },
|