@mjhls/mjh-framework 1.0.604 → 1.0.605
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +172 -172
- 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 +5 -5
- 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/ArticleQueue.js +12 -12
- package/dist/cjs/Auth.js +507 -256
- package/dist/cjs/{BlockContent-77f81ffc.js → BlockContent-f942392e.js} +1 -1
- package/dist/cjs/CMEDeck.js +5 -5
- package/dist/cjs/Column3.js +4 -4
- package/dist/cjs/ConferenceArticleCard.js +17 -17
- package/dist/cjs/DeckContent.js +16 -16
- package/dist/cjs/DeckQueue.js +7 -7
- package/dist/cjs/{Dfp-fcdeabc4.js → Dfp-fbe32b96.js} +1 -1
- package/dist/cjs/EventsDeck.js +22 -22
- package/dist/cjs/ExternalResources.js +8 -8
- package/dist/cjs/Feature.js +3 -3
- package/dist/cjs/ForbesHero.js +2 -2
- package/dist/cjs/GridContent.js +11 -11
- package/dist/cjs/GridHero.js +2 -2
- package/dist/cjs/GroupDeck.js +5 -5
- package/dist/cjs/HamMagazine.js +11 -11
- 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 +36 -36
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +2 -2
- package/dist/cjs/MasterDeck.js +17 -17
- package/dist/cjs/NavMagazine.js +12 -12
- package/dist/cjs/NavNative.js +11 -11
- package/dist/cjs/OncliveHero.js +2 -2
- package/dist/cjs/OncliveLargeHero.js +2 -2
- package/dist/cjs/PartnerDetailListing.js +16 -1212
- package/dist/cjs/PublicationDeck.js +1 -1
- package/dist/cjs/PublicationLanding.js +33 -33
- package/dist/cjs/QueueDeckExpanded.js +9 -9
- package/dist/cjs/RecentNews.js +2 -2
- package/dist/cjs/RelatedContent.js +30 -30
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/TaxonomyCard.js +2 -2
- package/dist/cjs/TemplateNormal.js +2 -2
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/Ustream.js +2 -2
- package/dist/cjs/VerticalHero.js +2 -2
- package/dist/cjs/VideoSeriesFilter.js +1 -1
- package/dist/cjs/VideoSeriesListing.js +5 -5
- package/dist/cjs/View.js +42 -42
- package/dist/cjs/YahooHero.js +2 -2
- package/dist/cjs/YoutubeGroup.js +5 -5
- package/dist/cjs/getRelatedArticle.js +5 -354
- package/dist/cjs/getSerializers.js +7 -7
- package/dist/cjs/{getTargeting-5db63100.js → getTargeting-5a0b8ee4.js} +11 -11
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{index-3294d3bc.js → index-5be2866f.js} +1 -1
- package/dist/cjs/{index-f745a50a.js → index-69c35219.js} +457 -445
- package/dist/cjs/{index-be0c82be.js → index-b5eb3ff8.js} +20 -19
- package/dist/cjs/{index-fa3cec70.js → index-f7ee1612.js} +4 -6
- package/dist/cjs/{index.es-9110add6.js → index.es-ab3f2690.js} +3 -1
- package/dist/cjs/index.js +16 -15
- package/dist/cjs/{inherits-14962339.js → inherits-93684212.js} +4 -4
- package/dist/cjs/{main-88348b15.js → main-bc4db521.js} +66 -35
- package/dist/cjs/{moment-575fe24c.js → moment-66a6a284.js} +1 -1
- package/dist/cjs/urlFor.js +2 -2
- 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 +5 -5
- 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/ArticleQueue.js +11 -11
- package/dist/esm/Auth.js +499 -248
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-a614acdf.js} +1 -1
- package/dist/esm/CMEDeck.js +5 -5
- package/dist/esm/Column3.js +4 -4
- package/dist/esm/ConferenceArticleCard.js +17 -17
- package/dist/esm/DeckContent.js +15 -15
- package/dist/esm/DeckQueue.js +6 -6
- package/dist/esm/{Dfp-380bef62.js → Dfp-40c70a33.js} +1 -1
- package/dist/esm/EventsDeck.js +22 -22
- 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 +5 -5
- package/dist/esm/HamMagazine.js +11 -11
- 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 +36 -36
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +2 -2
- package/dist/esm/MasterDeck.js +16 -16
- package/dist/esm/NavMagazine.js +12 -12
- package/dist/esm/NavNative.js +11 -11
- 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/PublicationLanding.js +33 -33
- package/dist/esm/QueueDeckExpanded.js +9 -9
- package/dist/esm/RecentNews.js +2 -2
- package/dist/esm/RelatedContent.js +30 -30
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/SideFooter.js +2 -2
- package/dist/esm/TaxonomyCard.js +2 -2
- package/dist/esm/TemplateNormal.js +2 -2
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/Ustream.js +2 -2
- package/dist/esm/VerticalHero.js +2 -2
- package/dist/esm/VideoSeriesFilter.js +1 -1
- package/dist/esm/VideoSeriesListing.js +4 -4
- package/dist/esm/View.js +17 -17
- package/dist/esm/YahooHero.js +2 -2
- package/dist/esm/YoutubeGroup.js +5 -5
- package/dist/esm/getRelatedArticle.js +5 -354
- package/dist/esm/getSerializers.js +6 -6
- package/dist/esm/{getTargeting-36bcd238.js → getTargeting-962c9cf6.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-73819142.js → index-51a80699.js} +20 -19
- package/dist/esm/{index-3f4dd6f2.js → index-93ec3c59.js} +4 -6
- package/dist/esm/{index-ef6d5dcf.js → index-d2f90501.js} +1 -1
- package/dist/esm/{index-599efdf0.js → index-e07f3300.js} +456 -444
- package/dist/esm/{index.es-29c1cef5.js → index.es-938a3a58.js} +3 -1
- package/dist/esm/index.js +14 -13
- package/dist/esm/{main-d7ee6151.js → main-7255814e.js} +65 -34
- package/dist/esm/{moment-e2f9b20c.js → moment-12415288.js} +1 -1
- package/dist/esm/urlFor.js +2 -2
- package/package.json +107 -107
- package/dist/cjs/index-bd6c9f56.js +0 -211
- package/dist/esm/index-db3bb315.js +0 -207
- /package/dist/cjs/{ADInfeed-df340285.js → ADInfeed-17a378db.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-2110d08c.js → ADlgInfeed-070d911c.js} +0 -0
- /package/dist/esm/{ADInfeed-541eaae3.js → ADInfeed-0c1bcd33.js} +0 -0
- /package/dist/esm/{ADlgInfeed-25c3d142.js → ADlgInfeed-a2518bca.js} +0 -0
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-2efd7c98.js';
|
|
3
|
-
import { _ as _extends
|
|
3
|
+
import { _ as _extends } from './extends-229166d5.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-e6718951.js';
|
|
5
5
|
import React__default, { useState, useEffect, useRef } from 'react';
|
|
6
|
-
import { l as lib_3 } from './index-
|
|
6
|
+
import { l as lib_3 } from './index-93ec3c59.js';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import Row from 'react-bootstrap/Row';
|
|
9
9
|
import Col from 'react-bootstrap/Col';
|
|
10
|
-
import { m as moment } from './moment-
|
|
10
|
+
import { m as moment } from './moment-12415288.js';
|
|
11
11
|
import Router, { useRouter } from 'next/router';
|
|
12
|
-
import { i as imageUrlBuilder } from './index-
|
|
12
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
13
13
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
14
|
-
import { b as main_16, c as
|
|
14
|
+
import { b as main_16, c as main_38, m as main_39 } from './main-7255814e.js';
|
|
15
15
|
import { h as html_decode_1 } from './entities-7cc3bf45.js';
|
|
16
16
|
import { _ as _slicedToArray } from './slicedToArray-a58d7edf.js';
|
|
17
17
|
import { B as Beam, S as Segment } from './beam-c40d77ae.js';
|
|
18
18
|
import DFPAdSlot from './AdSlot.js';
|
|
19
|
-
import { B as BlockContent } from './BlockContent-
|
|
19
|
+
import { B as BlockContent } from './BlockContent-a614acdf.js';
|
|
20
20
|
import { g as getYoutubeId } from './smoothscroll-4b699764.js';
|
|
21
21
|
import GroupDeck from './GroupDeck.js';
|
|
22
22
|
import { Carousel, Table, Figure as Figure$1, Button, ProgressBar, Card, Row as Row$1, Col as Col$1 } from 'react-bootstrap';
|
|
@@ -88,21 +88,18 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
88
88
|
);
|
|
89
89
|
};
|
|
90
90
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
// do not edit .js files directly - edit src/index.jst
|
|
92
|
+
|
|
93
|
+
|
|
94
94
|
|
|
95
95
|
var fastDeepEqual = function equal(a, b) {
|
|
96
96
|
if (a === b) return true;
|
|
97
97
|
|
|
98
98
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
99
|
-
|
|
100
|
-
, arrB = isArray(b)
|
|
101
|
-
, i
|
|
102
|
-
, length
|
|
103
|
-
, key;
|
|
99
|
+
if (a.constructor !== b.constructor) return false;
|
|
104
100
|
|
|
105
|
-
|
|
101
|
+
var length, i, keys;
|
|
102
|
+
if (Array.isArray(a)) {
|
|
106
103
|
length = a.length;
|
|
107
104
|
if (length != b.length) return false;
|
|
108
105
|
for (i = length; i-- !== 0;)
|
|
@@ -110,35 +107,29 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
110
107
|
return true;
|
|
111
108
|
}
|
|
112
109
|
|
|
113
|
-
if (arrA != arrB) return false;
|
|
114
110
|
|
|
115
|
-
var dateA = a instanceof Date
|
|
116
|
-
, dateB = b instanceof Date;
|
|
117
|
-
if (dateA != dateB) return false;
|
|
118
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
119
111
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
if (
|
|
123
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
112
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
113
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
114
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
124
115
|
|
|
125
|
-
|
|
116
|
+
keys = Object.keys(a);
|
|
126
117
|
length = keys.length;
|
|
127
|
-
|
|
128
|
-
if (length !== keyList(b).length)
|
|
129
|
-
return false;
|
|
118
|
+
if (length !== Object.keys(b).length) return false;
|
|
130
119
|
|
|
131
120
|
for (i = length; i-- !== 0;)
|
|
132
|
-
if (!
|
|
121
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
133
122
|
|
|
134
123
|
for (i = length; i-- !== 0;) {
|
|
135
|
-
key = keys[i];
|
|
124
|
+
var key = keys[i];
|
|
125
|
+
|
|
136
126
|
if (!equal(a[key], b[key])) return false;
|
|
137
127
|
}
|
|
138
128
|
|
|
139
129
|
return true;
|
|
140
130
|
}
|
|
141
131
|
|
|
132
|
+
// true if both NaN, false otherwise
|
|
142
133
|
return a!==a && b!==b;
|
|
143
134
|
};
|
|
144
135
|
|
|
@@ -1561,199 +1552,235 @@ module.exports = exports['default'];
|
|
|
1561
1552
|
|
|
1562
1553
|
var youTubePlayer = unwrapExports(dist);
|
|
1563
1554
|
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
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; };
|
|
1555
|
+
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); }
|
|
1567
1556
|
|
|
1568
1557
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1569
1558
|
|
|
1570
|
-
function
|
|
1559
|
+
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); } }
|
|
1560
|
+
|
|
1561
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1562
|
+
|
|
1563
|
+
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); }; }
|
|
1564
|
+
|
|
1565
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1566
|
+
|
|
1567
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1568
|
+
|
|
1569
|
+
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; } }
|
|
1570
|
+
|
|
1571
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1572
|
+
|
|
1573
|
+
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); }
|
|
1574
|
+
|
|
1575
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1576
|
+
|
|
1577
|
+
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; }
|
|
1571
1578
|
|
|
1572
|
-
function
|
|
1579
|
+
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; }
|
|
1573
1580
|
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
*
|
|
1577
|
-
*
|
|
1578
|
-
* @param {Object}
|
|
1581
|
+
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; }
|
|
1582
|
+
/**
|
|
1583
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1584
|
+
*
|
|
1585
|
+
* @param {Object} prevProps
|
|
1586
|
+
* @param {Object} props
|
|
1579
1587
|
*/
|
|
1588
|
+
|
|
1580
1589
|
function shouldUpdateVideo(prevProps, props) {
|
|
1581
1590
|
// A changing video should always trigger an update
|
|
1582
1591
|
if (prevProps.videoId !== props.videoId) {
|
|
1583
1592
|
return true;
|
|
1584
|
-
}
|
|
1585
|
-
|
|
1586
|
-
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1593
|
+
} // Otherwise, a change in the start/end time playerVars also requires a player
|
|
1587
1594
|
// update.
|
|
1595
|
+
|
|
1596
|
+
|
|
1588
1597
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1589
1598
|
var vars = props.opts.playerVars || {};
|
|
1590
|
-
|
|
1591
1599
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1592
1600
|
}
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
*
|
|
1596
|
-
*
|
|
1597
|
-
*
|
|
1598
|
-
*
|
|
1599
|
-
* @param {Object} opts
|
|
1601
|
+
/**
|
|
1602
|
+
* Neutralize API options that only require a video update, leaving only options
|
|
1603
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1604
|
+
* player reset is necessary.
|
|
1605
|
+
*
|
|
1606
|
+
* @param {Object} opts
|
|
1600
1607
|
*/
|
|
1608
|
+
|
|
1609
|
+
|
|
1601
1610
|
function filterResetOptions(opts) {
|
|
1602
|
-
return
|
|
1603
|
-
playerVars:
|
|
1611
|
+
return _objectSpread({}, opts, {
|
|
1612
|
+
playerVars: _objectSpread({}, opts.playerVars, {
|
|
1604
1613
|
autoplay: 0,
|
|
1605
1614
|
start: 0,
|
|
1606
1615
|
end: 0
|
|
1607
1616
|
})
|
|
1608
1617
|
});
|
|
1609
1618
|
}
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
*
|
|
1613
|
-
*
|
|
1614
|
-
*
|
|
1615
|
-
*
|
|
1616
|
-
*
|
|
1617
|
-
* @param {Object}
|
|
1618
|
-
* @param {Object} props
|
|
1619
|
+
/**
|
|
1620
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1621
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1622
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1623
|
+
* those.
|
|
1624
|
+
*
|
|
1625
|
+
* @param {Object} prevProps
|
|
1626
|
+
* @param {Object} props
|
|
1619
1627
|
*/
|
|
1628
|
+
|
|
1629
|
+
|
|
1620
1630
|
function shouldResetPlayer(prevProps, props) {
|
|
1621
1631
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1622
1632
|
}
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
*
|
|
1626
|
-
*
|
|
1627
|
-
* @param {Object}
|
|
1628
|
-
* @param {Object} props
|
|
1633
|
+
/**
|
|
1634
|
+
* Check whether a props change should result in an id or className update.
|
|
1635
|
+
*
|
|
1636
|
+
* @param {Object} prevProps
|
|
1637
|
+
* @param {Object} props
|
|
1629
1638
|
*/
|
|
1639
|
+
|
|
1640
|
+
|
|
1630
1641
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1631
1642
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1632
1643
|
}
|
|
1633
1644
|
|
|
1634
|
-
var YouTube = function (_React$Component) {
|
|
1645
|
+
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
1635
1646
|
_inherits(YouTube, _React$Component);
|
|
1636
1647
|
|
|
1648
|
+
var _super = _createSuper(YouTube);
|
|
1649
|
+
|
|
1650
|
+
/**
|
|
1651
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1652
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1653
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1654
|
+
*/
|
|
1637
1655
|
function YouTube(props) {
|
|
1656
|
+
var _this;
|
|
1657
|
+
|
|
1638
1658
|
_classCallCheck(this, YouTube);
|
|
1639
1659
|
|
|
1640
|
-
|
|
1660
|
+
_this = _super.call(this, props);
|
|
1641
1661
|
|
|
1642
|
-
_this
|
|
1662
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
|
|
1643
1663
|
return _this.props.onReady(event);
|
|
1644
|
-
};
|
|
1664
|
+
});
|
|
1645
1665
|
|
|
1646
|
-
_this
|
|
1666
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
|
|
1647
1667
|
return _this.props.onError(event);
|
|
1648
|
-
};
|
|
1668
|
+
});
|
|
1649
1669
|
|
|
1650
|
-
_this
|
|
1670
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
|
|
1651
1671
|
_this.props.onStateChange(event);
|
|
1652
|
-
switch (event.data) {
|
|
1653
1672
|
|
|
1673
|
+
switch (event.data) {
|
|
1654
1674
|
case YouTube.PlayerState.ENDED:
|
|
1655
1675
|
_this.props.onEnd(event);
|
|
1676
|
+
|
|
1656
1677
|
break;
|
|
1657
1678
|
|
|
1658
1679
|
case YouTube.PlayerState.PLAYING:
|
|
1659
1680
|
_this.props.onPlay(event);
|
|
1681
|
+
|
|
1660
1682
|
break;
|
|
1661
1683
|
|
|
1662
1684
|
case YouTube.PlayerState.PAUSED:
|
|
1663
1685
|
_this.props.onPause(event);
|
|
1686
|
+
|
|
1664
1687
|
break;
|
|
1665
1688
|
}
|
|
1666
|
-
};
|
|
1689
|
+
});
|
|
1667
1690
|
|
|
1668
|
-
_this
|
|
1691
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
|
|
1669
1692
|
return _this.props.onPlaybackRateChange(event);
|
|
1670
|
-
};
|
|
1693
|
+
});
|
|
1671
1694
|
|
|
1672
|
-
_this
|
|
1695
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
|
|
1673
1696
|
return _this.props.onPlaybackQualityChange(event);
|
|
1674
|
-
};
|
|
1697
|
+
});
|
|
1675
1698
|
|
|
1676
|
-
_this
|
|
1699
|
+
_defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
|
|
1677
1700
|
// do not attempt to create a player server-side, it won't work
|
|
1678
|
-
if (typeof document === 'undefined') return;
|
|
1679
|
-
|
|
1680
|
-
var playerOpts =
|
|
1701
|
+
if (typeof document === 'undefined') return; // create player
|
|
1702
|
+
|
|
1703
|
+
var playerOpts = _objectSpread({}, _this.props.opts, {
|
|
1681
1704
|
// preload the `videoId` video if one is already given
|
|
1682
1705
|
videoId: _this.props.videoId
|
|
1683
1706
|
});
|
|
1684
|
-
|
|
1685
|
-
// attach event handlers
|
|
1707
|
+
|
|
1708
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
|
|
1709
|
+
|
|
1686
1710
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1711
|
+
|
|
1687
1712
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1713
|
+
|
|
1688
1714
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1715
|
+
|
|
1689
1716
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1717
|
+
|
|
1690
1718
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1691
|
-
};
|
|
1719
|
+
});
|
|
1692
1720
|
|
|
1693
|
-
_this
|
|
1721
|
+
_defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
|
|
1694
1722
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1695
|
-
};
|
|
1723
|
+
});
|
|
1696
1724
|
|
|
1697
|
-
_this
|
|
1725
|
+
_defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
|
|
1698
1726
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1699
1727
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1700
1728
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1701
1729
|
});
|
|
1702
|
-
};
|
|
1730
|
+
});
|
|
1703
1731
|
|
|
1704
|
-
_this
|
|
1732
|
+
_defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
|
|
1705
1733
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1706
1734
|
_this.internalPlayer.stopVideo();
|
|
1735
|
+
|
|
1707
1736
|
return;
|
|
1708
|
-
}
|
|
1737
|
+
} // set queueing options
|
|
1738
|
+
|
|
1709
1739
|
|
|
1710
|
-
// set queueing options
|
|
1711
1740
|
var autoplay = false;
|
|
1712
1741
|
var opts = {
|
|
1713
1742
|
videoId: _this.props.videoId
|
|
1714
1743
|
};
|
|
1744
|
+
|
|
1715
1745
|
if ('playerVars' in _this.props.opts) {
|
|
1716
1746
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1747
|
+
|
|
1717
1748
|
if ('start' in _this.props.opts.playerVars) {
|
|
1718
1749
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1719
1750
|
}
|
|
1751
|
+
|
|
1720
1752
|
if ('end' in _this.props.opts.playerVars) {
|
|
1721
1753
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1722
1754
|
}
|
|
1723
|
-
}
|
|
1755
|
+
} // if autoplay is enabled loadVideoById
|
|
1756
|
+
|
|
1724
1757
|
|
|
1725
|
-
// if autoplay is enabled loadVideoById
|
|
1726
1758
|
if (autoplay) {
|
|
1727
1759
|
_this.internalPlayer.loadVideoById(opts);
|
|
1760
|
+
|
|
1728
1761
|
return;
|
|
1729
|
-
}
|
|
1730
|
-
|
|
1762
|
+
} // default behaviour just cues the video
|
|
1763
|
+
|
|
1764
|
+
|
|
1731
1765
|
_this.internalPlayer.cueVideoById(opts);
|
|
1732
|
-
};
|
|
1766
|
+
});
|
|
1733
1767
|
|
|
1734
|
-
_this
|
|
1768
|
+
_defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
|
|
1735
1769
|
_this.container = container;
|
|
1736
|
-
};
|
|
1770
|
+
});
|
|
1737
1771
|
|
|
1738
1772
|
_this.container = null;
|
|
1739
1773
|
_this.internalPlayer = null;
|
|
1740
1774
|
return _this;
|
|
1741
1775
|
}
|
|
1742
1776
|
|
|
1743
|
-
/**
|
|
1744
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1745
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1746
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1747
|
-
*/
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
1777
|
_createClass(YouTube, [{
|
|
1751
|
-
key:
|
|
1778
|
+
key: "componentDidMount",
|
|
1752
1779
|
value: function componentDidMount() {
|
|
1753
1780
|
this.createPlayer();
|
|
1754
1781
|
}
|
|
1755
1782
|
}, {
|
|
1756
|
-
key:
|
|
1783
|
+
key: "componentDidUpdate",
|
|
1757
1784
|
value: function componentDidUpdate(prevProps) {
|
|
1758
1785
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1759
1786
|
this.updatePlayer();
|
|
@@ -1768,112 +1795,58 @@ var YouTube = function (_React$Component) {
|
|
|
1768
1795
|
}
|
|
1769
1796
|
}
|
|
1770
1797
|
}, {
|
|
1771
|
-
key:
|
|
1798
|
+
key: "componentWillUnmount",
|
|
1772
1799
|
value: function componentWillUnmount() {
|
|
1773
|
-
/**
|
|
1774
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1775
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1776
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1777
|
-
* this method isn't quick enough to reset the container element.
|
|
1800
|
+
/**
|
|
1801
|
+
* Note: The `youtube-player` package that is used promisifies all YouTube
|
|
1802
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1803
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1804
|
+
* this method isn't quick enough to reset the container element.
|
|
1778
1805
|
*/
|
|
1779
1806
|
this.internalPlayer.destroy();
|
|
1780
1807
|
}
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
*
|
|
1784
|
-
*
|
|
1785
|
-
*
|
|
1786
|
-
* @param {Object} target - player object
|
|
1787
|
-
*/
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
/**
|
|
1791
|
-
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1792
|
-
*
|
|
1793
|
-
* @param {Object} event
|
|
1794
|
-
* @param {Integer} data - error type
|
|
1795
|
-
* @param {Object} target - player object
|
|
1796
|
-
*/
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
/**
|
|
1800
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1801
|
-
*
|
|
1802
|
-
* @param {Object} event
|
|
1803
|
-
* @param {Integer} data - status change type
|
|
1804
|
-
* @param {Object} target - actual YT player
|
|
1805
|
-
*/
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
/**
|
|
1809
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1810
|
-
*
|
|
1811
|
-
* @param {Object} event
|
|
1812
|
-
* @param {Float} data - playback rate
|
|
1813
|
-
* @param {Object} target - actual YT player
|
|
1814
|
-
*/
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
/**
|
|
1818
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1819
|
-
*
|
|
1820
|
-
* @param {Object} event
|
|
1821
|
-
* @param {String} data - playback quality
|
|
1822
|
-
* @param {Object} target - actual YT player
|
|
1823
|
-
*/
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
/**
|
|
1827
|
-
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1828
|
-
*/
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
/**
|
|
1832
|
-
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1833
|
-
*/
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
/**
|
|
1837
|
-
* Method to update the id and class of the Youtube Player iframe.
|
|
1838
|
-
* React should update this automatically but since the Youtube Player API
|
|
1839
|
-
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1840
|
-
*/
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
/**
|
|
1844
|
-
* Call Youtube Player API methods to update the currently playing video.
|
|
1845
|
-
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1846
|
-
* Youtube Player API methods to update the video.
|
|
1808
|
+
/**
|
|
1809
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1810
|
+
*
|
|
1811
|
+
* @param {Object} event
|
|
1812
|
+
* @param {Object} target - player object
|
|
1847
1813
|
*/
|
|
1848
1814
|
|
|
1849
1815
|
}, {
|
|
1850
|
-
key:
|
|
1816
|
+
key: "render",
|
|
1851
1817
|
value: function render() {
|
|
1852
|
-
return React__default.createElement(
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1818
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1819
|
+
className: this.props.containerClassName
|
|
1820
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1821
|
+
id: this.props.id,
|
|
1822
|
+
className: this.props.className,
|
|
1823
|
+
ref: this.refContainer
|
|
1824
|
+
}));
|
|
1857
1825
|
}
|
|
1858
1826
|
}]);
|
|
1859
1827
|
|
|
1860
1828
|
return YouTube;
|
|
1861
1829
|
}(React__default.Component);
|
|
1862
1830
|
|
|
1831
|
+
_defineProperty(YouTube, "PlayerState", {
|
|
1832
|
+
UNSTARTED: -1,
|
|
1833
|
+
ENDED: 0,
|
|
1834
|
+
PLAYING: 1,
|
|
1835
|
+
PAUSED: 2,
|
|
1836
|
+
BUFFERING: 3,
|
|
1837
|
+
CUED: 5
|
|
1838
|
+
});
|
|
1839
|
+
|
|
1863
1840
|
YouTube.propTypes = {
|
|
1864
1841
|
videoId: PropTypes.string,
|
|
1865
|
-
|
|
1866
1842
|
// custom ID for player element
|
|
1867
1843
|
id: PropTypes.string,
|
|
1868
|
-
|
|
1869
1844
|
// custom class name for player element
|
|
1870
1845
|
className: PropTypes.string,
|
|
1871
1846
|
// custom class name for player container element
|
|
1872
1847
|
containerClassName: PropTypes.string,
|
|
1873
|
-
|
|
1874
1848
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1875
1849
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1876
|
-
|
|
1877
1850
|
// event subscriptions
|
|
1878
1851
|
onReady: PropTypes.func,
|
|
1879
1852
|
onError: PropTypes.func,
|
|
@@ -1885,6 +1858,7 @@ YouTube.propTypes = {
|
|
|
1885
1858
|
onPlaybackQualityChange: PropTypes.func
|
|
1886
1859
|
};
|
|
1887
1860
|
YouTube.defaultProps = {
|
|
1861
|
+
videoId: null,
|
|
1888
1862
|
id: null,
|
|
1889
1863
|
className: null,
|
|
1890
1864
|
opts: {},
|
|
@@ -1898,14 +1872,6 @@ YouTube.defaultProps = {
|
|
|
1898
1872
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1899
1873
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1900
1874
|
};
|
|
1901
|
-
YouTube.PlayerState = {
|
|
1902
|
-
UNSTARTED: -1,
|
|
1903
|
-
ENDED: 0,
|
|
1904
|
-
PLAYING: 1,
|
|
1905
|
-
PAUSED: 2,
|
|
1906
|
-
BUFFERING: 3,
|
|
1907
|
-
CUED: 5
|
|
1908
|
-
};
|
|
1909
1875
|
|
|
1910
1876
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1911
1877
|
var url = _ref.url;
|
|
@@ -2166,7 +2132,7 @@ var Media = function Media(_ref) {
|
|
|
2166
2132
|
React__default.createElement(
|
|
2167
2133
|
'a',
|
|
2168
2134
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2169
|
-
React__default.createElement(Figure$1.Image, _extends
|
|
2135
|
+
React__default.createElement(Figure$1.Image, _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt })),
|
|
2170
2136
|
caption && React__default.createElement(
|
|
2171
2137
|
Figure$1.Caption,
|
|
2172
2138
|
{ className: 'media-caption' },
|
|
@@ -2177,7 +2143,7 @@ var Media = function Media(_ref) {
|
|
|
2177
2143
|
} else if (caption && caption !== '') {
|
|
2178
2144
|
return React__default.createElement(
|
|
2179
2145
|
'a',
|
|
2180
|
-
_extends
|
|
2146
|
+
_extends({}, uploadDoc.downloadMedia ? {
|
|
2181
2147
|
href: uploadDoc.asset.url + '?dl='
|
|
2182
2148
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2183
2149
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2738,11 +2704,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2738
2704
|
|
|
2739
2705
|
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; }
|
|
2740
2706
|
|
|
2741
|
-
function
|
|
2707
|
+
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; } } }; }
|
|
2708
|
+
|
|
2709
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2710
|
+
|
|
2711
|
+
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."); }
|
|
2742
2712
|
|
|
2743
|
-
function
|
|
2713
|
+
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); }
|
|
2744
2714
|
|
|
2745
|
-
function
|
|
2715
|
+
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; }
|
|
2716
|
+
|
|
2717
|
+
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; }
|
|
2746
2718
|
|
|
2747
2719
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2748
2720
|
|
|
@@ -2872,12 +2844,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
2872
2844
|
|
|
2873
2845
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
2874
2846
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
2875
|
-
|
|
2876
|
-
var
|
|
2877
|
-
|
|
2847
|
+
|
|
2848
|
+
var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
|
|
2849
|
+
_step;
|
|
2878
2850
|
|
|
2879
2851
|
try {
|
|
2880
|
-
for (
|
|
2852
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
2881
2853
|
var p = _step.value;
|
|
2882
2854
|
|
|
2883
2855
|
if (props$1[p]) {
|
|
@@ -2892,18 +2864,9 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
2892
2864
|
}
|
|
2893
2865
|
}
|
|
2894
2866
|
} catch (err) {
|
|
2895
|
-
|
|
2896
|
-
_iteratorError = err;
|
|
2867
|
+
_iterator.e(err);
|
|
2897
2868
|
} finally {
|
|
2898
|
-
|
|
2899
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
2900
|
-
_iterator["return"]();
|
|
2901
|
-
}
|
|
2902
|
-
} finally {
|
|
2903
|
-
if (_didIteratorError) {
|
|
2904
|
-
throw _iteratorError;
|
|
2905
|
-
}
|
|
2906
|
-
}
|
|
2869
|
+
_iterator.f();
|
|
2907
2870
|
}
|
|
2908
2871
|
|
|
2909
2872
|
return config;
|
|
@@ -3050,12 +3013,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3050
3013
|
|
|
3051
3014
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3052
3015
|
|
|
3053
|
-
function
|
|
3016
|
+
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); }; }
|
|
3054
3017
|
|
|
3055
|
-
function
|
|
3018
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3056
3019
|
|
|
3057
3020
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3058
3021
|
|
|
3022
|
+
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; } }
|
|
3023
|
+
|
|
3024
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3025
|
+
|
|
3059
3026
|
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); }
|
|
3060
3027
|
|
|
3061
3028
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3064,14 +3031,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3064
3031
|
|
|
3065
3032
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3066
3033
|
|
|
3067
|
-
var Player =
|
|
3068
|
-
/*#__PURE__*/
|
|
3069
|
-
function (_Component) {
|
|
3034
|
+
var Player = /*#__PURE__*/function (_Component) {
|
|
3070
3035
|
_inherits(Player, _Component);
|
|
3071
3036
|
|
|
3072
|
-
|
|
3073
|
-
var _getPrototypeOf2;
|
|
3037
|
+
var _super = _createSuper(Player);
|
|
3074
3038
|
|
|
3039
|
+
function Player() {
|
|
3075
3040
|
var _this;
|
|
3076
3041
|
|
|
3077
3042
|
_classCallCheck(this, Player);
|
|
@@ -3080,7 +3045,7 @@ function (_Component) {
|
|
|
3080
3045
|
_args[_key] = arguments[_key];
|
|
3081
3046
|
}
|
|
3082
3047
|
|
|
3083
|
-
_this =
|
|
3048
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
3084
3049
|
|
|
3085
3050
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3086
3051
|
|
|
@@ -3405,7 +3370,7 @@ function (_Component) {
|
|
|
3405
3370
|
return null;
|
|
3406
3371
|
}
|
|
3407
3372
|
|
|
3408
|
-
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3373
|
+
return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
|
|
3409
3374
|
ref: this.ref,
|
|
3410
3375
|
onReady: this.handleReady,
|
|
3411
3376
|
onPlay: this.handlePlay,
|
|
@@ -3466,12 +3431,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3466
3431
|
|
|
3467
3432
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3468
3433
|
|
|
3469
|
-
function
|
|
3434
|
+
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); }; }
|
|
3470
3435
|
|
|
3471
|
-
function
|
|
3436
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3472
3437
|
|
|
3473
3438
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3474
3439
|
|
|
3440
|
+
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; } }
|
|
3441
|
+
|
|
3442
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3443
|
+
|
|
3475
3444
|
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); }
|
|
3476
3445
|
|
|
3477
3446
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3483,14 +3452,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3483
3452
|
function createSinglePlayer(activePlayer) {
|
|
3484
3453
|
var _class, _temp;
|
|
3485
3454
|
|
|
3486
|
-
return _temp = _class =
|
|
3487
|
-
/*#__PURE__*/
|
|
3488
|
-
function (_Component) {
|
|
3455
|
+
return _temp = _class = /*#__PURE__*/function (_Component) {
|
|
3489
3456
|
_inherits(SinglePlayer, _Component);
|
|
3490
3457
|
|
|
3491
|
-
|
|
3492
|
-
var _getPrototypeOf2;
|
|
3458
|
+
var _super = _createSuper(SinglePlayer);
|
|
3493
3459
|
|
|
3460
|
+
function SinglePlayer() {
|
|
3494
3461
|
var _this;
|
|
3495
3462
|
|
|
3496
3463
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3499,7 +3466,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3499
3466
|
args[_key] = arguments[_key];
|
|
3500
3467
|
}
|
|
3501
3468
|
|
|
3502
|
-
_this =
|
|
3469
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3503
3470
|
|
|
3504
3471
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3505
3472
|
|
|
@@ -3567,12 +3534,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3567
3534
|
height = _this$props.height,
|
|
3568
3535
|
Wrapper = _this$props.wrapper;
|
|
3569
3536
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3570
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
3537
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
3571
3538
|
style: _objectSpread({}, style, {
|
|
3572
3539
|
width: width,
|
|
3573
3540
|
height: height
|
|
3574
3541
|
})
|
|
3575
|
-
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3542
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3576
3543
|
ref: this.ref,
|
|
3577
3544
|
activePlayer: activePlayer,
|
|
3578
3545
|
config: this.config
|
|
@@ -3618,23 +3585,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3618
3585
|
|
|
3619
3586
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3620
3587
|
|
|
3621
|
-
function
|
|
3588
|
+
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); }; }
|
|
3622
3589
|
|
|
3623
|
-
function
|
|
3590
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3624
3591
|
|
|
3625
3592
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3626
3593
|
|
|
3594
|
+
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; } }
|
|
3595
|
+
|
|
3596
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3597
|
+
|
|
3627
3598
|
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); }
|
|
3628
3599
|
|
|
3629
3600
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3630
3601
|
|
|
3631
3602
|
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; }
|
|
3632
3603
|
|
|
3633
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3604
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3634
3605
|
|
|
3635
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3606
|
+
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."); }
|
|
3636
3607
|
|
|
3637
|
-
function
|
|
3608
|
+
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); }
|
|
3609
|
+
|
|
3610
|
+
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; }
|
|
3611
|
+
|
|
3612
|
+
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; }
|
|
3638
3613
|
|
|
3639
3614
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3640
3615
|
|
|
@@ -3659,14 +3634,12 @@ function parsePlaylist(url) {
|
|
|
3659
3634
|
return {};
|
|
3660
3635
|
}
|
|
3661
3636
|
|
|
3662
|
-
var YouTube =
|
|
3663
|
-
/*#__PURE__*/
|
|
3664
|
-
function (_Component) {
|
|
3637
|
+
var YouTube = /*#__PURE__*/function (_Component) {
|
|
3665
3638
|
_inherits(YouTube, _Component);
|
|
3666
3639
|
|
|
3667
|
-
|
|
3668
|
-
var _getPrototypeOf2;
|
|
3640
|
+
var _super = _createSuper(YouTube);
|
|
3669
3641
|
|
|
3642
|
+
function YouTube() {
|
|
3670
3643
|
var _this;
|
|
3671
3644
|
|
|
3672
3645
|
_classCallCheck(this, YouTube);
|
|
@@ -3675,7 +3648,7 @@ function (_Component) {
|
|
|
3675
3648
|
args[_key] = arguments[_key];
|
|
3676
3649
|
}
|
|
3677
3650
|
|
|
3678
|
-
_this =
|
|
3651
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3679
3652
|
|
|
3680
3653
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3681
3654
|
|
|
@@ -3863,9 +3836,9 @@ function (_Component) {
|
|
|
3863
3836
|
height: '100%',
|
|
3864
3837
|
display: display
|
|
3865
3838
|
};
|
|
3866
|
-
return _react["default"].createElement("div", {
|
|
3839
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
3867
3840
|
style: style
|
|
3868
|
-
}, _react["default"].createElement("div", {
|
|
3841
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
3869
3842
|
ref: this.ref
|
|
3870
3843
|
}));
|
|
3871
3844
|
}
|
|
@@ -3921,12 +3894,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3921
3894
|
|
|
3922
3895
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3923
3896
|
|
|
3924
|
-
function
|
|
3897
|
+
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); }; }
|
|
3925
3898
|
|
|
3926
|
-
function
|
|
3899
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3927
3900
|
|
|
3928
3901
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3929
3902
|
|
|
3903
|
+
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; } }
|
|
3904
|
+
|
|
3905
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3906
|
+
|
|
3930
3907
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
3931
3908
|
|
|
3932
3909
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3935,16 +3912,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3935
3912
|
|
|
3936
3913
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
3937
3914
|
var SDK_GLOBAL = 'SC';
|
|
3938
|
-
var MATCH_URL = /(soundcloud\.com|snd\.sc)
|
|
3915
|
+
var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
3939
3916
|
|
|
3940
|
-
var SoundCloud =
|
|
3941
|
-
/*#__PURE__*/
|
|
3942
|
-
function (_Component) {
|
|
3917
|
+
var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
3943
3918
|
_inherits(SoundCloud, _Component);
|
|
3944
3919
|
|
|
3945
|
-
|
|
3946
|
-
var _getPrototypeOf2;
|
|
3920
|
+
var _super = _createSuper(SoundCloud);
|
|
3947
3921
|
|
|
3922
|
+
function SoundCloud() {
|
|
3948
3923
|
var _this;
|
|
3949
3924
|
|
|
3950
3925
|
_classCallCheck(this, SoundCloud);
|
|
@@ -3953,7 +3928,7 @@ function (_Component) {
|
|
|
3953
3928
|
args[_key] = arguments[_key];
|
|
3954
3929
|
}
|
|
3955
3930
|
|
|
3956
|
-
_this =
|
|
3931
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3957
3932
|
|
|
3958
3933
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3959
3934
|
|
|
@@ -4074,7 +4049,7 @@ function (_Component) {
|
|
|
4074
4049
|
height: '100%',
|
|
4075
4050
|
display: display
|
|
4076
4051
|
};
|
|
4077
|
-
return _react["default"].createElement("iframe", {
|
|
4052
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4078
4053
|
ref: this.ref,
|
|
4079
4054
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4080
4055
|
style: style,
|
|
@@ -4136,12 +4111,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4136
4111
|
|
|
4137
4112
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4138
4113
|
|
|
4139
|
-
function
|
|
4114
|
+
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); }; }
|
|
4140
4115
|
|
|
4141
|
-
function
|
|
4116
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4142
4117
|
|
|
4143
4118
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4144
4119
|
|
|
4120
|
+
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; } }
|
|
4121
|
+
|
|
4122
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4123
|
+
|
|
4145
4124
|
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); }
|
|
4146
4125
|
|
|
4147
4126
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4153,14 +4132,12 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4153
4132
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4154
4133
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4155
4134
|
|
|
4156
|
-
var Vimeo =
|
|
4157
|
-
/*#__PURE__*/
|
|
4158
|
-
function (_Component) {
|
|
4135
|
+
var Vimeo = /*#__PURE__*/function (_Component) {
|
|
4159
4136
|
_inherits(Vimeo, _Component);
|
|
4160
4137
|
|
|
4161
|
-
|
|
4162
|
-
var _getPrototypeOf2;
|
|
4138
|
+
var _super = _createSuper(Vimeo);
|
|
4163
4139
|
|
|
4140
|
+
function Vimeo() {
|
|
4164
4141
|
var _this;
|
|
4165
4142
|
|
|
4166
4143
|
_classCallCheck(this, Vimeo);
|
|
@@ -4169,7 +4146,7 @@ function (_Component) {
|
|
|
4169
4146
|
args[_key] = arguments[_key];
|
|
4170
4147
|
}
|
|
4171
4148
|
|
|
4172
|
-
_this =
|
|
4149
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4173
4150
|
|
|
4174
4151
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4175
4152
|
|
|
@@ -4326,7 +4303,7 @@ function (_Component) {
|
|
|
4326
4303
|
overflow: 'hidden',
|
|
4327
4304
|
display: display
|
|
4328
4305
|
};
|
|
4329
|
-
return _react["default"].createElement("div", {
|
|
4306
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4330
4307
|
key: this.props.url,
|
|
4331
4308
|
ref: this.ref,
|
|
4332
4309
|
style: style
|
|
@@ -4386,12 +4363,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4386
4363
|
|
|
4387
4364
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4388
4365
|
|
|
4389
|
-
function
|
|
4366
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4390
4367
|
|
|
4391
|
-
function
|
|
4368
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4392
4369
|
|
|
4393
4370
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4394
4371
|
|
|
4372
|
+
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; } }
|
|
4373
|
+
|
|
4374
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4375
|
+
|
|
4395
4376
|
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); }
|
|
4396
4377
|
|
|
4397
4378
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4404,14 +4385,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4404
4385
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4405
4386
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4406
4387
|
|
|
4407
|
-
var Facebook =
|
|
4408
|
-
/*#__PURE__*/
|
|
4409
|
-
function (_Component) {
|
|
4388
|
+
var Facebook = /*#__PURE__*/function (_Component) {
|
|
4410
4389
|
_inherits(Facebook, _Component);
|
|
4411
4390
|
|
|
4412
|
-
|
|
4413
|
-
var _getPrototypeOf2;
|
|
4391
|
+
var _super = _createSuper(Facebook);
|
|
4414
4392
|
|
|
4393
|
+
function Facebook() {
|
|
4415
4394
|
var _this;
|
|
4416
4395
|
|
|
4417
4396
|
_classCallCheck(this, Facebook);
|
|
@@ -4420,7 +4399,7 @@ function (_Component) {
|
|
|
4420
4399
|
args[_key] = arguments[_key];
|
|
4421
4400
|
}
|
|
4422
4401
|
|
|
4423
|
-
_this =
|
|
4402
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4424
4403
|
|
|
4425
4404
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4426
4405
|
|
|
@@ -4536,7 +4515,7 @@ function (_Component) {
|
|
|
4536
4515
|
width: '100%',
|
|
4537
4516
|
height: '100%'
|
|
4538
4517
|
};
|
|
4539
|
-
return _react["default"].createElement("div", {
|
|
4518
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4540
4519
|
style: style,
|
|
4541
4520
|
id: this.playerID,
|
|
4542
4521
|
className: "fb-video",
|
|
@@ -4596,12 +4575,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4596
4575
|
|
|
4597
4576
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4598
4577
|
|
|
4599
|
-
function
|
|
4578
|
+
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); }; }
|
|
4600
4579
|
|
|
4601
|
-
function
|
|
4580
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4602
4581
|
|
|
4603
4582
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4604
4583
|
|
|
4584
|
+
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; } }
|
|
4585
|
+
|
|
4586
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4587
|
+
|
|
4605
4588
|
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); }
|
|
4606
4589
|
|
|
4607
4590
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4612,14 +4595,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4612
4595
|
var SDK_GLOBAL = 'playerjs';
|
|
4613
4596
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4614
4597
|
|
|
4615
|
-
var Streamable =
|
|
4616
|
-
/*#__PURE__*/
|
|
4617
|
-
function (_Component) {
|
|
4598
|
+
var Streamable = /*#__PURE__*/function (_Component) {
|
|
4618
4599
|
_inherits(Streamable, _Component);
|
|
4619
4600
|
|
|
4620
|
-
|
|
4621
|
-
var _getPrototypeOf2;
|
|
4601
|
+
var _super = _createSuper(Streamable);
|
|
4622
4602
|
|
|
4603
|
+
function Streamable() {
|
|
4623
4604
|
var _this;
|
|
4624
4605
|
|
|
4625
4606
|
_classCallCheck(this, Streamable);
|
|
@@ -4628,7 +4609,7 @@ function (_Component) {
|
|
|
4628
4609
|
args[_key] = arguments[_key];
|
|
4629
4610
|
}
|
|
4630
4611
|
|
|
4631
|
-
_this =
|
|
4612
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4632
4613
|
|
|
4633
4614
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4634
4615
|
|
|
@@ -4748,7 +4729,7 @@ function (_Component) {
|
|
|
4748
4729
|
width: '100%',
|
|
4749
4730
|
height: '100%'
|
|
4750
4731
|
};
|
|
4751
|
-
return _react["default"].createElement("iframe", {
|
|
4732
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4752
4733
|
ref: this.ref,
|
|
4753
4734
|
src: "https://streamable.com/o/".concat(id),
|
|
4754
4735
|
frameBorder: "0",
|
|
@@ -4809,12 +4790,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4809
4790
|
|
|
4810
4791
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4811
4792
|
|
|
4812
|
-
function
|
|
4793
|
+
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); }; }
|
|
4813
4794
|
|
|
4814
|
-
function
|
|
4795
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4815
4796
|
|
|
4816
4797
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4817
4798
|
|
|
4799
|
+
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; } }
|
|
4800
|
+
|
|
4801
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4802
|
+
|
|
4818
4803
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
4819
4804
|
|
|
4820
4805
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4825,26 +4810,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4825
4810
|
var SDK_GLOBAL = 'Wistia';
|
|
4826
4811
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4827
4812
|
|
|
4828
|
-
var Wistia =
|
|
4829
|
-
/*#__PURE__*/
|
|
4830
|
-
function (_Component) {
|
|
4813
|
+
var Wistia = /*#__PURE__*/function (_Component) {
|
|
4831
4814
|
_inherits(Wistia, _Component);
|
|
4832
4815
|
|
|
4833
|
-
|
|
4834
|
-
var _getPrototypeOf2;
|
|
4816
|
+
var _super = _createSuper(Wistia);
|
|
4835
4817
|
|
|
4818
|
+
function Wistia() {
|
|
4836
4819
|
var _this;
|
|
4837
4820
|
|
|
4838
4821
|
_classCallCheck(this, Wistia);
|
|
4839
4822
|
|
|
4840
|
-
for (var _len = arguments.length,
|
|
4841
|
-
|
|
4823
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4824
|
+
_args[_key] = arguments[_key];
|
|
4842
4825
|
}
|
|
4843
4826
|
|
|
4844
|
-
_this =
|
|
4827
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
4845
4828
|
|
|
4846
4829
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4847
4830
|
|
|
4831
|
+
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4832
|
+
var _this$props;
|
|
4833
|
+
|
|
4834
|
+
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4835
|
+
});
|
|
4836
|
+
|
|
4837
|
+
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4838
|
+
var _this$props2;
|
|
4839
|
+
|
|
4840
|
+
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4841
|
+
});
|
|
4842
|
+
|
|
4843
|
+
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
4844
|
+
var _this$props3;
|
|
4845
|
+
|
|
4846
|
+
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
4847
|
+
});
|
|
4848
|
+
|
|
4849
|
+
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
4850
|
+
var _this$props4;
|
|
4851
|
+
|
|
4852
|
+
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
4853
|
+
});
|
|
4854
|
+
|
|
4848
4855
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
4849
4856
|
_this.callPlayer('mute');
|
|
4850
4857
|
});
|
|
@@ -4866,17 +4873,13 @@ function (_Component) {
|
|
|
4866
4873
|
value: function load(url) {
|
|
4867
4874
|
var _this2 = this;
|
|
4868
4875
|
|
|
4869
|
-
var _this$
|
|
4870
|
-
playing = _this$
|
|
4871
|
-
muted = _this$
|
|
4872
|
-
controls = _this$
|
|
4873
|
-
_onReady = _this$
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
onSeek = _this$props.onSeek,
|
|
4877
|
-
onEnded = _this$props.onEnded,
|
|
4878
|
-
config = _this$props.config,
|
|
4879
|
-
onError = _this$props.onError;
|
|
4876
|
+
var _this$props5 = this.props,
|
|
4877
|
+
playing = _this$props5.playing,
|
|
4878
|
+
muted = _this$props5.muted,
|
|
4879
|
+
controls = _this$props5.controls,
|
|
4880
|
+
_onReady = _this$props5.onReady,
|
|
4881
|
+
config = _this$props5.config,
|
|
4882
|
+
onError = _this$props5.onError;
|
|
4880
4883
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
4881
4884
|
window._wq = window._wq || [];
|
|
4882
4885
|
|
|
@@ -4893,19 +4896,28 @@ function (_Component) {
|
|
|
4893
4896
|
|
|
4894
4897
|
_this2.unbind();
|
|
4895
4898
|
|
|
4896
|
-
_this2.player.bind('play', onPlay);
|
|
4899
|
+
_this2.player.bind('play', _this2.onPlay);
|
|
4897
4900
|
|
|
4898
|
-
_this2.player.bind('pause', onPause);
|
|
4901
|
+
_this2.player.bind('pause', _this2.onPause);
|
|
4899
4902
|
|
|
4900
|
-
_this2.player.bind('seek', onSeek);
|
|
4903
|
+
_this2.player.bind('seek', _this2.onSeek);
|
|
4901
4904
|
|
|
4902
|
-
_this2.player.bind('end', onEnded);
|
|
4905
|
+
_this2.player.bind('end', _this2.onEnded);
|
|
4903
4906
|
|
|
4904
4907
|
_onReady();
|
|
4905
4908
|
}
|
|
4906
4909
|
});
|
|
4907
4910
|
}, onError);
|
|
4908
4911
|
}
|
|
4912
|
+
}, {
|
|
4913
|
+
key: "unbind",
|
|
4914
|
+
value: function unbind() {
|
|
4915
|
+
this.player.unbind('play', this.onPlay);
|
|
4916
|
+
this.player.unbind('pause', this.onPause);
|
|
4917
|
+
this.player.unbind('seek', this.onSeek);
|
|
4918
|
+
this.player.unbind('end', this.onEnded);
|
|
4919
|
+
} // Proxy methods to prevent listener leaks
|
|
4920
|
+
|
|
4909
4921
|
}, {
|
|
4910
4922
|
key: "play",
|
|
4911
4923
|
value: function play() {
|
|
@@ -4916,19 +4928,6 @@ function (_Component) {
|
|
|
4916
4928
|
value: function pause() {
|
|
4917
4929
|
this.callPlayer('pause');
|
|
4918
4930
|
}
|
|
4919
|
-
}, {
|
|
4920
|
-
key: "unbind",
|
|
4921
|
-
value: function unbind() {
|
|
4922
|
-
var _this$props2 = this.props,
|
|
4923
|
-
onPlay = _this$props2.onPlay,
|
|
4924
|
-
onPause = _this$props2.onPause,
|
|
4925
|
-
onSeek = _this$props2.onSeek,
|
|
4926
|
-
onEnded = _this$props2.onEnded;
|
|
4927
|
-
this.player.unbind('play', onPlay);
|
|
4928
|
-
this.player.unbind('pause', onPause);
|
|
4929
|
-
this.player.unbind('seek', onSeek);
|
|
4930
|
-
this.player.unbind('end', onEnded);
|
|
4931
|
-
}
|
|
4932
4931
|
}, {
|
|
4933
4932
|
key: "stop",
|
|
4934
4933
|
value: function stop() {
|
|
@@ -4974,7 +4973,7 @@ function (_Component) {
|
|
|
4974
4973
|
width: '100%',
|
|
4975
4974
|
height: '100%'
|
|
4976
4975
|
};
|
|
4977
|
-
return _react["default"].createElement("div", {
|
|
4976
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4978
4977
|
key: id,
|
|
4979
4978
|
className: className,
|
|
4980
4979
|
style: style
|
|
@@ -5034,12 +5033,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5034
5033
|
|
|
5035
5034
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5036
5035
|
|
|
5037
|
-
function
|
|
5036
|
+
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); }; }
|
|
5038
5037
|
|
|
5039
|
-
function
|
|
5038
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5040
5039
|
|
|
5041
5040
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5042
5041
|
|
|
5042
|
+
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; } }
|
|
5043
|
+
|
|
5044
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5045
|
+
|
|
5043
5046
|
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); }
|
|
5044
5047
|
|
|
5045
5048
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5052,14 +5055,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5052
5055
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5053
5056
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5054
5057
|
|
|
5055
|
-
var Twitch =
|
|
5056
|
-
/*#__PURE__*/
|
|
5057
|
-
function (_Component) {
|
|
5058
|
+
var Twitch = /*#__PURE__*/function (_Component) {
|
|
5058
5059
|
_inherits(Twitch, _Component);
|
|
5059
5060
|
|
|
5060
|
-
|
|
5061
|
-
var _getPrototypeOf2;
|
|
5061
|
+
var _super = _createSuper(Twitch);
|
|
5062
5062
|
|
|
5063
|
+
function Twitch() {
|
|
5063
5064
|
var _this;
|
|
5064
5065
|
|
|
5065
5066
|
_classCallCheck(this, Twitch);
|
|
@@ -5068,7 +5069,7 @@ function (_Component) {
|
|
|
5068
5069
|
args[_key] = arguments[_key];
|
|
5069
5070
|
}
|
|
5070
5071
|
|
|
5071
|
-
_this =
|
|
5072
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5072
5073
|
|
|
5073
5074
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5074
5075
|
|
|
@@ -5189,7 +5190,7 @@ function (_Component) {
|
|
|
5189
5190
|
width: '100%',
|
|
5190
5191
|
height: '100%'
|
|
5191
5192
|
};
|
|
5192
|
-
return _react["default"].createElement("div", {
|
|
5193
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5193
5194
|
style: style,
|
|
5194
5195
|
id: this.playerID
|
|
5195
5196
|
});
|
|
@@ -5242,11 +5243,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5242
5243
|
|
|
5243
5244
|
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; }
|
|
5244
5245
|
|
|
5245
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5246
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5247
|
+
|
|
5248
|
+
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."); }
|
|
5246
5249
|
|
|
5247
|
-
function
|
|
5250
|
+
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); }
|
|
5248
5251
|
|
|
5249
|
-
function
|
|
5252
|
+
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; }
|
|
5253
|
+
|
|
5254
|
+
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; }
|
|
5250
5255
|
|
|
5251
5256
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5252
5257
|
|
|
@@ -5256,12 +5261,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5256
5261
|
|
|
5257
5262
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5258
5263
|
|
|
5259
|
-
function
|
|
5264
|
+
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); }; }
|
|
5260
5265
|
|
|
5261
|
-
function
|
|
5266
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5262
5267
|
|
|
5263
5268
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5264
5269
|
|
|
5270
|
+
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; } }
|
|
5271
|
+
|
|
5272
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5273
|
+
|
|
5265
5274
|
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); }
|
|
5266
5275
|
|
|
5267
5276
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5273,14 +5282,12 @@ var SDK_GLOBAL = 'DM';
|
|
|
5273
5282
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5274
5283
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5275
5284
|
|
|
5276
|
-
var DailyMotion =
|
|
5277
|
-
/*#__PURE__*/
|
|
5278
|
-
function (_Component) {
|
|
5285
|
+
var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
5279
5286
|
_inherits(DailyMotion, _Component);
|
|
5280
5287
|
|
|
5281
|
-
|
|
5282
|
-
var _getPrototypeOf2;
|
|
5288
|
+
var _super = _createSuper(DailyMotion);
|
|
5283
5289
|
|
|
5290
|
+
function DailyMotion() {
|
|
5284
5291
|
var _this;
|
|
5285
5292
|
|
|
5286
5293
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5289,7 +5296,7 @@ function (_Component) {
|
|
|
5289
5296
|
args[_key] = arguments[_key];
|
|
5290
5297
|
}
|
|
5291
5298
|
|
|
5292
|
-
_this =
|
|
5299
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5293
5300
|
|
|
5294
5301
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5295
5302
|
|
|
@@ -5418,9 +5425,9 @@ function (_Component) {
|
|
|
5418
5425
|
height: '100%',
|
|
5419
5426
|
display: display
|
|
5420
5427
|
};
|
|
5421
|
-
return _react["default"].createElement("div", {
|
|
5428
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5422
5429
|
style: style
|
|
5423
|
-
}, _react["default"].createElement("div", {
|
|
5430
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
5424
5431
|
ref: this.ref
|
|
5425
5432
|
}));
|
|
5426
5433
|
}
|
|
@@ -5478,12 +5485,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5478
5485
|
|
|
5479
5486
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5480
5487
|
|
|
5481
|
-
function
|
|
5488
|
+
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); }; }
|
|
5482
5489
|
|
|
5483
|
-
function
|
|
5490
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5484
5491
|
|
|
5485
5492
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5486
5493
|
|
|
5494
|
+
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; } }
|
|
5495
|
+
|
|
5496
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5497
|
+
|
|
5487
5498
|
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); }
|
|
5488
5499
|
|
|
5489
5500
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5494,14 +5505,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5494
5505
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5495
5506
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5496
5507
|
|
|
5497
|
-
var Mixcloud =
|
|
5498
|
-
/*#__PURE__*/
|
|
5499
|
-
function (_Component) {
|
|
5508
|
+
var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
5500
5509
|
_inherits(Mixcloud, _Component);
|
|
5501
5510
|
|
|
5502
|
-
|
|
5503
|
-
var _getPrototypeOf2;
|
|
5511
|
+
var _super = _createSuper(Mixcloud);
|
|
5504
5512
|
|
|
5513
|
+
function Mixcloud() {
|
|
5505
5514
|
var _this;
|
|
5506
5515
|
|
|
5507
5516
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5510,7 +5519,7 @@ function (_Component) {
|
|
|
5510
5519
|
args[_key] = arguments[_key];
|
|
5511
5520
|
}
|
|
5512
5521
|
|
|
5513
|
-
_this =
|
|
5522
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5514
5523
|
|
|
5515
5524
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5516
5525
|
|
|
@@ -5613,7 +5622,7 @@ function (_Component) {
|
|
|
5613
5622
|
})); // We have to give the iframe a key here to prevent a
|
|
5614
5623
|
// weird dialog appearing when loading a new track
|
|
5615
5624
|
|
|
5616
|
-
return _react["default"].createElement("iframe", {
|
|
5625
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
5617
5626
|
key: id,
|
|
5618
5627
|
ref: this.ref,
|
|
5619
5628
|
style: style,
|
|
@@ -5673,23 +5682,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5673
5682
|
|
|
5674
5683
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5675
5684
|
|
|
5676
|
-
function
|
|
5685
|
+
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); }; }
|
|
5677
5686
|
|
|
5678
|
-
function
|
|
5687
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5679
5688
|
|
|
5680
5689
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5681
5690
|
|
|
5691
|
+
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; } }
|
|
5692
|
+
|
|
5693
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5694
|
+
|
|
5682
5695
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
5683
5696
|
|
|
5684
5697
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5685
5698
|
|
|
5686
5699
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5687
5700
|
|
|
5701
|
+
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; } } }; }
|
|
5702
|
+
|
|
5703
|
+
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); }
|
|
5704
|
+
|
|
5705
|
+
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; }
|
|
5706
|
+
|
|
5688
5707
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5689
5708
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5690
5709
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5691
5710
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5692
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5711
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
|
|
5693
5712
|
var HLS_GLOBAL = 'Hls';
|
|
5694
5713
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5695
5714
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5698,12 +5717,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5698
5717
|
|
|
5699
5718
|
function canPlay(url) {
|
|
5700
5719
|
if (url instanceof Array) {
|
|
5701
|
-
var
|
|
5702
|
-
|
|
5703
|
-
var _iteratorError = undefined;
|
|
5720
|
+
var _iterator = _createForOfIteratorHelper(url),
|
|
5721
|
+
_step;
|
|
5704
5722
|
|
|
5705
5723
|
try {
|
|
5706
|
-
for (
|
|
5724
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5707
5725
|
var item = _step.value;
|
|
5708
5726
|
|
|
5709
5727
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5715,18 +5733,9 @@ function canPlay(url) {
|
|
|
5715
5733
|
}
|
|
5716
5734
|
}
|
|
5717
5735
|
} catch (err) {
|
|
5718
|
-
|
|
5719
|
-
_iteratorError = err;
|
|
5736
|
+
_iterator.e(err);
|
|
5720
5737
|
} finally {
|
|
5721
|
-
|
|
5722
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5723
|
-
_iterator["return"]();
|
|
5724
|
-
}
|
|
5725
|
-
} finally {
|
|
5726
|
-
if (_didIteratorError) {
|
|
5727
|
-
throw _iteratorError;
|
|
5728
|
-
}
|
|
5729
|
-
}
|
|
5738
|
+
_iterator.f();
|
|
5730
5739
|
}
|
|
5731
5740
|
|
|
5732
5741
|
return false;
|
|
@@ -5750,14 +5759,12 @@ function canEnablePIP(url) {
|
|
|
5750
5759
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5751
5760
|
}
|
|
5752
5761
|
|
|
5753
|
-
var FilePlayer =
|
|
5754
|
-
/*#__PURE__*/
|
|
5755
|
-
function (_Component) {
|
|
5762
|
+
var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
5756
5763
|
_inherits(FilePlayer, _Component);
|
|
5757
5764
|
|
|
5758
|
-
|
|
5759
|
-
var _getPrototypeOf2;
|
|
5765
|
+
var _super = _createSuper(FilePlayer);
|
|
5760
5766
|
|
|
5767
|
+
function FilePlayer() {
|
|
5761
5768
|
var _this;
|
|
5762
5769
|
|
|
5763
5770
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5766,7 +5773,7 @@ function (_Component) {
|
|
|
5766
5773
|
_args[_key] = arguments[_key];
|
|
5767
5774
|
}
|
|
5768
5775
|
|
|
5769
|
-
_this =
|
|
5776
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5770
5777
|
|
|
5771
5778
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5772
5779
|
var _this$props;
|
|
@@ -5853,19 +5860,19 @@ function (_Component) {
|
|
|
5853
5860
|
|
|
5854
5861
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
5855
5862
|
if (typeof source === 'string') {
|
|
5856
|
-
return _react["default"].createElement("source", {
|
|
5863
|
+
return /*#__PURE__*/_react["default"].createElement("source", {
|
|
5857
5864
|
key: index,
|
|
5858
5865
|
src: source
|
|
5859
5866
|
});
|
|
5860
5867
|
}
|
|
5861
5868
|
|
|
5862
|
-
return _react["default"].createElement("source", _extends({
|
|
5869
|
+
return /*#__PURE__*/_react["default"].createElement("source", _extends({
|
|
5863
5870
|
key: index
|
|
5864
5871
|
}, source));
|
|
5865
5872
|
});
|
|
5866
5873
|
|
|
5867
5874
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
5868
|
-
return _react["default"].createElement("track", _extends({
|
|
5875
|
+
return /*#__PURE__*/_react["default"].createElement("track", _extends({
|
|
5869
5876
|
key: index
|
|
5870
5877
|
}, track));
|
|
5871
5878
|
});
|
|
@@ -5903,6 +5910,10 @@ function (_Component) {
|
|
|
5903
5910
|
key: "componentWillUnmount",
|
|
5904
5911
|
value: function componentWillUnmount() {
|
|
5905
5912
|
this.removeListeners(this.player);
|
|
5913
|
+
|
|
5914
|
+
if (this.hls) {
|
|
5915
|
+
this.hls.destroy();
|
|
5916
|
+
}
|
|
5906
5917
|
}
|
|
5907
5918
|
}, {
|
|
5908
5919
|
key: "addListeners",
|
|
@@ -6033,10 +6044,6 @@ function (_Component) {
|
|
|
6033
6044
|
value: function stop() {
|
|
6034
6045
|
this.player.removeAttribute('src');
|
|
6035
6046
|
|
|
6036
|
-
if (this.hls) {
|
|
6037
|
-
this.hls.destroy();
|
|
6038
|
-
}
|
|
6039
|
-
|
|
6040
6047
|
if (this.dash) {
|
|
6041
6048
|
this.dash.reset();
|
|
6042
6049
|
}
|
|
@@ -6148,7 +6155,7 @@ function (_Component) {
|
|
|
6148
6155
|
width: width === 'auto' ? width : '100%',
|
|
6149
6156
|
height: height === 'auto' ? height : '100%'
|
|
6150
6157
|
};
|
|
6151
|
-
return _react["default"].createElement(Element, _extends({
|
|
6158
|
+
return /*#__PURE__*/_react["default"].createElement(Element, _extends({
|
|
6152
6159
|
ref: this.ref,
|
|
6153
6160
|
src: this.getSource(url),
|
|
6154
6161
|
style: style,
|
|
@@ -6238,12 +6245,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6238
6245
|
|
|
6239
6246
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6240
6247
|
|
|
6241
|
-
function
|
|
6248
|
+
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); }; }
|
|
6242
6249
|
|
|
6243
|
-
function
|
|
6250
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6244
6251
|
|
|
6245
6252
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6246
6253
|
|
|
6254
|
+
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; } }
|
|
6255
|
+
|
|
6256
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6257
|
+
|
|
6247
6258
|
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); }
|
|
6248
6259
|
|
|
6249
6260
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6252,14 +6263,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6252
6263
|
|
|
6253
6264
|
var ICON_SIZE = '64px';
|
|
6254
6265
|
|
|
6255
|
-
var Preview =
|
|
6256
|
-
/*#__PURE__*/
|
|
6257
|
-
function (_Component) {
|
|
6266
|
+
var Preview = /*#__PURE__*/function (_Component) {
|
|
6258
6267
|
_inherits(Preview, _Component);
|
|
6259
6268
|
|
|
6260
|
-
|
|
6261
|
-
var _getPrototypeOf2;
|
|
6269
|
+
var _super = _createSuper(Preview);
|
|
6262
6270
|
|
|
6271
|
+
function Preview() {
|
|
6263
6272
|
var _this;
|
|
6264
6273
|
|
|
6265
6274
|
_classCallCheck(this, Preview);
|
|
@@ -6268,7 +6277,7 @@ function (_Component) {
|
|
|
6268
6277
|
args[_key] = arguments[_key];
|
|
6269
6278
|
}
|
|
6270
6279
|
|
|
6271
|
-
_this =
|
|
6280
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6272
6281
|
|
|
6273
6282
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6274
6283
|
|
|
@@ -6366,15 +6375,15 @@ function (_Component) {
|
|
|
6366
6375
|
}
|
|
6367
6376
|
};
|
|
6368
6377
|
|
|
6369
|
-
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6378
|
+
var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
|
|
6370
6379
|
style: styles.shadow,
|
|
6371
6380
|
className: "react-player__shadow"
|
|
6372
|
-
}, _react["default"].createElement("div", {
|
|
6381
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
6373
6382
|
style: styles.playIcon,
|
|
6374
6383
|
className: "react-player__play-icon"
|
|
6375
6384
|
}));
|
|
6376
6385
|
|
|
6377
|
-
return _react["default"].createElement("div", {
|
|
6386
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
6378
6387
|
style: styles.preview,
|
|
6379
6388
|
className: "react-player__preview",
|
|
6380
6389
|
onClick: onClick
|
|
@@ -6411,6 +6420,12 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6411
6420
|
|
|
6412
6421
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6413
6422
|
|
|
6423
|
+
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; } } }; }
|
|
6424
|
+
|
|
6425
|
+
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); }
|
|
6426
|
+
|
|
6427
|
+
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; }
|
|
6428
|
+
|
|
6414
6429
|
var PRELOAD_PLAYERS = [{
|
|
6415
6430
|
Player: YouTube_1.YouTube,
|
|
6416
6431
|
configKey: 'youtube',
|
|
@@ -6431,16 +6446,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6431
6446
|
|
|
6432
6447
|
function renderPreloadPlayers(url, controls, config) {
|
|
6433
6448
|
var players = [];
|
|
6434
|
-
|
|
6435
|
-
var
|
|
6436
|
-
|
|
6449
|
+
|
|
6450
|
+
var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
|
|
6451
|
+
_step;
|
|
6437
6452
|
|
|
6438
6453
|
try {
|
|
6439
|
-
for (
|
|
6454
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6440
6455
|
var player = _step.value;
|
|
6441
6456
|
|
|
6442
6457
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6443
|
-
players.push(_react["default"].createElement(_Player["default"], {
|
|
6458
|
+
players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
|
|
6444
6459
|
key: player.Player.displayName,
|
|
6445
6460
|
activePlayer: player.Player,
|
|
6446
6461
|
url: player.url,
|
|
@@ -6452,18 +6467,9 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6452
6467
|
}
|
|
6453
6468
|
}
|
|
6454
6469
|
} catch (err) {
|
|
6455
|
-
|
|
6456
|
-
_iteratorError = err;
|
|
6470
|
+
_iterator.e(err);
|
|
6457
6471
|
} finally {
|
|
6458
|
-
|
|
6459
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6460
|
-
_iterator["return"]();
|
|
6461
|
-
}
|
|
6462
|
-
} finally {
|
|
6463
|
-
if (_didIteratorError) {
|
|
6464
|
-
throw _iteratorError;
|
|
6465
|
-
}
|
|
6466
|
-
}
|
|
6472
|
+
_iterator.f();
|
|
6467
6473
|
}
|
|
6468
6474
|
|
|
6469
6475
|
return players;
|
|
@@ -6587,13 +6593,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6587
6593
|
|
|
6588
6594
|
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); }
|
|
6589
6595
|
|
|
6590
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6596
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6597
|
+
|
|
6598
|
+
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."); }
|
|
6599
|
+
|
|
6600
|
+
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); }
|
|
6591
6601
|
|
|
6592
|
-
function
|
|
6602
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
6593
6603
|
|
|
6594
|
-
function
|
|
6604
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6595
6605
|
|
|
6596
|
-
function
|
|
6606
|
+
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; }
|
|
6597
6607
|
|
|
6598
6608
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6599
6609
|
|
|
@@ -6601,12 +6611,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6601
6611
|
|
|
6602
6612
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6603
6613
|
|
|
6604
|
-
function
|
|
6614
|
+
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); }; }
|
|
6605
6615
|
|
|
6606
|
-
function
|
|
6616
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6607
6617
|
|
|
6608
6618
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6609
6619
|
|
|
6620
|
+
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; } }
|
|
6621
|
+
|
|
6622
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6623
|
+
|
|
6610
6624
|
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); }
|
|
6611
6625
|
|
|
6612
6626
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6616,14 +6630,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6616
6630
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6617
6631
|
var customPlayers = [];
|
|
6618
6632
|
|
|
6619
|
-
var ReactPlayer =
|
|
6620
|
-
/*#__PURE__*/
|
|
6621
|
-
function (_Component) {
|
|
6633
|
+
var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
6622
6634
|
_inherits(ReactPlayer, _Component);
|
|
6623
6635
|
|
|
6624
|
-
|
|
6625
|
-
var _getPrototypeOf2;
|
|
6636
|
+
var _super = _createSuper(ReactPlayer);
|
|
6626
6637
|
|
|
6638
|
+
function ReactPlayer() {
|
|
6627
6639
|
var _this;
|
|
6628
6640
|
|
|
6629
6641
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6632,7 +6644,7 @@ function (_Component) {
|
|
|
6632
6644
|
args[_key] = arguments[_key];
|
|
6633
6645
|
}
|
|
6634
6646
|
|
|
6635
|
-
_this =
|
|
6647
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6636
6648
|
|
|
6637
6649
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6638
6650
|
|
|
@@ -6743,7 +6755,7 @@ function (_Component) {
|
|
|
6743
6755
|
key: "renderActivePlayer",
|
|
6744
6756
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6745
6757
|
if (!url) return null;
|
|
6746
|
-
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6758
|
+
return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6747
6759
|
key: activePlayer.displayName,
|
|
6748
6760
|
ref: this.activePlayerRef,
|
|
6749
6761
|
config: this.config,
|
|
@@ -6780,14 +6792,14 @@ function (_Component) {
|
|
|
6780
6792
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6781
6793
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6782
6794
|
|
|
6783
|
-
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6795
|
+
var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
|
|
6784
6796
|
url: url,
|
|
6785
6797
|
light: light,
|
|
6786
6798
|
playIcon: playIcon,
|
|
6787
6799
|
onClick: this.handleClickPreview
|
|
6788
6800
|
});
|
|
6789
6801
|
|
|
6790
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
6802
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
6791
6803
|
ref: this.wrapperRef,
|
|
6792
6804
|
style: _objectSpread({}, style, {
|
|
6793
6805
|
width: width,
|
|
@@ -7335,7 +7347,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7335
7347
|
{ className: 'mb-3' },
|
|
7336
7348
|
nodes.videos[series - 1].title
|
|
7337
7349
|
),
|
|
7338
|
-
nodes.videos[series - 1] && nodes.videos[series - 1].text && React__default.createElement(BlockContent, _extends
|
|
7350
|
+
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()))
|
|
7339
7351
|
),
|
|
7340
7352
|
React__default.createElement(
|
|
7341
7353
|
'style',
|
|
@@ -7463,7 +7475,7 @@ var Poll = function Poll(_ref) {
|
|
|
7463
7475
|
);
|
|
7464
7476
|
};
|
|
7465
7477
|
|
|
7466
|
-
var numberOfPaginations =
|
|
7478
|
+
var numberOfPaginations = main_38 ? 4 : 10;
|
|
7467
7479
|
|
|
7468
7480
|
var Quiz = function Quiz(_ref) {
|
|
7469
7481
|
var quizzes = _ref.quizzes,
|
|
@@ -7576,7 +7588,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
7576
7588
|
var renderPagination = function renderPagination() {
|
|
7577
7589
|
return React__default.createElement(
|
|
7578
7590
|
Pagination,
|
|
7579
|
-
{ className: 'p-0 m-0', size:
|
|
7591
|
+
{ className: 'p-0 m-0', size: main_38 && 'sm' },
|
|
7580
7592
|
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7581
7593
|
return changePage('first');
|
|
7582
7594
|
}, disabled: currentPage === 1 }),
|
|
@@ -7806,7 +7818,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
7806
7818
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
7807
7819
|
React__default.createElement(
|
|
7808
7820
|
'a',
|
|
7809
|
-
_extends
|
|
7821
|
+
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
7810
7822
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
7811
7823
|
React__default.createElement(
|
|
7812
7824
|
'div',
|
|
@@ -8082,7 +8094,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8082
8094
|
|
|
8083
8095
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8084
8096
|
if (biography) {
|
|
8085
|
-
return React__default.createElement(BlockContent, _extends
|
|
8097
|
+
return React__default.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8086
8098
|
}
|
|
8087
8099
|
};
|
|
8088
8100
|
|
|
@@ -8136,7 +8148,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8136
8148
|
//const activeArticle = path
|
|
8137
8149
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8138
8150
|
|
|
8139
|
-
if (!
|
|
8151
|
+
if (!main_39) {
|
|
8140
8152
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8141
8153
|
if (window.googletag && googletag.pubadsReady) {
|
|
8142
8154
|
lib_3.refresh();
|
|
@@ -8144,7 +8156,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8144
8156
|
});
|
|
8145
8157
|
}
|
|
8146
8158
|
//Refresh leaderboard ad on mobile
|
|
8147
|
-
if (
|
|
8159
|
+
if (main_39) {
|
|
8148
8160
|
var leaderboardSlotId = '';
|
|
8149
8161
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8150
8162
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8219,7 +8231,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8219
8231
|
React__default.createElement(
|
|
8220
8232
|
'div',
|
|
8221
8233
|
{ className: 'mt-2 mb-2' },
|
|
8222
|
-
React__default.createElement(BlockContent, _extends
|
|
8234
|
+
React__default.createElement(BlockContent, _extends({
|
|
8223
8235
|
serializers: getSerializers,
|
|
8224
8236
|
videoAccountIDs: accountIDs,
|
|
8225
8237
|
blocks: article.text,
|
|
@@ -8386,7 +8398,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
8386
8398
|
React__default.createElement(
|
|
8387
8399
|
'style',
|
|
8388
8400
|
{ jsx: 'true' },
|
|
8389
|
-
'\n figure-caption {\n font-size: 90%;\n color: #6c757d;\n }\n /*Eliminates padding, centers the thumbnail */\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index:
|
|
8401
|
+
'\n figure-caption {\n font-size: 90%;\n color: #6c757d;\n }\n /*Eliminates padding, centers the thumbnail */\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
|
|
8390
8402
|
)
|
|
8391
8403
|
);
|
|
8392
8404
|
};
|
|
@@ -8416,7 +8428,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
8416
8428
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
8417
8429
|
React__default.createElement(
|
|
8418
8430
|
'a',
|
|
8419
|
-
_extends
|
|
8431
|
+
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
8420
8432
|
React__default.createElement(
|
|
8421
8433
|
'div',
|
|
8422
8434
|
{ className: 'multi-figure-image-container' },
|