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