@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
|
@@ -4,25 +4,25 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
|
|
|
4
4
|
|
|
5
5
|
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
6
6
|
var toConsumableArray = require('./toConsumableArray-bee80df5.js');
|
|
7
|
-
var _extends
|
|
8
|
-
var inherits = require('./inherits-
|
|
7
|
+
var _extends = require('./extends-60837c34.js');
|
|
8
|
+
var inherits = require('./inherits-93684212.js');
|
|
9
9
|
var React = require('react');
|
|
10
10
|
var React__default = _interopDefault(React);
|
|
11
|
-
var index = require('./index-
|
|
11
|
+
var index = require('./index-f7ee1612.js');
|
|
12
12
|
var PropTypes = _interopDefault(require('prop-types'));
|
|
13
13
|
var Row = _interopDefault(require('react-bootstrap/Row'));
|
|
14
14
|
var Col = _interopDefault(require('react-bootstrap/Col'));
|
|
15
|
-
var moment = require('./moment-
|
|
15
|
+
var moment = require('./moment-66a6a284.js');
|
|
16
16
|
var Router = require('next/router');
|
|
17
17
|
var Router__default = _interopDefault(Router);
|
|
18
|
-
var index$1 = require('./index-
|
|
18
|
+
var index$1 = require('./index-b5eb3ff8.js');
|
|
19
19
|
var index$2 = require('./index-fa0fb52c.js');
|
|
20
|
-
var main = require('./main-
|
|
20
|
+
var main = require('./main-bc4db521.js');
|
|
21
21
|
var entities = require('./entities-310b46ee.js');
|
|
22
22
|
var slicedToArray = require('./slicedToArray-8063ee51.js');
|
|
23
23
|
var Segment = require('./beam-d22818d3.js');
|
|
24
24
|
var AdSlot = require('./AdSlot.js');
|
|
25
|
-
var BlockContent = require('./BlockContent-
|
|
25
|
+
var BlockContent = require('./BlockContent-f942392e.js');
|
|
26
26
|
var smoothscroll = require('./smoothscroll-95231a70.js');
|
|
27
27
|
var GroupDeck = require('./GroupDeck.js');
|
|
28
28
|
var reactBootstrap = require('react-bootstrap');
|
|
@@ -94,21 +94,18 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
94
94
|
);
|
|
95
95
|
};
|
|
96
96
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
// do not edit .js files directly - edit src/index.jst
|
|
98
|
+
|
|
99
|
+
|
|
100
100
|
|
|
101
101
|
var fastDeepEqual = function equal(a, b) {
|
|
102
102
|
if (a === b) return true;
|
|
103
103
|
|
|
104
104
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
105
|
-
|
|
106
|
-
, arrB = isArray(b)
|
|
107
|
-
, i
|
|
108
|
-
, length
|
|
109
|
-
, key;
|
|
105
|
+
if (a.constructor !== b.constructor) return false;
|
|
110
106
|
|
|
111
|
-
|
|
107
|
+
var length, i, keys;
|
|
108
|
+
if (Array.isArray(a)) {
|
|
112
109
|
length = a.length;
|
|
113
110
|
if (length != b.length) return false;
|
|
114
111
|
for (i = length; i-- !== 0;)
|
|
@@ -116,35 +113,29 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
116
113
|
return true;
|
|
117
114
|
}
|
|
118
115
|
|
|
119
|
-
if (arrA != arrB) return false;
|
|
120
116
|
|
|
121
|
-
var dateA = a instanceof Date
|
|
122
|
-
, dateB = b instanceof Date;
|
|
123
|
-
if (dateA != dateB) return false;
|
|
124
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
125
117
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
if (
|
|
129
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
118
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
119
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
120
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
130
121
|
|
|
131
|
-
|
|
122
|
+
keys = Object.keys(a);
|
|
132
123
|
length = keys.length;
|
|
133
|
-
|
|
134
|
-
if (length !== keyList(b).length)
|
|
135
|
-
return false;
|
|
124
|
+
if (length !== Object.keys(b).length) return false;
|
|
136
125
|
|
|
137
126
|
for (i = length; i-- !== 0;)
|
|
138
|
-
if (!
|
|
127
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
139
128
|
|
|
140
129
|
for (i = length; i-- !== 0;) {
|
|
141
|
-
key = keys[i];
|
|
130
|
+
var key = keys[i];
|
|
131
|
+
|
|
142
132
|
if (!equal(a[key], b[key])) return false;
|
|
143
133
|
}
|
|
144
134
|
|
|
145
135
|
return true;
|
|
146
136
|
}
|
|
147
137
|
|
|
138
|
+
// true if both NaN, false otherwise
|
|
148
139
|
return a!==a && b!==b;
|
|
149
140
|
};
|
|
150
141
|
|
|
@@ -1567,199 +1558,235 @@ module.exports = exports['default'];
|
|
|
1567
1558
|
|
|
1568
1559
|
var youTubePlayer = _commonjsHelpers.unwrapExports(dist);
|
|
1569
1560
|
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
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; };
|
|
1561
|
+
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); }
|
|
1573
1562
|
|
|
1574
1563
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1575
1564
|
|
|
1576
|
-
function
|
|
1565
|
+
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); } }
|
|
1566
|
+
|
|
1567
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1568
|
+
|
|
1569
|
+
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); }; }
|
|
1570
|
+
|
|
1571
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1572
|
+
|
|
1573
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1574
|
+
|
|
1575
|
+
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; } }
|
|
1576
|
+
|
|
1577
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1578
|
+
|
|
1579
|
+
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); }
|
|
1580
|
+
|
|
1581
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1582
|
+
|
|
1583
|
+
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; }
|
|
1577
1584
|
|
|
1578
|
-
function
|
|
1585
|
+
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; }
|
|
1579
1586
|
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
*
|
|
1583
|
-
*
|
|
1584
|
-
* @param {Object}
|
|
1587
|
+
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; }
|
|
1588
|
+
/**
|
|
1589
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1590
|
+
*
|
|
1591
|
+
* @param {Object} prevProps
|
|
1592
|
+
* @param {Object} props
|
|
1585
1593
|
*/
|
|
1594
|
+
|
|
1586
1595
|
function shouldUpdateVideo(prevProps, props) {
|
|
1587
1596
|
// A changing video should always trigger an update
|
|
1588
1597
|
if (prevProps.videoId !== props.videoId) {
|
|
1589
1598
|
return true;
|
|
1590
|
-
}
|
|
1591
|
-
|
|
1592
|
-
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1599
|
+
} // Otherwise, a change in the start/end time playerVars also requires a player
|
|
1593
1600
|
// update.
|
|
1601
|
+
|
|
1602
|
+
|
|
1594
1603
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1595
1604
|
var vars = props.opts.playerVars || {};
|
|
1596
|
-
|
|
1597
1605
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1598
1606
|
}
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
*
|
|
1602
|
-
*
|
|
1603
|
-
*
|
|
1604
|
-
*
|
|
1605
|
-
* @param {Object} opts
|
|
1607
|
+
/**
|
|
1608
|
+
* Neutralize API options that only require a video update, leaving only options
|
|
1609
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1610
|
+
* player reset is necessary.
|
|
1611
|
+
*
|
|
1612
|
+
* @param {Object} opts
|
|
1606
1613
|
*/
|
|
1614
|
+
|
|
1615
|
+
|
|
1607
1616
|
function filterResetOptions(opts) {
|
|
1608
|
-
return
|
|
1609
|
-
playerVars:
|
|
1617
|
+
return _objectSpread({}, opts, {
|
|
1618
|
+
playerVars: _objectSpread({}, opts.playerVars, {
|
|
1610
1619
|
autoplay: 0,
|
|
1611
1620
|
start: 0,
|
|
1612
1621
|
end: 0
|
|
1613
1622
|
})
|
|
1614
1623
|
});
|
|
1615
1624
|
}
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
*
|
|
1619
|
-
*
|
|
1620
|
-
*
|
|
1621
|
-
*
|
|
1622
|
-
*
|
|
1623
|
-
* @param {Object}
|
|
1624
|
-
* @param {Object} props
|
|
1625
|
+
/**
|
|
1626
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1627
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1628
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1629
|
+
* those.
|
|
1630
|
+
*
|
|
1631
|
+
* @param {Object} prevProps
|
|
1632
|
+
* @param {Object} props
|
|
1625
1633
|
*/
|
|
1634
|
+
|
|
1635
|
+
|
|
1626
1636
|
function shouldResetPlayer(prevProps, props) {
|
|
1627
1637
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1628
1638
|
}
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
*
|
|
1632
|
-
*
|
|
1633
|
-
* @param {Object}
|
|
1634
|
-
* @param {Object} props
|
|
1639
|
+
/**
|
|
1640
|
+
* Check whether a props change should result in an id or className update.
|
|
1641
|
+
*
|
|
1642
|
+
* @param {Object} prevProps
|
|
1643
|
+
* @param {Object} props
|
|
1635
1644
|
*/
|
|
1645
|
+
|
|
1646
|
+
|
|
1636
1647
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1637
1648
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1638
1649
|
}
|
|
1639
1650
|
|
|
1640
|
-
var YouTube = function (_React$Component) {
|
|
1651
|
+
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
1641
1652
|
_inherits(YouTube, _React$Component);
|
|
1642
1653
|
|
|
1654
|
+
var _super = _createSuper(YouTube);
|
|
1655
|
+
|
|
1656
|
+
/**
|
|
1657
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1658
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1659
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1660
|
+
*/
|
|
1643
1661
|
function YouTube(props) {
|
|
1662
|
+
var _this;
|
|
1663
|
+
|
|
1644
1664
|
_classCallCheck(this, YouTube);
|
|
1645
1665
|
|
|
1646
|
-
|
|
1666
|
+
_this = _super.call(this, props);
|
|
1647
1667
|
|
|
1648
|
-
_this
|
|
1668
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
|
|
1649
1669
|
return _this.props.onReady(event);
|
|
1650
|
-
};
|
|
1670
|
+
});
|
|
1651
1671
|
|
|
1652
|
-
_this
|
|
1672
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
|
|
1653
1673
|
return _this.props.onError(event);
|
|
1654
|
-
};
|
|
1674
|
+
});
|
|
1655
1675
|
|
|
1656
|
-
_this
|
|
1676
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
|
|
1657
1677
|
_this.props.onStateChange(event);
|
|
1658
|
-
switch (event.data) {
|
|
1659
1678
|
|
|
1679
|
+
switch (event.data) {
|
|
1660
1680
|
case YouTube.PlayerState.ENDED:
|
|
1661
1681
|
_this.props.onEnd(event);
|
|
1682
|
+
|
|
1662
1683
|
break;
|
|
1663
1684
|
|
|
1664
1685
|
case YouTube.PlayerState.PLAYING:
|
|
1665
1686
|
_this.props.onPlay(event);
|
|
1687
|
+
|
|
1666
1688
|
break;
|
|
1667
1689
|
|
|
1668
1690
|
case YouTube.PlayerState.PAUSED:
|
|
1669
1691
|
_this.props.onPause(event);
|
|
1692
|
+
|
|
1670
1693
|
break;
|
|
1671
1694
|
}
|
|
1672
|
-
};
|
|
1695
|
+
});
|
|
1673
1696
|
|
|
1674
|
-
_this
|
|
1697
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
|
|
1675
1698
|
return _this.props.onPlaybackRateChange(event);
|
|
1676
|
-
};
|
|
1699
|
+
});
|
|
1677
1700
|
|
|
1678
|
-
_this
|
|
1701
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
|
|
1679
1702
|
return _this.props.onPlaybackQualityChange(event);
|
|
1680
|
-
};
|
|
1703
|
+
});
|
|
1681
1704
|
|
|
1682
|
-
_this
|
|
1705
|
+
_defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
|
|
1683
1706
|
// do not attempt to create a player server-side, it won't work
|
|
1684
|
-
if (typeof document === 'undefined') return;
|
|
1685
|
-
|
|
1686
|
-
var playerOpts =
|
|
1707
|
+
if (typeof document === 'undefined') return; // create player
|
|
1708
|
+
|
|
1709
|
+
var playerOpts = _objectSpread({}, _this.props.opts, {
|
|
1687
1710
|
// preload the `videoId` video if one is already given
|
|
1688
1711
|
videoId: _this.props.videoId
|
|
1689
1712
|
});
|
|
1690
|
-
|
|
1691
|
-
// attach event handlers
|
|
1713
|
+
|
|
1714
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
|
|
1715
|
+
|
|
1692
1716
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1717
|
+
|
|
1693
1718
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1719
|
+
|
|
1694
1720
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1721
|
+
|
|
1695
1722
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1723
|
+
|
|
1696
1724
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1697
|
-
};
|
|
1725
|
+
});
|
|
1698
1726
|
|
|
1699
|
-
_this
|
|
1727
|
+
_defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
|
|
1700
1728
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1701
|
-
};
|
|
1729
|
+
});
|
|
1702
1730
|
|
|
1703
|
-
_this
|
|
1731
|
+
_defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
|
|
1704
1732
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1705
1733
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1706
1734
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1707
1735
|
});
|
|
1708
|
-
};
|
|
1736
|
+
});
|
|
1709
1737
|
|
|
1710
|
-
_this
|
|
1738
|
+
_defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
|
|
1711
1739
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1712
1740
|
_this.internalPlayer.stopVideo();
|
|
1741
|
+
|
|
1713
1742
|
return;
|
|
1714
|
-
}
|
|
1743
|
+
} // set queueing options
|
|
1744
|
+
|
|
1715
1745
|
|
|
1716
|
-
// set queueing options
|
|
1717
1746
|
var autoplay = false;
|
|
1718
1747
|
var opts = {
|
|
1719
1748
|
videoId: _this.props.videoId
|
|
1720
1749
|
};
|
|
1750
|
+
|
|
1721
1751
|
if ('playerVars' in _this.props.opts) {
|
|
1722
1752
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1753
|
+
|
|
1723
1754
|
if ('start' in _this.props.opts.playerVars) {
|
|
1724
1755
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1725
1756
|
}
|
|
1757
|
+
|
|
1726
1758
|
if ('end' in _this.props.opts.playerVars) {
|
|
1727
1759
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1728
1760
|
}
|
|
1729
|
-
}
|
|
1761
|
+
} // if autoplay is enabled loadVideoById
|
|
1762
|
+
|
|
1730
1763
|
|
|
1731
|
-
// if autoplay is enabled loadVideoById
|
|
1732
1764
|
if (autoplay) {
|
|
1733
1765
|
_this.internalPlayer.loadVideoById(opts);
|
|
1766
|
+
|
|
1734
1767
|
return;
|
|
1735
|
-
}
|
|
1736
|
-
|
|
1768
|
+
} // default behaviour just cues the video
|
|
1769
|
+
|
|
1770
|
+
|
|
1737
1771
|
_this.internalPlayer.cueVideoById(opts);
|
|
1738
|
-
};
|
|
1772
|
+
});
|
|
1739
1773
|
|
|
1740
|
-
_this
|
|
1774
|
+
_defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
|
|
1741
1775
|
_this.container = container;
|
|
1742
|
-
};
|
|
1776
|
+
});
|
|
1743
1777
|
|
|
1744
1778
|
_this.container = null;
|
|
1745
1779
|
_this.internalPlayer = null;
|
|
1746
1780
|
return _this;
|
|
1747
1781
|
}
|
|
1748
1782
|
|
|
1749
|
-
/**
|
|
1750
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1751
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1752
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1753
|
-
*/
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
1783
|
_createClass(YouTube, [{
|
|
1757
|
-
key:
|
|
1784
|
+
key: "componentDidMount",
|
|
1758
1785
|
value: function componentDidMount() {
|
|
1759
1786
|
this.createPlayer();
|
|
1760
1787
|
}
|
|
1761
1788
|
}, {
|
|
1762
|
-
key:
|
|
1789
|
+
key: "componentDidUpdate",
|
|
1763
1790
|
value: function componentDidUpdate(prevProps) {
|
|
1764
1791
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1765
1792
|
this.updatePlayer();
|
|
@@ -1774,112 +1801,58 @@ var YouTube = function (_React$Component) {
|
|
|
1774
1801
|
}
|
|
1775
1802
|
}
|
|
1776
1803
|
}, {
|
|
1777
|
-
key:
|
|
1804
|
+
key: "componentWillUnmount",
|
|
1778
1805
|
value: function componentWillUnmount() {
|
|
1779
|
-
/**
|
|
1780
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1781
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1782
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1783
|
-
* this method isn't quick enough to reset the container element.
|
|
1806
|
+
/**
|
|
1807
|
+
* Note: The `youtube-player` package that is used promisifies all YouTube
|
|
1808
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1809
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1810
|
+
* this method isn't quick enough to reset the container element.
|
|
1784
1811
|
*/
|
|
1785
1812
|
this.internalPlayer.destroy();
|
|
1786
1813
|
}
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
*
|
|
1790
|
-
*
|
|
1791
|
-
*
|
|
1792
|
-
* @param {Object} target - player object
|
|
1793
|
-
*/
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
/**
|
|
1797
|
-
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1798
|
-
*
|
|
1799
|
-
* @param {Object} event
|
|
1800
|
-
* @param {Integer} data - error type
|
|
1801
|
-
* @param {Object} target - player object
|
|
1802
|
-
*/
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
/**
|
|
1806
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1807
|
-
*
|
|
1808
|
-
* @param {Object} event
|
|
1809
|
-
* @param {Integer} data - status change type
|
|
1810
|
-
* @param {Object} target - actual YT player
|
|
1811
|
-
*/
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
/**
|
|
1815
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1816
|
-
*
|
|
1817
|
-
* @param {Object} event
|
|
1818
|
-
* @param {Float} data - playback rate
|
|
1819
|
-
* @param {Object} target - actual YT player
|
|
1820
|
-
*/
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
/**
|
|
1824
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1825
|
-
*
|
|
1826
|
-
* @param {Object} event
|
|
1827
|
-
* @param {String} data - playback quality
|
|
1828
|
-
* @param {Object} target - actual YT player
|
|
1829
|
-
*/
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
/**
|
|
1833
|
-
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1834
|
-
*/
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
/**
|
|
1838
|
-
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1839
|
-
*/
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
/**
|
|
1843
|
-
* Method to update the id and class of the Youtube Player iframe.
|
|
1844
|
-
* React should update this automatically but since the Youtube Player API
|
|
1845
|
-
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1846
|
-
*/
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
/**
|
|
1850
|
-
* Call Youtube Player API methods to update the currently playing video.
|
|
1851
|
-
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1852
|
-
* Youtube Player API methods to update the video.
|
|
1814
|
+
/**
|
|
1815
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1816
|
+
*
|
|
1817
|
+
* @param {Object} event
|
|
1818
|
+
* @param {Object} target - player object
|
|
1853
1819
|
*/
|
|
1854
1820
|
|
|
1855
1821
|
}, {
|
|
1856
|
-
key:
|
|
1822
|
+
key: "render",
|
|
1857
1823
|
value: function render() {
|
|
1858
|
-
return React__default.createElement(
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1824
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1825
|
+
className: this.props.containerClassName
|
|
1826
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1827
|
+
id: this.props.id,
|
|
1828
|
+
className: this.props.className,
|
|
1829
|
+
ref: this.refContainer
|
|
1830
|
+
}));
|
|
1863
1831
|
}
|
|
1864
1832
|
}]);
|
|
1865
1833
|
|
|
1866
1834
|
return YouTube;
|
|
1867
1835
|
}(React__default.Component);
|
|
1868
1836
|
|
|
1837
|
+
_defineProperty(YouTube, "PlayerState", {
|
|
1838
|
+
UNSTARTED: -1,
|
|
1839
|
+
ENDED: 0,
|
|
1840
|
+
PLAYING: 1,
|
|
1841
|
+
PAUSED: 2,
|
|
1842
|
+
BUFFERING: 3,
|
|
1843
|
+
CUED: 5
|
|
1844
|
+
});
|
|
1845
|
+
|
|
1869
1846
|
YouTube.propTypes = {
|
|
1870
1847
|
videoId: PropTypes.string,
|
|
1871
|
-
|
|
1872
1848
|
// custom ID for player element
|
|
1873
1849
|
id: PropTypes.string,
|
|
1874
|
-
|
|
1875
1850
|
// custom class name for player element
|
|
1876
1851
|
className: PropTypes.string,
|
|
1877
1852
|
// custom class name for player container element
|
|
1878
1853
|
containerClassName: PropTypes.string,
|
|
1879
|
-
|
|
1880
1854
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1881
1855
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1882
|
-
|
|
1883
1856
|
// event subscriptions
|
|
1884
1857
|
onReady: PropTypes.func,
|
|
1885
1858
|
onError: PropTypes.func,
|
|
@@ -1891,6 +1864,7 @@ YouTube.propTypes = {
|
|
|
1891
1864
|
onPlaybackQualityChange: PropTypes.func
|
|
1892
1865
|
};
|
|
1893
1866
|
YouTube.defaultProps = {
|
|
1867
|
+
videoId: null,
|
|
1894
1868
|
id: null,
|
|
1895
1869
|
className: null,
|
|
1896
1870
|
opts: {},
|
|
@@ -1904,14 +1878,6 @@ YouTube.defaultProps = {
|
|
|
1904
1878
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1905
1879
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1906
1880
|
};
|
|
1907
|
-
YouTube.PlayerState = {
|
|
1908
|
-
UNSTARTED: -1,
|
|
1909
|
-
ENDED: 0,
|
|
1910
|
-
PLAYING: 1,
|
|
1911
|
-
PAUSED: 2,
|
|
1912
|
-
BUFFERING: 3,
|
|
1913
|
-
CUED: 5
|
|
1914
|
-
};
|
|
1915
1881
|
|
|
1916
1882
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1917
1883
|
var url = _ref.url;
|
|
@@ -2172,7 +2138,7 @@ var Media = function Media(_ref) {
|
|
|
2172
2138
|
React__default.createElement(
|
|
2173
2139
|
'a',
|
|
2174
2140
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2175
|
-
React__default.createElement(reactBootstrap.Figure.Image, _extends
|
|
2141
|
+
React__default.createElement(reactBootstrap.Figure.Image, _extends._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt })),
|
|
2176
2142
|
caption && React__default.createElement(
|
|
2177
2143
|
reactBootstrap.Figure.Caption,
|
|
2178
2144
|
{ className: 'media-caption' },
|
|
@@ -2183,7 +2149,7 @@ var Media = function Media(_ref) {
|
|
|
2183
2149
|
} else if (caption && caption !== '') {
|
|
2184
2150
|
return React__default.createElement(
|
|
2185
2151
|
'a',
|
|
2186
|
-
_extends
|
|
2152
|
+
_extends._extends({}, uploadDoc.downloadMedia ? {
|
|
2187
2153
|
href: uploadDoc.asset.url + '?dl='
|
|
2188
2154
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2189
2155
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2744,11 +2710,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2744
2710
|
|
|
2745
2711
|
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; }
|
|
2746
2712
|
|
|
2747
|
-
function
|
|
2713
|
+
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; } } }; }
|
|
2714
|
+
|
|
2715
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2716
|
+
|
|
2717
|
+
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."); }
|
|
2748
2718
|
|
|
2749
|
-
function
|
|
2719
|
+
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); }
|
|
2750
2720
|
|
|
2751
|
-
function
|
|
2721
|
+
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; }
|
|
2722
|
+
|
|
2723
|
+
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; }
|
|
2752
2724
|
|
|
2753
2725
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2754
2726
|
|
|
@@ -2878,12 +2850,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
2878
2850
|
|
|
2879
2851
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
2880
2852
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
2881
|
-
|
|
2882
|
-
var
|
|
2883
|
-
|
|
2853
|
+
|
|
2854
|
+
var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
|
|
2855
|
+
_step;
|
|
2884
2856
|
|
|
2885
2857
|
try {
|
|
2886
|
-
for (
|
|
2858
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
2887
2859
|
var p = _step.value;
|
|
2888
2860
|
|
|
2889
2861
|
if (props$1[p]) {
|
|
@@ -2898,18 +2870,9 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
2898
2870
|
}
|
|
2899
2871
|
}
|
|
2900
2872
|
} catch (err) {
|
|
2901
|
-
|
|
2902
|
-
_iteratorError = err;
|
|
2873
|
+
_iterator.e(err);
|
|
2903
2874
|
} finally {
|
|
2904
|
-
|
|
2905
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
2906
|
-
_iterator["return"]();
|
|
2907
|
-
}
|
|
2908
|
-
} finally {
|
|
2909
|
-
if (_didIteratorError) {
|
|
2910
|
-
throw _iteratorError;
|
|
2911
|
-
}
|
|
2912
|
-
}
|
|
2875
|
+
_iterator.f();
|
|
2913
2876
|
}
|
|
2914
2877
|
|
|
2915
2878
|
return config;
|
|
@@ -3056,12 +3019,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3056
3019
|
|
|
3057
3020
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3058
3021
|
|
|
3059
|
-
function
|
|
3022
|
+
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); }; }
|
|
3060
3023
|
|
|
3061
|
-
function
|
|
3024
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3062
3025
|
|
|
3063
3026
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3064
3027
|
|
|
3028
|
+
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; } }
|
|
3029
|
+
|
|
3030
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3031
|
+
|
|
3065
3032
|
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); }
|
|
3066
3033
|
|
|
3067
3034
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3070,14 +3037,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3070
3037
|
|
|
3071
3038
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3072
3039
|
|
|
3073
|
-
var Player =
|
|
3074
|
-
/*#__PURE__*/
|
|
3075
|
-
function (_Component) {
|
|
3040
|
+
var Player = /*#__PURE__*/function (_Component) {
|
|
3076
3041
|
_inherits(Player, _Component);
|
|
3077
3042
|
|
|
3078
|
-
|
|
3079
|
-
var _getPrototypeOf2;
|
|
3043
|
+
var _super = _createSuper(Player);
|
|
3080
3044
|
|
|
3045
|
+
function Player() {
|
|
3081
3046
|
var _this;
|
|
3082
3047
|
|
|
3083
3048
|
_classCallCheck(this, Player);
|
|
@@ -3086,7 +3051,7 @@ function (_Component) {
|
|
|
3086
3051
|
_args[_key] = arguments[_key];
|
|
3087
3052
|
}
|
|
3088
3053
|
|
|
3089
|
-
_this =
|
|
3054
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
3090
3055
|
|
|
3091
3056
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3092
3057
|
|
|
@@ -3411,7 +3376,7 @@ function (_Component) {
|
|
|
3411
3376
|
return null;
|
|
3412
3377
|
}
|
|
3413
3378
|
|
|
3414
|
-
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3379
|
+
return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
|
|
3415
3380
|
ref: this.ref,
|
|
3416
3381
|
onReady: this.handleReady,
|
|
3417
3382
|
onPlay: this.handlePlay,
|
|
@@ -3472,12 +3437,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3472
3437
|
|
|
3473
3438
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3474
3439
|
|
|
3475
|
-
function
|
|
3440
|
+
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); }; }
|
|
3476
3441
|
|
|
3477
|
-
function
|
|
3442
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3478
3443
|
|
|
3479
3444
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3480
3445
|
|
|
3446
|
+
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; } }
|
|
3447
|
+
|
|
3448
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3449
|
+
|
|
3481
3450
|
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); }
|
|
3482
3451
|
|
|
3483
3452
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3489,14 +3458,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3489
3458
|
function createSinglePlayer(activePlayer) {
|
|
3490
3459
|
var _class, _temp;
|
|
3491
3460
|
|
|
3492
|
-
return _temp = _class =
|
|
3493
|
-
/*#__PURE__*/
|
|
3494
|
-
function (_Component) {
|
|
3461
|
+
return _temp = _class = /*#__PURE__*/function (_Component) {
|
|
3495
3462
|
_inherits(SinglePlayer, _Component);
|
|
3496
3463
|
|
|
3497
|
-
|
|
3498
|
-
var _getPrototypeOf2;
|
|
3464
|
+
var _super = _createSuper(SinglePlayer);
|
|
3499
3465
|
|
|
3466
|
+
function SinglePlayer() {
|
|
3500
3467
|
var _this;
|
|
3501
3468
|
|
|
3502
3469
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3505,7 +3472,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3505
3472
|
args[_key] = arguments[_key];
|
|
3506
3473
|
}
|
|
3507
3474
|
|
|
3508
|
-
_this =
|
|
3475
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3509
3476
|
|
|
3510
3477
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3511
3478
|
|
|
@@ -3573,12 +3540,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3573
3540
|
height = _this$props.height,
|
|
3574
3541
|
Wrapper = _this$props.wrapper;
|
|
3575
3542
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3576
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
3543
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
3577
3544
|
style: _objectSpread({}, style, {
|
|
3578
3545
|
width: width,
|
|
3579
3546
|
height: height
|
|
3580
3547
|
})
|
|
3581
|
-
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3548
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3582
3549
|
ref: this.ref,
|
|
3583
3550
|
activePlayer: activePlayer,
|
|
3584
3551
|
config: this.config
|
|
@@ -3624,23 +3591,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3624
3591
|
|
|
3625
3592
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3626
3593
|
|
|
3627
|
-
function
|
|
3594
|
+
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); }; }
|
|
3628
3595
|
|
|
3629
|
-
function
|
|
3596
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3630
3597
|
|
|
3631
3598
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3632
3599
|
|
|
3600
|
+
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; } }
|
|
3601
|
+
|
|
3602
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3603
|
+
|
|
3633
3604
|
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); }
|
|
3634
3605
|
|
|
3635
3606
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3636
3607
|
|
|
3637
3608
|
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; }
|
|
3638
3609
|
|
|
3639
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3610
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3640
3611
|
|
|
3641
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3612
|
+
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."); }
|
|
3642
3613
|
|
|
3643
|
-
function
|
|
3614
|
+
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); }
|
|
3615
|
+
|
|
3616
|
+
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; }
|
|
3617
|
+
|
|
3618
|
+
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; }
|
|
3644
3619
|
|
|
3645
3620
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3646
3621
|
|
|
@@ -3665,14 +3640,12 @@ function parsePlaylist(url) {
|
|
|
3665
3640
|
return {};
|
|
3666
3641
|
}
|
|
3667
3642
|
|
|
3668
|
-
var YouTube =
|
|
3669
|
-
/*#__PURE__*/
|
|
3670
|
-
function (_Component) {
|
|
3643
|
+
var YouTube = /*#__PURE__*/function (_Component) {
|
|
3671
3644
|
_inherits(YouTube, _Component);
|
|
3672
3645
|
|
|
3673
|
-
|
|
3674
|
-
var _getPrototypeOf2;
|
|
3646
|
+
var _super = _createSuper(YouTube);
|
|
3675
3647
|
|
|
3648
|
+
function YouTube() {
|
|
3676
3649
|
var _this;
|
|
3677
3650
|
|
|
3678
3651
|
_classCallCheck(this, YouTube);
|
|
@@ -3681,7 +3654,7 @@ function (_Component) {
|
|
|
3681
3654
|
args[_key] = arguments[_key];
|
|
3682
3655
|
}
|
|
3683
3656
|
|
|
3684
|
-
_this =
|
|
3657
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3685
3658
|
|
|
3686
3659
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3687
3660
|
|
|
@@ -3869,9 +3842,9 @@ function (_Component) {
|
|
|
3869
3842
|
height: '100%',
|
|
3870
3843
|
display: display
|
|
3871
3844
|
};
|
|
3872
|
-
return _react["default"].createElement("div", {
|
|
3845
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
3873
3846
|
style: style
|
|
3874
|
-
}, _react["default"].createElement("div", {
|
|
3847
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
3875
3848
|
ref: this.ref
|
|
3876
3849
|
}));
|
|
3877
3850
|
}
|
|
@@ -3927,12 +3900,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3927
3900
|
|
|
3928
3901
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3929
3902
|
|
|
3930
|
-
function
|
|
3903
|
+
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); }; }
|
|
3931
3904
|
|
|
3932
|
-
function
|
|
3905
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3933
3906
|
|
|
3934
3907
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3935
3908
|
|
|
3909
|
+
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; } }
|
|
3910
|
+
|
|
3911
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3912
|
+
|
|
3936
3913
|
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); }
|
|
3937
3914
|
|
|
3938
3915
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3941,16 +3918,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3941
3918
|
|
|
3942
3919
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
3943
3920
|
var SDK_GLOBAL = 'SC';
|
|
3944
|
-
var MATCH_URL = /(soundcloud\.com|snd\.sc)
|
|
3921
|
+
var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
3945
3922
|
|
|
3946
|
-
var SoundCloud =
|
|
3947
|
-
/*#__PURE__*/
|
|
3948
|
-
function (_Component) {
|
|
3923
|
+
var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
3949
3924
|
_inherits(SoundCloud, _Component);
|
|
3950
3925
|
|
|
3951
|
-
|
|
3952
|
-
var _getPrototypeOf2;
|
|
3926
|
+
var _super = _createSuper(SoundCloud);
|
|
3953
3927
|
|
|
3928
|
+
function SoundCloud() {
|
|
3954
3929
|
var _this;
|
|
3955
3930
|
|
|
3956
3931
|
_classCallCheck(this, SoundCloud);
|
|
@@ -3959,7 +3934,7 @@ function (_Component) {
|
|
|
3959
3934
|
args[_key] = arguments[_key];
|
|
3960
3935
|
}
|
|
3961
3936
|
|
|
3962
|
-
_this =
|
|
3937
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3963
3938
|
|
|
3964
3939
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3965
3940
|
|
|
@@ -4080,7 +4055,7 @@ function (_Component) {
|
|
|
4080
4055
|
height: '100%',
|
|
4081
4056
|
display: display
|
|
4082
4057
|
};
|
|
4083
|
-
return _react["default"].createElement("iframe", {
|
|
4058
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4084
4059
|
ref: this.ref,
|
|
4085
4060
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4086
4061
|
style: style,
|
|
@@ -4142,12 +4117,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4142
4117
|
|
|
4143
4118
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4144
4119
|
|
|
4145
|
-
function
|
|
4120
|
+
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); }; }
|
|
4146
4121
|
|
|
4147
|
-
function
|
|
4122
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4148
4123
|
|
|
4149
4124
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4150
4125
|
|
|
4126
|
+
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; } }
|
|
4127
|
+
|
|
4128
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4129
|
+
|
|
4151
4130
|
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); }
|
|
4152
4131
|
|
|
4153
4132
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4159,14 +4138,12 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4159
4138
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4160
4139
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4161
4140
|
|
|
4162
|
-
var Vimeo =
|
|
4163
|
-
/*#__PURE__*/
|
|
4164
|
-
function (_Component) {
|
|
4141
|
+
var Vimeo = /*#__PURE__*/function (_Component) {
|
|
4165
4142
|
_inherits(Vimeo, _Component);
|
|
4166
4143
|
|
|
4167
|
-
|
|
4168
|
-
var _getPrototypeOf2;
|
|
4144
|
+
var _super = _createSuper(Vimeo);
|
|
4169
4145
|
|
|
4146
|
+
function Vimeo() {
|
|
4170
4147
|
var _this;
|
|
4171
4148
|
|
|
4172
4149
|
_classCallCheck(this, Vimeo);
|
|
@@ -4175,7 +4152,7 @@ function (_Component) {
|
|
|
4175
4152
|
args[_key] = arguments[_key];
|
|
4176
4153
|
}
|
|
4177
4154
|
|
|
4178
|
-
_this =
|
|
4155
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4179
4156
|
|
|
4180
4157
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4181
4158
|
|
|
@@ -4332,7 +4309,7 @@ function (_Component) {
|
|
|
4332
4309
|
overflow: 'hidden',
|
|
4333
4310
|
display: display
|
|
4334
4311
|
};
|
|
4335
|
-
return _react["default"].createElement("div", {
|
|
4312
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4336
4313
|
key: this.props.url,
|
|
4337
4314
|
ref: this.ref,
|
|
4338
4315
|
style: style
|
|
@@ -4392,12 +4369,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4392
4369
|
|
|
4393
4370
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4394
4371
|
|
|
4395
|
-
function
|
|
4372
|
+
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); }; }
|
|
4396
4373
|
|
|
4397
|
-
function
|
|
4374
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4398
4375
|
|
|
4399
4376
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4400
4377
|
|
|
4378
|
+
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; } }
|
|
4379
|
+
|
|
4380
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4381
|
+
|
|
4401
4382
|
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); }
|
|
4402
4383
|
|
|
4403
4384
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4410,14 +4391,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4410
4391
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4411
4392
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4412
4393
|
|
|
4413
|
-
var Facebook =
|
|
4414
|
-
/*#__PURE__*/
|
|
4415
|
-
function (_Component) {
|
|
4394
|
+
var Facebook = /*#__PURE__*/function (_Component) {
|
|
4416
4395
|
_inherits(Facebook, _Component);
|
|
4417
4396
|
|
|
4418
|
-
|
|
4419
|
-
var _getPrototypeOf2;
|
|
4397
|
+
var _super = _createSuper(Facebook);
|
|
4420
4398
|
|
|
4399
|
+
function Facebook() {
|
|
4421
4400
|
var _this;
|
|
4422
4401
|
|
|
4423
4402
|
_classCallCheck(this, Facebook);
|
|
@@ -4426,7 +4405,7 @@ function (_Component) {
|
|
|
4426
4405
|
args[_key] = arguments[_key];
|
|
4427
4406
|
}
|
|
4428
4407
|
|
|
4429
|
-
_this =
|
|
4408
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4430
4409
|
|
|
4431
4410
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4432
4411
|
|
|
@@ -4542,7 +4521,7 @@ function (_Component) {
|
|
|
4542
4521
|
width: '100%',
|
|
4543
4522
|
height: '100%'
|
|
4544
4523
|
};
|
|
4545
|
-
return _react["default"].createElement("div", {
|
|
4524
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4546
4525
|
style: style,
|
|
4547
4526
|
id: this.playerID,
|
|
4548
4527
|
className: "fb-video",
|
|
@@ -4602,12 +4581,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4602
4581
|
|
|
4603
4582
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4604
4583
|
|
|
4605
|
-
function
|
|
4584
|
+
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); }; }
|
|
4606
4585
|
|
|
4607
|
-
function
|
|
4586
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4608
4587
|
|
|
4609
4588
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4610
4589
|
|
|
4590
|
+
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; } }
|
|
4591
|
+
|
|
4592
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4593
|
+
|
|
4611
4594
|
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); }
|
|
4612
4595
|
|
|
4613
4596
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4618,14 +4601,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4618
4601
|
var SDK_GLOBAL = 'playerjs';
|
|
4619
4602
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4620
4603
|
|
|
4621
|
-
var Streamable =
|
|
4622
|
-
/*#__PURE__*/
|
|
4623
|
-
function (_Component) {
|
|
4604
|
+
var Streamable = /*#__PURE__*/function (_Component) {
|
|
4624
4605
|
_inherits(Streamable, _Component);
|
|
4625
4606
|
|
|
4626
|
-
|
|
4627
|
-
var _getPrototypeOf2;
|
|
4607
|
+
var _super = _createSuper(Streamable);
|
|
4628
4608
|
|
|
4609
|
+
function Streamable() {
|
|
4629
4610
|
var _this;
|
|
4630
4611
|
|
|
4631
4612
|
_classCallCheck(this, Streamable);
|
|
@@ -4634,7 +4615,7 @@ function (_Component) {
|
|
|
4634
4615
|
args[_key] = arguments[_key];
|
|
4635
4616
|
}
|
|
4636
4617
|
|
|
4637
|
-
_this =
|
|
4618
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4638
4619
|
|
|
4639
4620
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4640
4621
|
|
|
@@ -4754,7 +4735,7 @@ function (_Component) {
|
|
|
4754
4735
|
width: '100%',
|
|
4755
4736
|
height: '100%'
|
|
4756
4737
|
};
|
|
4757
|
-
return _react["default"].createElement("iframe", {
|
|
4738
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4758
4739
|
ref: this.ref,
|
|
4759
4740
|
src: "https://streamable.com/o/".concat(id),
|
|
4760
4741
|
frameBorder: "0",
|
|
@@ -4815,12 +4796,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4815
4796
|
|
|
4816
4797
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4817
4798
|
|
|
4818
|
-
function
|
|
4799
|
+
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); }; }
|
|
4819
4800
|
|
|
4820
|
-
function
|
|
4801
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4821
4802
|
|
|
4822
4803
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4823
4804
|
|
|
4805
|
+
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; } }
|
|
4806
|
+
|
|
4807
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4808
|
+
|
|
4824
4809
|
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); }
|
|
4825
4810
|
|
|
4826
4811
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4831,26 +4816,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4831
4816
|
var SDK_GLOBAL = 'Wistia';
|
|
4832
4817
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4833
4818
|
|
|
4834
|
-
var Wistia =
|
|
4835
|
-
/*#__PURE__*/
|
|
4836
|
-
function (_Component) {
|
|
4819
|
+
var Wistia = /*#__PURE__*/function (_Component) {
|
|
4837
4820
|
_inherits(Wistia, _Component);
|
|
4838
4821
|
|
|
4839
|
-
|
|
4840
|
-
var _getPrototypeOf2;
|
|
4822
|
+
var _super = _createSuper(Wistia);
|
|
4841
4823
|
|
|
4824
|
+
function Wistia() {
|
|
4842
4825
|
var _this;
|
|
4843
4826
|
|
|
4844
4827
|
_classCallCheck(this, Wistia);
|
|
4845
4828
|
|
|
4846
|
-
for (var _len = arguments.length,
|
|
4847
|
-
|
|
4829
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4830
|
+
_args[_key] = arguments[_key];
|
|
4848
4831
|
}
|
|
4849
4832
|
|
|
4850
|
-
_this =
|
|
4833
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
4851
4834
|
|
|
4852
4835
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4853
4836
|
|
|
4837
|
+
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4838
|
+
var _this$props;
|
|
4839
|
+
|
|
4840
|
+
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4841
|
+
});
|
|
4842
|
+
|
|
4843
|
+
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4844
|
+
var _this$props2;
|
|
4845
|
+
|
|
4846
|
+
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4847
|
+
});
|
|
4848
|
+
|
|
4849
|
+
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
4850
|
+
var _this$props3;
|
|
4851
|
+
|
|
4852
|
+
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
4853
|
+
});
|
|
4854
|
+
|
|
4855
|
+
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
4856
|
+
var _this$props4;
|
|
4857
|
+
|
|
4858
|
+
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
4859
|
+
});
|
|
4860
|
+
|
|
4854
4861
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
4855
4862
|
_this.callPlayer('mute');
|
|
4856
4863
|
});
|
|
@@ -4872,17 +4879,13 @@ function (_Component) {
|
|
|
4872
4879
|
value: function load(url) {
|
|
4873
4880
|
var _this2 = this;
|
|
4874
4881
|
|
|
4875
|
-
var _this$
|
|
4876
|
-
playing = _this$
|
|
4877
|
-
muted = _this$
|
|
4878
|
-
controls = _this$
|
|
4879
|
-
_onReady = _this$
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
onSeek = _this$props.onSeek,
|
|
4883
|
-
onEnded = _this$props.onEnded,
|
|
4884
|
-
config = _this$props.config,
|
|
4885
|
-
onError = _this$props.onError;
|
|
4882
|
+
var _this$props5 = this.props,
|
|
4883
|
+
playing = _this$props5.playing,
|
|
4884
|
+
muted = _this$props5.muted,
|
|
4885
|
+
controls = _this$props5.controls,
|
|
4886
|
+
_onReady = _this$props5.onReady,
|
|
4887
|
+
config = _this$props5.config,
|
|
4888
|
+
onError = _this$props5.onError;
|
|
4886
4889
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
4887
4890
|
window._wq = window._wq || [];
|
|
4888
4891
|
|
|
@@ -4899,19 +4902,28 @@ function (_Component) {
|
|
|
4899
4902
|
|
|
4900
4903
|
_this2.unbind();
|
|
4901
4904
|
|
|
4902
|
-
_this2.player.bind('play', onPlay);
|
|
4905
|
+
_this2.player.bind('play', _this2.onPlay);
|
|
4903
4906
|
|
|
4904
|
-
_this2.player.bind('pause', onPause);
|
|
4907
|
+
_this2.player.bind('pause', _this2.onPause);
|
|
4905
4908
|
|
|
4906
|
-
_this2.player.bind('seek', onSeek);
|
|
4909
|
+
_this2.player.bind('seek', _this2.onSeek);
|
|
4907
4910
|
|
|
4908
|
-
_this2.player.bind('end', onEnded);
|
|
4911
|
+
_this2.player.bind('end', _this2.onEnded);
|
|
4909
4912
|
|
|
4910
4913
|
_onReady();
|
|
4911
4914
|
}
|
|
4912
4915
|
});
|
|
4913
4916
|
}, onError);
|
|
4914
4917
|
}
|
|
4918
|
+
}, {
|
|
4919
|
+
key: "unbind",
|
|
4920
|
+
value: function unbind() {
|
|
4921
|
+
this.player.unbind('play', this.onPlay);
|
|
4922
|
+
this.player.unbind('pause', this.onPause);
|
|
4923
|
+
this.player.unbind('seek', this.onSeek);
|
|
4924
|
+
this.player.unbind('end', this.onEnded);
|
|
4925
|
+
} // Proxy methods to prevent listener leaks
|
|
4926
|
+
|
|
4915
4927
|
}, {
|
|
4916
4928
|
key: "play",
|
|
4917
4929
|
value: function play() {
|
|
@@ -4922,19 +4934,6 @@ function (_Component) {
|
|
|
4922
4934
|
value: function pause() {
|
|
4923
4935
|
this.callPlayer('pause');
|
|
4924
4936
|
}
|
|
4925
|
-
}, {
|
|
4926
|
-
key: "unbind",
|
|
4927
|
-
value: function unbind() {
|
|
4928
|
-
var _this$props2 = this.props,
|
|
4929
|
-
onPlay = _this$props2.onPlay,
|
|
4930
|
-
onPause = _this$props2.onPause,
|
|
4931
|
-
onSeek = _this$props2.onSeek,
|
|
4932
|
-
onEnded = _this$props2.onEnded;
|
|
4933
|
-
this.player.unbind('play', onPlay);
|
|
4934
|
-
this.player.unbind('pause', onPause);
|
|
4935
|
-
this.player.unbind('seek', onSeek);
|
|
4936
|
-
this.player.unbind('end', onEnded);
|
|
4937
|
-
}
|
|
4938
4937
|
}, {
|
|
4939
4938
|
key: "stop",
|
|
4940
4939
|
value: function stop() {
|
|
@@ -4980,7 +4979,7 @@ function (_Component) {
|
|
|
4980
4979
|
width: '100%',
|
|
4981
4980
|
height: '100%'
|
|
4982
4981
|
};
|
|
4983
|
-
return _react["default"].createElement("div", {
|
|
4982
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4984
4983
|
key: id,
|
|
4985
4984
|
className: className,
|
|
4986
4985
|
style: style
|
|
@@ -5040,12 +5039,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5040
5039
|
|
|
5041
5040
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5042
5041
|
|
|
5043
|
-
function
|
|
5042
|
+
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); }; }
|
|
5044
5043
|
|
|
5045
|
-
function
|
|
5044
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5046
5045
|
|
|
5047
5046
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5048
5047
|
|
|
5048
|
+
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; } }
|
|
5049
|
+
|
|
5050
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5051
|
+
|
|
5049
5052
|
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); }
|
|
5050
5053
|
|
|
5051
5054
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5058,14 +5061,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5058
5061
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5059
5062
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5060
5063
|
|
|
5061
|
-
var Twitch =
|
|
5062
|
-
/*#__PURE__*/
|
|
5063
|
-
function (_Component) {
|
|
5064
|
+
var Twitch = /*#__PURE__*/function (_Component) {
|
|
5064
5065
|
_inherits(Twitch, _Component);
|
|
5065
5066
|
|
|
5066
|
-
|
|
5067
|
-
var _getPrototypeOf2;
|
|
5067
|
+
var _super = _createSuper(Twitch);
|
|
5068
5068
|
|
|
5069
|
+
function Twitch() {
|
|
5069
5070
|
var _this;
|
|
5070
5071
|
|
|
5071
5072
|
_classCallCheck(this, Twitch);
|
|
@@ -5074,7 +5075,7 @@ function (_Component) {
|
|
|
5074
5075
|
args[_key] = arguments[_key];
|
|
5075
5076
|
}
|
|
5076
5077
|
|
|
5077
|
-
_this =
|
|
5078
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5078
5079
|
|
|
5079
5080
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5080
5081
|
|
|
@@ -5195,7 +5196,7 @@ function (_Component) {
|
|
|
5195
5196
|
width: '100%',
|
|
5196
5197
|
height: '100%'
|
|
5197
5198
|
};
|
|
5198
|
-
return _react["default"].createElement("div", {
|
|
5199
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5199
5200
|
style: style,
|
|
5200
5201
|
id: this.playerID
|
|
5201
5202
|
});
|
|
@@ -5248,11 +5249,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5248
5249
|
|
|
5249
5250
|
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; }
|
|
5250
5251
|
|
|
5251
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5252
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5253
|
+
|
|
5254
|
+
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."); }
|
|
5252
5255
|
|
|
5253
|
-
function
|
|
5256
|
+
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); }
|
|
5254
5257
|
|
|
5255
|
-
function
|
|
5258
|
+
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; }
|
|
5259
|
+
|
|
5260
|
+
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; }
|
|
5256
5261
|
|
|
5257
5262
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5258
5263
|
|
|
@@ -5262,12 +5267,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5262
5267
|
|
|
5263
5268
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5264
5269
|
|
|
5265
|
-
function
|
|
5270
|
+
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); }; }
|
|
5266
5271
|
|
|
5267
|
-
function
|
|
5272
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5268
5273
|
|
|
5269
5274
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5270
5275
|
|
|
5276
|
+
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; } }
|
|
5277
|
+
|
|
5278
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5279
|
+
|
|
5271
5280
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
5272
5281
|
|
|
5273
5282
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5279,14 +5288,12 @@ var SDK_GLOBAL = 'DM';
|
|
|
5279
5288
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5280
5289
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5281
5290
|
|
|
5282
|
-
var DailyMotion =
|
|
5283
|
-
/*#__PURE__*/
|
|
5284
|
-
function (_Component) {
|
|
5291
|
+
var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
5285
5292
|
_inherits(DailyMotion, _Component);
|
|
5286
5293
|
|
|
5287
|
-
|
|
5288
|
-
var _getPrototypeOf2;
|
|
5294
|
+
var _super = _createSuper(DailyMotion);
|
|
5289
5295
|
|
|
5296
|
+
function DailyMotion() {
|
|
5290
5297
|
var _this;
|
|
5291
5298
|
|
|
5292
5299
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5295,7 +5302,7 @@ function (_Component) {
|
|
|
5295
5302
|
args[_key] = arguments[_key];
|
|
5296
5303
|
}
|
|
5297
5304
|
|
|
5298
|
-
_this =
|
|
5305
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5299
5306
|
|
|
5300
5307
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5301
5308
|
|
|
@@ -5424,9 +5431,9 @@ function (_Component) {
|
|
|
5424
5431
|
height: '100%',
|
|
5425
5432
|
display: display
|
|
5426
5433
|
};
|
|
5427
|
-
return _react["default"].createElement("div", {
|
|
5434
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5428
5435
|
style: style
|
|
5429
|
-
}, _react["default"].createElement("div", {
|
|
5436
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
5430
5437
|
ref: this.ref
|
|
5431
5438
|
}));
|
|
5432
5439
|
}
|
|
@@ -5484,12 +5491,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5484
5491
|
|
|
5485
5492
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5486
5493
|
|
|
5487
|
-
function
|
|
5494
|
+
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); }; }
|
|
5488
5495
|
|
|
5489
|
-
function
|
|
5496
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5490
5497
|
|
|
5491
5498
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5492
5499
|
|
|
5500
|
+
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; } }
|
|
5501
|
+
|
|
5502
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5503
|
+
|
|
5493
5504
|
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); }
|
|
5494
5505
|
|
|
5495
5506
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5500,14 +5511,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5500
5511
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5501
5512
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5502
5513
|
|
|
5503
|
-
var Mixcloud =
|
|
5504
|
-
/*#__PURE__*/
|
|
5505
|
-
function (_Component) {
|
|
5514
|
+
var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
5506
5515
|
_inherits(Mixcloud, _Component);
|
|
5507
5516
|
|
|
5508
|
-
|
|
5509
|
-
var _getPrototypeOf2;
|
|
5517
|
+
var _super = _createSuper(Mixcloud);
|
|
5510
5518
|
|
|
5519
|
+
function Mixcloud() {
|
|
5511
5520
|
var _this;
|
|
5512
5521
|
|
|
5513
5522
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5516,7 +5525,7 @@ function (_Component) {
|
|
|
5516
5525
|
args[_key] = arguments[_key];
|
|
5517
5526
|
}
|
|
5518
5527
|
|
|
5519
|
-
_this =
|
|
5528
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5520
5529
|
|
|
5521
5530
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5522
5531
|
|
|
@@ -5619,7 +5628,7 @@ function (_Component) {
|
|
|
5619
5628
|
})); // We have to give the iframe a key here to prevent a
|
|
5620
5629
|
// weird dialog appearing when loading a new track
|
|
5621
5630
|
|
|
5622
|
-
return _react["default"].createElement("iframe", {
|
|
5631
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
5623
5632
|
key: id,
|
|
5624
5633
|
ref: this.ref,
|
|
5625
5634
|
style: style,
|
|
@@ -5679,23 +5688,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5679
5688
|
|
|
5680
5689
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5681
5690
|
|
|
5682
|
-
function
|
|
5691
|
+
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); }; }
|
|
5683
5692
|
|
|
5684
|
-
function
|
|
5693
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5685
5694
|
|
|
5686
5695
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5687
5696
|
|
|
5697
|
+
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; } }
|
|
5698
|
+
|
|
5699
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5700
|
+
|
|
5688
5701
|
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); }
|
|
5689
5702
|
|
|
5690
5703
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5691
5704
|
|
|
5692
5705
|
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; }
|
|
5693
5706
|
|
|
5707
|
+
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; } } }; }
|
|
5708
|
+
|
|
5709
|
+
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); }
|
|
5710
|
+
|
|
5711
|
+
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; }
|
|
5712
|
+
|
|
5694
5713
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5695
5714
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5696
5715
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5697
5716
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5698
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5717
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
|
|
5699
5718
|
var HLS_GLOBAL = 'Hls';
|
|
5700
5719
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5701
5720
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5704,12 +5723,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5704
5723
|
|
|
5705
5724
|
function canPlay(url) {
|
|
5706
5725
|
if (url instanceof Array) {
|
|
5707
|
-
var
|
|
5708
|
-
|
|
5709
|
-
var _iteratorError = undefined;
|
|
5726
|
+
var _iterator = _createForOfIteratorHelper(url),
|
|
5727
|
+
_step;
|
|
5710
5728
|
|
|
5711
5729
|
try {
|
|
5712
|
-
for (
|
|
5730
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5713
5731
|
var item = _step.value;
|
|
5714
5732
|
|
|
5715
5733
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5721,18 +5739,9 @@ function canPlay(url) {
|
|
|
5721
5739
|
}
|
|
5722
5740
|
}
|
|
5723
5741
|
} catch (err) {
|
|
5724
|
-
|
|
5725
|
-
_iteratorError = err;
|
|
5742
|
+
_iterator.e(err);
|
|
5726
5743
|
} finally {
|
|
5727
|
-
|
|
5728
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5729
|
-
_iterator["return"]();
|
|
5730
|
-
}
|
|
5731
|
-
} finally {
|
|
5732
|
-
if (_didIteratorError) {
|
|
5733
|
-
throw _iteratorError;
|
|
5734
|
-
}
|
|
5735
|
-
}
|
|
5744
|
+
_iterator.f();
|
|
5736
5745
|
}
|
|
5737
5746
|
|
|
5738
5747
|
return false;
|
|
@@ -5756,14 +5765,12 @@ function canEnablePIP(url) {
|
|
|
5756
5765
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5757
5766
|
}
|
|
5758
5767
|
|
|
5759
|
-
var FilePlayer =
|
|
5760
|
-
/*#__PURE__*/
|
|
5761
|
-
function (_Component) {
|
|
5768
|
+
var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
5762
5769
|
_inherits(FilePlayer, _Component);
|
|
5763
5770
|
|
|
5764
|
-
|
|
5765
|
-
var _getPrototypeOf2;
|
|
5771
|
+
var _super = _createSuper(FilePlayer);
|
|
5766
5772
|
|
|
5773
|
+
function FilePlayer() {
|
|
5767
5774
|
var _this;
|
|
5768
5775
|
|
|
5769
5776
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5772,7 +5779,7 @@ function (_Component) {
|
|
|
5772
5779
|
_args[_key] = arguments[_key];
|
|
5773
5780
|
}
|
|
5774
5781
|
|
|
5775
|
-
_this =
|
|
5782
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5776
5783
|
|
|
5777
5784
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5778
5785
|
var _this$props;
|
|
@@ -5859,19 +5866,19 @@ function (_Component) {
|
|
|
5859
5866
|
|
|
5860
5867
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
5861
5868
|
if (typeof source === 'string') {
|
|
5862
|
-
return _react["default"].createElement("source", {
|
|
5869
|
+
return /*#__PURE__*/_react["default"].createElement("source", {
|
|
5863
5870
|
key: index,
|
|
5864
5871
|
src: source
|
|
5865
5872
|
});
|
|
5866
5873
|
}
|
|
5867
5874
|
|
|
5868
|
-
return _react["default"].createElement("source", _extends({
|
|
5875
|
+
return /*#__PURE__*/_react["default"].createElement("source", _extends({
|
|
5869
5876
|
key: index
|
|
5870
5877
|
}, source));
|
|
5871
5878
|
});
|
|
5872
5879
|
|
|
5873
5880
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
5874
|
-
return _react["default"].createElement("track", _extends({
|
|
5881
|
+
return /*#__PURE__*/_react["default"].createElement("track", _extends({
|
|
5875
5882
|
key: index
|
|
5876
5883
|
}, track));
|
|
5877
5884
|
});
|
|
@@ -5909,6 +5916,10 @@ function (_Component) {
|
|
|
5909
5916
|
key: "componentWillUnmount",
|
|
5910
5917
|
value: function componentWillUnmount() {
|
|
5911
5918
|
this.removeListeners(this.player);
|
|
5919
|
+
|
|
5920
|
+
if (this.hls) {
|
|
5921
|
+
this.hls.destroy();
|
|
5922
|
+
}
|
|
5912
5923
|
}
|
|
5913
5924
|
}, {
|
|
5914
5925
|
key: "addListeners",
|
|
@@ -6039,10 +6050,6 @@ function (_Component) {
|
|
|
6039
6050
|
value: function stop() {
|
|
6040
6051
|
this.player.removeAttribute('src');
|
|
6041
6052
|
|
|
6042
|
-
if (this.hls) {
|
|
6043
|
-
this.hls.destroy();
|
|
6044
|
-
}
|
|
6045
|
-
|
|
6046
6053
|
if (this.dash) {
|
|
6047
6054
|
this.dash.reset();
|
|
6048
6055
|
}
|
|
@@ -6154,7 +6161,7 @@ function (_Component) {
|
|
|
6154
6161
|
width: width === 'auto' ? width : '100%',
|
|
6155
6162
|
height: height === 'auto' ? height : '100%'
|
|
6156
6163
|
};
|
|
6157
|
-
return _react["default"].createElement(Element, _extends({
|
|
6164
|
+
return /*#__PURE__*/_react["default"].createElement(Element, _extends({
|
|
6158
6165
|
ref: this.ref,
|
|
6159
6166
|
src: this.getSource(url),
|
|
6160
6167
|
style: style,
|
|
@@ -6244,12 +6251,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6244
6251
|
|
|
6245
6252
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6246
6253
|
|
|
6247
|
-
function
|
|
6254
|
+
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); }; }
|
|
6248
6255
|
|
|
6249
|
-
function
|
|
6256
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6250
6257
|
|
|
6251
6258
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6252
6259
|
|
|
6260
|
+
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; } }
|
|
6261
|
+
|
|
6262
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6263
|
+
|
|
6253
6264
|
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); }
|
|
6254
6265
|
|
|
6255
6266
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6258,14 +6269,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6258
6269
|
|
|
6259
6270
|
var ICON_SIZE = '64px';
|
|
6260
6271
|
|
|
6261
|
-
var Preview =
|
|
6262
|
-
/*#__PURE__*/
|
|
6263
|
-
function (_Component) {
|
|
6272
|
+
var Preview = /*#__PURE__*/function (_Component) {
|
|
6264
6273
|
_inherits(Preview, _Component);
|
|
6265
6274
|
|
|
6266
|
-
|
|
6267
|
-
var _getPrototypeOf2;
|
|
6275
|
+
var _super = _createSuper(Preview);
|
|
6268
6276
|
|
|
6277
|
+
function Preview() {
|
|
6269
6278
|
var _this;
|
|
6270
6279
|
|
|
6271
6280
|
_classCallCheck(this, Preview);
|
|
@@ -6274,7 +6283,7 @@ function (_Component) {
|
|
|
6274
6283
|
args[_key] = arguments[_key];
|
|
6275
6284
|
}
|
|
6276
6285
|
|
|
6277
|
-
_this =
|
|
6286
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6278
6287
|
|
|
6279
6288
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6280
6289
|
|
|
@@ -6372,15 +6381,15 @@ function (_Component) {
|
|
|
6372
6381
|
}
|
|
6373
6382
|
};
|
|
6374
6383
|
|
|
6375
|
-
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6384
|
+
var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
|
|
6376
6385
|
style: styles.shadow,
|
|
6377
6386
|
className: "react-player__shadow"
|
|
6378
|
-
}, _react["default"].createElement("div", {
|
|
6387
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
6379
6388
|
style: styles.playIcon,
|
|
6380
6389
|
className: "react-player__play-icon"
|
|
6381
6390
|
}));
|
|
6382
6391
|
|
|
6383
|
-
return _react["default"].createElement("div", {
|
|
6392
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
6384
6393
|
style: styles.preview,
|
|
6385
6394
|
className: "react-player__preview",
|
|
6386
6395
|
onClick: onClick
|
|
@@ -6417,6 +6426,12 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6417
6426
|
|
|
6418
6427
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6419
6428
|
|
|
6429
|
+
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; } } }; }
|
|
6430
|
+
|
|
6431
|
+
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); }
|
|
6432
|
+
|
|
6433
|
+
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; }
|
|
6434
|
+
|
|
6420
6435
|
var PRELOAD_PLAYERS = [{
|
|
6421
6436
|
Player: YouTube_1.YouTube,
|
|
6422
6437
|
configKey: 'youtube',
|
|
@@ -6437,16 +6452,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6437
6452
|
|
|
6438
6453
|
function renderPreloadPlayers(url, controls, config) {
|
|
6439
6454
|
var players = [];
|
|
6440
|
-
|
|
6441
|
-
var
|
|
6442
|
-
|
|
6455
|
+
|
|
6456
|
+
var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
|
|
6457
|
+
_step;
|
|
6443
6458
|
|
|
6444
6459
|
try {
|
|
6445
|
-
for (
|
|
6460
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6446
6461
|
var player = _step.value;
|
|
6447
6462
|
|
|
6448
6463
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6449
|
-
players.push(_react["default"].createElement(_Player["default"], {
|
|
6464
|
+
players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
|
|
6450
6465
|
key: player.Player.displayName,
|
|
6451
6466
|
activePlayer: player.Player,
|
|
6452
6467
|
url: player.url,
|
|
@@ -6458,18 +6473,9 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6458
6473
|
}
|
|
6459
6474
|
}
|
|
6460
6475
|
} catch (err) {
|
|
6461
|
-
|
|
6462
|
-
_iteratorError = err;
|
|
6476
|
+
_iterator.e(err);
|
|
6463
6477
|
} finally {
|
|
6464
|
-
|
|
6465
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6466
|
-
_iterator["return"]();
|
|
6467
|
-
}
|
|
6468
|
-
} finally {
|
|
6469
|
-
if (_didIteratorError) {
|
|
6470
|
-
throw _iteratorError;
|
|
6471
|
-
}
|
|
6472
|
-
}
|
|
6478
|
+
_iterator.f();
|
|
6473
6479
|
}
|
|
6474
6480
|
|
|
6475
6481
|
return players;
|
|
@@ -6593,13 +6599,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6593
6599
|
|
|
6594
6600
|
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); }
|
|
6595
6601
|
|
|
6596
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6602
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6603
|
+
|
|
6604
|
+
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."); }
|
|
6605
|
+
|
|
6606
|
+
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); }
|
|
6597
6607
|
|
|
6598
|
-
function
|
|
6608
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
6599
6609
|
|
|
6600
|
-
function
|
|
6610
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6601
6611
|
|
|
6602
|
-
function
|
|
6612
|
+
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; }
|
|
6603
6613
|
|
|
6604
6614
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6605
6615
|
|
|
@@ -6607,12 +6617,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6607
6617
|
|
|
6608
6618
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6609
6619
|
|
|
6610
|
-
function
|
|
6620
|
+
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); }; }
|
|
6611
6621
|
|
|
6612
|
-
function
|
|
6622
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6613
6623
|
|
|
6614
6624
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6615
6625
|
|
|
6626
|
+
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; } }
|
|
6627
|
+
|
|
6628
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6629
|
+
|
|
6616
6630
|
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); }
|
|
6617
6631
|
|
|
6618
6632
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6622,14 +6636,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6622
6636
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6623
6637
|
var customPlayers = [];
|
|
6624
6638
|
|
|
6625
|
-
var ReactPlayer =
|
|
6626
|
-
/*#__PURE__*/
|
|
6627
|
-
function (_Component) {
|
|
6639
|
+
var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
6628
6640
|
_inherits(ReactPlayer, _Component);
|
|
6629
6641
|
|
|
6630
|
-
|
|
6631
|
-
var _getPrototypeOf2;
|
|
6642
|
+
var _super = _createSuper(ReactPlayer);
|
|
6632
6643
|
|
|
6644
|
+
function ReactPlayer() {
|
|
6633
6645
|
var _this;
|
|
6634
6646
|
|
|
6635
6647
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6638,7 +6650,7 @@ function (_Component) {
|
|
|
6638
6650
|
args[_key] = arguments[_key];
|
|
6639
6651
|
}
|
|
6640
6652
|
|
|
6641
|
-
_this =
|
|
6653
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6642
6654
|
|
|
6643
6655
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6644
6656
|
|
|
@@ -6749,7 +6761,7 @@ function (_Component) {
|
|
|
6749
6761
|
key: "renderActivePlayer",
|
|
6750
6762
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6751
6763
|
if (!url) return null;
|
|
6752
|
-
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6764
|
+
return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6753
6765
|
key: activePlayer.displayName,
|
|
6754
6766
|
ref: this.activePlayerRef,
|
|
6755
6767
|
config: this.config,
|
|
@@ -6786,14 +6798,14 @@ function (_Component) {
|
|
|
6786
6798
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6787
6799
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6788
6800
|
|
|
6789
|
-
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6801
|
+
var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
|
|
6790
6802
|
url: url,
|
|
6791
6803
|
light: light,
|
|
6792
6804
|
playIcon: playIcon,
|
|
6793
6805
|
onClick: this.handleClickPreview
|
|
6794
6806
|
});
|
|
6795
6807
|
|
|
6796
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
6808
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
6797
6809
|
ref: this.wrapperRef,
|
|
6798
6810
|
style: _objectSpread({}, style, {
|
|
6799
6811
|
width: width,
|
|
@@ -7341,7 +7353,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7341
7353
|
{ className: 'mb-3' },
|
|
7342
7354
|
nodes.videos[series - 1].title
|
|
7343
7355
|
),
|
|
7344
|
-
nodes.videos[series - 1] && nodes.videos[series - 1].text && React__default.createElement(BlockContent.BlockContent, _extends
|
|
7356
|
+
nodes.videos[series - 1] && nodes.videos[series - 1].text && React__default.createElement(BlockContent.BlockContent, _extends._extends({ serializers: getSerializers, blocks: nodes.videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7345
7357
|
),
|
|
7346
7358
|
React__default.createElement(
|
|
7347
7359
|
'style',
|
|
@@ -7469,7 +7481,7 @@ var Poll = function Poll(_ref) {
|
|
|
7469
7481
|
);
|
|
7470
7482
|
};
|
|
7471
7483
|
|
|
7472
|
-
var numberOfPaginations = main.
|
|
7484
|
+
var numberOfPaginations = main.main_38 ? 4 : 10;
|
|
7473
7485
|
|
|
7474
7486
|
var Quiz = function Quiz(_ref) {
|
|
7475
7487
|
var quizzes = _ref.quizzes,
|
|
@@ -7582,7 +7594,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
7582
7594
|
var renderPagination = function renderPagination() {
|
|
7583
7595
|
return React__default.createElement(
|
|
7584
7596
|
Pagination,
|
|
7585
|
-
{ className: 'p-0 m-0', size: main.
|
|
7597
|
+
{ className: 'p-0 m-0', size: main.main_38 && 'sm' },
|
|
7586
7598
|
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7587
7599
|
return changePage('first');
|
|
7588
7600
|
}, disabled: currentPage === 1 }),
|
|
@@ -7812,7 +7824,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
7812
7824
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
7813
7825
|
React__default.createElement(
|
|
7814
7826
|
'a',
|
|
7815
|
-
_extends
|
|
7827
|
+
_extends._extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
7816
7828
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
7817
7829
|
React__default.createElement(
|
|
7818
7830
|
'div',
|
|
@@ -8088,7 +8100,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8088
8100
|
|
|
8089
8101
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8090
8102
|
if (biography) {
|
|
8091
|
-
return React__default.createElement(BlockContent.BlockContent, _extends
|
|
8103
|
+
return React__default.createElement(BlockContent.BlockContent, _extends._extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8092
8104
|
}
|
|
8093
8105
|
};
|
|
8094
8106
|
|
|
@@ -8142,7 +8154,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8142
8154
|
//const activeArticle = path
|
|
8143
8155
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8144
8156
|
|
|
8145
|
-
if (!main.
|
|
8157
|
+
if (!main.main_39) {
|
|
8146
8158
|
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8147
8159
|
if (window.googletag && googletag.pubadsReady) {
|
|
8148
8160
|
index.lib_3.refresh();
|
|
@@ -8150,7 +8162,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8150
8162
|
});
|
|
8151
8163
|
}
|
|
8152
8164
|
//Refresh leaderboard ad on mobile
|
|
8153
|
-
if (main.
|
|
8165
|
+
if (main.main_39) {
|
|
8154
8166
|
var leaderboardSlotId = '';
|
|
8155
8167
|
index.lib_3.getGoogletag().then(function (googletag) {
|
|
8156
8168
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8225,7 +8237,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8225
8237
|
React__default.createElement(
|
|
8226
8238
|
'div',
|
|
8227
8239
|
{ className: 'mt-2 mb-2' },
|
|
8228
|
-
React__default.createElement(BlockContent.BlockContent, _extends
|
|
8240
|
+
React__default.createElement(BlockContent.BlockContent, _extends._extends({
|
|
8229
8241
|
serializers: getSerializers,
|
|
8230
8242
|
videoAccountIDs: accountIDs,
|
|
8231
8243
|
blocks: article.text,
|
|
@@ -8392,7 +8404,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
8392
8404
|
React__default.createElement(
|
|
8393
8405
|
'style',
|
|
8394
8406
|
{ jsx: 'true' },
|
|
8395
|
-
'\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:
|
|
8407
|
+
'\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 '
|
|
8396
8408
|
)
|
|
8397
8409
|
);
|
|
8398
8410
|
};
|
|
@@ -8422,7 +8434,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
8422
8434
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
8423
8435
|
React__default.createElement(
|
|
8424
8436
|
'a',
|
|
8425
|
-
_extends
|
|
8437
|
+
_extends._extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
8426
8438
|
React__default.createElement(
|
|
8427
8439
|
'div',
|
|
8428
8440
|
{ className: 'multi-figure-image-container' },
|