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