@mjhls/mjh-framework 1.0.682 → 1.0.684-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 +256 -507
- 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 +8 -7
- package/dist/cjs/LeftNav.js +2 -2
- package/dist/cjs/MasterDeck.js +7 -7
- package/dist/cjs/NavMagazine.js +4 -4
- package/dist/cjs/NavNative.js +3 -3
- package/dist/cjs/OncliveHero.js +2 -2
- package/dist/cjs/OncliveLargeHero.js +2 -2
- package/dist/cjs/PartnerDetailListing.js +1213 -15
- package/dist/cjs/PublicationDeck.js +1 -1
- package/dist/cjs/QueueDeckExpanded.js +256 -18
- 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 +3 -3
- package/dist/cjs/View.js +486 -119
- 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 +354 -5
- 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-bd6c9f56.js +211 -0
- package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
- package/dist/cjs/{index-8c9e8ca7.js → index-c49c3b5e.js} +450 -462
- 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 +16 -16
- 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 +41 -0
- 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 +248 -499
- 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 +8 -7
- package/dist/esm/LeftNav.js +2 -2
- package/dist/esm/MasterDeck.js +7 -7
- package/dist/esm/NavMagazine.js +4 -4
- package/dist/esm/NavNative.js +3 -3
- package/dist/esm/OncliveHero.js +2 -2
- package/dist/esm/OncliveLargeHero.js +2 -2
- package/dist/esm/PartnerDetailListing.js +1210 -13
- package/dist/esm/PublicationDeck.js +1 -1
- package/dist/esm/QueueDeckExpanded.js +256 -18
- 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 +3 -3
- package/dist/esm/View.js +460 -93
- 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 +354 -5
- 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-5505d4f9.js → index-85783f24.js} +450 -462
- package/dist/esm/index-db3bb315.js +207 -0
- 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 +14 -14
- 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 +39 -0
- package/dist/esm/urlFor.js +1 -1
- package/package.json +1 -1
- /package/dist/cjs/{ADInfeed-c676389b.js → ADInfeed-f27bc4b5.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-57d63c87.js → ADlgInfeed-8decfd9e.js} +0 -0
- /package/dist/esm/{ADInfeed-97b8cea7.js → ADInfeed-1e0ca5e0.js} +0 -0
- /package/dist/esm/{ADlgInfeed-3ab91c75.js → ADlgInfeed-979cf0d5.js} +0 -0
|
@@ -1,23 +1,23 @@
|
|
|
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, 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 { B as Beam, S as Segment } from './beam-681a9749.js';
|
|
19
19
|
import DFPAdSlot from './AdSlot.js';
|
|
20
|
-
import { B as BlockContent } from './BlockContent-
|
|
20
|
+
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
21
21
|
import { g as getYoutubeId } from './smoothscroll-4b699764.js';
|
|
22
22
|
import GroupDeck from './GroupDeck.js';
|
|
23
23
|
import { Carousel, Table, Figure as Figure$1, Button, ProgressBar, Card, Row as Row$1, Col as Col$1 } from 'react-bootstrap';
|
|
@@ -90,18 +90,21 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
90
90
|
);
|
|
91
91
|
};
|
|
92
92
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
var isArray = Array.isArray;
|
|
94
|
+
var keyList = Object.keys;
|
|
95
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
96
96
|
|
|
97
97
|
var fastDeepEqual = function equal(a, b) {
|
|
98
98
|
if (a === b) return true;
|
|
99
99
|
|
|
100
100
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
101
|
-
|
|
101
|
+
var arrA = isArray(a)
|
|
102
|
+
, arrB = isArray(b)
|
|
103
|
+
, i
|
|
104
|
+
, length
|
|
105
|
+
, key;
|
|
102
106
|
|
|
103
|
-
|
|
104
|
-
if (Array.isArray(a)) {
|
|
107
|
+
if (arrA && arrB) {
|
|
105
108
|
length = a.length;
|
|
106
109
|
if (length != b.length) return false;
|
|
107
110
|
for (i = length; i-- !== 0;)
|
|
@@ -109,29 +112,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
109
112
|
return true;
|
|
110
113
|
}
|
|
111
114
|
|
|
115
|
+
if (arrA != arrB) return false;
|
|
112
116
|
|
|
117
|
+
var dateA = a instanceof Date
|
|
118
|
+
, dateB = b instanceof Date;
|
|
119
|
+
if (dateA != dateB) return false;
|
|
120
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
113
121
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
if (
|
|
122
|
+
var regexpA = a instanceof RegExp
|
|
123
|
+
, regexpB = b instanceof RegExp;
|
|
124
|
+
if (regexpA != regexpB) return false;
|
|
125
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
117
126
|
|
|
118
|
-
keys =
|
|
127
|
+
var keys = keyList(a);
|
|
119
128
|
length = keys.length;
|
|
120
|
-
|
|
129
|
+
|
|
130
|
+
if (length !== keyList(b).length)
|
|
131
|
+
return false;
|
|
121
132
|
|
|
122
133
|
for (i = length; i-- !== 0;)
|
|
123
|
-
if (!
|
|
134
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
124
135
|
|
|
125
136
|
for (i = length; i-- !== 0;) {
|
|
126
|
-
|
|
127
|
-
|
|
137
|
+
key = keys[i];
|
|
128
138
|
if (!equal(a[key], b[key])) return false;
|
|
129
139
|
}
|
|
130
140
|
|
|
131
141
|
return true;
|
|
132
142
|
}
|
|
133
143
|
|
|
134
|
-
// true if both NaN, false otherwise
|
|
135
144
|
return a!==a && b!==b;
|
|
136
145
|
};
|
|
137
146
|
|
|
@@ -1554,235 +1563,199 @@ module.exports = exports['default'];
|
|
|
1554
1563
|
|
|
1555
1564
|
var youTubePlayer = unwrapExports(dist);
|
|
1556
1565
|
|
|
1557
|
-
function
|
|
1558
|
-
|
|
1559
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1560
|
-
|
|
1561
|
-
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); } }
|
|
1562
|
-
|
|
1563
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1566
|
+
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; }; }();
|
|
1564
1567
|
|
|
1565
|
-
|
|
1568
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
1566
1569
|
|
|
1567
|
-
function
|
|
1568
|
-
|
|
1569
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1570
|
-
|
|
1571
|
-
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; } }
|
|
1572
|
-
|
|
1573
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1574
|
-
|
|
1575
|
-
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); }
|
|
1576
|
-
|
|
1577
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1570
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1578
1571
|
|
|
1579
|
-
function
|
|
1572
|
+
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; }
|
|
1580
1573
|
|
|
1581
|
-
function
|
|
1574
|
+
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; }
|
|
1582
1575
|
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
*
|
|
1586
|
-
*
|
|
1587
|
-
* @param {Object}
|
|
1588
|
-
* @param {Object} props
|
|
1576
|
+
/**
|
|
1577
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1578
|
+
*
|
|
1579
|
+
* @param {Object} prevProps
|
|
1580
|
+
* @param {Object} props
|
|
1589
1581
|
*/
|
|
1590
|
-
|
|
1591
1582
|
function shouldUpdateVideo(prevProps, props) {
|
|
1592
1583
|
// A changing video should always trigger an update
|
|
1593
1584
|
if (prevProps.videoId !== props.videoId) {
|
|
1594
1585
|
return true;
|
|
1595
|
-
}
|
|
1596
|
-
// update.
|
|
1597
|
-
|
|
1586
|
+
}
|
|
1598
1587
|
|
|
1588
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1589
|
+
// update.
|
|
1599
1590
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1600
1591
|
var vars = props.opts.playerVars || {};
|
|
1592
|
+
|
|
1601
1593
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1602
1594
|
}
|
|
1603
|
-
/**
|
|
1604
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
1605
|
-
* that require a player reset. The results can then be compared to see if a
|
|
1606
|
-
* player reset is necessary.
|
|
1607
|
-
*
|
|
1608
|
-
* @param {Object} opts
|
|
1609
|
-
*/
|
|
1610
|
-
|
|
1611
1595
|
|
|
1596
|
+
/**
|
|
1597
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
1598
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1599
|
+
* player reset is necessary.
|
|
1600
|
+
*
|
|
1601
|
+
* @param {Object} opts
|
|
1602
|
+
*/
|
|
1612
1603
|
function filterResetOptions(opts) {
|
|
1613
|
-
return
|
|
1614
|
-
playerVars:
|
|
1604
|
+
return _extends({}, opts, {
|
|
1605
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1615
1606
|
autoplay: 0,
|
|
1616
1607
|
start: 0,
|
|
1617
1608
|
end: 0
|
|
1618
1609
|
})
|
|
1619
1610
|
});
|
|
1620
1611
|
}
|
|
1621
|
-
/**
|
|
1622
|
-
* Check whether a `props` change should result in the player being reset.
|
|
1623
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
1624
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1625
|
-
* those.
|
|
1626
|
-
*
|
|
1627
|
-
* @param {Object} prevProps
|
|
1628
|
-
* @param {Object} props
|
|
1629
|
-
*/
|
|
1630
|
-
|
|
1631
1612
|
|
|
1613
|
+
/**
|
|
1614
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1615
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1616
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1617
|
+
* those.
|
|
1618
|
+
*
|
|
1619
|
+
* @param {Object} prevProps
|
|
1620
|
+
* @param {Object} props
|
|
1621
|
+
*/
|
|
1632
1622
|
function shouldResetPlayer(prevProps, props) {
|
|
1633
1623
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1634
1624
|
}
|
|
1635
|
-
/**
|
|
1636
|
-
* Check whether a props change should result in an id or className update.
|
|
1637
|
-
*
|
|
1638
|
-
* @param {Object} prevProps
|
|
1639
|
-
* @param {Object} props
|
|
1640
|
-
*/
|
|
1641
|
-
|
|
1642
1625
|
|
|
1626
|
+
/**
|
|
1627
|
+
* Check whether a props change should result in an id or className update.
|
|
1628
|
+
*
|
|
1629
|
+
* @param {Object} prevProps
|
|
1630
|
+
* @param {Object} props
|
|
1631
|
+
*/
|
|
1643
1632
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1644
1633
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1645
1634
|
}
|
|
1646
1635
|
|
|
1647
|
-
var YouTube =
|
|
1636
|
+
var YouTube = function (_React$Component) {
|
|
1648
1637
|
_inherits(YouTube, _React$Component);
|
|
1649
1638
|
|
|
1650
|
-
var _super = _createSuper(YouTube);
|
|
1651
|
-
|
|
1652
|
-
/**
|
|
1653
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1654
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1655
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1656
|
-
*/
|
|
1657
1639
|
function YouTube(props) {
|
|
1658
|
-
var _this;
|
|
1659
|
-
|
|
1660
1640
|
_classCallCheck(this, YouTube);
|
|
1661
1641
|
|
|
1662
|
-
_this =
|
|
1642
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1663
1643
|
|
|
1664
|
-
|
|
1644
|
+
_this.onPlayerReady = function (event) {
|
|
1665
1645
|
return _this.props.onReady(event);
|
|
1666
|
-
}
|
|
1646
|
+
};
|
|
1667
1647
|
|
|
1668
|
-
|
|
1648
|
+
_this.onPlayerError = function (event) {
|
|
1669
1649
|
return _this.props.onError(event);
|
|
1670
|
-
}
|
|
1650
|
+
};
|
|
1671
1651
|
|
|
1672
|
-
|
|
1652
|
+
_this.onPlayerStateChange = function (event) {
|
|
1673
1653
|
_this.props.onStateChange(event);
|
|
1674
|
-
|
|
1675
1654
|
switch (event.data) {
|
|
1655
|
+
|
|
1676
1656
|
case YouTube.PlayerState.ENDED:
|
|
1677
1657
|
_this.props.onEnd(event);
|
|
1678
|
-
|
|
1679
1658
|
break;
|
|
1680
1659
|
|
|
1681
1660
|
case YouTube.PlayerState.PLAYING:
|
|
1682
1661
|
_this.props.onPlay(event);
|
|
1683
|
-
|
|
1684
1662
|
break;
|
|
1685
1663
|
|
|
1686
1664
|
case YouTube.PlayerState.PAUSED:
|
|
1687
1665
|
_this.props.onPause(event);
|
|
1688
|
-
|
|
1689
1666
|
break;
|
|
1690
1667
|
}
|
|
1691
|
-
}
|
|
1668
|
+
};
|
|
1692
1669
|
|
|
1693
|
-
|
|
1670
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1694
1671
|
return _this.props.onPlaybackRateChange(event);
|
|
1695
|
-
}
|
|
1672
|
+
};
|
|
1696
1673
|
|
|
1697
|
-
|
|
1674
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1698
1675
|
return _this.props.onPlaybackQualityChange(event);
|
|
1699
|
-
}
|
|
1676
|
+
};
|
|
1700
1677
|
|
|
1701
|
-
|
|
1678
|
+
_this.createPlayer = function () {
|
|
1702
1679
|
// do not attempt to create a player server-side, it won't work
|
|
1703
|
-
if (typeof document === 'undefined') return;
|
|
1704
|
-
|
|
1705
|
-
var playerOpts =
|
|
1680
|
+
if (typeof document === 'undefined') return;
|
|
1681
|
+
// create player
|
|
1682
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1706
1683
|
// preload the `videoId` video if one is already given
|
|
1707
1684
|
videoId: _this.props.videoId
|
|
1708
1685
|
});
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1686
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
1687
|
+
// attach event handlers
|
|
1712
1688
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1713
|
-
|
|
1714
1689
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1715
|
-
|
|
1716
1690
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1717
|
-
|
|
1718
1691
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1719
|
-
|
|
1720
1692
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1721
|
-
}
|
|
1693
|
+
};
|
|
1722
1694
|
|
|
1723
|
-
|
|
1695
|
+
_this.resetPlayer = function () {
|
|
1724
1696
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1725
|
-
}
|
|
1697
|
+
};
|
|
1726
1698
|
|
|
1727
|
-
|
|
1699
|
+
_this.updatePlayer = function () {
|
|
1728
1700
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1729
1701
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1730
1702
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1731
1703
|
});
|
|
1732
|
-
}
|
|
1704
|
+
};
|
|
1733
1705
|
|
|
1734
|
-
|
|
1706
|
+
_this.updateVideo = function () {
|
|
1735
1707
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1736
1708
|
_this.internalPlayer.stopVideo();
|
|
1737
|
-
|
|
1738
1709
|
return;
|
|
1739
|
-
}
|
|
1740
|
-
|
|
1710
|
+
}
|
|
1741
1711
|
|
|
1712
|
+
// set queueing options
|
|
1742
1713
|
var autoplay = false;
|
|
1743
1714
|
var opts = {
|
|
1744
1715
|
videoId: _this.props.videoId
|
|
1745
1716
|
};
|
|
1746
|
-
|
|
1747
1717
|
if ('playerVars' in _this.props.opts) {
|
|
1748
1718
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1749
|
-
|
|
1750
1719
|
if ('start' in _this.props.opts.playerVars) {
|
|
1751
1720
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1752
1721
|
}
|
|
1753
|
-
|
|
1754
1722
|
if ('end' in _this.props.opts.playerVars) {
|
|
1755
1723
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1756
1724
|
}
|
|
1757
|
-
}
|
|
1758
|
-
|
|
1725
|
+
}
|
|
1759
1726
|
|
|
1727
|
+
// if autoplay is enabled loadVideoById
|
|
1760
1728
|
if (autoplay) {
|
|
1761
1729
|
_this.internalPlayer.loadVideoById(opts);
|
|
1762
|
-
|
|
1763
1730
|
return;
|
|
1764
|
-
}
|
|
1765
|
-
|
|
1766
|
-
|
|
1731
|
+
}
|
|
1732
|
+
// default behaviour just cues the video
|
|
1767
1733
|
_this.internalPlayer.cueVideoById(opts);
|
|
1768
|
-
}
|
|
1734
|
+
};
|
|
1769
1735
|
|
|
1770
|
-
|
|
1736
|
+
_this.refContainer = function (container) {
|
|
1771
1737
|
_this.container = container;
|
|
1772
|
-
}
|
|
1738
|
+
};
|
|
1773
1739
|
|
|
1774
1740
|
_this.container = null;
|
|
1775
1741
|
_this.internalPlayer = null;
|
|
1776
1742
|
return _this;
|
|
1777
1743
|
}
|
|
1778
1744
|
|
|
1745
|
+
/**
|
|
1746
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1747
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1748
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1749
|
+
*/
|
|
1750
|
+
|
|
1751
|
+
|
|
1779
1752
|
_createClass(YouTube, [{
|
|
1780
|
-
key:
|
|
1753
|
+
key: 'componentDidMount',
|
|
1781
1754
|
value: function componentDidMount() {
|
|
1782
1755
|
this.createPlayer();
|
|
1783
1756
|
}
|
|
1784
1757
|
}, {
|
|
1785
|
-
key:
|
|
1758
|
+
key: 'componentDidUpdate',
|
|
1786
1759
|
value: function componentDidUpdate(prevProps) {
|
|
1787
1760
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1788
1761
|
this.updatePlayer();
|
|
@@ -1797,58 +1770,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1797
1770
|
}
|
|
1798
1771
|
}
|
|
1799
1772
|
}, {
|
|
1800
|
-
key:
|
|
1773
|
+
key: 'componentWillUnmount',
|
|
1801
1774
|
value: function componentWillUnmount() {
|
|
1802
|
-
/**
|
|
1803
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1804
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1805
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1806
|
-
* this method isn't quick enough to reset the container element.
|
|
1775
|
+
/**
|
|
1776
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
1777
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1778
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1779
|
+
* this method isn't quick enough to reset the container element.
|
|
1807
1780
|
*/
|
|
1808
1781
|
this.internalPlayer.destroy();
|
|
1809
1782
|
}
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
*
|
|
1813
|
-
*
|
|
1814
|
-
*
|
|
1783
|
+
|
|
1784
|
+
/**
|
|
1785
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1786
|
+
*
|
|
1787
|
+
* @param {Object} event
|
|
1788
|
+
* @param {Object} target - player object
|
|
1789
|
+
*/
|
|
1790
|
+
|
|
1791
|
+
|
|
1792
|
+
/**
|
|
1793
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1794
|
+
*
|
|
1795
|
+
* @param {Object} event
|
|
1796
|
+
* @param {Integer} data - error type
|
|
1797
|
+
* @param {Object} target - player object
|
|
1798
|
+
*/
|
|
1799
|
+
|
|
1800
|
+
|
|
1801
|
+
/**
|
|
1802
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1803
|
+
*
|
|
1804
|
+
* @param {Object} event
|
|
1805
|
+
* @param {Integer} data - status change type
|
|
1806
|
+
* @param {Object} target - actual YT player
|
|
1807
|
+
*/
|
|
1808
|
+
|
|
1809
|
+
|
|
1810
|
+
/**
|
|
1811
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1812
|
+
*
|
|
1813
|
+
* @param {Object} event
|
|
1814
|
+
* @param {Float} data - playback rate
|
|
1815
|
+
* @param {Object} target - actual YT player
|
|
1816
|
+
*/
|
|
1817
|
+
|
|
1818
|
+
|
|
1819
|
+
/**
|
|
1820
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1821
|
+
*
|
|
1822
|
+
* @param {Object} event
|
|
1823
|
+
* @param {String} data - playback quality
|
|
1824
|
+
* @param {Object} target - actual YT player
|
|
1825
|
+
*/
|
|
1826
|
+
|
|
1827
|
+
|
|
1828
|
+
/**
|
|
1829
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1830
|
+
*/
|
|
1831
|
+
|
|
1832
|
+
|
|
1833
|
+
/**
|
|
1834
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1835
|
+
*/
|
|
1836
|
+
|
|
1837
|
+
|
|
1838
|
+
/**
|
|
1839
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
1840
|
+
* React should update this automatically but since the Youtube Player API
|
|
1841
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1842
|
+
*/
|
|
1843
|
+
|
|
1844
|
+
|
|
1845
|
+
/**
|
|
1846
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
1847
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1848
|
+
* Youtube Player API methods to update the video.
|
|
1815
1849
|
*/
|
|
1816
1850
|
|
|
1817
1851
|
}, {
|
|
1818
|
-
key:
|
|
1852
|
+
key: 'render',
|
|
1819
1853
|
value: function render() {
|
|
1820
|
-
return
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
id: this.props.id,
|
|
1824
|
-
|
|
1825
|
-
ref: this.refContainer
|
|
1826
|
-
}));
|
|
1854
|
+
return React__default.createElement(
|
|
1855
|
+
'div',
|
|
1856
|
+
{ className: this.props.containerClassName },
|
|
1857
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
1858
|
+
);
|
|
1827
1859
|
}
|
|
1828
1860
|
}]);
|
|
1829
1861
|
|
|
1830
1862
|
return YouTube;
|
|
1831
1863
|
}(React__default.Component);
|
|
1832
1864
|
|
|
1833
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
1834
|
-
UNSTARTED: -1,
|
|
1835
|
-
ENDED: 0,
|
|
1836
|
-
PLAYING: 1,
|
|
1837
|
-
PAUSED: 2,
|
|
1838
|
-
BUFFERING: 3,
|
|
1839
|
-
CUED: 5
|
|
1840
|
-
});
|
|
1841
|
-
|
|
1842
1865
|
YouTube.propTypes = {
|
|
1843
1866
|
videoId: PropTypes.string,
|
|
1867
|
+
|
|
1844
1868
|
// custom ID for player element
|
|
1845
1869
|
id: PropTypes.string,
|
|
1870
|
+
|
|
1846
1871
|
// custom class name for player element
|
|
1847
1872
|
className: PropTypes.string,
|
|
1848
1873
|
// custom class name for player container element
|
|
1849
1874
|
containerClassName: PropTypes.string,
|
|
1875
|
+
|
|
1850
1876
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1851
1877
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1878
|
+
|
|
1852
1879
|
// event subscriptions
|
|
1853
1880
|
onReady: PropTypes.func,
|
|
1854
1881
|
onError: PropTypes.func,
|
|
@@ -1860,7 +1887,6 @@ YouTube.propTypes = {
|
|
|
1860
1887
|
onPlaybackQualityChange: PropTypes.func
|
|
1861
1888
|
};
|
|
1862
1889
|
YouTube.defaultProps = {
|
|
1863
|
-
videoId: null,
|
|
1864
1890
|
id: null,
|
|
1865
1891
|
className: null,
|
|
1866
1892
|
opts: {},
|
|
@@ -1874,6 +1900,14 @@ YouTube.defaultProps = {
|
|
|
1874
1900
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1875
1901
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1876
1902
|
};
|
|
1903
|
+
YouTube.PlayerState = {
|
|
1904
|
+
UNSTARTED: -1,
|
|
1905
|
+
ENDED: 0,
|
|
1906
|
+
PLAYING: 1,
|
|
1907
|
+
PAUSED: 2,
|
|
1908
|
+
BUFFERING: 3,
|
|
1909
|
+
CUED: 5
|
|
1910
|
+
};
|
|
1877
1911
|
|
|
1878
1912
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1879
1913
|
var url = _ref.url;
|
|
@@ -2137,7 +2171,7 @@ var Media = function Media(_ref) {
|
|
|
2137
2171
|
React__default.createElement(
|
|
2138
2172
|
LazyLoad,
|
|
2139
2173
|
{ once: true },
|
|
2140
|
-
React__default.createElement(Figure$1.Image, _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt }))
|
|
2174
|
+
React__default.createElement(Figure$1.Image, _extends$1({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt }))
|
|
2141
2175
|
),
|
|
2142
2176
|
caption && React__default.createElement(
|
|
2143
2177
|
Figure$1.Caption,
|
|
@@ -2149,7 +2183,7 @@ var Media = function Media(_ref) {
|
|
|
2149
2183
|
} else if (caption && caption !== '') {
|
|
2150
2184
|
return React__default.createElement(
|
|
2151
2185
|
'a',
|
|
2152
|
-
_extends({}, uploadDoc.downloadMedia ? {
|
|
2186
|
+
_extends$1({}, uploadDoc.downloadMedia ? {
|
|
2153
2187
|
href: uploadDoc.asset.url + '?dl='
|
|
2154
2188
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2155
2189
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2202,7 +2236,7 @@ var Video = function Video(_ref) {
|
|
|
2202
2236
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2203
2237
|
//console.log('success:', success.ref)
|
|
2204
2238
|
var player = success.ref;
|
|
2205
|
-
if (_typeof
|
|
2239
|
+
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2206
2240
|
player.ima3.settings.debug = true;
|
|
2207
2241
|
if (targeting.content_placement && targeting.document_url) {
|
|
2208
2242
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2717,17 +2751,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2717
2751
|
|
|
2718
2752
|
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; }
|
|
2719
2753
|
|
|
2720
|
-
function
|
|
2721
|
-
|
|
2722
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2723
|
-
|
|
2724
|
-
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."); }
|
|
2754
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2725
2755
|
|
|
2726
|
-
function
|
|
2756
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2727
2757
|
|
|
2728
|
-
function
|
|
2729
|
-
|
|
2730
|
-
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; }
|
|
2758
|
+
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; }
|
|
2731
2759
|
|
|
2732
2760
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2733
2761
|
|
|
@@ -2857,12 +2885,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
2857
2885
|
|
|
2858
2886
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
2859
2887
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
2860
|
-
|
|
2861
|
-
var
|
|
2862
|
-
|
|
2888
|
+
var _iteratorNormalCompletion = true;
|
|
2889
|
+
var _didIteratorError = false;
|
|
2890
|
+
var _iteratorError = undefined;
|
|
2863
2891
|
|
|
2864
2892
|
try {
|
|
2865
|
-
for (_iterator.
|
|
2893
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
2866
2894
|
var p = _step.value;
|
|
2867
2895
|
|
|
2868
2896
|
if (props$1[p]) {
|
|
@@ -2877,9 +2905,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
2877
2905
|
}
|
|
2878
2906
|
}
|
|
2879
2907
|
} catch (err) {
|
|
2880
|
-
|
|
2908
|
+
_didIteratorError = true;
|
|
2909
|
+
_iteratorError = err;
|
|
2881
2910
|
} finally {
|
|
2882
|
-
|
|
2911
|
+
try {
|
|
2912
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
2913
|
+
_iterator["return"]();
|
|
2914
|
+
}
|
|
2915
|
+
} finally {
|
|
2916
|
+
if (_didIteratorError) {
|
|
2917
|
+
throw _iteratorError;
|
|
2918
|
+
}
|
|
2919
|
+
}
|
|
2883
2920
|
}
|
|
2884
2921
|
|
|
2885
2922
|
return config;
|
|
@@ -3026,16 +3063,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3026
3063
|
|
|
3027
3064
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3028
3065
|
|
|
3029
|
-
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); }; }
|
|
3030
|
-
|
|
3031
3066
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3032
3067
|
|
|
3033
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3034
|
-
|
|
3035
|
-
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; } }
|
|
3036
|
-
|
|
3037
3068
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3038
3069
|
|
|
3070
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3071
|
+
|
|
3039
3072
|
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); }
|
|
3040
3073
|
|
|
3041
3074
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3044,12 +3077,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3044
3077
|
|
|
3045
3078
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3046
3079
|
|
|
3047
|
-
var Player =
|
|
3080
|
+
var Player =
|
|
3081
|
+
/*#__PURE__*/
|
|
3082
|
+
function (_Component) {
|
|
3048
3083
|
_inherits(Player, _Component);
|
|
3049
3084
|
|
|
3050
|
-
var _super = _createSuper(Player);
|
|
3051
|
-
|
|
3052
3085
|
function Player() {
|
|
3086
|
+
var _getPrototypeOf2;
|
|
3087
|
+
|
|
3053
3088
|
var _this;
|
|
3054
3089
|
|
|
3055
3090
|
_classCallCheck(this, Player);
|
|
@@ -3058,7 +3093,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3058
3093
|
_args[_key] = arguments[_key];
|
|
3059
3094
|
}
|
|
3060
3095
|
|
|
3061
|
-
_this =
|
|
3096
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3062
3097
|
|
|
3063
3098
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3064
3099
|
|
|
@@ -3383,7 +3418,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3383
3418
|
return null;
|
|
3384
3419
|
}
|
|
3385
3420
|
|
|
3386
|
-
return
|
|
3421
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3387
3422
|
ref: this.ref,
|
|
3388
3423
|
onReady: this.handleReady,
|
|
3389
3424
|
onPlay: this.handlePlay,
|
|
@@ -3444,16 +3479,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3444
3479
|
|
|
3445
3480
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3446
3481
|
|
|
3447
|
-
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); }; }
|
|
3448
|
-
|
|
3449
3482
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3450
3483
|
|
|
3451
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3452
|
-
|
|
3453
|
-
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; } }
|
|
3454
|
-
|
|
3455
3484
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3456
3485
|
|
|
3486
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3487
|
+
|
|
3457
3488
|
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); }
|
|
3458
3489
|
|
|
3459
3490
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3465,12 +3496,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3465
3496
|
function createSinglePlayer(activePlayer) {
|
|
3466
3497
|
var _class, _temp;
|
|
3467
3498
|
|
|
3468
|
-
return _temp = _class =
|
|
3499
|
+
return _temp = _class =
|
|
3500
|
+
/*#__PURE__*/
|
|
3501
|
+
function (_Component) {
|
|
3469
3502
|
_inherits(SinglePlayer, _Component);
|
|
3470
3503
|
|
|
3471
|
-
var _super = _createSuper(SinglePlayer);
|
|
3472
|
-
|
|
3473
3504
|
function SinglePlayer() {
|
|
3505
|
+
var _getPrototypeOf2;
|
|
3506
|
+
|
|
3474
3507
|
var _this;
|
|
3475
3508
|
|
|
3476
3509
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3479,7 +3512,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3479
3512
|
args[_key] = arguments[_key];
|
|
3480
3513
|
}
|
|
3481
3514
|
|
|
3482
|
-
_this =
|
|
3515
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3483
3516
|
|
|
3484
3517
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3485
3518
|
|
|
@@ -3547,12 +3580,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3547
3580
|
height = _this$props.height,
|
|
3548
3581
|
Wrapper = _this$props.wrapper;
|
|
3549
3582
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3550
|
-
return
|
|
3583
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3551
3584
|
style: _objectSpread({}, style, {
|
|
3552
3585
|
width: width,
|
|
3553
3586
|
height: height
|
|
3554
3587
|
})
|
|
3555
|
-
}, otherProps),
|
|
3588
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3556
3589
|
ref: this.ref,
|
|
3557
3590
|
activePlayer: activePlayer,
|
|
3558
3591
|
config: this.config
|
|
@@ -3598,31 +3631,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3598
3631
|
|
|
3599
3632
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3600
3633
|
|
|
3601
|
-
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); }; }
|
|
3602
|
-
|
|
3603
3634
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3604
3635
|
|
|
3605
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3606
|
-
|
|
3607
|
-
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; } }
|
|
3608
|
-
|
|
3609
3636
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3610
3637
|
|
|
3638
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3639
|
+
|
|
3611
3640
|
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); }
|
|
3612
3641
|
|
|
3613
3642
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3614
3643
|
|
|
3615
3644
|
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; }
|
|
3616
3645
|
|
|
3617
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3646
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3618
3647
|
|
|
3619
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
3648
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3620
3649
|
|
|
3621
|
-
function
|
|
3622
|
-
|
|
3623
|
-
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; }
|
|
3624
|
-
|
|
3625
|
-
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; }
|
|
3650
|
+
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; }
|
|
3626
3651
|
|
|
3627
3652
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3628
3653
|
|
|
@@ -3647,12 +3672,14 @@ function parsePlaylist(url) {
|
|
|
3647
3672
|
return {};
|
|
3648
3673
|
}
|
|
3649
3674
|
|
|
3650
|
-
var YouTube =
|
|
3675
|
+
var YouTube =
|
|
3676
|
+
/*#__PURE__*/
|
|
3677
|
+
function (_Component) {
|
|
3651
3678
|
_inherits(YouTube, _Component);
|
|
3652
3679
|
|
|
3653
|
-
var _super = _createSuper(YouTube);
|
|
3654
|
-
|
|
3655
3680
|
function YouTube() {
|
|
3681
|
+
var _getPrototypeOf2;
|
|
3682
|
+
|
|
3656
3683
|
var _this;
|
|
3657
3684
|
|
|
3658
3685
|
_classCallCheck(this, YouTube);
|
|
@@ -3661,7 +3688,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3661
3688
|
args[_key] = arguments[_key];
|
|
3662
3689
|
}
|
|
3663
3690
|
|
|
3664
|
-
_this =
|
|
3691
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3665
3692
|
|
|
3666
3693
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3667
3694
|
|
|
@@ -3849,9 +3876,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3849
3876
|
height: '100%',
|
|
3850
3877
|
display: display
|
|
3851
3878
|
};
|
|
3852
|
-
return
|
|
3879
|
+
return _react["default"].createElement("div", {
|
|
3853
3880
|
style: style
|
|
3854
|
-
},
|
|
3881
|
+
}, _react["default"].createElement("div", {
|
|
3855
3882
|
ref: this.ref
|
|
3856
3883
|
}));
|
|
3857
3884
|
}
|
|
@@ -3907,16 +3934,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3907
3934
|
|
|
3908
3935
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3909
3936
|
|
|
3910
|
-
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); }; }
|
|
3911
|
-
|
|
3912
3937
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3913
3938
|
|
|
3914
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3915
|
-
|
|
3916
|
-
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; } }
|
|
3917
|
-
|
|
3918
3939
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3919
3940
|
|
|
3941
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3942
|
+
|
|
3920
3943
|
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); }
|
|
3921
3944
|
|
|
3922
3945
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3925,14 +3948,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3925
3948
|
|
|
3926
3949
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
3927
3950
|
var SDK_GLOBAL = 'SC';
|
|
3928
|
-
var MATCH_URL = /(
|
|
3951
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
3929
3952
|
|
|
3930
|
-
var SoundCloud =
|
|
3953
|
+
var SoundCloud =
|
|
3954
|
+
/*#__PURE__*/
|
|
3955
|
+
function (_Component) {
|
|
3931
3956
|
_inherits(SoundCloud, _Component);
|
|
3932
3957
|
|
|
3933
|
-
var _super = _createSuper(SoundCloud);
|
|
3934
|
-
|
|
3935
3958
|
function SoundCloud() {
|
|
3959
|
+
var _getPrototypeOf2;
|
|
3960
|
+
|
|
3936
3961
|
var _this;
|
|
3937
3962
|
|
|
3938
3963
|
_classCallCheck(this, SoundCloud);
|
|
@@ -3941,7 +3966,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
3941
3966
|
args[_key] = arguments[_key];
|
|
3942
3967
|
}
|
|
3943
3968
|
|
|
3944
|
-
_this =
|
|
3969
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3945
3970
|
|
|
3946
3971
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3947
3972
|
|
|
@@ -4062,7 +4087,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4062
4087
|
height: '100%',
|
|
4063
4088
|
display: display
|
|
4064
4089
|
};
|
|
4065
|
-
return
|
|
4090
|
+
return _react["default"].createElement("iframe", {
|
|
4066
4091
|
ref: this.ref,
|
|
4067
4092
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4068
4093
|
style: style,
|
|
@@ -4124,16 +4149,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4124
4149
|
|
|
4125
4150
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4126
4151
|
|
|
4127
|
-
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); }; }
|
|
4128
|
-
|
|
4129
4152
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4130
4153
|
|
|
4131
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4132
|
-
|
|
4133
|
-
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; } }
|
|
4134
|
-
|
|
4135
4154
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4136
4155
|
|
|
4156
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4157
|
+
|
|
4137
4158
|
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); }
|
|
4138
4159
|
|
|
4139
4160
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4145,12 +4166,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4145
4166
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4146
4167
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4147
4168
|
|
|
4148
|
-
var Vimeo =
|
|
4169
|
+
var Vimeo =
|
|
4170
|
+
/*#__PURE__*/
|
|
4171
|
+
function (_Component) {
|
|
4149
4172
|
_inherits(Vimeo, _Component);
|
|
4150
4173
|
|
|
4151
|
-
var _super = _createSuper(Vimeo);
|
|
4152
|
-
|
|
4153
4174
|
function Vimeo() {
|
|
4175
|
+
var _getPrototypeOf2;
|
|
4176
|
+
|
|
4154
4177
|
var _this;
|
|
4155
4178
|
|
|
4156
4179
|
_classCallCheck(this, Vimeo);
|
|
@@ -4159,7 +4182,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4159
4182
|
args[_key] = arguments[_key];
|
|
4160
4183
|
}
|
|
4161
4184
|
|
|
4162
|
-
_this =
|
|
4185
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4163
4186
|
|
|
4164
4187
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4165
4188
|
|
|
@@ -4316,7 +4339,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4316
4339
|
overflow: 'hidden',
|
|
4317
4340
|
display: display
|
|
4318
4341
|
};
|
|
4319
|
-
return
|
|
4342
|
+
return _react["default"].createElement("div", {
|
|
4320
4343
|
key: this.props.url,
|
|
4321
4344
|
ref: this.ref,
|
|
4322
4345
|
style: style
|
|
@@ -4376,16 +4399,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4376
4399
|
|
|
4377
4400
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4378
4401
|
|
|
4379
|
-
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); }; }
|
|
4380
|
-
|
|
4381
4402
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4382
4403
|
|
|
4383
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4384
|
-
|
|
4385
|
-
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; } }
|
|
4386
|
-
|
|
4387
4404
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4388
4405
|
|
|
4406
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4407
|
+
|
|
4389
4408
|
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); }
|
|
4390
4409
|
|
|
4391
4410
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4398,12 +4417,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4398
4417
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4399
4418
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4400
4419
|
|
|
4401
|
-
var Facebook =
|
|
4420
|
+
var Facebook =
|
|
4421
|
+
/*#__PURE__*/
|
|
4422
|
+
function (_Component) {
|
|
4402
4423
|
_inherits(Facebook, _Component);
|
|
4403
4424
|
|
|
4404
|
-
var _super = _createSuper(Facebook);
|
|
4405
|
-
|
|
4406
4425
|
function Facebook() {
|
|
4426
|
+
var _getPrototypeOf2;
|
|
4427
|
+
|
|
4407
4428
|
var _this;
|
|
4408
4429
|
|
|
4409
4430
|
_classCallCheck(this, Facebook);
|
|
@@ -4412,7 +4433,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4412
4433
|
args[_key] = arguments[_key];
|
|
4413
4434
|
}
|
|
4414
4435
|
|
|
4415
|
-
_this =
|
|
4436
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4416
4437
|
|
|
4417
4438
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4418
4439
|
|
|
@@ -4528,7 +4549,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4528
4549
|
width: '100%',
|
|
4529
4550
|
height: '100%'
|
|
4530
4551
|
};
|
|
4531
|
-
return
|
|
4552
|
+
return _react["default"].createElement("div", {
|
|
4532
4553
|
style: style,
|
|
4533
4554
|
id: this.playerID,
|
|
4534
4555
|
className: "fb-video",
|
|
@@ -4588,16 +4609,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4588
4609
|
|
|
4589
4610
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4590
4611
|
|
|
4591
|
-
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); }; }
|
|
4592
|
-
|
|
4593
4612
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4594
4613
|
|
|
4595
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4596
|
-
|
|
4597
|
-
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; } }
|
|
4598
|
-
|
|
4599
4614
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4600
4615
|
|
|
4616
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4617
|
+
|
|
4601
4618
|
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); }
|
|
4602
4619
|
|
|
4603
4620
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4608,12 +4625,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4608
4625
|
var SDK_GLOBAL = 'playerjs';
|
|
4609
4626
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4610
4627
|
|
|
4611
|
-
var Streamable =
|
|
4628
|
+
var Streamable =
|
|
4629
|
+
/*#__PURE__*/
|
|
4630
|
+
function (_Component) {
|
|
4612
4631
|
_inherits(Streamable, _Component);
|
|
4613
4632
|
|
|
4614
|
-
var _super = _createSuper(Streamable);
|
|
4615
|
-
|
|
4616
4633
|
function Streamable() {
|
|
4634
|
+
var _getPrototypeOf2;
|
|
4635
|
+
|
|
4617
4636
|
var _this;
|
|
4618
4637
|
|
|
4619
4638
|
_classCallCheck(this, Streamable);
|
|
@@ -4622,7 +4641,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4622
4641
|
args[_key] = arguments[_key];
|
|
4623
4642
|
}
|
|
4624
4643
|
|
|
4625
|
-
_this =
|
|
4644
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4626
4645
|
|
|
4627
4646
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4628
4647
|
|
|
@@ -4742,7 +4761,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4742
4761
|
width: '100%',
|
|
4743
4762
|
height: '100%'
|
|
4744
4763
|
};
|
|
4745
|
-
return
|
|
4764
|
+
return _react["default"].createElement("iframe", {
|
|
4746
4765
|
ref: this.ref,
|
|
4747
4766
|
src: "https://streamable.com/o/".concat(id),
|
|
4748
4767
|
frameBorder: "0",
|
|
@@ -4803,16 +4822,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4803
4822
|
|
|
4804
4823
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4805
4824
|
|
|
4806
|
-
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); }; }
|
|
4807
|
-
|
|
4808
4825
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4809
4826
|
|
|
4810
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4811
|
-
|
|
4812
|
-
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; } }
|
|
4813
|
-
|
|
4814
4827
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4815
4828
|
|
|
4829
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4830
|
+
|
|
4816
4831
|
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); }
|
|
4817
4832
|
|
|
4818
4833
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4823,48 +4838,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4823
4838
|
var SDK_GLOBAL = 'Wistia';
|
|
4824
4839
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4825
4840
|
|
|
4826
|
-
var Wistia =
|
|
4841
|
+
var Wistia =
|
|
4842
|
+
/*#__PURE__*/
|
|
4843
|
+
function (_Component) {
|
|
4827
4844
|
_inherits(Wistia, _Component);
|
|
4828
4845
|
|
|
4829
|
-
var _super = _createSuper(Wistia);
|
|
4830
|
-
|
|
4831
4846
|
function Wistia() {
|
|
4847
|
+
var _getPrototypeOf2;
|
|
4848
|
+
|
|
4832
4849
|
var _this;
|
|
4833
4850
|
|
|
4834
4851
|
_classCallCheck(this, Wistia);
|
|
4835
4852
|
|
|
4836
|
-
for (var _len = arguments.length,
|
|
4837
|
-
|
|
4853
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4854
|
+
args[_key] = arguments[_key];
|
|
4838
4855
|
}
|
|
4839
4856
|
|
|
4840
|
-
_this =
|
|
4857
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4841
4858
|
|
|
4842
4859
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4843
4860
|
|
|
4844
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4845
|
-
var _this$props;
|
|
4846
|
-
|
|
4847
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4848
|
-
});
|
|
4849
|
-
|
|
4850
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4851
|
-
var _this$props2;
|
|
4852
|
-
|
|
4853
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4854
|
-
});
|
|
4855
|
-
|
|
4856
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
4857
|
-
var _this$props3;
|
|
4858
|
-
|
|
4859
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
4860
|
-
});
|
|
4861
|
-
|
|
4862
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
4863
|
-
var _this$props4;
|
|
4864
|
-
|
|
4865
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
4866
|
-
});
|
|
4867
|
-
|
|
4868
4861
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
4869
4862
|
_this.callPlayer('mute');
|
|
4870
4863
|
});
|
|
@@ -4886,13 +4879,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4886
4879
|
value: function load(url) {
|
|
4887
4880
|
var _this2 = this;
|
|
4888
4881
|
|
|
4889
|
-
var _this$
|
|
4890
|
-
playing = _this$
|
|
4891
|
-
muted = _this$
|
|
4892
|
-
controls = _this$
|
|
4893
|
-
_onReady = _this$
|
|
4894
|
-
|
|
4895
|
-
|
|
4882
|
+
var _this$props = this.props,
|
|
4883
|
+
playing = _this$props.playing,
|
|
4884
|
+
muted = _this$props.muted,
|
|
4885
|
+
controls = _this$props.controls,
|
|
4886
|
+
_onReady = _this$props.onReady,
|
|
4887
|
+
onPlay = _this$props.onPlay,
|
|
4888
|
+
onPause = _this$props.onPause,
|
|
4889
|
+
onSeek = _this$props.onSeek,
|
|
4890
|
+
onEnded = _this$props.onEnded,
|
|
4891
|
+
config = _this$props.config,
|
|
4892
|
+
onError = _this$props.onError;
|
|
4896
4893
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
4897
4894
|
window._wq = window._wq || [];
|
|
4898
4895
|
|
|
@@ -4909,28 +4906,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4909
4906
|
|
|
4910
4907
|
_this2.unbind();
|
|
4911
4908
|
|
|
4912
|
-
_this2.player.bind('play',
|
|
4909
|
+
_this2.player.bind('play', onPlay);
|
|
4913
4910
|
|
|
4914
|
-
_this2.player.bind('pause',
|
|
4911
|
+
_this2.player.bind('pause', onPause);
|
|
4915
4912
|
|
|
4916
|
-
_this2.player.bind('seek',
|
|
4913
|
+
_this2.player.bind('seek', onSeek);
|
|
4917
4914
|
|
|
4918
|
-
_this2.player.bind('end',
|
|
4915
|
+
_this2.player.bind('end', onEnded);
|
|
4919
4916
|
|
|
4920
4917
|
_onReady();
|
|
4921
4918
|
}
|
|
4922
4919
|
});
|
|
4923
4920
|
}, onError);
|
|
4924
4921
|
}
|
|
4925
|
-
}, {
|
|
4926
|
-
key: "unbind",
|
|
4927
|
-
value: function unbind() {
|
|
4928
|
-
this.player.unbind('play', this.onPlay);
|
|
4929
|
-
this.player.unbind('pause', this.onPause);
|
|
4930
|
-
this.player.unbind('seek', this.onSeek);
|
|
4931
|
-
this.player.unbind('end', this.onEnded);
|
|
4932
|
-
} // Proxy methods to prevent listener leaks
|
|
4933
|
-
|
|
4934
4922
|
}, {
|
|
4935
4923
|
key: "play",
|
|
4936
4924
|
value: function play() {
|
|
@@ -4941,6 +4929,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4941
4929
|
value: function pause() {
|
|
4942
4930
|
this.callPlayer('pause');
|
|
4943
4931
|
}
|
|
4932
|
+
}, {
|
|
4933
|
+
key: "unbind",
|
|
4934
|
+
value: function unbind() {
|
|
4935
|
+
var _this$props2 = this.props,
|
|
4936
|
+
onPlay = _this$props2.onPlay,
|
|
4937
|
+
onPause = _this$props2.onPause,
|
|
4938
|
+
onSeek = _this$props2.onSeek,
|
|
4939
|
+
onEnded = _this$props2.onEnded;
|
|
4940
|
+
this.player.unbind('play', onPlay);
|
|
4941
|
+
this.player.unbind('pause', onPause);
|
|
4942
|
+
this.player.unbind('seek', onSeek);
|
|
4943
|
+
this.player.unbind('end', onEnded);
|
|
4944
|
+
}
|
|
4944
4945
|
}, {
|
|
4945
4946
|
key: "stop",
|
|
4946
4947
|
value: function stop() {
|
|
@@ -4986,7 +4987,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4986
4987
|
width: '100%',
|
|
4987
4988
|
height: '100%'
|
|
4988
4989
|
};
|
|
4989
|
-
return
|
|
4990
|
+
return _react["default"].createElement("div", {
|
|
4990
4991
|
key: id,
|
|
4991
4992
|
className: className,
|
|
4992
4993
|
style: style
|
|
@@ -5046,16 +5047,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5046
5047
|
|
|
5047
5048
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5048
5049
|
|
|
5049
|
-
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); }; }
|
|
5050
|
-
|
|
5051
5050
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5052
5051
|
|
|
5053
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5054
|
-
|
|
5055
|
-
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; } }
|
|
5056
|
-
|
|
5057
5052
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5058
5053
|
|
|
5054
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5055
|
+
|
|
5059
5056
|
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); }
|
|
5060
5057
|
|
|
5061
5058
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5068,12 +5065,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5068
5065
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5069
5066
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5070
5067
|
|
|
5071
|
-
var Twitch =
|
|
5068
|
+
var Twitch =
|
|
5069
|
+
/*#__PURE__*/
|
|
5070
|
+
function (_Component) {
|
|
5072
5071
|
_inherits(Twitch, _Component);
|
|
5073
5072
|
|
|
5074
|
-
var _super = _createSuper(Twitch);
|
|
5075
|
-
|
|
5076
5073
|
function Twitch() {
|
|
5074
|
+
var _getPrototypeOf2;
|
|
5075
|
+
|
|
5077
5076
|
var _this;
|
|
5078
5077
|
|
|
5079
5078
|
_classCallCheck(this, Twitch);
|
|
@@ -5082,7 +5081,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5082
5081
|
args[_key] = arguments[_key];
|
|
5083
5082
|
}
|
|
5084
5083
|
|
|
5085
|
-
_this =
|
|
5084
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5086
5085
|
|
|
5087
5086
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5088
5087
|
|
|
@@ -5203,7 +5202,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5203
5202
|
width: '100%',
|
|
5204
5203
|
height: '100%'
|
|
5205
5204
|
};
|
|
5206
|
-
return
|
|
5205
|
+
return _react["default"].createElement("div", {
|
|
5207
5206
|
style: style,
|
|
5208
5207
|
id: this.playerID
|
|
5209
5208
|
});
|
|
@@ -5256,15 +5255,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5256
5255
|
|
|
5257
5256
|
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; }
|
|
5258
5257
|
|
|
5259
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5260
|
-
|
|
5261
|
-
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."); }
|
|
5258
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5262
5259
|
|
|
5263
|
-
function
|
|
5260
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5264
5261
|
|
|
5265
|
-
function
|
|
5266
|
-
|
|
5267
|
-
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; }
|
|
5262
|
+
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; }
|
|
5268
5263
|
|
|
5269
5264
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5270
5265
|
|
|
@@ -5274,16 +5269,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5274
5269
|
|
|
5275
5270
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5276
5271
|
|
|
5277
|
-
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); }; }
|
|
5278
|
-
|
|
5279
5272
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5280
5273
|
|
|
5281
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5282
|
-
|
|
5283
|
-
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; } }
|
|
5284
|
-
|
|
5285
5274
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5286
5275
|
|
|
5276
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5277
|
+
|
|
5287
5278
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
5288
5279
|
|
|
5289
5280
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5295,12 +5286,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5295
5286
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5296
5287
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5297
5288
|
|
|
5298
|
-
var DailyMotion =
|
|
5289
|
+
var DailyMotion =
|
|
5290
|
+
/*#__PURE__*/
|
|
5291
|
+
function (_Component) {
|
|
5299
5292
|
_inherits(DailyMotion, _Component);
|
|
5300
5293
|
|
|
5301
|
-
var _super = _createSuper(DailyMotion);
|
|
5302
|
-
|
|
5303
5294
|
function DailyMotion() {
|
|
5295
|
+
var _getPrototypeOf2;
|
|
5296
|
+
|
|
5304
5297
|
var _this;
|
|
5305
5298
|
|
|
5306
5299
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5309,7 +5302,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5309
5302
|
args[_key] = arguments[_key];
|
|
5310
5303
|
}
|
|
5311
5304
|
|
|
5312
|
-
_this =
|
|
5305
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5313
5306
|
|
|
5314
5307
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5315
5308
|
|
|
@@ -5438,9 +5431,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5438
5431
|
height: '100%',
|
|
5439
5432
|
display: display
|
|
5440
5433
|
};
|
|
5441
|
-
return
|
|
5434
|
+
return _react["default"].createElement("div", {
|
|
5442
5435
|
style: style
|
|
5443
|
-
},
|
|
5436
|
+
}, _react["default"].createElement("div", {
|
|
5444
5437
|
ref: this.ref
|
|
5445
5438
|
}));
|
|
5446
5439
|
}
|
|
@@ -5498,16 +5491,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5498
5491
|
|
|
5499
5492
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5500
5493
|
|
|
5501
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5502
|
-
|
|
5503
5494
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5504
5495
|
|
|
5505
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5506
|
-
|
|
5507
|
-
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; } }
|
|
5508
|
-
|
|
5509
5496
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5510
5497
|
|
|
5498
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5499
|
+
|
|
5511
5500
|
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); }
|
|
5512
5501
|
|
|
5513
5502
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5518,12 +5507,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5518
5507
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5519
5508
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5520
5509
|
|
|
5521
|
-
var Mixcloud =
|
|
5510
|
+
var Mixcloud =
|
|
5511
|
+
/*#__PURE__*/
|
|
5512
|
+
function (_Component) {
|
|
5522
5513
|
_inherits(Mixcloud, _Component);
|
|
5523
5514
|
|
|
5524
|
-
var _super = _createSuper(Mixcloud);
|
|
5525
|
-
|
|
5526
5515
|
function Mixcloud() {
|
|
5516
|
+
var _getPrototypeOf2;
|
|
5517
|
+
|
|
5527
5518
|
var _this;
|
|
5528
5519
|
|
|
5529
5520
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5532,7 +5523,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5532
5523
|
args[_key] = arguments[_key];
|
|
5533
5524
|
}
|
|
5534
5525
|
|
|
5535
|
-
_this =
|
|
5526
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5536
5527
|
|
|
5537
5528
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5538
5529
|
|
|
@@ -5635,7 +5626,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5635
5626
|
})); // We have to give the iframe a key here to prevent a
|
|
5636
5627
|
// weird dialog appearing when loading a new track
|
|
5637
5628
|
|
|
5638
|
-
return
|
|
5629
|
+
return _react["default"].createElement("iframe", {
|
|
5639
5630
|
key: id,
|
|
5640
5631
|
ref: this.ref,
|
|
5641
5632
|
style: style,
|
|
@@ -5695,33 +5686,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5695
5686
|
|
|
5696
5687
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5697
5688
|
|
|
5698
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5699
|
-
|
|
5700
5689
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5701
5690
|
|
|
5702
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5703
|
-
|
|
5704
|
-
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; } }
|
|
5705
|
-
|
|
5706
5691
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5707
5692
|
|
|
5693
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5694
|
+
|
|
5708
5695
|
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); }
|
|
5709
5696
|
|
|
5710
5697
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5711
5698
|
|
|
5712
5699
|
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; }
|
|
5713
5700
|
|
|
5714
|
-
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; } } }; }
|
|
5715
|
-
|
|
5716
|
-
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); }
|
|
5717
|
-
|
|
5718
|
-
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; }
|
|
5719
|
-
|
|
5720
5701
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5721
5702
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5722
5703
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5723
5704
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5724
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
5705
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5725
5706
|
var HLS_GLOBAL = 'Hls';
|
|
5726
5707
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5727
5708
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5730,11 +5711,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5730
5711
|
|
|
5731
5712
|
function canPlay(url) {
|
|
5732
5713
|
if (url instanceof Array) {
|
|
5733
|
-
var
|
|
5734
|
-
|
|
5714
|
+
var _iteratorNormalCompletion = true;
|
|
5715
|
+
var _didIteratorError = false;
|
|
5716
|
+
var _iteratorError = undefined;
|
|
5735
5717
|
|
|
5736
5718
|
try {
|
|
5737
|
-
for (_iterator.
|
|
5719
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5738
5720
|
var item = _step.value;
|
|
5739
5721
|
|
|
5740
5722
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5746,9 +5728,18 @@ function canPlay(url) {
|
|
|
5746
5728
|
}
|
|
5747
5729
|
}
|
|
5748
5730
|
} catch (err) {
|
|
5749
|
-
|
|
5731
|
+
_didIteratorError = true;
|
|
5732
|
+
_iteratorError = err;
|
|
5750
5733
|
} finally {
|
|
5751
|
-
|
|
5734
|
+
try {
|
|
5735
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5736
|
+
_iterator["return"]();
|
|
5737
|
+
}
|
|
5738
|
+
} finally {
|
|
5739
|
+
if (_didIteratorError) {
|
|
5740
|
+
throw _iteratorError;
|
|
5741
|
+
}
|
|
5742
|
+
}
|
|
5752
5743
|
}
|
|
5753
5744
|
|
|
5754
5745
|
return false;
|
|
@@ -5772,12 +5763,14 @@ function canEnablePIP(url) {
|
|
|
5772
5763
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5773
5764
|
}
|
|
5774
5765
|
|
|
5775
|
-
var FilePlayer =
|
|
5766
|
+
var FilePlayer =
|
|
5767
|
+
/*#__PURE__*/
|
|
5768
|
+
function (_Component) {
|
|
5776
5769
|
_inherits(FilePlayer, _Component);
|
|
5777
5770
|
|
|
5778
|
-
var _super = _createSuper(FilePlayer);
|
|
5779
|
-
|
|
5780
5771
|
function FilePlayer() {
|
|
5772
|
+
var _getPrototypeOf2;
|
|
5773
|
+
|
|
5781
5774
|
var _this;
|
|
5782
5775
|
|
|
5783
5776
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5786,7 +5779,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5786
5779
|
_args[_key] = arguments[_key];
|
|
5787
5780
|
}
|
|
5788
5781
|
|
|
5789
|
-
_this =
|
|
5782
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5790
5783
|
|
|
5791
5784
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5792
5785
|
var _this$props;
|
|
@@ -5873,19 +5866,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5873
5866
|
|
|
5874
5867
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
5875
5868
|
if (typeof source === 'string') {
|
|
5876
|
-
return
|
|
5869
|
+
return _react["default"].createElement("source", {
|
|
5877
5870
|
key: index,
|
|
5878
5871
|
src: source
|
|
5879
5872
|
});
|
|
5880
5873
|
}
|
|
5881
5874
|
|
|
5882
|
-
return
|
|
5875
|
+
return _react["default"].createElement("source", _extends({
|
|
5883
5876
|
key: index
|
|
5884
5877
|
}, source));
|
|
5885
5878
|
});
|
|
5886
5879
|
|
|
5887
5880
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
5888
|
-
return
|
|
5881
|
+
return _react["default"].createElement("track", _extends({
|
|
5889
5882
|
key: index
|
|
5890
5883
|
}, track));
|
|
5891
5884
|
});
|
|
@@ -5923,10 +5916,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5923
5916
|
key: "componentWillUnmount",
|
|
5924
5917
|
value: function componentWillUnmount() {
|
|
5925
5918
|
this.removeListeners(this.player);
|
|
5926
|
-
|
|
5927
|
-
if (this.hls) {
|
|
5928
|
-
this.hls.destroy();
|
|
5929
|
-
}
|
|
5930
5919
|
}
|
|
5931
5920
|
}, {
|
|
5932
5921
|
key: "addListeners",
|
|
@@ -6057,6 +6046,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6057
6046
|
value: function stop() {
|
|
6058
6047
|
this.player.removeAttribute('src');
|
|
6059
6048
|
|
|
6049
|
+
if (this.hls) {
|
|
6050
|
+
this.hls.destroy();
|
|
6051
|
+
}
|
|
6052
|
+
|
|
6060
6053
|
if (this.dash) {
|
|
6061
6054
|
this.dash.reset();
|
|
6062
6055
|
}
|
|
@@ -6168,7 +6161,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6168
6161
|
width: width === 'auto' ? width : '100%',
|
|
6169
6162
|
height: height === 'auto' ? height : '100%'
|
|
6170
6163
|
};
|
|
6171
|
-
return
|
|
6164
|
+
return _react["default"].createElement(Element, _extends({
|
|
6172
6165
|
ref: this.ref,
|
|
6173
6166
|
src: this.getSource(url),
|
|
6174
6167
|
style: style,
|
|
@@ -6258,16 +6251,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6258
6251
|
|
|
6259
6252
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6260
6253
|
|
|
6261
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6262
|
-
|
|
6263
6254
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6264
6255
|
|
|
6265
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6266
|
-
|
|
6267
|
-
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; } }
|
|
6268
|
-
|
|
6269
6256
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6270
6257
|
|
|
6258
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6259
|
+
|
|
6271
6260
|
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); }
|
|
6272
6261
|
|
|
6273
6262
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6276,12 +6265,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6276
6265
|
|
|
6277
6266
|
var ICON_SIZE = '64px';
|
|
6278
6267
|
|
|
6279
|
-
var Preview =
|
|
6268
|
+
var Preview =
|
|
6269
|
+
/*#__PURE__*/
|
|
6270
|
+
function (_Component) {
|
|
6280
6271
|
_inherits(Preview, _Component);
|
|
6281
6272
|
|
|
6282
|
-
var _super = _createSuper(Preview);
|
|
6283
|
-
|
|
6284
6273
|
function Preview() {
|
|
6274
|
+
var _getPrototypeOf2;
|
|
6275
|
+
|
|
6285
6276
|
var _this;
|
|
6286
6277
|
|
|
6287
6278
|
_classCallCheck(this, Preview);
|
|
@@ -6290,7 +6281,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6290
6281
|
args[_key] = arguments[_key];
|
|
6291
6282
|
}
|
|
6292
6283
|
|
|
6293
|
-
_this =
|
|
6284
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6294
6285
|
|
|
6295
6286
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6296
6287
|
|
|
@@ -6388,15 +6379,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6388
6379
|
}
|
|
6389
6380
|
};
|
|
6390
6381
|
|
|
6391
|
-
var defaultPlayIcon =
|
|
6382
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6392
6383
|
style: styles.shadow,
|
|
6393
6384
|
className: "react-player__shadow"
|
|
6394
|
-
},
|
|
6385
|
+
}, _react["default"].createElement("div", {
|
|
6395
6386
|
style: styles.playIcon,
|
|
6396
6387
|
className: "react-player__play-icon"
|
|
6397
6388
|
}));
|
|
6398
6389
|
|
|
6399
|
-
return
|
|
6390
|
+
return _react["default"].createElement("div", {
|
|
6400
6391
|
style: styles.preview,
|
|
6401
6392
|
className: "react-player__preview",
|
|
6402
6393
|
onClick: onClick
|
|
@@ -6433,12 +6424,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6433
6424
|
|
|
6434
6425
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6435
6426
|
|
|
6436
|
-
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; } } }; }
|
|
6437
|
-
|
|
6438
|
-
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); }
|
|
6439
|
-
|
|
6440
|
-
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; }
|
|
6441
|
-
|
|
6442
6427
|
var PRELOAD_PLAYERS = [{
|
|
6443
6428
|
Player: YouTube_1.YouTube,
|
|
6444
6429
|
configKey: 'youtube',
|
|
@@ -6459,16 +6444,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6459
6444
|
|
|
6460
6445
|
function renderPreloadPlayers(url, controls, config) {
|
|
6461
6446
|
var players = [];
|
|
6462
|
-
|
|
6463
|
-
var
|
|
6464
|
-
|
|
6447
|
+
var _iteratorNormalCompletion = true;
|
|
6448
|
+
var _didIteratorError = false;
|
|
6449
|
+
var _iteratorError = undefined;
|
|
6465
6450
|
|
|
6466
6451
|
try {
|
|
6467
|
-
for (_iterator.
|
|
6452
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6468
6453
|
var player = _step.value;
|
|
6469
6454
|
|
|
6470
6455
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6471
|
-
players.push(
|
|
6456
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6472
6457
|
key: player.Player.displayName,
|
|
6473
6458
|
activePlayer: player.Player,
|
|
6474
6459
|
url: player.url,
|
|
@@ -6480,9 +6465,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6480
6465
|
}
|
|
6481
6466
|
}
|
|
6482
6467
|
} catch (err) {
|
|
6483
|
-
|
|
6468
|
+
_didIteratorError = true;
|
|
6469
|
+
_iteratorError = err;
|
|
6484
6470
|
} finally {
|
|
6485
|
-
|
|
6471
|
+
try {
|
|
6472
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6473
|
+
_iterator["return"]();
|
|
6474
|
+
}
|
|
6475
|
+
} finally {
|
|
6476
|
+
if (_didIteratorError) {
|
|
6477
|
+
throw _iteratorError;
|
|
6478
|
+
}
|
|
6479
|
+
}
|
|
6486
6480
|
}
|
|
6487
6481
|
|
|
6488
6482
|
return players;
|
|
@@ -6606,17 +6600,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6606
6600
|
|
|
6607
6601
|
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); }
|
|
6608
6602
|
|
|
6609
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6610
|
-
|
|
6611
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
6612
|
-
|
|
6613
|
-
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); }
|
|
6603
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6614
6604
|
|
|
6615
|
-
function
|
|
6605
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6616
6606
|
|
|
6617
|
-
function
|
|
6607
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6618
6608
|
|
|
6619
|
-
function
|
|
6609
|
+
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; } }
|
|
6620
6610
|
|
|
6621
6611
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6622
6612
|
|
|
@@ -6624,16 +6614,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6624
6614
|
|
|
6625
6615
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6626
6616
|
|
|
6627
|
-
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); }; }
|
|
6628
|
-
|
|
6629
6617
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6630
6618
|
|
|
6631
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6632
|
-
|
|
6633
|
-
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; } }
|
|
6634
|
-
|
|
6635
6619
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6636
6620
|
|
|
6621
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6622
|
+
|
|
6637
6623
|
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); }
|
|
6638
6624
|
|
|
6639
6625
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6643,12 +6629,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6643
6629
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6644
6630
|
var customPlayers = [];
|
|
6645
6631
|
|
|
6646
|
-
var ReactPlayer =
|
|
6632
|
+
var ReactPlayer =
|
|
6633
|
+
/*#__PURE__*/
|
|
6634
|
+
function (_Component) {
|
|
6647
6635
|
_inherits(ReactPlayer, _Component);
|
|
6648
6636
|
|
|
6649
|
-
var _super = _createSuper(ReactPlayer);
|
|
6650
|
-
|
|
6651
6637
|
function ReactPlayer() {
|
|
6638
|
+
var _getPrototypeOf2;
|
|
6639
|
+
|
|
6652
6640
|
var _this;
|
|
6653
6641
|
|
|
6654
6642
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6657,7 +6645,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6657
6645
|
args[_key] = arguments[_key];
|
|
6658
6646
|
}
|
|
6659
6647
|
|
|
6660
|
-
_this =
|
|
6648
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6661
6649
|
|
|
6662
6650
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6663
6651
|
|
|
@@ -6768,7 +6756,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6768
6756
|
key: "renderActivePlayer",
|
|
6769
6757
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6770
6758
|
if (!url) return null;
|
|
6771
|
-
return
|
|
6759
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6772
6760
|
key: activePlayer.displayName,
|
|
6773
6761
|
ref: this.activePlayerRef,
|
|
6774
6762
|
config: this.config,
|
|
@@ -6805,14 +6793,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6805
6793
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6806
6794
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6807
6795
|
|
|
6808
|
-
var preview =
|
|
6796
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6809
6797
|
url: url,
|
|
6810
6798
|
light: light,
|
|
6811
6799
|
playIcon: playIcon,
|
|
6812
6800
|
onClick: this.handleClickPreview
|
|
6813
6801
|
});
|
|
6814
6802
|
|
|
6815
|
-
return
|
|
6803
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6816
6804
|
ref: this.wrapperRef,
|
|
6817
6805
|
style: _objectSpread({}, style, {
|
|
6818
6806
|
width: width,
|
|
@@ -7369,7 +7357,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7369
7357
|
nodes.videos[series - 1].intro
|
|
7370
7358
|
)
|
|
7371
7359
|
),
|
|
7372
|
-
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()))
|
|
7360
|
+
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()))
|
|
7373
7361
|
),
|
|
7374
7362
|
React__default.createElement(
|
|
7375
7363
|
'style',
|
|
@@ -7497,7 +7485,7 @@ var Poll = function Poll(_ref) {
|
|
|
7497
7485
|
);
|
|
7498
7486
|
};
|
|
7499
7487
|
|
|
7500
|
-
var numberOfPaginations =
|
|
7488
|
+
var numberOfPaginations = main_35 ? 4 : 10;
|
|
7501
7489
|
|
|
7502
7490
|
var Quiz = function Quiz(_ref) {
|
|
7503
7491
|
var quizzes = _ref.quizzes,
|
|
@@ -7610,7 +7598,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
7610
7598
|
var renderPagination = function renderPagination() {
|
|
7611
7599
|
return React__default.createElement(
|
|
7612
7600
|
Pagination,
|
|
7613
|
-
{ className: 'p-0 m-0', size:
|
|
7601
|
+
{ className: 'p-0 m-0', size: main_35 && 'sm' },
|
|
7614
7602
|
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7615
7603
|
return changePage('first');
|
|
7616
7604
|
}, disabled: currentPage === 1 }),
|
|
@@ -7844,7 +7832,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
7844
7832
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
7845
7833
|
React__default.createElement(
|
|
7846
7834
|
'a',
|
|
7847
|
-
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
7835
|
+
_extends$1({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
7848
7836
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
7849
7837
|
React__default.createElement(
|
|
7850
7838
|
'div',
|
|
@@ -8030,7 +8018,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8030
8018
|
var refArray = useRef([]);
|
|
8031
8019
|
var adRefArray = useRef([]);
|
|
8032
8020
|
|
|
8033
|
-
var _ref2 =
|
|
8021
|
+
var _ref2 = main_36 ? useState(100) : useState(-25),
|
|
8034
8022
|
_ref3 = _slicedToArray(_ref2, 2),
|
|
8035
8023
|
NavoffsetTop = _ref3[0],
|
|
8036
8024
|
setNavoffsetTop = _ref3[1];
|
|
@@ -8129,7 +8117,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8129
8117
|
|
|
8130
8118
|
useEffect(function () {
|
|
8131
8119
|
try {
|
|
8132
|
-
if (
|
|
8120
|
+
if (main_36) {
|
|
8133
8121
|
setNavoffsetTop(document.getElementById('navbar-ham').offsetHeight - 15);
|
|
8134
8122
|
}
|
|
8135
8123
|
} catch (e) {}
|
|
@@ -8154,7 +8142,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8154
8142
|
|
|
8155
8143
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8156
8144
|
if (biography) {
|
|
8157
|
-
return React__default.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8145
|
+
return React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8158
8146
|
}
|
|
8159
8147
|
};
|
|
8160
8148
|
|
|
@@ -8213,7 +8201,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8213
8201
|
|
|
8214
8202
|
useEffect(function () {
|
|
8215
8203
|
if (!firstLoad) {
|
|
8216
|
-
if (
|
|
8204
|
+
if (main_36) {
|
|
8217
8205
|
grabLoadedAds();
|
|
8218
8206
|
} else {
|
|
8219
8207
|
scrollToArticle();
|
|
@@ -8237,7 +8225,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8237
8225
|
//const activeArticle = path
|
|
8238
8226
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8239
8227
|
|
|
8240
|
-
if (!
|
|
8228
|
+
if (!main_36) {
|
|
8241
8229
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8242
8230
|
if (window.googletag && googletag.pubadsReady) {
|
|
8243
8231
|
lib_3.refresh();
|
|
@@ -8245,7 +8233,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8245
8233
|
});
|
|
8246
8234
|
}
|
|
8247
8235
|
//Refresh leaderboard ad on mobile
|
|
8248
|
-
if (
|
|
8236
|
+
if (main_36) {
|
|
8249
8237
|
var leaderboardSlotId = '';
|
|
8250
8238
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8251
8239
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8277,7 +8265,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8277
8265
|
React__default.createElement(
|
|
8278
8266
|
'div',
|
|
8279
8267
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8280
|
-
|
|
8268
|
+
main_36 && Ads.map(function (ad, index) {
|
|
8281
8269
|
if (index === 0) {
|
|
8282
8270
|
return React__default.createElement(
|
|
8283
8271
|
'div',
|
|
@@ -8365,7 +8353,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8365
8353
|
React__default.createElement(
|
|
8366
8354
|
'div',
|
|
8367
8355
|
{ className: 'mt-2 mb-2' },
|
|
8368
|
-
React__default.createElement(BlockContent, _extends({
|
|
8356
|
+
React__default.createElement(BlockContent, _extends$1({
|
|
8369
8357
|
serializers: getSerializers,
|
|
8370
8358
|
videoAccountIDs: accountIDs,
|
|
8371
8359
|
blocks: article.text,
|
|
@@ -8392,7 +8380,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8392
8380
|
React__default.createElement(
|
|
8393
8381
|
'div',
|
|
8394
8382
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8395
|
-
|
|
8383
|
+
main_36 && nodes.articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8396
8384
|
if (innerIndex === 0) {
|
|
8397
8385
|
return React__default.createElement(
|
|
8398
8386
|
'div',
|
|
@@ -8644,7 +8632,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
8644
8632
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
8645
8633
|
image.link ? React__default.createElement(
|
|
8646
8634
|
'a',
|
|
8647
|
-
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
8635
|
+
_extends$1({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
8648
8636
|
React__default.createElement(
|
|
8649
8637
|
'div',
|
|
8650
8638
|
{ className: 'multi-figure-image-container' },
|