@mjhls/mjh-framework 1.0.692 → 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 +31 -24
- 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 +31 -24
- 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
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-725434a0.js';
|
|
3
|
-
import { _ as _extends } from './extends-cc5da797.js';
|
|
3
|
+
import { _ as _extends$1 } from './extends-cc5da797.js';
|
|
4
4
|
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-7ee3e0c1.js';
|
|
5
|
-
import { _ as _typeof
|
|
5
|
+
import { _ as _typeof } from './typeof-08f2c380.js';
|
|
6
6
|
import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
7
|
-
import { l as lib_3 } from './index-
|
|
7
|
+
import { l as lib_3 } from './index-0e45a0b2.js';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
import Row from 'react-bootstrap/Row';
|
|
10
10
|
import Col from 'react-bootstrap/Col';
|
|
11
|
-
import { m as moment } from './moment-
|
|
11
|
+
import { m as moment } from './moment-e2f9b20c.js';
|
|
12
12
|
import Router, { useRouter } from 'next/router';
|
|
13
|
-
import { i as imageUrlBuilder } from './index-
|
|
13
|
+
import { i as imageUrlBuilder } from './index-73819142.js';
|
|
14
14
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
15
|
-
import { b as main_16, c as
|
|
15
|
+
import { b as main_16, c as main_35, m as main_36 } from './main-5d1e4bd3.js';
|
|
16
16
|
import { h as html_decode_1 } from './entities-7cc3bf45.js';
|
|
17
17
|
import { _ as _slicedToArray } from './slicedToArray-7021e5df.js';
|
|
18
18
|
import Segment from './Segment.js';
|
|
19
19
|
import Beam from './Beam.js';
|
|
20
20
|
import DFPAdSlot from './AdSlot.js';
|
|
21
|
-
import { B as BlockContent } from './BlockContent-
|
|
21
|
+
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
22
22
|
import { g as getYoutubeId } from './smoothscroll-4b699764.js';
|
|
23
23
|
import GroupDeck from './GroupDeck.js';
|
|
24
24
|
import { Carousel, Table, Figure as Figure$1, Button, ProgressBar, Card, Row as Row$1, Col as Col$1 } from 'react-bootstrap';
|
|
@@ -92,18 +92,21 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
92
92
|
);
|
|
93
93
|
};
|
|
94
94
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
95
|
+
var isArray = Array.isArray;
|
|
96
|
+
var keyList = Object.keys;
|
|
97
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
98
98
|
|
|
99
99
|
var fastDeepEqual = function equal(a, b) {
|
|
100
100
|
if (a === b) return true;
|
|
101
101
|
|
|
102
102
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
103
|
-
|
|
103
|
+
var arrA = isArray(a)
|
|
104
|
+
, arrB = isArray(b)
|
|
105
|
+
, i
|
|
106
|
+
, length
|
|
107
|
+
, key;
|
|
104
108
|
|
|
105
|
-
|
|
106
|
-
if (Array.isArray(a)) {
|
|
109
|
+
if (arrA && arrB) {
|
|
107
110
|
length = a.length;
|
|
108
111
|
if (length != b.length) return false;
|
|
109
112
|
for (i = length; i-- !== 0;)
|
|
@@ -111,29 +114,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
111
114
|
return true;
|
|
112
115
|
}
|
|
113
116
|
|
|
117
|
+
if (arrA != arrB) return false;
|
|
114
118
|
|
|
119
|
+
var dateA = a instanceof Date
|
|
120
|
+
, dateB = b instanceof Date;
|
|
121
|
+
if (dateA != dateB) return false;
|
|
122
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
115
123
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
if (
|
|
124
|
+
var regexpA = a instanceof RegExp
|
|
125
|
+
, regexpB = b instanceof RegExp;
|
|
126
|
+
if (regexpA != regexpB) return false;
|
|
127
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
119
128
|
|
|
120
|
-
keys =
|
|
129
|
+
var keys = keyList(a);
|
|
121
130
|
length = keys.length;
|
|
122
|
-
|
|
131
|
+
|
|
132
|
+
if (length !== keyList(b).length)
|
|
133
|
+
return false;
|
|
123
134
|
|
|
124
135
|
for (i = length; i-- !== 0;)
|
|
125
|
-
if (!
|
|
136
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
126
137
|
|
|
127
138
|
for (i = length; i-- !== 0;) {
|
|
128
|
-
|
|
129
|
-
|
|
139
|
+
key = keys[i];
|
|
130
140
|
if (!equal(a[key], b[key])) return false;
|
|
131
141
|
}
|
|
132
142
|
|
|
133
143
|
return true;
|
|
134
144
|
}
|
|
135
145
|
|
|
136
|
-
// true if both NaN, false otherwise
|
|
137
146
|
return a!==a && b!==b;
|
|
138
147
|
};
|
|
139
148
|
|
|
@@ -1556,235 +1565,199 @@ module.exports = exports['default'];
|
|
|
1556
1565
|
|
|
1557
1566
|
var youTubePlayer = unwrapExports(dist);
|
|
1558
1567
|
|
|
1559
|
-
function
|
|
1560
|
-
|
|
1561
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1562
|
-
|
|
1563
|
-
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); } }
|
|
1564
|
-
|
|
1565
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1568
|
+
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; }; }();
|
|
1566
1569
|
|
|
1567
|
-
|
|
1570
|
+
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; };
|
|
1568
1571
|
|
|
1569
|
-
function
|
|
1570
|
-
|
|
1571
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1572
|
-
|
|
1573
|
-
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; } }
|
|
1574
|
-
|
|
1575
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1576
|
-
|
|
1577
|
-
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); }
|
|
1578
|
-
|
|
1579
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1572
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1580
1573
|
|
|
1581
|
-
function
|
|
1574
|
+
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; }
|
|
1582
1575
|
|
|
1583
|
-
function
|
|
1576
|
+
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; }
|
|
1584
1577
|
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
*
|
|
1588
|
-
*
|
|
1589
|
-
* @param {Object}
|
|
1590
|
-
* @param {Object} props
|
|
1578
|
+
/**
|
|
1579
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1580
|
+
*
|
|
1581
|
+
* @param {Object} prevProps
|
|
1582
|
+
* @param {Object} props
|
|
1591
1583
|
*/
|
|
1592
|
-
|
|
1593
1584
|
function shouldUpdateVideo(prevProps, props) {
|
|
1594
1585
|
// A changing video should always trigger an update
|
|
1595
1586
|
if (prevProps.videoId !== props.videoId) {
|
|
1596
1587
|
return true;
|
|
1597
|
-
}
|
|
1598
|
-
// update.
|
|
1599
|
-
|
|
1588
|
+
}
|
|
1600
1589
|
|
|
1590
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1591
|
+
// update.
|
|
1601
1592
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1602
1593
|
var vars = props.opts.playerVars || {};
|
|
1594
|
+
|
|
1603
1595
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1604
1596
|
}
|
|
1605
|
-
/**
|
|
1606
|
-
* Neutralize 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
|
-
*/
|
|
1612
|
-
|
|
1613
1597
|
|
|
1598
|
+
/**
|
|
1599
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
1600
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1601
|
+
* player reset is necessary.
|
|
1602
|
+
*
|
|
1603
|
+
* @param {Object} opts
|
|
1604
|
+
*/
|
|
1614
1605
|
function filterResetOptions(opts) {
|
|
1615
|
-
return
|
|
1616
|
-
playerVars:
|
|
1606
|
+
return _extends({}, opts, {
|
|
1607
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1617
1608
|
autoplay: 0,
|
|
1618
1609
|
start: 0,
|
|
1619
1610
|
end: 0
|
|
1620
1611
|
})
|
|
1621
1612
|
});
|
|
1622
1613
|
}
|
|
1623
|
-
/**
|
|
1624
|
-
* Check whether a `props` change should result in the player being reset.
|
|
1625
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
1626
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1627
|
-
* those.
|
|
1628
|
-
*
|
|
1629
|
-
* @param {Object} prevProps
|
|
1630
|
-
* @param {Object} props
|
|
1631
|
-
*/
|
|
1632
|
-
|
|
1633
1614
|
|
|
1615
|
+
/**
|
|
1616
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1617
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1618
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1619
|
+
* those.
|
|
1620
|
+
*
|
|
1621
|
+
* @param {Object} prevProps
|
|
1622
|
+
* @param {Object} props
|
|
1623
|
+
*/
|
|
1634
1624
|
function shouldResetPlayer(prevProps, props) {
|
|
1635
1625
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1636
1626
|
}
|
|
1637
|
-
/**
|
|
1638
|
-
* Check whether a props change should result in an id or className update.
|
|
1639
|
-
*
|
|
1640
|
-
* @param {Object} prevProps
|
|
1641
|
-
* @param {Object} props
|
|
1642
|
-
*/
|
|
1643
|
-
|
|
1644
1627
|
|
|
1628
|
+
/**
|
|
1629
|
+
* Check whether a props change should result in an id or className update.
|
|
1630
|
+
*
|
|
1631
|
+
* @param {Object} prevProps
|
|
1632
|
+
* @param {Object} props
|
|
1633
|
+
*/
|
|
1645
1634
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1646
1635
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1647
1636
|
}
|
|
1648
1637
|
|
|
1649
|
-
var YouTube =
|
|
1638
|
+
var YouTube = function (_React$Component) {
|
|
1650
1639
|
_inherits(YouTube, _React$Component);
|
|
1651
1640
|
|
|
1652
|
-
var _super = _createSuper(YouTube);
|
|
1653
|
-
|
|
1654
|
-
/**
|
|
1655
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1656
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1657
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1658
|
-
*/
|
|
1659
1641
|
function YouTube(props) {
|
|
1660
|
-
var _this;
|
|
1661
|
-
|
|
1662
1642
|
_classCallCheck(this, YouTube);
|
|
1663
1643
|
|
|
1664
|
-
_this =
|
|
1644
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1665
1645
|
|
|
1666
|
-
|
|
1646
|
+
_this.onPlayerReady = function (event) {
|
|
1667
1647
|
return _this.props.onReady(event);
|
|
1668
|
-
}
|
|
1648
|
+
};
|
|
1669
1649
|
|
|
1670
|
-
|
|
1650
|
+
_this.onPlayerError = function (event) {
|
|
1671
1651
|
return _this.props.onError(event);
|
|
1672
|
-
}
|
|
1652
|
+
};
|
|
1673
1653
|
|
|
1674
|
-
|
|
1654
|
+
_this.onPlayerStateChange = function (event) {
|
|
1675
1655
|
_this.props.onStateChange(event);
|
|
1676
|
-
|
|
1677
1656
|
switch (event.data) {
|
|
1657
|
+
|
|
1678
1658
|
case YouTube.PlayerState.ENDED:
|
|
1679
1659
|
_this.props.onEnd(event);
|
|
1680
|
-
|
|
1681
1660
|
break;
|
|
1682
1661
|
|
|
1683
1662
|
case YouTube.PlayerState.PLAYING:
|
|
1684
1663
|
_this.props.onPlay(event);
|
|
1685
|
-
|
|
1686
1664
|
break;
|
|
1687
1665
|
|
|
1688
1666
|
case YouTube.PlayerState.PAUSED:
|
|
1689
1667
|
_this.props.onPause(event);
|
|
1690
|
-
|
|
1691
1668
|
break;
|
|
1692
1669
|
}
|
|
1693
|
-
}
|
|
1670
|
+
};
|
|
1694
1671
|
|
|
1695
|
-
|
|
1672
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1696
1673
|
return _this.props.onPlaybackRateChange(event);
|
|
1697
|
-
}
|
|
1674
|
+
};
|
|
1698
1675
|
|
|
1699
|
-
|
|
1676
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1700
1677
|
return _this.props.onPlaybackQualityChange(event);
|
|
1701
|
-
}
|
|
1678
|
+
};
|
|
1702
1679
|
|
|
1703
|
-
|
|
1680
|
+
_this.createPlayer = function () {
|
|
1704
1681
|
// do not attempt to create a player server-side, it won't work
|
|
1705
|
-
if (typeof document === 'undefined') return;
|
|
1706
|
-
|
|
1707
|
-
var playerOpts =
|
|
1682
|
+
if (typeof document === 'undefined') return;
|
|
1683
|
+
// create player
|
|
1684
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1708
1685
|
// preload the `videoId` video if one is already given
|
|
1709
1686
|
videoId: _this.props.videoId
|
|
1710
1687
|
});
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1688
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
1689
|
+
// attach event handlers
|
|
1714
1690
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1715
|
-
|
|
1716
1691
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1717
|
-
|
|
1718
1692
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1719
|
-
|
|
1720
1693
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1721
|
-
|
|
1722
1694
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1723
|
-
}
|
|
1695
|
+
};
|
|
1724
1696
|
|
|
1725
|
-
|
|
1697
|
+
_this.resetPlayer = function () {
|
|
1726
1698
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1727
|
-
}
|
|
1699
|
+
};
|
|
1728
1700
|
|
|
1729
|
-
|
|
1701
|
+
_this.updatePlayer = function () {
|
|
1730
1702
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1731
1703
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1732
1704
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1733
1705
|
});
|
|
1734
|
-
}
|
|
1706
|
+
};
|
|
1735
1707
|
|
|
1736
|
-
|
|
1708
|
+
_this.updateVideo = function () {
|
|
1737
1709
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1738
1710
|
_this.internalPlayer.stopVideo();
|
|
1739
|
-
|
|
1740
1711
|
return;
|
|
1741
|
-
}
|
|
1742
|
-
|
|
1712
|
+
}
|
|
1743
1713
|
|
|
1714
|
+
// set queueing options
|
|
1744
1715
|
var autoplay = false;
|
|
1745
1716
|
var opts = {
|
|
1746
1717
|
videoId: _this.props.videoId
|
|
1747
1718
|
};
|
|
1748
|
-
|
|
1749
1719
|
if ('playerVars' in _this.props.opts) {
|
|
1750
1720
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1751
|
-
|
|
1752
1721
|
if ('start' in _this.props.opts.playerVars) {
|
|
1753
1722
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1754
1723
|
}
|
|
1755
|
-
|
|
1756
1724
|
if ('end' in _this.props.opts.playerVars) {
|
|
1757
1725
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1758
1726
|
}
|
|
1759
|
-
}
|
|
1760
|
-
|
|
1727
|
+
}
|
|
1761
1728
|
|
|
1729
|
+
// if autoplay is enabled loadVideoById
|
|
1762
1730
|
if (autoplay) {
|
|
1763
1731
|
_this.internalPlayer.loadVideoById(opts);
|
|
1764
|
-
|
|
1765
1732
|
return;
|
|
1766
|
-
}
|
|
1767
|
-
|
|
1768
|
-
|
|
1733
|
+
}
|
|
1734
|
+
// default behaviour just cues the video
|
|
1769
1735
|
_this.internalPlayer.cueVideoById(opts);
|
|
1770
|
-
}
|
|
1736
|
+
};
|
|
1771
1737
|
|
|
1772
|
-
|
|
1738
|
+
_this.refContainer = function (container) {
|
|
1773
1739
|
_this.container = container;
|
|
1774
|
-
}
|
|
1740
|
+
};
|
|
1775
1741
|
|
|
1776
1742
|
_this.container = null;
|
|
1777
1743
|
_this.internalPlayer = null;
|
|
1778
1744
|
return _this;
|
|
1779
1745
|
}
|
|
1780
1746
|
|
|
1747
|
+
/**
|
|
1748
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1749
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1750
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1751
|
+
*/
|
|
1752
|
+
|
|
1753
|
+
|
|
1781
1754
|
_createClass(YouTube, [{
|
|
1782
|
-
key:
|
|
1755
|
+
key: 'componentDidMount',
|
|
1783
1756
|
value: function componentDidMount() {
|
|
1784
1757
|
this.createPlayer();
|
|
1785
1758
|
}
|
|
1786
1759
|
}, {
|
|
1787
|
-
key:
|
|
1760
|
+
key: 'componentDidUpdate',
|
|
1788
1761
|
value: function componentDidUpdate(prevProps) {
|
|
1789
1762
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1790
1763
|
this.updatePlayer();
|
|
@@ -1799,58 +1772,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1799
1772
|
}
|
|
1800
1773
|
}
|
|
1801
1774
|
}, {
|
|
1802
|
-
key:
|
|
1775
|
+
key: 'componentWillUnmount',
|
|
1803
1776
|
value: function componentWillUnmount() {
|
|
1804
|
-
/**
|
|
1805
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1806
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1807
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1808
|
-
* this method isn't quick enough to reset the container element.
|
|
1777
|
+
/**
|
|
1778
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
1779
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1780
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1781
|
+
* this method isn't quick enough to reset the container element.
|
|
1809
1782
|
*/
|
|
1810
1783
|
this.internalPlayer.destroy();
|
|
1811
1784
|
}
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
*
|
|
1815
|
-
*
|
|
1816
|
-
*
|
|
1785
|
+
|
|
1786
|
+
/**
|
|
1787
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1788
|
+
*
|
|
1789
|
+
* @param {Object} event
|
|
1790
|
+
* @param {Object} target - player object
|
|
1791
|
+
*/
|
|
1792
|
+
|
|
1793
|
+
|
|
1794
|
+
/**
|
|
1795
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1796
|
+
*
|
|
1797
|
+
* @param {Object} event
|
|
1798
|
+
* @param {Integer} data - error type
|
|
1799
|
+
* @param {Object} target - player object
|
|
1800
|
+
*/
|
|
1801
|
+
|
|
1802
|
+
|
|
1803
|
+
/**
|
|
1804
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1805
|
+
*
|
|
1806
|
+
* @param {Object} event
|
|
1807
|
+
* @param {Integer} data - status change type
|
|
1808
|
+
* @param {Object} target - actual YT player
|
|
1809
|
+
*/
|
|
1810
|
+
|
|
1811
|
+
|
|
1812
|
+
/**
|
|
1813
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1814
|
+
*
|
|
1815
|
+
* @param {Object} event
|
|
1816
|
+
* @param {Float} data - playback rate
|
|
1817
|
+
* @param {Object} target - actual YT player
|
|
1818
|
+
*/
|
|
1819
|
+
|
|
1820
|
+
|
|
1821
|
+
/**
|
|
1822
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1823
|
+
*
|
|
1824
|
+
* @param {Object} event
|
|
1825
|
+
* @param {String} data - playback quality
|
|
1826
|
+
* @param {Object} target - actual YT player
|
|
1827
|
+
*/
|
|
1828
|
+
|
|
1829
|
+
|
|
1830
|
+
/**
|
|
1831
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1832
|
+
*/
|
|
1833
|
+
|
|
1834
|
+
|
|
1835
|
+
/**
|
|
1836
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1837
|
+
*/
|
|
1838
|
+
|
|
1839
|
+
|
|
1840
|
+
/**
|
|
1841
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
1842
|
+
* React should update this automatically but since the Youtube Player API
|
|
1843
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1844
|
+
*/
|
|
1845
|
+
|
|
1846
|
+
|
|
1847
|
+
/**
|
|
1848
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
1849
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1850
|
+
* Youtube Player API methods to update the video.
|
|
1817
1851
|
*/
|
|
1818
1852
|
|
|
1819
1853
|
}, {
|
|
1820
|
-
key:
|
|
1854
|
+
key: 'render',
|
|
1821
1855
|
value: function render() {
|
|
1822
|
-
return
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
id: this.props.id,
|
|
1826
|
-
|
|
1827
|
-
ref: this.refContainer
|
|
1828
|
-
}));
|
|
1856
|
+
return React__default.createElement(
|
|
1857
|
+
'div',
|
|
1858
|
+
{ className: this.props.containerClassName },
|
|
1859
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
1860
|
+
);
|
|
1829
1861
|
}
|
|
1830
1862
|
}]);
|
|
1831
1863
|
|
|
1832
1864
|
return YouTube;
|
|
1833
1865
|
}(React__default.Component);
|
|
1834
1866
|
|
|
1835
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
1836
|
-
UNSTARTED: -1,
|
|
1837
|
-
ENDED: 0,
|
|
1838
|
-
PLAYING: 1,
|
|
1839
|
-
PAUSED: 2,
|
|
1840
|
-
BUFFERING: 3,
|
|
1841
|
-
CUED: 5
|
|
1842
|
-
});
|
|
1843
|
-
|
|
1844
1867
|
YouTube.propTypes = {
|
|
1845
1868
|
videoId: PropTypes.string,
|
|
1869
|
+
|
|
1846
1870
|
// custom ID for player element
|
|
1847
1871
|
id: PropTypes.string,
|
|
1872
|
+
|
|
1848
1873
|
// custom class name for player element
|
|
1849
1874
|
className: PropTypes.string,
|
|
1850
1875
|
// custom class name for player container element
|
|
1851
1876
|
containerClassName: PropTypes.string,
|
|
1877
|
+
|
|
1852
1878
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1853
1879
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1880
|
+
|
|
1854
1881
|
// event subscriptions
|
|
1855
1882
|
onReady: PropTypes.func,
|
|
1856
1883
|
onError: PropTypes.func,
|
|
@@ -1862,7 +1889,6 @@ YouTube.propTypes = {
|
|
|
1862
1889
|
onPlaybackQualityChange: PropTypes.func
|
|
1863
1890
|
};
|
|
1864
1891
|
YouTube.defaultProps = {
|
|
1865
|
-
videoId: null,
|
|
1866
1892
|
id: null,
|
|
1867
1893
|
className: null,
|
|
1868
1894
|
opts: {},
|
|
@@ -1876,6 +1902,14 @@ YouTube.defaultProps = {
|
|
|
1876
1902
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1877
1903
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1878
1904
|
};
|
|
1905
|
+
YouTube.PlayerState = {
|
|
1906
|
+
UNSTARTED: -1,
|
|
1907
|
+
ENDED: 0,
|
|
1908
|
+
PLAYING: 1,
|
|
1909
|
+
PAUSED: 2,
|
|
1910
|
+
BUFFERING: 3,
|
|
1911
|
+
CUED: 5
|
|
1912
|
+
};
|
|
1879
1913
|
|
|
1880
1914
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1881
1915
|
var url = _ref.url;
|
|
@@ -2139,7 +2173,7 @@ var Media = function Media(_ref) {
|
|
|
2139
2173
|
React__default.createElement(
|
|
2140
2174
|
LazyLoad,
|
|
2141
2175
|
{ once: true },
|
|
2142
|
-
React__default.createElement(Figure$1.Image, _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt }))
|
|
2176
|
+
React__default.createElement(Figure$1.Image, _extends$1({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt }))
|
|
2143
2177
|
),
|
|
2144
2178
|
caption && React__default.createElement(
|
|
2145
2179
|
Figure$1.Caption,
|
|
@@ -2151,7 +2185,7 @@ var Media = function Media(_ref) {
|
|
|
2151
2185
|
} else if (caption && caption !== '') {
|
|
2152
2186
|
return React__default.createElement(
|
|
2153
2187
|
'a',
|
|
2154
|
-
_extends({}, uploadDoc.downloadMedia ? {
|
|
2188
|
+
_extends$1({}, uploadDoc.downloadMedia ? {
|
|
2155
2189
|
href: uploadDoc.asset.url + '?dl='
|
|
2156
2190
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2157
2191
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2204,7 +2238,7 @@ var Video = function Video(_ref) {
|
|
|
2204
2238
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2205
2239
|
//console.log('success:', success.ref)
|
|
2206
2240
|
var player = success.ref;
|
|
2207
|
-
if (_typeof
|
|
2241
|
+
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2208
2242
|
player.ima3.settings.debug = true;
|
|
2209
2243
|
if (targeting.content_placement && targeting.document_url) {
|
|
2210
2244
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2719,17 +2753,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2719
2753
|
|
|
2720
2754
|
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; }
|
|
2721
2755
|
|
|
2722
|
-
function
|
|
2756
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2723
2757
|
|
|
2724
|
-
function
|
|
2758
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2725
2759
|
|
|
2726
|
-
function
|
|
2727
|
-
|
|
2728
|
-
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); }
|
|
2729
|
-
|
|
2730
|
-
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; }
|
|
2731
|
-
|
|
2732
|
-
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; }
|
|
2760
|
+
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; }
|
|
2733
2761
|
|
|
2734
2762
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2735
2763
|
|
|
@@ -2859,12 +2887,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
2859
2887
|
|
|
2860
2888
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
2861
2889
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
2862
|
-
|
|
2863
|
-
var
|
|
2864
|
-
|
|
2890
|
+
var _iteratorNormalCompletion = true;
|
|
2891
|
+
var _didIteratorError = false;
|
|
2892
|
+
var _iteratorError = undefined;
|
|
2865
2893
|
|
|
2866
2894
|
try {
|
|
2867
|
-
for (_iterator.
|
|
2895
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
2868
2896
|
var p = _step.value;
|
|
2869
2897
|
|
|
2870
2898
|
if (props$1[p]) {
|
|
@@ -2879,9 +2907,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
2879
2907
|
}
|
|
2880
2908
|
}
|
|
2881
2909
|
} catch (err) {
|
|
2882
|
-
|
|
2910
|
+
_didIteratorError = true;
|
|
2911
|
+
_iteratorError = err;
|
|
2883
2912
|
} finally {
|
|
2884
|
-
|
|
2913
|
+
try {
|
|
2914
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
2915
|
+
_iterator["return"]();
|
|
2916
|
+
}
|
|
2917
|
+
} finally {
|
|
2918
|
+
if (_didIteratorError) {
|
|
2919
|
+
throw _iteratorError;
|
|
2920
|
+
}
|
|
2921
|
+
}
|
|
2885
2922
|
}
|
|
2886
2923
|
|
|
2887
2924
|
return config;
|
|
@@ -3028,16 +3065,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3028
3065
|
|
|
3029
3066
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3030
3067
|
|
|
3031
|
-
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); }; }
|
|
3032
|
-
|
|
3033
3068
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3034
3069
|
|
|
3035
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3036
|
-
|
|
3037
|
-
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; } }
|
|
3038
|
-
|
|
3039
3070
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3040
3071
|
|
|
3072
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3073
|
+
|
|
3041
3074
|
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); }
|
|
3042
3075
|
|
|
3043
3076
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3046,12 +3079,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3046
3079
|
|
|
3047
3080
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3048
3081
|
|
|
3049
|
-
var Player =
|
|
3082
|
+
var Player =
|
|
3083
|
+
/*#__PURE__*/
|
|
3084
|
+
function (_Component) {
|
|
3050
3085
|
_inherits(Player, _Component);
|
|
3051
3086
|
|
|
3052
|
-
var _super = _createSuper(Player);
|
|
3053
|
-
|
|
3054
3087
|
function Player() {
|
|
3088
|
+
var _getPrototypeOf2;
|
|
3089
|
+
|
|
3055
3090
|
var _this;
|
|
3056
3091
|
|
|
3057
3092
|
_classCallCheck(this, Player);
|
|
@@ -3060,7 +3095,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3060
3095
|
_args[_key] = arguments[_key];
|
|
3061
3096
|
}
|
|
3062
3097
|
|
|
3063
|
-
_this =
|
|
3098
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3064
3099
|
|
|
3065
3100
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3066
3101
|
|
|
@@ -3385,7 +3420,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3385
3420
|
return null;
|
|
3386
3421
|
}
|
|
3387
3422
|
|
|
3388
|
-
return
|
|
3423
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3389
3424
|
ref: this.ref,
|
|
3390
3425
|
onReady: this.handleReady,
|
|
3391
3426
|
onPlay: this.handlePlay,
|
|
@@ -3446,16 +3481,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3446
3481
|
|
|
3447
3482
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3448
3483
|
|
|
3449
|
-
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); }; }
|
|
3450
|
-
|
|
3451
3484
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3452
3485
|
|
|
3453
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3454
|
-
|
|
3455
|
-
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; } }
|
|
3456
|
-
|
|
3457
3486
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3458
3487
|
|
|
3488
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3489
|
+
|
|
3459
3490
|
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); }
|
|
3460
3491
|
|
|
3461
3492
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3467,12 +3498,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3467
3498
|
function createSinglePlayer(activePlayer) {
|
|
3468
3499
|
var _class, _temp;
|
|
3469
3500
|
|
|
3470
|
-
return _temp = _class =
|
|
3501
|
+
return _temp = _class =
|
|
3502
|
+
/*#__PURE__*/
|
|
3503
|
+
function (_Component) {
|
|
3471
3504
|
_inherits(SinglePlayer, _Component);
|
|
3472
3505
|
|
|
3473
|
-
var _super = _createSuper(SinglePlayer);
|
|
3474
|
-
|
|
3475
3506
|
function SinglePlayer() {
|
|
3507
|
+
var _getPrototypeOf2;
|
|
3508
|
+
|
|
3476
3509
|
var _this;
|
|
3477
3510
|
|
|
3478
3511
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3481,7 +3514,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3481
3514
|
args[_key] = arguments[_key];
|
|
3482
3515
|
}
|
|
3483
3516
|
|
|
3484
|
-
_this =
|
|
3517
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3485
3518
|
|
|
3486
3519
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3487
3520
|
|
|
@@ -3549,12 +3582,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3549
3582
|
height = _this$props.height,
|
|
3550
3583
|
Wrapper = _this$props.wrapper;
|
|
3551
3584
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3552
|
-
return
|
|
3585
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3553
3586
|
style: _objectSpread({}, style, {
|
|
3554
3587
|
width: width,
|
|
3555
3588
|
height: height
|
|
3556
3589
|
})
|
|
3557
|
-
}, otherProps),
|
|
3590
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3558
3591
|
ref: this.ref,
|
|
3559
3592
|
activePlayer: activePlayer,
|
|
3560
3593
|
config: this.config
|
|
@@ -3600,31 +3633,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3600
3633
|
|
|
3601
3634
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3602
3635
|
|
|
3603
|
-
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); }; }
|
|
3604
|
-
|
|
3605
3636
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3606
3637
|
|
|
3607
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3608
|
-
|
|
3609
|
-
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; } }
|
|
3610
|
-
|
|
3611
3638
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3612
3639
|
|
|
3640
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3641
|
+
|
|
3613
3642
|
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); }
|
|
3614
3643
|
|
|
3615
3644
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3616
3645
|
|
|
3617
3646
|
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; }
|
|
3618
3647
|
|
|
3619
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3620
|
-
|
|
3621
|
-
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."); }
|
|
3648
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3622
3649
|
|
|
3623
|
-
function
|
|
3650
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3624
3651
|
|
|
3625
|
-
function
|
|
3626
|
-
|
|
3627
|
-
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; }
|
|
3652
|
+
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; }
|
|
3628
3653
|
|
|
3629
3654
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3630
3655
|
|
|
@@ -3649,12 +3674,14 @@ function parsePlaylist(url) {
|
|
|
3649
3674
|
return {};
|
|
3650
3675
|
}
|
|
3651
3676
|
|
|
3652
|
-
var YouTube =
|
|
3677
|
+
var YouTube =
|
|
3678
|
+
/*#__PURE__*/
|
|
3679
|
+
function (_Component) {
|
|
3653
3680
|
_inherits(YouTube, _Component);
|
|
3654
3681
|
|
|
3655
|
-
var _super = _createSuper(YouTube);
|
|
3656
|
-
|
|
3657
3682
|
function YouTube() {
|
|
3683
|
+
var _getPrototypeOf2;
|
|
3684
|
+
|
|
3658
3685
|
var _this;
|
|
3659
3686
|
|
|
3660
3687
|
_classCallCheck(this, YouTube);
|
|
@@ -3663,7 +3690,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3663
3690
|
args[_key] = arguments[_key];
|
|
3664
3691
|
}
|
|
3665
3692
|
|
|
3666
|
-
_this =
|
|
3693
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3667
3694
|
|
|
3668
3695
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3669
3696
|
|
|
@@ -3851,9 +3878,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3851
3878
|
height: '100%',
|
|
3852
3879
|
display: display
|
|
3853
3880
|
};
|
|
3854
|
-
return
|
|
3881
|
+
return _react["default"].createElement("div", {
|
|
3855
3882
|
style: style
|
|
3856
|
-
},
|
|
3883
|
+
}, _react["default"].createElement("div", {
|
|
3857
3884
|
ref: this.ref
|
|
3858
3885
|
}));
|
|
3859
3886
|
}
|
|
@@ -3909,16 +3936,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3909
3936
|
|
|
3910
3937
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3911
3938
|
|
|
3912
|
-
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); }; }
|
|
3913
|
-
|
|
3914
3939
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3915
3940
|
|
|
3916
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3917
|
-
|
|
3918
|
-
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; } }
|
|
3919
|
-
|
|
3920
3941
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3921
3942
|
|
|
3943
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3944
|
+
|
|
3922
3945
|
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); }
|
|
3923
3946
|
|
|
3924
3947
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3927,14 +3950,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3927
3950
|
|
|
3928
3951
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
3929
3952
|
var SDK_GLOBAL = 'SC';
|
|
3930
|
-
var MATCH_URL = /(
|
|
3953
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
3931
3954
|
|
|
3932
|
-
var SoundCloud =
|
|
3955
|
+
var SoundCloud =
|
|
3956
|
+
/*#__PURE__*/
|
|
3957
|
+
function (_Component) {
|
|
3933
3958
|
_inherits(SoundCloud, _Component);
|
|
3934
3959
|
|
|
3935
|
-
var _super = _createSuper(SoundCloud);
|
|
3936
|
-
|
|
3937
3960
|
function SoundCloud() {
|
|
3961
|
+
var _getPrototypeOf2;
|
|
3962
|
+
|
|
3938
3963
|
var _this;
|
|
3939
3964
|
|
|
3940
3965
|
_classCallCheck(this, SoundCloud);
|
|
@@ -3943,7 +3968,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
3943
3968
|
args[_key] = arguments[_key];
|
|
3944
3969
|
}
|
|
3945
3970
|
|
|
3946
|
-
_this =
|
|
3971
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3947
3972
|
|
|
3948
3973
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3949
3974
|
|
|
@@ -4064,7 +4089,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4064
4089
|
height: '100%',
|
|
4065
4090
|
display: display
|
|
4066
4091
|
};
|
|
4067
|
-
return
|
|
4092
|
+
return _react["default"].createElement("iframe", {
|
|
4068
4093
|
ref: this.ref,
|
|
4069
4094
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4070
4095
|
style: style,
|
|
@@ -4126,16 +4151,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4126
4151
|
|
|
4127
4152
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4128
4153
|
|
|
4129
|
-
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); }; }
|
|
4130
|
-
|
|
4131
4154
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4132
4155
|
|
|
4133
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4134
|
-
|
|
4135
|
-
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; } }
|
|
4136
|
-
|
|
4137
4156
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4138
4157
|
|
|
4158
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4159
|
+
|
|
4139
4160
|
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); }
|
|
4140
4161
|
|
|
4141
4162
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4147,12 +4168,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4147
4168
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4148
4169
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4149
4170
|
|
|
4150
|
-
var Vimeo =
|
|
4171
|
+
var Vimeo =
|
|
4172
|
+
/*#__PURE__*/
|
|
4173
|
+
function (_Component) {
|
|
4151
4174
|
_inherits(Vimeo, _Component);
|
|
4152
4175
|
|
|
4153
|
-
var _super = _createSuper(Vimeo);
|
|
4154
|
-
|
|
4155
4176
|
function Vimeo() {
|
|
4177
|
+
var _getPrototypeOf2;
|
|
4178
|
+
|
|
4156
4179
|
var _this;
|
|
4157
4180
|
|
|
4158
4181
|
_classCallCheck(this, Vimeo);
|
|
@@ -4161,7 +4184,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4161
4184
|
args[_key] = arguments[_key];
|
|
4162
4185
|
}
|
|
4163
4186
|
|
|
4164
|
-
_this =
|
|
4187
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4165
4188
|
|
|
4166
4189
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4167
4190
|
|
|
@@ -4318,7 +4341,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4318
4341
|
overflow: 'hidden',
|
|
4319
4342
|
display: display
|
|
4320
4343
|
};
|
|
4321
|
-
return
|
|
4344
|
+
return _react["default"].createElement("div", {
|
|
4322
4345
|
key: this.props.url,
|
|
4323
4346
|
ref: this.ref,
|
|
4324
4347
|
style: style
|
|
@@ -4378,16 +4401,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4378
4401
|
|
|
4379
4402
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4380
4403
|
|
|
4381
|
-
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); }; }
|
|
4382
|
-
|
|
4383
4404
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4384
4405
|
|
|
4385
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4386
|
-
|
|
4387
|
-
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; } }
|
|
4388
|
-
|
|
4389
4406
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4390
4407
|
|
|
4408
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4409
|
+
|
|
4391
4410
|
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); }
|
|
4392
4411
|
|
|
4393
4412
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4400,12 +4419,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4400
4419
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4401
4420
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4402
4421
|
|
|
4403
|
-
var Facebook =
|
|
4422
|
+
var Facebook =
|
|
4423
|
+
/*#__PURE__*/
|
|
4424
|
+
function (_Component) {
|
|
4404
4425
|
_inherits(Facebook, _Component);
|
|
4405
4426
|
|
|
4406
|
-
var _super = _createSuper(Facebook);
|
|
4407
|
-
|
|
4408
4427
|
function Facebook() {
|
|
4428
|
+
var _getPrototypeOf2;
|
|
4429
|
+
|
|
4409
4430
|
var _this;
|
|
4410
4431
|
|
|
4411
4432
|
_classCallCheck(this, Facebook);
|
|
@@ -4414,7 +4435,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4414
4435
|
args[_key] = arguments[_key];
|
|
4415
4436
|
}
|
|
4416
4437
|
|
|
4417
|
-
_this =
|
|
4438
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4418
4439
|
|
|
4419
4440
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4420
4441
|
|
|
@@ -4530,7 +4551,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4530
4551
|
width: '100%',
|
|
4531
4552
|
height: '100%'
|
|
4532
4553
|
};
|
|
4533
|
-
return
|
|
4554
|
+
return _react["default"].createElement("div", {
|
|
4534
4555
|
style: style,
|
|
4535
4556
|
id: this.playerID,
|
|
4536
4557
|
className: "fb-video",
|
|
@@ -4590,16 +4611,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4590
4611
|
|
|
4591
4612
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4592
4613
|
|
|
4593
|
-
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); }; }
|
|
4594
|
-
|
|
4595
4614
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4596
4615
|
|
|
4597
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4598
|
-
|
|
4599
|
-
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; } }
|
|
4600
|
-
|
|
4601
4616
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4602
4617
|
|
|
4618
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4619
|
+
|
|
4603
4620
|
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); }
|
|
4604
4621
|
|
|
4605
4622
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4610,12 +4627,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4610
4627
|
var SDK_GLOBAL = 'playerjs';
|
|
4611
4628
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4612
4629
|
|
|
4613
|
-
var Streamable =
|
|
4630
|
+
var Streamable =
|
|
4631
|
+
/*#__PURE__*/
|
|
4632
|
+
function (_Component) {
|
|
4614
4633
|
_inherits(Streamable, _Component);
|
|
4615
4634
|
|
|
4616
|
-
var _super = _createSuper(Streamable);
|
|
4617
|
-
|
|
4618
4635
|
function Streamable() {
|
|
4636
|
+
var _getPrototypeOf2;
|
|
4637
|
+
|
|
4619
4638
|
var _this;
|
|
4620
4639
|
|
|
4621
4640
|
_classCallCheck(this, Streamable);
|
|
@@ -4624,7 +4643,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4624
4643
|
args[_key] = arguments[_key];
|
|
4625
4644
|
}
|
|
4626
4645
|
|
|
4627
|
-
_this =
|
|
4646
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4628
4647
|
|
|
4629
4648
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4630
4649
|
|
|
@@ -4744,7 +4763,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4744
4763
|
width: '100%',
|
|
4745
4764
|
height: '100%'
|
|
4746
4765
|
};
|
|
4747
|
-
return
|
|
4766
|
+
return _react["default"].createElement("iframe", {
|
|
4748
4767
|
ref: this.ref,
|
|
4749
4768
|
src: "https://streamable.com/o/".concat(id),
|
|
4750
4769
|
frameBorder: "0",
|
|
@@ -4805,16 +4824,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4805
4824
|
|
|
4806
4825
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4807
4826
|
|
|
4808
|
-
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); }; }
|
|
4809
|
-
|
|
4810
4827
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4811
4828
|
|
|
4812
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4813
|
-
|
|
4814
|
-
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; } }
|
|
4815
|
-
|
|
4816
4829
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4817
4830
|
|
|
4831
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4832
|
+
|
|
4818
4833
|
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); }
|
|
4819
4834
|
|
|
4820
4835
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4825,48 +4840,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4825
4840
|
var SDK_GLOBAL = 'Wistia';
|
|
4826
4841
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4827
4842
|
|
|
4828
|
-
var Wistia =
|
|
4843
|
+
var Wistia =
|
|
4844
|
+
/*#__PURE__*/
|
|
4845
|
+
function (_Component) {
|
|
4829
4846
|
_inherits(Wistia, _Component);
|
|
4830
4847
|
|
|
4831
|
-
var _super = _createSuper(Wistia);
|
|
4832
|
-
|
|
4833
4848
|
function Wistia() {
|
|
4849
|
+
var _getPrototypeOf2;
|
|
4850
|
+
|
|
4834
4851
|
var _this;
|
|
4835
4852
|
|
|
4836
4853
|
_classCallCheck(this, Wistia);
|
|
4837
4854
|
|
|
4838
|
-
for (var _len = arguments.length,
|
|
4839
|
-
|
|
4855
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4856
|
+
args[_key] = arguments[_key];
|
|
4840
4857
|
}
|
|
4841
4858
|
|
|
4842
|
-
_this =
|
|
4859
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4843
4860
|
|
|
4844
4861
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4845
4862
|
|
|
4846
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4847
|
-
var _this$props;
|
|
4848
|
-
|
|
4849
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4850
|
-
});
|
|
4851
|
-
|
|
4852
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4853
|
-
var _this$props2;
|
|
4854
|
-
|
|
4855
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4856
|
-
});
|
|
4857
|
-
|
|
4858
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
4859
|
-
var _this$props3;
|
|
4860
|
-
|
|
4861
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
4862
|
-
});
|
|
4863
|
-
|
|
4864
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
4865
|
-
var _this$props4;
|
|
4866
|
-
|
|
4867
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
4868
|
-
});
|
|
4869
|
-
|
|
4870
4863
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
4871
4864
|
_this.callPlayer('mute');
|
|
4872
4865
|
});
|
|
@@ -4888,13 +4881,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4888
4881
|
value: function load(url) {
|
|
4889
4882
|
var _this2 = this;
|
|
4890
4883
|
|
|
4891
|
-
var _this$
|
|
4892
|
-
playing = _this$
|
|
4893
|
-
muted = _this$
|
|
4894
|
-
controls = _this$
|
|
4895
|
-
_onReady = _this$
|
|
4896
|
-
|
|
4897
|
-
|
|
4884
|
+
var _this$props = this.props,
|
|
4885
|
+
playing = _this$props.playing,
|
|
4886
|
+
muted = _this$props.muted,
|
|
4887
|
+
controls = _this$props.controls,
|
|
4888
|
+
_onReady = _this$props.onReady,
|
|
4889
|
+
onPlay = _this$props.onPlay,
|
|
4890
|
+
onPause = _this$props.onPause,
|
|
4891
|
+
onSeek = _this$props.onSeek,
|
|
4892
|
+
onEnded = _this$props.onEnded,
|
|
4893
|
+
config = _this$props.config,
|
|
4894
|
+
onError = _this$props.onError;
|
|
4898
4895
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
4899
4896
|
window._wq = window._wq || [];
|
|
4900
4897
|
|
|
@@ -4911,28 +4908,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4911
4908
|
|
|
4912
4909
|
_this2.unbind();
|
|
4913
4910
|
|
|
4914
|
-
_this2.player.bind('play',
|
|
4911
|
+
_this2.player.bind('play', onPlay);
|
|
4915
4912
|
|
|
4916
|
-
_this2.player.bind('pause',
|
|
4913
|
+
_this2.player.bind('pause', onPause);
|
|
4917
4914
|
|
|
4918
|
-
_this2.player.bind('seek',
|
|
4915
|
+
_this2.player.bind('seek', onSeek);
|
|
4919
4916
|
|
|
4920
|
-
_this2.player.bind('end',
|
|
4917
|
+
_this2.player.bind('end', onEnded);
|
|
4921
4918
|
|
|
4922
4919
|
_onReady();
|
|
4923
4920
|
}
|
|
4924
4921
|
});
|
|
4925
4922
|
}, onError);
|
|
4926
4923
|
}
|
|
4927
|
-
}, {
|
|
4928
|
-
key: "unbind",
|
|
4929
|
-
value: function unbind() {
|
|
4930
|
-
this.player.unbind('play', this.onPlay);
|
|
4931
|
-
this.player.unbind('pause', this.onPause);
|
|
4932
|
-
this.player.unbind('seek', this.onSeek);
|
|
4933
|
-
this.player.unbind('end', this.onEnded);
|
|
4934
|
-
} // Proxy methods to prevent listener leaks
|
|
4935
|
-
|
|
4936
4924
|
}, {
|
|
4937
4925
|
key: "play",
|
|
4938
4926
|
value: function play() {
|
|
@@ -4943,6 +4931,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4943
4931
|
value: function pause() {
|
|
4944
4932
|
this.callPlayer('pause');
|
|
4945
4933
|
}
|
|
4934
|
+
}, {
|
|
4935
|
+
key: "unbind",
|
|
4936
|
+
value: function unbind() {
|
|
4937
|
+
var _this$props2 = this.props,
|
|
4938
|
+
onPlay = _this$props2.onPlay,
|
|
4939
|
+
onPause = _this$props2.onPause,
|
|
4940
|
+
onSeek = _this$props2.onSeek,
|
|
4941
|
+
onEnded = _this$props2.onEnded;
|
|
4942
|
+
this.player.unbind('play', onPlay);
|
|
4943
|
+
this.player.unbind('pause', onPause);
|
|
4944
|
+
this.player.unbind('seek', onSeek);
|
|
4945
|
+
this.player.unbind('end', onEnded);
|
|
4946
|
+
}
|
|
4946
4947
|
}, {
|
|
4947
4948
|
key: "stop",
|
|
4948
4949
|
value: function stop() {
|
|
@@ -4988,7 +4989,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4988
4989
|
width: '100%',
|
|
4989
4990
|
height: '100%'
|
|
4990
4991
|
};
|
|
4991
|
-
return
|
|
4992
|
+
return _react["default"].createElement("div", {
|
|
4992
4993
|
key: id,
|
|
4993
4994
|
className: className,
|
|
4994
4995
|
style: style
|
|
@@ -5048,16 +5049,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5048
5049
|
|
|
5049
5050
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5050
5051
|
|
|
5051
|
-
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); }; }
|
|
5052
|
-
|
|
5053
5052
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5054
5053
|
|
|
5055
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5056
|
-
|
|
5057
|
-
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; } }
|
|
5058
|
-
|
|
5059
5054
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5060
5055
|
|
|
5056
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5057
|
+
|
|
5061
5058
|
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); }
|
|
5062
5059
|
|
|
5063
5060
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5070,12 +5067,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5070
5067
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5071
5068
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5072
5069
|
|
|
5073
|
-
var Twitch =
|
|
5070
|
+
var Twitch =
|
|
5071
|
+
/*#__PURE__*/
|
|
5072
|
+
function (_Component) {
|
|
5074
5073
|
_inherits(Twitch, _Component);
|
|
5075
5074
|
|
|
5076
|
-
var _super = _createSuper(Twitch);
|
|
5077
|
-
|
|
5078
5075
|
function Twitch() {
|
|
5076
|
+
var _getPrototypeOf2;
|
|
5077
|
+
|
|
5079
5078
|
var _this;
|
|
5080
5079
|
|
|
5081
5080
|
_classCallCheck(this, Twitch);
|
|
@@ -5084,7 +5083,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5084
5083
|
args[_key] = arguments[_key];
|
|
5085
5084
|
}
|
|
5086
5085
|
|
|
5087
|
-
_this =
|
|
5086
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5088
5087
|
|
|
5089
5088
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5090
5089
|
|
|
@@ -5205,7 +5204,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5205
5204
|
width: '100%',
|
|
5206
5205
|
height: '100%'
|
|
5207
5206
|
};
|
|
5208
|
-
return
|
|
5207
|
+
return _react["default"].createElement("div", {
|
|
5209
5208
|
style: style,
|
|
5210
5209
|
id: this.playerID
|
|
5211
5210
|
});
|
|
@@ -5258,15 +5257,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5258
5257
|
|
|
5259
5258
|
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; }
|
|
5260
5259
|
|
|
5261
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5262
|
-
|
|
5263
|
-
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."); }
|
|
5264
|
-
|
|
5265
|
-
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); }
|
|
5260
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5266
5261
|
|
|
5267
|
-
function
|
|
5262
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5268
5263
|
|
|
5269
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
5264
|
+
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; }
|
|
5270
5265
|
|
|
5271
5266
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5272
5267
|
|
|
@@ -5276,16 +5271,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5276
5271
|
|
|
5277
5272
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5278
5273
|
|
|
5279
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5280
|
-
|
|
5281
5274
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5282
5275
|
|
|
5283
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5284
|
-
|
|
5285
|
-
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; } }
|
|
5286
|
-
|
|
5287
5276
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5288
5277
|
|
|
5278
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5279
|
+
|
|
5289
5280
|
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); }
|
|
5290
5281
|
|
|
5291
5282
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5297,12 +5288,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5297
5288
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5298
5289
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5299
5290
|
|
|
5300
|
-
var DailyMotion =
|
|
5291
|
+
var DailyMotion =
|
|
5292
|
+
/*#__PURE__*/
|
|
5293
|
+
function (_Component) {
|
|
5301
5294
|
_inherits(DailyMotion, _Component);
|
|
5302
5295
|
|
|
5303
|
-
var _super = _createSuper(DailyMotion);
|
|
5304
|
-
|
|
5305
5296
|
function DailyMotion() {
|
|
5297
|
+
var _getPrototypeOf2;
|
|
5298
|
+
|
|
5306
5299
|
var _this;
|
|
5307
5300
|
|
|
5308
5301
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5311,7 +5304,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5311
5304
|
args[_key] = arguments[_key];
|
|
5312
5305
|
}
|
|
5313
5306
|
|
|
5314
|
-
_this =
|
|
5307
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5315
5308
|
|
|
5316
5309
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5317
5310
|
|
|
@@ -5440,9 +5433,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5440
5433
|
height: '100%',
|
|
5441
5434
|
display: display
|
|
5442
5435
|
};
|
|
5443
|
-
return
|
|
5436
|
+
return _react["default"].createElement("div", {
|
|
5444
5437
|
style: style
|
|
5445
|
-
},
|
|
5438
|
+
}, _react["default"].createElement("div", {
|
|
5446
5439
|
ref: this.ref
|
|
5447
5440
|
}));
|
|
5448
5441
|
}
|
|
@@ -5500,16 +5493,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5500
5493
|
|
|
5501
5494
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5502
5495
|
|
|
5503
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5504
|
-
|
|
5505
5496
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5506
5497
|
|
|
5507
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5508
|
-
|
|
5509
|
-
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; } }
|
|
5510
|
-
|
|
5511
5498
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5512
5499
|
|
|
5500
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5501
|
+
|
|
5513
5502
|
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); }
|
|
5514
5503
|
|
|
5515
5504
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5520,12 +5509,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5520
5509
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5521
5510
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5522
5511
|
|
|
5523
|
-
var Mixcloud =
|
|
5512
|
+
var Mixcloud =
|
|
5513
|
+
/*#__PURE__*/
|
|
5514
|
+
function (_Component) {
|
|
5524
5515
|
_inherits(Mixcloud, _Component);
|
|
5525
5516
|
|
|
5526
|
-
var _super = _createSuper(Mixcloud);
|
|
5527
|
-
|
|
5528
5517
|
function Mixcloud() {
|
|
5518
|
+
var _getPrototypeOf2;
|
|
5519
|
+
|
|
5529
5520
|
var _this;
|
|
5530
5521
|
|
|
5531
5522
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5534,7 +5525,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5534
5525
|
args[_key] = arguments[_key];
|
|
5535
5526
|
}
|
|
5536
5527
|
|
|
5537
|
-
_this =
|
|
5528
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5538
5529
|
|
|
5539
5530
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5540
5531
|
|
|
@@ -5637,7 +5628,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5637
5628
|
})); // We have to give the iframe a key here to prevent a
|
|
5638
5629
|
// weird dialog appearing when loading a new track
|
|
5639
5630
|
|
|
5640
|
-
return
|
|
5631
|
+
return _react["default"].createElement("iframe", {
|
|
5641
5632
|
key: id,
|
|
5642
5633
|
ref: this.ref,
|
|
5643
5634
|
style: style,
|
|
@@ -5697,33 +5688,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5697
5688
|
|
|
5698
5689
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5699
5690
|
|
|
5700
|
-
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); }; }
|
|
5701
|
-
|
|
5702
5691
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5703
5692
|
|
|
5704
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5705
|
-
|
|
5706
|
-
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; } }
|
|
5707
|
-
|
|
5708
5693
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5709
5694
|
|
|
5695
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5696
|
+
|
|
5710
5697
|
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); }
|
|
5711
5698
|
|
|
5712
5699
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5713
5700
|
|
|
5714
5701
|
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; }
|
|
5715
5702
|
|
|
5716
|
-
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; } } }; }
|
|
5717
|
-
|
|
5718
|
-
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); }
|
|
5719
|
-
|
|
5720
|
-
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; }
|
|
5721
|
-
|
|
5722
5703
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5723
5704
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5724
5705
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5725
5706
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5726
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
5707
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5727
5708
|
var HLS_GLOBAL = 'Hls';
|
|
5728
5709
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5729
5710
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5732,11 +5713,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5732
5713
|
|
|
5733
5714
|
function canPlay(url) {
|
|
5734
5715
|
if (url instanceof Array) {
|
|
5735
|
-
var
|
|
5736
|
-
|
|
5716
|
+
var _iteratorNormalCompletion = true;
|
|
5717
|
+
var _didIteratorError = false;
|
|
5718
|
+
var _iteratorError = undefined;
|
|
5737
5719
|
|
|
5738
5720
|
try {
|
|
5739
|
-
for (_iterator.
|
|
5721
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5740
5722
|
var item = _step.value;
|
|
5741
5723
|
|
|
5742
5724
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5748,9 +5730,18 @@ function canPlay(url) {
|
|
|
5748
5730
|
}
|
|
5749
5731
|
}
|
|
5750
5732
|
} catch (err) {
|
|
5751
|
-
|
|
5733
|
+
_didIteratorError = true;
|
|
5734
|
+
_iteratorError = err;
|
|
5752
5735
|
} finally {
|
|
5753
|
-
|
|
5736
|
+
try {
|
|
5737
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5738
|
+
_iterator["return"]();
|
|
5739
|
+
}
|
|
5740
|
+
} finally {
|
|
5741
|
+
if (_didIteratorError) {
|
|
5742
|
+
throw _iteratorError;
|
|
5743
|
+
}
|
|
5744
|
+
}
|
|
5754
5745
|
}
|
|
5755
5746
|
|
|
5756
5747
|
return false;
|
|
@@ -5774,12 +5765,14 @@ function canEnablePIP(url) {
|
|
|
5774
5765
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5775
5766
|
}
|
|
5776
5767
|
|
|
5777
|
-
var FilePlayer =
|
|
5768
|
+
var FilePlayer =
|
|
5769
|
+
/*#__PURE__*/
|
|
5770
|
+
function (_Component) {
|
|
5778
5771
|
_inherits(FilePlayer, _Component);
|
|
5779
5772
|
|
|
5780
|
-
var _super = _createSuper(FilePlayer);
|
|
5781
|
-
|
|
5782
5773
|
function FilePlayer() {
|
|
5774
|
+
var _getPrototypeOf2;
|
|
5775
|
+
|
|
5783
5776
|
var _this;
|
|
5784
5777
|
|
|
5785
5778
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5788,7 +5781,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5788
5781
|
_args[_key] = arguments[_key];
|
|
5789
5782
|
}
|
|
5790
5783
|
|
|
5791
|
-
_this =
|
|
5784
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5792
5785
|
|
|
5793
5786
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5794
5787
|
var _this$props;
|
|
@@ -5875,19 +5868,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5875
5868
|
|
|
5876
5869
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
5877
5870
|
if (typeof source === 'string') {
|
|
5878
|
-
return
|
|
5871
|
+
return _react["default"].createElement("source", {
|
|
5879
5872
|
key: index,
|
|
5880
5873
|
src: source
|
|
5881
5874
|
});
|
|
5882
5875
|
}
|
|
5883
5876
|
|
|
5884
|
-
return
|
|
5877
|
+
return _react["default"].createElement("source", _extends({
|
|
5885
5878
|
key: index
|
|
5886
5879
|
}, source));
|
|
5887
5880
|
});
|
|
5888
5881
|
|
|
5889
5882
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
5890
|
-
return
|
|
5883
|
+
return _react["default"].createElement("track", _extends({
|
|
5891
5884
|
key: index
|
|
5892
5885
|
}, track));
|
|
5893
5886
|
});
|
|
@@ -5925,10 +5918,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5925
5918
|
key: "componentWillUnmount",
|
|
5926
5919
|
value: function componentWillUnmount() {
|
|
5927
5920
|
this.removeListeners(this.player);
|
|
5928
|
-
|
|
5929
|
-
if (this.hls) {
|
|
5930
|
-
this.hls.destroy();
|
|
5931
|
-
}
|
|
5932
5921
|
}
|
|
5933
5922
|
}, {
|
|
5934
5923
|
key: "addListeners",
|
|
@@ -6059,6 +6048,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6059
6048
|
value: function stop() {
|
|
6060
6049
|
this.player.removeAttribute('src');
|
|
6061
6050
|
|
|
6051
|
+
if (this.hls) {
|
|
6052
|
+
this.hls.destroy();
|
|
6053
|
+
}
|
|
6054
|
+
|
|
6062
6055
|
if (this.dash) {
|
|
6063
6056
|
this.dash.reset();
|
|
6064
6057
|
}
|
|
@@ -6170,7 +6163,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6170
6163
|
width: width === 'auto' ? width : '100%',
|
|
6171
6164
|
height: height === 'auto' ? height : '100%'
|
|
6172
6165
|
};
|
|
6173
|
-
return
|
|
6166
|
+
return _react["default"].createElement(Element, _extends({
|
|
6174
6167
|
ref: this.ref,
|
|
6175
6168
|
src: this.getSource(url),
|
|
6176
6169
|
style: style,
|
|
@@ -6260,16 +6253,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6260
6253
|
|
|
6261
6254
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6262
6255
|
|
|
6263
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6264
|
-
|
|
6265
6256
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6266
6257
|
|
|
6267
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6268
|
-
|
|
6269
|
-
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; } }
|
|
6270
|
-
|
|
6271
6258
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6272
6259
|
|
|
6260
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6261
|
+
|
|
6273
6262
|
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); }
|
|
6274
6263
|
|
|
6275
6264
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6278,12 +6267,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6278
6267
|
|
|
6279
6268
|
var ICON_SIZE = '64px';
|
|
6280
6269
|
|
|
6281
|
-
var Preview =
|
|
6270
|
+
var Preview =
|
|
6271
|
+
/*#__PURE__*/
|
|
6272
|
+
function (_Component) {
|
|
6282
6273
|
_inherits(Preview, _Component);
|
|
6283
6274
|
|
|
6284
|
-
var _super = _createSuper(Preview);
|
|
6285
|
-
|
|
6286
6275
|
function Preview() {
|
|
6276
|
+
var _getPrototypeOf2;
|
|
6277
|
+
|
|
6287
6278
|
var _this;
|
|
6288
6279
|
|
|
6289
6280
|
_classCallCheck(this, Preview);
|
|
@@ -6292,7 +6283,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6292
6283
|
args[_key] = arguments[_key];
|
|
6293
6284
|
}
|
|
6294
6285
|
|
|
6295
|
-
_this =
|
|
6286
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6296
6287
|
|
|
6297
6288
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6298
6289
|
|
|
@@ -6390,15 +6381,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6390
6381
|
}
|
|
6391
6382
|
};
|
|
6392
6383
|
|
|
6393
|
-
var defaultPlayIcon =
|
|
6384
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6394
6385
|
style: styles.shadow,
|
|
6395
6386
|
className: "react-player__shadow"
|
|
6396
|
-
},
|
|
6387
|
+
}, _react["default"].createElement("div", {
|
|
6397
6388
|
style: styles.playIcon,
|
|
6398
6389
|
className: "react-player__play-icon"
|
|
6399
6390
|
}));
|
|
6400
6391
|
|
|
6401
|
-
return
|
|
6392
|
+
return _react["default"].createElement("div", {
|
|
6402
6393
|
style: styles.preview,
|
|
6403
6394
|
className: "react-player__preview",
|
|
6404
6395
|
onClick: onClick
|
|
@@ -6435,12 +6426,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6435
6426
|
|
|
6436
6427
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6437
6428
|
|
|
6438
|
-
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; } } }; }
|
|
6439
|
-
|
|
6440
|
-
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); }
|
|
6441
|
-
|
|
6442
|
-
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; }
|
|
6443
|
-
|
|
6444
6429
|
var PRELOAD_PLAYERS = [{
|
|
6445
6430
|
Player: YouTube_1.YouTube,
|
|
6446
6431
|
configKey: 'youtube',
|
|
@@ -6461,16 +6446,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6461
6446
|
|
|
6462
6447
|
function renderPreloadPlayers(url, controls, config) {
|
|
6463
6448
|
var players = [];
|
|
6464
|
-
|
|
6465
|
-
var
|
|
6466
|
-
|
|
6449
|
+
var _iteratorNormalCompletion = true;
|
|
6450
|
+
var _didIteratorError = false;
|
|
6451
|
+
var _iteratorError = undefined;
|
|
6467
6452
|
|
|
6468
6453
|
try {
|
|
6469
|
-
for (_iterator.
|
|
6454
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6470
6455
|
var player = _step.value;
|
|
6471
6456
|
|
|
6472
6457
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6473
|
-
players.push(
|
|
6458
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6474
6459
|
key: player.Player.displayName,
|
|
6475
6460
|
activePlayer: player.Player,
|
|
6476
6461
|
url: player.url,
|
|
@@ -6482,9 +6467,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6482
6467
|
}
|
|
6483
6468
|
}
|
|
6484
6469
|
} catch (err) {
|
|
6485
|
-
|
|
6470
|
+
_didIteratorError = true;
|
|
6471
|
+
_iteratorError = err;
|
|
6486
6472
|
} finally {
|
|
6487
|
-
|
|
6473
|
+
try {
|
|
6474
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6475
|
+
_iterator["return"]();
|
|
6476
|
+
}
|
|
6477
|
+
} finally {
|
|
6478
|
+
if (_didIteratorError) {
|
|
6479
|
+
throw _iteratorError;
|
|
6480
|
+
}
|
|
6481
|
+
}
|
|
6488
6482
|
}
|
|
6489
6483
|
|
|
6490
6484
|
return players;
|
|
@@ -6608,17 +6602,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6608
6602
|
|
|
6609
6603
|
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); }
|
|
6610
6604
|
|
|
6611
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6605
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6612
6606
|
|
|
6613
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
6607
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6614
6608
|
|
|
6615
|
-
function
|
|
6609
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6616
6610
|
|
|
6617
|
-
function
|
|
6618
|
-
|
|
6619
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6620
|
-
|
|
6621
|
-
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; }
|
|
6611
|
+
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; } }
|
|
6622
6612
|
|
|
6623
6613
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6624
6614
|
|
|
@@ -6626,16 +6616,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6626
6616
|
|
|
6627
6617
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6628
6618
|
|
|
6629
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6630
|
-
|
|
6631
6619
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6632
6620
|
|
|
6633
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6634
|
-
|
|
6635
|
-
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; } }
|
|
6636
|
-
|
|
6637
6621
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6638
6622
|
|
|
6623
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6624
|
+
|
|
6639
6625
|
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); }
|
|
6640
6626
|
|
|
6641
6627
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6645,12 +6631,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6645
6631
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6646
6632
|
var customPlayers = [];
|
|
6647
6633
|
|
|
6648
|
-
var ReactPlayer =
|
|
6634
|
+
var ReactPlayer =
|
|
6635
|
+
/*#__PURE__*/
|
|
6636
|
+
function (_Component) {
|
|
6649
6637
|
_inherits(ReactPlayer, _Component);
|
|
6650
6638
|
|
|
6651
|
-
var _super = _createSuper(ReactPlayer);
|
|
6652
|
-
|
|
6653
6639
|
function ReactPlayer() {
|
|
6640
|
+
var _getPrototypeOf2;
|
|
6641
|
+
|
|
6654
6642
|
var _this;
|
|
6655
6643
|
|
|
6656
6644
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6659,7 +6647,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6659
6647
|
args[_key] = arguments[_key];
|
|
6660
6648
|
}
|
|
6661
6649
|
|
|
6662
|
-
_this =
|
|
6650
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6663
6651
|
|
|
6664
6652
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6665
6653
|
|
|
@@ -6770,7 +6758,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6770
6758
|
key: "renderActivePlayer",
|
|
6771
6759
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6772
6760
|
if (!url) return null;
|
|
6773
|
-
return
|
|
6761
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6774
6762
|
key: activePlayer.displayName,
|
|
6775
6763
|
ref: this.activePlayerRef,
|
|
6776
6764
|
config: this.config,
|
|
@@ -6807,14 +6795,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6807
6795
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6808
6796
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6809
6797
|
|
|
6810
|
-
var preview =
|
|
6798
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6811
6799
|
url: url,
|
|
6812
6800
|
light: light,
|
|
6813
6801
|
playIcon: playIcon,
|
|
6814
6802
|
onClick: this.handleClickPreview
|
|
6815
6803
|
});
|
|
6816
6804
|
|
|
6817
|
-
return
|
|
6805
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6818
6806
|
ref: this.wrapperRef,
|
|
6819
6807
|
style: _objectSpread({}, style, {
|
|
6820
6808
|
width: width,
|
|
@@ -7371,7 +7359,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7371
7359
|
nodes.videos[series - 1].intro
|
|
7372
7360
|
)
|
|
7373
7361
|
),
|
|
7374
|
-
nodes.videos[series - 1] && nodes.videos[series - 1].text && React__default.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: nodes.videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7362
|
+
nodes.videos[series - 1] && nodes.videos[series - 1].text && React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: nodes.videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7375
7363
|
),
|
|
7376
7364
|
React__default.createElement(
|
|
7377
7365
|
'style',
|
|
@@ -7499,7 +7487,7 @@ var Poll = function Poll(_ref) {
|
|
|
7499
7487
|
);
|
|
7500
7488
|
};
|
|
7501
7489
|
|
|
7502
|
-
var numberOfPaginations =
|
|
7490
|
+
var numberOfPaginations = main_35 ? 4 : 10;
|
|
7503
7491
|
|
|
7504
7492
|
var Quiz = function Quiz(_ref) {
|
|
7505
7493
|
var quizzes = _ref.quizzes,
|
|
@@ -7612,7 +7600,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
7612
7600
|
var renderPagination = function renderPagination() {
|
|
7613
7601
|
return React__default.createElement(
|
|
7614
7602
|
Pagination,
|
|
7615
|
-
{ className: 'p-0 m-0', size:
|
|
7603
|
+
{ className: 'p-0 m-0', size: main_35 && 'sm' },
|
|
7616
7604
|
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7617
7605
|
return changePage('first');
|
|
7618
7606
|
}, disabled: currentPage === 1 }),
|
|
@@ -7845,7 +7833,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
7845
7833
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
7846
7834
|
React__default.createElement(
|
|
7847
7835
|
'a',
|
|
7848
|
-
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
7836
|
+
_extends$1({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
7849
7837
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
7850
7838
|
React__default.createElement(
|
|
7851
7839
|
'div',
|
|
@@ -8150,9 +8138,9 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8150
8138
|
|
|
8151
8139
|
if (indexOfRef >= 0) {
|
|
8152
8140
|
var newOffsetTop = !firstLoad ? refArray.current[indexOfRef].wraperRef.current.offsetTop : refArray.current[indexOfRef].wraperRef.current.offsetTop + document.getElementsByTagName('header')[0].clientHeight;
|
|
8153
|
-
console.dir(refArray.current[indexOfRef].wraperRef.current)
|
|
8154
|
-
console.log(document.getElementsByTagName('header')[0].clientHeight)
|
|
8155
|
-
console.log(refArray.current[indexOfRef].wraperRef.current.offsetTop)
|
|
8141
|
+
// console.dir(refArray.current[indexOfRef].wraperRef.current)
|
|
8142
|
+
// console.log(document.getElementsByTagName('header')[0].clientHeight)
|
|
8143
|
+
// console.log(refArray.current[indexOfRef].wraperRef.current.offsetTop)
|
|
8156
8144
|
window.scrollTo({ top: newOffsetTop, behavior: 'smooth' });
|
|
8157
8145
|
//refArray.current[indexOfRef].wraperRef.current.scrollIntoView({ behavior: 'smooth', block: 'start' })
|
|
8158
8146
|
}
|
|
@@ -8161,7 +8149,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8161
8149
|
|
|
8162
8150
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8163
8151
|
if (biography) {
|
|
8164
|
-
return React__default.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8152
|
+
return React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8165
8153
|
}
|
|
8166
8154
|
};
|
|
8167
8155
|
|
|
@@ -8204,18 +8192,19 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8204
8192
|
var window = e.currentTarget;
|
|
8205
8193
|
if (preVscroll > window.scrollY) {
|
|
8206
8194
|
isScrollDown = false;
|
|
8207
|
-
if (window.scrollY > articleContainerRef.current.offsetTop) {
|
|
8208
|
-
arrowRef.current.
|
|
8209
|
-
arrowRef.current.classList.remove('hideArrow');
|
|
8195
|
+
if (window.scrollY > articleContainerRef.current.offsetTop && preVscroll !== 0 && !upArrowClicked) {
|
|
8196
|
+
arrowRef.current.style.visibility = 'visible';
|
|
8210
8197
|
}
|
|
8211
|
-
} else if (preVscroll
|
|
8198
|
+
} else if (preVscroll < window.scrollY) {
|
|
8212
8199
|
isScrollDown = true;
|
|
8213
8200
|
}
|
|
8201
|
+
if (isScrollDown && preVscroll !== 0) {
|
|
8202
|
+
arrowRef.current.style.visibility = 'hidden';
|
|
8203
|
+
}
|
|
8214
8204
|
preVscroll = window.scrollY;
|
|
8215
8205
|
setContentWidth(articleContainerRef.current.offsetWidth);
|
|
8216
8206
|
if (preVscroll <= articleContainerRef.current.offsetTop) {
|
|
8217
|
-
arrowRef.current.
|
|
8218
|
-
arrowRef.current.classList.add('hideArrow');
|
|
8207
|
+
arrowRef.current.style.visibility = 'hidden';
|
|
8219
8208
|
}
|
|
8220
8209
|
if (window.scrollY === 0 && upArrowClicked === true) {
|
|
8221
8210
|
upArrowClicked = false;
|
|
@@ -8230,9 +8219,9 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8230
8219
|
});
|
|
8231
8220
|
|
|
8232
8221
|
useLayoutEffect(function () {
|
|
8233
|
-
console.log('useLayoutEffect')
|
|
8222
|
+
//console.log('useLayoutEffect')
|
|
8234
8223
|
if (!firstLoad) {
|
|
8235
|
-
if (
|
|
8224
|
+
if (main_36) {
|
|
8236
8225
|
grabLoadedAds();
|
|
8237
8226
|
} else {
|
|
8238
8227
|
scrollToArticle();
|
|
@@ -8255,7 +8244,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8255
8244
|
//const activeArticle = path
|
|
8256
8245
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8257
8246
|
|
|
8258
|
-
if (!
|
|
8247
|
+
if (!main_36) {
|
|
8259
8248
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8260
8249
|
if (window.googletag && googletag.pubadsReady) {
|
|
8261
8250
|
lib_3.refresh();
|
|
@@ -8263,7 +8252,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8263
8252
|
});
|
|
8264
8253
|
}
|
|
8265
8254
|
//Refresh leaderboard ad on mobile
|
|
8266
|
-
if (
|
|
8255
|
+
if (main_36) {
|
|
8267
8256
|
var leaderboardSlotId = '';
|
|
8268
8257
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8269
8258
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8276,8 +8265,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8276
8265
|
var handleArrowClick = function handleArrowClick() {
|
|
8277
8266
|
isScrollDown = true;
|
|
8278
8267
|
upArrowClicked = true;
|
|
8279
|
-
arrowRef.current.
|
|
8280
|
-
arrowRef.current.classList.remove('showArrow');
|
|
8268
|
+
arrowRef.current.style.visibility = 'hidden';
|
|
8281
8269
|
window.scrollTo({ top: 0, behavior: 'smooth' });
|
|
8282
8270
|
window.history.pushState({}, '', router.asPath.split('?')[0]);
|
|
8283
8271
|
document.title = nodes.seriesTitle;
|
|
@@ -8288,7 +8276,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8288
8276
|
null,
|
|
8289
8277
|
React__default.createElement(
|
|
8290
8278
|
'div',
|
|
8291
|
-
{ ref: arrowRef, className: 'scrollToTopArrow
|
|
8279
|
+
{ ref: arrowRef, className: 'scrollToTopArrow', onClick: function onClick() {
|
|
8292
8280
|
return handleArrowClick();
|
|
8293
8281
|
} },
|
|
8294
8282
|
React__default.createElement(IoIosArrowDropupCircle, null)
|
|
@@ -8312,7 +8300,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8312
8300
|
React__default.createElement(
|
|
8313
8301
|
'div',
|
|
8314
8302
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8315
|
-
|
|
8303
|
+
main_36 && Ads.map(function (ad, index) {
|
|
8316
8304
|
if (index === 0) {
|
|
8317
8305
|
return React__default.createElement(
|
|
8318
8306
|
'div',
|
|
@@ -8402,7 +8390,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8402
8390
|
React__default.createElement(
|
|
8403
8391
|
'div',
|
|
8404
8392
|
{ className: 'mt-2 mb-2' },
|
|
8405
|
-
React__default.createElement(BlockContent, _extends({
|
|
8393
|
+
React__default.createElement(BlockContent, _extends$1({
|
|
8406
8394
|
serializers: getSerializers,
|
|
8407
8395
|
videoAccountIDs: accountIDs,
|
|
8408
8396
|
blocks: article.text,
|
|
@@ -8433,7 +8421,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8433
8421
|
React__default.createElement(
|
|
8434
8422
|
'div',
|
|
8435
8423
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8436
|
-
|
|
8424
|
+
main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8437
8425
|
if (innerIndex === 0) {
|
|
8438
8426
|
return React__default.createElement(
|
|
8439
8427
|
'div',
|
|
@@ -8461,7 +8449,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8461
8449
|
React__default.createElement(
|
|
8462
8450
|
'style',
|
|
8463
8451
|
{ jsx: 'true' },
|
|
8464
|
-
'\n .scrollToTopArrow {\n position: fixed;\n top: 150px;\n display: flex;\n justify-content: center;\n width: ' + contentWidth + 'px;\n opacity:
|
|
8452
|
+
'\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 '
|
|
8465
8453
|
)
|
|
8466
8454
|
)
|
|
8467
8455
|
);
|
|
@@ -8685,7 +8673,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
8685
8673
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
8686
8674
|
image.link ? React__default.createElement(
|
|
8687
8675
|
'a',
|
|
8688
|
-
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
8676
|
+
_extends$1({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
8689
8677
|
React__default.createElement(
|
|
8690
8678
|
'div',
|
|
8691
8679
|
{ className: 'multi-figure-image-container' },
|