@mjhls/mjh-framework 1.0.711-beta.2 → 1.0.711-cors-proxy
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/dist/cjs/AD.js +10 -9
- package/dist/cjs/AD300x250.js +10 -9
- package/dist/cjs/AD300x250x600.js +10 -9
- package/dist/cjs/AD728x90.js +11 -10
- package/dist/cjs/ADFloatingFooter.js +12 -11
- package/dist/cjs/ADFooter.js +9 -8
- package/dist/cjs/ADGutter.js +12 -11
- package/dist/cjs/{ADInfeed-5a561d7c.js → ADInfeed-71e2533d.js} +11 -9
- package/dist/cjs/ADSkyscraper.js +12 -11
- package/dist/cjs/ADSponsoredResources.js +12 -11
- package/dist/cjs/ADWebcast.js +12 -11
- package/dist/cjs/ADWelcome.js +16 -15
- package/dist/cjs/{ADlgInfeed-c50f81d4.js → ADlgInfeed-2c6a814f.js} +7 -6
- package/dist/cjs/AccordionPanel.js +24 -22
- package/dist/cjs/AdSlot.js +14 -13
- package/dist/cjs/AdSlotsProvider.js +7 -6
- package/dist/cjs/AlphabeticList.js +16 -15
- package/dist/cjs/ArticleCarousel.js +12 -12
- package/dist/cjs/ArticleSeriesListing.js +41 -41
- package/dist/cjs/Auth.js +232 -144
- package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-ac8972ce.js} +13 -12
- package/dist/cjs/{BlockContent-091a991f.js → BlockContent-8b494587.js} +25 -24
- package/dist/cjs/Breadcrumbs.js +23 -21
- package/dist/cjs/BrowseVideosListing.js +29 -29
- package/dist/cjs/CMEDeck.js +63 -63
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +22 -19
- package/dist/cjs/Column3.js +35 -32
- package/dist/cjs/ConferenceArticleCard.js +19 -18
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +77 -73
- package/dist/cjs/DeckQueue.js +73 -69
- package/dist/cjs/{Dfp-ce7ac168.js → Dfp-234d2d8e.js} +21 -20
- package/dist/cjs/EventsDeck.js +123 -116
- package/dist/cjs/ExternalResources.js +47 -47
- package/dist/cjs/Feature.js +26 -24
- package/dist/cjs/ForbesHero.js +34 -33
- package/dist/cjs/GridContent.js +153 -149
- package/dist/cjs/GridHero.js +35 -34
- package/dist/cjs/GroupDeck.js +43 -43
- package/dist/cjs/HamMagazine.js +119 -114
- package/dist/cjs/Header.js +13 -11
- package/dist/cjs/Hero.js +11 -10
- package/dist/cjs/HighlightenVideo.js +17 -16
- package/dist/cjs/HorizontalHero.js +25 -24
- package/dist/cjs/IssueContentDeck.js +70 -65
- package/dist/cjs/IssueDeck.js +65 -60
- package/dist/cjs/IssueLanding.js +19 -18
- package/dist/cjs/LeftNav.js +22 -20
- package/dist/cjs/MasterDeck.js +51 -50
- package/dist/cjs/NavDvm.js +68 -63
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +121 -116
- package/dist/cjs/NavNative.js +107 -99
- package/dist/cjs/NavNormal.js +41 -36
- package/dist/cjs/OncliveHero.js +18 -18
- package/dist/cjs/OncliveLargeHero.js +59 -58
- package/dist/cjs/PageFilter.js +9 -8
- package/dist/cjs/PartnerDetailListing.js +72 -72
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +15 -13
- package/dist/cjs/PublicationDeck.js +64 -59
- package/dist/cjs/PublicationLanding.js +64 -60
- package/dist/cjs/QueueDeckExpanded.js +270 -270
- package/dist/cjs/RecentNews.js +23 -22
- package/dist/cjs/RelatedContent.js +22 -21
- package/dist/cjs/RelatedTopicsDropdown.js +22 -19
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +16 -12
- package/dist/cjs/SideFooter.js +24 -23
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-8dd468fd.js → SocialSearchComponent-87578cd1.js} +38 -34
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +59 -54
- package/dist/cjs/TaxonomyDescription.js +23 -23
- package/dist/cjs/TemplateNormal.js +36 -35
- package/dist/cjs/ThumbnailCard.js +19 -17
- package/dist/cjs/Ustream.js +21 -20
- package/dist/cjs/VerticalHero.js +17 -16
- package/dist/cjs/VideoSeriesCard.js +24 -23
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesListing.js +56 -56
- package/dist/cjs/View.js +183 -180
- package/dist/cjs/YahooHero.js +30 -29
- package/dist/cjs/YoutubeGroup.js +51 -51
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-5c98aec7.js} +10 -8
- package/dist/cjs/getRelatedArticle.js +8 -8
- package/dist/cjs/getSerializers.js +12 -13
- package/dist/cjs/{getTargeting-9af0ef69.js → getTargeting-fee8c429.js} +2 -2
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-3294d3bc.js → index-6367b7bf.js} +16 -17
- package/dist/cjs/{index-da796b8c.js → index-8a3fb0bc.js} +12 -10
- package/dist/cjs/{index-9b8a57e5.js → index-ad961307.js} +811 -788
- package/dist/cjs/{index-be0c82be.js → index-b5eb3ff8.js} +20 -19
- package/dist/cjs/{index-8bf6c863.js → index-e08f00ce.js} +9 -8
- package/dist/cjs/{index.es-9110add6.js → index.es-f3e47207.js} +31 -12
- package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
- package/dist/cjs/{index.esm-66ffa47a.js → index.esm-3b9b8952.js} +4 -9
- package/dist/cjs/{index.esm-4d410430.js → index.esm-3ffa049c.js} +20 -20
- package/dist/cjs/{index.esm-90433435.js → index.esm-974f47d9.js} +6 -15
- package/dist/cjs/index.js +31 -37
- package/dist/cjs/{inherits-c9f99d47.js → inherits-87492b40.js} +1 -1
- package/dist/cjs/{lodash-fc2922d0.js → lodash-7fd85bcf.js} +71 -22
- package/dist/cjs/{main-02daeefe.js → main-7b5e57b0.js} +90 -54
- package/dist/cjs/{moment-575fe24c.js → moment-ca3bd9fb.js} +10 -8
- package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-07939b41.js} +12 -11
- package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-95231a70.js} +50 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{typeof-725500bc.js → typeof-9d7f610f.js} +1 -1
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{visibility-sensor-0c45a583.js → visibility-sensor-8b54af99.js} +7 -5
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +7 -7
- package/dist/esm/AD300x250x600.js +7 -7
- 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-d4c94a16.js → ADInfeed-73a22dad.js} +5 -5
- package/dist/esm/ADSkyscraper.js +9 -9
- package/dist/esm/ADSponsoredResources.js +9 -9
- package/dist/esm/ADWebcast.js +9 -9
- package/dist/esm/ADWelcome.js +13 -13
- package/dist/esm/{ADlgInfeed-5b170d9e.js → ADlgInfeed-e5c107b7.js} +4 -4
- package/dist/esm/AccordionPanel.js +17 -17
- package/dist/esm/AdSlot.js +5 -5
- package/dist/esm/AdSlotsProvider.js +4 -4
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +9 -10
- package/dist/esm/ArticleSeriesListing.js +35 -36
- package/dist/esm/Auth.js +209 -125
- package/dist/esm/{AuthorComponent-00f13201.js → AuthorComponent-23afa074.js} +10 -10
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-d05b5b23.js} +4 -4
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/BrowseVideosListing.js +26 -27
- package/dist/esm/CMEDeck.js +60 -60
- 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-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +54 -54
- package/dist/esm/DeckQueue.js +47 -47
- package/dist/esm/{Dfp-14e866d7.js → Dfp-f9463b48.js} +10 -10
- package/dist/esm/EventsDeck.js +66 -66
- package/dist/esm/ExternalResources.js +40 -41
- package/dist/esm/Feature.js +17 -17
- package/dist/esm/ForbesHero.js +28 -28
- package/dist/esm/GridContent.js +111 -111
- package/dist/esm/GridHero.js +29 -29
- package/dist/esm/GroupDeck.js +37 -38
- package/dist/esm/HamMagazine.js +86 -86
- 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/IssueContentDeck.js +41 -41
- 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 +44 -44
- package/dist/esm/NavDvm.js +43 -43
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +90 -90
- package/dist/esm/NavNative.js +72 -72
- package/dist/esm/NavNormal.js +21 -21
- package/dist/esm/OncliveHero.js +14 -15
- package/dist/esm/OncliveLargeHero.js +52 -52
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +67 -68
- 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 +35 -35
- package/dist/esm/QueueDeckExpanded.js +251 -251
- package/dist/esm/RecentNews.js +19 -19
- package/dist/esm/RelatedContent.js +17 -17
- 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 +19 -19
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-8ac29f4f.js → SocialSearchComponent-91c19daa.js} +25 -25
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +36 -36
- package/dist/esm/TaxonomyDescription.js +17 -18
- package/dist/esm/TemplateNormal.js +29 -29
- package/dist/esm/ThumbnailCard.js +10 -10
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoSeriesCard.js +17 -17
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesListing.js +49 -50
- package/dist/esm/View.js +158 -159
- package/dist/esm/YahooHero.js +25 -25
- package/dist/esm/YoutubeGroup.js +36 -37
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-4abff0b1.js} +7 -6
- package/dist/esm/getRelatedArticle.js +1 -1
- package/dist/esm/getSerializers.js +12 -13
- package/dist/esm/{index-4d1ed4ba.js → index-1a7c57c9.js} +748 -732
- package/dist/esm/{index-73819142.js → index-51a80699.js} +20 -19
- package/dist/esm/{index-a9e53f80.js → index-acfb8079.js} +3 -3
- package/dist/esm/{index-ef6d5dcf.js → index-c00b0bbb.js} +16 -17
- package/dist/esm/{index-5f9f807a.js → index-c5fd0af5.js} +4 -4
- package/dist/esm/{index.es-29c1cef5.js → index.es-c6222053.js} +28 -10
- package/dist/esm/{index.esm-29e48d38.js → index.esm-3fdda599.js} +6 -15
- package/dist/esm/{index.esm-fd746768.js → index.esm-8ee5ff72.js} +17 -18
- package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
- package/dist/esm/{index.esm-b08f4b04.js → index.esm-d6f88d94.js} +4 -9
- package/dist/esm/index.js +26 -30
- package/dist/esm/{inherits-7ee3e0c1.js → inherits-596840e8.js} +1 -1
- package/dist/esm/{lodash-17fdfebb.js → lodash-ec8c6b48.js} +71 -22
- package/dist/esm/{main-e4a934b2.js → main-747e7d25.js} +87 -52
- package/dist/esm/{moment-e2f9b20c.js → moment-b6f49411.js} +10 -8
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-3822f1ce.js} +5 -5
- package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-4b699764.js} +51 -2
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{typeof-08f2c380.js → typeof-ee095d0c.js} +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{visibility-sensor-0baa4eea.js → visibility-sensor-082c757b.js} +2 -2
- package/package.json +1 -1
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
- package/dist/cjs/VideoProgramLandingPage.js +0 -247
- package/dist/cjs/VideoSeriesLandingPage.js +0 -177
- package/dist/cjs/index-187c967e.js +0 -54
- package/dist/esm/VideoProgramLandingPage.js +0 -242
- package/dist/esm/VideoSeriesLandingPage.js +0 -172
- package/dist/esm/index-c7e2ac95.js +0 -52
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-725434a0.js';
|
|
3
|
-
import { _ as _extends
|
|
4
|
-
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-
|
|
5
|
-
import { _ as _typeof } from './typeof-
|
|
6
|
-
import
|
|
7
|
-
import { l as lib_3 } from './index-
|
|
3
|
+
import { _ as _extends } from './extends-cc5da797.js';
|
|
4
|
+
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-596840e8.js';
|
|
5
|
+
import { _ as _typeof$1 } from './typeof-ee095d0c.js';
|
|
6
|
+
import React, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
7
|
+
import { l as lib_3 } from './index-acfb8079.js';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
import Row from 'react-bootstrap/Row';
|
|
10
10
|
import Col from 'react-bootstrap/Col';
|
|
11
|
-
import { m as moment } from './moment-
|
|
11
|
+
import { m as moment } from './moment-b6f49411.js';
|
|
12
12
|
import Router, { useRouter } from 'next/router';
|
|
13
|
-
import { i as imageUrlBuilder } from './index-
|
|
14
|
-
import { L as LazyLoad } from './index-
|
|
15
|
-
import { d as main_16, b as
|
|
13
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
14
|
+
import { L as LazyLoad } from './index-c5fd0af5.js';
|
|
15
|
+
import { d as main_16, b as main_39, m as main_40 } from './main-747e7d25.js';
|
|
16
16
|
import { h as html_decode_1 } from './entities-7cc3bf45.js';
|
|
17
17
|
import { _ as _slicedToArray } from './slicedToArray-7021e5df.js';
|
|
18
18
|
import Segment from './Segment.js';
|
|
19
19
|
import Beam from './Beam.js';
|
|
20
20
|
import DFPAdSlot from './AdSlot.js';
|
|
21
|
-
import { B as BlockContent } from './BlockContent-
|
|
22
|
-
import { g as getYoutubeId } from './
|
|
21
|
+
import { B as BlockContent } from './BlockContent-d05b5b23.js';
|
|
22
|
+
import { g as getYoutubeId } from './smoothscroll-4b699764.js';
|
|
23
23
|
import GroupDeck from './GroupDeck.js';
|
|
24
24
|
import { Carousel, Table, Figure as Figure$1, Button, ProgressBar, Card, Row as Row$1, Col as Col$1 } from 'react-bootstrap';
|
|
25
|
-
import { d as IoIosArrowDropupCircle } from './index.esm-
|
|
25
|
+
import { d as IoIosArrowDropupCircle } from './index.esm-3fdda599.js';
|
|
26
26
|
import Button$1 from 'react-bootstrap/Button';
|
|
27
27
|
import { u as util } from './util-7700fc59.js';
|
|
28
|
-
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-
|
|
28
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-4abff0b1.js';
|
|
29
29
|
import Pagination from 'react-bootstrap/Pagination';
|
|
30
30
|
import Head from 'next/head';
|
|
31
|
-
import Figure$
|
|
31
|
+
import Figure$2 from 'react-bootstrap/Figure';
|
|
32
32
|
|
|
33
33
|
var urlFor = function urlFor(source, builder) {
|
|
34
34
|
return builder.image(source).auto('format');
|
|
@@ -69,20 +69,20 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
69
69
|
if (pageview) pageview(router.asPath);
|
|
70
70
|
}, [router]);
|
|
71
71
|
|
|
72
|
-
return
|
|
72
|
+
return React.createElement(
|
|
73
73
|
'div',
|
|
74
74
|
{ className: 'mt-3 mb-3' },
|
|
75
|
-
|
|
75
|
+
React.createElement(
|
|
76
76
|
Carousel,
|
|
77
77
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
78
78
|
return onChangeSlide(selectedIndex, router);
|
|
79
79
|
}, interval: null },
|
|
80
80
|
slides && slides.map(function (slide) {
|
|
81
|
-
return
|
|
81
|
+
return React.createElement(
|
|
82
82
|
Carousel.Item,
|
|
83
83
|
{ key: slide._key },
|
|
84
|
-
|
|
85
|
-
slide.caption &&
|
|
84
|
+
React.createElement('img', { src: slide.asset && urlFor(slide.asset, builder).url(), alt: slide.alt && slide.alt, style: { width: '100%' } }),
|
|
85
|
+
slide.caption && React.createElement(
|
|
86
86
|
'p',
|
|
87
87
|
{ className: 'p-2' },
|
|
88
88
|
slide.caption
|
|
@@ -93,21 +93,18 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
93
93
|
);
|
|
94
94
|
};
|
|
95
95
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
// do not edit .js files directly - edit src/index.jst
|
|
97
|
+
|
|
98
|
+
|
|
99
99
|
|
|
100
100
|
var fastDeepEqual = function equal(a, b) {
|
|
101
101
|
if (a === b) return true;
|
|
102
102
|
|
|
103
103
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
104
|
-
|
|
105
|
-
, arrB = isArray(b)
|
|
106
|
-
, i
|
|
107
|
-
, length
|
|
108
|
-
, key;
|
|
104
|
+
if (a.constructor !== b.constructor) return false;
|
|
109
105
|
|
|
110
|
-
|
|
106
|
+
var length, i, keys;
|
|
107
|
+
if (Array.isArray(a)) {
|
|
111
108
|
length = a.length;
|
|
112
109
|
if (length != b.length) return false;
|
|
113
110
|
for (i = length; i-- !== 0;)
|
|
@@ -115,35 +112,29 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
115
112
|
return true;
|
|
116
113
|
}
|
|
117
114
|
|
|
118
|
-
if (arrA != arrB) return false;
|
|
119
115
|
|
|
120
|
-
var dateA = a instanceof Date
|
|
121
|
-
, dateB = b instanceof Date;
|
|
122
|
-
if (dateA != dateB) return false;
|
|
123
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
124
116
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
if (
|
|
128
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
117
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
118
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
119
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
129
120
|
|
|
130
|
-
|
|
121
|
+
keys = Object.keys(a);
|
|
131
122
|
length = keys.length;
|
|
132
|
-
|
|
133
|
-
if (length !== keyList(b).length)
|
|
134
|
-
return false;
|
|
123
|
+
if (length !== Object.keys(b).length) return false;
|
|
135
124
|
|
|
136
125
|
for (i = length; i-- !== 0;)
|
|
137
|
-
if (!
|
|
126
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
138
127
|
|
|
139
128
|
for (i = length; i-- !== 0;) {
|
|
140
|
-
key = keys[i];
|
|
129
|
+
var key = keys[i];
|
|
130
|
+
|
|
141
131
|
if (!equal(a[key], b[key])) return false;
|
|
142
132
|
}
|
|
143
133
|
|
|
144
134
|
return true;
|
|
145
135
|
}
|
|
146
136
|
|
|
137
|
+
// true if both NaN, false otherwise
|
|
147
138
|
return a!==a && b!==b;
|
|
148
139
|
};
|
|
149
140
|
|
|
@@ -1566,199 +1557,239 @@ module.exports = exports['default'];
|
|
|
1566
1557
|
|
|
1567
1558
|
var youTubePlayer = unwrapExports(dist);
|
|
1568
1559
|
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
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; };
|
|
1560
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
1572
1561
|
|
|
1573
1562
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1574
1563
|
|
|
1575
|
-
function
|
|
1564
|
+
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); } }
|
|
1565
|
+
|
|
1566
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1567
|
+
|
|
1568
|
+
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); }
|
|
1569
|
+
|
|
1570
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1571
|
+
|
|
1572
|
+
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); }; }
|
|
1573
|
+
|
|
1574
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1575
|
+
|
|
1576
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1577
|
+
|
|
1578
|
+
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; } }
|
|
1579
|
+
|
|
1580
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1581
|
+
|
|
1582
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
1576
1583
|
|
|
1577
|
-
function
|
|
1584
|
+
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; }
|
|
1578
1585
|
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
*
|
|
1582
|
-
*
|
|
1583
|
-
* @param {Object}
|
|
1586
|
+
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; }
|
|
1587
|
+
/**
|
|
1588
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1589
|
+
*
|
|
1590
|
+
* @param {Object} prevProps
|
|
1591
|
+
* @param {Object} props
|
|
1584
1592
|
*/
|
|
1593
|
+
|
|
1585
1594
|
function shouldUpdateVideo(prevProps, props) {
|
|
1586
1595
|
// A changing video should always trigger an update
|
|
1587
1596
|
if (prevProps.videoId !== props.videoId) {
|
|
1588
1597
|
return true;
|
|
1589
|
-
}
|
|
1590
|
-
|
|
1591
|
-
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1598
|
+
} // Otherwise, a change in the start/end time playerVars also requires a player
|
|
1592
1599
|
// update.
|
|
1600
|
+
|
|
1601
|
+
|
|
1593
1602
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1594
1603
|
var vars = props.opts.playerVars || {};
|
|
1595
|
-
|
|
1596
1604
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1597
1605
|
}
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
*
|
|
1601
|
-
*
|
|
1602
|
-
*
|
|
1603
|
-
*
|
|
1604
|
-
* @param {Object} opts
|
|
1606
|
+
/**
|
|
1607
|
+
* Neutralize API options that only require a video update, leaving only options
|
|
1608
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1609
|
+
* player reset is necessary.
|
|
1610
|
+
*
|
|
1611
|
+
* @param {Object} opts
|
|
1605
1612
|
*/
|
|
1613
|
+
|
|
1614
|
+
|
|
1606
1615
|
function filterResetOptions(opts) {
|
|
1607
|
-
return
|
|
1608
|
-
playerVars:
|
|
1616
|
+
return _objectSpread(_objectSpread({}, opts), {}, {
|
|
1617
|
+
playerVars: _objectSpread({
|
|
1609
1618
|
autoplay: 0,
|
|
1610
1619
|
start: 0,
|
|
1611
1620
|
end: 0
|
|
1612
|
-
})
|
|
1621
|
+
}, opts.playerVars)
|
|
1613
1622
|
});
|
|
1614
1623
|
}
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
*
|
|
1618
|
-
*
|
|
1619
|
-
*
|
|
1620
|
-
*
|
|
1621
|
-
*
|
|
1622
|
-
* @param {Object}
|
|
1623
|
-
* @param {Object} props
|
|
1624
|
+
/**
|
|
1625
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1626
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1627
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1628
|
+
* those.
|
|
1629
|
+
*
|
|
1630
|
+
* @param {Object} prevProps
|
|
1631
|
+
* @param {Object} props
|
|
1624
1632
|
*/
|
|
1633
|
+
|
|
1634
|
+
|
|
1625
1635
|
function shouldResetPlayer(prevProps, props) {
|
|
1626
1636
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1627
1637
|
}
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
*
|
|
1631
|
-
*
|
|
1632
|
-
* @param {Object}
|
|
1633
|
-
* @param {Object} props
|
|
1638
|
+
/**
|
|
1639
|
+
* Check whether a props change should result in an id or className update.
|
|
1640
|
+
*
|
|
1641
|
+
* @param {Object} prevProps
|
|
1642
|
+
* @param {Object} props
|
|
1634
1643
|
*/
|
|
1644
|
+
|
|
1645
|
+
|
|
1635
1646
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1636
1647
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1637
1648
|
}
|
|
1638
1649
|
|
|
1639
|
-
var YouTube = function (_React$Component) {
|
|
1650
|
+
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
1640
1651
|
_inherits(YouTube, _React$Component);
|
|
1641
1652
|
|
|
1653
|
+
var _super = _createSuper(YouTube);
|
|
1654
|
+
|
|
1655
|
+
/**
|
|
1656
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1657
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1658
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1659
|
+
*/
|
|
1642
1660
|
function YouTube(props) {
|
|
1661
|
+
var _this;
|
|
1662
|
+
|
|
1643
1663
|
_classCallCheck(this, YouTube);
|
|
1644
1664
|
|
|
1645
|
-
|
|
1665
|
+
_this = _super.call(this, props);
|
|
1646
1666
|
|
|
1647
|
-
_this
|
|
1667
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
|
|
1648
1668
|
return _this.props.onReady(event);
|
|
1649
|
-
};
|
|
1669
|
+
});
|
|
1650
1670
|
|
|
1651
|
-
_this
|
|
1671
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
|
|
1652
1672
|
return _this.props.onError(event);
|
|
1653
|
-
};
|
|
1673
|
+
});
|
|
1654
1674
|
|
|
1655
|
-
_this
|
|
1675
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
|
|
1656
1676
|
_this.props.onStateChange(event);
|
|
1657
|
-
switch (event.data) {
|
|
1658
1677
|
|
|
1678
|
+
switch (event.data) {
|
|
1659
1679
|
case YouTube.PlayerState.ENDED:
|
|
1660
1680
|
_this.props.onEnd(event);
|
|
1681
|
+
|
|
1661
1682
|
break;
|
|
1662
1683
|
|
|
1663
1684
|
case YouTube.PlayerState.PLAYING:
|
|
1664
1685
|
_this.props.onPlay(event);
|
|
1686
|
+
|
|
1665
1687
|
break;
|
|
1666
1688
|
|
|
1667
1689
|
case YouTube.PlayerState.PAUSED:
|
|
1668
1690
|
_this.props.onPause(event);
|
|
1691
|
+
|
|
1669
1692
|
break;
|
|
1670
1693
|
}
|
|
1671
|
-
};
|
|
1694
|
+
});
|
|
1672
1695
|
|
|
1673
|
-
_this
|
|
1696
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
|
|
1674
1697
|
return _this.props.onPlaybackRateChange(event);
|
|
1675
|
-
};
|
|
1698
|
+
});
|
|
1676
1699
|
|
|
1677
|
-
_this
|
|
1700
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
|
|
1678
1701
|
return _this.props.onPlaybackQualityChange(event);
|
|
1679
|
-
};
|
|
1702
|
+
});
|
|
1680
1703
|
|
|
1681
|
-
_this
|
|
1704
|
+
_defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
|
|
1682
1705
|
// do not attempt to create a player server-side, it won't work
|
|
1683
|
-
if (typeof document === 'undefined') return;
|
|
1684
|
-
|
|
1685
|
-
var playerOpts =
|
|
1706
|
+
if (typeof document === 'undefined') return; // create player
|
|
1707
|
+
|
|
1708
|
+
var playerOpts = _objectSpread(_objectSpread({}, _this.props.opts), {}, {
|
|
1686
1709
|
// preload the `videoId` video if one is already given
|
|
1687
1710
|
videoId: _this.props.videoId
|
|
1688
1711
|
});
|
|
1689
|
-
|
|
1690
|
-
// attach event handlers
|
|
1712
|
+
|
|
1713
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
|
|
1714
|
+
|
|
1691
1715
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1716
|
+
|
|
1692
1717
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1718
|
+
|
|
1693
1719
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1720
|
+
|
|
1694
1721
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1722
|
+
|
|
1695
1723
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1696
|
-
};
|
|
1724
|
+
});
|
|
1697
1725
|
|
|
1698
|
-
_this
|
|
1726
|
+
_defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
|
|
1699
1727
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1700
|
-
};
|
|
1728
|
+
});
|
|
1701
1729
|
|
|
1702
|
-
_this
|
|
1730
|
+
_defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
|
|
1703
1731
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1704
1732
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1705
1733
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1706
1734
|
});
|
|
1707
|
-
};
|
|
1735
|
+
});
|
|
1736
|
+
|
|
1737
|
+
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1738
|
+
return _this.internalPlayer;
|
|
1739
|
+
});
|
|
1708
1740
|
|
|
1709
|
-
_this
|
|
1741
|
+
_defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
|
|
1710
1742
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1711
1743
|
_this.internalPlayer.stopVideo();
|
|
1744
|
+
|
|
1712
1745
|
return;
|
|
1713
|
-
}
|
|
1746
|
+
} // set queueing options
|
|
1747
|
+
|
|
1714
1748
|
|
|
1715
|
-
// set queueing options
|
|
1716
1749
|
var autoplay = false;
|
|
1717
1750
|
var opts = {
|
|
1718
1751
|
videoId: _this.props.videoId
|
|
1719
1752
|
};
|
|
1753
|
+
|
|
1720
1754
|
if ('playerVars' in _this.props.opts) {
|
|
1721
1755
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1756
|
+
|
|
1722
1757
|
if ('start' in _this.props.opts.playerVars) {
|
|
1723
1758
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1724
1759
|
}
|
|
1760
|
+
|
|
1725
1761
|
if ('end' in _this.props.opts.playerVars) {
|
|
1726
1762
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1727
1763
|
}
|
|
1728
|
-
}
|
|
1764
|
+
} // if autoplay is enabled loadVideoById
|
|
1765
|
+
|
|
1729
1766
|
|
|
1730
|
-
// if autoplay is enabled loadVideoById
|
|
1731
1767
|
if (autoplay) {
|
|
1732
1768
|
_this.internalPlayer.loadVideoById(opts);
|
|
1769
|
+
|
|
1733
1770
|
return;
|
|
1734
|
-
}
|
|
1735
|
-
|
|
1771
|
+
} // default behaviour just cues the video
|
|
1772
|
+
|
|
1773
|
+
|
|
1736
1774
|
_this.internalPlayer.cueVideoById(opts);
|
|
1737
|
-
};
|
|
1775
|
+
});
|
|
1738
1776
|
|
|
1739
|
-
_this
|
|
1777
|
+
_defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
|
|
1740
1778
|
_this.container = container;
|
|
1741
|
-
};
|
|
1779
|
+
});
|
|
1742
1780
|
|
|
1743
1781
|
_this.container = null;
|
|
1744
1782
|
_this.internalPlayer = null;
|
|
1745
1783
|
return _this;
|
|
1746
1784
|
}
|
|
1747
1785
|
|
|
1748
|
-
/**
|
|
1749
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1750
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1751
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1752
|
-
*/
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
1786
|
_createClass(YouTube, [{
|
|
1756
|
-
key:
|
|
1787
|
+
key: "componentDidMount",
|
|
1757
1788
|
value: function componentDidMount() {
|
|
1758
1789
|
this.createPlayer();
|
|
1759
1790
|
}
|
|
1760
1791
|
}, {
|
|
1761
|
-
key:
|
|
1792
|
+
key: "componentDidUpdate",
|
|
1762
1793
|
value: function componentDidUpdate(prevProps) {
|
|
1763
1794
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1764
1795
|
this.updatePlayer();
|
|
@@ -1773,112 +1804,58 @@ var YouTube = function (_React$Component) {
|
|
|
1773
1804
|
}
|
|
1774
1805
|
}
|
|
1775
1806
|
}, {
|
|
1776
|
-
key:
|
|
1807
|
+
key: "componentWillUnmount",
|
|
1777
1808
|
value: function componentWillUnmount() {
|
|
1778
|
-
/**
|
|
1779
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1780
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1781
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1782
|
-
* this method isn't quick enough to reset the container element.
|
|
1809
|
+
/**
|
|
1810
|
+
* Note: The `youtube-player` package that is used promisifies all YouTube
|
|
1811
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1812
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1813
|
+
* this method isn't quick enough to reset the container element.
|
|
1783
1814
|
*/
|
|
1784
1815
|
this.internalPlayer.destroy();
|
|
1785
1816
|
}
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
*
|
|
1789
|
-
*
|
|
1790
|
-
*
|
|
1791
|
-
* @param {Object} target - player object
|
|
1792
|
-
*/
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
/**
|
|
1796
|
-
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1797
|
-
*
|
|
1798
|
-
* @param {Object} event
|
|
1799
|
-
* @param {Integer} data - error type
|
|
1800
|
-
* @param {Object} target - player object
|
|
1801
|
-
*/
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
/**
|
|
1805
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1806
|
-
*
|
|
1807
|
-
* @param {Object} event
|
|
1808
|
-
* @param {Integer} data - status change type
|
|
1809
|
-
* @param {Object} target - actual YT player
|
|
1810
|
-
*/
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
/**
|
|
1814
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1815
|
-
*
|
|
1816
|
-
* @param {Object} event
|
|
1817
|
-
* @param {Float} data - playback rate
|
|
1818
|
-
* @param {Object} target - actual YT player
|
|
1819
|
-
*/
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
/**
|
|
1823
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1824
|
-
*
|
|
1825
|
-
* @param {Object} event
|
|
1826
|
-
* @param {String} data - playback quality
|
|
1827
|
-
* @param {Object} target - actual YT player
|
|
1828
|
-
*/
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
/**
|
|
1832
|
-
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1833
|
-
*/
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
/**
|
|
1837
|
-
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1838
|
-
*/
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
/**
|
|
1842
|
-
* Method to update the id and class of the Youtube Player iframe.
|
|
1843
|
-
* React should update this automatically but since the Youtube Player API
|
|
1844
|
-
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1845
|
-
*/
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
/**
|
|
1849
|
-
* Call Youtube Player API methods to update the currently playing video.
|
|
1850
|
-
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1851
|
-
* Youtube Player API methods to update the video.
|
|
1817
|
+
/**
|
|
1818
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1819
|
+
*
|
|
1820
|
+
* @param {Object} event
|
|
1821
|
+
* @param {Object} target - player object
|
|
1852
1822
|
*/
|
|
1853
1823
|
|
|
1854
1824
|
}, {
|
|
1855
|
-
key:
|
|
1825
|
+
key: "render",
|
|
1856
1826
|
value: function render() {
|
|
1857
|
-
return
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1827
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1828
|
+
className: this.props.containerClassName
|
|
1829
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1830
|
+
id: this.props.id,
|
|
1831
|
+
className: this.props.className,
|
|
1832
|
+
ref: this.refContainer
|
|
1833
|
+
}));
|
|
1862
1834
|
}
|
|
1863
1835
|
}]);
|
|
1864
1836
|
|
|
1865
1837
|
return YouTube;
|
|
1866
|
-
}(
|
|
1838
|
+
}(React.Component);
|
|
1839
|
+
|
|
1840
|
+
_defineProperty(YouTube, "PlayerState", {
|
|
1841
|
+
UNSTARTED: -1,
|
|
1842
|
+
ENDED: 0,
|
|
1843
|
+
PLAYING: 1,
|
|
1844
|
+
PAUSED: 2,
|
|
1845
|
+
BUFFERING: 3,
|
|
1846
|
+
CUED: 5
|
|
1847
|
+
});
|
|
1867
1848
|
|
|
1868
1849
|
YouTube.propTypes = {
|
|
1869
1850
|
videoId: PropTypes.string,
|
|
1870
|
-
|
|
1871
1851
|
// custom ID for player element
|
|
1872
1852
|
id: PropTypes.string,
|
|
1873
|
-
|
|
1874
1853
|
// custom class name for player element
|
|
1875
1854
|
className: PropTypes.string,
|
|
1876
1855
|
// custom class name for player container element
|
|
1877
1856
|
containerClassName: PropTypes.string,
|
|
1878
|
-
|
|
1879
1857
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1880
1858
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1881
|
-
|
|
1882
1859
|
// event subscriptions
|
|
1883
1860
|
onReady: PropTypes.func,
|
|
1884
1861
|
onError: PropTypes.func,
|
|
@@ -1890,6 +1867,7 @@ YouTube.propTypes = {
|
|
|
1890
1867
|
onPlaybackQualityChange: PropTypes.func
|
|
1891
1868
|
};
|
|
1892
1869
|
YouTube.defaultProps = {
|
|
1870
|
+
videoId: null,
|
|
1893
1871
|
id: null,
|
|
1894
1872
|
className: null,
|
|
1895
1873
|
opts: {},
|
|
@@ -1903,14 +1881,6 @@ YouTube.defaultProps = {
|
|
|
1903
1881
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1904
1882
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1905
1883
|
};
|
|
1906
|
-
YouTube.PlayerState = {
|
|
1907
|
-
UNSTARTED: -1,
|
|
1908
|
-
ENDED: 0,
|
|
1909
|
-
PLAYING: 1,
|
|
1910
|
-
PAUSED: 2,
|
|
1911
|
-
BUFFERING: 3,
|
|
1912
|
-
CUED: 5
|
|
1913
|
-
};
|
|
1914
1884
|
|
|
1915
1885
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1916
1886
|
var url = _ref.url;
|
|
@@ -2010,11 +1980,11 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
2010
1980
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
2011
1981
|
};
|
|
2012
1982
|
|
|
2013
|
-
return
|
|
1983
|
+
return React.createElement(
|
|
2014
1984
|
'div',
|
|
2015
1985
|
{ id: 'fluid-video-container' },
|
|
2016
|
-
|
|
2017
|
-
|
|
1986
|
+
React.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
1987
|
+
React.createElement(
|
|
2018
1988
|
'style',
|
|
2019
1989
|
{ jsx: 'true' },
|
|
2020
1990
|
'\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 '
|
|
@@ -2027,20 +1997,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2027
1997
|
content = _ref.content,
|
|
2028
1998
|
getSerializers = _ref.getSerializers;
|
|
2029
1999
|
|
|
2030
|
-
return
|
|
2000
|
+
return React.createElement(
|
|
2031
2001
|
'article',
|
|
2032
2002
|
{ className: 'sidebar' },
|
|
2033
|
-
|
|
2003
|
+
React.createElement(
|
|
2034
2004
|
'div',
|
|
2035
2005
|
null,
|
|
2036
|
-
|
|
2006
|
+
React.createElement(
|
|
2037
2007
|
'h3',
|
|
2038
2008
|
null,
|
|
2039
2009
|
caption
|
|
2040
2010
|
),
|
|
2041
|
-
|
|
2011
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2042
2012
|
),
|
|
2043
|
-
|
|
2013
|
+
React.createElement(
|
|
2044
2014
|
'style',
|
|
2045
2015
|
{ jsx: 'true' },
|
|
2046
2016
|
'\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 '
|
|
@@ -2051,18 +2021,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2051
2021
|
var TableShow = function TableShow(_ref) {
|
|
2052
2022
|
var rows = _ref.rows;
|
|
2053
2023
|
|
|
2054
|
-
return
|
|
2024
|
+
return React.createElement(
|
|
2055
2025
|
Table,
|
|
2056
2026
|
{ bordered: true, hover: true, responsive: true },
|
|
2057
|
-
|
|
2027
|
+
React.createElement(
|
|
2058
2028
|
'tbody',
|
|
2059
2029
|
null,
|
|
2060
2030
|
rows && rows.map(function (row) {
|
|
2061
|
-
return
|
|
2031
|
+
return React.createElement(
|
|
2062
2032
|
'tr',
|
|
2063
2033
|
{ key: row._key },
|
|
2064
2034
|
row.cells && row.cells.map(function (cell, index) {
|
|
2065
|
-
return cell &&
|
|
2035
|
+
return cell && React.createElement(
|
|
2066
2036
|
'td',
|
|
2067
2037
|
{ key: index },
|
|
2068
2038
|
cell
|
|
@@ -2165,18 +2135,18 @@ var Media = function Media(_ref) {
|
|
|
2165
2135
|
margin: imageMargin
|
|
2166
2136
|
};
|
|
2167
2137
|
|
|
2168
|
-
return
|
|
2138
|
+
return React.createElement(
|
|
2169
2139
|
Figure$1,
|
|
2170
2140
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2171
|
-
|
|
2141
|
+
React.createElement(
|
|
2172
2142
|
'a',
|
|
2173
2143
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2174
|
-
|
|
2144
|
+
React.createElement(
|
|
2175
2145
|
LazyLoad,
|
|
2176
2146
|
{ once: true },
|
|
2177
|
-
|
|
2147
|
+
React.createElement(Figure$1.Image, _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt }))
|
|
2178
2148
|
),
|
|
2179
|
-
caption &&
|
|
2149
|
+
caption && React.createElement(
|
|
2180
2150
|
Figure$1.Caption,
|
|
2181
2151
|
{ className: 'media-caption' },
|
|
2182
2152
|
caption
|
|
@@ -2184,9 +2154,9 @@ var Media = function Media(_ref) {
|
|
|
2184
2154
|
)
|
|
2185
2155
|
);
|
|
2186
2156
|
} else if (caption && caption !== '') {
|
|
2187
|
-
return
|
|
2157
|
+
return React.createElement(
|
|
2188
2158
|
'a',
|
|
2189
|
-
_extends
|
|
2159
|
+
_extends({}, uploadDoc.downloadMedia ? {
|
|
2190
2160
|
href: uploadDoc.asset.url + '?dl='
|
|
2191
2161
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2192
2162
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2201,10 +2171,10 @@ var Media = function Media(_ref) {
|
|
|
2201
2171
|
var IFrame = function IFrame(_ref) {
|
|
2202
2172
|
var url = _ref.url;
|
|
2203
2173
|
|
|
2204
|
-
return
|
|
2174
|
+
return React.createElement(
|
|
2205
2175
|
'div',
|
|
2206
2176
|
{ className: 'd-block text-center mb-3' },
|
|
2207
|
-
|
|
2177
|
+
React.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2208
2178
|
);
|
|
2209
2179
|
};
|
|
2210
2180
|
|
|
@@ -2239,7 +2209,7 @@ var Video = function Video(_ref) {
|
|
|
2239
2209
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2240
2210
|
//console.log('success:', success.ref)
|
|
2241
2211
|
var player = success.ref;
|
|
2242
|
-
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2212
|
+
if (_typeof$1(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2243
2213
|
player.ima3.settings.debug = true;
|
|
2244
2214
|
if (targeting.content_placement && targeting.document_url) {
|
|
2245
2215
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2337,44 +2307,44 @@ var Video = function Video(_ref) {
|
|
|
2337
2307
|
|
|
2338
2308
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2339
2309
|
if (videoID) {
|
|
2340
|
-
return
|
|
2310
|
+
return React.createElement(
|
|
2341
2311
|
'div',
|
|
2342
2312
|
null,
|
|
2343
|
-
|
|
2313
|
+
React.createElement(ReactPlayerLoader, {
|
|
2344
2314
|
onSuccess: onVideoSuccess,
|
|
2345
2315
|
accountId: accountIDs.brightcove.accountId,
|
|
2346
2316
|
videoId: videoID,
|
|
2347
2317
|
playerId: accountIDs.brightcove.playerId,
|
|
2348
2318
|
attrs: { className: 'brightcove', autoplay: 'muted' }
|
|
2349
2319
|
}),
|
|
2350
|
-
|
|
2320
|
+
React.createElement(
|
|
2351
2321
|
'style',
|
|
2352
2322
|
{ jsx: 'true' },
|
|
2353
2323
|
'\n .brightcove {\n position: relative;\n margin-bottom: 1rem;\n height: 100%;\n width: 100%;\n }\n .brightcove .video-js {\n height: 100%;\n width: 100%;\n position: relative;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n min-height: 411px;\n }\n '
|
|
2354
2324
|
)
|
|
2355
2325
|
);
|
|
2356
2326
|
} else if (playlistID) {
|
|
2357
|
-
return
|
|
2327
|
+
return React.createElement(
|
|
2358
2328
|
'div',
|
|
2359
2329
|
null,
|
|
2360
|
-
|
|
2330
|
+
React.createElement(ReactPlayerLoader, {
|
|
2361
2331
|
accountId: accountIDs.brightcove.accountId,
|
|
2362
2332
|
playlistId: playlistID,
|
|
2363
2333
|
playerId: accountIDs.brightcove.playerId,
|
|
2364
2334
|
onSuccess: onVideoSuccess,
|
|
2365
2335
|
attrs: { className: 'brightcove brightcove-playlist', autoplay: 'muted' }
|
|
2366
2336
|
}),
|
|
2367
|
-
|
|
2337
|
+
React.createElement(
|
|
2368
2338
|
'style',
|
|
2369
2339
|
{ jsx: 'true' },
|
|
2370
2340
|
'\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 '
|
|
2371
2341
|
)
|
|
2372
2342
|
);
|
|
2373
2343
|
} else if (experienceID) {
|
|
2374
|
-
return
|
|
2344
|
+
return React.createElement(
|
|
2375
2345
|
'div',
|
|
2376
2346
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2377
|
-
videoLoaded &&
|
|
2347
|
+
videoLoaded && React.createElement('div', { 'data-experience': experienceID })
|
|
2378
2348
|
);
|
|
2379
2349
|
}
|
|
2380
2350
|
return null;
|
|
@@ -2754,11 +2724,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2754
2724
|
|
|
2755
2725
|
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; }
|
|
2756
2726
|
|
|
2757
|
-
function
|
|
2727
|
+
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
2728
|
+
|
|
2729
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2730
|
+
|
|
2731
|
+
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."); }
|
|
2758
2732
|
|
|
2759
|
-
function
|
|
2733
|
+
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); }
|
|
2760
2734
|
|
|
2761
|
-
function
|
|
2735
|
+
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; }
|
|
2736
|
+
|
|
2737
|
+
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; }
|
|
2762
2738
|
|
|
2763
2739
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2764
2740
|
|
|
@@ -2888,12 +2864,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
2888
2864
|
|
|
2889
2865
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
2890
2866
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
2891
|
-
|
|
2892
|
-
var
|
|
2893
|
-
|
|
2867
|
+
|
|
2868
|
+
var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
|
|
2869
|
+
_step;
|
|
2894
2870
|
|
|
2895
2871
|
try {
|
|
2896
|
-
for (
|
|
2872
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
2897
2873
|
var p = _step.value;
|
|
2898
2874
|
|
|
2899
2875
|
if (props$1[p]) {
|
|
@@ -2908,18 +2884,9 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
2908
2884
|
}
|
|
2909
2885
|
}
|
|
2910
2886
|
} catch (err) {
|
|
2911
|
-
|
|
2912
|
-
_iteratorError = err;
|
|
2887
|
+
_iterator.e(err);
|
|
2913
2888
|
} finally {
|
|
2914
|
-
|
|
2915
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
2916
|
-
_iterator["return"]();
|
|
2917
|
-
}
|
|
2918
|
-
} finally {
|
|
2919
|
-
if (_didIteratorError) {
|
|
2920
|
-
throw _iteratorError;
|
|
2921
|
-
}
|
|
2922
|
-
}
|
|
2889
|
+
_iterator.f();
|
|
2923
2890
|
}
|
|
2924
2891
|
|
|
2925
2892
|
return config;
|
|
@@ -2984,7 +2951,7 @@ function isEqual(a, b) {
|
|
|
2984
2951
|
return true;
|
|
2985
2952
|
}
|
|
2986
2953
|
|
|
2987
|
-
if ((0,
|
|
2954
|
+
if ((0, React.isValidElement)(a) && (0, React.isValidElement)(b)) {
|
|
2988
2955
|
return true;
|
|
2989
2956
|
}
|
|
2990
2957
|
|
|
@@ -3046,7 +3013,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3046
3013
|
});
|
|
3047
3014
|
exports["default"] = void 0;
|
|
3048
3015
|
|
|
3049
|
-
var _react = _interopRequireWildcard(
|
|
3016
|
+
var _react = _interopRequireWildcard(React);
|
|
3050
3017
|
|
|
3051
3018
|
|
|
3052
3019
|
|
|
@@ -3066,12 +3033,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3066
3033
|
|
|
3067
3034
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3068
3035
|
|
|
3069
|
-
function
|
|
3036
|
+
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); }; }
|
|
3070
3037
|
|
|
3071
|
-
function
|
|
3038
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3072
3039
|
|
|
3073
3040
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3074
3041
|
|
|
3042
|
+
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; } }
|
|
3043
|
+
|
|
3044
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3045
|
+
|
|
3075
3046
|
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); }
|
|
3076
3047
|
|
|
3077
3048
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3080,14 +3051,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3080
3051
|
|
|
3081
3052
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3082
3053
|
|
|
3083
|
-
var Player =
|
|
3084
|
-
/*#__PURE__*/
|
|
3085
|
-
function (_Component) {
|
|
3054
|
+
var Player = /*#__PURE__*/function (_Component) {
|
|
3086
3055
|
_inherits(Player, _Component);
|
|
3087
3056
|
|
|
3088
|
-
|
|
3089
|
-
var _getPrototypeOf2;
|
|
3057
|
+
var _super = _createSuper(Player);
|
|
3090
3058
|
|
|
3059
|
+
function Player() {
|
|
3091
3060
|
var _this;
|
|
3092
3061
|
|
|
3093
3062
|
_classCallCheck(this, Player);
|
|
@@ -3096,7 +3065,7 @@ function (_Component) {
|
|
|
3096
3065
|
_args[_key] = arguments[_key];
|
|
3097
3066
|
}
|
|
3098
3067
|
|
|
3099
|
-
_this =
|
|
3068
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
3100
3069
|
|
|
3101
3070
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3102
3071
|
|
|
@@ -3421,7 +3390,7 @@ function (_Component) {
|
|
|
3421
3390
|
return null;
|
|
3422
3391
|
}
|
|
3423
3392
|
|
|
3424
|
-
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3393
|
+
return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
|
|
3425
3394
|
ref: this.ref,
|
|
3426
3395
|
onReady: this.handleReady,
|
|
3427
3396
|
onPlay: this.handlePlay,
|
|
@@ -3454,7 +3423,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3454
3423
|
});
|
|
3455
3424
|
exports["default"] = createSinglePlayer;
|
|
3456
3425
|
|
|
3457
|
-
var _react = _interopRequireWildcard(
|
|
3426
|
+
var _react = _interopRequireWildcard(React);
|
|
3458
3427
|
|
|
3459
3428
|
|
|
3460
3429
|
|
|
@@ -3482,12 +3451,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3482
3451
|
|
|
3483
3452
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3484
3453
|
|
|
3485
|
-
function
|
|
3454
|
+
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); }; }
|
|
3486
3455
|
|
|
3487
|
-
function
|
|
3456
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3488
3457
|
|
|
3489
3458
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3490
3459
|
|
|
3460
|
+
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; } }
|
|
3461
|
+
|
|
3462
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3463
|
+
|
|
3491
3464
|
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); }
|
|
3492
3465
|
|
|
3493
3466
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3499,14 +3472,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3499
3472
|
function createSinglePlayer(activePlayer) {
|
|
3500
3473
|
var _class, _temp;
|
|
3501
3474
|
|
|
3502
|
-
return _temp = _class =
|
|
3503
|
-
/*#__PURE__*/
|
|
3504
|
-
function (_Component) {
|
|
3475
|
+
return _temp = _class = /*#__PURE__*/function (_Component) {
|
|
3505
3476
|
_inherits(SinglePlayer, _Component);
|
|
3506
3477
|
|
|
3507
|
-
|
|
3508
|
-
var _getPrototypeOf2;
|
|
3478
|
+
var _super = _createSuper(SinglePlayer);
|
|
3509
3479
|
|
|
3480
|
+
function SinglePlayer() {
|
|
3510
3481
|
var _this;
|
|
3511
3482
|
|
|
3512
3483
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3515,7 +3486,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3515
3486
|
args[_key] = arguments[_key];
|
|
3516
3487
|
}
|
|
3517
3488
|
|
|
3518
|
-
_this =
|
|
3489
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3519
3490
|
|
|
3520
3491
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3521
3492
|
|
|
@@ -3583,12 +3554,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3583
3554
|
height = _this$props.height,
|
|
3584
3555
|
Wrapper = _this$props.wrapper;
|
|
3585
3556
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3586
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
3557
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
3587
3558
|
style: _objectSpread({}, style, {
|
|
3588
3559
|
width: width,
|
|
3589
3560
|
height: height
|
|
3590
3561
|
})
|
|
3591
|
-
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3562
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3592
3563
|
ref: this.ref,
|
|
3593
3564
|
activePlayer: activePlayer,
|
|
3594
3565
|
config: this.config
|
|
@@ -3610,7 +3581,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3610
3581
|
});
|
|
3611
3582
|
exports["default"] = exports.YouTube = void 0;
|
|
3612
3583
|
|
|
3613
|
-
var _react = _interopRequireWildcard(
|
|
3584
|
+
var _react = _interopRequireWildcard(React);
|
|
3614
3585
|
|
|
3615
3586
|
|
|
3616
3587
|
|
|
@@ -3634,23 +3605,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3634
3605
|
|
|
3635
3606
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3636
3607
|
|
|
3637
|
-
function
|
|
3608
|
+
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); }; }
|
|
3638
3609
|
|
|
3639
|
-
function
|
|
3610
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3640
3611
|
|
|
3641
3612
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3642
3613
|
|
|
3614
|
+
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; } }
|
|
3615
|
+
|
|
3616
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3617
|
+
|
|
3643
3618
|
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); }
|
|
3644
3619
|
|
|
3645
3620
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3646
3621
|
|
|
3647
3622
|
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; }
|
|
3648
3623
|
|
|
3649
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3624
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3625
|
+
|
|
3626
|
+
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."); }
|
|
3627
|
+
|
|
3628
|
+
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); }
|
|
3650
3629
|
|
|
3651
|
-
function
|
|
3630
|
+
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; }
|
|
3652
3631
|
|
|
3653
|
-
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr)
|
|
3632
|
+
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; }
|
|
3654
3633
|
|
|
3655
3634
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3656
3635
|
|
|
@@ -3675,14 +3654,12 @@ function parsePlaylist(url) {
|
|
|
3675
3654
|
return {};
|
|
3676
3655
|
}
|
|
3677
3656
|
|
|
3678
|
-
var YouTube =
|
|
3679
|
-
/*#__PURE__*/
|
|
3680
|
-
function (_Component) {
|
|
3657
|
+
var YouTube = /*#__PURE__*/function (_Component) {
|
|
3681
3658
|
_inherits(YouTube, _Component);
|
|
3682
3659
|
|
|
3683
|
-
|
|
3684
|
-
var _getPrototypeOf2;
|
|
3660
|
+
var _super = _createSuper(YouTube);
|
|
3685
3661
|
|
|
3662
|
+
function YouTube() {
|
|
3686
3663
|
var _this;
|
|
3687
3664
|
|
|
3688
3665
|
_classCallCheck(this, YouTube);
|
|
@@ -3691,7 +3668,7 @@ function (_Component) {
|
|
|
3691
3668
|
args[_key] = arguments[_key];
|
|
3692
3669
|
}
|
|
3693
3670
|
|
|
3694
|
-
_this =
|
|
3671
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3695
3672
|
|
|
3696
3673
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3697
3674
|
|
|
@@ -3879,9 +3856,9 @@ function (_Component) {
|
|
|
3879
3856
|
height: '100%',
|
|
3880
3857
|
display: display
|
|
3881
3858
|
};
|
|
3882
|
-
return _react["default"].createElement("div", {
|
|
3859
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
3883
3860
|
style: style
|
|
3884
|
-
}, _react["default"].createElement("div", {
|
|
3861
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
3885
3862
|
ref: this.ref
|
|
3886
3863
|
}));
|
|
3887
3864
|
}
|
|
@@ -3913,7 +3890,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3913
3890
|
});
|
|
3914
3891
|
exports["default"] = exports.SoundCloud = void 0;
|
|
3915
3892
|
|
|
3916
|
-
var _react = _interopRequireWildcard(
|
|
3893
|
+
var _react = _interopRequireWildcard(React);
|
|
3917
3894
|
|
|
3918
3895
|
|
|
3919
3896
|
|
|
@@ -3937,12 +3914,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3937
3914
|
|
|
3938
3915
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3939
3916
|
|
|
3940
|
-
function
|
|
3917
|
+
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); }; }
|
|
3941
3918
|
|
|
3942
|
-
function
|
|
3919
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3943
3920
|
|
|
3944
3921
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3945
3922
|
|
|
3923
|
+
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; } }
|
|
3924
|
+
|
|
3925
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3926
|
+
|
|
3946
3927
|
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); }
|
|
3947
3928
|
|
|
3948
3929
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3951,16 +3932,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3951
3932
|
|
|
3952
3933
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
3953
3934
|
var SDK_GLOBAL = 'SC';
|
|
3954
|
-
var MATCH_URL = /(soundcloud\.com|snd\.sc)
|
|
3935
|
+
var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
3955
3936
|
|
|
3956
|
-
var SoundCloud =
|
|
3957
|
-
/*#__PURE__*/
|
|
3958
|
-
function (_Component) {
|
|
3937
|
+
var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
3959
3938
|
_inherits(SoundCloud, _Component);
|
|
3960
3939
|
|
|
3961
|
-
|
|
3962
|
-
var _getPrototypeOf2;
|
|
3940
|
+
var _super = _createSuper(SoundCloud);
|
|
3963
3941
|
|
|
3942
|
+
function SoundCloud() {
|
|
3964
3943
|
var _this;
|
|
3965
3944
|
|
|
3966
3945
|
_classCallCheck(this, SoundCloud);
|
|
@@ -3969,7 +3948,7 @@ function (_Component) {
|
|
|
3969
3948
|
args[_key] = arguments[_key];
|
|
3970
3949
|
}
|
|
3971
3950
|
|
|
3972
|
-
_this =
|
|
3951
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3973
3952
|
|
|
3974
3953
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3975
3954
|
|
|
@@ -4090,7 +4069,7 @@ function (_Component) {
|
|
|
4090
4069
|
height: '100%',
|
|
4091
4070
|
display: display
|
|
4092
4071
|
};
|
|
4093
|
-
return _react["default"].createElement("iframe", {
|
|
4072
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4094
4073
|
ref: this.ref,
|
|
4095
4074
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4096
4075
|
style: style,
|
|
@@ -4128,7 +4107,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4128
4107
|
});
|
|
4129
4108
|
exports["default"] = exports.Vimeo = void 0;
|
|
4130
4109
|
|
|
4131
|
-
var _react = _interopRequireWildcard(
|
|
4110
|
+
var _react = _interopRequireWildcard(React);
|
|
4132
4111
|
|
|
4133
4112
|
|
|
4134
4113
|
|
|
@@ -4152,12 +4131,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4152
4131
|
|
|
4153
4132
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4154
4133
|
|
|
4155
|
-
function
|
|
4134
|
+
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); }; }
|
|
4156
4135
|
|
|
4157
|
-
function
|
|
4136
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4158
4137
|
|
|
4159
4138
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4160
4139
|
|
|
4140
|
+
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; } }
|
|
4141
|
+
|
|
4142
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4143
|
+
|
|
4161
4144
|
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); }
|
|
4162
4145
|
|
|
4163
4146
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4169,14 +4152,12 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4169
4152
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4170
4153
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4171
4154
|
|
|
4172
|
-
var Vimeo =
|
|
4173
|
-
/*#__PURE__*/
|
|
4174
|
-
function (_Component) {
|
|
4155
|
+
var Vimeo = /*#__PURE__*/function (_Component) {
|
|
4175
4156
|
_inherits(Vimeo, _Component);
|
|
4176
4157
|
|
|
4177
|
-
|
|
4178
|
-
var _getPrototypeOf2;
|
|
4158
|
+
var _super = _createSuper(Vimeo);
|
|
4179
4159
|
|
|
4160
|
+
function Vimeo() {
|
|
4180
4161
|
var _this;
|
|
4181
4162
|
|
|
4182
4163
|
_classCallCheck(this, Vimeo);
|
|
@@ -4185,7 +4166,7 @@ function (_Component) {
|
|
|
4185
4166
|
args[_key] = arguments[_key];
|
|
4186
4167
|
}
|
|
4187
4168
|
|
|
4188
|
-
_this =
|
|
4169
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4189
4170
|
|
|
4190
4171
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4191
4172
|
|
|
@@ -4342,7 +4323,7 @@ function (_Component) {
|
|
|
4342
4323
|
overflow: 'hidden',
|
|
4343
4324
|
display: display
|
|
4344
4325
|
};
|
|
4345
|
-
return _react["default"].createElement("div", {
|
|
4326
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4346
4327
|
key: this.props.url,
|
|
4347
4328
|
ref: this.ref,
|
|
4348
4329
|
style: style
|
|
@@ -4382,7 +4363,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4382
4363
|
});
|
|
4383
4364
|
exports["default"] = exports.Facebook = void 0;
|
|
4384
4365
|
|
|
4385
|
-
var _react = _interopRequireWildcard(
|
|
4366
|
+
var _react = _interopRequireWildcard(React);
|
|
4386
4367
|
|
|
4387
4368
|
|
|
4388
4369
|
|
|
@@ -4402,12 +4383,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4402
4383
|
|
|
4403
4384
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4404
4385
|
|
|
4405
|
-
function
|
|
4386
|
+
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); }; }
|
|
4406
4387
|
|
|
4407
|
-
function
|
|
4388
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4408
4389
|
|
|
4409
4390
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4410
4391
|
|
|
4392
|
+
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; } }
|
|
4393
|
+
|
|
4394
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4395
|
+
|
|
4411
4396
|
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); }
|
|
4412
4397
|
|
|
4413
4398
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4420,14 +4405,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4420
4405
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4421
4406
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4422
4407
|
|
|
4423
|
-
var Facebook =
|
|
4424
|
-
/*#__PURE__*/
|
|
4425
|
-
function (_Component) {
|
|
4408
|
+
var Facebook = /*#__PURE__*/function (_Component) {
|
|
4426
4409
|
_inherits(Facebook, _Component);
|
|
4427
4410
|
|
|
4428
|
-
|
|
4429
|
-
var _getPrototypeOf2;
|
|
4411
|
+
var _super = _createSuper(Facebook);
|
|
4430
4412
|
|
|
4413
|
+
function Facebook() {
|
|
4431
4414
|
var _this;
|
|
4432
4415
|
|
|
4433
4416
|
_classCallCheck(this, Facebook);
|
|
@@ -4436,7 +4419,7 @@ function (_Component) {
|
|
|
4436
4419
|
args[_key] = arguments[_key];
|
|
4437
4420
|
}
|
|
4438
4421
|
|
|
4439
|
-
_this =
|
|
4422
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4440
4423
|
|
|
4441
4424
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4442
4425
|
|
|
@@ -4552,7 +4535,7 @@ function (_Component) {
|
|
|
4552
4535
|
width: '100%',
|
|
4553
4536
|
height: '100%'
|
|
4554
4537
|
};
|
|
4555
|
-
return _react["default"].createElement("div", {
|
|
4538
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4556
4539
|
style: style,
|
|
4557
4540
|
id: this.playerID,
|
|
4558
4541
|
className: "fb-video",
|
|
@@ -4592,7 +4575,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4592
4575
|
});
|
|
4593
4576
|
exports["default"] = exports.Streamable = void 0;
|
|
4594
4577
|
|
|
4595
|
-
var _react = _interopRequireWildcard(
|
|
4578
|
+
var _react = _interopRequireWildcard(React);
|
|
4596
4579
|
|
|
4597
4580
|
|
|
4598
4581
|
|
|
@@ -4612,12 +4595,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4612
4595
|
|
|
4613
4596
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4614
4597
|
|
|
4615
|
-
function
|
|
4598
|
+
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); }; }
|
|
4616
4599
|
|
|
4617
|
-
function
|
|
4600
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4618
4601
|
|
|
4619
4602
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4620
4603
|
|
|
4604
|
+
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; } }
|
|
4605
|
+
|
|
4606
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4607
|
+
|
|
4621
4608
|
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); }
|
|
4622
4609
|
|
|
4623
4610
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4628,14 +4615,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4628
4615
|
var SDK_GLOBAL = 'playerjs';
|
|
4629
4616
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4630
4617
|
|
|
4631
|
-
var Streamable =
|
|
4632
|
-
/*#__PURE__*/
|
|
4633
|
-
function (_Component) {
|
|
4618
|
+
var Streamable = /*#__PURE__*/function (_Component) {
|
|
4634
4619
|
_inherits(Streamable, _Component);
|
|
4635
4620
|
|
|
4636
|
-
|
|
4637
|
-
var _getPrototypeOf2;
|
|
4621
|
+
var _super = _createSuper(Streamable);
|
|
4638
4622
|
|
|
4623
|
+
function Streamable() {
|
|
4639
4624
|
var _this;
|
|
4640
4625
|
|
|
4641
4626
|
_classCallCheck(this, Streamable);
|
|
@@ -4644,7 +4629,7 @@ function (_Component) {
|
|
|
4644
4629
|
args[_key] = arguments[_key];
|
|
4645
4630
|
}
|
|
4646
4631
|
|
|
4647
|
-
_this =
|
|
4632
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4648
4633
|
|
|
4649
4634
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4650
4635
|
|
|
@@ -4764,7 +4749,7 @@ function (_Component) {
|
|
|
4764
4749
|
width: '100%',
|
|
4765
4750
|
height: '100%'
|
|
4766
4751
|
};
|
|
4767
|
-
return _react["default"].createElement("iframe", {
|
|
4752
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4768
4753
|
ref: this.ref,
|
|
4769
4754
|
src: "https://streamable.com/o/".concat(id),
|
|
4770
4755
|
frameBorder: "0",
|
|
@@ -4801,7 +4786,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4801
4786
|
});
|
|
4802
4787
|
exports["default"] = exports.Wistia = void 0;
|
|
4803
4788
|
|
|
4804
|
-
var _react = _interopRequireWildcard(
|
|
4789
|
+
var _react = _interopRequireWildcard(React);
|
|
4805
4790
|
|
|
4806
4791
|
|
|
4807
4792
|
|
|
@@ -4825,12 +4810,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4825
4810
|
|
|
4826
4811
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4827
4812
|
|
|
4828
|
-
function
|
|
4813
|
+
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); }; }
|
|
4829
4814
|
|
|
4830
|
-
function
|
|
4815
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4831
4816
|
|
|
4832
4817
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4833
4818
|
|
|
4819
|
+
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; } }
|
|
4820
|
+
|
|
4821
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4822
|
+
|
|
4834
4823
|
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); }
|
|
4835
4824
|
|
|
4836
4825
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4841,26 +4830,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4841
4830
|
var SDK_GLOBAL = 'Wistia';
|
|
4842
4831
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4843
4832
|
|
|
4844
|
-
var Wistia =
|
|
4845
|
-
/*#__PURE__*/
|
|
4846
|
-
function (_Component) {
|
|
4833
|
+
var Wistia = /*#__PURE__*/function (_Component) {
|
|
4847
4834
|
_inherits(Wistia, _Component);
|
|
4848
4835
|
|
|
4849
|
-
|
|
4850
|
-
var _getPrototypeOf2;
|
|
4836
|
+
var _super = _createSuper(Wistia);
|
|
4851
4837
|
|
|
4838
|
+
function Wistia() {
|
|
4852
4839
|
var _this;
|
|
4853
4840
|
|
|
4854
4841
|
_classCallCheck(this, Wistia);
|
|
4855
4842
|
|
|
4856
|
-
for (var _len = arguments.length,
|
|
4857
|
-
|
|
4843
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4844
|
+
_args[_key] = arguments[_key];
|
|
4858
4845
|
}
|
|
4859
4846
|
|
|
4860
|
-
_this =
|
|
4847
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
4861
4848
|
|
|
4862
4849
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4863
4850
|
|
|
4851
|
+
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4852
|
+
var _this$props;
|
|
4853
|
+
|
|
4854
|
+
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4855
|
+
});
|
|
4856
|
+
|
|
4857
|
+
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4858
|
+
var _this$props2;
|
|
4859
|
+
|
|
4860
|
+
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4861
|
+
});
|
|
4862
|
+
|
|
4863
|
+
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
4864
|
+
var _this$props3;
|
|
4865
|
+
|
|
4866
|
+
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
4867
|
+
});
|
|
4868
|
+
|
|
4869
|
+
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
4870
|
+
var _this$props4;
|
|
4871
|
+
|
|
4872
|
+
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
4873
|
+
});
|
|
4874
|
+
|
|
4864
4875
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
4865
4876
|
_this.callPlayer('mute');
|
|
4866
4877
|
});
|
|
@@ -4882,17 +4893,13 @@ function (_Component) {
|
|
|
4882
4893
|
value: function load(url) {
|
|
4883
4894
|
var _this2 = this;
|
|
4884
4895
|
|
|
4885
|
-
var _this$
|
|
4886
|
-
playing = _this$
|
|
4887
|
-
muted = _this$
|
|
4888
|
-
controls = _this$
|
|
4889
|
-
_onReady = _this$
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
onSeek = _this$props.onSeek,
|
|
4893
|
-
onEnded = _this$props.onEnded,
|
|
4894
|
-
config = _this$props.config,
|
|
4895
|
-
onError = _this$props.onError;
|
|
4896
|
+
var _this$props5 = this.props,
|
|
4897
|
+
playing = _this$props5.playing,
|
|
4898
|
+
muted = _this$props5.muted,
|
|
4899
|
+
controls = _this$props5.controls,
|
|
4900
|
+
_onReady = _this$props5.onReady,
|
|
4901
|
+
config = _this$props5.config,
|
|
4902
|
+
onError = _this$props5.onError;
|
|
4896
4903
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
4897
4904
|
window._wq = window._wq || [];
|
|
4898
4905
|
|
|
@@ -4909,19 +4916,28 @@ function (_Component) {
|
|
|
4909
4916
|
|
|
4910
4917
|
_this2.unbind();
|
|
4911
4918
|
|
|
4912
|
-
_this2.player.bind('play', onPlay);
|
|
4919
|
+
_this2.player.bind('play', _this2.onPlay);
|
|
4913
4920
|
|
|
4914
|
-
_this2.player.bind('pause', onPause);
|
|
4921
|
+
_this2.player.bind('pause', _this2.onPause);
|
|
4915
4922
|
|
|
4916
|
-
_this2.player.bind('seek', onSeek);
|
|
4923
|
+
_this2.player.bind('seek', _this2.onSeek);
|
|
4917
4924
|
|
|
4918
|
-
_this2.player.bind('end', onEnded);
|
|
4925
|
+
_this2.player.bind('end', _this2.onEnded);
|
|
4919
4926
|
|
|
4920
4927
|
_onReady();
|
|
4921
4928
|
}
|
|
4922
4929
|
});
|
|
4923
4930
|
}, onError);
|
|
4924
4931
|
}
|
|
4932
|
+
}, {
|
|
4933
|
+
key: "unbind",
|
|
4934
|
+
value: function unbind() {
|
|
4935
|
+
this.player.unbind('play', this.onPlay);
|
|
4936
|
+
this.player.unbind('pause', this.onPause);
|
|
4937
|
+
this.player.unbind('seek', this.onSeek);
|
|
4938
|
+
this.player.unbind('end', this.onEnded);
|
|
4939
|
+
} // Proxy methods to prevent listener leaks
|
|
4940
|
+
|
|
4925
4941
|
}, {
|
|
4926
4942
|
key: "play",
|
|
4927
4943
|
value: function play() {
|
|
@@ -4932,19 +4948,6 @@ function (_Component) {
|
|
|
4932
4948
|
value: function pause() {
|
|
4933
4949
|
this.callPlayer('pause');
|
|
4934
4950
|
}
|
|
4935
|
-
}, {
|
|
4936
|
-
key: "unbind",
|
|
4937
|
-
value: function unbind() {
|
|
4938
|
-
var _this$props2 = this.props,
|
|
4939
|
-
onPlay = _this$props2.onPlay,
|
|
4940
|
-
onPause = _this$props2.onPause,
|
|
4941
|
-
onSeek = _this$props2.onSeek,
|
|
4942
|
-
onEnded = _this$props2.onEnded;
|
|
4943
|
-
this.player.unbind('play', onPlay);
|
|
4944
|
-
this.player.unbind('pause', onPause);
|
|
4945
|
-
this.player.unbind('seek', onSeek);
|
|
4946
|
-
this.player.unbind('end', onEnded);
|
|
4947
|
-
}
|
|
4948
4951
|
}, {
|
|
4949
4952
|
key: "stop",
|
|
4950
4953
|
value: function stop() {
|
|
@@ -4990,7 +4993,7 @@ function (_Component) {
|
|
|
4990
4993
|
width: '100%',
|
|
4991
4994
|
height: '100%'
|
|
4992
4995
|
};
|
|
4993
|
-
return _react["default"].createElement("div", {
|
|
4996
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4994
4997
|
key: id,
|
|
4995
4998
|
className: className,
|
|
4996
4999
|
style: style
|
|
@@ -5026,7 +5029,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5026
5029
|
});
|
|
5027
5030
|
exports["default"] = exports.Twitch = void 0;
|
|
5028
5031
|
|
|
5029
|
-
var _react = _interopRequireWildcard(
|
|
5032
|
+
var _react = _interopRequireWildcard(React);
|
|
5030
5033
|
|
|
5031
5034
|
|
|
5032
5035
|
|
|
@@ -5050,12 +5053,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5050
5053
|
|
|
5051
5054
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5052
5055
|
|
|
5053
|
-
function
|
|
5056
|
+
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
5057
|
|
|
5055
|
-
function
|
|
5058
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5056
5059
|
|
|
5057
5060
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5058
5061
|
|
|
5062
|
+
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; } }
|
|
5063
|
+
|
|
5064
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5065
|
+
|
|
5059
5066
|
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); }
|
|
5060
5067
|
|
|
5061
5068
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5068,14 +5075,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5068
5075
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5069
5076
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5070
5077
|
|
|
5071
|
-
var Twitch =
|
|
5072
|
-
/*#__PURE__*/
|
|
5073
|
-
function (_Component) {
|
|
5078
|
+
var Twitch = /*#__PURE__*/function (_Component) {
|
|
5074
5079
|
_inherits(Twitch, _Component);
|
|
5075
5080
|
|
|
5076
|
-
|
|
5077
|
-
var _getPrototypeOf2;
|
|
5081
|
+
var _super = _createSuper(Twitch);
|
|
5078
5082
|
|
|
5083
|
+
function Twitch() {
|
|
5079
5084
|
var _this;
|
|
5080
5085
|
|
|
5081
5086
|
_classCallCheck(this, Twitch);
|
|
@@ -5084,7 +5089,7 @@ function (_Component) {
|
|
|
5084
5089
|
args[_key] = arguments[_key];
|
|
5085
5090
|
}
|
|
5086
5091
|
|
|
5087
|
-
_this =
|
|
5092
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5088
5093
|
|
|
5089
5094
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5090
5095
|
|
|
@@ -5205,7 +5210,7 @@ function (_Component) {
|
|
|
5205
5210
|
width: '100%',
|
|
5206
5211
|
height: '100%'
|
|
5207
5212
|
};
|
|
5208
|
-
return _react["default"].createElement("div", {
|
|
5213
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5209
5214
|
style: style,
|
|
5210
5215
|
id: this.playerID
|
|
5211
5216
|
});
|
|
@@ -5240,7 +5245,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5240
5245
|
});
|
|
5241
5246
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5242
5247
|
|
|
5243
|
-
var _react = _interopRequireWildcard(
|
|
5248
|
+
var _react = _interopRequireWildcard(React);
|
|
5244
5249
|
|
|
5245
5250
|
|
|
5246
5251
|
|
|
@@ -5258,11 +5263,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5258
5263
|
|
|
5259
5264
|
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; }
|
|
5260
5265
|
|
|
5261
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5266
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5267
|
+
|
|
5268
|
+
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."); }
|
|
5262
5269
|
|
|
5263
|
-
function
|
|
5270
|
+
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); }
|
|
5264
5271
|
|
|
5265
|
-
function
|
|
5272
|
+
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; }
|
|
5273
|
+
|
|
5274
|
+
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; }
|
|
5266
5275
|
|
|
5267
5276
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5268
5277
|
|
|
@@ -5272,12 +5281,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5272
5281
|
|
|
5273
5282
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5274
5283
|
|
|
5275
|
-
function
|
|
5284
|
+
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); }; }
|
|
5276
5285
|
|
|
5277
|
-
function
|
|
5286
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5278
5287
|
|
|
5279
5288
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5280
5289
|
|
|
5290
|
+
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; } }
|
|
5291
|
+
|
|
5292
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5293
|
+
|
|
5281
5294
|
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); }
|
|
5282
5295
|
|
|
5283
5296
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5289,14 +5302,12 @@ var SDK_GLOBAL = 'DM';
|
|
|
5289
5302
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5290
5303
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5291
5304
|
|
|
5292
|
-
var DailyMotion =
|
|
5293
|
-
/*#__PURE__*/
|
|
5294
|
-
function (_Component) {
|
|
5305
|
+
var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
5295
5306
|
_inherits(DailyMotion, _Component);
|
|
5296
5307
|
|
|
5297
|
-
|
|
5298
|
-
var _getPrototypeOf2;
|
|
5308
|
+
var _super = _createSuper(DailyMotion);
|
|
5299
5309
|
|
|
5310
|
+
function DailyMotion() {
|
|
5300
5311
|
var _this;
|
|
5301
5312
|
|
|
5302
5313
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5305,7 +5316,7 @@ function (_Component) {
|
|
|
5305
5316
|
args[_key] = arguments[_key];
|
|
5306
5317
|
}
|
|
5307
5318
|
|
|
5308
|
-
_this =
|
|
5319
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5309
5320
|
|
|
5310
5321
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5311
5322
|
|
|
@@ -5434,9 +5445,9 @@ function (_Component) {
|
|
|
5434
5445
|
height: '100%',
|
|
5435
5446
|
display: display
|
|
5436
5447
|
};
|
|
5437
|
-
return _react["default"].createElement("div", {
|
|
5448
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5438
5449
|
style: style
|
|
5439
|
-
}, _react["default"].createElement("div", {
|
|
5450
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
5440
5451
|
ref: this.ref
|
|
5441
5452
|
}));
|
|
5442
5453
|
}
|
|
@@ -5470,7 +5481,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5470
5481
|
});
|
|
5471
5482
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5472
5483
|
|
|
5473
|
-
var _react = _interopRequireWildcard(
|
|
5484
|
+
var _react = _interopRequireWildcard(React);
|
|
5474
5485
|
|
|
5475
5486
|
|
|
5476
5487
|
|
|
@@ -5494,12 +5505,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5494
5505
|
|
|
5495
5506
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5496
5507
|
|
|
5497
|
-
function
|
|
5508
|
+
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); }; }
|
|
5498
5509
|
|
|
5499
|
-
function
|
|
5510
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5500
5511
|
|
|
5501
5512
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5502
5513
|
|
|
5514
|
+
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; } }
|
|
5515
|
+
|
|
5516
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5517
|
+
|
|
5503
5518
|
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); }
|
|
5504
5519
|
|
|
5505
5520
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5510,14 +5525,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5510
5525
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5511
5526
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5512
5527
|
|
|
5513
|
-
var Mixcloud =
|
|
5514
|
-
/*#__PURE__*/
|
|
5515
|
-
function (_Component) {
|
|
5528
|
+
var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
5516
5529
|
_inherits(Mixcloud, _Component);
|
|
5517
5530
|
|
|
5518
|
-
|
|
5519
|
-
var _getPrototypeOf2;
|
|
5531
|
+
var _super = _createSuper(Mixcloud);
|
|
5520
5532
|
|
|
5533
|
+
function Mixcloud() {
|
|
5521
5534
|
var _this;
|
|
5522
5535
|
|
|
5523
5536
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5526,7 +5539,7 @@ function (_Component) {
|
|
|
5526
5539
|
args[_key] = arguments[_key];
|
|
5527
5540
|
}
|
|
5528
5541
|
|
|
5529
|
-
_this =
|
|
5542
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5530
5543
|
|
|
5531
5544
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5532
5545
|
|
|
@@ -5629,7 +5642,7 @@ function (_Component) {
|
|
|
5629
5642
|
})); // We have to give the iframe a key here to prevent a
|
|
5630
5643
|
// weird dialog appearing when loading a new track
|
|
5631
5644
|
|
|
5632
|
-
return _react["default"].createElement("iframe", {
|
|
5645
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
5633
5646
|
key: id,
|
|
5634
5647
|
ref: this.ref,
|
|
5635
5648
|
style: style,
|
|
@@ -5667,7 +5680,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5667
5680
|
});
|
|
5668
5681
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5669
5682
|
|
|
5670
|
-
var _react = _interopRequireWildcard(
|
|
5683
|
+
var _react = _interopRequireWildcard(React);
|
|
5671
5684
|
|
|
5672
5685
|
|
|
5673
5686
|
|
|
@@ -5689,23 +5702,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5689
5702
|
|
|
5690
5703
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5691
5704
|
|
|
5692
|
-
function
|
|
5705
|
+
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); }; }
|
|
5693
5706
|
|
|
5694
|
-
function
|
|
5707
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5695
5708
|
|
|
5696
5709
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5697
5710
|
|
|
5711
|
+
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; } }
|
|
5712
|
+
|
|
5713
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5714
|
+
|
|
5698
5715
|
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); }
|
|
5699
5716
|
|
|
5700
5717
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5701
5718
|
|
|
5702
5719
|
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; }
|
|
5703
5720
|
|
|
5721
|
+
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; } } }; }
|
|
5722
|
+
|
|
5723
|
+
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); }
|
|
5724
|
+
|
|
5725
|
+
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; }
|
|
5726
|
+
|
|
5704
5727
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5705
5728
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5706
5729
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5707
5730
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5708
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5731
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
|
|
5709
5732
|
var HLS_GLOBAL = 'Hls';
|
|
5710
5733
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5711
5734
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5714,12 +5737,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5714
5737
|
|
|
5715
5738
|
function canPlay(url) {
|
|
5716
5739
|
if (url instanceof Array) {
|
|
5717
|
-
var
|
|
5718
|
-
|
|
5719
|
-
var _iteratorError = undefined;
|
|
5740
|
+
var _iterator = _createForOfIteratorHelper(url),
|
|
5741
|
+
_step;
|
|
5720
5742
|
|
|
5721
5743
|
try {
|
|
5722
|
-
for (
|
|
5744
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5723
5745
|
var item = _step.value;
|
|
5724
5746
|
|
|
5725
5747
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5731,18 +5753,9 @@ function canPlay(url) {
|
|
|
5731
5753
|
}
|
|
5732
5754
|
}
|
|
5733
5755
|
} catch (err) {
|
|
5734
|
-
|
|
5735
|
-
_iteratorError = err;
|
|
5756
|
+
_iterator.e(err);
|
|
5736
5757
|
} finally {
|
|
5737
|
-
|
|
5738
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5739
|
-
_iterator["return"]();
|
|
5740
|
-
}
|
|
5741
|
-
} finally {
|
|
5742
|
-
if (_didIteratorError) {
|
|
5743
|
-
throw _iteratorError;
|
|
5744
|
-
}
|
|
5745
|
-
}
|
|
5758
|
+
_iterator.f();
|
|
5746
5759
|
}
|
|
5747
5760
|
|
|
5748
5761
|
return false;
|
|
@@ -5766,14 +5779,12 @@ function canEnablePIP(url) {
|
|
|
5766
5779
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5767
5780
|
}
|
|
5768
5781
|
|
|
5769
|
-
var FilePlayer =
|
|
5770
|
-
/*#__PURE__*/
|
|
5771
|
-
function (_Component) {
|
|
5782
|
+
var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
5772
5783
|
_inherits(FilePlayer, _Component);
|
|
5773
5784
|
|
|
5774
|
-
|
|
5775
|
-
var _getPrototypeOf2;
|
|
5785
|
+
var _super = _createSuper(FilePlayer);
|
|
5776
5786
|
|
|
5787
|
+
function FilePlayer() {
|
|
5777
5788
|
var _this;
|
|
5778
5789
|
|
|
5779
5790
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5782,7 +5793,7 @@ function (_Component) {
|
|
|
5782
5793
|
_args[_key] = arguments[_key];
|
|
5783
5794
|
}
|
|
5784
5795
|
|
|
5785
|
-
_this =
|
|
5796
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5786
5797
|
|
|
5787
5798
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5788
5799
|
var _this$props;
|
|
@@ -5869,19 +5880,19 @@ function (_Component) {
|
|
|
5869
5880
|
|
|
5870
5881
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
5871
5882
|
if (typeof source === 'string') {
|
|
5872
|
-
return _react["default"].createElement("source", {
|
|
5883
|
+
return /*#__PURE__*/_react["default"].createElement("source", {
|
|
5873
5884
|
key: index,
|
|
5874
5885
|
src: source
|
|
5875
5886
|
});
|
|
5876
5887
|
}
|
|
5877
5888
|
|
|
5878
|
-
return _react["default"].createElement("source", _extends({
|
|
5889
|
+
return /*#__PURE__*/_react["default"].createElement("source", _extends({
|
|
5879
5890
|
key: index
|
|
5880
5891
|
}, source));
|
|
5881
5892
|
});
|
|
5882
5893
|
|
|
5883
5894
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
5884
|
-
return _react["default"].createElement("track", _extends({
|
|
5895
|
+
return /*#__PURE__*/_react["default"].createElement("track", _extends({
|
|
5885
5896
|
key: index
|
|
5886
5897
|
}, track));
|
|
5887
5898
|
});
|
|
@@ -5919,6 +5930,10 @@ function (_Component) {
|
|
|
5919
5930
|
key: "componentWillUnmount",
|
|
5920
5931
|
value: function componentWillUnmount() {
|
|
5921
5932
|
this.removeListeners(this.player);
|
|
5933
|
+
|
|
5934
|
+
if (this.hls) {
|
|
5935
|
+
this.hls.destroy();
|
|
5936
|
+
}
|
|
5922
5937
|
}
|
|
5923
5938
|
}, {
|
|
5924
5939
|
key: "addListeners",
|
|
@@ -6049,10 +6064,6 @@ function (_Component) {
|
|
|
6049
6064
|
value: function stop() {
|
|
6050
6065
|
this.player.removeAttribute('src');
|
|
6051
6066
|
|
|
6052
|
-
if (this.hls) {
|
|
6053
|
-
this.hls.destroy();
|
|
6054
|
-
}
|
|
6055
|
-
|
|
6056
6067
|
if (this.dash) {
|
|
6057
6068
|
this.dash.reset();
|
|
6058
6069
|
}
|
|
@@ -6164,7 +6175,7 @@ function (_Component) {
|
|
|
6164
6175
|
width: width === 'auto' ? width : '100%',
|
|
6165
6176
|
height: height === 'auto' ? height : '100%'
|
|
6166
6177
|
};
|
|
6167
|
-
return _react["default"].createElement(Element, _extends({
|
|
6178
|
+
return /*#__PURE__*/_react["default"].createElement(Element, _extends({
|
|
6168
6179
|
ref: this.ref,
|
|
6169
6180
|
src: this.getSource(url),
|
|
6170
6181
|
style: style,
|
|
@@ -6236,7 +6247,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6236
6247
|
});
|
|
6237
6248
|
exports["default"] = void 0;
|
|
6238
6249
|
|
|
6239
|
-
var _react = _interopRequireWildcard(
|
|
6250
|
+
var _react = _interopRequireWildcard(React);
|
|
6240
6251
|
|
|
6241
6252
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6242
6253
|
|
|
@@ -6254,12 +6265,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6254
6265
|
|
|
6255
6266
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6256
6267
|
|
|
6257
|
-
function
|
|
6268
|
+
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); }; }
|
|
6258
6269
|
|
|
6259
|
-
function
|
|
6270
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6260
6271
|
|
|
6261
6272
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6262
6273
|
|
|
6274
|
+
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; } }
|
|
6275
|
+
|
|
6276
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6277
|
+
|
|
6263
6278
|
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); }
|
|
6264
6279
|
|
|
6265
6280
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6268,14 +6283,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6268
6283
|
|
|
6269
6284
|
var ICON_SIZE = '64px';
|
|
6270
6285
|
|
|
6271
|
-
var Preview =
|
|
6272
|
-
/*#__PURE__*/
|
|
6273
|
-
function (_Component) {
|
|
6286
|
+
var Preview = /*#__PURE__*/function (_Component) {
|
|
6274
6287
|
_inherits(Preview, _Component);
|
|
6275
6288
|
|
|
6276
|
-
|
|
6277
|
-
var _getPrototypeOf2;
|
|
6289
|
+
var _super = _createSuper(Preview);
|
|
6278
6290
|
|
|
6291
|
+
function Preview() {
|
|
6279
6292
|
var _this;
|
|
6280
6293
|
|
|
6281
6294
|
_classCallCheck(this, Preview);
|
|
@@ -6284,7 +6297,7 @@ function (_Component) {
|
|
|
6284
6297
|
args[_key] = arguments[_key];
|
|
6285
6298
|
}
|
|
6286
6299
|
|
|
6287
|
-
_this =
|
|
6300
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6288
6301
|
|
|
6289
6302
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6290
6303
|
|
|
@@ -6382,15 +6395,15 @@ function (_Component) {
|
|
|
6382
6395
|
}
|
|
6383
6396
|
};
|
|
6384
6397
|
|
|
6385
|
-
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6398
|
+
var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
|
|
6386
6399
|
style: styles.shadow,
|
|
6387
6400
|
className: "react-player__shadow"
|
|
6388
|
-
}, _react["default"].createElement("div", {
|
|
6401
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
6389
6402
|
style: styles.playIcon,
|
|
6390
6403
|
className: "react-player__play-icon"
|
|
6391
6404
|
}));
|
|
6392
6405
|
|
|
6393
|
-
return _react["default"].createElement("div", {
|
|
6406
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
6394
6407
|
style: styles.preview,
|
|
6395
6408
|
className: "react-player__preview",
|
|
6396
6409
|
onClick: onClick
|
|
@@ -6413,7 +6426,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6413
6426
|
});
|
|
6414
6427
|
exports["default"] = renderPreloadPlayers;
|
|
6415
6428
|
|
|
6416
|
-
var _react = _interopRequireDefault(
|
|
6429
|
+
var _react = _interopRequireDefault(React);
|
|
6417
6430
|
|
|
6418
6431
|
var _Player = _interopRequireDefault(Player_1);
|
|
6419
6432
|
|
|
@@ -6427,6 +6440,12 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6427
6440
|
|
|
6428
6441
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6429
6442
|
|
|
6443
|
+
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; } } }; }
|
|
6444
|
+
|
|
6445
|
+
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); }
|
|
6446
|
+
|
|
6447
|
+
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; }
|
|
6448
|
+
|
|
6430
6449
|
var PRELOAD_PLAYERS = [{
|
|
6431
6450
|
Player: YouTube_1.YouTube,
|
|
6432
6451
|
configKey: 'youtube',
|
|
@@ -6447,16 +6466,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6447
6466
|
|
|
6448
6467
|
function renderPreloadPlayers(url, controls, config) {
|
|
6449
6468
|
var players = [];
|
|
6450
|
-
|
|
6451
|
-
var
|
|
6452
|
-
|
|
6469
|
+
|
|
6470
|
+
var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
|
|
6471
|
+
_step;
|
|
6453
6472
|
|
|
6454
6473
|
try {
|
|
6455
|
-
for (
|
|
6474
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6456
6475
|
var player = _step.value;
|
|
6457
6476
|
|
|
6458
6477
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6459
|
-
players.push(_react["default"].createElement(_Player["default"], {
|
|
6478
|
+
players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
|
|
6460
6479
|
key: player.Player.displayName,
|
|
6461
6480
|
activePlayer: player.Player,
|
|
6462
6481
|
url: player.url,
|
|
@@ -6468,18 +6487,9 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6468
6487
|
}
|
|
6469
6488
|
}
|
|
6470
6489
|
} catch (err) {
|
|
6471
|
-
|
|
6472
|
-
_iteratorError = err;
|
|
6490
|
+
_iterator.e(err);
|
|
6473
6491
|
} finally {
|
|
6474
|
-
|
|
6475
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6476
|
-
_iterator["return"]();
|
|
6477
|
-
}
|
|
6478
|
-
} finally {
|
|
6479
|
-
if (_didIteratorError) {
|
|
6480
|
-
throw _iteratorError;
|
|
6481
|
-
}
|
|
6482
|
-
}
|
|
6492
|
+
_iterator.f();
|
|
6483
6493
|
}
|
|
6484
6494
|
|
|
6485
6495
|
return players;
|
|
@@ -6555,7 +6565,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6555
6565
|
});
|
|
6556
6566
|
exports["default"] = void 0;
|
|
6557
6567
|
|
|
6558
|
-
var _react = _interopRequireWildcard(
|
|
6568
|
+
var _react = _interopRequireWildcard(React);
|
|
6559
6569
|
|
|
6560
6570
|
|
|
6561
6571
|
|
|
@@ -6603,13 +6613,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6603
6613
|
|
|
6604
6614
|
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); }
|
|
6605
6615
|
|
|
6606
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6616
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6617
|
+
|
|
6618
|
+
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."); }
|
|
6619
|
+
|
|
6620
|
+
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); }
|
|
6607
6621
|
|
|
6608
|
-
function
|
|
6622
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
6609
6623
|
|
|
6610
|
-
function
|
|
6624
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6611
6625
|
|
|
6612
|
-
function
|
|
6626
|
+
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; }
|
|
6613
6627
|
|
|
6614
6628
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6615
6629
|
|
|
@@ -6617,12 +6631,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6617
6631
|
|
|
6618
6632
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6619
6633
|
|
|
6620
|
-
function
|
|
6634
|
+
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); }; }
|
|
6621
6635
|
|
|
6622
|
-
function
|
|
6636
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6623
6637
|
|
|
6624
6638
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6625
6639
|
|
|
6640
|
+
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; } }
|
|
6641
|
+
|
|
6642
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6643
|
+
|
|
6626
6644
|
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); }
|
|
6627
6645
|
|
|
6628
6646
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6632,14 +6650,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6632
6650
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6633
6651
|
var customPlayers = [];
|
|
6634
6652
|
|
|
6635
|
-
var ReactPlayer =
|
|
6636
|
-
/*#__PURE__*/
|
|
6637
|
-
function (_Component) {
|
|
6653
|
+
var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
6638
6654
|
_inherits(ReactPlayer, _Component);
|
|
6639
6655
|
|
|
6640
|
-
|
|
6641
|
-
var _getPrototypeOf2;
|
|
6656
|
+
var _super = _createSuper(ReactPlayer);
|
|
6642
6657
|
|
|
6658
|
+
function ReactPlayer() {
|
|
6643
6659
|
var _this;
|
|
6644
6660
|
|
|
6645
6661
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6648,7 +6664,7 @@ function (_Component) {
|
|
|
6648
6664
|
args[_key] = arguments[_key];
|
|
6649
6665
|
}
|
|
6650
6666
|
|
|
6651
|
-
_this =
|
|
6667
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6652
6668
|
|
|
6653
6669
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6654
6670
|
|
|
@@ -6759,7 +6775,7 @@ function (_Component) {
|
|
|
6759
6775
|
key: "renderActivePlayer",
|
|
6760
6776
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6761
6777
|
if (!url) return null;
|
|
6762
|
-
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6778
|
+
return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6763
6779
|
key: activePlayer.displayName,
|
|
6764
6780
|
ref: this.activePlayerRef,
|
|
6765
6781
|
config: this.config,
|
|
@@ -6796,14 +6812,14 @@ function (_Component) {
|
|
|
6796
6812
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6797
6813
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6798
6814
|
|
|
6799
|
-
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6815
|
+
var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
|
|
6800
6816
|
url: url,
|
|
6801
6817
|
light: light,
|
|
6802
6818
|
playIcon: playIcon,
|
|
6803
6819
|
onClick: this.handleClickPreview
|
|
6804
6820
|
});
|
|
6805
6821
|
|
|
6806
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
6822
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
6807
6823
|
ref: this.wrapperRef,
|
|
6808
6824
|
style: _objectSpread({}, style, {
|
|
6809
6825
|
width: width,
|
|
@@ -6863,20 +6879,20 @@ var Audio = function Audio(_ref) {
|
|
|
6863
6879
|
var node = _ref.node;
|
|
6864
6880
|
|
|
6865
6881
|
if (node.uploadAudio) {
|
|
6866
|
-
return
|
|
6882
|
+
return React.createElement(
|
|
6867
6883
|
'div',
|
|
6868
6884
|
{ className: 'audio d-block text-center mb-3' },
|
|
6869
|
-
|
|
6885
|
+
React.createElement(
|
|
6870
6886
|
'audio',
|
|
6871
6887
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
6872
|
-
|
|
6873
|
-
|
|
6888
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
6889
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
6874
6890
|
'Your browser does not support the audio element.'
|
|
6875
6891
|
),
|
|
6876
|
-
node.caption &&
|
|
6892
|
+
node.caption && React.createElement(
|
|
6877
6893
|
'p',
|
|
6878
6894
|
{ style: { fontSize: '.9rem' } },
|
|
6879
|
-
|
|
6895
|
+
React.createElement(
|
|
6880
6896
|
'em',
|
|
6881
6897
|
null,
|
|
6882
6898
|
node.caption
|
|
@@ -6886,15 +6902,15 @@ var Audio = function Audio(_ref) {
|
|
|
6886
6902
|
} else if (node.audioFilePth) {
|
|
6887
6903
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
6888
6904
|
if (hostname === 'embeds.audioboom.com') {
|
|
6889
|
-
return
|
|
6905
|
+
return React.createElement(
|
|
6890
6906
|
'div',
|
|
6891
6907
|
null,
|
|
6892
|
-
|
|
6908
|
+
React.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
6893
6909
|
' ',
|
|
6894
|
-
node.caption &&
|
|
6910
|
+
node.caption && React.createElement(
|
|
6895
6911
|
'p',
|
|
6896
6912
|
{ style: { fontSize: '.9rem' } },
|
|
6897
|
-
|
|
6913
|
+
React.createElement(
|
|
6898
6914
|
'em',
|
|
6899
6915
|
null,
|
|
6900
6916
|
node.caption
|
|
@@ -6902,14 +6918,14 @@ var Audio = function Audio(_ref) {
|
|
|
6902
6918
|
)
|
|
6903
6919
|
);
|
|
6904
6920
|
}
|
|
6905
|
-
return
|
|
6921
|
+
return React.createElement(
|
|
6906
6922
|
'div',
|
|
6907
6923
|
{ className: 'audio' },
|
|
6908
|
-
|
|
6909
|
-
node.caption &&
|
|
6924
|
+
React.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
6925
|
+
node.caption && React.createElement(
|
|
6910
6926
|
'p',
|
|
6911
6927
|
{ style: { fontSize: '.9rem' } },
|
|
6912
|
-
|
|
6928
|
+
React.createElement(
|
|
6913
6929
|
'em',
|
|
6914
6930
|
null,
|
|
6915
6931
|
node.caption
|
|
@@ -7010,10 +7026,10 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
7010
7026
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
|
|
7011
7027
|
};
|
|
7012
7028
|
|
|
7013
|
-
return
|
|
7029
|
+
return React.createElement(
|
|
7014
7030
|
'div',
|
|
7015
7031
|
null,
|
|
7016
|
-
vidLoaded &&
|
|
7032
|
+
vidLoaded && React.createElement(
|
|
7017
7033
|
'video',
|
|
7018
7034
|
{
|
|
7019
7035
|
poster: thumbnail || '',
|
|
@@ -7031,7 +7047,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
7031
7047
|
onPlay: function onPlay(e) {
|
|
7032
7048
|
return handleOnPlay(e);
|
|
7033
7049
|
} },
|
|
7034
|
-
|
|
7050
|
+
React.createElement('source', { src: url, type: 'video/mp4' }),
|
|
7035
7051
|
'Your browser does not support the video tag.'
|
|
7036
7052
|
)
|
|
7037
7053
|
);
|
|
@@ -7301,13 +7317,13 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7301
7317
|
}
|
|
7302
7318
|
};
|
|
7303
7319
|
|
|
7304
|
-
return
|
|
7320
|
+
return React.createElement(
|
|
7305
7321
|
'div',
|
|
7306
7322
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7307
|
-
|
|
7323
|
+
React.createElement(
|
|
7308
7324
|
'div',
|
|
7309
7325
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7310
|
-
vidUrl && vidType == 'youtube' &&
|
|
7326
|
+
vidUrl && vidType == 'youtube' && React.createElement(YouTube, {
|
|
7311
7327
|
className: 'fluid-iframe',
|
|
7312
7328
|
videoId: getYoutubeId(vidUrl),
|
|
7313
7329
|
opts: opts,
|
|
@@ -7318,10 +7334,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7318
7334
|
return handleOnEnd(e);
|
|
7319
7335
|
}
|
|
7320
7336
|
}),
|
|
7321
|
-
vidUrl && vidType == 'mp4' &&
|
|
7322
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7323
|
-
|
|
7324
|
-
series &&
|
|
7337
|
+
vidUrl && vidType == 'mp4' && React.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7338
|
+
vidUrl && vidType == 'brightcove' && React.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7339
|
+
React.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7340
|
+
series && React.createElement(
|
|
7325
7341
|
'div',
|
|
7326
7342
|
{
|
|
7327
7343
|
className: 'vid-series',
|
|
@@ -7331,10 +7347,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7331
7347
|
maxHeight: '100%',
|
|
7332
7348
|
paddingBottom: '0'
|
|
7333
7349
|
} },
|
|
7334
|
-
|
|
7350
|
+
React.createElement(
|
|
7335
7351
|
'p',
|
|
7336
7352
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7337
|
-
|
|
7353
|
+
React.createElement(
|
|
7338
7354
|
'b',
|
|
7339
7355
|
{ style: { fontSize: '1.25em' } },
|
|
7340
7356
|
'Now Playing:'
|
|
@@ -7342,36 +7358,36 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7342
7358
|
' ',
|
|
7343
7359
|
seriesData[series ? series - 1 : 0].title
|
|
7344
7360
|
),
|
|
7345
|
-
vidUrl &&
|
|
7361
|
+
vidUrl && React.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7346
7362
|
)
|
|
7347
7363
|
),
|
|
7348
|
-
|
|
7349
|
-
|
|
7364
|
+
React.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7365
|
+
React.createElement(
|
|
7350
7366
|
'div',
|
|
7351
7367
|
{ className: 'mt-2 mb-5' },
|
|
7352
|
-
series &&
|
|
7368
|
+
series && React.createElement(
|
|
7353
7369
|
'h3',
|
|
7354
7370
|
null,
|
|
7355
7371
|
'Episode ',
|
|
7356
7372
|
series
|
|
7357
7373
|
),
|
|
7358
|
-
Videos[series - 1] &&
|
|
7374
|
+
Videos[series - 1] && React.createElement(
|
|
7359
7375
|
'h2',
|
|
7360
7376
|
{ className: 'mb-3' },
|
|
7361
7377
|
Videos[series - 1].title
|
|
7362
7378
|
),
|
|
7363
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7379
|
+
Videos[series - 1] && Videos[series - 1].intro && React.createElement(
|
|
7364
7380
|
'p',
|
|
7365
7381
|
{ className: 'mb-3' },
|
|
7366
|
-
|
|
7382
|
+
React.createElement(
|
|
7367
7383
|
'em',
|
|
7368
7384
|
null,
|
|
7369
7385
|
Videos[series - 1].intro
|
|
7370
7386
|
)
|
|
7371
7387
|
),
|
|
7372
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
7388
|
+
Videos[series - 1] && Videos[series - 1].text && React.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7373
7389
|
),
|
|
7374
|
-
|
|
7390
|
+
React.createElement(
|
|
7375
7391
|
'style',
|
|
7376
7392
|
{ jsx: 'true' },
|
|
7377
7393
|
'\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 '
|
|
@@ -7424,54 +7440,54 @@ var Poll = function Poll(_ref) {
|
|
|
7424
7440
|
return acc;
|
|
7425
7441
|
}
|
|
7426
7442
|
}, 0);
|
|
7427
|
-
return
|
|
7428
|
-
|
|
7443
|
+
return React.createElement(
|
|
7444
|
+
React.Fragment,
|
|
7429
7445
|
null,
|
|
7430
|
-
question &&
|
|
7446
|
+
question && React.createElement(
|
|
7431
7447
|
'p',
|
|
7432
7448
|
{ className: 'font-weight-bold' },
|
|
7433
7449
|
question
|
|
7434
7450
|
),
|
|
7435
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7451
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7436
7452
|
'form',
|
|
7437
7453
|
{ onSubmit: function onSubmit(e) {
|
|
7438
7454
|
return onSubmitPoll(e);
|
|
7439
7455
|
} },
|
|
7440
7456
|
choices && choices.map(function (choice) {
|
|
7441
|
-
return
|
|
7457
|
+
return React.createElement(
|
|
7442
7458
|
'div',
|
|
7443
7459
|
{ key: choice._key },
|
|
7444
|
-
|
|
7460
|
+
React.createElement(
|
|
7445
7461
|
'label',
|
|
7446
7462
|
{ className: 'pl-2' },
|
|
7447
|
-
|
|
7463
|
+
React.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7448
7464
|
return setSelectedChoice(e.target.value);
|
|
7449
7465
|
} }),
|
|
7450
7466
|
' ' + choice.choiceText
|
|
7451
7467
|
)
|
|
7452
7468
|
);
|
|
7453
7469
|
}),
|
|
7454
|
-
|
|
7470
|
+
React.createElement(
|
|
7455
7471
|
Button,
|
|
7456
7472
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7457
7473
|
'Vote'
|
|
7458
7474
|
)
|
|
7459
7475
|
),
|
|
7460
|
-
|
|
7476
|
+
React.createElement(
|
|
7461
7477
|
'div',
|
|
7462
7478
|
{ className: 'progress-container' },
|
|
7463
7479
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7464
7480
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7465
|
-
return
|
|
7481
|
+
return React.createElement(
|
|
7466
7482
|
'div',
|
|
7467
7483
|
{ key: choice._key, className: 'mb-3' },
|
|
7468
|
-
|
|
7484
|
+
React.createElement(
|
|
7469
7485
|
'span',
|
|
7470
7486
|
null,
|
|
7471
7487
|
choice.choiceText
|
|
7472
7488
|
),
|
|
7473
|
-
|
|
7474
|
-
|
|
7489
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7490
|
+
React.createElement(
|
|
7475
7491
|
'span',
|
|
7476
7492
|
{ className: 'float-right' },
|
|
7477
7493
|
percentage,
|
|
@@ -7482,14 +7498,14 @@ var Poll = function Poll(_ref) {
|
|
|
7482
7498
|
);
|
|
7483
7499
|
})
|
|
7484
7500
|
),
|
|
7485
|
-
showAnswer &&
|
|
7501
|
+
showAnswer && React.createElement(
|
|
7486
7502
|
'h4',
|
|
7487
7503
|
{ className: 'text-center small p-3' },
|
|
7488
7504
|
'Total Votes: ',
|
|
7489
7505
|
choicesTotalCount
|
|
7490
7506
|
),
|
|
7491
|
-
showAnswer && response &&
|
|
7492
|
-
|
|
7507
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7508
|
+
React.createElement(
|
|
7493
7509
|
'style',
|
|
7494
7510
|
{ jsx: 'true' },
|
|
7495
7511
|
'\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7497,7 +7513,7 @@ var Poll = function Poll(_ref) {
|
|
|
7497
7513
|
);
|
|
7498
7514
|
};
|
|
7499
7515
|
|
|
7500
|
-
var numberOfPaginations =
|
|
7516
|
+
var numberOfPaginations = main_39 ? 4 : 10;
|
|
7501
7517
|
|
|
7502
7518
|
var Quiz = function Quiz(_ref) {
|
|
7503
7519
|
var quizzes = _ref.quizzes,
|
|
@@ -7608,20 +7624,20 @@ var Quiz = function Quiz(_ref) {
|
|
|
7608
7624
|
};
|
|
7609
7625
|
|
|
7610
7626
|
var renderPagination = function renderPagination() {
|
|
7611
|
-
return
|
|
7627
|
+
return React.createElement(
|
|
7612
7628
|
Pagination,
|
|
7613
|
-
{ className: 'p-0 m-0', size:
|
|
7614
|
-
|
|
7629
|
+
{ className: 'p-0 m-0', size: main_39 && 'sm' },
|
|
7630
|
+
React.createElement(Pagination.First, { onClick: function onClick() {
|
|
7615
7631
|
return changePage('first');
|
|
7616
7632
|
}, disabled: currentPage === 1 }),
|
|
7617
|
-
|
|
7633
|
+
React.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7618
7634
|
return changePage('prev');
|
|
7619
7635
|
}, disabled: currentPage === 1 }),
|
|
7620
|
-
|
|
7636
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7621
7637
|
return renderNewPages('prev');
|
|
7622
7638
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7623
7639
|
pages.map(function (page) {
|
|
7624
|
-
return
|
|
7640
|
+
return React.createElement(
|
|
7625
7641
|
Pagination.Item,
|
|
7626
7642
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7627
7643
|
return changePage(page);
|
|
@@ -7629,41 +7645,41 @@ var Quiz = function Quiz(_ref) {
|
|
|
7629
7645
|
page
|
|
7630
7646
|
);
|
|
7631
7647
|
}),
|
|
7632
|
-
|
|
7648
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7633
7649
|
return renderNewPages('next');
|
|
7634
7650
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7635
|
-
|
|
7651
|
+
React.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7636
7652
|
return changePage('next');
|
|
7637
7653
|
}, disabled: currentPage === pageCount }),
|
|
7638
|
-
|
|
7654
|
+
React.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7639
7655
|
return changePage('last');
|
|
7640
7656
|
}, disabled: currentPage === pageCount })
|
|
7641
7657
|
);
|
|
7642
7658
|
};
|
|
7643
7659
|
|
|
7644
|
-
return
|
|
7645
|
-
|
|
7660
|
+
return React.createElement(
|
|
7661
|
+
React.Fragment,
|
|
7646
7662
|
null,
|
|
7647
|
-
quizzes[currentPage - 1] &&
|
|
7648
|
-
!showAnswer &&
|
|
7663
|
+
quizzes[currentPage - 1] && React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
7664
|
+
!showAnswer && React.createElement(
|
|
7649
7665
|
Button$1,
|
|
7650
7666
|
{ onClick: function onClick() {
|
|
7651
7667
|
return setShowAnswer(true);
|
|
7652
7668
|
}, variant: 'info', block: true },
|
|
7653
7669
|
'Please click here for answer'
|
|
7654
7670
|
),
|
|
7655
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
7656
|
-
|
|
7671
|
+
quizzes[currentPage - 1] && showAnswer && React.createElement(
|
|
7672
|
+
React.Fragment,
|
|
7657
7673
|
null,
|
|
7658
|
-
|
|
7674
|
+
React.createElement(
|
|
7659
7675
|
'h4',
|
|
7660
7676
|
null,
|
|
7661
7677
|
'Answer:'
|
|
7662
7678
|
),
|
|
7663
|
-
|
|
7679
|
+
React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
7664
7680
|
),
|
|
7665
|
-
|
|
7666
|
-
pageCount > 1 &&
|
|
7681
|
+
React.createElement('br', null),
|
|
7682
|
+
pageCount > 1 && React.createElement(
|
|
7667
7683
|
'div',
|
|
7668
7684
|
{ className: 'd-flex justify-content-center' },
|
|
7669
7685
|
renderPagination()
|
|
@@ -7674,10 +7690,10 @@ var Quiz = function Quiz(_ref) {
|
|
|
7674
7690
|
var Leads = function Leads(_ref) {
|
|
7675
7691
|
var url = _ref.url;
|
|
7676
7692
|
|
|
7677
|
-
return
|
|
7693
|
+
return React.createElement(
|
|
7678
7694
|
'div',
|
|
7679
7695
|
{ className: 'd-block text-center mb-3' },
|
|
7680
|
-
url &&
|
|
7696
|
+
url && React.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
7681
7697
|
);
|
|
7682
7698
|
};
|
|
7683
7699
|
|
|
@@ -7725,42 +7741,42 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
7725
7741
|
}
|
|
7726
7742
|
};
|
|
7727
7743
|
|
|
7728
|
-
return
|
|
7744
|
+
return React.createElement(
|
|
7729
7745
|
'div',
|
|
7730
7746
|
{ ref: carouselRef, className: 'mt-3 mb-4' },
|
|
7731
|
-
|
|
7747
|
+
React.createElement(
|
|
7732
7748
|
Carousel,
|
|
7733
7749
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
7734
7750
|
slides && slides.map(function (slide) {
|
|
7735
7751
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
7736
|
-
return
|
|
7752
|
+
return React.createElement(
|
|
7737
7753
|
Carousel.Item,
|
|
7738
7754
|
{ key: slide._key },
|
|
7739
|
-
|
|
7755
|
+
React.createElement(
|
|
7740
7756
|
'a',
|
|
7741
7757
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
7742
|
-
|
|
7758
|
+
React.createElement(
|
|
7743
7759
|
LazyLoad,
|
|
7744
7760
|
null,
|
|
7745
|
-
|
|
7761
|
+
React.createElement('img', { src: urlFor$1(slide.slideshowImage, client).url(), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
7746
7762
|
)
|
|
7747
7763
|
),
|
|
7748
|
-
|
|
7764
|
+
React.createElement(
|
|
7749
7765
|
'div',
|
|
7750
7766
|
{ className: 'p-2' },
|
|
7751
|
-
slide.slideshowImage.caption &&
|
|
7767
|
+
slide.slideshowImage.caption && React.createElement(
|
|
7752
7768
|
'h3',
|
|
7753
7769
|
{ style: { padding: '0px' } },
|
|
7754
7770
|
slide.slideshowImage.caption
|
|
7755
7771
|
),
|
|
7756
|
-
slide.description &&
|
|
7772
|
+
slide.description && React.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
7757
7773
|
)
|
|
7758
7774
|
);
|
|
7759
7775
|
}
|
|
7760
7776
|
return null;
|
|
7761
7777
|
})
|
|
7762
7778
|
),
|
|
7763
|
-
|
|
7779
|
+
React.createElement(
|
|
7764
7780
|
'style',
|
|
7765
7781
|
{ jsx: 'true' },
|
|
7766
7782
|
'\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 '
|
|
@@ -7779,10 +7795,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
7779
7795
|
sizes = _props$node.sizes,
|
|
7780
7796
|
sizeMapping = _props$node.sizeMapping;
|
|
7781
7797
|
|
|
7782
|
-
return
|
|
7798
|
+
return React.createElement(
|
|
7783
7799
|
'div',
|
|
7784
7800
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
7785
|
-
|
|
7801
|
+
React.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
7786
7802
|
);
|
|
7787
7803
|
};
|
|
7788
7804
|
|
|
@@ -7803,15 +7819,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
7803
7819
|
|
|
7804
7820
|
var htmlContent = '\n <script needsegmentsupport="true" type="text/javascript" src="https://mjhlifesciences.formstack.com/forms/js.php/' + FormID + '"></script>\n <noscript><a href="https://mjhlifesciences.formstack.com/forms/' + FormID + '" title="Online Form">' + Caption + '</a></noscript>\n ';
|
|
7805
7821
|
|
|
7806
|
-
return
|
|
7822
|
+
return React.createElement(
|
|
7807
7823
|
'div',
|
|
7808
7824
|
{ ref: formstackRef },
|
|
7809
|
-
|
|
7825
|
+
React.createElement(
|
|
7810
7826
|
'h4',
|
|
7811
7827
|
{ className: 'formstack-caption' },
|
|
7812
7828
|
Caption
|
|
7813
7829
|
),
|
|
7814
|
-
|
|
7830
|
+
React.createElement('div', { dangerouslySetInnerHTML: createMarkup(htmlContent) })
|
|
7815
7831
|
);
|
|
7816
7832
|
};
|
|
7817
7833
|
|
|
@@ -7831,29 +7847,29 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
7831
7847
|
}
|
|
7832
7848
|
});
|
|
7833
7849
|
if (medias && medias.length > 0) {
|
|
7834
|
-
return
|
|
7850
|
+
return React.createElement(
|
|
7835
7851
|
'div',
|
|
7836
7852
|
{ className: 'multi-media-container' },
|
|
7837
|
-
|
|
7853
|
+
React.createElement(
|
|
7838
7854
|
Row,
|
|
7839
7855
|
{ noGutters: true },
|
|
7840
7856
|
medias.map(function (media) {
|
|
7841
|
-
return
|
|
7857
|
+
return React.createElement(
|
|
7842
7858
|
Col,
|
|
7843
7859
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
7844
|
-
|
|
7860
|
+
React.createElement(
|
|
7845
7861
|
'a',
|
|
7846
|
-
_extends
|
|
7862
|
+
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
7847
7863
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
7848
|
-
|
|
7864
|
+
React.createElement(
|
|
7849
7865
|
'div',
|
|
7850
7866
|
{ className: 'multi-media-image-container' },
|
|
7851
|
-
imageBox &&
|
|
7867
|
+
imageBox && React.createElement(
|
|
7852
7868
|
LazyLoad,
|
|
7853
7869
|
{ once: true },
|
|
7854
|
-
|
|
7870
|
+
React.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor$2(media.poster, client).url(), alt: media.alt })
|
|
7855
7871
|
),
|
|
7856
|
-
media.caption &&
|
|
7872
|
+
media.caption && React.createElement(
|
|
7857
7873
|
'span',
|
|
7858
7874
|
{ className: 'multi-media-caption' },
|
|
7859
7875
|
media.caption
|
|
@@ -7863,7 +7879,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
7863
7879
|
);
|
|
7864
7880
|
})
|
|
7865
7881
|
),
|
|
7866
|
-
|
|
7882
|
+
React.createElement(
|
|
7867
7883
|
'style',
|
|
7868
7884
|
{ jsx: 'true' },
|
|
7869
7885
|
'\n .multi-media-container {\n margin-bottom: 1rem;\n }\n .multi-media-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-media-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-media-image[images-count=\'4\'] {\n height: 100px;\n }\n .multi-media-image[images-count=\'3\'] {\n height: 130px;\n }\n .multi-media-image[images-count=\'2\'] {\n height: 200px;\n }\n .multi-media-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-media-image[images-count=\'4\'] {\n height: 150px;\n }\n .multi-media-image[images-count=\'3\'] {\n height: 200px;\n }\n .multi-media-image[images-count=\'2\'] {\n height: 300px;\n }\n }\n\n .multi-media-caption {\n font-size: 90%;\n color: #6c757d;\n }\n '
|
|
@@ -7879,34 +7895,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7879
7895
|
var profileImage = arguments[6];
|
|
7880
7896
|
|
|
7881
7897
|
if (authorName && authorURL) {
|
|
7882
|
-
return
|
|
7898
|
+
return React.createElement(
|
|
7883
7899
|
'span',
|
|
7884
7900
|
null,
|
|
7885
|
-
|
|
7901
|
+
React.createElement(
|
|
7886
7902
|
'a',
|
|
7887
7903
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7888
7904
|
authorName
|
|
7889
7905
|
),
|
|
7890
|
-
|
|
7906
|
+
React.createElement(
|
|
7891
7907
|
Card,
|
|
7892
7908
|
{ className: 'author-details-card-' + index },
|
|
7893
|
-
|
|
7909
|
+
React.createElement(
|
|
7894
7910
|
Row$1,
|
|
7895
7911
|
null,
|
|
7896
|
-
profileImage &&
|
|
7912
|
+
profileImage && React.createElement(
|
|
7897
7913
|
Col$1,
|
|
7898
7914
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7899
|
-
|
|
7915
|
+
React.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7900
7916
|
),
|
|
7901
|
-
|
|
7917
|
+
React.createElement(
|
|
7902
7918
|
Col$1,
|
|
7903
7919
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7904
|
-
|
|
7920
|
+
React.createElement(
|
|
7905
7921
|
'h5',
|
|
7906
7922
|
null,
|
|
7907
7923
|
authorName
|
|
7908
7924
|
),
|
|
7909
|
-
|
|
7925
|
+
React.createElement(
|
|
7910
7926
|
'p',
|
|
7911
7927
|
null,
|
|
7912
7928
|
biography
|
|
@@ -7914,7 +7930,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7914
7930
|
)
|
|
7915
7931
|
)
|
|
7916
7932
|
),
|
|
7917
|
-
|
|
7933
|
+
React.createElement(
|
|
7918
7934
|
'style',
|
|
7919
7935
|
{ jsx: 'true' },
|
|
7920
7936
|
'\n .author-details-card-' + index + ' {\n display: none;\n position: absolute;\n width: 90%;\n max-width: 450px;\n z-index: 9999;\n }\n .author-details-card-' + index + ' h5 {\n font-weight: 500;\n }\n .author-details-link-' + index + ':hover + .author-details-card-' + index + ', .author-details-card-' + index + ':hover {\n display: block;\n box-shadow: 0px 0px 5px #aaa;\n padding: 15px;\n border-radius: 5px;\n }\n '
|
|
@@ -7922,7 +7938,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7922
7938
|
length !== index + 1 && ' , '
|
|
7923
7939
|
);
|
|
7924
7940
|
} else if (authorName) {
|
|
7925
|
-
return
|
|
7941
|
+
return React.createElement(
|
|
7926
7942
|
'span',
|
|
7927
7943
|
{ key: index },
|
|
7928
7944
|
authorName,
|
|
@@ -7968,7 +7984,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
7968
7984
|
}
|
|
7969
7985
|
};
|
|
7970
7986
|
|
|
7971
|
-
_this.wraperRef =
|
|
7987
|
+
_this.wraperRef = React.createRef();
|
|
7972
7988
|
_this.visible = false;
|
|
7973
7989
|
return _this;
|
|
7974
7990
|
}
|
|
@@ -7996,7 +8012,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
7996
8012
|
_props$id = _props.id,
|
|
7997
8013
|
id = _props$id === undefined ? '' : _props$id;
|
|
7998
8014
|
|
|
7999
|
-
return
|
|
8015
|
+
return React.createElement(
|
|
8000
8016
|
'div',
|
|
8001
8017
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8002
8018
|
this.props.children
|
|
@@ -8005,7 +8021,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8005
8021
|
}]);
|
|
8006
8022
|
|
|
8007
8023
|
return InscreenSensor;
|
|
8008
|
-
}(
|
|
8024
|
+
}(React.Component);
|
|
8009
8025
|
|
|
8010
8026
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8011
8027
|
var nodes = _ref.nodes,
|
|
@@ -8118,33 +8134,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8118
8134
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8119
8135
|
var showReading = show ? 'showReading' : '';
|
|
8120
8136
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8121
|
-
return
|
|
8137
|
+
return React.createElement(
|
|
8122
8138
|
'div',
|
|
8123
8139
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8124
|
-
|
|
8140
|
+
React.createElement(
|
|
8125
8141
|
'a',
|
|
8126
8142
|
{ onClick: function onClick(e) {
|
|
8127
8143
|
return articleCardClickHandler(e);
|
|
8128
8144
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8129
|
-
|
|
8145
|
+
React.createElement(
|
|
8130
8146
|
'div',
|
|
8131
8147
|
{ className: 'prevNext-thumbnail' },
|
|
8132
|
-
|
|
8133
|
-
|
|
8148
|
+
React.createElement('img', { src: urlFor(article.thumbnail.asset).url() }),
|
|
8149
|
+
React.createElement(
|
|
8134
8150
|
'div',
|
|
8135
8151
|
{ className: 'prevNext-reading ' + showReading },
|
|
8136
8152
|
articleLabel
|
|
8137
8153
|
)
|
|
8138
8154
|
),
|
|
8139
|
-
|
|
8155
|
+
React.createElement(
|
|
8140
8156
|
'div',
|
|
8141
8157
|
{ className: 'prevNext-summary' },
|
|
8142
|
-
|
|
8158
|
+
React.createElement(
|
|
8143
8159
|
'div',
|
|
8144
8160
|
{ className: 'prevNext-publishDate' },
|
|
8145
8161
|
moment(article.published).format('LL')
|
|
8146
8162
|
),
|
|
8147
|
-
|
|
8163
|
+
React.createElement(
|
|
8148
8164
|
'h2',
|
|
8149
8165
|
{ className: 'prevNext-title' },
|
|
8150
8166
|
article.title
|
|
@@ -8193,7 +8209,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8193
8209
|
|
|
8194
8210
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8195
8211
|
if (biography) {
|
|
8196
|
-
return
|
|
8212
|
+
return React.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8197
8213
|
}
|
|
8198
8214
|
};
|
|
8199
8215
|
|
|
@@ -8279,7 +8295,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8279
8295
|
//console.log('useLayoutEffect')
|
|
8280
8296
|
if (!firstLoad) {
|
|
8281
8297
|
setUpArrowClicked(false);
|
|
8282
|
-
if (
|
|
8298
|
+
if (main_40) {
|
|
8283
8299
|
grabLoadedAds();
|
|
8284
8300
|
} else {
|
|
8285
8301
|
scrollToArticle();
|
|
@@ -8303,7 +8319,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8303
8319
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8304
8320
|
if (pageview) pageview(path);
|
|
8305
8321
|
|
|
8306
|
-
if (!
|
|
8322
|
+
if (!main_40) {
|
|
8307
8323
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8308
8324
|
if (window.googletag && googletag.pubadsReady) {
|
|
8309
8325
|
lib_3.refresh();
|
|
@@ -8311,7 +8327,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8311
8327
|
});
|
|
8312
8328
|
}
|
|
8313
8329
|
//Refresh leaderboard ad on mobile
|
|
8314
|
-
if (
|
|
8330
|
+
if (main_40) {
|
|
8315
8331
|
var leaderboardSlotId = '';
|
|
8316
8332
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8317
8333
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8351,38 +8367,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8351
8367
|
setSensorVisible(false);
|
|
8352
8368
|
};
|
|
8353
8369
|
|
|
8354
|
-
return
|
|
8355
|
-
|
|
8370
|
+
return React.createElement(
|
|
8371
|
+
React.Fragment,
|
|
8356
8372
|
null,
|
|
8357
|
-
|
|
8373
|
+
React.createElement(
|
|
8358
8374
|
'div',
|
|
8359
8375
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8360
|
-
|
|
8376
|
+
React.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8361
8377
|
return handleArrowClick();
|
|
8362
8378
|
} })
|
|
8363
8379
|
),
|
|
8364
|
-
|
|
8365
|
-
|
|
8380
|
+
React.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8381
|
+
React.createElement(
|
|
8366
8382
|
'div',
|
|
8367
8383
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8368
|
-
|
|
8384
|
+
React.createElement(
|
|
8369
8385
|
'h5',
|
|
8370
8386
|
{ className: 'objective-title' },
|
|
8371
8387
|
nodes.seriesTitle
|
|
8372
8388
|
),
|
|
8373
|
-
|
|
8389
|
+
React.createElement(
|
|
8374
8390
|
'div',
|
|
8375
8391
|
{ className: 'prevNextWrapper' },
|
|
8376
8392
|
PrevNextCards(false, -1)
|
|
8377
8393
|
)
|
|
8378
8394
|
),
|
|
8379
|
-
|
|
8380
|
-
|
|
8395
|
+
React.createElement('hr', { className: 'article-seperater' }),
|
|
8396
|
+
React.createElement(
|
|
8381
8397
|
'div',
|
|
8382
8398
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8383
|
-
|
|
8399
|
+
main_40 && Ads.map(function (ad, index) {
|
|
8384
8400
|
if (index === 0) {
|
|
8385
|
-
return
|
|
8401
|
+
return React.createElement(
|
|
8386
8402
|
'div',
|
|
8387
8403
|
{
|
|
8388
8404
|
key: 'addid-1',
|
|
@@ -8402,14 +8418,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8402
8418
|
}
|
|
8403
8419
|
})
|
|
8404
8420
|
),
|
|
8405
|
-
|
|
8421
|
+
React.createElement(
|
|
8406
8422
|
'div',
|
|
8407
8423
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8408
8424
|
Articles.map(function (article, index) {
|
|
8409
|
-
return
|
|
8425
|
+
return React.createElement(
|
|
8410
8426
|
'div',
|
|
8411
8427
|
{ key: article.title },
|
|
8412
|
-
|
|
8428
|
+
React.createElement(
|
|
8413
8429
|
InscreenSensor,
|
|
8414
8430
|
{
|
|
8415
8431
|
visible: sensorVisible,
|
|
@@ -8427,84 +8443,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8427
8443
|
}
|
|
8428
8444
|
}
|
|
8429
8445
|
} },
|
|
8430
|
-
|
|
8446
|
+
React.createElement(
|
|
8431
8447
|
Head,
|
|
8432
8448
|
null,
|
|
8433
|
-
currentTitle !== null &&
|
|
8449
|
+
currentTitle !== null && React.createElement(
|
|
8434
8450
|
'title',
|
|
8435
8451
|
{ key: 'title' },
|
|
8436
8452
|
currentTitle
|
|
8437
8453
|
),
|
|
8438
|
-
currentSummary !== null &&
|
|
8439
|
-
currentURL !== null &&
|
|
8440
|
-
currentTitle !== null &&
|
|
8441
|
-
currentThumbnail !== null &&
|
|
8442
|
-
currentSummary !== null &&
|
|
8443
|
-
currentTitle !== null &&
|
|
8444
|
-
currentThumbnail !== null &&
|
|
8445
|
-
currentSummary !== null &&
|
|
8454
|
+
currentSummary !== null && React.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8455
|
+
currentURL !== null && React.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8456
|
+
currentTitle !== null && React.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8457
|
+
currentThumbnail !== null && React.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8458
|
+
currentSummary !== null && React.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8459
|
+
currentTitle !== null && React.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8460
|
+
currentThumbnail !== null && React.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8461
|
+
currentSummary !== null && React.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8446
8462
|
),
|
|
8447
|
-
|
|
8463
|
+
React.createElement(
|
|
8448
8464
|
'article',
|
|
8449
8465
|
{ className: 'article-wrapper' },
|
|
8450
|
-
|
|
8466
|
+
React.createElement(
|
|
8451
8467
|
'div',
|
|
8452
8468
|
{ className: 'article-publishDate' },
|
|
8453
8469
|
moment(article.published).format('LL')
|
|
8454
8470
|
),
|
|
8455
|
-
|
|
8471
|
+
React.createElement(
|
|
8456
8472
|
'div',
|
|
8457
8473
|
{ className: 'author-details-wrapper' },
|
|
8458
8474
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8459
|
-
return
|
|
8475
|
+
return React.createElement(
|
|
8460
8476
|
'span',
|
|
8461
8477
|
{ key: index },
|
|
8462
8478
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor(client, authorDetail.profileImage).url())
|
|
8463
8479
|
);
|
|
8464
8480
|
})
|
|
8465
8481
|
),
|
|
8466
|
-
|
|
8482
|
+
React.createElement(
|
|
8467
8483
|
'h2',
|
|
8468
8484
|
{ className: 'article-title' },
|
|
8469
8485
|
article.title
|
|
8470
8486
|
),
|
|
8471
|
-
|
|
8487
|
+
React.createElement(
|
|
8472
8488
|
'div',
|
|
8473
8489
|
{ className: 'mt-2 mb-2' },
|
|
8474
|
-
|
|
8490
|
+
React.createElement(BlockContent, _extends({
|
|
8475
8491
|
serializers: getSerializers,
|
|
8476
8492
|
videoAccountIDs: accountIDs,
|
|
8477
8493
|
blocks: article.text,
|
|
8478
8494
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8479
8495
|
}, client.config())),
|
|
8480
|
-
|
|
8496
|
+
React.createElement('hr', { className: 'article-seperater my-4' })
|
|
8481
8497
|
),
|
|
8482
|
-
Articles.length > 1 &&
|
|
8483
|
-
|
|
8498
|
+
Articles.length > 1 && React.createElement(
|
|
8499
|
+
React.Fragment,
|
|
8484
8500
|
null,
|
|
8485
|
-
|
|
8501
|
+
React.createElement(
|
|
8486
8502
|
'div',
|
|
8487
8503
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8488
|
-
|
|
8504
|
+
React.createElement(
|
|
8489
8505
|
'h5',
|
|
8490
8506
|
{ className: 'objective-title' },
|
|
8491
8507
|
nodes.seriesTitle
|
|
8492
8508
|
),
|
|
8493
|
-
|
|
8509
|
+
React.createElement(
|
|
8494
8510
|
'div',
|
|
8495
8511
|
{ className: 'prevNextWrapper' },
|
|
8496
8512
|
PrevNextCards(true, index)
|
|
8497
8513
|
)
|
|
8498
8514
|
),
|
|
8499
|
-
|
|
8515
|
+
React.createElement('hr', { className: 'article-seperater' })
|
|
8500
8516
|
)
|
|
8501
8517
|
),
|
|
8502
|
-
|
|
8518
|
+
React.createElement(
|
|
8503
8519
|
'div',
|
|
8504
8520
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8505
|
-
|
|
8521
|
+
main_40 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8506
8522
|
if (innerIndex === 0) {
|
|
8507
|
-
return
|
|
8523
|
+
return React.createElement(
|
|
8508
8524
|
'div',
|
|
8509
8525
|
{
|
|
8510
8526
|
key: 'addid-' + (index + 2),
|
|
@@ -8527,7 +8543,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8527
8543
|
)
|
|
8528
8544
|
);
|
|
8529
8545
|
}),
|
|
8530
|
-
|
|
8546
|
+
React.createElement(
|
|
8531
8547
|
'style',
|
|
8532
8548
|
{ jsx: 'true' },
|
|
8533
8549
|
'\n .scrollToTopArrow {\n position: fixed;\n top: 150px;\n display: flex;\n justify-content: center;\n width: ' + contentWidth + 'px;\n opacity: 1;\n z-index: 99999999999;\n visibility: hidden;\n }\n .scrollToTopArrow > svg {\n min-height: 50px;\n min-width: 50px;\n max-height: 50px;\n max-width: 50px;\n }\n .block-content > div p {\n padding: 0;\n }\n\n h2.article-title {\n padding: 0;\n font-weight: 500;\n }\n h4.article-title {\n padding: 0;\n font-weight: 500;\n }\n h4.prevNext-title {\n padding: 0;\n font-size: 1rem;\n font-weight: 500;\n }\n .article-wrapper {\n border: 1px solid #252525;\n border-radius: 5px;\n padding: 1rem 1rem 0 1rem;\n margin-bottom: 1rem;\n }\n .prevNext-reading {\n margin-top: -10px;\n width: 75%;\n text-align: center;\n background: white;\n border: 1px solid #252525;\n align-self: center;\n display: none;\n }\n .showReading {\n display: block;\n }\n .author-details-wrapper a {\n color: #252525;\n }\n .objective-prevNext-Wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n .objective-title {\n padding: 0 !important;\n }\n .prevNext-thumbnail {\n display: flex;\n flex-direction: column;\n min-width: 225px;\n max-width: 225px;\n overflow: hidden;\n align-items: center;\n object-fit: contain;\n border-radius: 15px;\n }\n .prevNext-thumbnail img {\n height: 125px;\n object-fit: contain;\n border-radius: 15px;\n }\n .prevNext-summary {\n text-align: center;\n }\n .prevNext-publishDate {\n font-size: 0.75rem;\n margin-top: 0.5rem;\n }\n .prevNext-title {\n padding: 0 !important;\n line-height: 1 !important;\n font-weight: 500;\n }\n .prevNextWrapper {\n display: flex;\n flex-direction: row;\n justify-content: space-evenly;\n flex-wrap: wrap;\n }\n .prevNextWrapper a {\n display: flex;\n flex-direction: column;\n color: #252525;\n align-items: center;\n }\n .prevNextCards {\n max-width: 250px;\n margin-bottom: 1rem;\n }\n @media only screen and (max-width: 568px) {\n .prevNextWrapper {\n flex-direction: column;\n align-items: center;\n }\n .prevNextCards {\n margin-bottom: 2rem;\n }\n }\n @media only screen and (max-width: 568px) {\n }\n '
|
|
@@ -8557,11 +8573,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8557
8573
|
};
|
|
8558
8574
|
}, [handleClickOutside]);
|
|
8559
8575
|
|
|
8560
|
-
return
|
|
8576
|
+
return React.createElement(
|
|
8561
8577
|
'div',
|
|
8562
8578
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8563
|
-
|
|
8564
|
-
|
|
8579
|
+
React.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8580
|
+
React.createElement(
|
|
8565
8581
|
'style',
|
|
8566
8582
|
{ jsx: 'true' },
|
|
8567
8583
|
'\n /*Eliminates padding, centers the thumbnail */\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
|
|
@@ -8655,13 +8671,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
8655
8671
|
|
|
8656
8672
|
var FigureCaption = useCallback(function () {
|
|
8657
8673
|
if (imgcaption && imgcaption.length > 0) {
|
|
8658
|
-
return
|
|
8674
|
+
return React.createElement(
|
|
8659
8675
|
'div',
|
|
8660
8676
|
{ className: 'figure-caption' },
|
|
8661
|
-
|
|
8677
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
8662
8678
|
);
|
|
8663
8679
|
} else if (caption) {
|
|
8664
|
-
return
|
|
8680
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
8665
8681
|
} else return null;
|
|
8666
8682
|
}, [caption, imgcaption]);
|
|
8667
8683
|
|
|
@@ -8673,21 +8689,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
8673
8689
|
margin: figureMargin
|
|
8674
8690
|
};
|
|
8675
8691
|
|
|
8676
|
-
return
|
|
8677
|
-
|
|
8692
|
+
return React.createElement(
|
|
8693
|
+
React.Fragment,
|
|
8678
8694
|
null,
|
|
8679
|
-
|
|
8680
|
-
Figure$
|
|
8695
|
+
React.createElement(
|
|
8696
|
+
Figure$2,
|
|
8681
8697
|
{ className: '' + class_name, style: figureStyle },
|
|
8682
|
-
link ?
|
|
8698
|
+
link ? React.createElement(
|
|
8683
8699
|
'a',
|
|
8684
8700
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
8685
|
-
|
|
8686
|
-
|
|
8687
|
-
) :
|
|
8688
|
-
|
|
8701
|
+
React.createElement(Figure$2.Image, { style: { maxWidth: '100%' }, className: 'figure-image', src: urlFor$3(node, client).url(), alt: alt && alt }),
|
|
8702
|
+
React.createElement(FigureCaption, null)
|
|
8703
|
+
) : React.createElement(
|
|
8704
|
+
React.Fragment,
|
|
8689
8705
|
null,
|
|
8690
|
-
|
|
8706
|
+
React.createElement(Figure$2.Image, {
|
|
8691
8707
|
style: { maxWidth: '100%', cursor: 'pointer', width: 'auto' },
|
|
8692
8708
|
className: 'figure-image',
|
|
8693
8709
|
src: urlFor$3(node, client).url(),
|
|
@@ -8697,9 +8713,9 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
8697
8713
|
setShowLightbox(true);
|
|
8698
8714
|
}
|
|
8699
8715
|
}),
|
|
8700
|
-
|
|
8716
|
+
React.createElement(FigureCaption, null)
|
|
8701
8717
|
),
|
|
8702
|
-
|
|
8718
|
+
React.createElement(LightBox, {
|
|
8703
8719
|
showLightbox: showLightbox,
|
|
8704
8720
|
lightboxImgSrc: lightboxImgSrc,
|
|
8705
8721
|
closeLightbox: function closeLightbox() {
|
|
@@ -8708,7 +8724,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
8708
8724
|
}
|
|
8709
8725
|
})
|
|
8710
8726
|
),
|
|
8711
|
-
|
|
8727
|
+
React.createElement(
|
|
8712
8728
|
'style',
|
|
8713
8729
|
{ jsx: 'true' },
|
|
8714
8730
|
'\n .figure-caption,\n .figure-caption h1,\n .figure-caption h2,\n .figure-caption h3,\n .figure-caption h4,\n .figure-caption h5,\n .figure-caption h6,\n .figure-caption p,\n .figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n '
|
|
@@ -8716,7 +8732,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
8716
8732
|
);
|
|
8717
8733
|
};
|
|
8718
8734
|
|
|
8719
|
-
var Figure =
|
|
8735
|
+
var Figure = React.memo(FigureComponent, compareProps);
|
|
8720
8736
|
|
|
8721
8737
|
var urlFor$4 = function urlFor(source, client) {
|
|
8722
8738
|
var builder = imageUrlBuilder(client);
|
|
@@ -8762,47 +8778,47 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
8762
8778
|
imgcaption = _ref.imgcaption;
|
|
8763
8779
|
|
|
8764
8780
|
if (imgcaption && imgcaption.length > 0) {
|
|
8765
|
-
return
|
|
8781
|
+
return React.createElement(
|
|
8766
8782
|
'div',
|
|
8767
8783
|
{ className: 'multi-figure-caption' },
|
|
8768
|
-
|
|
8784
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
8769
8785
|
);
|
|
8770
8786
|
} else if (caption) {
|
|
8771
|
-
return
|
|
8787
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
8772
8788
|
} else return null;
|
|
8773
8789
|
};
|
|
8774
8790
|
|
|
8775
8791
|
if (images && images.length > 0) {
|
|
8776
|
-
return
|
|
8792
|
+
return React.createElement(
|
|
8777
8793
|
'div',
|
|
8778
8794
|
{ className: 'multi-figure-container' },
|
|
8779
|
-
|
|
8795
|
+
React.createElement(
|
|
8780
8796
|
Row,
|
|
8781
8797
|
{ noGutters: true },
|
|
8782
8798
|
images.map(function (image, index) {
|
|
8783
|
-
return
|
|
8799
|
+
return React.createElement(
|
|
8784
8800
|
Col,
|
|
8785
8801
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
8786
|
-
image.link ?
|
|
8802
|
+
image.link ? React.createElement(
|
|
8787
8803
|
'a',
|
|
8788
|
-
_extends
|
|
8789
|
-
|
|
8804
|
+
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
8805
|
+
React.createElement(
|
|
8790
8806
|
'div',
|
|
8791
8807
|
{ className: 'multi-figure-image-container' },
|
|
8792
|
-
|
|
8808
|
+
React.createElement(
|
|
8793
8809
|
LazyLoad,
|
|
8794
8810
|
{ once: true },
|
|
8795
|
-
|
|
8811
|
+
React.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor$4(image.asset, client).url(), alt: image.alt })
|
|
8796
8812
|
),
|
|
8797
|
-
|
|
8813
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
8798
8814
|
)
|
|
8799
|
-
) :
|
|
8815
|
+
) : React.createElement(
|
|
8800
8816
|
'div',
|
|
8801
8817
|
{ className: 'multi-figure-image-container' },
|
|
8802
|
-
|
|
8818
|
+
React.createElement(
|
|
8803
8819
|
LazyLoad,
|
|
8804
8820
|
{ once: true },
|
|
8805
|
-
|
|
8821
|
+
React.createElement('img', {
|
|
8806
8822
|
'images-count': images.length,
|
|
8807
8823
|
className: 'multi-figure-image',
|
|
8808
8824
|
src: urlFor$4(image.asset, client).url(),
|
|
@@ -8813,17 +8829,17 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
8813
8829
|
}
|
|
8814
8830
|
})
|
|
8815
8831
|
),
|
|
8816
|
-
|
|
8832
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
8817
8833
|
)
|
|
8818
8834
|
);
|
|
8819
8835
|
})
|
|
8820
8836
|
),
|
|
8821
|
-
|
|
8837
|
+
React.createElement(
|
|
8822
8838
|
'div',
|
|
8823
8839
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
8824
|
-
|
|
8840
|
+
React.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
8825
8841
|
),
|
|
8826
|
-
|
|
8842
|
+
React.createElement(
|
|
8827
8843
|
'style',
|
|
8828
8844
|
{ jsx: 'true' },
|
|
8829
8845
|
'\n .multi-figure-caption,\n .multi-figure-caption h1,\n .multi-figure-caption h2,\n .multi-figure-caption h3,\n .multi-figure-caption h4,\n .multi-figure-caption h5,\n .multi-figure-caption h6,\n .multi-figure-caption p,\n .multi-figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n\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 .multi-figure-image-container {\n padding-right: 0.5rem;\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 /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
|
|
@@ -8845,10 +8861,10 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
8845
8861
|
|
|
8846
8862
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
8847
8863
|
|
|
8848
|
-
return
|
|
8864
|
+
return React.createElement(
|
|
8849
8865
|
'div',
|
|
8850
8866
|
{ id: elementId },
|
|
8851
|
-
|
|
8867
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
8852
8868
|
);
|
|
8853
8869
|
};
|
|
8854
8870
|
|
|
@@ -8920,129 +8936,129 @@ var getSerializers = function getSerializers() {
|
|
|
8920
8936
|
var node = _ref.node;
|
|
8921
8937
|
var url = node.url;
|
|
8922
8938
|
|
|
8923
|
-
return
|
|
8939
|
+
return React.createElement(YouTubePlayer, { url: url });
|
|
8924
8940
|
},
|
|
8925
8941
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
8926
8942
|
var node = _ref2.node;
|
|
8927
8943
|
|
|
8928
|
-
return
|
|
8944
|
+
return React.createElement(YouTubeGallery, { nodes: node, accountIDs: videoAccountIDs || {}, client: client, getSerializers: getSerializers(client) });
|
|
8929
8945
|
},
|
|
8930
8946
|
articleSeries: function articleSeries(_ref3) {
|
|
8931
8947
|
var node = _ref3.node;
|
|
8932
8948
|
|
|
8933
|
-
return
|
|
8949
|
+
return React.createElement(ArticleSeries, { nodes: node, accountIDs: videoAccountIDs || {}, pageview: pageview, client: client, getSerializers: getSerializers.apply(undefined, props), Ads: Ads || null, rootArticle: article || null });
|
|
8934
8950
|
},
|
|
8935
8951
|
figure: function figure(_ref4) {
|
|
8936
8952
|
var node = _ref4.node;
|
|
8937
8953
|
|
|
8938
|
-
return
|
|
8954
|
+
return React.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
8939
8955
|
},
|
|
8940
8956
|
multifigure: function multifigure(_ref5) {
|
|
8941
8957
|
var node = _ref5.node;
|
|
8942
8958
|
|
|
8943
|
-
return
|
|
8959
|
+
return React.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
8944
8960
|
},
|
|
8945
8961
|
slideshow: function slideshow(_ref6) {
|
|
8946
8962
|
var node = _ref6.node;
|
|
8947
8963
|
var slides = node.slides;
|
|
8948
8964
|
|
|
8949
|
-
return
|
|
8965
|
+
return React.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
8950
8966
|
},
|
|
8951
8967
|
sidebar: function sidebar(_ref7) {
|
|
8952
8968
|
var node = _ref7.node;
|
|
8953
8969
|
var caption = node.caption,
|
|
8954
8970
|
content = node.content;
|
|
8955
8971
|
|
|
8956
|
-
return
|
|
8972
|
+
return React.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
8957
8973
|
},
|
|
8958
8974
|
datatable: function datatable(_ref8) {
|
|
8959
8975
|
var node = _ref8.node;
|
|
8960
8976
|
var table = node.table;
|
|
8961
8977
|
|
|
8962
|
-
return
|
|
8978
|
+
return React.createElement(TableShow, { rows: table.rows });
|
|
8963
8979
|
},
|
|
8964
8980
|
media: function media(_ref9) {
|
|
8965
8981
|
var node = _ref9.node;
|
|
8966
8982
|
|
|
8967
|
-
return
|
|
8983
|
+
return React.createElement(Media, { node: node, client: client });
|
|
8968
8984
|
},
|
|
8969
8985
|
iframe: function iframe(_ref10) {
|
|
8970
8986
|
var node = _ref10.node;
|
|
8971
8987
|
|
|
8972
|
-
return
|
|
8988
|
+
return React.createElement(IFrame, { url: node.url });
|
|
8973
8989
|
},
|
|
8974
8990
|
video: function video(_ref11) {
|
|
8975
8991
|
var node = _ref11.node;
|
|
8976
8992
|
|
|
8977
|
-
return
|
|
8993
|
+
return React.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
8978
8994
|
},
|
|
8979
8995
|
audio: function audio(_ref12) {
|
|
8980
8996
|
var node = _ref12.node;
|
|
8981
8997
|
|
|
8982
|
-
return
|
|
8998
|
+
return React.createElement(Audio, { node: node });
|
|
8983
8999
|
},
|
|
8984
9000
|
poll: function poll(_ref13) {
|
|
8985
9001
|
var node = _ref13.node;
|
|
8986
9002
|
|
|
8987
|
-
return
|
|
9003
|
+
return React.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
8988
9004
|
},
|
|
8989
9005
|
quiz: function quiz(_ref14) {
|
|
8990
9006
|
var node = _ref14.node;
|
|
8991
9007
|
var quizzes = node.quizzes;
|
|
8992
9008
|
|
|
8993
|
-
return
|
|
9009
|
+
return React.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
8994
9010
|
},
|
|
8995
9011
|
leads: function leads(_ref15) {
|
|
8996
9012
|
var node = _ref15.node;
|
|
8997
9013
|
var leadID = node.leadID;
|
|
8998
9014
|
|
|
8999
9015
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9000
|
-
return
|
|
9016
|
+
return React.createElement(Leads, { url: url });
|
|
9001
9017
|
},
|
|
9002
9018
|
slideshows: function slideshows(_ref16) {
|
|
9003
9019
|
var node = _ref16.node;
|
|
9004
9020
|
|
|
9005
|
-
return
|
|
9021
|
+
return React.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9006
9022
|
},
|
|
9007
9023
|
nativeAd: function nativeAd(_ref17) {
|
|
9008
9024
|
var node = _ref17.node;
|
|
9009
9025
|
|
|
9010
|
-
return
|
|
9026
|
+
return React.createElement(NativeAd, { node: node });
|
|
9011
9027
|
},
|
|
9012
9028
|
html_anchor_links: function html_anchor_links(_ref18) {
|
|
9013
9029
|
var node = _ref18.node;
|
|
9014
9030
|
|
|
9015
|
-
return
|
|
9031
|
+
return React.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9016
9032
|
},
|
|
9017
9033
|
hrtag: function hrtag() {
|
|
9018
|
-
return
|
|
9034
|
+
return React.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9019
9035
|
},
|
|
9020
9036
|
brtag: function brtag() {
|
|
9021
|
-
return
|
|
9037
|
+
return React.createElement('br', { className: 'line-break' });
|
|
9022
9038
|
},
|
|
9023
9039
|
formstack: function formstack(_ref19) {
|
|
9024
9040
|
var node = _ref19.node;
|
|
9025
9041
|
var FormID = node.FormID,
|
|
9026
9042
|
Caption = node.Caption;
|
|
9027
9043
|
|
|
9028
|
-
return
|
|
9044
|
+
return React.createElement(Formstack, { FormID: FormID, Caption: Caption });
|
|
9029
9045
|
},
|
|
9030
9046
|
multimedia: function multimedia(_ref20) {
|
|
9031
9047
|
var node = _ref20.node;
|
|
9032
9048
|
|
|
9033
|
-
return
|
|
9049
|
+
return React.createElement(MultiMedia, { node: node, client: client });
|
|
9034
9050
|
}
|
|
9035
9051
|
},
|
|
9036
9052
|
marks: {
|
|
9037
9053
|
superscript: function superscript(props) {
|
|
9038
|
-
return
|
|
9054
|
+
return React.createElement(
|
|
9039
9055
|
'sup',
|
|
9040
9056
|
null,
|
|
9041
9057
|
props.children
|
|
9042
9058
|
);
|
|
9043
9059
|
},
|
|
9044
9060
|
subscript: function subscript(props) {
|
|
9045
|
-
return
|
|
9061
|
+
return React.createElement(
|
|
9046
9062
|
'sub',
|
|
9047
9063
|
null,
|
|
9048
9064
|
props.children
|
|
@@ -9058,7 +9074,7 @@ var getSerializers = function getSerializers() {
|
|
|
9058
9074
|
if (href && href.charAt(0) === '#') {
|
|
9059
9075
|
var elementId = href.slice(1);
|
|
9060
9076
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9061
|
-
return
|
|
9077
|
+
return React.createElement(
|
|
9062
9078
|
'a',
|
|
9063
9079
|
{ onClick: function onClick() {
|
|
9064
9080
|
return ScrollToElement(elementId);
|
|
@@ -9068,7 +9084,7 @@ var getSerializers = function getSerializers() {
|
|
|
9068
9084
|
}
|
|
9069
9085
|
|
|
9070
9086
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9071
|
-
return
|
|
9087
|
+
return React.createElement(
|
|
9072
9088
|
'a',
|
|
9073
9089
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
9074
9090
|
children
|
|
@@ -9076,7 +9092,7 @@ var getSerializers = function getSerializers() {
|
|
|
9076
9092
|
},
|
|
9077
9093
|
alignleft: function alignleft(_ref21) {
|
|
9078
9094
|
var children = _ref21.children;
|
|
9079
|
-
return
|
|
9095
|
+
return React.createElement(
|
|
9080
9096
|
'div',
|
|
9081
9097
|
{ style: { textAlign: 'left' } },
|
|
9082
9098
|
children
|
|
@@ -9084,7 +9100,7 @@ var getSerializers = function getSerializers() {
|
|
|
9084
9100
|
},
|
|
9085
9101
|
alignright: function alignright(_ref22) {
|
|
9086
9102
|
var children = _ref22.children;
|
|
9087
|
-
return
|
|
9103
|
+
return React.createElement(
|
|
9088
9104
|
'div',
|
|
9089
9105
|
{ style: { textAlign: 'right' } },
|
|
9090
9106
|
children
|
|
@@ -9092,7 +9108,7 @@ var getSerializers = function getSerializers() {
|
|
|
9092
9108
|
},
|
|
9093
9109
|
aligncenter: function aligncenter(_ref23) {
|
|
9094
9110
|
var children = _ref23.children;
|
|
9095
|
-
return
|
|
9111
|
+
return React.createElement(
|
|
9096
9112
|
'div',
|
|
9097
9113
|
{ style: { textAlign: 'center' } },
|
|
9098
9114
|
children
|
|
@@ -9100,7 +9116,7 @@ var getSerializers = function getSerializers() {
|
|
|
9100
9116
|
},
|
|
9101
9117
|
alignjustify: function alignjustify(_ref24) {
|
|
9102
9118
|
var children = _ref24.children;
|
|
9103
|
-
return
|
|
9119
|
+
return React.createElement(
|
|
9104
9120
|
'div',
|
|
9105
9121
|
{ style: { textAlign: 'justify' } },
|
|
9106
9122
|
children
|
|
@@ -9110,7 +9126,7 @@ var getSerializers = function getSerializers() {
|
|
|
9110
9126
|
var children = props.children,
|
|
9111
9127
|
color = props.mark.color;
|
|
9112
9128
|
|
|
9113
|
-
return
|
|
9129
|
+
return React.createElement(
|
|
9114
9130
|
'span',
|
|
9115
9131
|
{ style: { color: color ? color.hex : null } },
|
|
9116
9132
|
children
|