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