@mjhls/mjh-framework 1.0.529 → 1.0.530
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 +1 -1
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +7 -8
- package/dist/cjs/AD300x250x600.js +7 -8
- package/dist/cjs/AD728x90.js +10 -11
- package/dist/cjs/ADFloatingFooter.js +11 -12
- package/dist/cjs/ADFooter.js +8 -9
- package/dist/cjs/ADGutter.js +11 -12
- package/dist/cjs/{ADInfeed-393c6084.js → ADInfeed-d8e47444.js} +9 -11
- package/dist/cjs/ADSponsoredResources.js +10 -11
- package/dist/cjs/ADWebcast.js +10 -11
- package/dist/cjs/ADWelcome.js +15 -16
- package/dist/cjs/{ADlgInfeed-dd4e103e.js → ADlgInfeed-947c3a47.js} +6 -7
- package/dist/cjs/AccordionPanel.js +22 -24
- package/dist/cjs/AdSlot.js +13 -15
- package/dist/cjs/AdSlotsProvider.js +5 -6
- package/dist/cjs/AlphabeticList.js +15 -16
- package/dist/cjs/ArticleQueue.js +114 -117
- package/dist/cjs/Auth.js +344 -232
- package/dist/cjs/{AuthorComponent-5bb8f868.js → AuthorComponent-cb8b8128.js} +12 -13
- package/dist/cjs/{BlockContent-8b494587.js → BlockContent-77f81ffc.js} +24 -26
- package/dist/cjs/Breadcrumbs.js +21 -23
- package/dist/cjs/CMEDeck.js +61 -61
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +19 -22
- package/dist/cjs/Column3.js +32 -35
- package/dist/cjs/ConferenceArticleCard.js +18 -19
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +73 -77
- package/dist/cjs/DeckQueue.js +69 -73
- package/dist/cjs/{Dfp-a06d722a.js → Dfp-fcdeabc4.js} +20 -22
- package/dist/cjs/EventsDeck.js +89 -96
- package/dist/cjs/ExternalResources.js +42 -43
- package/dist/cjs/Feature.js +24 -26
- package/dist/cjs/{Figure-85d19c5f.js → Figure-eeac313a.js} +20 -21
- package/dist/cjs/ForbesHero.js +33 -34
- package/dist/cjs/GridContent.js +145 -149
- package/dist/cjs/GridHero.js +34 -35
- package/dist/cjs/GroupDeck.js +33 -34
- package/dist/cjs/HamMagazine.js +104 -109
- package/dist/cjs/Header.js +11 -13
- package/dist/cjs/Hero.js +10 -11
- package/dist/cjs/HighlightenVideo.js +16 -17
- package/dist/cjs/HorizontalHero.js +24 -25
- package/dist/cjs/{InscreenSensor-1f9f7db4.js → InscreenSensor-3aec8492.js} +7 -8
- package/dist/cjs/IssueContentDeck.js +64 -69
- package/dist/cjs/IssueDeck.js +60 -65
- package/dist/cjs/IssueLanding.js +18 -19
- package/dist/cjs/LeftNav.js +20 -22
- package/dist/cjs/MasterDeck.js +52 -53
- package/dist/cjs/NavDvm.js +63 -68
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +107 -112
- package/dist/cjs/NavNative.js +66 -71
- package/dist/cjs/NavNormal.js +36 -41
- package/dist/cjs/OncliveHero.js +18 -18
- package/dist/cjs/OncliveLargeHero.js +58 -59
- package/dist/cjs/PageFilter.js +8 -9
- package/dist/cjs/PartnerDetailListing.js +130 -132
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +13 -15
- package/dist/cjs/PublicationDeck.js +59 -64
- package/dist/cjs/PublicationLanding.js +44 -48
- package/dist/cjs/QueueDeckExpanded.js +187 -187
- package/dist/cjs/RelatedContent.js +18 -19
- package/dist/cjs/RelatedTopicsDropdown.js +19 -22
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +12 -16
- package/dist/cjs/SideFooter.js +17 -18
- package/dist/cjs/{SocialNavFooter-d9ab4d17.js → SocialNavFooter-9a07520f.js} +17 -18
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +54 -59
- package/dist/cjs/TemplateNormal.js +34 -35
- package/dist/cjs/ThumbnailCard.js +17 -19
- package/dist/cjs/Ustream.js +20 -21
- package/dist/cjs/VerticalHero.js +16 -17
- package/dist/cjs/VideoSeriesFilter.js +10 -10
- package/dist/cjs/VideoSeriesListing.js +38 -39
- package/dist/cjs/View.js +160 -165
- package/dist/cjs/YahooHero.js +29 -30
- package/dist/cjs/YoutubeGroup.js +42 -43
- package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-156bd4d6.js} +8 -10
- package/dist/cjs/getQuery.js +1 -1
- package/dist/cjs/getRelatedArticle.js +6 -355
- package/dist/cjs/getSerializers.js +652 -674
- package/dist/cjs/{getTargeting-86e68d62.js → getTargeting-3d208b98.js} +2 -2
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/iconBase-637d3f1e.js +3 -0
- package/dist/cjs/{index-99edf08a.js → index-3294d3bc.js} +1 -1
- package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
- package/dist/cjs/{index-8a3fb0bc.js → index-fa0fb52c.js} +10 -13
- package/dist/cjs/{index-44481153.js → index-fa3cec70.js} +14 -14
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-2ea63d18.js → index.esm-25423c2f.js} +6 -3
- package/dist/cjs/{index.esm-c8d2c195.js → index.esm-c0d8b44b.js} +9 -4
- package/dist/cjs/{index.esm-d7e04264.js → index.esm-fcdbd2c6.js} +15 -6
- package/dist/cjs/index.js +32 -32
- package/dist/cjs/{inherits-4a2f1cc3.js → inherits-14962339.js} +4 -4
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-fc2922d0.js} +22 -71
- package/dist/cjs/{main-c50facd7.js → main-88348b15.js} +53 -89
- package/dist/cjs/{moment-ca3bd9fb.js → moment-575fe24c.js} +8 -10
- package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-cd0d9d3b.js} +11 -13
- package/dist/cjs/{typeof-583cdc4b.js → typeof-1869832c.js} +1 -1
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{visibility-sensor-8b54af99.js → visibility-sensor-0c45a583.js} +5 -7
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +5 -5
- package/dist/esm/AD300x250x600.js +5 -5
- package/dist/esm/AD728x90.js +8 -8
- package/dist/esm/ADFloatingFooter.js +9 -9
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +9 -9
- package/dist/esm/{ADInfeed-1dd2344b.js → ADInfeed-2eb234ae.js} +5 -5
- package/dist/esm/ADSponsoredResources.js +8 -8
- package/dist/esm/ADWebcast.js +8 -8
- package/dist/esm/ADWelcome.js +13 -13
- package/dist/esm/{ADlgInfeed-cecd5e76.js → ADlgInfeed-17c13711.js} +4 -4
- package/dist/esm/AccordionPanel.js +17 -17
- package/dist/esm/AdSlot.js +5 -5
- package/dist/esm/AdSlotsProvider.js +3 -3
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleQueue.js +100 -100
- package/dist/esm/Auth.js +326 -210
- package/dist/esm/{AuthorComponent-f67cb027.js → AuthorComponent-158226c9.js} +10 -10
- package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-e9b4ddcf.js} +4 -4
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +58 -58
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +12 -12
- package/dist/esm/Column3.js +24 -24
- package/dist/esm/ConferenceArticleCard.js +14 -14
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +54 -54
- package/dist/esm/DeckQueue.js +47 -47
- package/dist/esm/{Dfp-0557840a.js → Dfp-81a052c2.js} +10 -10
- package/dist/esm/EventsDeck.js +47 -47
- package/dist/esm/ExternalResources.js +36 -36
- package/dist/esm/Feature.js +17 -17
- package/dist/esm/{Figure-0b6d360c.js → Figure-bc2b95d7.js} +17 -17
- package/dist/esm/ForbesHero.js +28 -28
- package/dist/esm/GridContent.js +107 -107
- package/dist/esm/GridHero.js +29 -29
- package/dist/esm/GroupDeck.js +30 -30
- package/dist/esm/HamMagazine.js +77 -77
- package/dist/esm/Header.js +7 -7
- package/dist/esm/Hero.js +7 -7
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/{InscreenSensor-3e1fe82a.js → InscreenSensor-280b2b10.js} +5 -5
- package/dist/esm/IssueContentDeck.js +40 -40
- package/dist/esm/IssueDeck.js +34 -34
- package/dist/esm/IssueLanding.js +16 -16
- package/dist/esm/LeftNav.js +16 -16
- package/dist/esm/MasterDeck.js +46 -46
- package/dist/esm/NavDvm.js +43 -43
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +82 -82
- package/dist/esm/NavNative.js +48 -48
- package/dist/esm/NavNormal.js +21 -21
- package/dist/esm/OncliveHero.js +15 -14
- package/dist/esm/OncliveLargeHero.js +52 -52
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +69 -69
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PublicationDeck.js +35 -35
- package/dist/esm/PublicationLanding.js +25 -25
- package/dist/esm/QueueDeckExpanded.js +168 -168
- package/dist/esm/RelatedContent.js +15 -15
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +5 -5
- package/dist/esm/SideFooter.js +15 -15
- package/dist/esm/{SocialNavFooter-1a531144.js → SocialNavFooter-4fb16720.js} +15 -15
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +36 -36
- package/dist/esm/TemplateNormal.js +28 -28
- package/dist/esm/ThumbnailCard.js +10 -10
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoSeriesFilter.js +7 -7
- package/dist/esm/VideoSeriesListing.js +33 -33
- package/dist/esm/View.js +130 -130
- package/dist/esm/YahooHero.js +25 -25
- package/dist/esm/YoutubeGroup.js +33 -33
- package/dist/esm/{brightcove-react-player-loader.es-4abff0b1.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getRelatedArticle.js +6 -355
- package/dist/esm/getSerializers.js +614 -631
- package/dist/esm/{index-1819118a.js → index-3f4dd6f2.js} +9 -7
- package/dist/esm/{index-c5fd0af5.js → index-5f9f807a.js} +4 -4
- package/dist/esm/{index-51a80699.js → index-73819142.js} +19 -20
- package/dist/esm/{index-fa2ffe86.js → index-ef6d5dcf.js} +1 -1
- package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
- package/dist/esm/{index.esm-d3249151.js → index.esm-9d6faf80.js} +9 -4
- package/dist/esm/{index.esm-be9486fc.js → index.esm-a7ad65ba.js} +6 -3
- package/dist/esm/{index.esm-4b1810e3.js → index.esm-b97cf389.js} +15 -6
- package/dist/esm/index.js +26 -26
- package/dist/esm/{inherits-2758cc14.js → inherits-b8e4c697.js} +1 -1
- package/dist/esm/{lodash-ec8c6b48.js → lodash-17fdfebb.js} +22 -71
- package/dist/esm/{main-b722e2e2.js → main-d7ee6151.js} +52 -87
- package/dist/esm/{moment-b6f49411.js → moment-e2f9b20c.js} +8 -10
- package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-a7d5c5c7.js} +5 -5
- package/dist/esm/{typeof-7e72fee0.js → typeof-5f046efd.js} +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{visibility-sensor-082c757b.js → visibility-sensor-0baa4eea.js} +2 -2
- package/package.json +1 -1
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/index-bd6c9f56.js +0 -211
- package/dist/esm/index-db3bb315.js +0 -207
|
@@ -5,20 +5,20 @@ import './_library-528f1934.js';
|
|
|
5
5
|
import './_iter-detect-6e099a34.js';
|
|
6
6
|
import { _ as _Array$from } from './from-2c0a5f49.js';
|
|
7
7
|
import './_object-pie-33c40e79.js';
|
|
8
|
-
import { _ as _extends } from './extends-6e00b262.js';
|
|
8
|
+
import { _ as _extends$1 } from './extends-6e00b262.js';
|
|
9
9
|
import './web.dom.iterable-46c95e52.js';
|
|
10
|
-
import './typeof-
|
|
10
|
+
import './typeof-5f046efd.js';
|
|
11
11
|
import './_is-array-dd5523d6.js';
|
|
12
|
-
import
|
|
13
|
-
import { l as lib_3 } from './index-
|
|
12
|
+
import React__default, { useState, useEffect } from 'react';
|
|
13
|
+
import { l as lib_3 } from './index-3f4dd6f2.js';
|
|
14
14
|
import PropTypes from 'prop-types';
|
|
15
15
|
import Router, { useRouter } from 'next/router';
|
|
16
16
|
import './isSymbol-b7b7434f.js';
|
|
17
17
|
import './debounce-048d9cb6.js';
|
|
18
18
|
import 'react-dom';
|
|
19
|
-
import { i as imageUrlBuilder } from './index-
|
|
20
|
-
import { L as LazyLoad } from './index-
|
|
21
|
-
import { b as main_16, c as
|
|
19
|
+
import { i as imageUrlBuilder } from './index-73819142.js';
|
|
20
|
+
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
21
|
+
import { b as main_16, c as main_35 } from './main-d7ee6151.js';
|
|
22
22
|
import { h as html_decode_1 } from './entities-7cc3bf45.js';
|
|
23
23
|
import { _ as _slicedToArray } from './slicedToArray-f1e40361.js';
|
|
24
24
|
import './stringify-e30bc114.js';
|
|
@@ -26,13 +26,13 @@ import './asyncToGenerator-0379e924.js';
|
|
|
26
26
|
import './_set-species-6f64f1c1.js';
|
|
27
27
|
import { B as Beam, S as Segment } from './beam-a25bd8fd.js';
|
|
28
28
|
import DFPAdSlot from './AdSlot.js';
|
|
29
|
-
import { B as BlockContent } from './BlockContent-
|
|
29
|
+
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
30
30
|
import { g as getYoutubeId } from './smoothscroll-4b699764.js';
|
|
31
31
|
import GroupDeck from './GroupDeck.js';
|
|
32
32
|
import { Carousel, Table, Figure as Figure$1, Button, ProgressBar, Row, Col } from 'react-bootstrap';
|
|
33
33
|
import Button$1 from 'react-bootstrap/Button';
|
|
34
34
|
import { u as util } from './util-7700fc59.js';
|
|
35
|
-
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-
|
|
35
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-83f53e4e.js';
|
|
36
36
|
import Pagination from 'react-bootstrap/Pagination';
|
|
37
37
|
import dynamic from 'next/dynamic';
|
|
38
38
|
|
|
@@ -75,20 +75,20 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
75
75
|
if (pageview) pageview(router.asPath);
|
|
76
76
|
}, [router]);
|
|
77
77
|
|
|
78
|
-
return
|
|
78
|
+
return React__default.createElement(
|
|
79
79
|
'div',
|
|
80
80
|
{ className: 'mt-3 mb-3' },
|
|
81
|
-
|
|
81
|
+
React__default.createElement(
|
|
82
82
|
Carousel,
|
|
83
83
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
84
84
|
return onChangeSlide(selectedIndex, router);
|
|
85
85
|
}, interval: null },
|
|
86
86
|
slides && slides.map(function (slide) {
|
|
87
|
-
return
|
|
87
|
+
return React__default.createElement(
|
|
88
88
|
Carousel.Item,
|
|
89
89
|
{ key: slide._key },
|
|
90
|
-
|
|
91
|
-
slide.caption &&
|
|
90
|
+
React__default.createElement('img', { src: slide.asset && urlFor(slide.asset, builder).url(), alt: slide.alt && slide.alt, style: { width: '100%' } }),
|
|
91
|
+
slide.caption && React__default.createElement(
|
|
92
92
|
'p',
|
|
93
93
|
{ className: 'p-2' },
|
|
94
94
|
slide.caption
|
|
@@ -99,18 +99,21 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
99
99
|
);
|
|
100
100
|
};
|
|
101
101
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
var isArray = Array.isArray;
|
|
103
|
+
var keyList = Object.keys;
|
|
104
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
105
105
|
|
|
106
106
|
var fastDeepEqual = function equal(a, b) {
|
|
107
107
|
if (a === b) return true;
|
|
108
108
|
|
|
109
109
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
110
|
-
|
|
110
|
+
var arrA = isArray(a)
|
|
111
|
+
, arrB = isArray(b)
|
|
112
|
+
, i
|
|
113
|
+
, length
|
|
114
|
+
, key;
|
|
111
115
|
|
|
112
|
-
|
|
113
|
-
if (Array.isArray(a)) {
|
|
116
|
+
if (arrA && arrB) {
|
|
114
117
|
length = a.length;
|
|
115
118
|
if (length != b.length) return false;
|
|
116
119
|
for (i = length; i-- !== 0;)
|
|
@@ -118,29 +121,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
118
121
|
return true;
|
|
119
122
|
}
|
|
120
123
|
|
|
124
|
+
if (arrA != arrB) return false;
|
|
121
125
|
|
|
126
|
+
var dateA = a instanceof Date
|
|
127
|
+
, dateB = b instanceof Date;
|
|
128
|
+
if (dateA != dateB) return false;
|
|
129
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
122
130
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
if (
|
|
131
|
+
var regexpA = a instanceof RegExp
|
|
132
|
+
, regexpB = b instanceof RegExp;
|
|
133
|
+
if (regexpA != regexpB) return false;
|
|
134
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
126
135
|
|
|
127
|
-
keys =
|
|
136
|
+
var keys = keyList(a);
|
|
128
137
|
length = keys.length;
|
|
129
|
-
|
|
138
|
+
|
|
139
|
+
if (length !== keyList(b).length)
|
|
140
|
+
return false;
|
|
130
141
|
|
|
131
142
|
for (i = length; i-- !== 0;)
|
|
132
|
-
if (!
|
|
143
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
133
144
|
|
|
134
145
|
for (i = length; i-- !== 0;) {
|
|
135
|
-
|
|
136
|
-
|
|
146
|
+
key = keys[i];
|
|
137
147
|
if (!equal(a[key], b[key])) return false;
|
|
138
148
|
}
|
|
139
149
|
|
|
140
150
|
return true;
|
|
141
151
|
}
|
|
142
152
|
|
|
143
|
-
// true if both NaN, false otherwise
|
|
144
153
|
return a!==a && b!==b;
|
|
145
154
|
};
|
|
146
155
|
|
|
@@ -1563,239 +1572,199 @@ module.exports = exports['default'];
|
|
|
1563
1572
|
|
|
1564
1573
|
var youTubePlayer = unwrapExports(dist);
|
|
1565
1574
|
|
|
1566
|
-
function
|
|
1567
|
-
|
|
1568
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1569
|
-
|
|
1570
|
-
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); } }
|
|
1575
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
1571
1576
|
|
|
1572
|
-
function
|
|
1577
|
+
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; };
|
|
1573
1578
|
|
|
1574
|
-
function
|
|
1575
|
-
|
|
1576
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1577
|
-
|
|
1578
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
1579
|
-
|
|
1580
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1581
|
-
|
|
1582
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1583
|
-
|
|
1584
|
-
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; } }
|
|
1585
|
-
|
|
1586
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1579
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1587
1580
|
|
|
1588
|
-
function
|
|
1581
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
1589
1582
|
|
|
1590
|
-
function
|
|
1583
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
1591
1584
|
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
*
|
|
1595
|
-
*
|
|
1596
|
-
* @param {Object}
|
|
1597
|
-
* @param {Object} props
|
|
1585
|
+
/**
|
|
1586
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1587
|
+
*
|
|
1588
|
+
* @param {Object} prevProps
|
|
1589
|
+
* @param {Object} props
|
|
1598
1590
|
*/
|
|
1599
|
-
|
|
1600
1591
|
function shouldUpdateVideo(prevProps, props) {
|
|
1601
1592
|
// A changing video should always trigger an update
|
|
1602
1593
|
if (prevProps.videoId !== props.videoId) {
|
|
1603
1594
|
return true;
|
|
1604
|
-
}
|
|
1605
|
-
// update.
|
|
1606
|
-
|
|
1595
|
+
}
|
|
1607
1596
|
|
|
1597
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1598
|
+
// update.
|
|
1608
1599
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1609
1600
|
var vars = props.opts.playerVars || {};
|
|
1601
|
+
|
|
1610
1602
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1611
1603
|
}
|
|
1612
|
-
/**
|
|
1613
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
1614
|
-
* that require a player reset. The results can then be compared to see if a
|
|
1615
|
-
* player reset is necessary.
|
|
1616
|
-
*
|
|
1617
|
-
* @param {Object} opts
|
|
1618
|
-
*/
|
|
1619
|
-
|
|
1620
1604
|
|
|
1605
|
+
/**
|
|
1606
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
1607
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1608
|
+
* player reset is necessary.
|
|
1609
|
+
*
|
|
1610
|
+
* @param {Object} opts
|
|
1611
|
+
*/
|
|
1621
1612
|
function filterResetOptions(opts) {
|
|
1622
|
-
return
|
|
1623
|
-
playerVars:
|
|
1613
|
+
return _extends({}, opts, {
|
|
1614
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1624
1615
|
autoplay: 0,
|
|
1625
1616
|
start: 0,
|
|
1626
1617
|
end: 0
|
|
1627
1618
|
})
|
|
1628
1619
|
});
|
|
1629
1620
|
}
|
|
1630
|
-
/**
|
|
1631
|
-
* Check whether a `props` change should result in the player being reset.
|
|
1632
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
1633
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1634
|
-
* those.
|
|
1635
|
-
*
|
|
1636
|
-
* @param {Object} prevProps
|
|
1637
|
-
* @param {Object} props
|
|
1638
|
-
*/
|
|
1639
|
-
|
|
1640
1621
|
|
|
1622
|
+
/**
|
|
1623
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1624
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1625
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1626
|
+
* those.
|
|
1627
|
+
*
|
|
1628
|
+
* @param {Object} prevProps
|
|
1629
|
+
* @param {Object} props
|
|
1630
|
+
*/
|
|
1641
1631
|
function shouldResetPlayer(prevProps, props) {
|
|
1642
1632
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1643
1633
|
}
|
|
1644
|
-
/**
|
|
1645
|
-
* Check whether a props change should result in an id or className update.
|
|
1646
|
-
*
|
|
1647
|
-
* @param {Object} prevProps
|
|
1648
|
-
* @param {Object} props
|
|
1649
|
-
*/
|
|
1650
|
-
|
|
1651
1634
|
|
|
1635
|
+
/**
|
|
1636
|
+
* Check whether a props change should result in an id or className update.
|
|
1637
|
+
*
|
|
1638
|
+
* @param {Object} prevProps
|
|
1639
|
+
* @param {Object} props
|
|
1640
|
+
*/
|
|
1652
1641
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1653
1642
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1654
1643
|
}
|
|
1655
1644
|
|
|
1656
|
-
var YouTube =
|
|
1645
|
+
var YouTube = function (_React$Component) {
|
|
1657
1646
|
_inherits(YouTube, _React$Component);
|
|
1658
1647
|
|
|
1659
|
-
var _super = _createSuper(YouTube);
|
|
1660
|
-
|
|
1661
|
-
/**
|
|
1662
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1663
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1664
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1665
|
-
*/
|
|
1666
1648
|
function YouTube(props) {
|
|
1667
|
-
var _this;
|
|
1668
|
-
|
|
1669
1649
|
_classCallCheck(this, YouTube);
|
|
1670
1650
|
|
|
1671
|
-
_this =
|
|
1651
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1672
1652
|
|
|
1673
|
-
|
|
1653
|
+
_this.onPlayerReady = function (event) {
|
|
1674
1654
|
return _this.props.onReady(event);
|
|
1675
|
-
}
|
|
1655
|
+
};
|
|
1676
1656
|
|
|
1677
|
-
|
|
1657
|
+
_this.onPlayerError = function (event) {
|
|
1678
1658
|
return _this.props.onError(event);
|
|
1679
|
-
}
|
|
1659
|
+
};
|
|
1680
1660
|
|
|
1681
|
-
|
|
1661
|
+
_this.onPlayerStateChange = function (event) {
|
|
1682
1662
|
_this.props.onStateChange(event);
|
|
1683
|
-
|
|
1684
1663
|
switch (event.data) {
|
|
1664
|
+
|
|
1685
1665
|
case YouTube.PlayerState.ENDED:
|
|
1686
1666
|
_this.props.onEnd(event);
|
|
1687
|
-
|
|
1688
1667
|
break;
|
|
1689
1668
|
|
|
1690
1669
|
case YouTube.PlayerState.PLAYING:
|
|
1691
1670
|
_this.props.onPlay(event);
|
|
1692
|
-
|
|
1693
1671
|
break;
|
|
1694
1672
|
|
|
1695
1673
|
case YouTube.PlayerState.PAUSED:
|
|
1696
1674
|
_this.props.onPause(event);
|
|
1697
|
-
|
|
1698
1675
|
break;
|
|
1699
1676
|
}
|
|
1700
|
-
}
|
|
1677
|
+
};
|
|
1701
1678
|
|
|
1702
|
-
|
|
1679
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1703
1680
|
return _this.props.onPlaybackRateChange(event);
|
|
1704
|
-
}
|
|
1681
|
+
};
|
|
1705
1682
|
|
|
1706
|
-
|
|
1683
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1707
1684
|
return _this.props.onPlaybackQualityChange(event);
|
|
1708
|
-
}
|
|
1685
|
+
};
|
|
1709
1686
|
|
|
1710
|
-
|
|
1687
|
+
_this.createPlayer = function () {
|
|
1711
1688
|
// do not attempt to create a player server-side, it won't work
|
|
1712
|
-
if (typeof document === 'undefined') return;
|
|
1713
|
-
|
|
1714
|
-
var playerOpts =
|
|
1689
|
+
if (typeof document === 'undefined') return;
|
|
1690
|
+
// create player
|
|
1691
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1715
1692
|
// preload the `videoId` video if one is already given
|
|
1716
1693
|
videoId: _this.props.videoId
|
|
1717
1694
|
});
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1695
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
1696
|
+
// attach event handlers
|
|
1721
1697
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1722
|
-
|
|
1723
1698
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1724
|
-
|
|
1725
1699
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1726
|
-
|
|
1727
1700
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1728
|
-
|
|
1729
1701
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1730
|
-
}
|
|
1702
|
+
};
|
|
1731
1703
|
|
|
1732
|
-
|
|
1704
|
+
_this.resetPlayer = function () {
|
|
1733
1705
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1734
|
-
}
|
|
1706
|
+
};
|
|
1735
1707
|
|
|
1736
|
-
|
|
1708
|
+
_this.updatePlayer = function () {
|
|
1737
1709
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1738
1710
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1739
1711
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1740
1712
|
});
|
|
1741
|
-
}
|
|
1742
|
-
|
|
1743
|
-
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1744
|
-
return _this.internalPlayer;
|
|
1745
|
-
});
|
|
1713
|
+
};
|
|
1746
1714
|
|
|
1747
|
-
|
|
1715
|
+
_this.updateVideo = function () {
|
|
1748
1716
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1749
1717
|
_this.internalPlayer.stopVideo();
|
|
1750
|
-
|
|
1751
1718
|
return;
|
|
1752
|
-
}
|
|
1753
|
-
|
|
1719
|
+
}
|
|
1754
1720
|
|
|
1721
|
+
// set queueing options
|
|
1755
1722
|
var autoplay = false;
|
|
1756
1723
|
var opts = {
|
|
1757
1724
|
videoId: _this.props.videoId
|
|
1758
1725
|
};
|
|
1759
|
-
|
|
1760
1726
|
if ('playerVars' in _this.props.opts) {
|
|
1761
1727
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1762
|
-
|
|
1763
1728
|
if ('start' in _this.props.opts.playerVars) {
|
|
1764
1729
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1765
1730
|
}
|
|
1766
|
-
|
|
1767
1731
|
if ('end' in _this.props.opts.playerVars) {
|
|
1768
1732
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1769
1733
|
}
|
|
1770
|
-
}
|
|
1771
|
-
|
|
1734
|
+
}
|
|
1772
1735
|
|
|
1736
|
+
// if autoplay is enabled loadVideoById
|
|
1773
1737
|
if (autoplay) {
|
|
1774
1738
|
_this.internalPlayer.loadVideoById(opts);
|
|
1775
|
-
|
|
1776
1739
|
return;
|
|
1777
|
-
}
|
|
1778
|
-
|
|
1779
|
-
|
|
1740
|
+
}
|
|
1741
|
+
// default behaviour just cues the video
|
|
1780
1742
|
_this.internalPlayer.cueVideoById(opts);
|
|
1781
|
-
}
|
|
1743
|
+
};
|
|
1782
1744
|
|
|
1783
|
-
|
|
1745
|
+
_this.refContainer = function (container) {
|
|
1784
1746
|
_this.container = container;
|
|
1785
|
-
}
|
|
1747
|
+
};
|
|
1786
1748
|
|
|
1787
1749
|
_this.container = null;
|
|
1788
1750
|
_this.internalPlayer = null;
|
|
1789
1751
|
return _this;
|
|
1790
1752
|
}
|
|
1791
1753
|
|
|
1754
|
+
/**
|
|
1755
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1756
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1757
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1758
|
+
*/
|
|
1759
|
+
|
|
1760
|
+
|
|
1792
1761
|
_createClass(YouTube, [{
|
|
1793
|
-
key:
|
|
1762
|
+
key: 'componentDidMount',
|
|
1794
1763
|
value: function componentDidMount() {
|
|
1795
1764
|
this.createPlayer();
|
|
1796
1765
|
}
|
|
1797
1766
|
}, {
|
|
1798
|
-
key:
|
|
1767
|
+
key: 'componentDidUpdate',
|
|
1799
1768
|
value: function componentDidUpdate(prevProps) {
|
|
1800
1769
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1801
1770
|
this.updatePlayer();
|
|
@@ -1810,58 +1779,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1810
1779
|
}
|
|
1811
1780
|
}
|
|
1812
1781
|
}, {
|
|
1813
|
-
key:
|
|
1782
|
+
key: 'componentWillUnmount',
|
|
1814
1783
|
value: function componentWillUnmount() {
|
|
1815
|
-
/**
|
|
1816
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1817
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1818
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1819
|
-
* this method isn't quick enough to reset the container element.
|
|
1784
|
+
/**
|
|
1785
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
1786
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1787
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1788
|
+
* this method isn't quick enough to reset the container element.
|
|
1820
1789
|
*/
|
|
1821
1790
|
this.internalPlayer.destroy();
|
|
1822
1791
|
}
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
*
|
|
1826
|
-
*
|
|
1827
|
-
*
|
|
1792
|
+
|
|
1793
|
+
/**
|
|
1794
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1795
|
+
*
|
|
1796
|
+
* @param {Object} event
|
|
1797
|
+
* @param {Object} target - player object
|
|
1798
|
+
*/
|
|
1799
|
+
|
|
1800
|
+
|
|
1801
|
+
/**
|
|
1802
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1803
|
+
*
|
|
1804
|
+
* @param {Object} event
|
|
1805
|
+
* @param {Integer} data - error type
|
|
1806
|
+
* @param {Object} target - player object
|
|
1807
|
+
*/
|
|
1808
|
+
|
|
1809
|
+
|
|
1810
|
+
/**
|
|
1811
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1812
|
+
*
|
|
1813
|
+
* @param {Object} event
|
|
1814
|
+
* @param {Integer} data - status change type
|
|
1815
|
+
* @param {Object} target - actual YT player
|
|
1816
|
+
*/
|
|
1817
|
+
|
|
1818
|
+
|
|
1819
|
+
/**
|
|
1820
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1821
|
+
*
|
|
1822
|
+
* @param {Object} event
|
|
1823
|
+
* @param {Float} data - playback rate
|
|
1824
|
+
* @param {Object} target - actual YT player
|
|
1825
|
+
*/
|
|
1826
|
+
|
|
1827
|
+
|
|
1828
|
+
/**
|
|
1829
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1830
|
+
*
|
|
1831
|
+
* @param {Object} event
|
|
1832
|
+
* @param {String} data - playback quality
|
|
1833
|
+
* @param {Object} target - actual YT player
|
|
1834
|
+
*/
|
|
1835
|
+
|
|
1836
|
+
|
|
1837
|
+
/**
|
|
1838
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1839
|
+
*/
|
|
1840
|
+
|
|
1841
|
+
|
|
1842
|
+
/**
|
|
1843
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1844
|
+
*/
|
|
1845
|
+
|
|
1846
|
+
|
|
1847
|
+
/**
|
|
1848
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
1849
|
+
* React should update this automatically but since the Youtube Player API
|
|
1850
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1851
|
+
*/
|
|
1852
|
+
|
|
1853
|
+
|
|
1854
|
+
/**
|
|
1855
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
1856
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1857
|
+
* Youtube Player API methods to update the video.
|
|
1828
1858
|
*/
|
|
1829
1859
|
|
|
1830
1860
|
}, {
|
|
1831
|
-
key:
|
|
1861
|
+
key: 'render',
|
|
1832
1862
|
value: function render() {
|
|
1833
|
-
return
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
id: this.props.id,
|
|
1837
|
-
|
|
1838
|
-
ref: this.refContainer
|
|
1839
|
-
}));
|
|
1863
|
+
return React__default.createElement(
|
|
1864
|
+
'div',
|
|
1865
|
+
{ className: this.props.containerClassName },
|
|
1866
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
1867
|
+
);
|
|
1840
1868
|
}
|
|
1841
1869
|
}]);
|
|
1842
1870
|
|
|
1843
1871
|
return YouTube;
|
|
1844
|
-
}(
|
|
1845
|
-
|
|
1846
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
1847
|
-
UNSTARTED: -1,
|
|
1848
|
-
ENDED: 0,
|
|
1849
|
-
PLAYING: 1,
|
|
1850
|
-
PAUSED: 2,
|
|
1851
|
-
BUFFERING: 3,
|
|
1852
|
-
CUED: 5
|
|
1853
|
-
});
|
|
1872
|
+
}(React__default.Component);
|
|
1854
1873
|
|
|
1855
1874
|
YouTube.propTypes = {
|
|
1856
1875
|
videoId: PropTypes.string,
|
|
1876
|
+
|
|
1857
1877
|
// custom ID for player element
|
|
1858
1878
|
id: PropTypes.string,
|
|
1879
|
+
|
|
1859
1880
|
// custom class name for player element
|
|
1860
1881
|
className: PropTypes.string,
|
|
1861
1882
|
// custom class name for player container element
|
|
1862
1883
|
containerClassName: PropTypes.string,
|
|
1884
|
+
|
|
1863
1885
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1864
1886
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1887
|
+
|
|
1865
1888
|
// event subscriptions
|
|
1866
1889
|
onReady: PropTypes.func,
|
|
1867
1890
|
onError: PropTypes.func,
|
|
@@ -1873,7 +1896,6 @@ YouTube.propTypes = {
|
|
|
1873
1896
|
onPlaybackQualityChange: PropTypes.func
|
|
1874
1897
|
};
|
|
1875
1898
|
YouTube.defaultProps = {
|
|
1876
|
-
videoId: null,
|
|
1877
1899
|
id: null,
|
|
1878
1900
|
className: null,
|
|
1879
1901
|
opts: {},
|
|
@@ -1887,6 +1909,14 @@ YouTube.defaultProps = {
|
|
|
1887
1909
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1888
1910
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1889
1911
|
};
|
|
1912
|
+
YouTube.PlayerState = {
|
|
1913
|
+
UNSTARTED: -1,
|
|
1914
|
+
ENDED: 0,
|
|
1915
|
+
PLAYING: 1,
|
|
1916
|
+
PAUSED: 2,
|
|
1917
|
+
BUFFERING: 3,
|
|
1918
|
+
CUED: 5
|
|
1919
|
+
};
|
|
1890
1920
|
|
|
1891
1921
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1892
1922
|
var url = _ref.url;
|
|
@@ -1986,11 +2016,11 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1986
2016
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
1987
2017
|
};
|
|
1988
2018
|
|
|
1989
|
-
return
|
|
2019
|
+
return React__default.createElement(
|
|
1990
2020
|
'div',
|
|
1991
2021
|
{ id: 'fluid-video-container' },
|
|
1992
|
-
|
|
1993
|
-
|
|
2022
|
+
React__default.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
2023
|
+
React__default.createElement(
|
|
1994
2024
|
'style',
|
|
1995
2025
|
{ jsx: 'true' },
|
|
1996
2026
|
'\n #fluid-video-container {\n margin-bottom: 2rem;\n }\n #fluid-video-container > div {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n }\n #fluid-video-container .fluid-iframe {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100% !important;\n }\n '
|
|
@@ -2003,20 +2033,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2003
2033
|
content = _ref.content,
|
|
2004
2034
|
getSerializers = _ref.getSerializers;
|
|
2005
2035
|
|
|
2006
|
-
return
|
|
2036
|
+
return React__default.createElement(
|
|
2007
2037
|
'article',
|
|
2008
2038
|
{ className: 'sidebar' },
|
|
2009
|
-
|
|
2039
|
+
React__default.createElement(
|
|
2010
2040
|
'div',
|
|
2011
2041
|
null,
|
|
2012
|
-
|
|
2042
|
+
React__default.createElement(
|
|
2013
2043
|
'h3',
|
|
2014
2044
|
null,
|
|
2015
2045
|
caption
|
|
2016
2046
|
),
|
|
2017
|
-
|
|
2047
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2018
2048
|
),
|
|
2019
|
-
|
|
2049
|
+
React__default.createElement(
|
|
2020
2050
|
'style',
|
|
2021
2051
|
{ jsx: 'true' },
|
|
2022
2052
|
'\n .sidebar {\n clear: both;\n float: right;\n background-color: #eee;\n width: 40%;\n padding: 1rem;\n margin: 0 0 1rem 1rem;\n }\n /* resolving list items inside sidebar being shifted to center because of unusual margin */\n .sidebar ul {\n margin-left: 0;\n padding-left: 1rem;\n }\n @media screen and (max-width: 991px) {\n .sidebar {\n float: none;\n width: auto;\n margin: 1rem 0;\n }\n }\n '
|
|
@@ -2027,18 +2057,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2027
2057
|
var TableShow = function TableShow(_ref) {
|
|
2028
2058
|
var rows = _ref.rows;
|
|
2029
2059
|
|
|
2030
|
-
return
|
|
2060
|
+
return React__default.createElement(
|
|
2031
2061
|
Table,
|
|
2032
2062
|
{ bordered: true, hover: true, responsive: true },
|
|
2033
|
-
|
|
2063
|
+
React__default.createElement(
|
|
2034
2064
|
'tbody',
|
|
2035
2065
|
null,
|
|
2036
2066
|
rows && rows.map(function (row) {
|
|
2037
|
-
return
|
|
2067
|
+
return React__default.createElement(
|
|
2038
2068
|
'tr',
|
|
2039
2069
|
{ key: row._key },
|
|
2040
2070
|
row.cells && row.cells.map(function (cell, index) {
|
|
2041
|
-
return cell &&
|
|
2071
|
+
return cell && React__default.createElement(
|
|
2042
2072
|
'td',
|
|
2043
2073
|
{ key: index },
|
|
2044
2074
|
cell
|
|
@@ -2141,14 +2171,14 @@ var Media = function Media(_ref) {
|
|
|
2141
2171
|
margin: imageMargin
|
|
2142
2172
|
};
|
|
2143
2173
|
|
|
2144
|
-
return
|
|
2174
|
+
return React__default.createElement(
|
|
2145
2175
|
Figure$1,
|
|
2146
2176
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2147
|
-
|
|
2177
|
+
React__default.createElement(
|
|
2148
2178
|
'a',
|
|
2149
2179
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2150
|
-
|
|
2151
|
-
caption &&
|
|
2180
|
+
React__default.createElement(Figure$1.Image, _extends$1({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt })),
|
|
2181
|
+
caption && React__default.createElement(
|
|
2152
2182
|
Figure$1.Caption,
|
|
2153
2183
|
{ className: 'media-caption' },
|
|
2154
2184
|
caption
|
|
@@ -2156,9 +2186,9 @@ var Media = function Media(_ref) {
|
|
|
2156
2186
|
)
|
|
2157
2187
|
);
|
|
2158
2188
|
} else if (caption && caption !== '') {
|
|
2159
|
-
return
|
|
2189
|
+
return React__default.createElement(
|
|
2160
2190
|
'a',
|
|
2161
|
-
_extends({}, uploadDoc.downloadMedia ? {
|
|
2191
|
+
_extends$1({}, uploadDoc.downloadMedia ? {
|
|
2162
2192
|
href: uploadDoc.asset.url + '?dl='
|
|
2163
2193
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2164
2194
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2173,10 +2203,10 @@ var Media = function Media(_ref) {
|
|
|
2173
2203
|
var IFrame = function IFrame(_ref) {
|
|
2174
2204
|
var url = _ref.url;
|
|
2175
2205
|
|
|
2176
|
-
return
|
|
2206
|
+
return React__default.createElement(
|
|
2177
2207
|
'div',
|
|
2178
2208
|
{ className: 'd-block text-center mb-3' },
|
|
2179
|
-
|
|
2209
|
+
React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2180
2210
|
);
|
|
2181
2211
|
};
|
|
2182
2212
|
|
|
@@ -2289,54 +2319,54 @@ var Video = function Video(_ref) {
|
|
|
2289
2319
|
|
|
2290
2320
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2291
2321
|
if (videoID) {
|
|
2292
|
-
return
|
|
2322
|
+
return React__default.createElement(
|
|
2293
2323
|
'div',
|
|
2294
2324
|
null,
|
|
2295
|
-
|
|
2325
|
+
React__default.createElement(ReactPlayerLoader, {
|
|
2296
2326
|
onSuccess: onVideoSuccess,
|
|
2297
2327
|
accountId: accountIDs.brightcove.accountId,
|
|
2298
2328
|
videoId: videoID,
|
|
2299
2329
|
playerId: accountIDs.brightcove.playerId,
|
|
2300
2330
|
attrs: { className: 'brightcove', autoplay: 'muted' }
|
|
2301
2331
|
}),
|
|
2302
|
-
|
|
2332
|
+
React__default.createElement(
|
|
2303
2333
|
'style',
|
|
2304
2334
|
{ jsx: 'true' },
|
|
2305
2335
|
'\n .brightcove {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n width: 100%;\n }\n .brightcove .video-js {\n height: 100%;\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n '
|
|
2306
2336
|
)
|
|
2307
2337
|
);
|
|
2308
2338
|
} else if (playlistID) {
|
|
2309
|
-
return
|
|
2339
|
+
return React__default.createElement(
|
|
2310
2340
|
'div',
|
|
2311
2341
|
null,
|
|
2312
|
-
|
|
2342
|
+
React__default.createElement(ReactPlayerLoader, {
|
|
2313
2343
|
accountId: accountIDs.brightcove.accountId,
|
|
2314
2344
|
playlistId: playlistID,
|
|
2315
2345
|
playerId: accountIDs.brightcove.playerId,
|
|
2316
2346
|
onSuccess: onVideoSuccess,
|
|
2317
2347
|
attrs: { className: 'brightcove brightcove-playlist', autoplay: 'muted' }
|
|
2318
2348
|
}),
|
|
2319
|
-
|
|
2349
|
+
React__default.createElement(
|
|
2320
2350
|
'style',
|
|
2321
2351
|
{ jsx: 'true' },
|
|
2322
2352
|
'\n .brightcove {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n width: 100%;\n }\n .brightcove .video-js {\n height: 100%;\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n '
|
|
2323
2353
|
)
|
|
2324
2354
|
);
|
|
2325
2355
|
} else if (experienceID) {
|
|
2326
|
-
return
|
|
2356
|
+
return React__default.createElement(
|
|
2327
2357
|
'div',
|
|
2328
2358
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2329
|
-
|
|
2359
|
+
React__default.createElement(
|
|
2330
2360
|
'div',
|
|
2331
2361
|
{ style: { paddingTop: '56.25%' } },
|
|
2332
|
-
|
|
2362
|
+
React__default.createElement('iframe', {
|
|
2333
2363
|
src: 'https://players.brightcove.net/' + accountIDs.brightcove.accountId + '/experience_' + experienceID + '/index.html',
|
|
2334
2364
|
allowFullScreen: 'true',
|
|
2335
2365
|
webkitallowfullscreen: 'true',
|
|
2336
2366
|
mozallowfullscreen: 'true',
|
|
2337
2367
|
style: { border: 'none', position: 'absolute', top: '0px', right: '0px', bottom: '0px', left: '0px', width: '100%', height: '100%' }
|
|
2338
2368
|
}),
|
|
2339
|
-
|
|
2369
|
+
React__default.createElement(
|
|
2340
2370
|
'style',
|
|
2341
2371
|
{ jsx: 'true' },
|
|
2342
2372
|
'\n .brightcove-playlist iframe {\n height: 100% !important;\n }\n '
|
|
@@ -2721,17 +2751,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2721
2751
|
|
|
2722
2752
|
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; }
|
|
2723
2753
|
|
|
2724
|
-
function
|
|
2754
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2725
2755
|
|
|
2726
|
-
function
|
|
2756
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2727
2757
|
|
|
2728
|
-
function
|
|
2729
|
-
|
|
2730
|
-
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); }
|
|
2731
|
-
|
|
2732
|
-
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; }
|
|
2733
|
-
|
|
2734
|
-
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; }
|
|
2758
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
2735
2759
|
|
|
2736
2760
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2737
2761
|
|
|
@@ -2861,12 +2885,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
2861
2885
|
|
|
2862
2886
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
2863
2887
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
2864
|
-
|
|
2865
|
-
var
|
|
2866
|
-
|
|
2888
|
+
var _iteratorNormalCompletion = true;
|
|
2889
|
+
var _didIteratorError = false;
|
|
2890
|
+
var _iteratorError = undefined;
|
|
2867
2891
|
|
|
2868
2892
|
try {
|
|
2869
|
-
for (_iterator.
|
|
2893
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
2870
2894
|
var p = _step.value;
|
|
2871
2895
|
|
|
2872
2896
|
if (props$1[p]) {
|
|
@@ -2881,9 +2905,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
2881
2905
|
}
|
|
2882
2906
|
}
|
|
2883
2907
|
} catch (err) {
|
|
2884
|
-
|
|
2908
|
+
_didIteratorError = true;
|
|
2909
|
+
_iteratorError = err;
|
|
2885
2910
|
} finally {
|
|
2886
|
-
|
|
2911
|
+
try {
|
|
2912
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
2913
|
+
_iterator["return"]();
|
|
2914
|
+
}
|
|
2915
|
+
} finally {
|
|
2916
|
+
if (_didIteratorError) {
|
|
2917
|
+
throw _iteratorError;
|
|
2918
|
+
}
|
|
2919
|
+
}
|
|
2887
2920
|
}
|
|
2888
2921
|
|
|
2889
2922
|
return config;
|
|
@@ -2948,7 +2981,7 @@ function isEqual(a, b) {
|
|
|
2948
2981
|
return true;
|
|
2949
2982
|
}
|
|
2950
2983
|
|
|
2951
|
-
if ((0,
|
|
2984
|
+
if ((0, React__default.isValidElement)(a) && (0, React__default.isValidElement)(b)) {
|
|
2952
2985
|
return true;
|
|
2953
2986
|
}
|
|
2954
2987
|
|
|
@@ -3010,7 +3043,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3010
3043
|
});
|
|
3011
3044
|
exports["default"] = void 0;
|
|
3012
3045
|
|
|
3013
|
-
var _react = _interopRequireWildcard(
|
|
3046
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3014
3047
|
|
|
3015
3048
|
|
|
3016
3049
|
|
|
@@ -3030,16 +3063,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3030
3063
|
|
|
3031
3064
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3032
3065
|
|
|
3033
|
-
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); }; }
|
|
3034
|
-
|
|
3035
3066
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3036
3067
|
|
|
3037
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3038
|
-
|
|
3039
|
-
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; } }
|
|
3040
|
-
|
|
3041
3068
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3042
3069
|
|
|
3070
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3071
|
+
|
|
3043
3072
|
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); }
|
|
3044
3073
|
|
|
3045
3074
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3048,12 +3077,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3048
3077
|
|
|
3049
3078
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3050
3079
|
|
|
3051
|
-
var Player =
|
|
3080
|
+
var Player =
|
|
3081
|
+
/*#__PURE__*/
|
|
3082
|
+
function (_Component) {
|
|
3052
3083
|
_inherits(Player, _Component);
|
|
3053
3084
|
|
|
3054
|
-
var _super = _createSuper(Player);
|
|
3055
|
-
|
|
3056
3085
|
function Player() {
|
|
3086
|
+
var _getPrototypeOf2;
|
|
3087
|
+
|
|
3057
3088
|
var _this;
|
|
3058
3089
|
|
|
3059
3090
|
_classCallCheck(this, Player);
|
|
@@ -3062,7 +3093,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3062
3093
|
_args[_key] = arguments[_key];
|
|
3063
3094
|
}
|
|
3064
3095
|
|
|
3065
|
-
_this =
|
|
3096
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3066
3097
|
|
|
3067
3098
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3068
3099
|
|
|
@@ -3387,7 +3418,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3387
3418
|
return null;
|
|
3388
3419
|
}
|
|
3389
3420
|
|
|
3390
|
-
return
|
|
3421
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3391
3422
|
ref: this.ref,
|
|
3392
3423
|
onReady: this.handleReady,
|
|
3393
3424
|
onPlay: this.handlePlay,
|
|
@@ -3420,7 +3451,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3420
3451
|
});
|
|
3421
3452
|
exports["default"] = createSinglePlayer;
|
|
3422
3453
|
|
|
3423
|
-
var _react = _interopRequireWildcard(
|
|
3454
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3424
3455
|
|
|
3425
3456
|
|
|
3426
3457
|
|
|
@@ -3448,16 +3479,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3448
3479
|
|
|
3449
3480
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3450
3481
|
|
|
3451
|
-
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); }; }
|
|
3452
|
-
|
|
3453
3482
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3454
3483
|
|
|
3455
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3456
|
-
|
|
3457
|
-
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; } }
|
|
3458
|
-
|
|
3459
3484
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3460
3485
|
|
|
3486
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3487
|
+
|
|
3461
3488
|
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); }
|
|
3462
3489
|
|
|
3463
3490
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3469,12 +3496,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3469
3496
|
function createSinglePlayer(activePlayer) {
|
|
3470
3497
|
var _class, _temp;
|
|
3471
3498
|
|
|
3472
|
-
return _temp = _class =
|
|
3499
|
+
return _temp = _class =
|
|
3500
|
+
/*#__PURE__*/
|
|
3501
|
+
function (_Component) {
|
|
3473
3502
|
_inherits(SinglePlayer, _Component);
|
|
3474
3503
|
|
|
3475
|
-
var _super = _createSuper(SinglePlayer);
|
|
3476
|
-
|
|
3477
3504
|
function SinglePlayer() {
|
|
3505
|
+
var _getPrototypeOf2;
|
|
3506
|
+
|
|
3478
3507
|
var _this;
|
|
3479
3508
|
|
|
3480
3509
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3483,7 +3512,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3483
3512
|
args[_key] = arguments[_key];
|
|
3484
3513
|
}
|
|
3485
3514
|
|
|
3486
|
-
_this =
|
|
3515
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3487
3516
|
|
|
3488
3517
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3489
3518
|
|
|
@@ -3551,12 +3580,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3551
3580
|
height = _this$props.height,
|
|
3552
3581
|
Wrapper = _this$props.wrapper;
|
|
3553
3582
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3554
|
-
return
|
|
3583
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3555
3584
|
style: _objectSpread({}, style, {
|
|
3556
3585
|
width: width,
|
|
3557
3586
|
height: height
|
|
3558
3587
|
})
|
|
3559
|
-
}, otherProps),
|
|
3588
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3560
3589
|
ref: this.ref,
|
|
3561
3590
|
activePlayer: activePlayer,
|
|
3562
3591
|
config: this.config
|
|
@@ -3578,7 +3607,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3578
3607
|
});
|
|
3579
3608
|
exports["default"] = exports.YouTube = void 0;
|
|
3580
3609
|
|
|
3581
|
-
var _react = _interopRequireWildcard(
|
|
3610
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3582
3611
|
|
|
3583
3612
|
|
|
3584
3613
|
|
|
@@ -3602,31 +3631,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3602
3631
|
|
|
3603
3632
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3604
3633
|
|
|
3605
|
-
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); }; }
|
|
3606
|
-
|
|
3607
3634
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3608
3635
|
|
|
3609
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3610
|
-
|
|
3611
|
-
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; } }
|
|
3612
|
-
|
|
3613
3636
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3614
3637
|
|
|
3638
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3639
|
+
|
|
3615
3640
|
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); }
|
|
3616
3641
|
|
|
3617
3642
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3618
3643
|
|
|
3619
3644
|
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; }
|
|
3620
3645
|
|
|
3621
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3622
|
-
|
|
3623
|
-
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."); }
|
|
3646
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3624
3647
|
|
|
3625
|
-
function
|
|
3648
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3626
3649
|
|
|
3627
|
-
function
|
|
3628
|
-
|
|
3629
|
-
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; }
|
|
3650
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
3630
3651
|
|
|
3631
3652
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3632
3653
|
|
|
@@ -3651,12 +3672,14 @@ function parsePlaylist(url) {
|
|
|
3651
3672
|
return {};
|
|
3652
3673
|
}
|
|
3653
3674
|
|
|
3654
|
-
var YouTube =
|
|
3675
|
+
var YouTube =
|
|
3676
|
+
/*#__PURE__*/
|
|
3677
|
+
function (_Component) {
|
|
3655
3678
|
_inherits(YouTube, _Component);
|
|
3656
3679
|
|
|
3657
|
-
var _super = _createSuper(YouTube);
|
|
3658
|
-
|
|
3659
3680
|
function YouTube() {
|
|
3681
|
+
var _getPrototypeOf2;
|
|
3682
|
+
|
|
3660
3683
|
var _this;
|
|
3661
3684
|
|
|
3662
3685
|
_classCallCheck(this, YouTube);
|
|
@@ -3665,7 +3688,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3665
3688
|
args[_key] = arguments[_key];
|
|
3666
3689
|
}
|
|
3667
3690
|
|
|
3668
|
-
_this =
|
|
3691
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3669
3692
|
|
|
3670
3693
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3671
3694
|
|
|
@@ -3853,9 +3876,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3853
3876
|
height: '100%',
|
|
3854
3877
|
display: display
|
|
3855
3878
|
};
|
|
3856
|
-
return
|
|
3879
|
+
return _react["default"].createElement("div", {
|
|
3857
3880
|
style: style
|
|
3858
|
-
},
|
|
3881
|
+
}, _react["default"].createElement("div", {
|
|
3859
3882
|
ref: this.ref
|
|
3860
3883
|
}));
|
|
3861
3884
|
}
|
|
@@ -3887,7 +3910,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3887
3910
|
});
|
|
3888
3911
|
exports["default"] = exports.SoundCloud = void 0;
|
|
3889
3912
|
|
|
3890
|
-
var _react = _interopRequireWildcard(
|
|
3913
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3891
3914
|
|
|
3892
3915
|
|
|
3893
3916
|
|
|
@@ -3911,16 +3934,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3911
3934
|
|
|
3912
3935
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3913
3936
|
|
|
3914
|
-
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); }; }
|
|
3915
|
-
|
|
3916
3937
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3917
3938
|
|
|
3918
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3919
|
-
|
|
3920
|
-
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; } }
|
|
3921
|
-
|
|
3922
3939
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3923
3940
|
|
|
3941
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3942
|
+
|
|
3924
3943
|
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); }
|
|
3925
3944
|
|
|
3926
3945
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3929,14 +3948,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3929
3948
|
|
|
3930
3949
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
3931
3950
|
var SDK_GLOBAL = 'SC';
|
|
3932
|
-
var MATCH_URL = /(
|
|
3951
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
3933
3952
|
|
|
3934
|
-
var SoundCloud =
|
|
3953
|
+
var SoundCloud =
|
|
3954
|
+
/*#__PURE__*/
|
|
3955
|
+
function (_Component) {
|
|
3935
3956
|
_inherits(SoundCloud, _Component);
|
|
3936
3957
|
|
|
3937
|
-
var _super = _createSuper(SoundCloud);
|
|
3938
|
-
|
|
3939
3958
|
function SoundCloud() {
|
|
3959
|
+
var _getPrototypeOf2;
|
|
3960
|
+
|
|
3940
3961
|
var _this;
|
|
3941
3962
|
|
|
3942
3963
|
_classCallCheck(this, SoundCloud);
|
|
@@ -3945,7 +3966,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
3945
3966
|
args[_key] = arguments[_key];
|
|
3946
3967
|
}
|
|
3947
3968
|
|
|
3948
|
-
_this =
|
|
3969
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3949
3970
|
|
|
3950
3971
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3951
3972
|
|
|
@@ -4066,7 +4087,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4066
4087
|
height: '100%',
|
|
4067
4088
|
display: display
|
|
4068
4089
|
};
|
|
4069
|
-
return
|
|
4090
|
+
return _react["default"].createElement("iframe", {
|
|
4070
4091
|
ref: this.ref,
|
|
4071
4092
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4072
4093
|
style: style,
|
|
@@ -4104,7 +4125,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4104
4125
|
});
|
|
4105
4126
|
exports["default"] = exports.Vimeo = void 0;
|
|
4106
4127
|
|
|
4107
|
-
var _react = _interopRequireWildcard(
|
|
4128
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4108
4129
|
|
|
4109
4130
|
|
|
4110
4131
|
|
|
@@ -4128,16 +4149,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4128
4149
|
|
|
4129
4150
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4130
4151
|
|
|
4131
|
-
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); }; }
|
|
4132
|
-
|
|
4133
4152
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4134
4153
|
|
|
4135
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4136
|
-
|
|
4137
|
-
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; } }
|
|
4138
|
-
|
|
4139
4154
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4140
4155
|
|
|
4156
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4157
|
+
|
|
4141
4158
|
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); }
|
|
4142
4159
|
|
|
4143
4160
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4149,12 +4166,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4149
4166
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4150
4167
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4151
4168
|
|
|
4152
|
-
var Vimeo =
|
|
4169
|
+
var Vimeo =
|
|
4170
|
+
/*#__PURE__*/
|
|
4171
|
+
function (_Component) {
|
|
4153
4172
|
_inherits(Vimeo, _Component);
|
|
4154
4173
|
|
|
4155
|
-
var _super = _createSuper(Vimeo);
|
|
4156
|
-
|
|
4157
4174
|
function Vimeo() {
|
|
4175
|
+
var _getPrototypeOf2;
|
|
4176
|
+
|
|
4158
4177
|
var _this;
|
|
4159
4178
|
|
|
4160
4179
|
_classCallCheck(this, Vimeo);
|
|
@@ -4163,7 +4182,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4163
4182
|
args[_key] = arguments[_key];
|
|
4164
4183
|
}
|
|
4165
4184
|
|
|
4166
|
-
_this =
|
|
4185
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4167
4186
|
|
|
4168
4187
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4169
4188
|
|
|
@@ -4320,7 +4339,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4320
4339
|
overflow: 'hidden',
|
|
4321
4340
|
display: display
|
|
4322
4341
|
};
|
|
4323
|
-
return
|
|
4342
|
+
return _react["default"].createElement("div", {
|
|
4324
4343
|
key: this.props.url,
|
|
4325
4344
|
ref: this.ref,
|
|
4326
4345
|
style: style
|
|
@@ -4360,7 +4379,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4360
4379
|
});
|
|
4361
4380
|
exports["default"] = exports.Facebook = void 0;
|
|
4362
4381
|
|
|
4363
|
-
var _react = _interopRequireWildcard(
|
|
4382
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4364
4383
|
|
|
4365
4384
|
|
|
4366
4385
|
|
|
@@ -4380,16 +4399,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4380
4399
|
|
|
4381
4400
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4382
4401
|
|
|
4383
|
-
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); }; }
|
|
4384
|
-
|
|
4385
4402
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4386
4403
|
|
|
4387
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4388
|
-
|
|
4389
|
-
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; } }
|
|
4390
|
-
|
|
4391
4404
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4392
4405
|
|
|
4406
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4407
|
+
|
|
4393
4408
|
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); }
|
|
4394
4409
|
|
|
4395
4410
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4402,12 +4417,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4402
4417
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4403
4418
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4404
4419
|
|
|
4405
|
-
var Facebook =
|
|
4420
|
+
var Facebook =
|
|
4421
|
+
/*#__PURE__*/
|
|
4422
|
+
function (_Component) {
|
|
4406
4423
|
_inherits(Facebook, _Component);
|
|
4407
4424
|
|
|
4408
|
-
var _super = _createSuper(Facebook);
|
|
4409
|
-
|
|
4410
4425
|
function Facebook() {
|
|
4426
|
+
var _getPrototypeOf2;
|
|
4427
|
+
|
|
4411
4428
|
var _this;
|
|
4412
4429
|
|
|
4413
4430
|
_classCallCheck(this, Facebook);
|
|
@@ -4416,7 +4433,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4416
4433
|
args[_key] = arguments[_key];
|
|
4417
4434
|
}
|
|
4418
4435
|
|
|
4419
|
-
_this =
|
|
4436
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4420
4437
|
|
|
4421
4438
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4422
4439
|
|
|
@@ -4532,7 +4549,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4532
4549
|
width: '100%',
|
|
4533
4550
|
height: '100%'
|
|
4534
4551
|
};
|
|
4535
|
-
return
|
|
4552
|
+
return _react["default"].createElement("div", {
|
|
4536
4553
|
style: style,
|
|
4537
4554
|
id: this.playerID,
|
|
4538
4555
|
className: "fb-video",
|
|
@@ -4572,7 +4589,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4572
4589
|
});
|
|
4573
4590
|
exports["default"] = exports.Streamable = void 0;
|
|
4574
4591
|
|
|
4575
|
-
var _react = _interopRequireWildcard(
|
|
4592
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4576
4593
|
|
|
4577
4594
|
|
|
4578
4595
|
|
|
@@ -4592,16 +4609,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4592
4609
|
|
|
4593
4610
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4594
4611
|
|
|
4595
|
-
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); }; }
|
|
4596
|
-
|
|
4597
4612
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4598
4613
|
|
|
4599
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4600
|
-
|
|
4601
|
-
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; } }
|
|
4602
|
-
|
|
4603
4614
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4604
4615
|
|
|
4616
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4617
|
+
|
|
4605
4618
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
4606
4619
|
|
|
4607
4620
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4612,12 +4625,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4612
4625
|
var SDK_GLOBAL = 'playerjs';
|
|
4613
4626
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4614
4627
|
|
|
4615
|
-
var Streamable =
|
|
4628
|
+
var Streamable =
|
|
4629
|
+
/*#__PURE__*/
|
|
4630
|
+
function (_Component) {
|
|
4616
4631
|
_inherits(Streamable, _Component);
|
|
4617
4632
|
|
|
4618
|
-
var _super = _createSuper(Streamable);
|
|
4619
|
-
|
|
4620
4633
|
function Streamable() {
|
|
4634
|
+
var _getPrototypeOf2;
|
|
4635
|
+
|
|
4621
4636
|
var _this;
|
|
4622
4637
|
|
|
4623
4638
|
_classCallCheck(this, Streamable);
|
|
@@ -4626,7 +4641,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4626
4641
|
args[_key] = arguments[_key];
|
|
4627
4642
|
}
|
|
4628
4643
|
|
|
4629
|
-
_this =
|
|
4644
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4630
4645
|
|
|
4631
4646
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4632
4647
|
|
|
@@ -4746,7 +4761,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4746
4761
|
width: '100%',
|
|
4747
4762
|
height: '100%'
|
|
4748
4763
|
};
|
|
4749
|
-
return
|
|
4764
|
+
return _react["default"].createElement("iframe", {
|
|
4750
4765
|
ref: this.ref,
|
|
4751
4766
|
src: "https://streamable.com/o/".concat(id),
|
|
4752
4767
|
frameBorder: "0",
|
|
@@ -4783,7 +4798,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4783
4798
|
});
|
|
4784
4799
|
exports["default"] = exports.Wistia = void 0;
|
|
4785
4800
|
|
|
4786
|
-
var _react = _interopRequireWildcard(
|
|
4801
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4787
4802
|
|
|
4788
4803
|
|
|
4789
4804
|
|
|
@@ -4807,16 +4822,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4807
4822
|
|
|
4808
4823
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4809
4824
|
|
|
4810
|
-
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); }; }
|
|
4811
|
-
|
|
4812
4825
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4813
4826
|
|
|
4814
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4815
|
-
|
|
4816
|
-
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; } }
|
|
4817
|
-
|
|
4818
4827
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4819
4828
|
|
|
4829
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4830
|
+
|
|
4820
4831
|
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); }
|
|
4821
4832
|
|
|
4822
4833
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4827,48 +4838,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4827
4838
|
var SDK_GLOBAL = 'Wistia';
|
|
4828
4839
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4829
4840
|
|
|
4830
|
-
var Wistia =
|
|
4841
|
+
var Wistia =
|
|
4842
|
+
/*#__PURE__*/
|
|
4843
|
+
function (_Component) {
|
|
4831
4844
|
_inherits(Wistia, _Component);
|
|
4832
4845
|
|
|
4833
|
-
var _super = _createSuper(Wistia);
|
|
4834
|
-
|
|
4835
4846
|
function Wistia() {
|
|
4847
|
+
var _getPrototypeOf2;
|
|
4848
|
+
|
|
4836
4849
|
var _this;
|
|
4837
4850
|
|
|
4838
4851
|
_classCallCheck(this, Wistia);
|
|
4839
4852
|
|
|
4840
|
-
for (var _len = arguments.length,
|
|
4841
|
-
|
|
4853
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4854
|
+
args[_key] = arguments[_key];
|
|
4842
4855
|
}
|
|
4843
4856
|
|
|
4844
|
-
_this =
|
|
4857
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4845
4858
|
|
|
4846
4859
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4847
4860
|
|
|
4848
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4849
|
-
var _this$props;
|
|
4850
|
-
|
|
4851
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4852
|
-
});
|
|
4853
|
-
|
|
4854
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4855
|
-
var _this$props2;
|
|
4856
|
-
|
|
4857
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4858
|
-
});
|
|
4859
|
-
|
|
4860
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
4861
|
-
var _this$props3;
|
|
4862
|
-
|
|
4863
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
4864
|
-
});
|
|
4865
|
-
|
|
4866
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
4867
|
-
var _this$props4;
|
|
4868
|
-
|
|
4869
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
4870
|
-
});
|
|
4871
|
-
|
|
4872
4861
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
4873
4862
|
_this.callPlayer('mute');
|
|
4874
4863
|
});
|
|
@@ -4890,13 +4879,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4890
4879
|
value: function load(url) {
|
|
4891
4880
|
var _this2 = this;
|
|
4892
4881
|
|
|
4893
|
-
var _this$
|
|
4894
|
-
playing = _this$
|
|
4895
|
-
muted = _this$
|
|
4896
|
-
controls = _this$
|
|
4897
|
-
_onReady = _this$
|
|
4898
|
-
|
|
4899
|
-
|
|
4882
|
+
var _this$props = this.props,
|
|
4883
|
+
playing = _this$props.playing,
|
|
4884
|
+
muted = _this$props.muted,
|
|
4885
|
+
controls = _this$props.controls,
|
|
4886
|
+
_onReady = _this$props.onReady,
|
|
4887
|
+
onPlay = _this$props.onPlay,
|
|
4888
|
+
onPause = _this$props.onPause,
|
|
4889
|
+
onSeek = _this$props.onSeek,
|
|
4890
|
+
onEnded = _this$props.onEnded,
|
|
4891
|
+
config = _this$props.config,
|
|
4892
|
+
onError = _this$props.onError;
|
|
4900
4893
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
4901
4894
|
window._wq = window._wq || [];
|
|
4902
4895
|
|
|
@@ -4913,28 +4906,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4913
4906
|
|
|
4914
4907
|
_this2.unbind();
|
|
4915
4908
|
|
|
4916
|
-
_this2.player.bind('play',
|
|
4909
|
+
_this2.player.bind('play', onPlay);
|
|
4917
4910
|
|
|
4918
|
-
_this2.player.bind('pause',
|
|
4911
|
+
_this2.player.bind('pause', onPause);
|
|
4919
4912
|
|
|
4920
|
-
_this2.player.bind('seek',
|
|
4913
|
+
_this2.player.bind('seek', onSeek);
|
|
4921
4914
|
|
|
4922
|
-
_this2.player.bind('end',
|
|
4915
|
+
_this2.player.bind('end', onEnded);
|
|
4923
4916
|
|
|
4924
4917
|
_onReady();
|
|
4925
4918
|
}
|
|
4926
4919
|
});
|
|
4927
4920
|
}, onError);
|
|
4928
4921
|
}
|
|
4929
|
-
}, {
|
|
4930
|
-
key: "unbind",
|
|
4931
|
-
value: function unbind() {
|
|
4932
|
-
this.player.unbind('play', this.onPlay);
|
|
4933
|
-
this.player.unbind('pause', this.onPause);
|
|
4934
|
-
this.player.unbind('seek', this.onSeek);
|
|
4935
|
-
this.player.unbind('end', this.onEnded);
|
|
4936
|
-
} // Proxy methods to prevent listener leaks
|
|
4937
|
-
|
|
4938
4922
|
}, {
|
|
4939
4923
|
key: "play",
|
|
4940
4924
|
value: function play() {
|
|
@@ -4945,6 +4929,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4945
4929
|
value: function pause() {
|
|
4946
4930
|
this.callPlayer('pause');
|
|
4947
4931
|
}
|
|
4932
|
+
}, {
|
|
4933
|
+
key: "unbind",
|
|
4934
|
+
value: function unbind() {
|
|
4935
|
+
var _this$props2 = this.props,
|
|
4936
|
+
onPlay = _this$props2.onPlay,
|
|
4937
|
+
onPause = _this$props2.onPause,
|
|
4938
|
+
onSeek = _this$props2.onSeek,
|
|
4939
|
+
onEnded = _this$props2.onEnded;
|
|
4940
|
+
this.player.unbind('play', onPlay);
|
|
4941
|
+
this.player.unbind('pause', onPause);
|
|
4942
|
+
this.player.unbind('seek', onSeek);
|
|
4943
|
+
this.player.unbind('end', onEnded);
|
|
4944
|
+
}
|
|
4948
4945
|
}, {
|
|
4949
4946
|
key: "stop",
|
|
4950
4947
|
value: function stop() {
|
|
@@ -4990,7 +4987,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4990
4987
|
width: '100%',
|
|
4991
4988
|
height: '100%'
|
|
4992
4989
|
};
|
|
4993
|
-
return
|
|
4990
|
+
return _react["default"].createElement("div", {
|
|
4994
4991
|
key: id,
|
|
4995
4992
|
className: className,
|
|
4996
4993
|
style: style
|
|
@@ -5026,7 +5023,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5026
5023
|
});
|
|
5027
5024
|
exports["default"] = exports.Twitch = void 0;
|
|
5028
5025
|
|
|
5029
|
-
var _react = _interopRequireWildcard(
|
|
5026
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5030
5027
|
|
|
5031
5028
|
|
|
5032
5029
|
|
|
@@ -5050,16 +5047,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5050
5047
|
|
|
5051
5048
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5052
5049
|
|
|
5053
|
-
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); }; }
|
|
5054
|
-
|
|
5055
5050
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5056
5051
|
|
|
5057
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5058
|
-
|
|
5059
|
-
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; } }
|
|
5060
|
-
|
|
5061
5052
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5062
5053
|
|
|
5054
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5055
|
+
|
|
5063
5056
|
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); }
|
|
5064
5057
|
|
|
5065
5058
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5072,12 +5065,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5072
5065
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5073
5066
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5074
5067
|
|
|
5075
|
-
var Twitch =
|
|
5068
|
+
var Twitch =
|
|
5069
|
+
/*#__PURE__*/
|
|
5070
|
+
function (_Component) {
|
|
5076
5071
|
_inherits(Twitch, _Component);
|
|
5077
5072
|
|
|
5078
|
-
var _super = _createSuper(Twitch);
|
|
5079
|
-
|
|
5080
5073
|
function Twitch() {
|
|
5074
|
+
var _getPrototypeOf2;
|
|
5075
|
+
|
|
5081
5076
|
var _this;
|
|
5082
5077
|
|
|
5083
5078
|
_classCallCheck(this, Twitch);
|
|
@@ -5086,7 +5081,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5086
5081
|
args[_key] = arguments[_key];
|
|
5087
5082
|
}
|
|
5088
5083
|
|
|
5089
|
-
_this =
|
|
5084
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5090
5085
|
|
|
5091
5086
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5092
5087
|
|
|
@@ -5207,7 +5202,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5207
5202
|
width: '100%',
|
|
5208
5203
|
height: '100%'
|
|
5209
5204
|
};
|
|
5210
|
-
return
|
|
5205
|
+
return _react["default"].createElement("div", {
|
|
5211
5206
|
style: style,
|
|
5212
5207
|
id: this.playerID
|
|
5213
5208
|
});
|
|
@@ -5242,7 +5237,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5242
5237
|
});
|
|
5243
5238
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5244
5239
|
|
|
5245
|
-
var _react = _interopRequireWildcard(
|
|
5240
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5246
5241
|
|
|
5247
5242
|
|
|
5248
5243
|
|
|
@@ -5260,15 +5255,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5260
5255
|
|
|
5261
5256
|
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; }
|
|
5262
5257
|
|
|
5263
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5264
|
-
|
|
5265
|
-
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."); }
|
|
5266
|
-
|
|
5267
|
-
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); }
|
|
5258
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5268
5259
|
|
|
5269
|
-
function
|
|
5260
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5270
5261
|
|
|
5271
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
5262
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
5272
5263
|
|
|
5273
5264
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5274
5265
|
|
|
@@ -5278,16 +5269,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5278
5269
|
|
|
5279
5270
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5280
5271
|
|
|
5281
|
-
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); }; }
|
|
5282
|
-
|
|
5283
5272
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5284
5273
|
|
|
5285
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5286
|
-
|
|
5287
|
-
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; } }
|
|
5288
|
-
|
|
5289
5274
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5290
5275
|
|
|
5276
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5277
|
+
|
|
5291
5278
|
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); }
|
|
5292
5279
|
|
|
5293
5280
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5299,12 +5286,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5299
5286
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5300
5287
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5301
5288
|
|
|
5302
|
-
var DailyMotion =
|
|
5289
|
+
var DailyMotion =
|
|
5290
|
+
/*#__PURE__*/
|
|
5291
|
+
function (_Component) {
|
|
5303
5292
|
_inherits(DailyMotion, _Component);
|
|
5304
5293
|
|
|
5305
|
-
var _super = _createSuper(DailyMotion);
|
|
5306
|
-
|
|
5307
5294
|
function DailyMotion() {
|
|
5295
|
+
var _getPrototypeOf2;
|
|
5296
|
+
|
|
5308
5297
|
var _this;
|
|
5309
5298
|
|
|
5310
5299
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5313,7 +5302,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5313
5302
|
args[_key] = arguments[_key];
|
|
5314
5303
|
}
|
|
5315
5304
|
|
|
5316
|
-
_this =
|
|
5305
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5317
5306
|
|
|
5318
5307
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5319
5308
|
|
|
@@ -5442,9 +5431,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5442
5431
|
height: '100%',
|
|
5443
5432
|
display: display
|
|
5444
5433
|
};
|
|
5445
|
-
return
|
|
5434
|
+
return _react["default"].createElement("div", {
|
|
5446
5435
|
style: style
|
|
5447
|
-
},
|
|
5436
|
+
}, _react["default"].createElement("div", {
|
|
5448
5437
|
ref: this.ref
|
|
5449
5438
|
}));
|
|
5450
5439
|
}
|
|
@@ -5478,7 +5467,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5478
5467
|
});
|
|
5479
5468
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5480
5469
|
|
|
5481
|
-
var _react = _interopRequireWildcard(
|
|
5470
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5482
5471
|
|
|
5483
5472
|
|
|
5484
5473
|
|
|
@@ -5502,16 +5491,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5502
5491
|
|
|
5503
5492
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5504
5493
|
|
|
5505
|
-
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); }; }
|
|
5506
|
-
|
|
5507
5494
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5508
5495
|
|
|
5509
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5510
|
-
|
|
5511
|
-
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; } }
|
|
5512
|
-
|
|
5513
5496
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5514
5497
|
|
|
5498
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5499
|
+
|
|
5515
5500
|
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); }
|
|
5516
5501
|
|
|
5517
5502
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5522,12 +5507,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5522
5507
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5523
5508
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5524
5509
|
|
|
5525
|
-
var Mixcloud =
|
|
5510
|
+
var Mixcloud =
|
|
5511
|
+
/*#__PURE__*/
|
|
5512
|
+
function (_Component) {
|
|
5526
5513
|
_inherits(Mixcloud, _Component);
|
|
5527
5514
|
|
|
5528
|
-
var _super = _createSuper(Mixcloud);
|
|
5529
|
-
|
|
5530
5515
|
function Mixcloud() {
|
|
5516
|
+
var _getPrototypeOf2;
|
|
5517
|
+
|
|
5531
5518
|
var _this;
|
|
5532
5519
|
|
|
5533
5520
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5536,7 +5523,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5536
5523
|
args[_key] = arguments[_key];
|
|
5537
5524
|
}
|
|
5538
5525
|
|
|
5539
|
-
_this =
|
|
5526
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5540
5527
|
|
|
5541
5528
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5542
5529
|
|
|
@@ -5639,7 +5626,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5639
5626
|
})); // We have to give the iframe a key here to prevent a
|
|
5640
5627
|
// weird dialog appearing when loading a new track
|
|
5641
5628
|
|
|
5642
|
-
return
|
|
5629
|
+
return _react["default"].createElement("iframe", {
|
|
5643
5630
|
key: id,
|
|
5644
5631
|
ref: this.ref,
|
|
5645
5632
|
style: style,
|
|
@@ -5677,7 +5664,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5677
5664
|
});
|
|
5678
5665
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5679
5666
|
|
|
5680
|
-
var _react = _interopRequireWildcard(
|
|
5667
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5681
5668
|
|
|
5682
5669
|
|
|
5683
5670
|
|
|
@@ -5699,33 +5686,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5699
5686
|
|
|
5700
5687
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5701
5688
|
|
|
5702
|
-
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); }; }
|
|
5703
|
-
|
|
5704
5689
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5705
5690
|
|
|
5706
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5707
|
-
|
|
5708
|
-
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; } }
|
|
5709
|
-
|
|
5710
5691
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5711
5692
|
|
|
5693
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5694
|
+
|
|
5712
5695
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
5713
5696
|
|
|
5714
5697
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5715
5698
|
|
|
5716
5699
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5717
5700
|
|
|
5718
|
-
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; } } }; }
|
|
5719
|
-
|
|
5720
|
-
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); }
|
|
5721
|
-
|
|
5722
|
-
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; }
|
|
5723
|
-
|
|
5724
5701
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5725
5702
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5726
5703
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5727
5704
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5728
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
5705
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5729
5706
|
var HLS_GLOBAL = 'Hls';
|
|
5730
5707
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5731
5708
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5734,11 +5711,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5734
5711
|
|
|
5735
5712
|
function canPlay(url) {
|
|
5736
5713
|
if (url instanceof Array) {
|
|
5737
|
-
var
|
|
5738
|
-
|
|
5714
|
+
var _iteratorNormalCompletion = true;
|
|
5715
|
+
var _didIteratorError = false;
|
|
5716
|
+
var _iteratorError = undefined;
|
|
5739
5717
|
|
|
5740
5718
|
try {
|
|
5741
|
-
for (_iterator.
|
|
5719
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5742
5720
|
var item = _step.value;
|
|
5743
5721
|
|
|
5744
5722
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5750,9 +5728,18 @@ function canPlay(url) {
|
|
|
5750
5728
|
}
|
|
5751
5729
|
}
|
|
5752
5730
|
} catch (err) {
|
|
5753
|
-
|
|
5731
|
+
_didIteratorError = true;
|
|
5732
|
+
_iteratorError = err;
|
|
5754
5733
|
} finally {
|
|
5755
|
-
|
|
5734
|
+
try {
|
|
5735
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5736
|
+
_iterator["return"]();
|
|
5737
|
+
}
|
|
5738
|
+
} finally {
|
|
5739
|
+
if (_didIteratorError) {
|
|
5740
|
+
throw _iteratorError;
|
|
5741
|
+
}
|
|
5742
|
+
}
|
|
5756
5743
|
}
|
|
5757
5744
|
|
|
5758
5745
|
return false;
|
|
@@ -5776,12 +5763,14 @@ function canEnablePIP(url) {
|
|
|
5776
5763
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5777
5764
|
}
|
|
5778
5765
|
|
|
5779
|
-
var FilePlayer =
|
|
5766
|
+
var FilePlayer =
|
|
5767
|
+
/*#__PURE__*/
|
|
5768
|
+
function (_Component) {
|
|
5780
5769
|
_inherits(FilePlayer, _Component);
|
|
5781
5770
|
|
|
5782
|
-
var _super = _createSuper(FilePlayer);
|
|
5783
|
-
|
|
5784
5771
|
function FilePlayer() {
|
|
5772
|
+
var _getPrototypeOf2;
|
|
5773
|
+
|
|
5785
5774
|
var _this;
|
|
5786
5775
|
|
|
5787
5776
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5790,7 +5779,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5790
5779
|
_args[_key] = arguments[_key];
|
|
5791
5780
|
}
|
|
5792
5781
|
|
|
5793
|
-
_this =
|
|
5782
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5794
5783
|
|
|
5795
5784
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5796
5785
|
var _this$props;
|
|
@@ -5877,19 +5866,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5877
5866
|
|
|
5878
5867
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
5879
5868
|
if (typeof source === 'string') {
|
|
5880
|
-
return
|
|
5869
|
+
return _react["default"].createElement("source", {
|
|
5881
5870
|
key: index,
|
|
5882
5871
|
src: source
|
|
5883
5872
|
});
|
|
5884
5873
|
}
|
|
5885
5874
|
|
|
5886
|
-
return
|
|
5875
|
+
return _react["default"].createElement("source", _extends({
|
|
5887
5876
|
key: index
|
|
5888
5877
|
}, source));
|
|
5889
5878
|
});
|
|
5890
5879
|
|
|
5891
5880
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
5892
|
-
return
|
|
5881
|
+
return _react["default"].createElement("track", _extends({
|
|
5893
5882
|
key: index
|
|
5894
5883
|
}, track));
|
|
5895
5884
|
});
|
|
@@ -5927,10 +5916,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5927
5916
|
key: "componentWillUnmount",
|
|
5928
5917
|
value: function componentWillUnmount() {
|
|
5929
5918
|
this.removeListeners(this.player);
|
|
5930
|
-
|
|
5931
|
-
if (this.hls) {
|
|
5932
|
-
this.hls.destroy();
|
|
5933
|
-
}
|
|
5934
5919
|
}
|
|
5935
5920
|
}, {
|
|
5936
5921
|
key: "addListeners",
|
|
@@ -6061,6 +6046,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6061
6046
|
value: function stop() {
|
|
6062
6047
|
this.player.removeAttribute('src');
|
|
6063
6048
|
|
|
6049
|
+
if (this.hls) {
|
|
6050
|
+
this.hls.destroy();
|
|
6051
|
+
}
|
|
6052
|
+
|
|
6064
6053
|
if (this.dash) {
|
|
6065
6054
|
this.dash.reset();
|
|
6066
6055
|
}
|
|
@@ -6172,7 +6161,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6172
6161
|
width: width === 'auto' ? width : '100%',
|
|
6173
6162
|
height: height === 'auto' ? height : '100%'
|
|
6174
6163
|
};
|
|
6175
|
-
return
|
|
6164
|
+
return _react["default"].createElement(Element, _extends({
|
|
6176
6165
|
ref: this.ref,
|
|
6177
6166
|
src: this.getSource(url),
|
|
6178
6167
|
style: style,
|
|
@@ -6244,7 +6233,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6244
6233
|
});
|
|
6245
6234
|
exports["default"] = void 0;
|
|
6246
6235
|
|
|
6247
|
-
var _react = _interopRequireWildcard(
|
|
6236
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6248
6237
|
|
|
6249
6238
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6250
6239
|
|
|
@@ -6262,16 +6251,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6262
6251
|
|
|
6263
6252
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6264
6253
|
|
|
6265
|
-
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); }; }
|
|
6266
|
-
|
|
6267
6254
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6268
6255
|
|
|
6269
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6270
|
-
|
|
6271
|
-
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; } }
|
|
6272
|
-
|
|
6273
6256
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6274
6257
|
|
|
6258
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6259
|
+
|
|
6275
6260
|
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); }
|
|
6276
6261
|
|
|
6277
6262
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6280,12 +6265,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6280
6265
|
|
|
6281
6266
|
var ICON_SIZE = '64px';
|
|
6282
6267
|
|
|
6283
|
-
var Preview =
|
|
6268
|
+
var Preview =
|
|
6269
|
+
/*#__PURE__*/
|
|
6270
|
+
function (_Component) {
|
|
6284
6271
|
_inherits(Preview, _Component);
|
|
6285
6272
|
|
|
6286
|
-
var _super = _createSuper(Preview);
|
|
6287
|
-
|
|
6288
6273
|
function Preview() {
|
|
6274
|
+
var _getPrototypeOf2;
|
|
6275
|
+
|
|
6289
6276
|
var _this;
|
|
6290
6277
|
|
|
6291
6278
|
_classCallCheck(this, Preview);
|
|
@@ -6294,7 +6281,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6294
6281
|
args[_key] = arguments[_key];
|
|
6295
6282
|
}
|
|
6296
6283
|
|
|
6297
|
-
_this =
|
|
6284
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6298
6285
|
|
|
6299
6286
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6300
6287
|
|
|
@@ -6392,15 +6379,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6392
6379
|
}
|
|
6393
6380
|
};
|
|
6394
6381
|
|
|
6395
|
-
var defaultPlayIcon =
|
|
6382
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6396
6383
|
style: styles.shadow,
|
|
6397
6384
|
className: "react-player__shadow"
|
|
6398
|
-
},
|
|
6385
|
+
}, _react["default"].createElement("div", {
|
|
6399
6386
|
style: styles.playIcon,
|
|
6400
6387
|
className: "react-player__play-icon"
|
|
6401
6388
|
}));
|
|
6402
6389
|
|
|
6403
|
-
return
|
|
6390
|
+
return _react["default"].createElement("div", {
|
|
6404
6391
|
style: styles.preview,
|
|
6405
6392
|
className: "react-player__preview",
|
|
6406
6393
|
onClick: onClick
|
|
@@ -6423,7 +6410,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6423
6410
|
});
|
|
6424
6411
|
exports["default"] = renderPreloadPlayers;
|
|
6425
6412
|
|
|
6426
|
-
var _react = _interopRequireDefault(
|
|
6413
|
+
var _react = _interopRequireDefault(React__default);
|
|
6427
6414
|
|
|
6428
6415
|
var _Player = _interopRequireDefault(Player_1);
|
|
6429
6416
|
|
|
@@ -6437,12 +6424,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6437
6424
|
|
|
6438
6425
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6439
6426
|
|
|
6440
|
-
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; } } }; }
|
|
6441
|
-
|
|
6442
|
-
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); }
|
|
6443
|
-
|
|
6444
|
-
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; }
|
|
6445
|
-
|
|
6446
6427
|
var PRELOAD_PLAYERS = [{
|
|
6447
6428
|
Player: YouTube_1.YouTube,
|
|
6448
6429
|
configKey: 'youtube',
|
|
@@ -6463,16 +6444,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6463
6444
|
|
|
6464
6445
|
function renderPreloadPlayers(url, controls, config) {
|
|
6465
6446
|
var players = [];
|
|
6466
|
-
|
|
6467
|
-
var
|
|
6468
|
-
|
|
6447
|
+
var _iteratorNormalCompletion = true;
|
|
6448
|
+
var _didIteratorError = false;
|
|
6449
|
+
var _iteratorError = undefined;
|
|
6469
6450
|
|
|
6470
6451
|
try {
|
|
6471
|
-
for (_iterator.
|
|
6452
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6472
6453
|
var player = _step.value;
|
|
6473
6454
|
|
|
6474
6455
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6475
|
-
players.push(
|
|
6456
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6476
6457
|
key: player.Player.displayName,
|
|
6477
6458
|
activePlayer: player.Player,
|
|
6478
6459
|
url: player.url,
|
|
@@ -6484,9 +6465,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6484
6465
|
}
|
|
6485
6466
|
}
|
|
6486
6467
|
} catch (err) {
|
|
6487
|
-
|
|
6468
|
+
_didIteratorError = true;
|
|
6469
|
+
_iteratorError = err;
|
|
6488
6470
|
} finally {
|
|
6489
|
-
|
|
6471
|
+
try {
|
|
6472
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6473
|
+
_iterator["return"]();
|
|
6474
|
+
}
|
|
6475
|
+
} finally {
|
|
6476
|
+
if (_didIteratorError) {
|
|
6477
|
+
throw _iteratorError;
|
|
6478
|
+
}
|
|
6479
|
+
}
|
|
6490
6480
|
}
|
|
6491
6481
|
|
|
6492
6482
|
return players;
|
|
@@ -6562,7 +6552,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6562
6552
|
});
|
|
6563
6553
|
exports["default"] = void 0;
|
|
6564
6554
|
|
|
6565
|
-
var _react = _interopRequireWildcard(
|
|
6555
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6566
6556
|
|
|
6567
6557
|
|
|
6568
6558
|
|
|
@@ -6610,17 +6600,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6610
6600
|
|
|
6611
6601
|
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); }
|
|
6612
6602
|
|
|
6613
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6614
|
-
|
|
6615
|
-
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."); }
|
|
6616
|
-
|
|
6617
|
-
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); }
|
|
6603
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6618
6604
|
|
|
6619
|
-
function
|
|
6605
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6620
6606
|
|
|
6621
|
-
function
|
|
6607
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6622
6608
|
|
|
6623
|
-
function
|
|
6609
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
|
|
6624
6610
|
|
|
6625
6611
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6626
6612
|
|
|
@@ -6628,16 +6614,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6628
6614
|
|
|
6629
6615
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6630
6616
|
|
|
6631
|
-
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); }; }
|
|
6632
|
-
|
|
6633
6617
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6634
6618
|
|
|
6635
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6636
|
-
|
|
6637
|
-
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; } }
|
|
6638
|
-
|
|
6639
6619
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6640
6620
|
|
|
6621
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6622
|
+
|
|
6641
6623
|
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); }
|
|
6642
6624
|
|
|
6643
6625
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6647,12 +6629,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6647
6629
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6648
6630
|
var customPlayers = [];
|
|
6649
6631
|
|
|
6650
|
-
var ReactPlayer =
|
|
6632
|
+
var ReactPlayer =
|
|
6633
|
+
/*#__PURE__*/
|
|
6634
|
+
function (_Component) {
|
|
6651
6635
|
_inherits(ReactPlayer, _Component);
|
|
6652
6636
|
|
|
6653
|
-
var _super = _createSuper(ReactPlayer);
|
|
6654
|
-
|
|
6655
6637
|
function ReactPlayer() {
|
|
6638
|
+
var _getPrototypeOf2;
|
|
6639
|
+
|
|
6656
6640
|
var _this;
|
|
6657
6641
|
|
|
6658
6642
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6661,7 +6645,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6661
6645
|
args[_key] = arguments[_key];
|
|
6662
6646
|
}
|
|
6663
6647
|
|
|
6664
|
-
_this =
|
|
6648
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6665
6649
|
|
|
6666
6650
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6667
6651
|
|
|
@@ -6772,7 +6756,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6772
6756
|
key: "renderActivePlayer",
|
|
6773
6757
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6774
6758
|
if (!url) return null;
|
|
6775
|
-
return
|
|
6759
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6776
6760
|
key: activePlayer.displayName,
|
|
6777
6761
|
ref: this.activePlayerRef,
|
|
6778
6762
|
config: this.config,
|
|
@@ -6809,14 +6793,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6809
6793
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6810
6794
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6811
6795
|
|
|
6812
|
-
var preview =
|
|
6796
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6813
6797
|
url: url,
|
|
6814
6798
|
light: light,
|
|
6815
6799
|
playIcon: playIcon,
|
|
6816
6800
|
onClick: this.handleClickPreview
|
|
6817
6801
|
});
|
|
6818
6802
|
|
|
6819
|
-
return
|
|
6803
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6820
6804
|
ref: this.wrapperRef,
|
|
6821
6805
|
style: _objectSpread({}, style, {
|
|
6822
6806
|
width: width,
|
|
@@ -6876,20 +6860,20 @@ var Audio = function Audio(_ref) {
|
|
|
6876
6860
|
var node = _ref.node;
|
|
6877
6861
|
|
|
6878
6862
|
if (node.uploadAudio) {
|
|
6879
|
-
return
|
|
6863
|
+
return React__default.createElement(
|
|
6880
6864
|
'div',
|
|
6881
6865
|
{ className: 'audio d-block text-center mb-3' },
|
|
6882
|
-
|
|
6866
|
+
React__default.createElement(
|
|
6883
6867
|
'audio',
|
|
6884
6868
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
6885
|
-
|
|
6886
|
-
|
|
6869
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
6870
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
6887
6871
|
'Your browser does not support the audio element.'
|
|
6888
6872
|
),
|
|
6889
|
-
node.caption &&
|
|
6873
|
+
node.caption && React__default.createElement(
|
|
6890
6874
|
'p',
|
|
6891
6875
|
{ style: { fontSize: '.9rem' } },
|
|
6892
|
-
|
|
6876
|
+
React__default.createElement(
|
|
6893
6877
|
'em',
|
|
6894
6878
|
null,
|
|
6895
6879
|
node.caption
|
|
@@ -6899,15 +6883,15 @@ var Audio = function Audio(_ref) {
|
|
|
6899
6883
|
} else if (node.audioFilePth) {
|
|
6900
6884
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
6901
6885
|
if (hostname === 'embeds.audioboom.com') {
|
|
6902
|
-
return
|
|
6886
|
+
return React__default.createElement(
|
|
6903
6887
|
'div',
|
|
6904
6888
|
null,
|
|
6905
|
-
|
|
6889
|
+
React__default.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
6906
6890
|
' ',
|
|
6907
|
-
node.caption &&
|
|
6891
|
+
node.caption && React__default.createElement(
|
|
6908
6892
|
'p',
|
|
6909
6893
|
{ style: { fontSize: '.9rem' } },
|
|
6910
|
-
|
|
6894
|
+
React__default.createElement(
|
|
6911
6895
|
'em',
|
|
6912
6896
|
null,
|
|
6913
6897
|
node.caption
|
|
@@ -6915,14 +6899,14 @@ var Audio = function Audio(_ref) {
|
|
|
6915
6899
|
)
|
|
6916
6900
|
);
|
|
6917
6901
|
}
|
|
6918
|
-
return
|
|
6902
|
+
return React__default.createElement(
|
|
6919
6903
|
'div',
|
|
6920
6904
|
{ className: 'audio' },
|
|
6921
|
-
|
|
6922
|
-
node.caption &&
|
|
6905
|
+
React__default.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
6906
|
+
node.caption && React__default.createElement(
|
|
6923
6907
|
'p',
|
|
6924
6908
|
{ style: { fontSize: '.9rem' } },
|
|
6925
|
-
|
|
6909
|
+
React__default.createElement(
|
|
6926
6910
|
'em',
|
|
6927
6911
|
null,
|
|
6928
6912
|
node.caption
|
|
@@ -7023,10 +7007,10 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
7023
7007
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
|
|
7024
7008
|
};
|
|
7025
7009
|
|
|
7026
|
-
return
|
|
7010
|
+
return React__default.createElement(
|
|
7027
7011
|
'div',
|
|
7028
7012
|
null,
|
|
7029
|
-
vidLoaded &&
|
|
7013
|
+
vidLoaded && React__default.createElement(
|
|
7030
7014
|
'video',
|
|
7031
7015
|
{
|
|
7032
7016
|
poster: thumbnail || '',
|
|
@@ -7044,7 +7028,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
7044
7028
|
onPlay: function onPlay(e) {
|
|
7045
7029
|
return handleOnPlay(e);
|
|
7046
7030
|
} },
|
|
7047
|
-
|
|
7031
|
+
React__default.createElement('source', { src: url, type: 'video/mp4' }),
|
|
7048
7032
|
'Your browser does not support the video tag.'
|
|
7049
7033
|
)
|
|
7050
7034
|
);
|
|
@@ -7305,13 +7289,13 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7305
7289
|
}
|
|
7306
7290
|
};
|
|
7307
7291
|
|
|
7308
|
-
return
|
|
7292
|
+
return React__default.createElement(
|
|
7309
7293
|
'div',
|
|
7310
7294
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7311
|
-
|
|
7295
|
+
React__default.createElement(
|
|
7312
7296
|
'div',
|
|
7313
7297
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7314
|
-
vidUrl && vidType == 'youtube' &&
|
|
7298
|
+
vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, {
|
|
7315
7299
|
className: 'fluid-iframe',
|
|
7316
7300
|
videoId: getYoutubeId(vidUrl),
|
|
7317
7301
|
opts: opts,
|
|
@@ -7322,10 +7306,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7322
7306
|
return handleOnEnd(e);
|
|
7323
7307
|
}
|
|
7324
7308
|
}),
|
|
7325
|
-
vidUrl && vidType == 'mp4' &&
|
|
7326
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7327
|
-
|
|
7328
|
-
series &&
|
|
7309
|
+
vidUrl && vidType == 'mp4' && React__default.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7310
|
+
vidUrl && vidType == 'brightcove' && React__default.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7311
|
+
React__default.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7312
|
+
series && React__default.createElement(
|
|
7329
7313
|
'div',
|
|
7330
7314
|
{
|
|
7331
7315
|
className: 'vid-series',
|
|
@@ -7335,10 +7319,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7335
7319
|
maxHeight: '100%',
|
|
7336
7320
|
paddingBottom: '0'
|
|
7337
7321
|
} },
|
|
7338
|
-
|
|
7322
|
+
React__default.createElement(
|
|
7339
7323
|
'p',
|
|
7340
7324
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7341
|
-
|
|
7325
|
+
React__default.createElement(
|
|
7342
7326
|
'b',
|
|
7343
7327
|
{ style: { fontSize: '1.25em' } },
|
|
7344
7328
|
'Now Playing:'
|
|
@@ -7346,27 +7330,27 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7346
7330
|
' ',
|
|
7347
7331
|
seriesData[series ? series - 1 : 0].title
|
|
7348
7332
|
),
|
|
7349
|
-
vidUrl &&
|
|
7333
|
+
vidUrl && React__default.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client })
|
|
7350
7334
|
)
|
|
7351
7335
|
),
|
|
7352
|
-
|
|
7353
|
-
|
|
7336
|
+
React__default.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7337
|
+
React__default.createElement(
|
|
7354
7338
|
'div',
|
|
7355
7339
|
{ className: 'mt-2 mb-5' },
|
|
7356
|
-
series &&
|
|
7340
|
+
series && React__default.createElement(
|
|
7357
7341
|
'h3',
|
|
7358
7342
|
null,
|
|
7359
7343
|
'Episode ',
|
|
7360
7344
|
series
|
|
7361
7345
|
),
|
|
7362
|
-
nodes.videos[series - 1] &&
|
|
7346
|
+
nodes.videos[series - 1] && React__default.createElement(
|
|
7363
7347
|
'h2',
|
|
7364
7348
|
{ className: 'mb-3' },
|
|
7365
7349
|
nodes.videos[series - 1].title
|
|
7366
7350
|
),
|
|
7367
|
-
nodes.videos[series - 1] && nodes.videos[series - 1].text &&
|
|
7351
|
+
nodes.videos[series - 1] && nodes.videos[series - 1].text && React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: nodes.videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7368
7352
|
),
|
|
7369
|
-
|
|
7353
|
+
React__default.createElement(
|
|
7370
7354
|
'style',
|
|
7371
7355
|
{ jsx: 'true' },
|
|
7372
7356
|
'\n \n #fluid-video-container > div {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n }\n #fluid-video-container .fluid-iframe {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100% !important;\n }\n\n span.btn {\n margin: 0 1rem;\n }\n \n \n '
|
|
@@ -7419,54 +7403,54 @@ var Poll = function Poll(_ref) {
|
|
|
7419
7403
|
return acc;
|
|
7420
7404
|
}
|
|
7421
7405
|
}, 0);
|
|
7422
|
-
return
|
|
7423
|
-
|
|
7406
|
+
return React__default.createElement(
|
|
7407
|
+
React__default.Fragment,
|
|
7424
7408
|
null,
|
|
7425
|
-
question &&
|
|
7409
|
+
question && React__default.createElement(
|
|
7426
7410
|
'p',
|
|
7427
7411
|
{ className: 'font-weight-bold' },
|
|
7428
7412
|
question
|
|
7429
7413
|
),
|
|
7430
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7414
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7431
7415
|
'form',
|
|
7432
7416
|
{ onSubmit: function onSubmit(e) {
|
|
7433
7417
|
return onSubmitPoll(e);
|
|
7434
7418
|
} },
|
|
7435
7419
|
choices && choices.map(function (choice) {
|
|
7436
|
-
return
|
|
7420
|
+
return React__default.createElement(
|
|
7437
7421
|
'div',
|
|
7438
7422
|
{ key: choice._key },
|
|
7439
|
-
|
|
7423
|
+
React__default.createElement(
|
|
7440
7424
|
'label',
|
|
7441
7425
|
{ className: 'pl-2' },
|
|
7442
|
-
|
|
7426
|
+
React__default.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7443
7427
|
return setSelectedChoice(e.target.value);
|
|
7444
7428
|
} }),
|
|
7445
7429
|
' ' + choice.choiceText
|
|
7446
7430
|
)
|
|
7447
7431
|
);
|
|
7448
7432
|
}),
|
|
7449
|
-
|
|
7433
|
+
React__default.createElement(
|
|
7450
7434
|
Button,
|
|
7451
7435
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7452
7436
|
'Vote'
|
|
7453
7437
|
)
|
|
7454
7438
|
),
|
|
7455
|
-
|
|
7439
|
+
React__default.createElement(
|
|
7456
7440
|
'div',
|
|
7457
7441
|
{ className: 'progress-container' },
|
|
7458
7442
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7459
7443
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7460
|
-
return
|
|
7444
|
+
return React__default.createElement(
|
|
7461
7445
|
'div',
|
|
7462
7446
|
{ key: choice._key, className: 'mb-3' },
|
|
7463
|
-
|
|
7447
|
+
React__default.createElement(
|
|
7464
7448
|
'span',
|
|
7465
7449
|
null,
|
|
7466
7450
|
choice.choiceText
|
|
7467
7451
|
),
|
|
7468
|
-
|
|
7469
|
-
|
|
7452
|
+
React__default.createElement(ProgressBar, { now: percentage }),
|
|
7453
|
+
React__default.createElement(
|
|
7470
7454
|
'span',
|
|
7471
7455
|
{ className: 'float-right' },
|
|
7472
7456
|
percentage,
|
|
@@ -7477,14 +7461,14 @@ var Poll = function Poll(_ref) {
|
|
|
7477
7461
|
);
|
|
7478
7462
|
})
|
|
7479
7463
|
),
|
|
7480
|
-
showAnswer &&
|
|
7464
|
+
showAnswer && React__default.createElement(
|
|
7481
7465
|
'h4',
|
|
7482
7466
|
{ className: 'text-center small p-3' },
|
|
7483
7467
|
'Total Votes: ',
|
|
7484
7468
|
choicesTotalCount
|
|
7485
7469
|
),
|
|
7486
|
-
showAnswer && response &&
|
|
7487
|
-
|
|
7470
|
+
showAnswer && response && React__default.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7471
|
+
React__default.createElement(
|
|
7488
7472
|
'style',
|
|
7489
7473
|
{ jsx: 'true' },
|
|
7490
7474
|
'\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7492,7 +7476,7 @@ var Poll = function Poll(_ref) {
|
|
|
7492
7476
|
);
|
|
7493
7477
|
};
|
|
7494
7478
|
|
|
7495
|
-
var numberOfPaginations =
|
|
7479
|
+
var numberOfPaginations = main_35 ? 4 : 10;
|
|
7496
7480
|
|
|
7497
7481
|
var Quiz = function Quiz(_ref) {
|
|
7498
7482
|
var quizzes = _ref.quizzes,
|
|
@@ -7603,20 +7587,20 @@ var Quiz = function Quiz(_ref) {
|
|
|
7603
7587
|
};
|
|
7604
7588
|
|
|
7605
7589
|
var renderPagination = function renderPagination() {
|
|
7606
|
-
return
|
|
7590
|
+
return React__default.createElement(
|
|
7607
7591
|
Pagination,
|
|
7608
|
-
{ className: 'p-0 m-0', size:
|
|
7609
|
-
|
|
7592
|
+
{ className: 'p-0 m-0', size: main_35 && 'sm' },
|
|
7593
|
+
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7610
7594
|
return changePage('first');
|
|
7611
7595
|
}, disabled: currentPage === 1 }),
|
|
7612
|
-
|
|
7596
|
+
React__default.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7613
7597
|
return changePage('prev');
|
|
7614
7598
|
}, disabled: currentPage === 1 }),
|
|
7615
|
-
|
|
7599
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7616
7600
|
return renderNewPages('prev');
|
|
7617
7601
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7618
7602
|
pages.map(function (page) {
|
|
7619
|
-
return
|
|
7603
|
+
return React__default.createElement(
|
|
7620
7604
|
Pagination.Item,
|
|
7621
7605
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7622
7606
|
return changePage(page);
|
|
@@ -7624,41 +7608,41 @@ var Quiz = function Quiz(_ref) {
|
|
|
7624
7608
|
page
|
|
7625
7609
|
);
|
|
7626
7610
|
}),
|
|
7627
|
-
|
|
7611
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7628
7612
|
return renderNewPages('next');
|
|
7629
7613
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7630
|
-
|
|
7614
|
+
React__default.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7631
7615
|
return changePage('next');
|
|
7632
7616
|
}, disabled: currentPage === pageCount }),
|
|
7633
|
-
|
|
7617
|
+
React__default.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7634
7618
|
return changePage('last');
|
|
7635
7619
|
}, disabled: currentPage === pageCount })
|
|
7636
7620
|
);
|
|
7637
7621
|
};
|
|
7638
7622
|
|
|
7639
|
-
return
|
|
7640
|
-
|
|
7623
|
+
return React__default.createElement(
|
|
7624
|
+
React__default.Fragment,
|
|
7641
7625
|
null,
|
|
7642
|
-
quizzes[currentPage - 1] &&
|
|
7643
|
-
!showAnswer &&
|
|
7626
|
+
quizzes[currentPage - 1] && React__default.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
7627
|
+
!showAnswer && React__default.createElement(
|
|
7644
7628
|
Button$1,
|
|
7645
7629
|
{ onClick: function onClick() {
|
|
7646
7630
|
return setShowAnswer(true);
|
|
7647
7631
|
}, variant: 'info', block: true },
|
|
7648
7632
|
'Please click here for answer'
|
|
7649
7633
|
),
|
|
7650
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
7651
|
-
|
|
7634
|
+
quizzes[currentPage - 1] && showAnswer && React__default.createElement(
|
|
7635
|
+
React__default.Fragment,
|
|
7652
7636
|
null,
|
|
7653
|
-
|
|
7637
|
+
React__default.createElement(
|
|
7654
7638
|
'h4',
|
|
7655
7639
|
null,
|
|
7656
7640
|
'Answer:'
|
|
7657
7641
|
),
|
|
7658
|
-
|
|
7642
|
+
React__default.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
7659
7643
|
),
|
|
7660
|
-
|
|
7661
|
-
pageCount > 1 &&
|
|
7644
|
+
React__default.createElement('br', null),
|
|
7645
|
+
pageCount > 1 && React__default.createElement(
|
|
7662
7646
|
'div',
|
|
7663
7647
|
{ className: 'd-flex justify-content-center' },
|
|
7664
7648
|
renderPagination()
|
|
@@ -7669,10 +7653,10 @@ var Quiz = function Quiz(_ref) {
|
|
|
7669
7653
|
var Leads = function Leads(_ref) {
|
|
7670
7654
|
var url = _ref.url;
|
|
7671
7655
|
|
|
7672
|
-
return
|
|
7656
|
+
return React__default.createElement(
|
|
7673
7657
|
'div',
|
|
7674
7658
|
{ className: 'd-block text-center mb-3' },
|
|
7675
|
-
url &&
|
|
7659
|
+
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
7676
7660
|
);
|
|
7677
7661
|
};
|
|
7678
7662
|
|
|
@@ -7716,42 +7700,42 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
7716
7700
|
router.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
7717
7701
|
};
|
|
7718
7702
|
|
|
7719
|
-
return
|
|
7703
|
+
return React__default.createElement(
|
|
7720
7704
|
'div',
|
|
7721
7705
|
{ className: 'mt-3 mb-4' },
|
|
7722
|
-
|
|
7706
|
+
React__default.createElement(
|
|
7723
7707
|
Carousel,
|
|
7724
7708
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
7725
7709
|
slides && slides.map(function (slide) {
|
|
7726
7710
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
7727
|
-
return
|
|
7711
|
+
return React__default.createElement(
|
|
7728
7712
|
Carousel.Item,
|
|
7729
7713
|
{ key: slide._key },
|
|
7730
|
-
|
|
7714
|
+
React__default.createElement(
|
|
7731
7715
|
'a',
|
|
7732
7716
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
7733
|
-
|
|
7717
|
+
React__default.createElement(
|
|
7734
7718
|
LazyLoad,
|
|
7735
7719
|
null,
|
|
7736
|
-
|
|
7720
|
+
React__default.createElement('img', { src: urlFor$1(slide.slideshowImage, client).url(), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
7737
7721
|
)
|
|
7738
7722
|
),
|
|
7739
|
-
|
|
7723
|
+
React__default.createElement(
|
|
7740
7724
|
'div',
|
|
7741
7725
|
{ className: 'p-2' },
|
|
7742
|
-
slide.slideshowImage.caption &&
|
|
7726
|
+
slide.slideshowImage.caption && React__default.createElement(
|
|
7743
7727
|
'h3',
|
|
7744
7728
|
{ style: { padding: '0px' } },
|
|
7745
7729
|
slide.slideshowImage.caption
|
|
7746
7730
|
),
|
|
7747
|
-
slide.description &&
|
|
7731
|
+
slide.description && React__default.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
7748
7732
|
)
|
|
7749
7733
|
);
|
|
7750
7734
|
}
|
|
7751
7735
|
return null;
|
|
7752
7736
|
})
|
|
7753
7737
|
),
|
|
7754
|
-
|
|
7738
|
+
React__default.createElement(
|
|
7755
7739
|
'style',
|
|
7756
7740
|
{ jsx: 'true' },
|
|
7757
7741
|
'\n .carousel-indicators {\n bottom: -2.5rem !important;\n }\n .carousel-indicators li {\n width: 20px;\n height: 20px;\n border-radius: 50% !important;\n background-color: var(--secondary);\n }\n .carousel-control-prev {\n justify-content: flex-start;\n }\n .carousel-control-next {\n justify-content: flex-end;\n }\n '
|
|
@@ -7770,10 +7754,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
7770
7754
|
sizes = _props$node.sizes,
|
|
7771
7755
|
sizeMapping = _props$node.sizeMapping;
|
|
7772
7756
|
|
|
7773
|
-
return
|
|
7757
|
+
return React__default.createElement(
|
|
7774
7758
|
'div',
|
|
7775
7759
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
7776
|
-
|
|
7760
|
+
React__default.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
7777
7761
|
);
|
|
7778
7762
|
};
|
|
7779
7763
|
|
|
@@ -7788,24 +7772,24 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
7788
7772
|
|
|
7789
7773
|
|
|
7790
7774
|
if (images && images.length > 0) {
|
|
7791
|
-
return
|
|
7775
|
+
return React__default.createElement(
|
|
7792
7776
|
'div',
|
|
7793
7777
|
{ className: 'multi-figure-container' },
|
|
7794
|
-
|
|
7778
|
+
React__default.createElement(
|
|
7795
7779
|
Row,
|
|
7796
7780
|
{ noGutters: true },
|
|
7797
7781
|
images.map(function (image, index) {
|
|
7798
|
-
return
|
|
7782
|
+
return React__default.createElement(
|
|
7799
7783
|
Col,
|
|
7800
7784
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
7801
|
-
|
|
7785
|
+
React__default.createElement(
|
|
7802
7786
|
'a',
|
|
7803
|
-
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
7804
|
-
|
|
7787
|
+
_extends$1({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
7788
|
+
React__default.createElement(
|
|
7805
7789
|
'div',
|
|
7806
7790
|
{ className: 'multi-figure-image-container' },
|
|
7807
|
-
|
|
7808
|
-
image.caption &&
|
|
7791
|
+
React__default.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor$2(image.asset, client).url(), alt: image.alt }),
|
|
7792
|
+
image.caption && React__default.createElement(
|
|
7809
7793
|
'span',
|
|
7810
7794
|
{ className: 'multi-figure-caption' },
|
|
7811
7795
|
image.caption
|
|
@@ -7815,7 +7799,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
7815
7799
|
);
|
|
7816
7800
|
})
|
|
7817
7801
|
),
|
|
7818
|
-
|
|
7802
|
+
React__default.createElement(
|
|
7819
7803
|
'style',
|
|
7820
7804
|
{ jsx: 'true' },
|
|
7821
7805
|
'\n .multi-figure-container {\n margin-bottom: 1rem;\n }\n .multi-figure-image {\n width: 100%;\n height: auto;\n object-fit: cover;\n }\n\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-figure-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-figure-image[images-count=\'4\'] {\n height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n height: 200px;\n }\n .multi-figure-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-figure-image[images-count=\'4\'] {\n height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n height: 300px;\n }\n }\n\n .multi-figure-caption {\n font-size: 90%;\n color: #6c757d;\n }\n '
|
|
@@ -7837,15 +7821,15 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
7837
7821
|
|
|
7838
7822
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
7839
7823
|
|
|
7840
|
-
return
|
|
7824
|
+
return React__default.createElement(
|
|
7841
7825
|
'div',
|
|
7842
7826
|
{ id: elementId },
|
|
7843
|
-
|
|
7827
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
7844
7828
|
);
|
|
7845
7829
|
};
|
|
7846
7830
|
|
|
7847
7831
|
var Figure = dynamic(function () {
|
|
7848
|
-
return import('./Figure-
|
|
7832
|
+
return import('./Figure-bc2b95d7.js');
|
|
7849
7833
|
}, { ssr: false });
|
|
7850
7834
|
|
|
7851
7835
|
var ScrollToElement = function ScrollToElement(elementId) {
|
|
@@ -7894,14 +7878,13 @@ var getSerializers = function getSerializers() {
|
|
|
7894
7878
|
pageview = props[1],
|
|
7895
7879
|
videoAccountIDs = props[2],
|
|
7896
7880
|
onVote = props[3],
|
|
7897
|
-
|
|
7898
|
-
|
|
7899
|
-
|
|
7900
|
-
_props$ = props[7],
|
|
7881
|
+
drupalLeadSettings = props[4],
|
|
7882
|
+
currentPage = props[5],
|
|
7883
|
+
_props$ = props[6],
|
|
7901
7884
|
autoplay = _props$ === undefined ? false : _props$,
|
|
7902
|
-
_props$2 = props[
|
|
7885
|
+
_props$2 = props[7],
|
|
7903
7886
|
contextualADFlag = _props$2 === undefined ? false : _props$2,
|
|
7904
|
-
articleId = props[
|
|
7887
|
+
articleId = props[8];
|
|
7905
7888
|
|
|
7906
7889
|
return {
|
|
7907
7890
|
types: {
|
|
@@ -7913,112 +7896,112 @@ var getSerializers = function getSerializers() {
|
|
|
7913
7896
|
var node = _ref.node;
|
|
7914
7897
|
var url = node.url;
|
|
7915
7898
|
|
|
7916
|
-
return
|
|
7899
|
+
return React__default.createElement(YouTubePlayer, { url: url });
|
|
7917
7900
|
},
|
|
7918
7901
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
7919
7902
|
var node = _ref2.node;
|
|
7920
7903
|
|
|
7921
|
-
return
|
|
7904
|
+
return React__default.createElement(YouTubeGallery, { nodes: node, accountIDs: videoAccountIDs || {}, client: client, getSerializers: getSerializers(client) });
|
|
7922
7905
|
},
|
|
7923
7906
|
figure: function figure(_ref3) {
|
|
7924
7907
|
var node = _ref3.node;
|
|
7925
7908
|
|
|
7926
|
-
return
|
|
7909
|
+
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag });
|
|
7927
7910
|
},
|
|
7928
7911
|
multifigure: function multifigure(_ref4) {
|
|
7929
7912
|
var node = _ref4.node;
|
|
7930
7913
|
|
|
7931
|
-
return
|
|
7914
|
+
return React__default.createElement(MultiFigure, { node: node, client: client });
|
|
7932
7915
|
},
|
|
7933
7916
|
slideshow: function slideshow(_ref5) {
|
|
7934
7917
|
var node = _ref5.node;
|
|
7935
7918
|
var slides = node.slides;
|
|
7936
7919
|
|
|
7937
|
-
return
|
|
7920
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
7938
7921
|
},
|
|
7939
7922
|
sidebar: function sidebar(_ref6) {
|
|
7940
7923
|
var node = _ref6.node;
|
|
7941
7924
|
var caption = node.caption,
|
|
7942
7925
|
content = node.content;
|
|
7943
7926
|
|
|
7944
|
-
return
|
|
7927
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
7945
7928
|
},
|
|
7946
7929
|
datatable: function datatable(_ref7) {
|
|
7947
7930
|
var node = _ref7.node;
|
|
7948
7931
|
var table = node.table;
|
|
7949
7932
|
|
|
7950
|
-
return
|
|
7933
|
+
return React__default.createElement(TableShow, { rows: table.rows });
|
|
7951
7934
|
},
|
|
7952
7935
|
media: function media(_ref8) {
|
|
7953
7936
|
var node = _ref8.node;
|
|
7954
7937
|
|
|
7955
|
-
return
|
|
7938
|
+
return React__default.createElement(Media, { node: node, client: client });
|
|
7956
7939
|
},
|
|
7957
7940
|
iframe: function iframe(_ref9) {
|
|
7958
7941
|
var node = _ref9.node;
|
|
7959
7942
|
|
|
7960
|
-
return
|
|
7943
|
+
return React__default.createElement(IFrame, { url: node.url });
|
|
7961
7944
|
},
|
|
7962
7945
|
video: function video(_ref10) {
|
|
7963
7946
|
var node = _ref10.node;
|
|
7964
7947
|
|
|
7965
|
-
return
|
|
7948
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {} });
|
|
7966
7949
|
},
|
|
7967
7950
|
audio: function audio(_ref11) {
|
|
7968
7951
|
var node = _ref11.node;
|
|
7969
7952
|
|
|
7970
|
-
return
|
|
7953
|
+
return React__default.createElement(Audio, { node: node });
|
|
7971
7954
|
},
|
|
7972
7955
|
poll: function poll(_ref12) {
|
|
7973
7956
|
var node = _ref12.node;
|
|
7974
7957
|
|
|
7975
|
-
return
|
|
7958
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, onVote: onVote, getSerializers: getSerializers(props) });
|
|
7976
7959
|
},
|
|
7977
7960
|
quiz: function quiz(_ref13) {
|
|
7978
7961
|
var node = _ref13.node;
|
|
7979
7962
|
var quizzes = node.quizzes;
|
|
7980
7963
|
|
|
7981
|
-
return
|
|
7964
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
7982
7965
|
},
|
|
7983
7966
|
leads: function leads(_ref14) {
|
|
7984
7967
|
var node = _ref14.node;
|
|
7985
7968
|
var leadID = node.leadID;
|
|
7986
7969
|
|
|
7987
7970
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
7988
|
-
return
|
|
7971
|
+
return React__default.createElement(Leads, { url: url });
|
|
7989
7972
|
},
|
|
7990
7973
|
slideshows: function slideshows(_ref15) {
|
|
7991
7974
|
var node = _ref15.node;
|
|
7992
7975
|
|
|
7993
|
-
return
|
|
7976
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
7994
7977
|
},
|
|
7995
7978
|
nativeAd: function nativeAd(_ref16) {
|
|
7996
7979
|
var node = _ref16.node;
|
|
7997
7980
|
|
|
7998
|
-
return
|
|
7981
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
7999
7982
|
},
|
|
8000
7983
|
html_anchor_links: function html_anchor_links(_ref17) {
|
|
8001
7984
|
var node = _ref17.node;
|
|
8002
7985
|
|
|
8003
|
-
return
|
|
7986
|
+
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
8004
7987
|
},
|
|
8005
7988
|
hrtag: function hrtag() {
|
|
8006
|
-
return
|
|
7989
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
8007
7990
|
},
|
|
8008
7991
|
brtag: function brtag() {
|
|
8009
|
-
return
|
|
7992
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
8010
7993
|
}
|
|
8011
7994
|
},
|
|
8012
7995
|
marks: {
|
|
8013
7996
|
superscript: function superscript(props) {
|
|
8014
|
-
return
|
|
7997
|
+
return React__default.createElement(
|
|
8015
7998
|
'sup',
|
|
8016
7999
|
null,
|
|
8017
8000
|
props.children
|
|
8018
8001
|
);
|
|
8019
8002
|
},
|
|
8020
8003
|
subscript: function subscript(props) {
|
|
8021
|
-
return
|
|
8004
|
+
return React__default.createElement(
|
|
8022
8005
|
'sub',
|
|
8023
8006
|
null,
|
|
8024
8007
|
props.children
|
|
@@ -8034,7 +8017,7 @@ var getSerializers = function getSerializers() {
|
|
|
8034
8017
|
if (href && href.charAt(0) === '#') {
|
|
8035
8018
|
var elementId = href.slice(1);
|
|
8036
8019
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
8037
|
-
return
|
|
8020
|
+
return React__default.createElement(
|
|
8038
8021
|
'a',
|
|
8039
8022
|
{ onClick: function onClick() {
|
|
8040
8023
|
return ScrollToElement(elementId);
|
|
@@ -8044,7 +8027,7 @@ var getSerializers = function getSerializers() {
|
|
|
8044
8027
|
}
|
|
8045
8028
|
|
|
8046
8029
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
8047
|
-
return
|
|
8030
|
+
return React__default.createElement(
|
|
8048
8031
|
'a',
|
|
8049
8032
|
{ href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
8050
8033
|
children
|
|
@@ -8052,7 +8035,7 @@ var getSerializers = function getSerializers() {
|
|
|
8052
8035
|
},
|
|
8053
8036
|
alignleft: function alignleft(_ref18) {
|
|
8054
8037
|
var children = _ref18.children;
|
|
8055
|
-
return
|
|
8038
|
+
return React__default.createElement(
|
|
8056
8039
|
'div',
|
|
8057
8040
|
{ style: { textAlign: 'left' } },
|
|
8058
8041
|
children
|
|
@@ -8060,7 +8043,7 @@ var getSerializers = function getSerializers() {
|
|
|
8060
8043
|
},
|
|
8061
8044
|
alignright: function alignright(_ref19) {
|
|
8062
8045
|
var children = _ref19.children;
|
|
8063
|
-
return
|
|
8046
|
+
return React__default.createElement(
|
|
8064
8047
|
'div',
|
|
8065
8048
|
{ style: { textAlign: 'right' } },
|
|
8066
8049
|
children
|
|
@@ -8068,7 +8051,7 @@ var getSerializers = function getSerializers() {
|
|
|
8068
8051
|
},
|
|
8069
8052
|
aligncenter: function aligncenter(_ref20) {
|
|
8070
8053
|
var children = _ref20.children;
|
|
8071
|
-
return
|
|
8054
|
+
return React__default.createElement(
|
|
8072
8055
|
'div',
|
|
8073
8056
|
{ style: { textAlign: 'center' } },
|
|
8074
8057
|
children
|
|
@@ -8076,7 +8059,7 @@ var getSerializers = function getSerializers() {
|
|
|
8076
8059
|
},
|
|
8077
8060
|
alignjustify: function alignjustify(_ref21) {
|
|
8078
8061
|
var children = _ref21.children;
|
|
8079
|
-
return
|
|
8062
|
+
return React__default.createElement(
|
|
8080
8063
|
'div',
|
|
8081
8064
|
{ style: { textAlign: 'justify' } },
|
|
8082
8065
|
children
|