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