@mjhls/mjh-framework 1.0.433 → 1.0.435
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/{ADInfeed-99f812f9.js → ADInfeed-494f5e6b.js} +1 -1
- package/dist/cjs/{AdSlot-6b3e5d3d.js → AdSlot-4d22aad4.js} +2 -2
- package/dist/cjs/DeckContent.js +17 -17
- package/dist/cjs/DeckQueue.js +8 -8
- package/dist/cjs/{Dfp-f62806bd.js → Dfp-2399639f.js} +1 -1
- package/dist/cjs/{Figure-7277baf0.js → Figure-9e886c5b.js} +1 -1
- package/dist/cjs/{GridContent-3acca2d2.js → GridContent-f401c40f.js} +12 -12
- package/dist/cjs/GridContent.js +10 -10
- package/dist/cjs/GroupDeck.js +8 -8
- package/dist/cjs/IssueContentDeck.js +2 -2
- package/dist/cjs/IssueDeck.js +2 -2
- package/dist/cjs/MasterDeck.js +15 -15
- package/dist/cjs/{Normal-4d6a374c.js → Normal-54dd4121.js} +39 -39
- package/dist/cjs/PublicationDeck.js +1 -1
- package/dist/cjs/QueueDeckExpanded.js +10 -10
- package/dist/cjs/{TaxonomyCard-bbf7530c.js → TaxonomyCard-eb928f05.js} +1 -1
- package/dist/cjs/TaxonomyCard.js +2 -2
- package/dist/cjs/TemplateNormal.js +5 -5
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/VideoSeriesListing.js +6 -6
- package/dist/cjs/YoutubeGroup.js +7 -7
- package/dist/cjs/{debounce-17653c0f.js → debounce-b088070c.js} +4 -6
- package/dist/cjs/{get-1f552668.js → get-5aa7468c.js} +1 -1
- package/dist/cjs/{index-be0c82be.js → index-b5eb3ff8.js} +20 -19
- package/dist/cjs/{index.es-9110add6.js → index.es-ab3f2690.js} +3 -1
- package/dist/cjs/index.js +1105 -910
- package/dist/cjs/{inherits-be4dfb6b.js → inherits-e793003e.js} +4 -4
- package/dist/cjs/{main-88348b15.js → main-bc4db521.js} +66 -35
- package/dist/cjs/{moment-575fe24c.js → moment-66a6a284.js} +1 -1
- package/dist/esm/{ADInfeed-f1c1780e.js → ADInfeed-e5cefea5.js} +1 -1
- package/dist/esm/{AdSlot-4ca0419a.js → AdSlot-78e48a2c.js} +2 -2
- package/dist/esm/DeckContent.js +16 -16
- package/dist/esm/DeckQueue.js +7 -7
- package/dist/esm/{Dfp-d372854b.js → Dfp-d5fe1252.js} +1 -1
- package/dist/esm/{Figure-2d14847b.js → Figure-cc1affbe.js} +1 -1
- package/dist/esm/{GridContent-09330066.js → GridContent-e3224519.js} +11 -11
- package/dist/esm/GridContent.js +9 -9
- package/dist/esm/GroupDeck.js +5 -5
- package/dist/esm/IssueContentDeck.js +2 -2
- package/dist/esm/IssueDeck.js +2 -2
- package/dist/esm/MasterDeck.js +14 -14
- package/dist/esm/{Normal-33253684.js → Normal-0095df68.js} +39 -39
- package/dist/esm/PublicationDeck.js +1 -1
- package/dist/esm/QueueDeckExpanded.js +10 -10
- package/dist/esm/{TaxonomyCard-d49aa67a.js → TaxonomyCard-b29aa7ac.js} +1 -1
- package/dist/esm/TaxonomyCard.js +2 -2
- package/dist/esm/TemplateNormal.js +5 -5
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/VideoSeriesListing.js +5 -5
- package/dist/esm/YoutubeGroup.js +5 -5
- package/dist/esm/{debounce-53693e2b.js → debounce-df468b0e.js} +4 -6
- package/dist/esm/{get-b3f4645d.js → get-53653403.js} +1 -1
- package/dist/esm/{index-73819142.js → index-51a80699.js} +20 -19
- package/dist/esm/{index.es-29c1cef5.js → index.es-938a3a58.js} +3 -1
- package/dist/esm/index.js +1117 -923
- package/dist/esm/{main-273675e1.js → main-7d1b3c98.js} +65 -34
- package/dist/esm/{moment-e2f9b20c.js → moment-12415288.js} +1 -1
- package/package.json +103 -103
package/dist/esm/index.js
CHANGED
|
@@ -9,41 +9,41 @@ import { _ as _extends$2, a as _Object$assign } from './extends-92072fff.js';
|
|
|
9
9
|
import { _ as _objectSap, a as _inherits$1, b as _classCallCheck$1, c as _possibleConstructorReturn$1, d as _Object$getPrototypeOf, e as _createClass$1, f as defineProperty$2 } from './inherits-dfba24f5.js';
|
|
10
10
|
import { _ as _meta, a as _isArray } from './typeof-e4b50250.js';
|
|
11
11
|
import React__default, { useState, useEffect, useRef } from 'react';
|
|
12
|
-
import { d as debounce_1, l as lib_3, a as lib_1, i as isObjectLike_1, _ as _baseGetTag, t as toNumber_1, b as _root, c as _freeGlobal } from './debounce-
|
|
12
|
+
import { d as debounce_1, l as lib_3, a as lib_1, i as isObjectLike_1, _ as _baseGetTag, t as toNumber_1, b as _root, c as _freeGlobal } from './debounce-df468b0e.js';
|
|
13
13
|
import PropTypes from 'prop-types';
|
|
14
14
|
import Container from 'react-bootstrap/Container';
|
|
15
15
|
import Row from 'react-bootstrap/Row';
|
|
16
16
|
import Col from 'react-bootstrap/Col';
|
|
17
17
|
import Card from 'react-bootstrap/Card';
|
|
18
|
-
import { m as moment } from './moment-
|
|
19
|
-
import Router, { useRouter } from 'next/router';
|
|
20
|
-
import { I as InfiniteScroll } from './index.es-
|
|
18
|
+
import { m as moment } from './moment-12415288.js';
|
|
19
|
+
import Router, { useRouter, withRouter } from 'next/router';
|
|
20
|
+
import { I as InfiniteScroll } from './index.es-938a3a58.js';
|
|
21
21
|
import 'react-dom';
|
|
22
22
|
import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
|
|
23
|
-
import { i as imageUrlBuilder } from './index-
|
|
23
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
24
24
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
25
|
-
import { m as
|
|
25
|
+
import { m as main_39, a as main_16, b as main_38 } from './main-7d1b3c98.js';
|
|
26
26
|
import { h as html_decode_1, c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
27
27
|
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-04e02710.js';
|
|
28
|
-
import { _ as _JSON$stringify, a as _asyncToGenerator, r as regenerator, D as DFPAdSlot, B as Beam } from './AdSlot-
|
|
29
|
-
export { D as AdSlot, B as Beam } from './AdSlot-
|
|
28
|
+
import { _ as _JSON$stringify, a as _asyncToGenerator, r as regenerator, D as DFPAdSlot, B as Beam } from './AdSlot-78e48a2c.js';
|
|
29
|
+
export { D as AdSlot, B as Beam } from './AdSlot-78e48a2c.js';
|
|
30
30
|
import { _ as _anInstance, a as _forOf, b as _redefineAll, c as _setSpecies } from './promise-2592a80a.js';
|
|
31
|
-
import './ADInfeed-
|
|
31
|
+
import './ADInfeed-e5cefea5.js';
|
|
32
32
|
export { default as DeckContent } from './DeckContent.js';
|
|
33
|
-
import { i as isFunction_1, a as isArray_1, _ as _arrayMap } from './get-
|
|
34
|
-
export { A as AD, G as GridContent } from './GridContent-
|
|
33
|
+
import { i as isFunction_1, a as isArray_1, _ as _arrayMap } from './get-53653403.js';
|
|
34
|
+
export { A as AD, G as GridContent } from './GridContent-e3224519.js';
|
|
35
35
|
import { A as AuthorComponent } from './AuthorComponent-c9e46673.js';
|
|
36
36
|
export { default as DeckQueue } from './DeckQueue.js';
|
|
37
37
|
import 'react-bootstrap/Media';
|
|
38
38
|
export { default as ThumbnailCard } from './ThumbnailCard.js';
|
|
39
|
-
import { B as BlockContent } from './TaxonomyCard-
|
|
40
|
-
export { T as TaxonomyCard } from './TaxonomyCard-
|
|
39
|
+
import { B as BlockContent } from './TaxonomyCard-b29aa7ac.js';
|
|
40
|
+
export { T as TaxonomyCard } from './TaxonomyCard-b29aa7ac.js';
|
|
41
41
|
import './react-social-icons-a7d5c5c7.js';
|
|
42
42
|
import { g as getYoutubeId } from './smoothscroll-4b699764.js';
|
|
43
43
|
import GroupDeck from './GroupDeck.js';
|
|
44
44
|
export { default as GroupDeck } from './GroupDeck.js';
|
|
45
45
|
export { default as YoutubeGroup } from './YoutubeGroup.js';
|
|
46
|
-
import { Spinner as Spinner$1, Container as Container$1, Row as Row$1, Col as Col$1, Carousel, Table, Figure as Figure$1, Button as Button$1, ProgressBar, Card as Card$1, Form } from 'react-bootstrap';
|
|
46
|
+
import { Spinner as Spinner$1, Container as Container$1, Row as Row$1, Col as Col$1, DropdownButton, Dropdown, Carousel, Table, Figure as Figure$1, Button as Button$1, ProgressBar, Card as Card$1, Form } from 'react-bootstrap';
|
|
47
47
|
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
48
48
|
export { default as QueueDeckExpanded } from './QueueDeckExpanded.js';
|
|
49
49
|
import { I as IoMdArrowDropdown } from './index.esm-536609db.js';
|
|
@@ -55,8 +55,8 @@ export { default as IssueDeck } from './IssueDeck.js';
|
|
|
55
55
|
import 'react-bootstrap/Badge';
|
|
56
56
|
export { default as IssueContentDeck } from './IssueContentDeck.js';
|
|
57
57
|
import Spinner from 'react-bootstrap/Spinner';
|
|
58
|
-
import { M as MdPictureAsPdf } from './Normal-
|
|
59
|
-
export { A as AD728x90, g as ADSponsoredResources, C as Column1, a as Column2, b as Column3, f as HamMagazine, H as Header, L as LeftNav, e as NavDvm, c as NavMagazine, N as NavNative, d as NavNormal, P as PageFilter, S as Search, h as SideFooter, T as TemplateNormal } from './Normal-
|
|
58
|
+
import { M as MdPictureAsPdf } from './Normal-0095df68.js';
|
|
59
|
+
export { A as AD728x90, g as ADSponsoredResources, C as Column1, a as Column2, b as Column3, f as HamMagazine, H as Header, L as LeftNav, e as NavDvm, c as NavMagazine, N as NavNative, d as NavNormal, P as PageFilter, S as Search, h as SideFooter, T as TemplateNormal } from './Normal-0095df68.js';
|
|
60
60
|
import 'react-bootstrap/ListGroup';
|
|
61
61
|
import Head from 'next/head';
|
|
62
62
|
import Accordion from 'react-bootstrap/Accordion';
|
|
@@ -71,8 +71,8 @@ import Pagination from 'react-bootstrap/Pagination';
|
|
|
71
71
|
import dynamic from 'next/dynamic';
|
|
72
72
|
import Carousel$1 from 'react-bootstrap/Carousel';
|
|
73
73
|
import Breadcrumb from 'react-bootstrap/Breadcrumb';
|
|
74
|
-
import DropdownButton from 'react-bootstrap/DropdownButton';
|
|
75
|
-
import Dropdown from 'react-bootstrap/Dropdown';
|
|
74
|
+
import DropdownButton$1 from 'react-bootstrap/DropdownButton';
|
|
75
|
+
import Dropdown$1 from 'react-bootstrap/Dropdown';
|
|
76
76
|
import { F as FaLongArrowAltRight } from './Ustream-914ce145.js';
|
|
77
77
|
export { U as Ustream } from './Ustream-914ce145.js';
|
|
78
78
|
import Modal from 'react-bootstrap/Modal';
|
|
@@ -1923,23 +1923,23 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
1923
1923
|
if (cventAccessToken && cventAccessToken !== 'undefined') {
|
|
1924
1924
|
setAccessToken(cventAccessToken);
|
|
1925
1925
|
} else {
|
|
1926
|
-
/*const encodedData = window.btoa(clientId + ':' + clientSecret)
|
|
1927
|
-
//const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
|
|
1928
|
-
const url = `https://api-platform.cvent.com/ea/oauth2/token`
|
|
1929
|
-
fetch(url, {
|
|
1930
|
-
headers: {
|
|
1931
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1932
|
-
Authorization: `Basic ${encodedData}`
|
|
1933
|
-
},
|
|
1934
|
-
method: 'POST',
|
|
1935
|
-
body: `grant_type=client_credentials&client_id=${clientId}`
|
|
1936
|
-
})
|
|
1937
|
-
.then((response) => response.json())
|
|
1938
|
-
.then((json) => {
|
|
1939
|
-
const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
|
|
1940
|
-
Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
|
|
1941
|
-
setAccessToken(json.access_token)
|
|
1942
|
-
})
|
|
1926
|
+
/*const encodedData = window.btoa(clientId + ':' + clientSecret)
|
|
1927
|
+
//const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
|
|
1928
|
+
const url = `https://api-platform.cvent.com/ea/oauth2/token`
|
|
1929
|
+
fetch(url, {
|
|
1930
|
+
headers: {
|
|
1931
|
+
'Content-Type': 'application/x-www-form-urlencoded',
|
|
1932
|
+
Authorization: `Basic ${encodedData}`
|
|
1933
|
+
},
|
|
1934
|
+
method: 'POST',
|
|
1935
|
+
body: `grant_type=client_credentials&client_id=${clientId}`
|
|
1936
|
+
})
|
|
1937
|
+
.then((response) => response.json())
|
|
1938
|
+
.then((json) => {
|
|
1939
|
+
const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
|
|
1940
|
+
Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
|
|
1941
|
+
setAccessToken(json.access_token)
|
|
1942
|
+
})
|
|
1943
1943
|
.catch((e) => console.log(e))*/
|
|
1944
1944
|
// hello
|
|
1945
1945
|
var url = 'https://beam.mjhlifesciences.com/api/cvent/token';
|
|
@@ -2133,7 +2133,7 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
2133
2133
|
)
|
|
2134
2134
|
)
|
|
2135
2135
|
),
|
|
2136
|
-
|
|
2136
|
+
main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
|
|
2137
2137
|
'div',
|
|
2138
2138
|
{ style: { margin: '0 auto' } },
|
|
2139
2139
|
renderMobileAd(index, numberOfItemsBeforeAd)
|
|
@@ -2468,7 +2468,7 @@ var CMEDeck = function CMEDeck(_ref) {
|
|
|
2468
2468
|
)
|
|
2469
2469
|
)
|
|
2470
2470
|
),
|
|
2471
|
-
|
|
2471
|
+
main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
|
|
2472
2472
|
'div',
|
|
2473
2473
|
{ style: { margin: '0 auto' } },
|
|
2474
2474
|
renderMobileAd(index, numberOfItemsBeforeAd)
|
|
@@ -2749,6 +2749,117 @@ var SocialShare = function SocialShare(props) {
|
|
|
2749
2749
|
|
|
2750
2750
|
var SocialShare$1 = React__default.memo(SocialShare);
|
|
2751
2751
|
|
|
2752
|
+
var _this = undefined;
|
|
2753
|
+
|
|
2754
|
+
var VideoSeriesFilter = function VideoSeriesFilter(props) {
|
|
2755
|
+
var filterData = props.filterData,
|
|
2756
|
+
queryProps = props.queryProps,
|
|
2757
|
+
filteredList = props.filteredList,
|
|
2758
|
+
loadingStatus = props.loadingStatus,
|
|
2759
|
+
_props$exclude = props.exclude,
|
|
2760
|
+
exclude = _props$exclude === undefined ? null : _props$exclude,
|
|
2761
|
+
router = props.router;
|
|
2762
|
+
var taxonomyID = queryProps.taxonomyID,
|
|
2763
|
+
currentPage = queryProps.currentPage,
|
|
2764
|
+
client = queryProps.client,
|
|
2765
|
+
params = queryProps.params;
|
|
2766
|
+
|
|
2767
|
+
var _useState = useState({ name: 'All Topics', id: '' }),
|
|
2768
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
2769
|
+
filter = _useState2[0],
|
|
2770
|
+
setFilter = _useState2[1];
|
|
2771
|
+
|
|
2772
|
+
var filterList = function () {
|
|
2773
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
|
|
2774
|
+
var today, query;
|
|
2775
|
+
return regenerator.wrap(function _callee$(_context) {
|
|
2776
|
+
while (1) {
|
|
2777
|
+
switch (_context.prev = _context.next) {
|
|
2778
|
+
case 0:
|
|
2779
|
+
loadingStatus && loadingStatus(true);
|
|
2780
|
+
filteredList(null);
|
|
2781
|
+
today = moment().utc().format();
|
|
2782
|
+
query = '*[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url) ' + (filter.id ? ' && references(\'' + filter.id + '\')' : '') + '\n && references(\'' + taxonomyID + '\')\n && is_visible == true\n && dateTime(published) <= dateTime(\'' + today + '\')\n ] | order(published desc) [$from...$to]{\n ...,\n title,\n summary,\n published,\n thumbnail,\n url,\n taxonomy,\n contentCategory->,\n body[_type == "youtubeGallery"],\n \'pageNumber\': ' + currentPage + '\n }';
|
|
2783
|
+
_context.next = 6;
|
|
2784
|
+
return client.fetch(query, params).then(function (res) {
|
|
2785
|
+
filteredList({ posts: res, query: query });
|
|
2786
|
+
});
|
|
2787
|
+
|
|
2788
|
+
case 6:
|
|
2789
|
+
loadingStatus && loadingStatus(false);
|
|
2790
|
+
|
|
2791
|
+
case 7:
|
|
2792
|
+
case 'end':
|
|
2793
|
+
return _context.stop();
|
|
2794
|
+
}
|
|
2795
|
+
}
|
|
2796
|
+
}, _callee, _this);
|
|
2797
|
+
}));
|
|
2798
|
+
|
|
2799
|
+
return function filterList() {
|
|
2800
|
+
return _ref.apply(this, arguments);
|
|
2801
|
+
};
|
|
2802
|
+
}();
|
|
2803
|
+
useEffect(function () {
|
|
2804
|
+
if (router && router.query && router.query.filter && filterData && filterData.length > 0) {
|
|
2805
|
+
filterData.map(function (filterItem) {
|
|
2806
|
+
if (filterItem.name === router.query.filter) {
|
|
2807
|
+
setFilter({ name: filterItem.name, id: filterItem._id });
|
|
2808
|
+
}
|
|
2809
|
+
});
|
|
2810
|
+
}
|
|
2811
|
+
}, []);
|
|
2812
|
+
useEffect(function () {
|
|
2813
|
+
filterList();
|
|
2814
|
+
var qString = '';
|
|
2815
|
+
router.asPath.includes('?') && router.asPath.slice(router.asPath.indexOf('?') + 1).split('&').forEach(function (item) {
|
|
2816
|
+
if (item.includes('=') && item.split('=')[0] !== 'filter') {
|
|
2817
|
+
if (qString === '') {
|
|
2818
|
+
qString += item.split('=')[0] + '=' + item.split('=')[1];
|
|
2819
|
+
} else {
|
|
2820
|
+
qString += '&' + item.split('=')[0] + '=' + item.split('=')[1];
|
|
2821
|
+
}
|
|
2822
|
+
}
|
|
2823
|
+
});
|
|
2824
|
+
if (filter.id !== '') {
|
|
2825
|
+
router.push(router.pathname, router.pathname + '?filter=' + filter.name + (qString !== '' ? '&' + qString : ''), {
|
|
2826
|
+
shallow: true
|
|
2827
|
+
});
|
|
2828
|
+
} else {
|
|
2829
|
+
router.push(router.pathname, '' + router.pathname + (qString !== '' ? '?' + qString : ''), {
|
|
2830
|
+
shallow: true
|
|
2831
|
+
});
|
|
2832
|
+
}
|
|
2833
|
+
}, [filter]);
|
|
2834
|
+
return React__default.createElement(
|
|
2835
|
+
React__default.Fragment,
|
|
2836
|
+
null,
|
|
2837
|
+
React__default.createElement(
|
|
2838
|
+
DropdownButton,
|
|
2839
|
+
{ className: 'filter_dropdown', variant: 'primary', title: filter.name },
|
|
2840
|
+
React__default.createElement(
|
|
2841
|
+
Dropdown.Item,
|
|
2842
|
+
{ key: 'all', onClick: function onClick() {
|
|
2843
|
+
return setFilter({ name: 'All Topics', id: '' });
|
|
2844
|
+
} },
|
|
2845
|
+
'All Topics'
|
|
2846
|
+
),
|
|
2847
|
+
filterData && filterData.map(function (filterItem) {
|
|
2848
|
+
if (filterItem.identifier !== exclude) {
|
|
2849
|
+
return React__default.createElement(
|
|
2850
|
+
Dropdown.Item,
|
|
2851
|
+
{ key: filterItem._id, onClick: function onClick() {
|
|
2852
|
+
return setFilter({ name: filterItem.name, id: filterItem._id });
|
|
2853
|
+
}, value: filterItem._id, selected: true },
|
|
2854
|
+
filterItem.name
|
|
2855
|
+
);
|
|
2856
|
+
}
|
|
2857
|
+
})
|
|
2858
|
+
)
|
|
2859
|
+
);
|
|
2860
|
+
};
|
|
2861
|
+
var VideoSeriesFilter$1 = withRouter(VideoSeriesFilter);
|
|
2862
|
+
|
|
2752
2863
|
var AD300x250 = function AD300x250(_ref) {
|
|
2753
2864
|
var networkID = _ref.networkID,
|
|
2754
2865
|
adUnit = _ref.adUnit,
|
|
@@ -2759,7 +2870,7 @@ var AD300x250 = function AD300x250(_ref) {
|
|
|
2759
2870
|
pos = _ref$pos === undefined ? 'rec1' : _ref$pos;
|
|
2760
2871
|
|
|
2761
2872
|
var mobileView = false;
|
|
2762
|
-
if (
|
|
2873
|
+
if (main_39) {
|
|
2763
2874
|
pos = 'rec1-mobile';
|
|
2764
2875
|
mobileView = true;
|
|
2765
2876
|
}
|
|
@@ -2791,7 +2902,7 @@ var AD300x250x600 = function AD300x250x600(_ref) {
|
|
|
2791
2902
|
pos = _ref$pos === undefined ? 'rec2' : _ref$pos;
|
|
2792
2903
|
|
|
2793
2904
|
var mobileView = false;
|
|
2794
|
-
if (
|
|
2905
|
+
if (main_39) {
|
|
2795
2906
|
pos = 'rec2-mobile';
|
|
2796
2907
|
mobileView = true;
|
|
2797
2908
|
}
|
|
@@ -2922,9 +3033,20 @@ var ADFloatingFooter = function ADFloatingFooter(_ref) {
|
|
|
2922
3033
|
var parent = document.getElementById('floating-ad-wrapper');
|
|
2923
3034
|
parent.classList.remove('hide-floating');
|
|
2924
3035
|
parent.classList.add('display-floating');
|
|
3036
|
+
var adSizes = [[1, 1]];
|
|
2925
3037
|
if (adData && adData.event && adData.event.size) {
|
|
2926
|
-
|
|
2927
|
-
|
|
3038
|
+
var checkAdSize = function checkAdSize(size) {
|
|
3039
|
+
return _JSON$stringify(size) === _JSON$stringify(adData.event.size);
|
|
3040
|
+
};
|
|
3041
|
+
|
|
3042
|
+
if (adSizes.some(checkAdSize)) {
|
|
3043
|
+
collapseAd();
|
|
3044
|
+
parent.classList.add('hide-floating');
|
|
3045
|
+
parent.classList.remove('display-floating');
|
|
3046
|
+
} else {
|
|
3047
|
+
parent.style.width = adData.event.size[0] + 'px';
|
|
3048
|
+
parent.style.height = adData.event.size[1] + 'px';
|
|
3049
|
+
}
|
|
2928
3050
|
}
|
|
2929
3051
|
} else {
|
|
2930
3052
|
collapseAd();
|
|
@@ -3208,21 +3330,18 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
3208
3330
|
);
|
|
3209
3331
|
};
|
|
3210
3332
|
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3333
|
+
// do not edit .js files directly - edit src/index.jst
|
|
3334
|
+
|
|
3335
|
+
|
|
3214
3336
|
|
|
3215
3337
|
var fastDeepEqual = function equal(a, b) {
|
|
3216
3338
|
if (a === b) return true;
|
|
3217
3339
|
|
|
3218
3340
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
3219
|
-
|
|
3220
|
-
, arrB = isArray(b)
|
|
3221
|
-
, i
|
|
3222
|
-
, length
|
|
3223
|
-
, key;
|
|
3341
|
+
if (a.constructor !== b.constructor) return false;
|
|
3224
3342
|
|
|
3225
|
-
|
|
3343
|
+
var length, i, keys;
|
|
3344
|
+
if (Array.isArray(a)) {
|
|
3226
3345
|
length = a.length;
|
|
3227
3346
|
if (length != b.length) return false;
|
|
3228
3347
|
for (i = length; i-- !== 0;)
|
|
@@ -3230,35 +3349,29 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
3230
3349
|
return true;
|
|
3231
3350
|
}
|
|
3232
3351
|
|
|
3233
|
-
if (arrA != arrB) return false;
|
|
3234
3352
|
|
|
3235
|
-
var dateA = a instanceof Date
|
|
3236
|
-
, dateB = b instanceof Date;
|
|
3237
|
-
if (dateA != dateB) return false;
|
|
3238
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
3239
3353
|
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
if (
|
|
3243
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
3354
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
3355
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
3356
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
3244
3357
|
|
|
3245
|
-
|
|
3358
|
+
keys = Object.keys(a);
|
|
3246
3359
|
length = keys.length;
|
|
3247
|
-
|
|
3248
|
-
if (length !== keyList(b).length)
|
|
3249
|
-
return false;
|
|
3360
|
+
if (length !== Object.keys(b).length) return false;
|
|
3250
3361
|
|
|
3251
3362
|
for (i = length; i-- !== 0;)
|
|
3252
|
-
if (!
|
|
3363
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
3253
3364
|
|
|
3254
3365
|
for (i = length; i-- !== 0;) {
|
|
3255
|
-
key = keys[i];
|
|
3366
|
+
var key = keys[i];
|
|
3367
|
+
|
|
3256
3368
|
if (!equal(a[key], b[key])) return false;
|
|
3257
3369
|
}
|
|
3258
3370
|
|
|
3259
3371
|
return true;
|
|
3260
3372
|
}
|
|
3261
3373
|
|
|
3374
|
+
// true if both NaN, false otherwise
|
|
3262
3375
|
return a!==a && b!==b;
|
|
3263
3376
|
};
|
|
3264
3377
|
|
|
@@ -4281,7 +4394,7 @@ function formatValue(ctx, value, recurseTimes) {
|
|
|
4281
4394
|
var base = '', array = false, braces = ['{', '}'];
|
|
4282
4395
|
|
|
4283
4396
|
// Make Array say that they are Array
|
|
4284
|
-
if (isArray
|
|
4397
|
+
if (isArray(value)) {
|
|
4285
4398
|
array = true;
|
|
4286
4399
|
braces = ['[', ']'];
|
|
4287
4400
|
}
|
|
@@ -4460,7 +4573,7 @@ function reduceToSingleString(output, base, braces) {
|
|
|
4460
4573
|
|
|
4461
4574
|
// NOTE: These type checking functions intentionally don't use `instanceof`
|
|
4462
4575
|
// because it is fragile and can be easily faked with `Object.create()`.
|
|
4463
|
-
function isArray
|
|
4576
|
+
function isArray(ar) {
|
|
4464
4577
|
return Array.isArray(ar);
|
|
4465
4578
|
}
|
|
4466
4579
|
|
|
@@ -4587,7 +4700,7 @@ var util = {
|
|
|
4587
4700
|
isNullOrUndefined: isNullOrUndefined,
|
|
4588
4701
|
isNull: isNull,
|
|
4589
4702
|
isBoolean: isBoolean,
|
|
4590
|
-
isArray: isArray
|
|
4703
|
+
isArray: isArray,
|
|
4591
4704
|
inspect: inspect,
|
|
4592
4705
|
deprecate: deprecate,
|
|
4593
4706
|
format: format,
|
|
@@ -5254,199 +5367,235 @@ module.exports = exports['default'];
|
|
|
5254
5367
|
|
|
5255
5368
|
var youTubePlayer = unwrapExports(dist);
|
|
5256
5369
|
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
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; };
|
|
5370
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
5260
5371
|
|
|
5261
5372
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5262
5373
|
|
|
5263
|
-
function
|
|
5374
|
+
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); } }
|
|
5375
|
+
|
|
5376
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5377
|
+
|
|
5378
|
+
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); }; }
|
|
5379
|
+
|
|
5380
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5381
|
+
|
|
5382
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5383
|
+
|
|
5384
|
+
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; } }
|
|
5264
5385
|
|
|
5265
|
-
function
|
|
5386
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5387
|
+
|
|
5388
|
+
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); }
|
|
5389
|
+
|
|
5390
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5391
|
+
|
|
5392
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
5393
|
+
|
|
5394
|
+
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; }
|
|
5266
5395
|
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
*
|
|
5270
|
-
*
|
|
5271
|
-
* @param {Object}
|
|
5396
|
+
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; }
|
|
5397
|
+
/**
|
|
5398
|
+
* Check whether a `props` change should result in the video being updated.
|
|
5399
|
+
*
|
|
5400
|
+
* @param {Object} prevProps
|
|
5401
|
+
* @param {Object} props
|
|
5272
5402
|
*/
|
|
5403
|
+
|
|
5273
5404
|
function shouldUpdateVideo(prevProps, props) {
|
|
5274
5405
|
// A changing video should always trigger an update
|
|
5275
5406
|
if (prevProps.videoId !== props.videoId) {
|
|
5276
5407
|
return true;
|
|
5277
|
-
}
|
|
5278
|
-
|
|
5279
|
-
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
5408
|
+
} // Otherwise, a change in the start/end time playerVars also requires a player
|
|
5280
5409
|
// update.
|
|
5410
|
+
|
|
5411
|
+
|
|
5281
5412
|
var prevVars = prevProps.opts.playerVars || {};
|
|
5282
5413
|
var vars = props.opts.playerVars || {};
|
|
5283
|
-
|
|
5284
5414
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
5285
5415
|
}
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
*
|
|
5289
|
-
*
|
|
5290
|
-
*
|
|
5291
|
-
*
|
|
5292
|
-
* @param {Object} opts
|
|
5416
|
+
/**
|
|
5417
|
+
* Neutralize API options that only require a video update, leaving only options
|
|
5418
|
+
* that require a player reset. The results can then be compared to see if a
|
|
5419
|
+
* player reset is necessary.
|
|
5420
|
+
*
|
|
5421
|
+
* @param {Object} opts
|
|
5293
5422
|
*/
|
|
5423
|
+
|
|
5424
|
+
|
|
5294
5425
|
function filterResetOptions(opts) {
|
|
5295
|
-
return
|
|
5296
|
-
playerVars:
|
|
5426
|
+
return _objectSpread({}, opts, {
|
|
5427
|
+
playerVars: _objectSpread({}, opts.playerVars, {
|
|
5297
5428
|
autoplay: 0,
|
|
5298
5429
|
start: 0,
|
|
5299
5430
|
end: 0
|
|
5300
5431
|
})
|
|
5301
5432
|
});
|
|
5302
5433
|
}
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
*
|
|
5306
|
-
*
|
|
5307
|
-
*
|
|
5308
|
-
*
|
|
5309
|
-
*
|
|
5310
|
-
* @param {Object}
|
|
5311
|
-
* @param {Object} props
|
|
5434
|
+
/**
|
|
5435
|
+
* Check whether a `props` change should result in the player being reset.
|
|
5436
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
5437
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
5438
|
+
* those.
|
|
5439
|
+
*
|
|
5440
|
+
* @param {Object} prevProps
|
|
5441
|
+
* @param {Object} props
|
|
5312
5442
|
*/
|
|
5443
|
+
|
|
5444
|
+
|
|
5313
5445
|
function shouldResetPlayer(prevProps, props) {
|
|
5314
5446
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
5315
5447
|
}
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
*
|
|
5319
|
-
*
|
|
5320
|
-
* @param {Object}
|
|
5321
|
-
* @param {Object} props
|
|
5448
|
+
/**
|
|
5449
|
+
* Check whether a props change should result in an id or className update.
|
|
5450
|
+
*
|
|
5451
|
+
* @param {Object} prevProps
|
|
5452
|
+
* @param {Object} props
|
|
5322
5453
|
*/
|
|
5454
|
+
|
|
5455
|
+
|
|
5323
5456
|
function shouldUpdatePlayer(prevProps, props) {
|
|
5324
5457
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
5325
5458
|
}
|
|
5326
5459
|
|
|
5327
|
-
var YouTube = function (_React$Component) {
|
|
5460
|
+
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
5328
5461
|
_inherits(YouTube, _React$Component);
|
|
5329
5462
|
|
|
5463
|
+
var _super = _createSuper(YouTube);
|
|
5464
|
+
|
|
5465
|
+
/**
|
|
5466
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
5467
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
5468
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5469
|
+
*/
|
|
5330
5470
|
function YouTube(props) {
|
|
5471
|
+
var _this;
|
|
5472
|
+
|
|
5331
5473
|
_classCallCheck(this, YouTube);
|
|
5332
5474
|
|
|
5333
|
-
|
|
5475
|
+
_this = _super.call(this, props);
|
|
5334
5476
|
|
|
5335
|
-
_this
|
|
5477
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
|
|
5336
5478
|
return _this.props.onReady(event);
|
|
5337
|
-
};
|
|
5479
|
+
});
|
|
5338
5480
|
|
|
5339
|
-
_this
|
|
5481
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
|
|
5340
5482
|
return _this.props.onError(event);
|
|
5341
|
-
};
|
|
5483
|
+
});
|
|
5342
5484
|
|
|
5343
|
-
_this
|
|
5485
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
|
|
5344
5486
|
_this.props.onStateChange(event);
|
|
5345
|
-
switch (event.data) {
|
|
5346
5487
|
|
|
5488
|
+
switch (event.data) {
|
|
5347
5489
|
case YouTube.PlayerState.ENDED:
|
|
5348
5490
|
_this.props.onEnd(event);
|
|
5491
|
+
|
|
5349
5492
|
break;
|
|
5350
5493
|
|
|
5351
5494
|
case YouTube.PlayerState.PLAYING:
|
|
5352
5495
|
_this.props.onPlay(event);
|
|
5496
|
+
|
|
5353
5497
|
break;
|
|
5354
5498
|
|
|
5355
5499
|
case YouTube.PlayerState.PAUSED:
|
|
5356
5500
|
_this.props.onPause(event);
|
|
5501
|
+
|
|
5357
5502
|
break;
|
|
5358
5503
|
}
|
|
5359
|
-
};
|
|
5504
|
+
});
|
|
5360
5505
|
|
|
5361
|
-
_this
|
|
5506
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
|
|
5362
5507
|
return _this.props.onPlaybackRateChange(event);
|
|
5363
|
-
};
|
|
5508
|
+
});
|
|
5364
5509
|
|
|
5365
|
-
_this
|
|
5510
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
|
|
5366
5511
|
return _this.props.onPlaybackQualityChange(event);
|
|
5367
|
-
};
|
|
5512
|
+
});
|
|
5368
5513
|
|
|
5369
|
-
_this
|
|
5514
|
+
_defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
|
|
5370
5515
|
// do not attempt to create a player server-side, it won't work
|
|
5371
|
-
if (typeof document === 'undefined') return;
|
|
5372
|
-
|
|
5373
|
-
var playerOpts =
|
|
5516
|
+
if (typeof document === 'undefined') return; // create player
|
|
5517
|
+
|
|
5518
|
+
var playerOpts = _objectSpread({}, _this.props.opts, {
|
|
5374
5519
|
// preload the `videoId` video if one is already given
|
|
5375
5520
|
videoId: _this.props.videoId
|
|
5376
5521
|
});
|
|
5377
|
-
|
|
5378
|
-
// attach event handlers
|
|
5522
|
+
|
|
5523
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
|
|
5524
|
+
|
|
5379
5525
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
5526
|
+
|
|
5380
5527
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
5528
|
+
|
|
5381
5529
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
5530
|
+
|
|
5382
5531
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
5532
|
+
|
|
5383
5533
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
5384
|
-
};
|
|
5534
|
+
});
|
|
5385
5535
|
|
|
5386
|
-
_this
|
|
5536
|
+
_defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
|
|
5387
5537
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
5388
|
-
};
|
|
5538
|
+
});
|
|
5389
5539
|
|
|
5390
|
-
_this
|
|
5540
|
+
_defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
|
|
5391
5541
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
5392
5542
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
5393
5543
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
5394
5544
|
});
|
|
5395
|
-
};
|
|
5545
|
+
});
|
|
5396
5546
|
|
|
5397
|
-
_this
|
|
5547
|
+
_defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
|
|
5398
5548
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
5399
5549
|
_this.internalPlayer.stopVideo();
|
|
5550
|
+
|
|
5400
5551
|
return;
|
|
5401
|
-
}
|
|
5552
|
+
} // set queueing options
|
|
5553
|
+
|
|
5402
5554
|
|
|
5403
|
-
// set queueing options
|
|
5404
5555
|
var autoplay = false;
|
|
5405
5556
|
var opts = {
|
|
5406
5557
|
videoId: _this.props.videoId
|
|
5407
5558
|
};
|
|
5559
|
+
|
|
5408
5560
|
if ('playerVars' in _this.props.opts) {
|
|
5409
5561
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
5562
|
+
|
|
5410
5563
|
if ('start' in _this.props.opts.playerVars) {
|
|
5411
5564
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
5412
5565
|
}
|
|
5566
|
+
|
|
5413
5567
|
if ('end' in _this.props.opts.playerVars) {
|
|
5414
5568
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
5415
5569
|
}
|
|
5416
|
-
}
|
|
5570
|
+
} // if autoplay is enabled loadVideoById
|
|
5571
|
+
|
|
5417
5572
|
|
|
5418
|
-
// if autoplay is enabled loadVideoById
|
|
5419
5573
|
if (autoplay) {
|
|
5420
5574
|
_this.internalPlayer.loadVideoById(opts);
|
|
5575
|
+
|
|
5421
5576
|
return;
|
|
5422
|
-
}
|
|
5423
|
-
|
|
5577
|
+
} // default behaviour just cues the video
|
|
5578
|
+
|
|
5579
|
+
|
|
5424
5580
|
_this.internalPlayer.cueVideoById(opts);
|
|
5425
|
-
};
|
|
5581
|
+
});
|
|
5426
5582
|
|
|
5427
|
-
_this
|
|
5583
|
+
_defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
|
|
5428
5584
|
_this.container = container;
|
|
5429
|
-
};
|
|
5585
|
+
});
|
|
5430
5586
|
|
|
5431
5587
|
_this.container = null;
|
|
5432
5588
|
_this.internalPlayer = null;
|
|
5433
5589
|
return _this;
|
|
5434
5590
|
}
|
|
5435
5591
|
|
|
5436
|
-
/**
|
|
5437
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
5438
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
5439
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5440
|
-
*/
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
5592
|
_createClass(YouTube, [{
|
|
5444
|
-
key:
|
|
5593
|
+
key: "componentDidMount",
|
|
5445
5594
|
value: function componentDidMount() {
|
|
5446
5595
|
this.createPlayer();
|
|
5447
5596
|
}
|
|
5448
5597
|
}, {
|
|
5449
|
-
key:
|
|
5598
|
+
key: "componentDidUpdate",
|
|
5450
5599
|
value: function componentDidUpdate(prevProps) {
|
|
5451
5600
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
5452
5601
|
this.updatePlayer();
|
|
@@ -5461,112 +5610,58 @@ var YouTube = function (_React$Component) {
|
|
|
5461
5610
|
}
|
|
5462
5611
|
}
|
|
5463
5612
|
}, {
|
|
5464
|
-
key:
|
|
5613
|
+
key: "componentWillUnmount",
|
|
5465
5614
|
value: function componentWillUnmount() {
|
|
5466
|
-
/**
|
|
5467
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
5468
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
5469
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
5470
|
-
* this method isn't quick enough to reset the container element.
|
|
5615
|
+
/**
|
|
5616
|
+
* Note: The `youtube-player` package that is used promisifies all YouTube
|
|
5617
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
5618
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
5619
|
+
* this method isn't quick enough to reset the container element.
|
|
5471
5620
|
*/
|
|
5472
5621
|
this.internalPlayer.destroy();
|
|
5473
5622
|
}
|
|
5474
|
-
|
|
5475
|
-
|
|
5476
|
-
*
|
|
5477
|
-
*
|
|
5478
|
-
*
|
|
5479
|
-
* @param {Object} target - player object
|
|
5480
|
-
*/
|
|
5481
|
-
|
|
5482
|
-
|
|
5483
|
-
/**
|
|
5484
|
-
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
5485
|
-
*
|
|
5486
|
-
* @param {Object} event
|
|
5487
|
-
* @param {Integer} data - error type
|
|
5488
|
-
* @param {Object} target - player object
|
|
5489
|
-
*/
|
|
5490
|
-
|
|
5491
|
-
|
|
5492
|
-
/**
|
|
5493
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
5494
|
-
*
|
|
5495
|
-
* @param {Object} event
|
|
5496
|
-
* @param {Integer} data - status change type
|
|
5497
|
-
* @param {Object} target - actual YT player
|
|
5498
|
-
*/
|
|
5499
|
-
|
|
5500
|
-
|
|
5501
|
-
/**
|
|
5502
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
5503
|
-
*
|
|
5504
|
-
* @param {Object} event
|
|
5505
|
-
* @param {Float} data - playback rate
|
|
5506
|
-
* @param {Object} target - actual YT player
|
|
5507
|
-
*/
|
|
5508
|
-
|
|
5509
|
-
|
|
5510
|
-
/**
|
|
5511
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
5512
|
-
*
|
|
5513
|
-
* @param {Object} event
|
|
5514
|
-
* @param {String} data - playback quality
|
|
5515
|
-
* @param {Object} target - actual YT player
|
|
5516
|
-
*/
|
|
5517
|
-
|
|
5518
|
-
|
|
5519
|
-
/**
|
|
5520
|
-
* Initialize the Youtube Player API on the container and attach event handlers
|
|
5521
|
-
*/
|
|
5522
|
-
|
|
5523
|
-
|
|
5524
|
-
/**
|
|
5525
|
-
* Shorthand for destroying and then re-creating the Youtube Player
|
|
5526
|
-
*/
|
|
5527
|
-
|
|
5528
|
-
|
|
5529
|
-
/**
|
|
5530
|
-
* Method to update the id and class of the Youtube Player iframe.
|
|
5531
|
-
* React should update this automatically but since the Youtube Player API
|
|
5532
|
-
* replaced the DIV that is mounted by React we need to do this manually.
|
|
5533
|
-
*/
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
/**
|
|
5537
|
-
* Call Youtube Player API methods to update the currently playing video.
|
|
5538
|
-
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
5539
|
-
* Youtube Player API methods to update the video.
|
|
5623
|
+
/**
|
|
5624
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
5625
|
+
*
|
|
5626
|
+
* @param {Object} event
|
|
5627
|
+
* @param {Object} target - player object
|
|
5540
5628
|
*/
|
|
5541
5629
|
|
|
5542
5630
|
}, {
|
|
5543
|
-
key:
|
|
5631
|
+
key: "render",
|
|
5544
5632
|
value: function render() {
|
|
5545
|
-
return React__default.createElement(
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5633
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
5634
|
+
className: this.props.containerClassName
|
|
5635
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
5636
|
+
id: this.props.id,
|
|
5637
|
+
className: this.props.className,
|
|
5638
|
+
ref: this.refContainer
|
|
5639
|
+
}));
|
|
5550
5640
|
}
|
|
5551
5641
|
}]);
|
|
5552
5642
|
|
|
5553
5643
|
return YouTube;
|
|
5554
5644
|
}(React__default.Component);
|
|
5555
5645
|
|
|
5646
|
+
_defineProperty(YouTube, "PlayerState", {
|
|
5647
|
+
UNSTARTED: -1,
|
|
5648
|
+
ENDED: 0,
|
|
5649
|
+
PLAYING: 1,
|
|
5650
|
+
PAUSED: 2,
|
|
5651
|
+
BUFFERING: 3,
|
|
5652
|
+
CUED: 5
|
|
5653
|
+
});
|
|
5654
|
+
|
|
5556
5655
|
YouTube.propTypes = {
|
|
5557
5656
|
videoId: PropTypes.string,
|
|
5558
|
-
|
|
5559
5657
|
// custom ID for player element
|
|
5560
5658
|
id: PropTypes.string,
|
|
5561
|
-
|
|
5562
5659
|
// custom class name for player element
|
|
5563
5660
|
className: PropTypes.string,
|
|
5564
5661
|
// custom class name for player container element
|
|
5565
5662
|
containerClassName: PropTypes.string,
|
|
5566
|
-
|
|
5567
5663
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
5568
5664
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
5569
|
-
|
|
5570
5665
|
// event subscriptions
|
|
5571
5666
|
onReady: PropTypes.func,
|
|
5572
5667
|
onError: PropTypes.func,
|
|
@@ -5578,6 +5673,7 @@ YouTube.propTypes = {
|
|
|
5578
5673
|
onPlaybackQualityChange: PropTypes.func
|
|
5579
5674
|
};
|
|
5580
5675
|
YouTube.defaultProps = {
|
|
5676
|
+
videoId: null,
|
|
5581
5677
|
id: null,
|
|
5582
5678
|
className: null,
|
|
5583
5679
|
opts: {},
|
|
@@ -5591,14 +5687,6 @@ YouTube.defaultProps = {
|
|
|
5591
5687
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
5592
5688
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
5593
5689
|
};
|
|
5594
|
-
YouTube.PlayerState = {
|
|
5595
|
-
UNSTARTED: -1,
|
|
5596
|
-
ENDED: 0,
|
|
5597
|
-
PLAYING: 1,
|
|
5598
|
-
PAUSED: 2,
|
|
5599
|
-
BUFFERING: 3,
|
|
5600
|
-
CUED: 5
|
|
5601
|
-
};
|
|
5602
5690
|
|
|
5603
5691
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
5604
5692
|
var url = _ref.url;
|
|
@@ -6513,8 +6601,8 @@ var window_1 = win;
|
|
|
6513
6601
|
|
|
6514
6602
|
/*! @name @brightcove/react-player-loader @version 1.4.0 @license Apache-2.0 */
|
|
6515
6603
|
|
|
6516
|
-
function _extends
|
|
6517
|
-
_extends
|
|
6604
|
+
function _extends() {
|
|
6605
|
+
_extends = Object.assign || function (target) {
|
|
6518
6606
|
for (var i = 1; i < arguments.length; i++) {
|
|
6519
6607
|
var source = arguments[i];
|
|
6520
6608
|
|
|
@@ -6528,7 +6616,7 @@ function _extends$1() {
|
|
|
6528
6616
|
return target;
|
|
6529
6617
|
};
|
|
6530
6618
|
|
|
6531
|
-
return _extends
|
|
6619
|
+
return _extends.apply(this, arguments);
|
|
6532
6620
|
}
|
|
6533
6621
|
|
|
6534
6622
|
function _inheritsLoose(subClass, superClass) {
|
|
@@ -6537,7 +6625,7 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
6537
6625
|
subClass.__proto__ = superClass;
|
|
6538
6626
|
}
|
|
6539
6627
|
|
|
6540
|
-
function _assertThisInitialized(self) {
|
|
6628
|
+
function _assertThisInitialized$1(self) {
|
|
6541
6629
|
if (self === void 0) {
|
|
6542
6630
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
6543
6631
|
}
|
|
@@ -6547,8 +6635,8 @@ function _assertThisInitialized(self) {
|
|
|
6547
6635
|
|
|
6548
6636
|
/*! @name @brightcove/player-loader @version 1.7.1 @license Apache-2.0 */
|
|
6549
6637
|
|
|
6550
|
-
function _extends$1
|
|
6551
|
-
_extends$1
|
|
6638
|
+
function _extends$1() {
|
|
6639
|
+
_extends$1 = Object.assign || function (target) {
|
|
6552
6640
|
for (var i = 1; i < arguments.length; i++) {
|
|
6553
6641
|
var source = arguments[i];
|
|
6554
6642
|
|
|
@@ -6562,7 +6650,7 @@ function _extends$1$1() {
|
|
|
6562
6650
|
return target;
|
|
6563
6651
|
};
|
|
6564
6652
|
|
|
6565
|
-
return _extends$1
|
|
6653
|
+
return _extends$1.apply(this, arguments);
|
|
6566
6654
|
}
|
|
6567
6655
|
|
|
6568
6656
|
var version$1 = "1.7.1";
|
|
@@ -6570,7 +6658,7 @@ var version$1 = "1.7.1";
|
|
|
6570
6658
|
/*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */
|
|
6571
6659
|
var version$1$1 = "1.2.0";
|
|
6572
6660
|
|
|
6573
|
-
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
|
6661
|
+
var _typeof$1 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
|
6574
6662
|
return typeof obj;
|
|
6575
6663
|
} : function (obj) {
|
|
6576
6664
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
@@ -6705,7 +6793,7 @@ var brightcovePlayerUrl = function brightcovePlayerUrl(_ref) {
|
|
|
6705
6793
|
|
|
6706
6794
|
var qs = '';
|
|
6707
6795
|
|
|
6708
|
-
if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof(queryParams)) === 'object') {
|
|
6796
|
+
if (iframe && queryParams && (typeof queryParams === 'undefined' ? 'undefined' : _typeof$1(queryParams)) === 'object') {
|
|
6709
6797
|
qs = getQueryString(queryParams);
|
|
6710
6798
|
}
|
|
6711
6799
|
|
|
@@ -6939,7 +7027,7 @@ var wrapResponsive = function wrapResponsive(embedType, embedOptions, el) {
|
|
|
6939
7027
|
el.style.width = '100%';
|
|
6940
7028
|
el.style.height = '100%';
|
|
6941
7029
|
|
|
6942
|
-
var responsive = _extends$1
|
|
7030
|
+
var responsive = _extends$1({
|
|
6943
7031
|
aspectRatio: DEFAULT_ASPECT_RATIO,
|
|
6944
7032
|
iframeHorizontalPlaylist: DEFAULT_IFRAME_HORIZONTAL_PLAYLIST,
|
|
6945
7033
|
maxWidth: DEFAULT_MAX_WIDTH
|
|
@@ -7624,7 +7712,7 @@ var loadPlayer = function loadPlayer(params, resolve, reject) {
|
|
|
7624
7712
|
|
|
7625
7713
|
|
|
7626
7714
|
var brightcovePlayerLoader = function brightcovePlayerLoader(parameters) {
|
|
7627
|
-
var params = _extends$1
|
|
7715
|
+
var params = _extends$1({}, DEFAULTS, parameters);
|
|
7628
7716
|
|
|
7629
7717
|
var Promise = params.Promise,
|
|
7630
7718
|
onSuccess = params.onSuccess,
|
|
@@ -7766,7 +7854,7 @@ function (_React$Component) {
|
|
|
7766
7854
|
_this.refNode = ref;
|
|
7767
7855
|
};
|
|
7768
7856
|
|
|
7769
|
-
_this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized(_this));
|
|
7857
|
+
_this.loadPlayer = _this.loadPlayer.bind(_assertThisInitialized$1(_this));
|
|
7770
7858
|
return _this;
|
|
7771
7859
|
}
|
|
7772
7860
|
/**
|
|
@@ -7787,7 +7875,7 @@ function (_React$Component) {
|
|
|
7787
7875
|
var userSuccess = this.props.onSuccess;
|
|
7788
7876
|
var userFailure = this.props.onFailure;
|
|
7789
7877
|
|
|
7790
|
-
var options = _extends
|
|
7878
|
+
var options = _extends({}, this.props, {
|
|
7791
7879
|
refNode: this.refNode,
|
|
7792
7880
|
refNodeInsert: 'append',
|
|
7793
7881
|
onSuccess: function onSuccess(_ref) {
|
|
@@ -8096,7 +8184,7 @@ function (_React$Component) {
|
|
|
8096
8184
|
;
|
|
8097
8185
|
|
|
8098
8186
|
_proto.render = function render() {
|
|
8099
|
-
var props = _extends
|
|
8187
|
+
var props = _extends({
|
|
8100
8188
|
className: 'brightcove-react-player-loader'
|
|
8101
8189
|
}, this.props.attrs, {
|
|
8102
8190
|
ref: this.setRefNode
|
|
@@ -8642,11 +8730,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
8642
8730
|
|
|
8643
8731
|
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; }
|
|
8644
8732
|
|
|
8645
|
-
function
|
|
8733
|
+
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
8734
|
+
|
|
8735
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8736
|
+
|
|
8737
|
+
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."); }
|
|
8646
8738
|
|
|
8647
|
-
function
|
|
8739
|
+
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); }
|
|
8648
8740
|
|
|
8649
|
-
function
|
|
8741
|
+
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; }
|
|
8742
|
+
|
|
8743
|
+
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; }
|
|
8650
8744
|
|
|
8651
8745
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8652
8746
|
|
|
@@ -8776,12 +8870,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
8776
8870
|
|
|
8777
8871
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
8778
8872
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
8779
|
-
|
|
8780
|
-
var
|
|
8781
|
-
|
|
8873
|
+
|
|
8874
|
+
var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
|
|
8875
|
+
_step;
|
|
8782
8876
|
|
|
8783
8877
|
try {
|
|
8784
|
-
for (
|
|
8878
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
8785
8879
|
var p = _step.value;
|
|
8786
8880
|
|
|
8787
8881
|
if (props$1[p]) {
|
|
@@ -8796,18 +8890,9 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
8796
8890
|
}
|
|
8797
8891
|
}
|
|
8798
8892
|
} catch (err) {
|
|
8799
|
-
|
|
8800
|
-
_iteratorError = err;
|
|
8893
|
+
_iterator.e(err);
|
|
8801
8894
|
} finally {
|
|
8802
|
-
|
|
8803
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
8804
|
-
_iterator["return"]();
|
|
8805
|
-
}
|
|
8806
|
-
} finally {
|
|
8807
|
-
if (_didIteratorError) {
|
|
8808
|
-
throw _iteratorError;
|
|
8809
|
-
}
|
|
8810
|
-
}
|
|
8895
|
+
_iterator.f();
|
|
8811
8896
|
}
|
|
8812
8897
|
|
|
8813
8898
|
return config;
|
|
@@ -8954,12 +9039,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
8954
9039
|
|
|
8955
9040
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
8956
9041
|
|
|
8957
|
-
function
|
|
9042
|
+
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); }; }
|
|
8958
9043
|
|
|
8959
|
-
function
|
|
9044
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
8960
9045
|
|
|
8961
9046
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
8962
9047
|
|
|
9048
|
+
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; } }
|
|
9049
|
+
|
|
9050
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9051
|
+
|
|
8963
9052
|
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); }
|
|
8964
9053
|
|
|
8965
9054
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -8968,14 +9057,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
8968
9057
|
|
|
8969
9058
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
8970
9059
|
|
|
8971
|
-
var Player =
|
|
8972
|
-
/*#__PURE__*/
|
|
8973
|
-
function (_Component) {
|
|
9060
|
+
var Player = /*#__PURE__*/function (_Component) {
|
|
8974
9061
|
_inherits(Player, _Component);
|
|
8975
9062
|
|
|
8976
|
-
|
|
8977
|
-
var _getPrototypeOf2;
|
|
9063
|
+
var _super = _createSuper(Player);
|
|
8978
9064
|
|
|
9065
|
+
function Player() {
|
|
8979
9066
|
var _this;
|
|
8980
9067
|
|
|
8981
9068
|
_classCallCheck(this, Player);
|
|
@@ -8984,7 +9071,7 @@ function (_Component) {
|
|
|
8984
9071
|
_args[_key] = arguments[_key];
|
|
8985
9072
|
}
|
|
8986
9073
|
|
|
8987
|
-
_this =
|
|
9074
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
8988
9075
|
|
|
8989
9076
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
8990
9077
|
|
|
@@ -9309,7 +9396,7 @@ function (_Component) {
|
|
|
9309
9396
|
return null;
|
|
9310
9397
|
}
|
|
9311
9398
|
|
|
9312
|
-
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
9399
|
+
return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
|
|
9313
9400
|
ref: this.ref,
|
|
9314
9401
|
onReady: this.handleReady,
|
|
9315
9402
|
onPlay: this.handlePlay,
|
|
@@ -9370,15 +9457,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9370
9457
|
|
|
9371
9458
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9372
9459
|
|
|
9373
|
-
function
|
|
9460
|
+
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); }; }
|
|
9374
9461
|
|
|
9375
|
-
function
|
|
9462
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9376
9463
|
|
|
9377
9464
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9378
9465
|
|
|
9379
|
-
function
|
|
9466
|
+
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; } }
|
|
9380
9467
|
|
|
9381
|
-
function
|
|
9468
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9469
|
+
|
|
9470
|
+
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); }
|
|
9471
|
+
|
|
9472
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
9382
9473
|
|
|
9383
9474
|
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; }
|
|
9384
9475
|
|
|
@@ -9387,14 +9478,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
9387
9478
|
function createSinglePlayer(activePlayer) {
|
|
9388
9479
|
var _class, _temp;
|
|
9389
9480
|
|
|
9390
|
-
return _temp = _class =
|
|
9391
|
-
/*#__PURE__*/
|
|
9392
|
-
function (_Component) {
|
|
9481
|
+
return _temp = _class = /*#__PURE__*/function (_Component) {
|
|
9393
9482
|
_inherits(SinglePlayer, _Component);
|
|
9394
9483
|
|
|
9395
|
-
|
|
9396
|
-
var _getPrototypeOf2;
|
|
9484
|
+
var _super = _createSuper(SinglePlayer);
|
|
9397
9485
|
|
|
9486
|
+
function SinglePlayer() {
|
|
9398
9487
|
var _this;
|
|
9399
9488
|
|
|
9400
9489
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -9403,7 +9492,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
9403
9492
|
args[_key] = arguments[_key];
|
|
9404
9493
|
}
|
|
9405
9494
|
|
|
9406
|
-
_this =
|
|
9495
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
9407
9496
|
|
|
9408
9497
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
9409
9498
|
|
|
@@ -9471,12 +9560,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
9471
9560
|
height = _this$props.height,
|
|
9472
9561
|
Wrapper = _this$props.wrapper;
|
|
9473
9562
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
9474
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
9563
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
9475
9564
|
style: _objectSpread({}, style, {
|
|
9476
9565
|
width: width,
|
|
9477
9566
|
height: height
|
|
9478
9567
|
})
|
|
9479
|
-
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
9568
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
9480
9569
|
ref: this.ref,
|
|
9481
9570
|
activePlayer: activePlayer,
|
|
9482
9571
|
config: this.config
|
|
@@ -9522,23 +9611,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9522
9611
|
|
|
9523
9612
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9524
9613
|
|
|
9525
|
-
function
|
|
9614
|
+
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); }; }
|
|
9526
9615
|
|
|
9527
|
-
function
|
|
9616
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9528
9617
|
|
|
9529
9618
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9530
9619
|
|
|
9620
|
+
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; } }
|
|
9621
|
+
|
|
9622
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9623
|
+
|
|
9531
9624
|
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); }
|
|
9532
9625
|
|
|
9533
9626
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
9534
9627
|
|
|
9535
9628
|
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; }
|
|
9536
9629
|
|
|
9537
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
9630
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
9631
|
+
|
|
9632
|
+
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."); }
|
|
9538
9633
|
|
|
9539
|
-
function
|
|
9634
|
+
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); }
|
|
9540
9635
|
|
|
9541
|
-
function
|
|
9636
|
+
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; }
|
|
9637
|
+
|
|
9638
|
+
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; }
|
|
9542
9639
|
|
|
9543
9640
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
9544
9641
|
|
|
@@ -9563,14 +9660,12 @@ function parsePlaylist(url) {
|
|
|
9563
9660
|
return {};
|
|
9564
9661
|
}
|
|
9565
9662
|
|
|
9566
|
-
var YouTube =
|
|
9567
|
-
/*#__PURE__*/
|
|
9568
|
-
function (_Component) {
|
|
9663
|
+
var YouTube = /*#__PURE__*/function (_Component) {
|
|
9569
9664
|
_inherits(YouTube, _Component);
|
|
9570
9665
|
|
|
9571
|
-
|
|
9572
|
-
var _getPrototypeOf2;
|
|
9666
|
+
var _super = _createSuper(YouTube);
|
|
9573
9667
|
|
|
9668
|
+
function YouTube() {
|
|
9574
9669
|
var _this;
|
|
9575
9670
|
|
|
9576
9671
|
_classCallCheck(this, YouTube);
|
|
@@ -9579,7 +9674,7 @@ function (_Component) {
|
|
|
9579
9674
|
args[_key] = arguments[_key];
|
|
9580
9675
|
}
|
|
9581
9676
|
|
|
9582
|
-
_this =
|
|
9677
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
9583
9678
|
|
|
9584
9679
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
9585
9680
|
|
|
@@ -9767,9 +9862,9 @@ function (_Component) {
|
|
|
9767
9862
|
height: '100%',
|
|
9768
9863
|
display: display
|
|
9769
9864
|
};
|
|
9770
|
-
return _react["default"].createElement("div", {
|
|
9865
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
9771
9866
|
style: style
|
|
9772
|
-
}, _react["default"].createElement("div", {
|
|
9867
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
9773
9868
|
ref: this.ref
|
|
9774
9869
|
}));
|
|
9775
9870
|
}
|
|
@@ -9825,12 +9920,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
9825
9920
|
|
|
9826
9921
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
9827
9922
|
|
|
9828
|
-
function
|
|
9923
|
+
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); }; }
|
|
9829
9924
|
|
|
9830
|
-
function
|
|
9925
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
9831
9926
|
|
|
9832
9927
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
9833
9928
|
|
|
9929
|
+
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; } }
|
|
9930
|
+
|
|
9931
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9932
|
+
|
|
9834
9933
|
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); }
|
|
9835
9934
|
|
|
9836
9935
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -9839,16 +9938,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
9839
9938
|
|
|
9840
9939
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
9841
9940
|
var SDK_GLOBAL = 'SC';
|
|
9842
|
-
var MATCH_URL = /(soundcloud\.com|snd\.sc)
|
|
9941
|
+
var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
9843
9942
|
|
|
9844
|
-
var SoundCloud =
|
|
9845
|
-
/*#__PURE__*/
|
|
9846
|
-
function (_Component) {
|
|
9943
|
+
var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
9847
9944
|
_inherits(SoundCloud, _Component);
|
|
9848
9945
|
|
|
9849
|
-
|
|
9850
|
-
var _getPrototypeOf2;
|
|
9946
|
+
var _super = _createSuper(SoundCloud);
|
|
9851
9947
|
|
|
9948
|
+
function SoundCloud() {
|
|
9852
9949
|
var _this;
|
|
9853
9950
|
|
|
9854
9951
|
_classCallCheck(this, SoundCloud);
|
|
@@ -9857,7 +9954,7 @@ function (_Component) {
|
|
|
9857
9954
|
args[_key] = arguments[_key];
|
|
9858
9955
|
}
|
|
9859
9956
|
|
|
9860
|
-
_this =
|
|
9957
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
9861
9958
|
|
|
9862
9959
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
9863
9960
|
|
|
@@ -9978,7 +10075,7 @@ function (_Component) {
|
|
|
9978
10075
|
height: '100%',
|
|
9979
10076
|
display: display
|
|
9980
10077
|
};
|
|
9981
|
-
return _react["default"].createElement("iframe", {
|
|
10078
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
9982
10079
|
ref: this.ref,
|
|
9983
10080
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
9984
10081
|
style: style,
|
|
@@ -10040,12 +10137,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10040
10137
|
|
|
10041
10138
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10042
10139
|
|
|
10043
|
-
function
|
|
10140
|
+
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); }; }
|
|
10044
10141
|
|
|
10045
|
-
function
|
|
10142
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10046
10143
|
|
|
10047
10144
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10048
10145
|
|
|
10146
|
+
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; } }
|
|
10147
|
+
|
|
10148
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10149
|
+
|
|
10049
10150
|
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); }
|
|
10050
10151
|
|
|
10051
10152
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10057,14 +10158,12 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
10057
10158
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
10058
10159
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
10059
10160
|
|
|
10060
|
-
var Vimeo =
|
|
10061
|
-
/*#__PURE__*/
|
|
10062
|
-
function (_Component) {
|
|
10161
|
+
var Vimeo = /*#__PURE__*/function (_Component) {
|
|
10063
10162
|
_inherits(Vimeo, _Component);
|
|
10064
10163
|
|
|
10065
|
-
|
|
10066
|
-
var _getPrototypeOf2;
|
|
10164
|
+
var _super = _createSuper(Vimeo);
|
|
10067
10165
|
|
|
10166
|
+
function Vimeo() {
|
|
10068
10167
|
var _this;
|
|
10069
10168
|
|
|
10070
10169
|
_classCallCheck(this, Vimeo);
|
|
@@ -10073,7 +10172,7 @@ function (_Component) {
|
|
|
10073
10172
|
args[_key] = arguments[_key];
|
|
10074
10173
|
}
|
|
10075
10174
|
|
|
10076
|
-
_this =
|
|
10175
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
10077
10176
|
|
|
10078
10177
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10079
10178
|
|
|
@@ -10230,7 +10329,7 @@ function (_Component) {
|
|
|
10230
10329
|
overflow: 'hidden',
|
|
10231
10330
|
display: display
|
|
10232
10331
|
};
|
|
10233
|
-
return _react["default"].createElement("div", {
|
|
10332
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
10234
10333
|
key: this.props.url,
|
|
10235
10334
|
ref: this.ref,
|
|
10236
10335
|
style: style
|
|
@@ -10290,12 +10389,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10290
10389
|
|
|
10291
10390
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10292
10391
|
|
|
10293
|
-
function
|
|
10392
|
+
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); }; }
|
|
10294
10393
|
|
|
10295
|
-
function
|
|
10394
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10296
10395
|
|
|
10297
10396
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10298
10397
|
|
|
10398
|
+
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; } }
|
|
10399
|
+
|
|
10400
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10401
|
+
|
|
10299
10402
|
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); }
|
|
10300
10403
|
|
|
10301
10404
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10308,14 +10411,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
10308
10411
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
10309
10412
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
10310
10413
|
|
|
10311
|
-
var Facebook =
|
|
10312
|
-
/*#__PURE__*/
|
|
10313
|
-
function (_Component) {
|
|
10414
|
+
var Facebook = /*#__PURE__*/function (_Component) {
|
|
10314
10415
|
_inherits(Facebook, _Component);
|
|
10315
10416
|
|
|
10316
|
-
|
|
10317
|
-
var _getPrototypeOf2;
|
|
10417
|
+
var _super = _createSuper(Facebook);
|
|
10318
10418
|
|
|
10419
|
+
function Facebook() {
|
|
10319
10420
|
var _this;
|
|
10320
10421
|
|
|
10321
10422
|
_classCallCheck(this, Facebook);
|
|
@@ -10324,7 +10425,7 @@ function (_Component) {
|
|
|
10324
10425
|
args[_key] = arguments[_key];
|
|
10325
10426
|
}
|
|
10326
10427
|
|
|
10327
|
-
_this =
|
|
10428
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
10328
10429
|
|
|
10329
10430
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10330
10431
|
|
|
@@ -10440,7 +10541,7 @@ function (_Component) {
|
|
|
10440
10541
|
width: '100%',
|
|
10441
10542
|
height: '100%'
|
|
10442
10543
|
};
|
|
10443
|
-
return _react["default"].createElement("div", {
|
|
10544
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
10444
10545
|
style: style,
|
|
10445
10546
|
id: this.playerID,
|
|
10446
10547
|
className: "fb-video",
|
|
@@ -10500,12 +10601,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10500
10601
|
|
|
10501
10602
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10502
10603
|
|
|
10503
|
-
function
|
|
10604
|
+
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); }; }
|
|
10504
10605
|
|
|
10505
|
-
function
|
|
10606
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10506
10607
|
|
|
10507
10608
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10508
10609
|
|
|
10610
|
+
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; } }
|
|
10611
|
+
|
|
10612
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10613
|
+
|
|
10509
10614
|
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); }
|
|
10510
10615
|
|
|
10511
10616
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10516,14 +10621,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
10516
10621
|
var SDK_GLOBAL = 'playerjs';
|
|
10517
10622
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
10518
10623
|
|
|
10519
|
-
var Streamable =
|
|
10520
|
-
/*#__PURE__*/
|
|
10521
|
-
function (_Component) {
|
|
10624
|
+
var Streamable = /*#__PURE__*/function (_Component) {
|
|
10522
10625
|
_inherits(Streamable, _Component);
|
|
10523
10626
|
|
|
10524
|
-
|
|
10525
|
-
var _getPrototypeOf2;
|
|
10627
|
+
var _super = _createSuper(Streamable);
|
|
10526
10628
|
|
|
10629
|
+
function Streamable() {
|
|
10527
10630
|
var _this;
|
|
10528
10631
|
|
|
10529
10632
|
_classCallCheck(this, Streamable);
|
|
@@ -10532,7 +10635,7 @@ function (_Component) {
|
|
|
10532
10635
|
args[_key] = arguments[_key];
|
|
10533
10636
|
}
|
|
10534
10637
|
|
|
10535
|
-
_this =
|
|
10638
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
10536
10639
|
|
|
10537
10640
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10538
10641
|
|
|
@@ -10652,7 +10755,7 @@ function (_Component) {
|
|
|
10652
10755
|
width: '100%',
|
|
10653
10756
|
height: '100%'
|
|
10654
10757
|
};
|
|
10655
|
-
return _react["default"].createElement("iframe", {
|
|
10758
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
10656
10759
|
ref: this.ref,
|
|
10657
10760
|
src: "https://streamable.com/o/".concat(id),
|
|
10658
10761
|
frameBorder: "0",
|
|
@@ -10713,12 +10816,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10713
10816
|
|
|
10714
10817
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10715
10818
|
|
|
10716
|
-
function
|
|
10819
|
+
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); }; }
|
|
10717
10820
|
|
|
10718
|
-
function
|
|
10821
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10719
10822
|
|
|
10720
10823
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10721
10824
|
|
|
10825
|
+
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; } }
|
|
10826
|
+
|
|
10827
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10828
|
+
|
|
10722
10829
|
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); }
|
|
10723
10830
|
|
|
10724
10831
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10729,26 +10836,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
10729
10836
|
var SDK_GLOBAL = 'Wistia';
|
|
10730
10837
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
10731
10838
|
|
|
10732
|
-
var Wistia =
|
|
10733
|
-
/*#__PURE__*/
|
|
10734
|
-
function (_Component) {
|
|
10839
|
+
var Wistia = /*#__PURE__*/function (_Component) {
|
|
10735
10840
|
_inherits(Wistia, _Component);
|
|
10736
10841
|
|
|
10737
|
-
|
|
10738
|
-
var _getPrototypeOf2;
|
|
10842
|
+
var _super = _createSuper(Wistia);
|
|
10739
10843
|
|
|
10844
|
+
function Wistia() {
|
|
10740
10845
|
var _this;
|
|
10741
10846
|
|
|
10742
10847
|
_classCallCheck(this, Wistia);
|
|
10743
10848
|
|
|
10744
|
-
for (var _len = arguments.length,
|
|
10745
|
-
|
|
10849
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
10850
|
+
_args[_key] = arguments[_key];
|
|
10746
10851
|
}
|
|
10747
10852
|
|
|
10748
|
-
_this =
|
|
10853
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
10749
10854
|
|
|
10750
10855
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10751
10856
|
|
|
10857
|
+
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
10858
|
+
var _this$props;
|
|
10859
|
+
|
|
10860
|
+
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
10861
|
+
});
|
|
10862
|
+
|
|
10863
|
+
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
10864
|
+
var _this$props2;
|
|
10865
|
+
|
|
10866
|
+
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
10867
|
+
});
|
|
10868
|
+
|
|
10869
|
+
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
10870
|
+
var _this$props3;
|
|
10871
|
+
|
|
10872
|
+
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
10873
|
+
});
|
|
10874
|
+
|
|
10875
|
+
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
10876
|
+
var _this$props4;
|
|
10877
|
+
|
|
10878
|
+
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
10879
|
+
});
|
|
10880
|
+
|
|
10752
10881
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
10753
10882
|
_this.callPlayer('mute');
|
|
10754
10883
|
});
|
|
@@ -10770,17 +10899,13 @@ function (_Component) {
|
|
|
10770
10899
|
value: function load(url) {
|
|
10771
10900
|
var _this2 = this;
|
|
10772
10901
|
|
|
10773
|
-
var _this$
|
|
10774
|
-
playing = _this$
|
|
10775
|
-
muted = _this$
|
|
10776
|
-
controls = _this$
|
|
10777
|
-
_onReady = _this$
|
|
10778
|
-
|
|
10779
|
-
|
|
10780
|
-
onSeek = _this$props.onSeek,
|
|
10781
|
-
onEnded = _this$props.onEnded,
|
|
10782
|
-
config = _this$props.config,
|
|
10783
|
-
onError = _this$props.onError;
|
|
10902
|
+
var _this$props5 = this.props,
|
|
10903
|
+
playing = _this$props5.playing,
|
|
10904
|
+
muted = _this$props5.muted,
|
|
10905
|
+
controls = _this$props5.controls,
|
|
10906
|
+
_onReady = _this$props5.onReady,
|
|
10907
|
+
config = _this$props5.config,
|
|
10908
|
+
onError = _this$props5.onError;
|
|
10784
10909
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
10785
10910
|
window._wq = window._wq || [];
|
|
10786
10911
|
|
|
@@ -10797,19 +10922,28 @@ function (_Component) {
|
|
|
10797
10922
|
|
|
10798
10923
|
_this2.unbind();
|
|
10799
10924
|
|
|
10800
|
-
_this2.player.bind('play', onPlay);
|
|
10925
|
+
_this2.player.bind('play', _this2.onPlay);
|
|
10801
10926
|
|
|
10802
|
-
_this2.player.bind('pause', onPause);
|
|
10927
|
+
_this2.player.bind('pause', _this2.onPause);
|
|
10803
10928
|
|
|
10804
|
-
_this2.player.bind('seek', onSeek);
|
|
10929
|
+
_this2.player.bind('seek', _this2.onSeek);
|
|
10805
10930
|
|
|
10806
|
-
_this2.player.bind('end', onEnded);
|
|
10931
|
+
_this2.player.bind('end', _this2.onEnded);
|
|
10807
10932
|
|
|
10808
10933
|
_onReady();
|
|
10809
10934
|
}
|
|
10810
10935
|
});
|
|
10811
10936
|
}, onError);
|
|
10812
10937
|
}
|
|
10938
|
+
}, {
|
|
10939
|
+
key: "unbind",
|
|
10940
|
+
value: function unbind() {
|
|
10941
|
+
this.player.unbind('play', this.onPlay);
|
|
10942
|
+
this.player.unbind('pause', this.onPause);
|
|
10943
|
+
this.player.unbind('seek', this.onSeek);
|
|
10944
|
+
this.player.unbind('end', this.onEnded);
|
|
10945
|
+
} // Proxy methods to prevent listener leaks
|
|
10946
|
+
|
|
10813
10947
|
}, {
|
|
10814
10948
|
key: "play",
|
|
10815
10949
|
value: function play() {
|
|
@@ -10820,19 +10954,6 @@ function (_Component) {
|
|
|
10820
10954
|
value: function pause() {
|
|
10821
10955
|
this.callPlayer('pause');
|
|
10822
10956
|
}
|
|
10823
|
-
}, {
|
|
10824
|
-
key: "unbind",
|
|
10825
|
-
value: function unbind() {
|
|
10826
|
-
var _this$props2 = this.props,
|
|
10827
|
-
onPlay = _this$props2.onPlay,
|
|
10828
|
-
onPause = _this$props2.onPause,
|
|
10829
|
-
onSeek = _this$props2.onSeek,
|
|
10830
|
-
onEnded = _this$props2.onEnded;
|
|
10831
|
-
this.player.unbind('play', onPlay);
|
|
10832
|
-
this.player.unbind('pause', onPause);
|
|
10833
|
-
this.player.unbind('seek', onSeek);
|
|
10834
|
-
this.player.unbind('end', onEnded);
|
|
10835
|
-
}
|
|
10836
10957
|
}, {
|
|
10837
10958
|
key: "stop",
|
|
10838
10959
|
value: function stop() {
|
|
@@ -10878,7 +10999,7 @@ function (_Component) {
|
|
|
10878
10999
|
width: '100%',
|
|
10879
11000
|
height: '100%'
|
|
10880
11001
|
};
|
|
10881
|
-
return _react["default"].createElement("div", {
|
|
11002
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
10882
11003
|
key: id,
|
|
10883
11004
|
className: className,
|
|
10884
11005
|
style: style
|
|
@@ -10938,12 +11059,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10938
11059
|
|
|
10939
11060
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10940
11061
|
|
|
10941
|
-
function
|
|
11062
|
+
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); }; }
|
|
10942
11063
|
|
|
10943
|
-
function
|
|
11064
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10944
11065
|
|
|
10945
11066
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10946
11067
|
|
|
11068
|
+
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; } }
|
|
11069
|
+
|
|
11070
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11071
|
+
|
|
10947
11072
|
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); }
|
|
10948
11073
|
|
|
10949
11074
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -10956,14 +11081,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
10956
11081
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
10957
11082
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
10958
11083
|
|
|
10959
|
-
var Twitch =
|
|
10960
|
-
/*#__PURE__*/
|
|
10961
|
-
function (_Component) {
|
|
11084
|
+
var Twitch = /*#__PURE__*/function (_Component) {
|
|
10962
11085
|
_inherits(Twitch, _Component);
|
|
10963
11086
|
|
|
10964
|
-
|
|
10965
|
-
var _getPrototypeOf2;
|
|
11087
|
+
var _super = _createSuper(Twitch);
|
|
10966
11088
|
|
|
11089
|
+
function Twitch() {
|
|
10967
11090
|
var _this;
|
|
10968
11091
|
|
|
10969
11092
|
_classCallCheck(this, Twitch);
|
|
@@ -10972,7 +11095,7 @@ function (_Component) {
|
|
|
10972
11095
|
args[_key] = arguments[_key];
|
|
10973
11096
|
}
|
|
10974
11097
|
|
|
10975
|
-
_this =
|
|
11098
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
10976
11099
|
|
|
10977
11100
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
10978
11101
|
|
|
@@ -11093,7 +11216,7 @@ function (_Component) {
|
|
|
11093
11216
|
width: '100%',
|
|
11094
11217
|
height: '100%'
|
|
11095
11218
|
};
|
|
11096
|
-
return _react["default"].createElement("div", {
|
|
11219
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
11097
11220
|
style: style,
|
|
11098
11221
|
id: this.playerID
|
|
11099
11222
|
});
|
|
@@ -11146,11 +11269,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
11146
11269
|
|
|
11147
11270
|
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; }
|
|
11148
11271
|
|
|
11149
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
11272
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
11150
11273
|
|
|
11151
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
11274
|
+
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."); }
|
|
11152
11275
|
|
|
11153
|
-
function
|
|
11276
|
+
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); }
|
|
11277
|
+
|
|
11278
|
+
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; }
|
|
11279
|
+
|
|
11280
|
+
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; }
|
|
11154
11281
|
|
|
11155
11282
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11156
11283
|
|
|
@@ -11160,12 +11287,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11160
11287
|
|
|
11161
11288
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11162
11289
|
|
|
11163
|
-
function
|
|
11290
|
+
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); }; }
|
|
11164
11291
|
|
|
11165
|
-
function
|
|
11292
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11166
11293
|
|
|
11167
11294
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11168
11295
|
|
|
11296
|
+
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; } }
|
|
11297
|
+
|
|
11298
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11299
|
+
|
|
11169
11300
|
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); }
|
|
11170
11301
|
|
|
11171
11302
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -11177,14 +11308,12 @@ var SDK_GLOBAL = 'DM';
|
|
|
11177
11308
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
11178
11309
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
11179
11310
|
|
|
11180
|
-
var DailyMotion =
|
|
11181
|
-
/*#__PURE__*/
|
|
11182
|
-
function (_Component) {
|
|
11311
|
+
var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
11183
11312
|
_inherits(DailyMotion, _Component);
|
|
11184
11313
|
|
|
11185
|
-
|
|
11186
|
-
var _getPrototypeOf2;
|
|
11314
|
+
var _super = _createSuper(DailyMotion);
|
|
11187
11315
|
|
|
11316
|
+
function DailyMotion() {
|
|
11188
11317
|
var _this;
|
|
11189
11318
|
|
|
11190
11319
|
_classCallCheck(this, DailyMotion);
|
|
@@ -11193,7 +11322,7 @@ function (_Component) {
|
|
|
11193
11322
|
args[_key] = arguments[_key];
|
|
11194
11323
|
}
|
|
11195
11324
|
|
|
11196
|
-
_this =
|
|
11325
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
11197
11326
|
|
|
11198
11327
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
11199
11328
|
|
|
@@ -11322,9 +11451,9 @@ function (_Component) {
|
|
|
11322
11451
|
height: '100%',
|
|
11323
11452
|
display: display
|
|
11324
11453
|
};
|
|
11325
|
-
return _react["default"].createElement("div", {
|
|
11454
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
11326
11455
|
style: style
|
|
11327
|
-
}, _react["default"].createElement("div", {
|
|
11456
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
11328
11457
|
ref: this.ref
|
|
11329
11458
|
}));
|
|
11330
11459
|
}
|
|
@@ -11382,12 +11511,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11382
11511
|
|
|
11383
11512
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11384
11513
|
|
|
11385
|
-
function
|
|
11514
|
+
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); }; }
|
|
11386
11515
|
|
|
11387
|
-
function
|
|
11516
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11388
11517
|
|
|
11389
11518
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11390
11519
|
|
|
11520
|
+
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; } }
|
|
11521
|
+
|
|
11522
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11523
|
+
|
|
11391
11524
|
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); }
|
|
11392
11525
|
|
|
11393
11526
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -11398,14 +11531,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
11398
11531
|
var SDK_GLOBAL = 'Mixcloud';
|
|
11399
11532
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
11400
11533
|
|
|
11401
|
-
var Mixcloud =
|
|
11402
|
-
/*#__PURE__*/
|
|
11403
|
-
function (_Component) {
|
|
11534
|
+
var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
11404
11535
|
_inherits(Mixcloud, _Component);
|
|
11405
11536
|
|
|
11406
|
-
|
|
11407
|
-
var _getPrototypeOf2;
|
|
11537
|
+
var _super = _createSuper(Mixcloud);
|
|
11408
11538
|
|
|
11539
|
+
function Mixcloud() {
|
|
11409
11540
|
var _this;
|
|
11410
11541
|
|
|
11411
11542
|
_classCallCheck(this, Mixcloud);
|
|
@@ -11414,7 +11545,7 @@ function (_Component) {
|
|
|
11414
11545
|
args[_key] = arguments[_key];
|
|
11415
11546
|
}
|
|
11416
11547
|
|
|
11417
|
-
_this =
|
|
11548
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
11418
11549
|
|
|
11419
11550
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
11420
11551
|
|
|
@@ -11517,7 +11648,7 @@ function (_Component) {
|
|
|
11517
11648
|
})); // We have to give the iframe a key here to prevent a
|
|
11518
11649
|
// weird dialog appearing when loading a new track
|
|
11519
11650
|
|
|
11520
|
-
return _react["default"].createElement("iframe", {
|
|
11651
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
11521
11652
|
key: id,
|
|
11522
11653
|
ref: this.ref,
|
|
11523
11654
|
style: style,
|
|
@@ -11577,23 +11708,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11577
11708
|
|
|
11578
11709
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
11579
11710
|
|
|
11580
|
-
function
|
|
11711
|
+
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); }; }
|
|
11581
11712
|
|
|
11582
|
-
function
|
|
11713
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
11583
11714
|
|
|
11584
11715
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
11585
11716
|
|
|
11717
|
+
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; } }
|
|
11718
|
+
|
|
11719
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11720
|
+
|
|
11586
11721
|
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); }
|
|
11587
11722
|
|
|
11588
11723
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
11589
11724
|
|
|
11590
11725
|
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; }
|
|
11591
11726
|
|
|
11727
|
+
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; } } }; }
|
|
11728
|
+
|
|
11729
|
+
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); }
|
|
11730
|
+
|
|
11731
|
+
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; }
|
|
11732
|
+
|
|
11592
11733
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
11593
11734
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
11594
11735
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
11595
11736
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
11596
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
11737
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
|
|
11597
11738
|
var HLS_GLOBAL = 'Hls';
|
|
11598
11739
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
11599
11740
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -11602,12 +11743,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
11602
11743
|
|
|
11603
11744
|
function canPlay(url) {
|
|
11604
11745
|
if (url instanceof Array) {
|
|
11605
|
-
var
|
|
11606
|
-
|
|
11607
|
-
var _iteratorError = undefined;
|
|
11746
|
+
var _iterator = _createForOfIteratorHelper(url),
|
|
11747
|
+
_step;
|
|
11608
11748
|
|
|
11609
11749
|
try {
|
|
11610
|
-
for (
|
|
11750
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
11611
11751
|
var item = _step.value;
|
|
11612
11752
|
|
|
11613
11753
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -11619,18 +11759,9 @@ function canPlay(url) {
|
|
|
11619
11759
|
}
|
|
11620
11760
|
}
|
|
11621
11761
|
} catch (err) {
|
|
11622
|
-
|
|
11623
|
-
_iteratorError = err;
|
|
11762
|
+
_iterator.e(err);
|
|
11624
11763
|
} finally {
|
|
11625
|
-
|
|
11626
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
11627
|
-
_iterator["return"]();
|
|
11628
|
-
}
|
|
11629
|
-
} finally {
|
|
11630
|
-
if (_didIteratorError) {
|
|
11631
|
-
throw _iteratorError;
|
|
11632
|
-
}
|
|
11633
|
-
}
|
|
11764
|
+
_iterator.f();
|
|
11634
11765
|
}
|
|
11635
11766
|
|
|
11636
11767
|
return false;
|
|
@@ -11654,14 +11785,12 @@ function canEnablePIP(url) {
|
|
|
11654
11785
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
11655
11786
|
}
|
|
11656
11787
|
|
|
11657
|
-
var FilePlayer =
|
|
11658
|
-
/*#__PURE__*/
|
|
11659
|
-
function (_Component) {
|
|
11788
|
+
var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
11660
11789
|
_inherits(FilePlayer, _Component);
|
|
11661
11790
|
|
|
11662
|
-
|
|
11663
|
-
var _getPrototypeOf2;
|
|
11791
|
+
var _super = _createSuper(FilePlayer);
|
|
11664
11792
|
|
|
11793
|
+
function FilePlayer() {
|
|
11665
11794
|
var _this;
|
|
11666
11795
|
|
|
11667
11796
|
_classCallCheck(this, FilePlayer);
|
|
@@ -11670,7 +11799,7 @@ function (_Component) {
|
|
|
11670
11799
|
_args[_key] = arguments[_key];
|
|
11671
11800
|
}
|
|
11672
11801
|
|
|
11673
|
-
_this =
|
|
11802
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
11674
11803
|
|
|
11675
11804
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
11676
11805
|
var _this$props;
|
|
@@ -11757,19 +11886,19 @@ function (_Component) {
|
|
|
11757
11886
|
|
|
11758
11887
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
11759
11888
|
if (typeof source === 'string') {
|
|
11760
|
-
return _react["default"].createElement("source", {
|
|
11889
|
+
return /*#__PURE__*/_react["default"].createElement("source", {
|
|
11761
11890
|
key: index,
|
|
11762
11891
|
src: source
|
|
11763
11892
|
});
|
|
11764
11893
|
}
|
|
11765
11894
|
|
|
11766
|
-
return _react["default"].createElement("source", _extends({
|
|
11895
|
+
return /*#__PURE__*/_react["default"].createElement("source", _extends({
|
|
11767
11896
|
key: index
|
|
11768
11897
|
}, source));
|
|
11769
11898
|
});
|
|
11770
11899
|
|
|
11771
11900
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
11772
|
-
return _react["default"].createElement("track", _extends({
|
|
11901
|
+
return /*#__PURE__*/_react["default"].createElement("track", _extends({
|
|
11773
11902
|
key: index
|
|
11774
11903
|
}, track));
|
|
11775
11904
|
});
|
|
@@ -11807,6 +11936,10 @@ function (_Component) {
|
|
|
11807
11936
|
key: "componentWillUnmount",
|
|
11808
11937
|
value: function componentWillUnmount() {
|
|
11809
11938
|
this.removeListeners(this.player);
|
|
11939
|
+
|
|
11940
|
+
if (this.hls) {
|
|
11941
|
+
this.hls.destroy();
|
|
11942
|
+
}
|
|
11810
11943
|
}
|
|
11811
11944
|
}, {
|
|
11812
11945
|
key: "addListeners",
|
|
@@ -11937,10 +12070,6 @@ function (_Component) {
|
|
|
11937
12070
|
value: function stop() {
|
|
11938
12071
|
this.player.removeAttribute('src');
|
|
11939
12072
|
|
|
11940
|
-
if (this.hls) {
|
|
11941
|
-
this.hls.destroy();
|
|
11942
|
-
}
|
|
11943
|
-
|
|
11944
12073
|
if (this.dash) {
|
|
11945
12074
|
this.dash.reset();
|
|
11946
12075
|
}
|
|
@@ -12052,7 +12181,7 @@ function (_Component) {
|
|
|
12052
12181
|
width: width === 'auto' ? width : '100%',
|
|
12053
12182
|
height: height === 'auto' ? height : '100%'
|
|
12054
12183
|
};
|
|
12055
|
-
return _react["default"].createElement(Element, _extends({
|
|
12184
|
+
return /*#__PURE__*/_react["default"].createElement(Element, _extends({
|
|
12056
12185
|
ref: this.ref,
|
|
12057
12186
|
src: this.getSource(url),
|
|
12058
12187
|
style: style,
|
|
@@ -12142,12 +12271,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
12142
12271
|
|
|
12143
12272
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
12144
12273
|
|
|
12145
|
-
function
|
|
12274
|
+
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); }; }
|
|
12146
12275
|
|
|
12147
|
-
function
|
|
12276
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
12148
12277
|
|
|
12149
12278
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12150
12279
|
|
|
12280
|
+
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; } }
|
|
12281
|
+
|
|
12282
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12283
|
+
|
|
12151
12284
|
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); }
|
|
12152
12285
|
|
|
12153
12286
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -12156,14 +12289,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
12156
12289
|
|
|
12157
12290
|
var ICON_SIZE = '64px';
|
|
12158
12291
|
|
|
12159
|
-
var Preview =
|
|
12160
|
-
/*#__PURE__*/
|
|
12161
|
-
function (_Component) {
|
|
12292
|
+
var Preview = /*#__PURE__*/function (_Component) {
|
|
12162
12293
|
_inherits(Preview, _Component);
|
|
12163
12294
|
|
|
12164
|
-
|
|
12165
|
-
var _getPrototypeOf2;
|
|
12295
|
+
var _super = _createSuper(Preview);
|
|
12166
12296
|
|
|
12297
|
+
function Preview() {
|
|
12167
12298
|
var _this;
|
|
12168
12299
|
|
|
12169
12300
|
_classCallCheck(this, Preview);
|
|
@@ -12172,7 +12303,7 @@ function (_Component) {
|
|
|
12172
12303
|
args[_key] = arguments[_key];
|
|
12173
12304
|
}
|
|
12174
12305
|
|
|
12175
|
-
_this =
|
|
12306
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
12176
12307
|
|
|
12177
12308
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
12178
12309
|
|
|
@@ -12270,15 +12401,15 @@ function (_Component) {
|
|
|
12270
12401
|
}
|
|
12271
12402
|
};
|
|
12272
12403
|
|
|
12273
|
-
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
12404
|
+
var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
|
|
12274
12405
|
style: styles.shadow,
|
|
12275
12406
|
className: "react-player__shadow"
|
|
12276
|
-
}, _react["default"].createElement("div", {
|
|
12407
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
12277
12408
|
style: styles.playIcon,
|
|
12278
12409
|
className: "react-player__play-icon"
|
|
12279
12410
|
}));
|
|
12280
12411
|
|
|
12281
|
-
return _react["default"].createElement("div", {
|
|
12412
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
12282
12413
|
style: styles.preview,
|
|
12283
12414
|
className: "react-player__preview",
|
|
12284
12415
|
onClick: onClick
|
|
@@ -12315,6 +12446,12 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
12315
12446
|
|
|
12316
12447
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12317
12448
|
|
|
12449
|
+
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; } } }; }
|
|
12450
|
+
|
|
12451
|
+
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); }
|
|
12452
|
+
|
|
12453
|
+
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; }
|
|
12454
|
+
|
|
12318
12455
|
var PRELOAD_PLAYERS = [{
|
|
12319
12456
|
Player: YouTube_1.YouTube,
|
|
12320
12457
|
configKey: 'youtube',
|
|
@@ -12335,16 +12472,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
12335
12472
|
|
|
12336
12473
|
function renderPreloadPlayers(url, controls, config) {
|
|
12337
12474
|
var players = [];
|
|
12338
|
-
|
|
12339
|
-
var
|
|
12340
|
-
|
|
12475
|
+
|
|
12476
|
+
var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
|
|
12477
|
+
_step;
|
|
12341
12478
|
|
|
12342
12479
|
try {
|
|
12343
|
-
for (
|
|
12480
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
12344
12481
|
var player = _step.value;
|
|
12345
12482
|
|
|
12346
12483
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
12347
|
-
players.push(_react["default"].createElement(_Player["default"], {
|
|
12484
|
+
players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
|
|
12348
12485
|
key: player.Player.displayName,
|
|
12349
12486
|
activePlayer: player.Player,
|
|
12350
12487
|
url: player.url,
|
|
@@ -12356,18 +12493,9 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
12356
12493
|
}
|
|
12357
12494
|
}
|
|
12358
12495
|
} catch (err) {
|
|
12359
|
-
|
|
12360
|
-
_iteratorError = err;
|
|
12496
|
+
_iterator.e(err);
|
|
12361
12497
|
} finally {
|
|
12362
|
-
|
|
12363
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
12364
|
-
_iterator["return"]();
|
|
12365
|
-
}
|
|
12366
|
-
} finally {
|
|
12367
|
-
if (_didIteratorError) {
|
|
12368
|
-
throw _iteratorError;
|
|
12369
|
-
}
|
|
12370
|
-
}
|
|
12498
|
+
_iterator.f();
|
|
12371
12499
|
}
|
|
12372
12500
|
|
|
12373
12501
|
return players;
|
|
@@ -12491,13 +12619,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
12491
12619
|
|
|
12492
12620
|
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); }
|
|
12493
12621
|
|
|
12494
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
12622
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
12623
|
+
|
|
12624
|
+
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."); }
|
|
12625
|
+
|
|
12626
|
+
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); }
|
|
12495
12627
|
|
|
12496
|
-
function
|
|
12628
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
12497
12629
|
|
|
12498
|
-
function
|
|
12630
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
12499
12631
|
|
|
12500
|
-
function
|
|
12632
|
+
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; }
|
|
12501
12633
|
|
|
12502
12634
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
12503
12635
|
|
|
@@ -12505,12 +12637,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
12505
12637
|
|
|
12506
12638
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
12507
12639
|
|
|
12508
|
-
function
|
|
12640
|
+
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); }; }
|
|
12509
12641
|
|
|
12510
|
-
function
|
|
12642
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
12511
12643
|
|
|
12512
12644
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12513
12645
|
|
|
12646
|
+
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; } }
|
|
12647
|
+
|
|
12648
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12649
|
+
|
|
12514
12650
|
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); }
|
|
12515
12651
|
|
|
12516
12652
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -12520,14 +12656,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
12520
12656
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
12521
12657
|
var customPlayers = [];
|
|
12522
12658
|
|
|
12523
|
-
var ReactPlayer =
|
|
12524
|
-
/*#__PURE__*/
|
|
12525
|
-
function (_Component) {
|
|
12659
|
+
var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
12526
12660
|
_inherits(ReactPlayer, _Component);
|
|
12527
12661
|
|
|
12528
|
-
|
|
12529
|
-
var _getPrototypeOf2;
|
|
12662
|
+
var _super = _createSuper(ReactPlayer);
|
|
12530
12663
|
|
|
12664
|
+
function ReactPlayer() {
|
|
12531
12665
|
var _this;
|
|
12532
12666
|
|
|
12533
12667
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -12536,7 +12670,7 @@ function (_Component) {
|
|
|
12536
12670
|
args[_key] = arguments[_key];
|
|
12537
12671
|
}
|
|
12538
12672
|
|
|
12539
|
-
_this =
|
|
12673
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
12540
12674
|
|
|
12541
12675
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
12542
12676
|
|
|
@@ -12647,7 +12781,7 @@ function (_Component) {
|
|
|
12647
12781
|
key: "renderActivePlayer",
|
|
12648
12782
|
value: function renderActivePlayer(url, activePlayer) {
|
|
12649
12783
|
if (!url) return null;
|
|
12650
|
-
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
12784
|
+
return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
12651
12785
|
key: activePlayer.displayName,
|
|
12652
12786
|
ref: this.activePlayerRef,
|
|
12653
12787
|
config: this.config,
|
|
@@ -12684,14 +12818,14 @@ function (_Component) {
|
|
|
12684
12818
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
12685
12819
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
12686
12820
|
|
|
12687
|
-
var preview = _react["default"].createElement(_Preview["default"], {
|
|
12821
|
+
var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
|
|
12688
12822
|
url: url,
|
|
12689
12823
|
light: light,
|
|
12690
12824
|
playIcon: playIcon,
|
|
12691
12825
|
onClick: this.handleClickPreview
|
|
12692
12826
|
});
|
|
12693
12827
|
|
|
12694
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
12828
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
12695
12829
|
ref: this.wrapperRef,
|
|
12696
12830
|
style: _objectSpread({}, style, {
|
|
12697
12831
|
width: width,
|
|
@@ -13325,7 +13459,7 @@ var Poll = function Poll(_ref) {
|
|
|
13325
13459
|
);
|
|
13326
13460
|
};
|
|
13327
13461
|
|
|
13328
|
-
var numberOfPaginations =
|
|
13462
|
+
var numberOfPaginations = main_38 ? 4 : 10;
|
|
13329
13463
|
|
|
13330
13464
|
var Quiz = function Quiz(_ref) {
|
|
13331
13465
|
var quizzes = _ref.quizzes,
|
|
@@ -13438,7 +13572,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
13438
13572
|
var renderPagination = function renderPagination() {
|
|
13439
13573
|
return React__default.createElement(
|
|
13440
13574
|
Pagination,
|
|
13441
|
-
{ className: 'p-0 m-0', size:
|
|
13575
|
+
{ className: 'p-0 m-0', size: main_38 && 'sm' },
|
|
13442
13576
|
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
13443
13577
|
return changePage('first');
|
|
13444
13578
|
}, disabled: currentPage === 1 }),
|
|
@@ -13678,7 +13812,7 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
13678
13812
|
};
|
|
13679
13813
|
|
|
13680
13814
|
var Figure = dynamic(function () {
|
|
13681
|
-
return import('./Figure-
|
|
13815
|
+
return import('./Figure-cc1affbe.js');
|
|
13682
13816
|
}, { ssr: false });
|
|
13683
13817
|
|
|
13684
13818
|
var ScrollToElement = function ScrollToElement(elementId) {
|
|
@@ -13949,7 +14083,7 @@ var Feature = function Feature(props) {
|
|
|
13949
14083
|
};
|
|
13950
14084
|
//image width
|
|
13951
14085
|
var imageWidth = 900;
|
|
13952
|
-
if (
|
|
14086
|
+
if (main_39) {
|
|
13953
14087
|
imageWidth = 450;
|
|
13954
14088
|
}
|
|
13955
14089
|
|
|
@@ -14329,16 +14463,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
14329
14463
|
_ref$className = _ref.className,
|
|
14330
14464
|
className = _ref$className === undefined ? '' : _ref$className;
|
|
14331
14465
|
|
|
14332
|
-
/*
|
|
14333
|
-
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
14334
|
-
example:
|
|
14335
|
-
<RelatedTopicDropdown
|
|
14336
|
-
page='/clinical'
|
|
14337
|
-
exclude="clinical"
|
|
14338
|
-
className='mb-3'
|
|
14339
|
-
parentTaxonomy={props.parentTaxonomy}
|
|
14340
|
-
subTaxonomies={props.subTaxonomies}
|
|
14341
|
-
/>
|
|
14466
|
+
/*
|
|
14467
|
+
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
14468
|
+
example:
|
|
14469
|
+
<RelatedTopicDropdown
|
|
14470
|
+
page='/clinical'
|
|
14471
|
+
exclude="clinical"
|
|
14472
|
+
className='mb-3'
|
|
14473
|
+
parentTaxonomy={props.parentTaxonomy}
|
|
14474
|
+
subTaxonomies={props.subTaxonomies}
|
|
14475
|
+
/>
|
|
14342
14476
|
*/
|
|
14343
14477
|
if (subTaxonomies.length === 0 && parentTaxonomy) {
|
|
14344
14478
|
if (parentTaxonomy.identifier == exclude) {
|
|
@@ -14356,10 +14490,10 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
14356
14490
|
'div',
|
|
14357
14491
|
{ id: 'related_dropdown', className: className },
|
|
14358
14492
|
React__default.createElement(
|
|
14359
|
-
DropdownButton,
|
|
14493
|
+
DropdownButton$1,
|
|
14360
14494
|
{ id: 'related_button', variant: variant, title: 'Related Topics' },
|
|
14361
14495
|
React__default.createElement(
|
|
14362
|
-
Dropdown.Item,
|
|
14496
|
+
Dropdown$1.Item,
|
|
14363
14497
|
{ href: parentTaxonomy.identifier },
|
|
14364
14498
|
parentTaxonomy.name
|
|
14365
14499
|
)
|
|
@@ -14379,11 +14513,11 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
14379
14513
|
'div',
|
|
14380
14514
|
{ id: 'related_dropdown', className: className },
|
|
14381
14515
|
React__default.createElement(
|
|
14382
|
-
DropdownButton,
|
|
14516
|
+
DropdownButton$1,
|
|
14383
14517
|
{ id: 'related_button', variant: variant, title: 'Related Topics' },
|
|
14384
14518
|
subTaxonomies.length > 0 && subTaxonomies.map(function (taxonomy, index) {
|
|
14385
14519
|
return React__default.createElement(
|
|
14386
|
-
Dropdown.Item,
|
|
14520
|
+
Dropdown$1.Item,
|
|
14387
14521
|
{ key: index, href: page + '/' + taxonomy.identifier },
|
|
14388
14522
|
taxonomy.name
|
|
14389
14523
|
);
|
|
@@ -14804,39 +14938,39 @@ module.exports = { "default": set, __esModule: true };
|
|
|
14804
14938
|
|
|
14805
14939
|
var _Set = unwrapExports(set$1);
|
|
14806
14940
|
|
|
14807
|
-
/* usage & query
|
|
14808
|
-
const Publication = (props) => {
|
|
14809
|
-
const { cache, pub, year } = props
|
|
14810
|
-
|
|
14811
|
-
const targeting = {
|
|
14812
|
-
content_placement: [`/journals/${pub.identifier.current}`],
|
|
14813
|
-
document_url: [`/journals/${pub.identifier.current}`],
|
|
14814
|
-
}
|
|
14815
|
-
|
|
14816
|
-
return (
|
|
14817
|
-
<Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
|
|
14818
|
-
<PublicationLanding publication={pub} year={year} href={'journals'} />
|
|
14819
|
-
</Shell>
|
|
14820
|
-
)
|
|
14821
|
-
}
|
|
14822
|
-
|
|
14823
|
-
Publication.getInitialProps = async (ctx) => {
|
|
14824
|
-
const { query } = ctx
|
|
14825
|
-
const {
|
|
14826
|
-
query: { year },
|
|
14827
|
-
} = ctx
|
|
14828
|
-
const pub = await client.fetch(getQuery('publication'), query)
|
|
14829
|
-
const builder = imageUrlBuilder(client)
|
|
14830
|
-
const urlFor = (source) => {
|
|
14831
|
-
return builder.image(source)
|
|
14832
|
-
}
|
|
14833
|
-
pub.issues.map((issue) => {
|
|
14834
|
-
issue.thumbnail = urlFor(issue.thumbnail).url()
|
|
14835
|
-
})
|
|
14836
|
-
return { pub, year }
|
|
14837
|
-
}
|
|
14838
|
-
|
|
14839
|
-
export default Publication
|
|
14941
|
+
/* usage & query
|
|
14942
|
+
const Publication = (props) => {
|
|
14943
|
+
const { cache, pub, year } = props
|
|
14944
|
+
|
|
14945
|
+
const targeting = {
|
|
14946
|
+
content_placement: [`/journals/${pub.identifier.current}`],
|
|
14947
|
+
document_url: [`/journals/${pub.identifier.current}`],
|
|
14948
|
+
}
|
|
14949
|
+
|
|
14950
|
+
return (
|
|
14951
|
+
<Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
|
|
14952
|
+
<PublicationLanding publication={pub} year={year} href={'journals'} />
|
|
14953
|
+
</Shell>
|
|
14954
|
+
)
|
|
14955
|
+
}
|
|
14956
|
+
|
|
14957
|
+
Publication.getInitialProps = async (ctx) => {
|
|
14958
|
+
const { query } = ctx
|
|
14959
|
+
const {
|
|
14960
|
+
query: { year },
|
|
14961
|
+
} = ctx
|
|
14962
|
+
const pub = await client.fetch(getQuery('publication'), query)
|
|
14963
|
+
const builder = imageUrlBuilder(client)
|
|
14964
|
+
const urlFor = (source) => {
|
|
14965
|
+
return builder.image(source)
|
|
14966
|
+
}
|
|
14967
|
+
pub.issues.map((issue) => {
|
|
14968
|
+
issue.thumbnail = urlFor(issue.thumbnail).url()
|
|
14969
|
+
})
|
|
14970
|
+
return { pub, year }
|
|
14971
|
+
}
|
|
14972
|
+
|
|
14973
|
+
export default Publication
|
|
14840
14974
|
*/
|
|
14841
14975
|
|
|
14842
14976
|
var PublicationLanding = function PublicationLanding(props) {
|
|
@@ -14880,19 +15014,19 @@ var PublicationLanding = function PublicationLanding(props) {
|
|
|
14880
15014
|
Col,
|
|
14881
15015
|
null,
|
|
14882
15016
|
React__default.createElement(
|
|
14883
|
-
Dropdown,
|
|
15017
|
+
Dropdown$1,
|
|
14884
15018
|
{ id: 'pubYearFilter' },
|
|
14885
15019
|
React__default.createElement(
|
|
14886
|
-
Dropdown.Toggle,
|
|
15020
|
+
Dropdown$1.Toggle,
|
|
14887
15021
|
null,
|
|
14888
15022
|
activeYear
|
|
14889
15023
|
),
|
|
14890
15024
|
React__default.createElement(
|
|
14891
|
-
Dropdown.Menu,
|
|
15025
|
+
Dropdown$1.Menu,
|
|
14892
15026
|
null,
|
|
14893
15027
|
years.map(function (yr, key) {
|
|
14894
15028
|
return React__default.createElement(
|
|
14895
|
-
Dropdown.Item,
|
|
15029
|
+
Dropdown$1.Item,
|
|
14896
15030
|
{ key: key, onClick: function onClick() {
|
|
14897
15031
|
return setActiveYear(yr);
|
|
14898
15032
|
} },
|
|
@@ -14966,39 +15100,44 @@ var PublicationLanding = function PublicationLanding(props) {
|
|
|
14966
15100
|
'New content coming soon, please check back later.'
|
|
14967
15101
|
)
|
|
14968
15102
|
)
|
|
15103
|
+
),
|
|
15104
|
+
React__default.createElement(
|
|
15105
|
+
'style',
|
|
15106
|
+
{ jsx: 'true' },
|
|
15107
|
+
'\n .issueCard.card:hover {\n cursor: default;\n }\n '
|
|
14969
15108
|
)
|
|
14970
15109
|
);
|
|
14971
15110
|
};
|
|
14972
15111
|
|
|
14973
|
-
/* usage
|
|
14974
|
-
import Settings, { Ads } from '../../../../settings'
|
|
14975
|
-
import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
|
|
14976
|
-
import client from '../../../../client'
|
|
14977
|
-
import moment from 'moment'
|
|
14978
|
-
import Shell from '../../../../components/2.0/Shell'
|
|
14979
|
-
import { pageview } from '../../../../utilities/gtag'
|
|
14980
|
-
|
|
14981
|
-
const Issue = (props) => {
|
|
14982
|
-
const { pubIssue, cache } = props
|
|
14983
|
-
const targeting = {
|
|
14984
|
-
content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
14985
|
-
document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
14986
|
-
}
|
|
14987
|
-
return (
|
|
14988
|
-
<Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
|
|
14989
|
-
<IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
|
|
14990
|
-
</Shell>
|
|
14991
|
-
)
|
|
14992
|
-
}
|
|
14993
|
-
|
|
14994
|
-
Issue.getInitialProps = async (ctx) => {
|
|
14995
|
-
const { query } = ctx
|
|
14996
|
-
const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
|
|
14997
|
-
)
|
|
14998
|
-
return { pubIssue }
|
|
14999
|
-
}
|
|
15000
|
-
|
|
15001
|
-
export default Issue
|
|
15112
|
+
/* usage
|
|
15113
|
+
import Settings, { Ads } from '../../../../settings'
|
|
15114
|
+
import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
|
|
15115
|
+
import client from '../../../../client'
|
|
15116
|
+
import moment from 'moment'
|
|
15117
|
+
import Shell from '../../../../components/2.0/Shell'
|
|
15118
|
+
import { pageview } from '../../../../utilities/gtag'
|
|
15119
|
+
|
|
15120
|
+
const Issue = (props) => {
|
|
15121
|
+
const { pubIssue, cache } = props
|
|
15122
|
+
const targeting = {
|
|
15123
|
+
content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
15124
|
+
document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
15125
|
+
}
|
|
15126
|
+
return (
|
|
15127
|
+
<Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
|
|
15128
|
+
<IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
|
|
15129
|
+
</Shell>
|
|
15130
|
+
)
|
|
15131
|
+
}
|
|
15132
|
+
|
|
15133
|
+
Issue.getInitialProps = async (ctx) => {
|
|
15134
|
+
const { query } = ctx
|
|
15135
|
+
const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
|
|
15136
|
+
)
|
|
15137
|
+
return { pubIssue }
|
|
15138
|
+
}
|
|
15139
|
+
|
|
15140
|
+
export default Issue
|
|
15002
15141
|
*/
|
|
15003
15142
|
|
|
15004
15143
|
var IssueLanding = function IssueLanding(props) {
|
|
@@ -15874,34 +16013,34 @@ var GridHero = function GridHero(props) {
|
|
|
15874
16013
|
);
|
|
15875
16014
|
};
|
|
15876
16015
|
|
|
15877
|
-
/*
|
|
15878
|
-
Sample query
|
|
15879
|
-
let references = ''
|
|
15880
|
-
if(article.taxonomyMapping.length > 0){
|
|
15881
|
-
article.taxonomyMapping.forEach((ref, index) => {
|
|
15882
|
-
references = references + `references('${ref._ref}') `
|
|
15883
|
-
if(index+1 !== article.taxonomyMapping.length){
|
|
15884
|
-
references = references + ` && `
|
|
15885
|
-
}
|
|
15886
|
-
})
|
|
15887
|
-
}
|
|
15888
|
-
|
|
15889
|
-
const relatedArticlesQuery = `*[!(_id in path("drafts.**")) && _type == "article" && title !='${article.title}' && defined(title) && is_visible == true && ( references('article.documentGroup._id') || ${references} ) && published <= '${today}'] | order(published desc) [0...4] {
|
|
15890
|
-
...,
|
|
15891
|
-
title,
|
|
15892
|
-
summary,
|
|
15893
|
-
thumbnail,
|
|
15894
|
-
url,
|
|
15895
|
-
published,
|
|
15896
|
-
authorMapping[]->,
|
|
15897
|
-
contentCategory->
|
|
15898
|
-
}`
|
|
15899
|
-
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
15900
|
-
|
|
15901
|
-
Sample usage
|
|
15902
|
-
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
15903
|
-
|
|
15904
|
-
|
|
16016
|
+
/*
|
|
16017
|
+
Sample query
|
|
16018
|
+
let references = ''
|
|
16019
|
+
if(article.taxonomyMapping.length > 0){
|
|
16020
|
+
article.taxonomyMapping.forEach((ref, index) => {
|
|
16021
|
+
references = references + `references('${ref._ref}') `
|
|
16022
|
+
if(index+1 !== article.taxonomyMapping.length){
|
|
16023
|
+
references = references + ` && `
|
|
16024
|
+
}
|
|
16025
|
+
})
|
|
16026
|
+
}
|
|
16027
|
+
|
|
16028
|
+
const relatedArticlesQuery = `*[!(_id in path("drafts.**")) && _type == "article" && title !='${article.title}' && defined(title) && is_visible == true && ( references('article.documentGroup._id') || ${references} ) && published <= '${today}'] | order(published desc) [0...4] {
|
|
16029
|
+
...,
|
|
16030
|
+
title,
|
|
16031
|
+
summary,
|
|
16032
|
+
thumbnail,
|
|
16033
|
+
url,
|
|
16034
|
+
published,
|
|
16035
|
+
authorMapping[]->,
|
|
16036
|
+
contentCategory->
|
|
16037
|
+
}`
|
|
16038
|
+
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
16039
|
+
|
|
16040
|
+
Sample usage
|
|
16041
|
+
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
16042
|
+
|
|
16043
|
+
|
|
15905
16044
|
*/
|
|
15906
16045
|
var RelatedContent = function RelatedContent(props) {
|
|
15907
16046
|
var client = props.client,
|
|
@@ -15968,21 +16107,21 @@ var RelatedContent = function RelatedContent(props) {
|
|
|
15968
16107
|
);
|
|
15969
16108
|
};
|
|
15970
16109
|
|
|
15971
|
-
/*
|
|
15972
|
-
Example usage - targetedonc.com/latest-conference
|
|
15973
|
-
const query = `*[!(_id in path("drafts.**")) && _type == "article" && defined(title) && is_visible == true && published <= '${today}' && references('b49d36b8-aa56-4183-a2bc-1568c229fb72') ] | order(published desc) [$from...$to] {
|
|
15974
|
-
...,
|
|
15975
|
-
title,
|
|
15976
|
-
summary,
|
|
15977
|
-
thumbnail,
|
|
15978
|
-
url,
|
|
15979
|
-
published,
|
|
15980
|
-
documentGroup->,
|
|
15981
|
-
contentCategory->,
|
|
15982
|
-
'pageNumber': ${currentPage}
|
|
15983
|
-
}`
|
|
15984
|
-
|
|
15985
|
-
const posts = await client.fetch(query, params)
|
|
16110
|
+
/*
|
|
16111
|
+
Example usage - targetedonc.com/latest-conference
|
|
16112
|
+
const query = `*[!(_id in path("drafts.**")) && _type == "article" && defined(title) && is_visible == true && published <= '${today}' && references('b49d36b8-aa56-4183-a2bc-1568c229fb72') ] | order(published desc) [$from...$to] {
|
|
16113
|
+
...,
|
|
16114
|
+
title,
|
|
16115
|
+
summary,
|
|
16116
|
+
thumbnail,
|
|
16117
|
+
url,
|
|
16118
|
+
published,
|
|
16119
|
+
documentGroup->,
|
|
16120
|
+
contentCategory->,
|
|
16121
|
+
'pageNumber': ${currentPage}
|
|
16122
|
+
}`
|
|
16123
|
+
|
|
16124
|
+
const posts = await client.fetch(query, params)
|
|
15986
16125
|
*/
|
|
15987
16126
|
|
|
15988
16127
|
var ConferenceArticleCard = function ConferenceArticleCard(props) {
|
|
@@ -16987,8 +17126,9 @@ var Article = function Article(props) {
|
|
|
16987
17126
|
shareOptions = props.shareOptions,
|
|
16988
17127
|
cpModificationRequired = props.cpModificationRequired,
|
|
16989
17128
|
authorPrefix = props.authorPrefix,
|
|
16990
|
-
|
|
16991
|
-
|
|
17129
|
+
_props$lgContextAd = props.lgContextAd,
|
|
17130
|
+
lgContextAd = _props$lgContextAd === undefined ? false : _props$lgContextAd,
|
|
17131
|
+
queueData = props.queueData;
|
|
16992
17132
|
|
|
16993
17133
|
var _useState = useState(null),
|
|
16994
17134
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -17025,21 +17165,21 @@ var Article = function Article(props) {
|
|
|
17025
17165
|
var renderRelevantTopicsDropdown = function renderRelevantTopicsDropdown() {
|
|
17026
17166
|
if (content_placement && content_placement.length > 0) {
|
|
17027
17167
|
return React__default.createElement(
|
|
17028
|
-
Dropdown,
|
|
17168
|
+
Dropdown$1,
|
|
17029
17169
|
{ style: { marginBottom: '1rem' } },
|
|
17030
17170
|
React__default.createElement(
|
|
17031
|
-
Dropdown.Toggle,
|
|
17171
|
+
Dropdown$1.Toggle,
|
|
17032
17172
|
{ variant: 'primary', id: 'partner-dropdown' },
|
|
17033
17173
|
'Relevant Topics'
|
|
17034
17174
|
),
|
|
17035
17175
|
React__default.createElement(
|
|
17036
|
-
Dropdown.Menu,
|
|
17176
|
+
Dropdown$1.Menu,
|
|
17037
17177
|
null,
|
|
17038
17178
|
content_placement.length > 0 ? content_placement.map(function (cp, index) {
|
|
17039
17179
|
var cp_url = cpModificationRequired ? get_content_placement_url(cp) : cp.path;
|
|
17040
17180
|
var href = '/' + cp_url;
|
|
17041
17181
|
return React__default.createElement(
|
|
17042
|
-
Dropdown.Item,
|
|
17182
|
+
Dropdown$1.Item,
|
|
17043
17183
|
{ key: index, href: href },
|
|
17044
17184
|
cp.name
|
|
17045
17185
|
);
|
|
@@ -17154,11 +17294,14 @@ var Article = function Article(props) {
|
|
|
17154
17294
|
contextualAD: _extends$2({}, payload.contextualAD, {
|
|
17155
17295
|
slotId: (payload.contextualAD.slotId || 'contextual_ad') + '-' + payload._id,
|
|
17156
17296
|
className: 'ADFluid',
|
|
17157
|
-
sizes: [['fluid'], [300, 100]]
|
|
17297
|
+
sizes: lgContextAd ? [[728, 90], ['fluid'], [300, 100]] : [['fluid'], [300, 100]],
|
|
17298
|
+
sizeMapping: [{
|
|
17299
|
+
viewport: [7680, 4320],
|
|
17300
|
+
sizes: lgContextAd ? [[728, 90], ['fluid'], [300, 100]] : [['fluid'], [300, 100]]
|
|
17301
|
+
}, { viewport: [1024, 768], sizes: [['fluid'], [300, 100]] }]
|
|
17158
17302
|
})
|
|
17159
17303
|
});
|
|
17160
17304
|
var _selectedIndex = indexes[1] + 1;
|
|
17161
|
-
|
|
17162
17305
|
var _checkIsAdFound = function _checkIsAdFound(isFound, adData) {
|
|
17163
17306
|
if (!isFound) {
|
|
17164
17307
|
var parent = document.getElementById('contextual-native-ad-' + payload._id);
|
|
@@ -17395,7 +17538,7 @@ var Article = function Article(props) {
|
|
|
17395
17538
|
React__default.createElement('br', null),
|
|
17396
17539
|
React__default.createElement('br', null)
|
|
17397
17540
|
),
|
|
17398
|
-
|
|
17541
|
+
main_39 && props.article.Ads.map(function (ad, index) {
|
|
17399
17542
|
if (index === 0) {
|
|
17400
17543
|
return React__default.createElement(
|
|
17401
17544
|
'div',
|
|
@@ -17420,7 +17563,7 @@ var Article = function Article(props) {
|
|
|
17420
17563
|
renderIsiContent(props.article)
|
|
17421
17564
|
)
|
|
17422
17565
|
),
|
|
17423
|
-
|
|
17566
|
+
main_39 && props.article.Ads.map(function (ad, index) {
|
|
17424
17567
|
if (index > 0) {
|
|
17425
17568
|
return React__default.createElement(
|
|
17426
17569
|
'div',
|
|
@@ -17542,7 +17685,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
17542
17685
|
setQueueData = _useState4[1];
|
|
17543
17686
|
|
|
17544
17687
|
var refreshAD = function refreshAD(path) {
|
|
17545
|
-
if (!
|
|
17688
|
+
if (!main_39) {
|
|
17546
17689
|
var activeArticle = queueData.find(function (item) {
|
|
17547
17690
|
return item.url.current === path;
|
|
17548
17691
|
});
|
|
@@ -17686,27 +17829,27 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
17686
17829
|
};
|
|
17687
17830
|
|
|
17688
17831
|
var KMTracker = function KMTracker(props) {
|
|
17689
|
-
|
|
17832
|
+
var id = props.id;
|
|
17690
17833
|
|
|
17691
|
-
|
|
17834
|
+
if (document && id) {
|
|
17692
17835
|
(function () {
|
|
17693
|
-
|
|
17836
|
+
var ecnJquery = document.createElement('script');
|
|
17694
17837
|
|
|
17695
|
-
|
|
17696
|
-
|
|
17697
|
-
|
|
17838
|
+
ecnJquery.type = 'text/javascript';
|
|
17839
|
+
ecnJquery.async = true;
|
|
17840
|
+
ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
|
|
17698
17841
|
|
|
17699
|
-
|
|
17842
|
+
var ecnScript = document.createElement('script');
|
|
17700
17843
|
|
|
17701
|
-
|
|
17702
|
-
|
|
17703
|
-
|
|
17704
|
-
|
|
17844
|
+
ecnScript.type = 'text/javascript';
|
|
17845
|
+
ecnScript.async = true;
|
|
17846
|
+
ecnScript.id = 'km-tracker';
|
|
17847
|
+
ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
|
|
17705
17848
|
|
|
17706
|
-
|
|
17707
|
-
|
|
17708
|
-
|
|
17709
|
-
|
|
17849
|
+
document.head.appendChild(ecnJquery);
|
|
17850
|
+
document.head.appendChild(ecnScript);
|
|
17851
|
+
})();
|
|
17852
|
+
}
|
|
17710
17853
|
};
|
|
17711
17854
|
|
|
17712
17855
|
var getSeriesDetail = function getSeriesDetail(article, currentSeries) {
|
|
@@ -17860,7 +18003,7 @@ var returnFormField = function returnFormField(_ref) {
|
|
|
17860
18003
|
}
|
|
17861
18004
|
};
|
|
17862
18005
|
|
|
17863
|
-
var _this = undefined;
|
|
18006
|
+
var _this$1 = undefined;
|
|
17864
18007
|
|
|
17865
18008
|
var dataHandler = function () {
|
|
17866
18009
|
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(api_url, body) {
|
|
@@ -17926,7 +18069,7 @@ var dataHandler = function () {
|
|
|
17926
18069
|
return _context.stop();
|
|
17927
18070
|
}
|
|
17928
18071
|
}
|
|
17929
|
-
}, _callee, _this, [[0, 20]]);
|
|
18072
|
+
}, _callee, _this$1, [[0, 20]]);
|
|
17930
18073
|
}));
|
|
17931
18074
|
|
|
17932
18075
|
return function dataHandler(_x, _x2) {
|
|
@@ -18122,7 +18265,7 @@ var countries$1 = ["United States", "Afghanistan", "Albania", "Algeria", "Americ
|
|
|
18122
18265
|
|
|
18123
18266
|
var states = ['AL', 'AK', 'AS', 'AZ', 'AR', 'CA', 'CO', 'CT', 'DE', 'DC', 'FM', 'FL', 'GA', 'GU', 'HI', 'ID', 'IL', 'IN', 'IA', 'KS', 'KY', 'LA', 'ME', 'MH', 'MD', 'MA', 'MI', 'MN', 'MS', 'MO', 'MT', 'NE', 'NV', 'NH', 'NJ', 'NM', 'NY', 'NC', 'ND', 'MP', 'OH', 'OK', 'OR', 'PW', 'PA', 'PR', 'RI', 'SC', 'SD', 'TN', 'TX', 'UT', 'VT', 'VI', 'VA', 'WA', 'WV', 'WI', 'WY'];
|
|
18124
18267
|
|
|
18125
|
-
var _this$
|
|
18268
|
+
var _this$2 = undefined;
|
|
18126
18269
|
|
|
18127
18270
|
var SignupForm = function SignupForm(props) {
|
|
18128
18271
|
var handleSubmit = function () {
|
|
@@ -18285,7 +18428,7 @@ var SignupForm = function SignupForm(props) {
|
|
|
18285
18428
|
return _context.stop();
|
|
18286
18429
|
}
|
|
18287
18430
|
}
|
|
18288
|
-
}, _callee, _this$
|
|
18431
|
+
}, _callee, _this$2);
|
|
18289
18432
|
}));
|
|
18290
18433
|
|
|
18291
18434
|
return function loadInitData() {
|
|
@@ -18352,7 +18495,7 @@ var SignupForm = function SignupForm(props) {
|
|
|
18352
18495
|
return _context2.stop();
|
|
18353
18496
|
}
|
|
18354
18497
|
}
|
|
18355
|
-
}, _callee2, _this$
|
|
18498
|
+
}, _callee2, _this$2);
|
|
18356
18499
|
}));
|
|
18357
18500
|
|
|
18358
18501
|
return function handleOccupationChanged(_x) {
|
|
@@ -18500,7 +18643,7 @@ var SignupForm = function SignupForm(props) {
|
|
|
18500
18643
|
);
|
|
18501
18644
|
};
|
|
18502
18645
|
|
|
18503
|
-
var _this$
|
|
18646
|
+
var _this$3 = undefined;
|
|
18504
18647
|
|
|
18505
18648
|
var SignupForm$1 = function SignupForm(props) {
|
|
18506
18649
|
var handleSubmit = function () {
|
|
@@ -18697,7 +18840,7 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
18697
18840
|
return _context.stop();
|
|
18698
18841
|
}
|
|
18699
18842
|
}
|
|
18700
|
-
}, _callee, _this$
|
|
18843
|
+
}, _callee, _this$3);
|
|
18701
18844
|
}));
|
|
18702
18845
|
|
|
18703
18846
|
return function loadInitData() {
|
|
@@ -18764,7 +18907,7 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
18764
18907
|
return _context2.stop();
|
|
18765
18908
|
}
|
|
18766
18909
|
}
|
|
18767
|
-
}, _callee2, _this$
|
|
18910
|
+
}, _callee2, _this$3);
|
|
18768
18911
|
}));
|
|
18769
18912
|
|
|
18770
18913
|
return function handleOccupationChanged(_x) {
|
|
@@ -19768,9 +19911,6 @@ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
19768
19911
|
if (value != null) {
|
|
19769
19912
|
if ($gOPD && (i + 1) >= parts.length) {
|
|
19770
19913
|
var desc = $gOPD(value, parts[i]);
|
|
19771
|
-
if (!allowMissing && !(parts[i] in value)) {
|
|
19772
|
-
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
19773
|
-
}
|
|
19774
19914
|
value = desc ? (desc.get || desc.value) : value[parts[i]];
|
|
19775
19915
|
} else {
|
|
19776
19916
|
value = value[parts[i]];
|
|
@@ -19803,16 +19943,7 @@ var callBound = function callBoundIntrinsic(name, allowMissing) {
|
|
|
19803
19943
|
return intrinsic;
|
|
19804
19944
|
};
|
|
19805
19945
|
|
|
19806
|
-
var $defineProperty = GetIntrinsic('%Object.defineProperty%'
|
|
19807
|
-
|
|
19808
|
-
if ($defineProperty) {
|
|
19809
|
-
try {
|
|
19810
|
-
$defineProperty({}, 'a', { value: 1 });
|
|
19811
|
-
} catch (e) {
|
|
19812
|
-
// IE 8 has a broken defineProperty
|
|
19813
|
-
$defineProperty = null;
|
|
19814
|
-
}
|
|
19815
|
-
}
|
|
19946
|
+
var $defineProperty = GetIntrinsic('%Object.defineProperty%');
|
|
19816
19947
|
|
|
19817
19948
|
|
|
19818
19949
|
|
|
@@ -19955,225 +20086,7 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
|
|
|
19955
20086
|
return obj;
|
|
19956
20087
|
};
|
|
19957
20088
|
|
|
19958
|
-
|
|
19959
|
-
if ($gOPD$1) {
|
|
19960
|
-
try {
|
|
19961
|
-
$gOPD$1([], 'length');
|
|
19962
|
-
} catch (e) {
|
|
19963
|
-
// IE 8 has a broken gOPD
|
|
19964
|
-
$gOPD$1 = null;
|
|
19965
|
-
}
|
|
19966
|
-
}
|
|
19967
|
-
|
|
19968
|
-
var getOwnPropertyDescriptor = $gOPD$1;
|
|
19969
|
-
|
|
19970
|
-
var $Array = GetIntrinsic('%Array%');
|
|
19971
|
-
|
|
19972
|
-
// eslint-disable-next-line global-require
|
|
19973
|
-
var toStr$4 = !$Array.isArray && callBound('Object.prototype.toString');
|
|
19974
|
-
|
|
19975
|
-
// https://www.ecma-international.org/ecma-262/6.0/#sec-isarray
|
|
19976
|
-
|
|
19977
|
-
var IsArray = $Array.isArray || function IsArray(argument) {
|
|
19978
|
-
return toStr$4(argument) === '[object Array]';
|
|
19979
|
-
};
|
|
19980
|
-
|
|
19981
|
-
// https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
|
|
19982
|
-
|
|
19983
|
-
var IsPropertyKey = function IsPropertyKey(argument) {
|
|
19984
|
-
return typeof argument === 'string' || typeof argument === 'symbol';
|
|
19985
|
-
};
|
|
19986
|
-
|
|
19987
|
-
var regexExec = RegExp.prototype.exec;
|
|
19988
|
-
var gOPD = Object.getOwnPropertyDescriptor;
|
|
19989
|
-
|
|
19990
|
-
var tryRegexExecCall = function tryRegexExec(value) {
|
|
19991
|
-
try {
|
|
19992
|
-
var lastIndex = value.lastIndex;
|
|
19993
|
-
value.lastIndex = 0; // eslint-disable-line no-param-reassign
|
|
19994
|
-
|
|
19995
|
-
regexExec.call(value);
|
|
19996
|
-
return true;
|
|
19997
|
-
} catch (e) {
|
|
19998
|
-
return false;
|
|
19999
|
-
} finally {
|
|
20000
|
-
value.lastIndex = lastIndex; // eslint-disable-line no-param-reassign
|
|
20001
|
-
}
|
|
20002
|
-
};
|
|
20003
|
-
var toStr$5 = Object.prototype.toString;
|
|
20004
|
-
var regexClass = '[object RegExp]';
|
|
20005
|
-
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
20006
|
-
|
|
20007
|
-
var isRegex = function isRegex(value) {
|
|
20008
|
-
if (!value || typeof value !== 'object') {
|
|
20009
|
-
return false;
|
|
20010
|
-
}
|
|
20011
|
-
if (!hasToStringTag) {
|
|
20012
|
-
return toStr$5.call(value) === regexClass;
|
|
20013
|
-
}
|
|
20014
|
-
|
|
20015
|
-
var descriptor = gOPD(value, 'lastIndex');
|
|
20016
|
-
var hasLastIndexDataProperty = descriptor && src$1(descriptor, 'value');
|
|
20017
|
-
if (!hasLastIndexDataProperty) {
|
|
20018
|
-
return false;
|
|
20019
|
-
}
|
|
20020
|
-
|
|
20021
|
-
return tryRegexExecCall(value);
|
|
20022
|
-
};
|
|
20023
|
-
|
|
20024
|
-
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
|
|
20025
|
-
|
|
20026
|
-
var ToBoolean = function ToBoolean(value) { return !!value; };
|
|
20027
|
-
|
|
20028
|
-
var $match = GetIntrinsic('%Symbol.match%', true);
|
|
20029
|
-
|
|
20030
|
-
|
|
20031
|
-
|
|
20032
|
-
|
|
20033
|
-
|
|
20034
|
-
// https://ecma-international.org/ecma-262/6.0/#sec-isregexp
|
|
20035
|
-
|
|
20036
|
-
var IsRegExp = function IsRegExp(argument) {
|
|
20037
|
-
if (!argument || typeof argument !== 'object') {
|
|
20038
|
-
return false;
|
|
20039
|
-
}
|
|
20040
|
-
if ($match) {
|
|
20041
|
-
var isRegExp = argument[$match];
|
|
20042
|
-
if (typeof isRegExp !== 'undefined') {
|
|
20043
|
-
return ToBoolean(isRegExp);
|
|
20044
|
-
}
|
|
20045
|
-
}
|
|
20046
|
-
return isRegex(argument);
|
|
20047
|
-
};
|
|
20048
|
-
|
|
20049
|
-
var fnToStr = Function.prototype.toString;
|
|
20050
|
-
|
|
20051
|
-
var constructorRegex = /^\s*class\b/;
|
|
20052
|
-
var isES6ClassFn = function isES6ClassFunction(value) {
|
|
20053
|
-
try {
|
|
20054
|
-
var fnStr = fnToStr.call(value);
|
|
20055
|
-
return constructorRegex.test(fnStr);
|
|
20056
|
-
} catch (e) {
|
|
20057
|
-
return false; // not a function
|
|
20058
|
-
}
|
|
20059
|
-
};
|
|
20060
|
-
|
|
20061
|
-
var tryFunctionObject = function tryFunctionToStr(value) {
|
|
20062
|
-
try {
|
|
20063
|
-
if (isES6ClassFn(value)) { return false; }
|
|
20064
|
-
fnToStr.call(value);
|
|
20065
|
-
return true;
|
|
20066
|
-
} catch (e) {
|
|
20067
|
-
return false;
|
|
20068
|
-
}
|
|
20069
|
-
};
|
|
20070
|
-
var toStr$6 = Object.prototype.toString;
|
|
20071
|
-
var fnClass = '[object Function]';
|
|
20072
|
-
var genClass = '[object GeneratorFunction]';
|
|
20073
|
-
var hasToStringTag$1 = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
20074
|
-
|
|
20075
|
-
var isCallable = function isCallable(value) {
|
|
20076
|
-
if (!value) { return false; }
|
|
20077
|
-
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
20078
|
-
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
20079
|
-
if (hasToStringTag$1) { return tryFunctionObject(value); }
|
|
20080
|
-
if (isES6ClassFn(value)) { return false; }
|
|
20081
|
-
var strClass = toStr$6.call(value);
|
|
20082
|
-
return strClass === fnClass || strClass === genClass;
|
|
20083
|
-
};
|
|
20084
|
-
|
|
20085
|
-
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
|
|
20086
|
-
|
|
20087
|
-
var IsCallable = isCallable;
|
|
20088
|
-
|
|
20089
|
-
var $TypeError$2 = GetIntrinsic('%TypeError%');
|
|
20090
|
-
|
|
20091
|
-
|
|
20092
|
-
|
|
20093
|
-
|
|
20094
|
-
|
|
20095
|
-
// https://ecma-international.org/ecma-262/5.1/#sec-8.10.5
|
|
20096
|
-
|
|
20097
|
-
var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
|
|
20098
|
-
if (Type$1(Obj) !== 'Object') {
|
|
20099
|
-
throw new $TypeError$2('ToPropertyDescriptor requires an object');
|
|
20100
|
-
}
|
|
20101
|
-
|
|
20102
|
-
var desc = {};
|
|
20103
|
-
if (src$1(Obj, 'enumerable')) {
|
|
20104
|
-
desc['[[Enumerable]]'] = ToBoolean(Obj.enumerable);
|
|
20105
|
-
}
|
|
20106
|
-
if (src$1(Obj, 'configurable')) {
|
|
20107
|
-
desc['[[Configurable]]'] = ToBoolean(Obj.configurable);
|
|
20108
|
-
}
|
|
20109
|
-
if (src$1(Obj, 'value')) {
|
|
20110
|
-
desc['[[Value]]'] = Obj.value;
|
|
20111
|
-
}
|
|
20112
|
-
if (src$1(Obj, 'writable')) {
|
|
20113
|
-
desc['[[Writable]]'] = ToBoolean(Obj.writable);
|
|
20114
|
-
}
|
|
20115
|
-
if (src$1(Obj, 'get')) {
|
|
20116
|
-
var getter = Obj.get;
|
|
20117
|
-
if (typeof getter !== 'undefined' && !IsCallable(getter)) {
|
|
20118
|
-
throw new TypeError('getter must be a function');
|
|
20119
|
-
}
|
|
20120
|
-
desc['[[Get]]'] = getter;
|
|
20121
|
-
}
|
|
20122
|
-
if (src$1(Obj, 'set')) {
|
|
20123
|
-
var setter = Obj.set;
|
|
20124
|
-
if (typeof setter !== 'undefined' && !IsCallable(setter)) {
|
|
20125
|
-
throw new $TypeError$2('setter must be a function');
|
|
20126
|
-
}
|
|
20127
|
-
desc['[[Set]]'] = setter;
|
|
20128
|
-
}
|
|
20129
|
-
|
|
20130
|
-
if ((src$1(desc, '[[Get]]') || src$1(desc, '[[Set]]')) && (src$1(desc, '[[Value]]') || src$1(desc, '[[Writable]]'))) {
|
|
20131
|
-
throw new $TypeError$2('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute');
|
|
20132
|
-
}
|
|
20133
|
-
return desc;
|
|
20134
|
-
};
|
|
20135
|
-
|
|
20136
|
-
var $TypeError$3 = GetIntrinsic('%TypeError%');
|
|
20137
|
-
|
|
20138
|
-
|
|
20139
|
-
|
|
20140
|
-
var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
|
|
20141
|
-
|
|
20142
|
-
|
|
20143
|
-
|
|
20144
|
-
|
|
20145
|
-
|
|
20146
|
-
|
|
20147
|
-
|
|
20148
|
-
|
|
20149
|
-
|
|
20150
|
-
// https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
|
|
20151
|
-
|
|
20152
|
-
var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
|
|
20153
|
-
if (Type$1(O) !== 'Object') {
|
|
20154
|
-
throw new $TypeError$3('Assertion failed: O must be an Object');
|
|
20155
|
-
}
|
|
20156
|
-
if (!IsPropertyKey(P)) {
|
|
20157
|
-
throw new $TypeError$3('Assertion failed: P must be a Property Key');
|
|
20158
|
-
}
|
|
20159
|
-
if (!src$1(O, P)) {
|
|
20160
|
-
return void 0;
|
|
20161
|
-
}
|
|
20162
|
-
if (!getOwnPropertyDescriptor) {
|
|
20163
|
-
// ES3 / IE 8 fallback
|
|
20164
|
-
var arrayLength = IsArray(O) && P === 'length';
|
|
20165
|
-
var regexLastIndex = IsRegExp(O) && P === 'lastIndex';
|
|
20166
|
-
return {
|
|
20167
|
-
'[[Configurable]]': !(arrayLength || regexLastIndex),
|
|
20168
|
-
'[[Enumerable]]': $isEnumerable$1(O, P),
|
|
20169
|
-
'[[Value]]': O[P],
|
|
20170
|
-
'[[Writable]]': true
|
|
20171
|
-
};
|
|
20172
|
-
}
|
|
20173
|
-
return ToPropertyDescriptor(getOwnPropertyDescriptor(O, P));
|
|
20174
|
-
};
|
|
20175
|
-
|
|
20176
|
-
// https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
|
|
20089
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
|
|
20177
20090
|
|
|
20178
20091
|
var IsDataDescriptor = function IsDataDescriptor(Desc) {
|
|
20179
20092
|
if (typeof Desc === 'undefined') {
|
|
@@ -20206,10 +20119,16 @@ var IsExtensible = $preventExtensions
|
|
|
20206
20119
|
? function IsExtensible(obj) {
|
|
20207
20120
|
return !isPrimitive$1(obj) && $isExtensible(obj);
|
|
20208
20121
|
}
|
|
20209
|
-
: function IsExtensible(obj) {
|
|
20210
|
-
return
|
|
20122
|
+
: function IsExtensible(obj) { // eslint-disable-line no-unused-vars
|
|
20123
|
+
return true;
|
|
20211
20124
|
};
|
|
20212
20125
|
|
|
20126
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
|
|
20127
|
+
|
|
20128
|
+
var IsPropertyKey = function IsPropertyKey(argument) {
|
|
20129
|
+
return typeof argument === 'string' || typeof argument === 'symbol';
|
|
20130
|
+
};
|
|
20131
|
+
|
|
20213
20132
|
var _isNaN = Number.isNaN || function isNaN(a) {
|
|
20214
20133
|
return a !== a;
|
|
20215
20134
|
};
|
|
@@ -20224,8 +20143,8 @@ var SameValue = function SameValue(x, y) {
|
|
|
20224
20143
|
return _isNaN(x) && _isNaN(y);
|
|
20225
20144
|
};
|
|
20226
20145
|
|
|
20227
|
-
var $
|
|
20228
|
-
|
|
20146
|
+
var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
|
|
20147
|
+
var $TypeError$2 = GetIntrinsic('%TypeError%');
|
|
20229
20148
|
|
|
20230
20149
|
|
|
20231
20150
|
|
|
@@ -20240,12 +20159,12 @@ var $TypeError$4 = GetIntrinsic('%TypeError%');
|
|
|
20240
20159
|
|
|
20241
20160
|
var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
20242
20161
|
if (Type$1(O) !== 'Object') {
|
|
20243
|
-
throw new $TypeError$
|
|
20162
|
+
throw new $TypeError$2('Assertion failed: Type(O) is not Object');
|
|
20244
20163
|
}
|
|
20245
20164
|
if (!IsPropertyKey(P)) {
|
|
20246
|
-
throw new $TypeError$
|
|
20165
|
+
throw new $TypeError$2('Assertion failed: IsPropertyKey(P) is not true');
|
|
20247
20166
|
}
|
|
20248
|
-
var oldDesc =
|
|
20167
|
+
var oldDesc = $gOPD$1(O, P);
|
|
20249
20168
|
var extensible = oldDesc || IsExtensible(O);
|
|
20250
20169
|
var immutable = oldDesc && (!oldDesc.writable || !oldDesc.configurable);
|
|
20251
20170
|
if (immutable || !extensible) {
|
|
@@ -20266,13 +20185,53 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
|
20266
20185
|
);
|
|
20267
20186
|
};
|
|
20268
20187
|
|
|
20269
|
-
var
|
|
20188
|
+
var fnToStr = Function.prototype.toString;
|
|
20189
|
+
|
|
20190
|
+
var constructorRegex = /^\s*class\b/;
|
|
20191
|
+
var isES6ClassFn = function isES6ClassFunction(value) {
|
|
20192
|
+
try {
|
|
20193
|
+
var fnStr = fnToStr.call(value);
|
|
20194
|
+
return constructorRegex.test(fnStr);
|
|
20195
|
+
} catch (e) {
|
|
20196
|
+
return false; // not a function
|
|
20197
|
+
}
|
|
20198
|
+
};
|
|
20199
|
+
|
|
20200
|
+
var tryFunctionObject = function tryFunctionToStr(value) {
|
|
20201
|
+
try {
|
|
20202
|
+
if (isES6ClassFn(value)) { return false; }
|
|
20203
|
+
fnToStr.call(value);
|
|
20204
|
+
return true;
|
|
20205
|
+
} catch (e) {
|
|
20206
|
+
return false;
|
|
20207
|
+
}
|
|
20208
|
+
};
|
|
20209
|
+
var toStr$4 = Object.prototype.toString;
|
|
20210
|
+
var fnClass = '[object Function]';
|
|
20211
|
+
var genClass = '[object GeneratorFunction]';
|
|
20212
|
+
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
20213
|
+
|
|
20214
|
+
var isCallable = function isCallable(value) {
|
|
20215
|
+
if (!value) { return false; }
|
|
20216
|
+
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
20217
|
+
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
20218
|
+
if (hasToStringTag) { return tryFunctionObject(value); }
|
|
20219
|
+
if (isES6ClassFn(value)) { return false; }
|
|
20220
|
+
var strClass = toStr$4.call(value);
|
|
20221
|
+
return strClass === fnClass || strClass === genClass;
|
|
20222
|
+
};
|
|
20223
|
+
|
|
20224
|
+
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
|
|
20225
|
+
|
|
20226
|
+
var IsCallable = isCallable;
|
|
20227
|
+
|
|
20228
|
+
var $TypeError$3 = GetIntrinsic('%TypeError%');
|
|
20270
20229
|
|
|
20271
20230
|
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
|
|
20272
20231
|
|
|
20273
20232
|
var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
|
|
20274
20233
|
if (value == null) {
|
|
20275
|
-
throw new $TypeError$
|
|
20234
|
+
throw new $TypeError$3(optMessage || ('Cannot call method on ' + value));
|
|
20276
20235
|
}
|
|
20277
20236
|
return value;
|
|
20278
20237
|
};
|
|
@@ -20343,6 +20302,241 @@ defineProperties_1(implementation$2, {
|
|
|
20343
20302
|
|
|
20344
20303
|
var object_getownpropertydescriptors = implementation$2;
|
|
20345
20304
|
|
|
20305
|
+
/* globals
|
|
20306
|
+
Atomics,
|
|
20307
|
+
SharedArrayBuffer,
|
|
20308
|
+
*/
|
|
20309
|
+
|
|
20310
|
+
var undefined$2;
|
|
20311
|
+
|
|
20312
|
+
var $TypeError$4 = TypeError;
|
|
20313
|
+
|
|
20314
|
+
var $gOPD$3 = Object.getOwnPropertyDescriptor;
|
|
20315
|
+
if ($gOPD$3) {
|
|
20316
|
+
try {
|
|
20317
|
+
$gOPD$3({}, '');
|
|
20318
|
+
} catch (e) {
|
|
20319
|
+
$gOPD$3 = null; // this is IE 8, which has a broken gOPD
|
|
20320
|
+
}
|
|
20321
|
+
}
|
|
20322
|
+
|
|
20323
|
+
var throwTypeError$1 = function () { throw new $TypeError$4(); };
|
|
20324
|
+
var ThrowTypeError$1 = $gOPD$3
|
|
20325
|
+
? (function () {
|
|
20326
|
+
try {
|
|
20327
|
+
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
20328
|
+
arguments.callee; // IE 8 does not throw here
|
|
20329
|
+
return throwTypeError$1;
|
|
20330
|
+
} catch (calleeThrows) {
|
|
20331
|
+
try {
|
|
20332
|
+
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
20333
|
+
return $gOPD$3(arguments, 'callee').get;
|
|
20334
|
+
} catch (gOPDthrows) {
|
|
20335
|
+
return throwTypeError$1;
|
|
20336
|
+
}
|
|
20337
|
+
}
|
|
20338
|
+
}())
|
|
20339
|
+
: throwTypeError$1;
|
|
20340
|
+
|
|
20341
|
+
var hasSymbols$3 = hasSymbols$1();
|
|
20342
|
+
|
|
20343
|
+
var getProto$1 = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
20344
|
+
var generatorFunction$1 = undefined$2;
|
|
20345
|
+
var asyncFunction$1 = undefined$2;
|
|
20346
|
+
var asyncGenFunction$1 = undefined$2;
|
|
20347
|
+
|
|
20348
|
+
var TypedArray$1 = typeof Uint8Array === 'undefined' ? undefined$2 : getProto$1(Uint8Array);
|
|
20349
|
+
|
|
20350
|
+
var INTRINSICS$1 = {
|
|
20351
|
+
'%Array%': Array,
|
|
20352
|
+
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer,
|
|
20353
|
+
'%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer.prototype,
|
|
20354
|
+
'%ArrayIteratorPrototype%': hasSymbols$3 ? getProto$1([][Symbol.iterator]()) : undefined$2,
|
|
20355
|
+
'%ArrayPrototype%': Array.prototype,
|
|
20356
|
+
'%ArrayProto_entries%': Array.prototype.entries,
|
|
20357
|
+
'%ArrayProto_forEach%': Array.prototype.forEach,
|
|
20358
|
+
'%ArrayProto_keys%': Array.prototype.keys,
|
|
20359
|
+
'%ArrayProto_values%': Array.prototype.values,
|
|
20360
|
+
'%AsyncFromSyncIteratorPrototype%': undefined$2,
|
|
20361
|
+
'%AsyncFunction%': asyncFunction$1,
|
|
20362
|
+
'%AsyncFunctionPrototype%': undefined$2,
|
|
20363
|
+
'%AsyncGenerator%': undefined$2,
|
|
20364
|
+
'%AsyncGeneratorFunction%': asyncGenFunction$1,
|
|
20365
|
+
'%AsyncGeneratorPrototype%': undefined$2,
|
|
20366
|
+
'%AsyncIteratorPrototype%': undefined$2,
|
|
20367
|
+
'%Atomics%': typeof Atomics === 'undefined' ? undefined$2 : Atomics,
|
|
20368
|
+
'%Boolean%': Boolean,
|
|
20369
|
+
'%BooleanPrototype%': Boolean.prototype,
|
|
20370
|
+
'%DataView%': typeof DataView === 'undefined' ? undefined$2 : DataView,
|
|
20371
|
+
'%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$2 : DataView.prototype,
|
|
20372
|
+
'%Date%': Date,
|
|
20373
|
+
'%DatePrototype%': Date.prototype,
|
|
20374
|
+
'%decodeURI%': decodeURI,
|
|
20375
|
+
'%decodeURIComponent%': decodeURIComponent,
|
|
20376
|
+
'%encodeURI%': encodeURI,
|
|
20377
|
+
'%encodeURIComponent%': encodeURIComponent,
|
|
20378
|
+
'%Error%': Error,
|
|
20379
|
+
'%ErrorPrototype%': Error.prototype,
|
|
20380
|
+
'%eval%': eval, // eslint-disable-line no-eval
|
|
20381
|
+
'%EvalError%': EvalError,
|
|
20382
|
+
'%EvalErrorPrototype%': EvalError.prototype,
|
|
20383
|
+
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array,
|
|
20384
|
+
'%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array.prototype,
|
|
20385
|
+
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array,
|
|
20386
|
+
'%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array.prototype,
|
|
20387
|
+
'%Function%': Function,
|
|
20388
|
+
'%FunctionPrototype%': Function.prototype,
|
|
20389
|
+
'%Generator%': undefined$2,
|
|
20390
|
+
'%GeneratorFunction%': generatorFunction$1,
|
|
20391
|
+
'%GeneratorPrototype%': undefined$2,
|
|
20392
|
+
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array,
|
|
20393
|
+
'%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array.prototype,
|
|
20394
|
+
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined$2 : Int16Array,
|
|
20395
|
+
'%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$2 : Int8Array.prototype,
|
|
20396
|
+
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array,
|
|
20397
|
+
'%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array.prototype,
|
|
20398
|
+
'%isFinite%': isFinite,
|
|
20399
|
+
'%isNaN%': isNaN,
|
|
20400
|
+
'%IteratorPrototype%': hasSymbols$3 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$2,
|
|
20401
|
+
'%JSON%': typeof JSON === 'object' ? JSON : undefined$2,
|
|
20402
|
+
'%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$2,
|
|
20403
|
+
'%Map%': typeof Map === 'undefined' ? undefined$2 : Map,
|
|
20404
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Map()[Symbol.iterator]()),
|
|
20405
|
+
'%MapPrototype%': typeof Map === 'undefined' ? undefined$2 : Map.prototype,
|
|
20406
|
+
'%Math%': Math,
|
|
20407
|
+
'%Number%': Number,
|
|
20408
|
+
'%NumberPrototype%': Number.prototype,
|
|
20409
|
+
'%Object%': Object,
|
|
20410
|
+
'%ObjectPrototype%': Object.prototype,
|
|
20411
|
+
'%ObjProto_toString%': Object.prototype.toString,
|
|
20412
|
+
'%ObjProto_valueOf%': Object.prototype.valueOf,
|
|
20413
|
+
'%parseFloat%': parseFloat,
|
|
20414
|
+
'%parseInt%': parseInt,
|
|
20415
|
+
'%Promise%': typeof Promise === 'undefined' ? undefined$2 : Promise,
|
|
20416
|
+
'%PromisePrototype%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype,
|
|
20417
|
+
'%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype.then,
|
|
20418
|
+
'%Promise_all%': typeof Promise === 'undefined' ? undefined$2 : Promise.all,
|
|
20419
|
+
'%Promise_reject%': typeof Promise === 'undefined' ? undefined$2 : Promise.reject,
|
|
20420
|
+
'%Promise_resolve%': typeof Promise === 'undefined' ? undefined$2 : Promise.resolve,
|
|
20421
|
+
'%Proxy%': typeof Proxy === 'undefined' ? undefined$2 : Proxy,
|
|
20422
|
+
'%RangeError%': RangeError,
|
|
20423
|
+
'%RangeErrorPrototype%': RangeError.prototype,
|
|
20424
|
+
'%ReferenceError%': ReferenceError,
|
|
20425
|
+
'%ReferenceErrorPrototype%': ReferenceError.prototype,
|
|
20426
|
+
'%Reflect%': typeof Reflect === 'undefined' ? undefined$2 : Reflect,
|
|
20427
|
+
'%RegExp%': RegExp,
|
|
20428
|
+
'%RegExpPrototype%': RegExp.prototype,
|
|
20429
|
+
'%Set%': typeof Set === 'undefined' ? undefined$2 : Set,
|
|
20430
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Set()[Symbol.iterator]()),
|
|
20431
|
+
'%SetPrototype%': typeof Set === 'undefined' ? undefined$2 : Set.prototype,
|
|
20432
|
+
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer,
|
|
20433
|
+
'%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer.prototype,
|
|
20434
|
+
'%String%': String,
|
|
20435
|
+
'%StringIteratorPrototype%': hasSymbols$3 ? getProto$1(''[Symbol.iterator]()) : undefined$2,
|
|
20436
|
+
'%StringPrototype%': String.prototype,
|
|
20437
|
+
'%Symbol%': hasSymbols$3 ? Symbol : undefined$2,
|
|
20438
|
+
'%SymbolPrototype%': hasSymbols$3 ? Symbol.prototype : undefined$2,
|
|
20439
|
+
'%SyntaxError%': SyntaxError,
|
|
20440
|
+
'%SyntaxErrorPrototype%': SyntaxError.prototype,
|
|
20441
|
+
'%ThrowTypeError%': ThrowTypeError$1,
|
|
20442
|
+
'%TypedArray%': TypedArray$1,
|
|
20443
|
+
'%TypedArrayPrototype%': TypedArray$1 ? TypedArray$1.prototype : undefined$2,
|
|
20444
|
+
'%TypeError%': $TypeError$4,
|
|
20445
|
+
'%TypeErrorPrototype%': $TypeError$4.prototype,
|
|
20446
|
+
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array,
|
|
20447
|
+
'%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array.prototype,
|
|
20448
|
+
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray,
|
|
20449
|
+
'%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray.prototype,
|
|
20450
|
+
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array,
|
|
20451
|
+
'%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array.prototype,
|
|
20452
|
+
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array,
|
|
20453
|
+
'%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array.prototype,
|
|
20454
|
+
'%URIError%': URIError,
|
|
20455
|
+
'%URIErrorPrototype%': URIError.prototype,
|
|
20456
|
+
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap,
|
|
20457
|
+
'%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap.prototype,
|
|
20458
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet,
|
|
20459
|
+
'%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet.prototype
|
|
20460
|
+
};
|
|
20461
|
+
|
|
20462
|
+
|
|
20463
|
+
var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
|
|
20464
|
+
|
|
20465
|
+
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
20466
|
+
var rePropName$1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
20467
|
+
var reEscapeChar$1 = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
20468
|
+
var stringToPath$1 = function stringToPath(string) {
|
|
20469
|
+
var result = [];
|
|
20470
|
+
$replace$1(string, rePropName$1, function (match, number, quote, subString) {
|
|
20471
|
+
result[result.length] = quote ? $replace$1(subString, reEscapeChar$1, '$1') : (number || match);
|
|
20472
|
+
});
|
|
20473
|
+
return result;
|
|
20474
|
+
};
|
|
20475
|
+
/* end adaptation */
|
|
20476
|
+
|
|
20477
|
+
var getBaseIntrinsic$1 = function getBaseIntrinsic(name, allowMissing) {
|
|
20478
|
+
if (!(name in INTRINSICS$1)) {
|
|
20479
|
+
throw new SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
20480
|
+
}
|
|
20481
|
+
|
|
20482
|
+
// istanbul ignore if // hopefully this is impossible to test :-)
|
|
20483
|
+
if (typeof INTRINSICS$1[name] === 'undefined' && !allowMissing) {
|
|
20484
|
+
throw new $TypeError$4('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
20485
|
+
}
|
|
20486
|
+
|
|
20487
|
+
return INTRINSICS$1[name];
|
|
20488
|
+
};
|
|
20489
|
+
|
|
20490
|
+
var GetIntrinsic$1 = function GetIntrinsic(name, allowMissing) {
|
|
20491
|
+
if (typeof name !== 'string' || name.length === 0) {
|
|
20492
|
+
throw new TypeError('intrinsic name must be a non-empty string');
|
|
20493
|
+
}
|
|
20494
|
+
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
20495
|
+
throw new TypeError('"allowMissing" argument must be a boolean');
|
|
20496
|
+
}
|
|
20497
|
+
|
|
20498
|
+
var parts = stringToPath$1(name);
|
|
20499
|
+
|
|
20500
|
+
var value = getBaseIntrinsic$1('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
|
|
20501
|
+
for (var i = 1; i < parts.length; i += 1) {
|
|
20502
|
+
if (value != null) {
|
|
20503
|
+
if ($gOPD$3 && (i + 1) >= parts.length) {
|
|
20504
|
+
var desc = $gOPD$3(value, parts[i]);
|
|
20505
|
+
if (!allowMissing && !(parts[i] in value)) {
|
|
20506
|
+
throw new $TypeError$4('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
20507
|
+
}
|
|
20508
|
+
value = desc ? (desc.get || desc.value) : value[parts[i]];
|
|
20509
|
+
} else {
|
|
20510
|
+
value = value[parts[i]];
|
|
20511
|
+
}
|
|
20512
|
+
}
|
|
20513
|
+
}
|
|
20514
|
+
return value;
|
|
20515
|
+
};
|
|
20516
|
+
|
|
20517
|
+
var $apply$1 = GetIntrinsic$1('%Function.prototype.apply%');
|
|
20518
|
+
var $call$1 = GetIntrinsic$1('%Function.prototype.call%');
|
|
20519
|
+
var $reflectApply = GetIntrinsic$1('%Reflect.apply%', true) || functionBind.call($call$1, $apply$1);
|
|
20520
|
+
|
|
20521
|
+
var callBind$1 = function callBind() {
|
|
20522
|
+
return $reflectApply(functionBind, $call$1, arguments);
|
|
20523
|
+
};
|
|
20524
|
+
|
|
20525
|
+
var apply$1 = function applyBind() {
|
|
20526
|
+
return $reflectApply(functionBind, $apply$1, arguments);
|
|
20527
|
+
};
|
|
20528
|
+
callBind$1.apply = apply$1;
|
|
20529
|
+
|
|
20530
|
+
var $indexOf$1 = callBind$1(GetIntrinsic$1('String.prototype.indexOf'));
|
|
20531
|
+
|
|
20532
|
+
var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
|
|
20533
|
+
var intrinsic = GetIntrinsic$1(name, !!allowMissing);
|
|
20534
|
+
if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.')) {
|
|
20535
|
+
return callBind$1(intrinsic);
|
|
20536
|
+
}
|
|
20537
|
+
return intrinsic;
|
|
20538
|
+
};
|
|
20539
|
+
|
|
20346
20540
|
var isES5$1 = typeof Object.defineProperty === 'function'
|
|
20347
20541
|
&& typeof Object.defineProperties === 'function';
|
|
20348
20542
|
|
|
@@ -20360,14 +20554,14 @@ if (typeof Promise !== 'function') {
|
|
|
20360
20554
|
|
|
20361
20555
|
|
|
20362
20556
|
|
|
20363
|
-
var $slice = callBound('Array.prototype.slice');
|
|
20364
|
-
var $concat$1 = callBound('Array.prototype.concat');
|
|
20365
|
-
var $forEach = callBound('Array.prototype.forEach');
|
|
20557
|
+
var $slice = callBound$1('Array.prototype.slice');
|
|
20558
|
+
var $concat$1 = callBound$1('Array.prototype.concat');
|
|
20559
|
+
var $forEach = callBound$1('Array.prototype.forEach');
|
|
20366
20560
|
|
|
20367
|
-
var hasSymbols$
|
|
20561
|
+
var hasSymbols$4 = hasSymbols$1();
|
|
20368
20562
|
|
|
20369
|
-
var kCustomPromisifiedSymbol = hasSymbols$
|
|
20370
|
-
var kCustomPromisifyArgsSymbol = hasSymbols$
|
|
20563
|
+
var kCustomPromisifiedSymbol = hasSymbols$4 ? Symbol('util.promisify.custom') : null;
|
|
20564
|
+
var kCustomPromisifyArgsSymbol = hasSymbols$4 ? Symbol('customPromisifyArgs') : null;
|
|
20371
20565
|
|
|
20372
20566
|
var implementation$3 = function promisify(orig) {
|
|
20373
20567
|
if (typeof orig !== 'function') {
|
|
@@ -20377,7 +20571,7 @@ var implementation$3 = function promisify(orig) {
|
|
|
20377
20571
|
throw error;
|
|
20378
20572
|
}
|
|
20379
20573
|
|
|
20380
|
-
if (hasSymbols$
|
|
20574
|
+
if (hasSymbols$4 && orig[kCustomPromisifiedSymbol]) {
|
|
20381
20575
|
var customFunction = orig[kCustomPromisifiedSymbol];
|
|
20382
20576
|
if (typeof customFunction !== 'function') {
|
|
20383
20577
|
throw new TypeError('The [util.promisify.custom] property must be a function');
|
|
@@ -20824,7 +21018,7 @@ var md5 = createCommonjsModule(function (module) {
|
|
|
20824
21018
|
})();
|
|
20825
21019
|
});
|
|
20826
21020
|
|
|
20827
|
-
var _this$
|
|
21021
|
+
var _this$4 = undefined;
|
|
20828
21022
|
|
|
20829
21023
|
var config = {
|
|
20830
21024
|
host: 'sanity-datasource.cluster-crao688bsrdh.us-east-1.rds.amazonaws.com',
|
|
@@ -21173,7 +21367,7 @@ var getOccupationNameById = function () {
|
|
|
21173
21367
|
return _context3.stop();
|
|
21174
21368
|
}
|
|
21175
21369
|
}
|
|
21176
|
-
}, _callee3, _this$
|
|
21370
|
+
}, _callee3, _this$4);
|
|
21177
21371
|
}));
|
|
21178
21372
|
|
|
21179
21373
|
return function getOccupationNameById(_x5, _x6) {
|
|
@@ -21462,7 +21656,7 @@ var passportLocal = /*#__PURE__*/Object.freeze({
|
|
|
21462
21656
|
localStrategy: localStrategy
|
|
21463
21657
|
});
|
|
21464
21658
|
|
|
21465
|
-
var _this$
|
|
21659
|
+
var _this$5 = undefined;
|
|
21466
21660
|
|
|
21467
21661
|
var config$1 = {
|
|
21468
21662
|
host: 'sanity-datasource.cluster-crao688bsrdh.us-east-1.rds.amazonaws.com',
|
|
@@ -21496,7 +21690,7 @@ var getOccupation = function () {
|
|
|
21496
21690
|
return _context.stop();
|
|
21497
21691
|
}
|
|
21498
21692
|
}
|
|
21499
|
-
}, _callee, _this$
|
|
21693
|
+
}, _callee, _this$5);
|
|
21500
21694
|
}));
|
|
21501
21695
|
|
|
21502
21696
|
return function getOccupation(_x) {
|
|
@@ -21559,7 +21753,7 @@ var getFieldsAndOptions = function () {
|
|
|
21559
21753
|
return _context2.stop();
|
|
21560
21754
|
}
|
|
21561
21755
|
}
|
|
21562
|
-
}, _callee2, _this$
|
|
21756
|
+
}, _callee2, _this$5);
|
|
21563
21757
|
}));
|
|
21564
21758
|
|
|
21565
21759
|
return function getFieldsAndOptions(_x2) {
|
|
@@ -21676,18 +21870,18 @@ var renderAuthor$1 = function renderAuthor(authorName, authorURL, index, length)
|
|
|
21676
21870
|
};
|
|
21677
21871
|
|
|
21678
21872
|
var getContentPlacementUrl = function getContentPlacementUrl(cp) {
|
|
21679
|
-
|
|
21680
|
-
|
|
21681
|
-
|
|
21682
|
-
|
|
21873
|
+
var cp_url = '';
|
|
21874
|
+
if (cp.ancestor && typeof cp.ancestor == 'string') {
|
|
21875
|
+
cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
|
|
21876
|
+
}
|
|
21683
21877
|
|
|
21684
|
-
|
|
21685
|
-
|
|
21686
|
-
|
|
21878
|
+
if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
|
|
21879
|
+
cp_url += (cp_url === '' ? '' : '/') + cp.parent;
|
|
21880
|
+
}
|
|
21687
21881
|
|
|
21688
|
-
|
|
21882
|
+
cp_url += (cp_url === '' ? '' : '/') + cp.path;
|
|
21689
21883
|
|
|
21690
|
-
|
|
21884
|
+
return cp_url;
|
|
21691
21885
|
};
|
|
21692
21886
|
|
|
21693
21887
|
var getArticleSummary$1 = function getArticleSummary(article) {
|
|
@@ -21714,7 +21908,7 @@ var getArticleSummary$1 = function getArticleSummary(article) {
|
|
|
21714
21908
|
};
|
|
21715
21909
|
|
|
21716
21910
|
function urlFor$5(client, source) {
|
|
21717
|
-
|
|
21911
|
+
return imageUrlBuilder(client).image(source);
|
|
21718
21912
|
}
|
|
21719
21913
|
|
|
21720
21914
|
var getDocumentGroupUrl = function getDocumentGroupUrl(docGroup) {
|
|
@@ -21783,9 +21977,9 @@ var DocumentGroup = function DocumentGroup(_ref) {
|
|
|
21783
21977
|
style: { display: 'flex', flexDirection: 'column', padding: '0 1rem', justifyContent: thumbnailUrl ? 'center' : 'flex-start', alignItems: 'center' } },
|
|
21784
21978
|
thumbnailUrl && React__default.createElement('img', { style: { maxWidth: '220px', maxHeight: '100px', marginTop: '1rem' }, src: thumbnailUrl, alt: name }),
|
|
21785
21979
|
React__default.createElement('p', {
|
|
21786
|
-
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' :
|
|
21980
|
+
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main_39 ? 'left' : 'right', marginTop: '.25rem' },
|
|
21787
21981
|
dangerouslySetInnerHTML: { __html: name } }),
|
|
21788
|
-
|
|
21982
|
+
main_39 && !thumbnailUrl && React__default.createElement(
|
|
21789
21983
|
'style',
|
|
21790
21984
|
{ jsx: 'true' },
|
|
21791
21985
|
'\n a.doc-group {\n display: block !important;\n padding: 0!important;\n }\n '
|
|
@@ -21922,18 +22116,18 @@ var Article$1 = function Article(props) {
|
|
|
21922
22116
|
var renderRelevantTopicsDropdown = function renderRelevantTopicsDropdown() {
|
|
21923
22117
|
if (content_placement && content_placement.length > 0 || documentGroup) {
|
|
21924
22118
|
return React__default.createElement(
|
|
21925
|
-
Dropdown,
|
|
22119
|
+
Dropdown$1,
|
|
21926
22120
|
null,
|
|
21927
22121
|
React__default.createElement(
|
|
21928
|
-
Dropdown.Toggle,
|
|
22122
|
+
Dropdown$1.Toggle,
|
|
21929
22123
|
{ variant: 'primary', id: 'partner-dropdown' },
|
|
21930
22124
|
'Relevant Topics'
|
|
21931
22125
|
),
|
|
21932
22126
|
React__default.createElement(
|
|
21933
|
-
Dropdown.Menu,
|
|
22127
|
+
Dropdown$1.Menu,
|
|
21934
22128
|
null,
|
|
21935
22129
|
documentGroup && documentGroup.parent && React__default.createElement(
|
|
21936
|
-
Dropdown.Item,
|
|
22130
|
+
Dropdown$1.Item,
|
|
21937
22131
|
{ href: cpModificationRequired ? '/' + documentGroup.parent.identifier.current + '/' + documentGroup.path : '/' + documentGroup.path },
|
|
21938
22132
|
documentGroup.name
|
|
21939
22133
|
),
|
|
@@ -21941,7 +22135,7 @@ var Article$1 = function Article(props) {
|
|
|
21941
22135
|
var cp_url = cpModificationRequired ? getContentPlacementUrl(cp) : cp.path;
|
|
21942
22136
|
var href = '/' + cp_url;
|
|
21943
22137
|
return React__default.createElement(
|
|
21944
|
-
Dropdown.Item,
|
|
22138
|
+
Dropdown$1.Item,
|
|
21945
22139
|
{ key: index, href: href },
|
|
21946
22140
|
cp.name
|
|
21947
22141
|
);
|
|
@@ -22351,7 +22545,7 @@ var Article$1 = function Article(props) {
|
|
|
22351
22545
|
React__default.createElement(
|
|
22352
22546
|
'div',
|
|
22353
22547
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
22354
|
-
|
|
22548
|
+
main_39 && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
22355
22549
|
if (index === 0) {
|
|
22356
22550
|
return React__default.createElement(
|
|
22357
22551
|
'div',
|
|
@@ -22406,7 +22600,7 @@ var Article$1 = function Article(props) {
|
|
|
22406
22600
|
renderIsiContent(props.article)
|
|
22407
22601
|
)
|
|
22408
22602
|
),
|
|
22409
|
-
|
|
22603
|
+
main_39 && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
22410
22604
|
if (index > 0) {
|
|
22411
22605
|
return React__default.createElement(
|
|
22412
22606
|
'div',
|
|
@@ -22457,7 +22651,7 @@ exports.default = function (obj, key, value) {
|
|
|
22457
22651
|
};
|
|
22458
22652
|
});
|
|
22459
22653
|
|
|
22460
|
-
var _defineProperty = unwrapExports(defineProperty$1);
|
|
22654
|
+
var _defineProperty$1 = unwrapExports(defineProperty$1);
|
|
22461
22655
|
|
|
22462
22656
|
var getTargeting = function getTargeting(props) {
|
|
22463
22657
|
var article = props.article,
|
|
@@ -22572,7 +22766,7 @@ var ArticleQueue$1 = function ArticleQueue(props) {
|
|
|
22572
22766
|
setQueueData = _useState2[1];
|
|
22573
22767
|
|
|
22574
22768
|
var refreshAD = function refreshAD(path) {
|
|
22575
|
-
if (!
|
|
22769
|
+
if (!main_39) {
|
|
22576
22770
|
var activeArticle = queueData.find(function (item) {
|
|
22577
22771
|
return item.url.current === path;
|
|
22578
22772
|
});
|
|
@@ -22774,7 +22968,7 @@ var Articles = function Articles(props) {
|
|
|
22774
22968
|
Ads: WAds,
|
|
22775
22969
|
regionalPages: regionalPages,
|
|
22776
22970
|
nationalPage: nationalPage
|
|
22777
|
-
}, _defineProperty(_extends2, 'pageview', pageview), _defineProperty(_extends2, 'onVote', function onVote() {}), _defineProperty(_extends2, 'ISIContent', ISIContent), _defineProperty(_extends2, 'videoAccountIDs', videoAccountIDs), _defineProperty(_extends2, 'sponsoredTaxonomies', []), _defineProperty(_extends2, 'cpModificationRequired', cpModificationRequired), _defineProperty(_extends2, 'Settings', Settings), _extends2), props));
|
|
22971
|
+
}, _defineProperty$1(_extends2, 'pageview', pageview), _defineProperty$1(_extends2, 'onVote', function onVote() {}), _defineProperty$1(_extends2, 'ISIContent', ISIContent), _defineProperty$1(_extends2, 'videoAccountIDs', videoAccountIDs), _defineProperty$1(_extends2, 'sponsoredTaxonomies', []), _defineProperty$1(_extends2, 'cpModificationRequired', cpModificationRequired), _defineProperty$1(_extends2, 'Settings', Settings), _extends2), props));
|
|
22778
22972
|
};
|
|
22779
22973
|
|
|
22780
22974
|
var View = function View(props) {
|
|
@@ -22885,4 +23079,4 @@ var getQuery = function getQuery(type) {
|
|
|
22885
23079
|
}
|
|
22886
23080
|
};
|
|
22887
23081
|
|
|
22888
|
-
export { AD300x250, AD300x250x600, ADFloatingFooter, ADFooter, ADGutter, ADWelcome, AccordionPanel, AdSlotsProvider, AlphabeticList, ArticleQueue, auth as Auth, Breadcrumbs$1 as Breadcrumbs, CMEDeck, ConferenceArticleCard, EventsDeck, Feature, fbsHero as ForbesHero, GridHero, Hero, HighlightenVideo, HorizontalHero, IssueLanding, KMTracker, OncliveHero, OncliveLargeHero, PdfDownload, PopUpModal, PublicationLanding, RelatedContent, RelatedTopicsDropdown, SetCookie, SocialShare$1 as SocialShare, VerticalHero, View, YahooHero, getKeywords, getQuery, getSerializers, getSeriesDetail, getTargeting, urlFor$5 as urlFor };
|
|
23082
|
+
export { AD300x250, AD300x250x600, ADFloatingFooter, ADFooter, ADGutter, ADWelcome, AccordionPanel, AdSlotsProvider, AlphabeticList, ArticleQueue, auth as Auth, Breadcrumbs$1 as Breadcrumbs, CMEDeck, ConferenceArticleCard, EventsDeck, Feature, fbsHero as ForbesHero, GridHero, Hero, HighlightenVideo, HorizontalHero, IssueLanding, KMTracker, OncliveHero, OncliveLargeHero, PdfDownload, PopUpModal, PublicationLanding, RelatedContent, RelatedTopicsDropdown, SetCookie, SocialShare$1 as SocialShare, VerticalHero, VideoSeriesFilter$1 as VideoSeriesFilter, View, YahooHero, getKeywords, getQuery, getSerializers, getSeriesDetail, getTargeting, urlFor$5 as urlFor };
|