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