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