@mjhls/mjh-framework 1.0.838-beta.0 → 1.0.839-article-time-v1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/AD.js +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-8d621d3c.js → ADInfeed-0158bee3.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-0e26bccb.js → ADlgInfeed-3583144f.js} +7 -6
- package/dist/cjs/AccordionPanel.js +24 -22
- package/dist/cjs/AdSlot.js +14 -13
- package/dist/cjs/AdSlotsProvider.js +11 -902
- package/dist/cjs/AlgoliaSearch.js +951 -841
- package/dist/cjs/AlphabeticList.js +16 -15
- package/dist/cjs/ArticleCarousel.js +11 -10
- package/dist/cjs/ArticleProgramLandingPage.js +24 -23
- package/dist/cjs/ArticleSeriesLandingPage.js +20 -19
- package/dist/cjs/ArticleSeriesListing.js +40 -39
- package/dist/cjs/Auth.js +232 -344
- package/dist/cjs/AuthWrapper.js +119 -38
- 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/CMEDeck.js +64 -64
- 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 +18 -17
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +76 -72
- package/dist/cjs/DeckQueue.js +74 -70
- package/dist/cjs/{Dfp-26baccf1.js → Dfp-391fd124.js} +23 -22
- package/dist/cjs/EventsDeck.js +123 -116
- package/dist/cjs/ExternalResources.js +47 -46
- package/dist/cjs/Feature.js +25 -23
- package/dist/cjs/ForbesHero.js +35 -34
- package/dist/cjs/GridContent.js +208 -203
- package/dist/cjs/GridHero.js +36 -35
- package/dist/cjs/GroupDeck.js +49 -48
- package/dist/cjs/HamMagazine.js +121 -116
- package/dist/cjs/Header.js +14 -12
- package/dist/cjs/Hero.js +10 -9
- package/dist/cjs/HighlightenVideo.js +17 -16
- package/dist/cjs/HorizontalArticleListing.js +37 -36
- package/dist/cjs/HorizontalHero.js +24 -23
- package/dist/cjs/IssueContentDeck.js +70 -65
- package/dist/cjs/IssueDeck.js +65 -60
- package/dist/cjs/IssueLanding.js +29 -28
- package/dist/cjs/LeftNav.js +22 -20
- package/dist/cjs/MasterDeck.js +50 -49
- package/dist/cjs/MediaSeriesLanding.js +728 -781
- 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 +116 -108
- package/dist/cjs/OncliveHero.js +17 -17
- package/dist/cjs/OncliveLargeHero.js +64 -63
- package/dist/cjs/PageFilter.js +9 -8
- package/dist/cjs/PartnerDetailListing.js +71 -1168
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +15 -13
- package/dist/cjs/PubSection.js +20 -19
- package/dist/cjs/PubToc.js +8 -7
- package/dist/cjs/PublicationDeck.js +64 -59
- package/dist/cjs/PublicationLanding.js +87 -83
- package/dist/cjs/QueueDeckExpanded.js +285 -285
- package/dist/cjs/RecentNews.js +20 -19
- package/dist/cjs/RelatedContent.js +23 -22
- package/dist/cjs/RelatedTopicsDropdown.js +22 -19
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +16 -12
- package/dist/cjs/SeriesListingDeck.js +26 -26
- package/dist/cjs/{SeriesSlider-8bbc989f.js → SeriesSlider-0d3bf265.js} +34 -33
- package/dist/cjs/SideFooter.js +24 -23
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-cea213aa.js → SocialSearchComponent-19548e2a.js} +38 -34
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +59 -54
- package/dist/cjs/TaxonomyDescription.js +22 -21
- package/dist/cjs/TemplateNormal.js +35 -34
- package/dist/cjs/ThumbnailCard.js +19 -17
- package/dist/cjs/Ustream.js +22 -21
- package/dist/cjs/VerticalHero.js +16 -15
- package/dist/cjs/VideoProgramLandingPage.js +44 -40
- package/dist/cjs/VideoSeriesCard.js +23 -22
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesLandingPage.js +25 -24
- package/dist/cjs/VideoSeriesListing.js +61 -58
- package/dist/cjs/View.js +208 -200
- package/dist/cjs/YahooHero.js +31 -30
- package/dist/cjs/YoutubeGroup.js +51 -50
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-5c98aec7.js} +10 -8
- package/dist/cjs/faundadb.js +1 -1
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getRelatedArticle.js +354 -5
- package/dist/cjs/getSerializers.js +11 -11
- package/dist/cjs/{getTargeting-021d644c.js → getTargeting-15ad167c.js} +2 -2
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-017609b5.js → index-0555a837.js} +884 -867
- package/dist/cjs/{index-98e01cb9.js → index-2cf30c83.js} +9 -8
- package/dist/cjs/{index-3294d3bc.js → index-6367b7bf.js} +16 -17
- package/dist/cjs/{index-96b3db50.js → index-9d365128.js} +12 -10
- package/dist/cjs/{index-be0c82be.js → index-b5eb3ff8.js} +20 -19
- package/dist/cjs/index-bd6c9f56.js +211 -0
- 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-4d410430.js → index.esm-3ffa049c.js} +20 -20
- package/dist/cjs/{index.esm-e32d3e8e.js → index.esm-44f3e2d0.js} +3 -6
- package/dist/cjs/{index.esm-90433435.js → index.esm-974f47d9.js} +6 -15
- package/dist/cjs/index.js +65 -61
- package/dist/cjs/{inherits-452ff02c.js → inherits-0c7830c5.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/{md5-5039b1a6.js → md5-e1ca5797.js} +1 -1
- 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/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{typeof-725500bc.js → typeof-9d7f610f.js} +1 -1
- package/dist/cjs/urlFor.js +3 -3
- package/dist/cjs/{visibility-sensor-ad5e3116.js → visibility-sensor-eb2c5b69.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-b566ce41.js → ADInfeed-427022e9.js} +7 -7
- 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-5eb7281d.js → ADlgInfeed-28d3f944.js} +4 -4
- package/dist/esm/AccordionPanel.js +17 -17
- package/dist/esm/AdSlot.js +5 -5
- package/dist/esm/AdSlotsProvider.js +10 -902
- package/dist/esm/AlgoliaSearch.js +346 -237
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +8 -8
- package/dist/esm/ArticleProgramLandingPage.js +20 -20
- package/dist/esm/ArticleSeriesLandingPage.js +17 -17
- package/dist/esm/ArticleSeriesListing.js +36 -36
- package/dist/esm/Auth.js +211 -327
- package/dist/esm/AuthWrapper.js +116 -36
- package/dist/esm/{AuthorComponent-34b16174.js → AuthorComponent-8ffd4679.js} +10 -10
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-d05b5b23.js} +4 -4
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +61 -61
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +17 -17
- package/dist/esm/Column3.js +30 -30
- package/dist/esm/ConferenceArticleCard.js +15 -15
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +68 -68
- package/dist/esm/DeckQueue.js +66 -66
- package/dist/esm/{Dfp-b7236041.js → Dfp-2f9796e1.js} +10 -10
- package/dist/esm/EventsDeck.js +92 -92
- package/dist/esm/ExternalResources.js +41 -41
- package/dist/esm/Feature.js +17 -17
- package/dist/esm/ForbesHero.js +28 -28
- package/dist/esm/GridContent.js +172 -172
- package/dist/esm/GridHero.js +29 -29
- package/dist/esm/GroupDeck.js +36 -36
- package/dist/esm/HamMagazine.js +91 -91
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +7 -7
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +34 -34
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +53 -53
- package/dist/esm/IssueDeck.js +54 -54
- package/dist/esm/IssueLanding.js +26 -26
- package/dist/esm/LeftNav.js +16 -16
- package/dist/esm/MasterDeck.js +46 -46
- package/dist/esm/MediaSeriesLanding.js +450 -506
- package/dist/esm/NavDvm.js +46 -46
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +93 -93
- package/dist/esm/NavNative.js +83 -83
- 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 +69 -1166
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +17 -17
- package/dist/esm/PubToc.js +5 -5
- package/dist/esm/PublicationDeck.js +51 -51
- package/dist/esm/PublicationLanding.js +69 -69
- package/dist/esm/QueueDeckExpanded.js +251 -251
- package/dist/esm/RecentNews.js +17 -17
- package/dist/esm/RelatedContent.js +17 -17
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +7 -7
- package/dist/esm/SeriesListingDeck.js +20 -20
- package/dist/esm/{SeriesSlider-a866bb21.js → SeriesSlider-7d89f4d9.js} +24 -24
- package/dist/esm/SideFooter.js +19 -19
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-03c3e869.js → SocialSearchComponent-47815365.js} +28 -28
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +50 -50
- package/dist/esm/TaxonomyDescription.js +16 -16
- package/dist/esm/TemplateNormal.js +31 -31
- package/dist/esm/ThumbnailCard.js +10 -10
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoProgramLandingPage.js +32 -32
- package/dist/esm/VideoSeriesCard.js +17 -17
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesLandingPage.js +17 -17
- package/dist/esm/VideoSeriesListing.js +57 -55
- package/dist/esm/View.js +185 -181
- package/dist/esm/YahooHero.js +25 -25
- package/dist/esm/YoutubeGroup.js +35 -35
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-4abff0b1.js} +7 -6
- package/dist/esm/faundadb.js +1 -1
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getRelatedArticle.js +354 -5
- package/dist/esm/getSerializers.js +11 -11
- package/dist/esm/{index-73819142.js → index-51a80699.js} +20 -19
- package/dist/esm/{index-ff630779.js → index-53c0c377.js} +835 -825
- package/dist/esm/{index-5f7e79e7.js → index-6c12bdd5.js} +4 -4
- package/dist/esm/{index-ef6d5dcf.js → index-c00b0bbb.js} +16 -17
- package/dist/esm/index-db3bb315.js +207 -0
- package/dist/esm/{index-41a678ea.js → index-f7fb1e25.js} +3 -3
- 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-f8aaeeeb.js → index.esm-c6715e80.js} +3 -6
- package/dist/esm/index.js +52 -51
- package/dist/esm/{inherits-cf8dde54.js → inherits-75d45541.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/{md5-9be0e905.js → md5-4e42248e.js} +1 -1
- 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/timeDifferenceCalc.js +1 -1
- package/dist/esm/{typeof-6435ba1c.js → typeof-af9c50d8.js} +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/package.json +1 -1
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
- package/dist/cjs/inherits-8d29278d.js +0 -110
- package/dist/esm/inherits-77d5e4fc.js +0 -101
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import { _ as _export, a as _core } from './_to-object-a4107da3.js';
|
|
3
3
|
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
|
|
4
|
-
import { _ as _extends
|
|
5
|
-
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-
|
|
6
|
-
import { _ as _typeof } from './typeof-
|
|
7
|
-
import
|
|
8
|
-
import { l as lib_3 } from './index-
|
|
4
|
+
import { _ as _extends, b as _extends$1 } from './extends-6f2fcc99.js';
|
|
5
|
+
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-75d45541.js';
|
|
6
|
+
import { _ as _typeof$1 } from './typeof-af9c50d8.js';
|
|
7
|
+
import React, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
8
|
+
import { l as lib_3 } from './index-f7fb1e25.js';
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
10
|
import Row$1 from 'react-bootstrap/Row';
|
|
11
11
|
import Col$1 from 'react-bootstrap/Col';
|
|
12
|
-
import { m as moment } from './moment-
|
|
12
|
+
import { m as moment } from './moment-b6f49411.js';
|
|
13
13
|
import Router, { useRouter } from 'next/router';
|
|
14
14
|
import urlFor from './urlFor.js';
|
|
15
|
-
import { L as LazyLoad } from './index-
|
|
16
|
-
import { d as main_16, b as
|
|
15
|
+
import { L as LazyLoad } from './index-6c12bdd5.js';
|
|
16
|
+
import { d as main_16, b as main_39, m as main_40 } from './main-747e7d25.js';
|
|
17
17
|
import { h as html_decode_1 } from './entities-7cc3bf45.js';
|
|
18
18
|
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-641f241f.js';
|
|
19
19
|
import Segment from './Segment.js';
|
|
20
20
|
import Beam from './Beam.js';
|
|
21
21
|
import DFPAdSlot from './AdSlot.js';
|
|
22
22
|
import Button$1 from 'react-bootstrap/Button';
|
|
23
|
-
import { B as BlockContent } from './BlockContent-
|
|
23
|
+
import { B as BlockContent } from './BlockContent-d05b5b23.js';
|
|
24
24
|
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
25
25
|
import GroupDeck from './GroupDeck.js';
|
|
26
26
|
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
27
|
-
import { d as IoIosArrowDropupCircle } from './index.esm-
|
|
27
|
+
import { d as IoIosArrowDropupCircle } from './index.esm-3fdda599.js';
|
|
28
28
|
import { u as util } from './util-7700fc59.js';
|
|
29
|
-
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-
|
|
29
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-4abff0b1.js';
|
|
30
30
|
import Head from 'next/head';
|
|
31
31
|
import SocialShare from './SocialShare.js';
|
|
32
32
|
import { _ as _objectToArray } from './_object-to-array-7e804fce.js';
|
|
33
|
-
import Pagination
|
|
34
|
-
import Figure$
|
|
33
|
+
import Pagination from 'react-bootstrap/Pagination';
|
|
34
|
+
import Figure$2 from 'react-bootstrap/Figure';
|
|
35
35
|
|
|
36
36
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
37
37
|
var pageNumber = selectedIndex + 1;
|
|
@@ -66,27 +66,27 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
66
66
|
if (pageview) pageview(router.asPath);
|
|
67
67
|
}, [router]);
|
|
68
68
|
|
|
69
|
-
return
|
|
69
|
+
return React.createElement(
|
|
70
70
|
'div',
|
|
71
71
|
{ className: 'mt-3 mb-3' },
|
|
72
|
-
|
|
72
|
+
React.createElement(
|
|
73
73
|
Carousel,
|
|
74
74
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
75
75
|
return onChangeSlide(selectedIndex, router);
|
|
76
76
|
}, interval: null },
|
|
77
77
|
slides && slides.map(function (slide) {
|
|
78
|
-
return
|
|
78
|
+
return React.createElement(
|
|
79
79
|
Carousel.Item,
|
|
80
80
|
{ key: slide._key },
|
|
81
|
-
|
|
81
|
+
React.createElement(
|
|
82
82
|
'picture',
|
|
83
83
|
null,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
84
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
85
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
86
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
87
|
+
React.createElement('img', { src: urlFor({ source: slide.asset, client: client }), alt: slide.alt || '', style: { width: '100%' } })
|
|
88
88
|
),
|
|
89
|
-
slide.caption &&
|
|
89
|
+
slide.caption && React.createElement(
|
|
90
90
|
'p',
|
|
91
91
|
{ className: 'p-2' },
|
|
92
92
|
slide.caption
|
|
@@ -97,21 +97,18 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
97
97
|
);
|
|
98
98
|
};
|
|
99
99
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
// do not edit .js files directly - edit src/index.jst
|
|
101
|
+
|
|
102
|
+
|
|
103
103
|
|
|
104
104
|
var fastDeepEqual = function equal(a, b) {
|
|
105
105
|
if (a === b) return true;
|
|
106
106
|
|
|
107
107
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
108
|
-
|
|
109
|
-
, arrB = isArray(b)
|
|
110
|
-
, i
|
|
111
|
-
, length
|
|
112
|
-
, key;
|
|
108
|
+
if (a.constructor !== b.constructor) return false;
|
|
113
109
|
|
|
114
|
-
|
|
110
|
+
var length, i, keys;
|
|
111
|
+
if (Array.isArray(a)) {
|
|
115
112
|
length = a.length;
|
|
116
113
|
if (length != b.length) return false;
|
|
117
114
|
for (i = length; i-- !== 0;)
|
|
@@ -119,35 +116,29 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
119
116
|
return true;
|
|
120
117
|
}
|
|
121
118
|
|
|
122
|
-
if (arrA != arrB) return false;
|
|
123
119
|
|
|
124
|
-
var dateA = a instanceof Date
|
|
125
|
-
, dateB = b instanceof Date;
|
|
126
|
-
if (dateA != dateB) return false;
|
|
127
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
128
120
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
if (
|
|
132
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
121
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
122
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
123
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
133
124
|
|
|
134
|
-
|
|
125
|
+
keys = Object.keys(a);
|
|
135
126
|
length = keys.length;
|
|
136
|
-
|
|
137
|
-
if (length !== keyList(b).length)
|
|
138
|
-
return false;
|
|
127
|
+
if (length !== Object.keys(b).length) return false;
|
|
139
128
|
|
|
140
129
|
for (i = length; i-- !== 0;)
|
|
141
|
-
if (!
|
|
130
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
142
131
|
|
|
143
132
|
for (i = length; i-- !== 0;) {
|
|
144
|
-
key = keys[i];
|
|
133
|
+
var key = keys[i];
|
|
134
|
+
|
|
145
135
|
if (!equal(a[key], b[key])) return false;
|
|
146
136
|
}
|
|
147
137
|
|
|
148
138
|
return true;
|
|
149
139
|
}
|
|
150
140
|
|
|
141
|
+
// true if both NaN, false otherwise
|
|
151
142
|
return a!==a && b!==b;
|
|
152
143
|
};
|
|
153
144
|
|
|
@@ -1570,199 +1561,239 @@ module.exports = exports['default'];
|
|
|
1570
1561
|
|
|
1571
1562
|
var youTubePlayer = unwrapExports(dist);
|
|
1572
1563
|
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
1564
|
+
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); }
|
|
1576
1565
|
|
|
1577
1566
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1578
1567
|
|
|
1579
|
-
function
|
|
1568
|
+
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); } }
|
|
1569
|
+
|
|
1570
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1580
1571
|
|
|
1581
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function
|
|
1572
|
+
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); }
|
|
1573
|
+
|
|
1574
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1575
|
+
|
|
1576
|
+
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); }; }
|
|
1577
|
+
|
|
1578
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1579
|
+
|
|
1580
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1581
|
+
|
|
1582
|
+
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; } }
|
|
1583
|
+
|
|
1584
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1585
|
+
|
|
1586
|
+
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; }
|
|
1587
|
+
|
|
1588
|
+
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; }
|
|
1582
1589
|
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
*
|
|
1586
|
-
*
|
|
1587
|
-
* @param {Object}
|
|
1590
|
+
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; }
|
|
1591
|
+
/**
|
|
1592
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1593
|
+
*
|
|
1594
|
+
* @param {Object} prevProps
|
|
1595
|
+
* @param {Object} props
|
|
1588
1596
|
*/
|
|
1597
|
+
|
|
1589
1598
|
function shouldUpdateVideo(prevProps, props) {
|
|
1590
1599
|
// A changing video should always trigger an update
|
|
1591
1600
|
if (prevProps.videoId !== props.videoId) {
|
|
1592
1601
|
return true;
|
|
1593
|
-
}
|
|
1594
|
-
|
|
1595
|
-
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1602
|
+
} // Otherwise, a change in the start/end time playerVars also requires a player
|
|
1596
1603
|
// update.
|
|
1604
|
+
|
|
1605
|
+
|
|
1597
1606
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1598
1607
|
var vars = props.opts.playerVars || {};
|
|
1599
|
-
|
|
1600
1608
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1601
1609
|
}
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
*
|
|
1605
|
-
*
|
|
1606
|
-
*
|
|
1607
|
-
*
|
|
1608
|
-
* @param {Object} opts
|
|
1610
|
+
/**
|
|
1611
|
+
* Neutralize API options that only require a video update, leaving only options
|
|
1612
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1613
|
+
* player reset is necessary.
|
|
1614
|
+
*
|
|
1615
|
+
* @param {Object} opts
|
|
1609
1616
|
*/
|
|
1617
|
+
|
|
1618
|
+
|
|
1610
1619
|
function filterResetOptions(opts) {
|
|
1611
|
-
return
|
|
1612
|
-
playerVars:
|
|
1620
|
+
return _objectSpread(_objectSpread({}, opts), {}, {
|
|
1621
|
+
playerVars: _objectSpread({
|
|
1613
1622
|
autoplay: 0,
|
|
1614
1623
|
start: 0,
|
|
1615
1624
|
end: 0
|
|
1616
|
-
})
|
|
1625
|
+
}, opts.playerVars)
|
|
1617
1626
|
});
|
|
1618
1627
|
}
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
*
|
|
1622
|
-
*
|
|
1623
|
-
*
|
|
1624
|
-
*
|
|
1625
|
-
*
|
|
1626
|
-
* @param {Object}
|
|
1627
|
-
* @param {Object} props
|
|
1628
|
+
/**
|
|
1629
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1630
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1631
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1632
|
+
* those.
|
|
1633
|
+
*
|
|
1634
|
+
* @param {Object} prevProps
|
|
1635
|
+
* @param {Object} props
|
|
1628
1636
|
*/
|
|
1637
|
+
|
|
1638
|
+
|
|
1629
1639
|
function shouldResetPlayer(prevProps, props) {
|
|
1630
1640
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1631
1641
|
}
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
*
|
|
1635
|
-
*
|
|
1636
|
-
* @param {Object}
|
|
1637
|
-
* @param {Object} props
|
|
1642
|
+
/**
|
|
1643
|
+
* Check whether a props change should result in an id or className update.
|
|
1644
|
+
*
|
|
1645
|
+
* @param {Object} prevProps
|
|
1646
|
+
* @param {Object} props
|
|
1638
1647
|
*/
|
|
1648
|
+
|
|
1649
|
+
|
|
1639
1650
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1640
1651
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1641
1652
|
}
|
|
1642
1653
|
|
|
1643
|
-
var YouTube = function (_React$Component) {
|
|
1654
|
+
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
1644
1655
|
_inherits(YouTube, _React$Component);
|
|
1645
1656
|
|
|
1657
|
+
var _super = _createSuper(YouTube);
|
|
1658
|
+
|
|
1659
|
+
/**
|
|
1660
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1661
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1662
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1663
|
+
*/
|
|
1646
1664
|
function YouTube(props) {
|
|
1665
|
+
var _this;
|
|
1666
|
+
|
|
1647
1667
|
_classCallCheck(this, YouTube);
|
|
1648
1668
|
|
|
1649
|
-
|
|
1669
|
+
_this = _super.call(this, props);
|
|
1650
1670
|
|
|
1651
|
-
_this
|
|
1671
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
|
|
1652
1672
|
return _this.props.onReady(event);
|
|
1653
|
-
};
|
|
1673
|
+
});
|
|
1654
1674
|
|
|
1655
|
-
_this
|
|
1675
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
|
|
1656
1676
|
return _this.props.onError(event);
|
|
1657
|
-
};
|
|
1677
|
+
});
|
|
1658
1678
|
|
|
1659
|
-
_this
|
|
1679
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
|
|
1660
1680
|
_this.props.onStateChange(event);
|
|
1661
|
-
switch (event.data) {
|
|
1662
1681
|
|
|
1682
|
+
switch (event.data) {
|
|
1663
1683
|
case YouTube.PlayerState.ENDED:
|
|
1664
1684
|
_this.props.onEnd(event);
|
|
1685
|
+
|
|
1665
1686
|
break;
|
|
1666
1687
|
|
|
1667
1688
|
case YouTube.PlayerState.PLAYING:
|
|
1668
1689
|
_this.props.onPlay(event);
|
|
1690
|
+
|
|
1669
1691
|
break;
|
|
1670
1692
|
|
|
1671
1693
|
case YouTube.PlayerState.PAUSED:
|
|
1672
1694
|
_this.props.onPause(event);
|
|
1695
|
+
|
|
1673
1696
|
break;
|
|
1674
1697
|
}
|
|
1675
|
-
};
|
|
1698
|
+
});
|
|
1676
1699
|
|
|
1677
|
-
_this
|
|
1700
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
|
|
1678
1701
|
return _this.props.onPlaybackRateChange(event);
|
|
1679
|
-
};
|
|
1702
|
+
});
|
|
1680
1703
|
|
|
1681
|
-
_this
|
|
1704
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
|
|
1682
1705
|
return _this.props.onPlaybackQualityChange(event);
|
|
1683
|
-
};
|
|
1706
|
+
});
|
|
1684
1707
|
|
|
1685
|
-
_this
|
|
1708
|
+
_defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
|
|
1686
1709
|
// do not attempt to create a player server-side, it won't work
|
|
1687
|
-
if (typeof document === 'undefined') return;
|
|
1688
|
-
|
|
1689
|
-
var playerOpts =
|
|
1710
|
+
if (typeof document === 'undefined') return; // create player
|
|
1711
|
+
|
|
1712
|
+
var playerOpts = _objectSpread(_objectSpread({}, _this.props.opts), {}, {
|
|
1690
1713
|
// preload the `videoId` video if one is already given
|
|
1691
1714
|
videoId: _this.props.videoId
|
|
1692
1715
|
});
|
|
1693
|
-
|
|
1694
|
-
// attach event handlers
|
|
1716
|
+
|
|
1717
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
|
|
1718
|
+
|
|
1695
1719
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1720
|
+
|
|
1696
1721
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1722
|
+
|
|
1697
1723
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1724
|
+
|
|
1698
1725
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1726
|
+
|
|
1699
1727
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1700
|
-
};
|
|
1728
|
+
});
|
|
1701
1729
|
|
|
1702
|
-
_this
|
|
1730
|
+
_defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
|
|
1703
1731
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1704
|
-
};
|
|
1732
|
+
});
|
|
1705
1733
|
|
|
1706
|
-
_this
|
|
1734
|
+
_defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
|
|
1707
1735
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1708
1736
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1709
1737
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1710
1738
|
});
|
|
1711
|
-
};
|
|
1739
|
+
});
|
|
1740
|
+
|
|
1741
|
+
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1742
|
+
return _this.internalPlayer;
|
|
1743
|
+
});
|
|
1712
1744
|
|
|
1713
|
-
_this
|
|
1745
|
+
_defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
|
|
1714
1746
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1715
1747
|
_this.internalPlayer.stopVideo();
|
|
1748
|
+
|
|
1716
1749
|
return;
|
|
1717
|
-
}
|
|
1750
|
+
} // set queueing options
|
|
1751
|
+
|
|
1718
1752
|
|
|
1719
|
-
// set queueing options
|
|
1720
1753
|
var autoplay = false;
|
|
1721
1754
|
var opts = {
|
|
1722
1755
|
videoId: _this.props.videoId
|
|
1723
1756
|
};
|
|
1757
|
+
|
|
1724
1758
|
if ('playerVars' in _this.props.opts) {
|
|
1725
1759
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1760
|
+
|
|
1726
1761
|
if ('start' in _this.props.opts.playerVars) {
|
|
1727
1762
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1728
1763
|
}
|
|
1764
|
+
|
|
1729
1765
|
if ('end' in _this.props.opts.playerVars) {
|
|
1730
1766
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1731
1767
|
}
|
|
1732
|
-
}
|
|
1768
|
+
} // if autoplay is enabled loadVideoById
|
|
1769
|
+
|
|
1733
1770
|
|
|
1734
|
-
// if autoplay is enabled loadVideoById
|
|
1735
1771
|
if (autoplay) {
|
|
1736
1772
|
_this.internalPlayer.loadVideoById(opts);
|
|
1773
|
+
|
|
1737
1774
|
return;
|
|
1738
|
-
}
|
|
1739
|
-
|
|
1775
|
+
} // default behaviour just cues the video
|
|
1776
|
+
|
|
1777
|
+
|
|
1740
1778
|
_this.internalPlayer.cueVideoById(opts);
|
|
1741
|
-
};
|
|
1779
|
+
});
|
|
1742
1780
|
|
|
1743
|
-
_this
|
|
1781
|
+
_defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
|
|
1744
1782
|
_this.container = container;
|
|
1745
|
-
};
|
|
1783
|
+
});
|
|
1746
1784
|
|
|
1747
1785
|
_this.container = null;
|
|
1748
1786
|
_this.internalPlayer = null;
|
|
1749
1787
|
return _this;
|
|
1750
1788
|
}
|
|
1751
1789
|
|
|
1752
|
-
/**
|
|
1753
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1754
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1755
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1756
|
-
*/
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
1790
|
_createClass(YouTube, [{
|
|
1760
|
-
key:
|
|
1791
|
+
key: "componentDidMount",
|
|
1761
1792
|
value: function componentDidMount() {
|
|
1762
1793
|
this.createPlayer();
|
|
1763
1794
|
}
|
|
1764
1795
|
}, {
|
|
1765
|
-
key:
|
|
1796
|
+
key: "componentDidUpdate",
|
|
1766
1797
|
value: function componentDidUpdate(prevProps) {
|
|
1767
1798
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1768
1799
|
this.updatePlayer();
|
|
@@ -1777,112 +1808,58 @@ var YouTube = function (_React$Component) {
|
|
|
1777
1808
|
}
|
|
1778
1809
|
}
|
|
1779
1810
|
}, {
|
|
1780
|
-
key:
|
|
1811
|
+
key: "componentWillUnmount",
|
|
1781
1812
|
value: function componentWillUnmount() {
|
|
1782
|
-
/**
|
|
1783
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1784
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1785
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1786
|
-
* this method isn't quick enough to reset the container element.
|
|
1813
|
+
/**
|
|
1814
|
+
* Note: The `youtube-player` package that is used promisifies all YouTube
|
|
1815
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1816
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1817
|
+
* this method isn't quick enough to reset the container element.
|
|
1787
1818
|
*/
|
|
1788
1819
|
this.internalPlayer.destroy();
|
|
1789
1820
|
}
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
*
|
|
1793
|
-
*
|
|
1794
|
-
*
|
|
1795
|
-
* @param {Object} target - player object
|
|
1796
|
-
*/
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
/**
|
|
1800
|
-
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1801
|
-
*
|
|
1802
|
-
* @param {Object} event
|
|
1803
|
-
* @param {Integer} data - error type
|
|
1804
|
-
* @param {Object} target - player object
|
|
1805
|
-
*/
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
/**
|
|
1809
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1810
|
-
*
|
|
1811
|
-
* @param {Object} event
|
|
1812
|
-
* @param {Integer} data - status change type
|
|
1813
|
-
* @param {Object} target - actual YT player
|
|
1814
|
-
*/
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
/**
|
|
1818
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1819
|
-
*
|
|
1820
|
-
* @param {Object} event
|
|
1821
|
-
* @param {Float} data - playback rate
|
|
1822
|
-
* @param {Object} target - actual YT player
|
|
1823
|
-
*/
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
/**
|
|
1827
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1828
|
-
*
|
|
1829
|
-
* @param {Object} event
|
|
1830
|
-
* @param {String} data - playback quality
|
|
1831
|
-
* @param {Object} target - actual YT player
|
|
1832
|
-
*/
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
/**
|
|
1836
|
-
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1837
|
-
*/
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
/**
|
|
1841
|
-
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1842
|
-
*/
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
/**
|
|
1846
|
-
* Method to update the id and class of the Youtube Player iframe.
|
|
1847
|
-
* React should update this automatically but since the Youtube Player API
|
|
1848
|
-
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1849
|
-
*/
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
/**
|
|
1853
|
-
* Call Youtube Player API methods to update the currently playing video.
|
|
1854
|
-
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1855
|
-
* Youtube Player API methods to update the video.
|
|
1821
|
+
/**
|
|
1822
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1823
|
+
*
|
|
1824
|
+
* @param {Object} event
|
|
1825
|
+
* @param {Object} target - player object
|
|
1856
1826
|
*/
|
|
1857
1827
|
|
|
1858
1828
|
}, {
|
|
1859
|
-
key:
|
|
1829
|
+
key: "render",
|
|
1860
1830
|
value: function render() {
|
|
1861
|
-
return
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1831
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1832
|
+
className: this.props.containerClassName
|
|
1833
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1834
|
+
id: this.props.id,
|
|
1835
|
+
className: this.props.className,
|
|
1836
|
+
ref: this.refContainer
|
|
1837
|
+
}));
|
|
1866
1838
|
}
|
|
1867
1839
|
}]);
|
|
1868
1840
|
|
|
1869
1841
|
return YouTube;
|
|
1870
|
-
}(
|
|
1842
|
+
}(React.Component);
|
|
1843
|
+
|
|
1844
|
+
_defineProperty(YouTube, "PlayerState", {
|
|
1845
|
+
UNSTARTED: -1,
|
|
1846
|
+
ENDED: 0,
|
|
1847
|
+
PLAYING: 1,
|
|
1848
|
+
PAUSED: 2,
|
|
1849
|
+
BUFFERING: 3,
|
|
1850
|
+
CUED: 5
|
|
1851
|
+
});
|
|
1871
1852
|
|
|
1872
1853
|
YouTube.propTypes = {
|
|
1873
1854
|
videoId: PropTypes.string,
|
|
1874
|
-
|
|
1875
1855
|
// custom ID for player element
|
|
1876
1856
|
id: PropTypes.string,
|
|
1877
|
-
|
|
1878
1857
|
// custom class name for player element
|
|
1879
1858
|
className: PropTypes.string,
|
|
1880
1859
|
// custom class name for player container element
|
|
1881
1860
|
containerClassName: PropTypes.string,
|
|
1882
|
-
|
|
1883
1861
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1884
1862
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1885
|
-
|
|
1886
1863
|
// event subscriptions
|
|
1887
1864
|
onReady: PropTypes.func,
|
|
1888
1865
|
onError: PropTypes.func,
|
|
@@ -1894,6 +1871,7 @@ YouTube.propTypes = {
|
|
|
1894
1871
|
onPlaybackQualityChange: PropTypes.func
|
|
1895
1872
|
};
|
|
1896
1873
|
YouTube.defaultProps = {
|
|
1874
|
+
videoId: null,
|
|
1897
1875
|
id: null,
|
|
1898
1876
|
className: null,
|
|
1899
1877
|
opts: {},
|
|
@@ -1907,14 +1885,6 @@ YouTube.defaultProps = {
|
|
|
1907
1885
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1908
1886
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1909
1887
|
};
|
|
1910
|
-
YouTube.PlayerState = {
|
|
1911
|
-
UNSTARTED: -1,
|
|
1912
|
-
ENDED: 0,
|
|
1913
|
-
PLAYING: 1,
|
|
1914
|
-
PAUSED: 2,
|
|
1915
|
-
BUFFERING: 3,
|
|
1916
|
-
CUED: 5
|
|
1917
|
-
};
|
|
1918
1888
|
|
|
1919
1889
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1920
1890
|
var url = _ref.url,
|
|
@@ -2016,11 +1986,11 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
2016
1986
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
2017
1987
|
};
|
|
2018
1988
|
|
|
2019
|
-
return
|
|
1989
|
+
return React.createElement(
|
|
2020
1990
|
'div',
|
|
2021
1991
|
{ id: 'fluid-video-container' },
|
|
2022
|
-
|
|
2023
|
-
|
|
1992
|
+
React.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
1993
|
+
React.createElement(
|
|
2024
1994
|
'style',
|
|
2025
1995
|
{ jsx: 'true' },
|
|
2026
1996
|
'\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 '
|
|
@@ -2033,20 +2003,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2033
2003
|
content = _ref.content,
|
|
2034
2004
|
getSerializers = _ref.getSerializers;
|
|
2035
2005
|
|
|
2036
|
-
return
|
|
2006
|
+
return React.createElement(
|
|
2037
2007
|
'article',
|
|
2038
2008
|
{ className: 'sidebar' },
|
|
2039
|
-
|
|
2009
|
+
React.createElement(
|
|
2040
2010
|
'div',
|
|
2041
2011
|
null,
|
|
2042
|
-
|
|
2012
|
+
React.createElement(
|
|
2043
2013
|
'h3',
|
|
2044
2014
|
null,
|
|
2045
2015
|
caption
|
|
2046
2016
|
),
|
|
2047
|
-
|
|
2017
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2048
2018
|
),
|
|
2049
|
-
|
|
2019
|
+
React.createElement(
|
|
2050
2020
|
'style',
|
|
2051
2021
|
{ jsx: 'true' },
|
|
2052
2022
|
'\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 '
|
|
@@ -2057,18 +2027,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2057
2027
|
var TableShow = function TableShow(_ref) {
|
|
2058
2028
|
var rows = _ref.rows;
|
|
2059
2029
|
|
|
2060
|
-
return
|
|
2030
|
+
return React.createElement(
|
|
2061
2031
|
Table,
|
|
2062
2032
|
{ bordered: true, hover: true, responsive: true },
|
|
2063
|
-
|
|
2033
|
+
React.createElement(
|
|
2064
2034
|
'tbody',
|
|
2065
2035
|
null,
|
|
2066
2036
|
rows && rows.map(function (row) {
|
|
2067
|
-
return
|
|
2037
|
+
return React.createElement(
|
|
2068
2038
|
'tr',
|
|
2069
2039
|
{ key: row._key },
|
|
2070
2040
|
row.cells && row.cells.map(function (cell, index) {
|
|
2071
|
-
return cell &&
|
|
2041
|
+
return cell && React.createElement(
|
|
2072
2042
|
'td',
|
|
2073
2043
|
{ key: index },
|
|
2074
2044
|
cell
|
|
@@ -2166,25 +2136,25 @@ var Media = function Media(_ref) {
|
|
|
2166
2136
|
margin: imageMargin
|
|
2167
2137
|
};
|
|
2168
2138
|
|
|
2169
|
-
return
|
|
2139
|
+
return React.createElement(
|
|
2170
2140
|
Figure$1,
|
|
2171
2141
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2172
|
-
|
|
2142
|
+
React.createElement(
|
|
2173
2143
|
'a',
|
|
2174
2144
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2175
|
-
|
|
2145
|
+
React.createElement(
|
|
2176
2146
|
LazyLoad,
|
|
2177
2147
|
{ once: true },
|
|
2178
|
-
|
|
2148
|
+
React.createElement(
|
|
2179
2149
|
'picture',
|
|
2180
2150
|
null,
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2151
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2152
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2153
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2154
|
+
React.createElement('img', _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2185
2155
|
)
|
|
2186
2156
|
),
|
|
2187
|
-
caption &&
|
|
2157
|
+
caption && React.createElement(
|
|
2188
2158
|
Figure$1.Caption,
|
|
2189
2159
|
{ className: 'media-caption' },
|
|
2190
2160
|
caption
|
|
@@ -2192,9 +2162,9 @@ var Media = function Media(_ref) {
|
|
|
2192
2162
|
)
|
|
2193
2163
|
);
|
|
2194
2164
|
} else if (caption && caption !== '') {
|
|
2195
|
-
return
|
|
2165
|
+
return React.createElement(
|
|
2196
2166
|
'a',
|
|
2197
|
-
_extends
|
|
2167
|
+
_extends({}, uploadDoc.downloadMedia ? {
|
|
2198
2168
|
href: uploadDoc.asset.url + '?dl='
|
|
2199
2169
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2200
2170
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2212,10 +2182,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2212
2182
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2213
2183
|
|
|
2214
2184
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2215
|
-
return
|
|
2185
|
+
return React.createElement(
|
|
2216
2186
|
'div',
|
|
2217
2187
|
{ className: 'd-block text-center mb-3' },
|
|
2218
|
-
|
|
2188
|
+
React.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2219
2189
|
);
|
|
2220
2190
|
};
|
|
2221
2191
|
|
|
@@ -2310,10 +2280,10 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2310
2280
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
|
|
2311
2281
|
};
|
|
2312
2282
|
|
|
2313
|
-
return
|
|
2283
|
+
return React.createElement(
|
|
2314
2284
|
'div',
|
|
2315
2285
|
null,
|
|
2316
|
-
vidLoaded &&
|
|
2286
|
+
vidLoaded && React.createElement(
|
|
2317
2287
|
'video',
|
|
2318
2288
|
{
|
|
2319
2289
|
poster: thumbnail || '',
|
|
@@ -2331,7 +2301,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2331
2301
|
onPlay: function onPlay(e) {
|
|
2332
2302
|
return handleOnPlay(e);
|
|
2333
2303
|
} },
|
|
2334
|
-
|
|
2304
|
+
React.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2335
2305
|
'Your browser does not support the video tag.'
|
|
2336
2306
|
)
|
|
2337
2307
|
);
|
|
@@ -2368,7 +2338,7 @@ var Video = function Video(_ref) {
|
|
|
2368
2338
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2369
2339
|
//console.log('success:', success.ref)
|
|
2370
2340
|
var player = success.ref;
|
|
2371
|
-
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2341
|
+
if (_typeof$1(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2372
2342
|
player.ima3.settings.debug = true;
|
|
2373
2343
|
if (targeting.content_placement && targeting.document_url) {
|
|
2374
2344
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2466,53 +2436,53 @@ var Video = function Video(_ref) {
|
|
|
2466
2436
|
|
|
2467
2437
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2468
2438
|
if (videoID) {
|
|
2469
|
-
return
|
|
2439
|
+
return React.createElement(
|
|
2470
2440
|
'div',
|
|
2471
2441
|
null,
|
|
2472
|
-
|
|
2442
|
+
React.createElement(ReactPlayerLoader, {
|
|
2473
2443
|
onSuccess: onVideoSuccess,
|
|
2474
2444
|
accountId: accountIDs.brightcove.accountId,
|
|
2475
2445
|
videoId: videoID,
|
|
2476
2446
|
playerId: accountIDs.brightcove.playerId,
|
|
2477
2447
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2478
2448
|
}),
|
|
2479
|
-
|
|
2449
|
+
React.createElement(
|
|
2480
2450
|
'style',
|
|
2481
2451
|
{ jsx: 'true' },
|
|
2482
2452
|
'\n .brightcove-fluid {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n width: 100%;\n margin-bottom: 1rem;\n }\n .brightcove-fluid .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 '
|
|
2483
2453
|
)
|
|
2484
2454
|
);
|
|
2485
2455
|
} else if (playlistID) {
|
|
2486
|
-
return
|
|
2456
|
+
return React.createElement(
|
|
2487
2457
|
'div',
|
|
2488
2458
|
null,
|
|
2489
|
-
|
|
2459
|
+
React.createElement(ReactPlayerLoader, {
|
|
2490
2460
|
accountId: accountIDs.brightcove.accountId,
|
|
2491
2461
|
playlistId: playlistID,
|
|
2492
2462
|
playerId: accountIDs.brightcove.playerId,
|
|
2493
2463
|
onSuccess: onVideoSuccess,
|
|
2494
2464
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2495
2465
|
}),
|
|
2496
|
-
|
|
2466
|
+
React.createElement(
|
|
2497
2467
|
'style',
|
|
2498
2468
|
{ jsx: 'true' },
|
|
2499
2469
|
'\n .brightcove-fluid {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n width: 100%;\n margin-bottom: 1rem;\n }\n .brightcove-fluid .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 '
|
|
2500
2470
|
)
|
|
2501
2471
|
);
|
|
2502
2472
|
} else if (experienceID) {
|
|
2503
|
-
return
|
|
2473
|
+
return React.createElement(
|
|
2504
2474
|
'div',
|
|
2505
2475
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2506
|
-
videoLoaded &&
|
|
2476
|
+
videoLoaded && React.createElement('div', { 'data-experience': experienceID })
|
|
2507
2477
|
);
|
|
2508
2478
|
}
|
|
2509
2479
|
return null;
|
|
2510
2480
|
}
|
|
2511
2481
|
if (source === 'mp4') {
|
|
2512
|
-
return
|
|
2482
|
+
return React.createElement(
|
|
2513
2483
|
'div',
|
|
2514
2484
|
null,
|
|
2515
|
-
|
|
2485
|
+
React.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2516
2486
|
);
|
|
2517
2487
|
}
|
|
2518
2488
|
|
|
@@ -2890,11 +2860,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2890
2860
|
|
|
2891
2861
|
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; }
|
|
2892
2862
|
|
|
2893
|
-
function
|
|
2863
|
+
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; } } }; }
|
|
2864
|
+
|
|
2865
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2894
2866
|
|
|
2895
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2867
|
+
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."); }
|
|
2896
2868
|
|
|
2897
|
-
function
|
|
2869
|
+
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); }
|
|
2870
|
+
|
|
2871
|
+
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; }
|
|
2872
|
+
|
|
2873
|
+
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; }
|
|
2898
2874
|
|
|
2899
2875
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2900
2876
|
|
|
@@ -3024,12 +3000,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3024
3000
|
|
|
3025
3001
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3026
3002
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3027
|
-
|
|
3028
|
-
var
|
|
3029
|
-
|
|
3003
|
+
|
|
3004
|
+
var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
|
|
3005
|
+
_step;
|
|
3030
3006
|
|
|
3031
3007
|
try {
|
|
3032
|
-
for (
|
|
3008
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3033
3009
|
var p = _step.value;
|
|
3034
3010
|
|
|
3035
3011
|
if (props$1[p]) {
|
|
@@ -3044,18 +3020,9 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3044
3020
|
}
|
|
3045
3021
|
}
|
|
3046
3022
|
} catch (err) {
|
|
3047
|
-
|
|
3048
|
-
_iteratorError = err;
|
|
3023
|
+
_iterator.e(err);
|
|
3049
3024
|
} finally {
|
|
3050
|
-
|
|
3051
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3052
|
-
_iterator["return"]();
|
|
3053
|
-
}
|
|
3054
|
-
} finally {
|
|
3055
|
-
if (_didIteratorError) {
|
|
3056
|
-
throw _iteratorError;
|
|
3057
|
-
}
|
|
3058
|
-
}
|
|
3025
|
+
_iterator.f();
|
|
3059
3026
|
}
|
|
3060
3027
|
|
|
3061
3028
|
return config;
|
|
@@ -3120,7 +3087,7 @@ function isEqual(a, b) {
|
|
|
3120
3087
|
return true;
|
|
3121
3088
|
}
|
|
3122
3089
|
|
|
3123
|
-
if ((0,
|
|
3090
|
+
if ((0, React.isValidElement)(a) && (0, React.isValidElement)(b)) {
|
|
3124
3091
|
return true;
|
|
3125
3092
|
}
|
|
3126
3093
|
|
|
@@ -3182,7 +3149,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3182
3149
|
});
|
|
3183
3150
|
exports["default"] = void 0;
|
|
3184
3151
|
|
|
3185
|
-
var _react = _interopRequireWildcard(
|
|
3152
|
+
var _react = _interopRequireWildcard(React);
|
|
3186
3153
|
|
|
3187
3154
|
|
|
3188
3155
|
|
|
@@ -3202,12 +3169,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3202
3169
|
|
|
3203
3170
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3204
3171
|
|
|
3205
|
-
function
|
|
3172
|
+
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); }; }
|
|
3206
3173
|
|
|
3207
|
-
function
|
|
3174
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3208
3175
|
|
|
3209
3176
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3210
3177
|
|
|
3178
|
+
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; } }
|
|
3179
|
+
|
|
3180
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3181
|
+
|
|
3211
3182
|
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); }
|
|
3212
3183
|
|
|
3213
3184
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3216,14 +3187,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3216
3187
|
|
|
3217
3188
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3218
3189
|
|
|
3219
|
-
var Player =
|
|
3220
|
-
/*#__PURE__*/
|
|
3221
|
-
function (_Component) {
|
|
3190
|
+
var Player = /*#__PURE__*/function (_Component) {
|
|
3222
3191
|
_inherits(Player, _Component);
|
|
3223
3192
|
|
|
3224
|
-
|
|
3225
|
-
var _getPrototypeOf2;
|
|
3193
|
+
var _super = _createSuper(Player);
|
|
3226
3194
|
|
|
3195
|
+
function Player() {
|
|
3227
3196
|
var _this;
|
|
3228
3197
|
|
|
3229
3198
|
_classCallCheck(this, Player);
|
|
@@ -3232,7 +3201,7 @@ function (_Component) {
|
|
|
3232
3201
|
_args[_key] = arguments[_key];
|
|
3233
3202
|
}
|
|
3234
3203
|
|
|
3235
|
-
_this =
|
|
3204
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
3236
3205
|
|
|
3237
3206
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3238
3207
|
|
|
@@ -3557,7 +3526,7 @@ function (_Component) {
|
|
|
3557
3526
|
return null;
|
|
3558
3527
|
}
|
|
3559
3528
|
|
|
3560
|
-
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3529
|
+
return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
|
|
3561
3530
|
ref: this.ref,
|
|
3562
3531
|
onReady: this.handleReady,
|
|
3563
3532
|
onPlay: this.handlePlay,
|
|
@@ -3590,7 +3559,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3590
3559
|
});
|
|
3591
3560
|
exports["default"] = createSinglePlayer;
|
|
3592
3561
|
|
|
3593
|
-
var _react = _interopRequireWildcard(
|
|
3562
|
+
var _react = _interopRequireWildcard(React);
|
|
3594
3563
|
|
|
3595
3564
|
|
|
3596
3565
|
|
|
@@ -3618,12 +3587,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3618
3587
|
|
|
3619
3588
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3620
3589
|
|
|
3621
|
-
function
|
|
3590
|
+
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); }; }
|
|
3622
3591
|
|
|
3623
|
-
function
|
|
3592
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3624
3593
|
|
|
3625
3594
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3626
3595
|
|
|
3596
|
+
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; } }
|
|
3597
|
+
|
|
3598
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3599
|
+
|
|
3627
3600
|
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); }
|
|
3628
3601
|
|
|
3629
3602
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3635,14 +3608,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3635
3608
|
function createSinglePlayer(activePlayer) {
|
|
3636
3609
|
var _class, _temp;
|
|
3637
3610
|
|
|
3638
|
-
return _temp = _class =
|
|
3639
|
-
/*#__PURE__*/
|
|
3640
|
-
function (_Component) {
|
|
3611
|
+
return _temp = _class = /*#__PURE__*/function (_Component) {
|
|
3641
3612
|
_inherits(SinglePlayer, _Component);
|
|
3642
3613
|
|
|
3643
|
-
|
|
3644
|
-
var _getPrototypeOf2;
|
|
3614
|
+
var _super = _createSuper(SinglePlayer);
|
|
3645
3615
|
|
|
3616
|
+
function SinglePlayer() {
|
|
3646
3617
|
var _this;
|
|
3647
3618
|
|
|
3648
3619
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3651,7 +3622,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3651
3622
|
args[_key] = arguments[_key];
|
|
3652
3623
|
}
|
|
3653
3624
|
|
|
3654
|
-
_this =
|
|
3625
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3655
3626
|
|
|
3656
3627
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3657
3628
|
|
|
@@ -3719,12 +3690,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3719
3690
|
height = _this$props.height,
|
|
3720
3691
|
Wrapper = _this$props.wrapper;
|
|
3721
3692
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3722
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
3693
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
3723
3694
|
style: _objectSpread({}, style, {
|
|
3724
3695
|
width: width,
|
|
3725
3696
|
height: height
|
|
3726
3697
|
})
|
|
3727
|
-
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3698
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3728
3699
|
ref: this.ref,
|
|
3729
3700
|
activePlayer: activePlayer,
|
|
3730
3701
|
config: this.config
|
|
@@ -3746,7 +3717,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3746
3717
|
});
|
|
3747
3718
|
exports["default"] = exports.YouTube = void 0;
|
|
3748
3719
|
|
|
3749
|
-
var _react = _interopRequireWildcard(
|
|
3720
|
+
var _react = _interopRequireWildcard(React);
|
|
3750
3721
|
|
|
3751
3722
|
|
|
3752
3723
|
|
|
@@ -3770,23 +3741,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3770
3741
|
|
|
3771
3742
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3772
3743
|
|
|
3773
|
-
function
|
|
3744
|
+
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); }; }
|
|
3774
3745
|
|
|
3775
|
-
function
|
|
3746
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3776
3747
|
|
|
3777
3748
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3778
3749
|
|
|
3750
|
+
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; } }
|
|
3751
|
+
|
|
3752
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3753
|
+
|
|
3779
3754
|
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); }
|
|
3780
3755
|
|
|
3781
3756
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3782
3757
|
|
|
3783
3758
|
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; }
|
|
3784
3759
|
|
|
3785
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3760
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3761
|
+
|
|
3762
|
+
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."); }
|
|
3763
|
+
|
|
3764
|
+
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); }
|
|
3786
3765
|
|
|
3787
|
-
function
|
|
3766
|
+
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; }
|
|
3788
3767
|
|
|
3789
|
-
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr)
|
|
3768
|
+
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; }
|
|
3790
3769
|
|
|
3791
3770
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3792
3771
|
|
|
@@ -3811,14 +3790,12 @@ function parsePlaylist(url) {
|
|
|
3811
3790
|
return {};
|
|
3812
3791
|
}
|
|
3813
3792
|
|
|
3814
|
-
var YouTube =
|
|
3815
|
-
/*#__PURE__*/
|
|
3816
|
-
function (_Component) {
|
|
3793
|
+
var YouTube = /*#__PURE__*/function (_Component) {
|
|
3817
3794
|
_inherits(YouTube, _Component);
|
|
3818
3795
|
|
|
3819
|
-
|
|
3820
|
-
var _getPrototypeOf2;
|
|
3796
|
+
var _super = _createSuper(YouTube);
|
|
3821
3797
|
|
|
3798
|
+
function YouTube() {
|
|
3822
3799
|
var _this;
|
|
3823
3800
|
|
|
3824
3801
|
_classCallCheck(this, YouTube);
|
|
@@ -3827,7 +3804,7 @@ function (_Component) {
|
|
|
3827
3804
|
args[_key] = arguments[_key];
|
|
3828
3805
|
}
|
|
3829
3806
|
|
|
3830
|
-
_this =
|
|
3807
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3831
3808
|
|
|
3832
3809
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3833
3810
|
|
|
@@ -4015,9 +3992,9 @@ function (_Component) {
|
|
|
4015
3992
|
height: '100%',
|
|
4016
3993
|
display: display
|
|
4017
3994
|
};
|
|
4018
|
-
return _react["default"].createElement("div", {
|
|
3995
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4019
3996
|
style: style
|
|
4020
|
-
}, _react["default"].createElement("div", {
|
|
3997
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
4021
3998
|
ref: this.ref
|
|
4022
3999
|
}));
|
|
4023
4000
|
}
|
|
@@ -4049,7 +4026,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4049
4026
|
});
|
|
4050
4027
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4051
4028
|
|
|
4052
|
-
var _react = _interopRequireWildcard(
|
|
4029
|
+
var _react = _interopRequireWildcard(React);
|
|
4053
4030
|
|
|
4054
4031
|
|
|
4055
4032
|
|
|
@@ -4073,12 +4050,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4073
4050
|
|
|
4074
4051
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4075
4052
|
|
|
4076
|
-
function
|
|
4053
|
+
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); }; }
|
|
4077
4054
|
|
|
4078
|
-
function
|
|
4055
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4079
4056
|
|
|
4080
4057
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4081
4058
|
|
|
4059
|
+
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; } }
|
|
4060
|
+
|
|
4061
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4062
|
+
|
|
4082
4063
|
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); }
|
|
4083
4064
|
|
|
4084
4065
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4087,16 +4068,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4087
4068
|
|
|
4088
4069
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4089
4070
|
var SDK_GLOBAL = 'SC';
|
|
4090
|
-
var MATCH_URL = /(soundcloud\.com|snd\.sc)
|
|
4071
|
+
var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
4091
4072
|
|
|
4092
|
-
var SoundCloud =
|
|
4093
|
-
/*#__PURE__*/
|
|
4094
|
-
function (_Component) {
|
|
4073
|
+
var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
4095
4074
|
_inherits(SoundCloud, _Component);
|
|
4096
4075
|
|
|
4097
|
-
|
|
4098
|
-
var _getPrototypeOf2;
|
|
4076
|
+
var _super = _createSuper(SoundCloud);
|
|
4099
4077
|
|
|
4078
|
+
function SoundCloud() {
|
|
4100
4079
|
var _this;
|
|
4101
4080
|
|
|
4102
4081
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4105,7 +4084,7 @@ function (_Component) {
|
|
|
4105
4084
|
args[_key] = arguments[_key];
|
|
4106
4085
|
}
|
|
4107
4086
|
|
|
4108
|
-
_this =
|
|
4087
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4109
4088
|
|
|
4110
4089
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4111
4090
|
|
|
@@ -4226,7 +4205,7 @@ function (_Component) {
|
|
|
4226
4205
|
height: '100%',
|
|
4227
4206
|
display: display
|
|
4228
4207
|
};
|
|
4229
|
-
return _react["default"].createElement("iframe", {
|
|
4208
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4230
4209
|
ref: this.ref,
|
|
4231
4210
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4232
4211
|
style: style,
|
|
@@ -4264,7 +4243,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4264
4243
|
});
|
|
4265
4244
|
exports["default"] = exports.Vimeo = void 0;
|
|
4266
4245
|
|
|
4267
|
-
var _react = _interopRequireWildcard(
|
|
4246
|
+
var _react = _interopRequireWildcard(React);
|
|
4268
4247
|
|
|
4269
4248
|
|
|
4270
4249
|
|
|
@@ -4288,12 +4267,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4288
4267
|
|
|
4289
4268
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4290
4269
|
|
|
4291
|
-
function
|
|
4270
|
+
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); }; }
|
|
4292
4271
|
|
|
4293
|
-
function
|
|
4272
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4294
4273
|
|
|
4295
4274
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4296
4275
|
|
|
4276
|
+
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; } }
|
|
4277
|
+
|
|
4278
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4279
|
+
|
|
4297
4280
|
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); }
|
|
4298
4281
|
|
|
4299
4282
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4305,14 +4288,12 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4305
4288
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4306
4289
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4307
4290
|
|
|
4308
|
-
var Vimeo =
|
|
4309
|
-
/*#__PURE__*/
|
|
4310
|
-
function (_Component) {
|
|
4291
|
+
var Vimeo = /*#__PURE__*/function (_Component) {
|
|
4311
4292
|
_inherits(Vimeo, _Component);
|
|
4312
4293
|
|
|
4313
|
-
|
|
4314
|
-
var _getPrototypeOf2;
|
|
4294
|
+
var _super = _createSuper(Vimeo);
|
|
4315
4295
|
|
|
4296
|
+
function Vimeo() {
|
|
4316
4297
|
var _this;
|
|
4317
4298
|
|
|
4318
4299
|
_classCallCheck(this, Vimeo);
|
|
@@ -4321,7 +4302,7 @@ function (_Component) {
|
|
|
4321
4302
|
args[_key] = arguments[_key];
|
|
4322
4303
|
}
|
|
4323
4304
|
|
|
4324
|
-
_this =
|
|
4305
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4325
4306
|
|
|
4326
4307
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4327
4308
|
|
|
@@ -4478,7 +4459,7 @@ function (_Component) {
|
|
|
4478
4459
|
overflow: 'hidden',
|
|
4479
4460
|
display: display
|
|
4480
4461
|
};
|
|
4481
|
-
return _react["default"].createElement("div", {
|
|
4462
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4482
4463
|
key: this.props.url,
|
|
4483
4464
|
ref: this.ref,
|
|
4484
4465
|
style: style
|
|
@@ -4518,7 +4499,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4518
4499
|
});
|
|
4519
4500
|
exports["default"] = exports.Facebook = void 0;
|
|
4520
4501
|
|
|
4521
|
-
var _react = _interopRequireWildcard(
|
|
4502
|
+
var _react = _interopRequireWildcard(React);
|
|
4522
4503
|
|
|
4523
4504
|
|
|
4524
4505
|
|
|
@@ -4538,12 +4519,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4538
4519
|
|
|
4539
4520
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4540
4521
|
|
|
4541
|
-
function
|
|
4522
|
+
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); }; }
|
|
4542
4523
|
|
|
4543
|
-
function
|
|
4524
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4544
4525
|
|
|
4545
4526
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4546
4527
|
|
|
4528
|
+
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; } }
|
|
4529
|
+
|
|
4530
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4531
|
+
|
|
4547
4532
|
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); }
|
|
4548
4533
|
|
|
4549
4534
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4556,14 +4541,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4556
4541
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4557
4542
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4558
4543
|
|
|
4559
|
-
var Facebook =
|
|
4560
|
-
/*#__PURE__*/
|
|
4561
|
-
function (_Component) {
|
|
4544
|
+
var Facebook = /*#__PURE__*/function (_Component) {
|
|
4562
4545
|
_inherits(Facebook, _Component);
|
|
4563
4546
|
|
|
4564
|
-
|
|
4565
|
-
var _getPrototypeOf2;
|
|
4547
|
+
var _super = _createSuper(Facebook);
|
|
4566
4548
|
|
|
4549
|
+
function Facebook() {
|
|
4567
4550
|
var _this;
|
|
4568
4551
|
|
|
4569
4552
|
_classCallCheck(this, Facebook);
|
|
@@ -4572,7 +4555,7 @@ function (_Component) {
|
|
|
4572
4555
|
args[_key] = arguments[_key];
|
|
4573
4556
|
}
|
|
4574
4557
|
|
|
4575
|
-
_this =
|
|
4558
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4576
4559
|
|
|
4577
4560
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4578
4561
|
|
|
@@ -4688,7 +4671,7 @@ function (_Component) {
|
|
|
4688
4671
|
width: '100%',
|
|
4689
4672
|
height: '100%'
|
|
4690
4673
|
};
|
|
4691
|
-
return _react["default"].createElement("div", {
|
|
4674
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4692
4675
|
style: style,
|
|
4693
4676
|
id: this.playerID,
|
|
4694
4677
|
className: "fb-video",
|
|
@@ -4728,7 +4711,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4728
4711
|
});
|
|
4729
4712
|
exports["default"] = exports.Streamable = void 0;
|
|
4730
4713
|
|
|
4731
|
-
var _react = _interopRequireWildcard(
|
|
4714
|
+
var _react = _interopRequireWildcard(React);
|
|
4732
4715
|
|
|
4733
4716
|
|
|
4734
4717
|
|
|
@@ -4748,12 +4731,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4748
4731
|
|
|
4749
4732
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4750
4733
|
|
|
4751
|
-
function
|
|
4734
|
+
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); }; }
|
|
4752
4735
|
|
|
4753
|
-
function
|
|
4736
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4754
4737
|
|
|
4755
4738
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4756
4739
|
|
|
4740
|
+
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; } }
|
|
4741
|
+
|
|
4742
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4743
|
+
|
|
4757
4744
|
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); }
|
|
4758
4745
|
|
|
4759
4746
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4764,14 +4751,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4764
4751
|
var SDK_GLOBAL = 'playerjs';
|
|
4765
4752
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4766
4753
|
|
|
4767
|
-
var Streamable =
|
|
4768
|
-
/*#__PURE__*/
|
|
4769
|
-
function (_Component) {
|
|
4754
|
+
var Streamable = /*#__PURE__*/function (_Component) {
|
|
4770
4755
|
_inherits(Streamable, _Component);
|
|
4771
4756
|
|
|
4772
|
-
|
|
4773
|
-
var _getPrototypeOf2;
|
|
4757
|
+
var _super = _createSuper(Streamable);
|
|
4774
4758
|
|
|
4759
|
+
function Streamable() {
|
|
4775
4760
|
var _this;
|
|
4776
4761
|
|
|
4777
4762
|
_classCallCheck(this, Streamable);
|
|
@@ -4780,7 +4765,7 @@ function (_Component) {
|
|
|
4780
4765
|
args[_key] = arguments[_key];
|
|
4781
4766
|
}
|
|
4782
4767
|
|
|
4783
|
-
_this =
|
|
4768
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4784
4769
|
|
|
4785
4770
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4786
4771
|
|
|
@@ -4900,7 +4885,7 @@ function (_Component) {
|
|
|
4900
4885
|
width: '100%',
|
|
4901
4886
|
height: '100%'
|
|
4902
4887
|
};
|
|
4903
|
-
return _react["default"].createElement("iframe", {
|
|
4888
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4904
4889
|
ref: this.ref,
|
|
4905
4890
|
src: "https://streamable.com/o/".concat(id),
|
|
4906
4891
|
frameBorder: "0",
|
|
@@ -4937,7 +4922,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4937
4922
|
});
|
|
4938
4923
|
exports["default"] = exports.Wistia = void 0;
|
|
4939
4924
|
|
|
4940
|
-
var _react = _interopRequireWildcard(
|
|
4925
|
+
var _react = _interopRequireWildcard(React);
|
|
4941
4926
|
|
|
4942
4927
|
|
|
4943
4928
|
|
|
@@ -4961,12 +4946,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4961
4946
|
|
|
4962
4947
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4963
4948
|
|
|
4964
|
-
function
|
|
4949
|
+
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); }; }
|
|
4965
4950
|
|
|
4966
|
-
function
|
|
4951
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4967
4952
|
|
|
4968
4953
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4969
4954
|
|
|
4955
|
+
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; } }
|
|
4956
|
+
|
|
4957
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4958
|
+
|
|
4970
4959
|
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); }
|
|
4971
4960
|
|
|
4972
4961
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4977,26 +4966,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4977
4966
|
var SDK_GLOBAL = 'Wistia';
|
|
4978
4967
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4979
4968
|
|
|
4980
|
-
var Wistia =
|
|
4981
|
-
/*#__PURE__*/
|
|
4982
|
-
function (_Component) {
|
|
4969
|
+
var Wistia = /*#__PURE__*/function (_Component) {
|
|
4983
4970
|
_inherits(Wistia, _Component);
|
|
4984
4971
|
|
|
4985
|
-
|
|
4986
|
-
var _getPrototypeOf2;
|
|
4972
|
+
var _super = _createSuper(Wistia);
|
|
4987
4973
|
|
|
4974
|
+
function Wistia() {
|
|
4988
4975
|
var _this;
|
|
4989
4976
|
|
|
4990
4977
|
_classCallCheck(this, Wistia);
|
|
4991
4978
|
|
|
4992
|
-
for (var _len = arguments.length,
|
|
4993
|
-
|
|
4979
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4980
|
+
_args[_key] = arguments[_key];
|
|
4994
4981
|
}
|
|
4995
4982
|
|
|
4996
|
-
_this =
|
|
4983
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
4997
4984
|
|
|
4998
4985
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4999
4986
|
|
|
4987
|
+
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4988
|
+
var _this$props;
|
|
4989
|
+
|
|
4990
|
+
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4991
|
+
});
|
|
4992
|
+
|
|
4993
|
+
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4994
|
+
var _this$props2;
|
|
4995
|
+
|
|
4996
|
+
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4997
|
+
});
|
|
4998
|
+
|
|
4999
|
+
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
5000
|
+
var _this$props3;
|
|
5001
|
+
|
|
5002
|
+
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5003
|
+
});
|
|
5004
|
+
|
|
5005
|
+
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5006
|
+
var _this$props4;
|
|
5007
|
+
|
|
5008
|
+
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5009
|
+
});
|
|
5010
|
+
|
|
5000
5011
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5001
5012
|
_this.callPlayer('mute');
|
|
5002
5013
|
});
|
|
@@ -5018,17 +5029,13 @@ function (_Component) {
|
|
|
5018
5029
|
value: function load(url) {
|
|
5019
5030
|
var _this2 = this;
|
|
5020
5031
|
|
|
5021
|
-
var _this$
|
|
5022
|
-
playing = _this$
|
|
5023
|
-
muted = _this$
|
|
5024
|
-
controls = _this$
|
|
5025
|
-
_onReady = _this$
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
onSeek = _this$props.onSeek,
|
|
5029
|
-
onEnded = _this$props.onEnded,
|
|
5030
|
-
config = _this$props.config,
|
|
5031
|
-
onError = _this$props.onError;
|
|
5032
|
+
var _this$props5 = this.props,
|
|
5033
|
+
playing = _this$props5.playing,
|
|
5034
|
+
muted = _this$props5.muted,
|
|
5035
|
+
controls = _this$props5.controls,
|
|
5036
|
+
_onReady = _this$props5.onReady,
|
|
5037
|
+
config = _this$props5.config,
|
|
5038
|
+
onError = _this$props5.onError;
|
|
5032
5039
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5033
5040
|
window._wq = window._wq || [];
|
|
5034
5041
|
|
|
@@ -5045,19 +5052,28 @@ function (_Component) {
|
|
|
5045
5052
|
|
|
5046
5053
|
_this2.unbind();
|
|
5047
5054
|
|
|
5048
|
-
_this2.player.bind('play', onPlay);
|
|
5055
|
+
_this2.player.bind('play', _this2.onPlay);
|
|
5049
5056
|
|
|
5050
|
-
_this2.player.bind('pause', onPause);
|
|
5057
|
+
_this2.player.bind('pause', _this2.onPause);
|
|
5051
5058
|
|
|
5052
|
-
_this2.player.bind('seek', onSeek);
|
|
5059
|
+
_this2.player.bind('seek', _this2.onSeek);
|
|
5053
5060
|
|
|
5054
|
-
_this2.player.bind('end', onEnded);
|
|
5061
|
+
_this2.player.bind('end', _this2.onEnded);
|
|
5055
5062
|
|
|
5056
5063
|
_onReady();
|
|
5057
5064
|
}
|
|
5058
5065
|
});
|
|
5059
5066
|
}, onError);
|
|
5060
5067
|
}
|
|
5068
|
+
}, {
|
|
5069
|
+
key: "unbind",
|
|
5070
|
+
value: function unbind() {
|
|
5071
|
+
this.player.unbind('play', this.onPlay);
|
|
5072
|
+
this.player.unbind('pause', this.onPause);
|
|
5073
|
+
this.player.unbind('seek', this.onSeek);
|
|
5074
|
+
this.player.unbind('end', this.onEnded);
|
|
5075
|
+
} // Proxy methods to prevent listener leaks
|
|
5076
|
+
|
|
5061
5077
|
}, {
|
|
5062
5078
|
key: "play",
|
|
5063
5079
|
value: function play() {
|
|
@@ -5068,19 +5084,6 @@ function (_Component) {
|
|
|
5068
5084
|
value: function pause() {
|
|
5069
5085
|
this.callPlayer('pause');
|
|
5070
5086
|
}
|
|
5071
|
-
}, {
|
|
5072
|
-
key: "unbind",
|
|
5073
|
-
value: function unbind() {
|
|
5074
|
-
var _this$props2 = this.props,
|
|
5075
|
-
onPlay = _this$props2.onPlay,
|
|
5076
|
-
onPause = _this$props2.onPause,
|
|
5077
|
-
onSeek = _this$props2.onSeek,
|
|
5078
|
-
onEnded = _this$props2.onEnded;
|
|
5079
|
-
this.player.unbind('play', onPlay);
|
|
5080
|
-
this.player.unbind('pause', onPause);
|
|
5081
|
-
this.player.unbind('seek', onSeek);
|
|
5082
|
-
this.player.unbind('end', onEnded);
|
|
5083
|
-
}
|
|
5084
5087
|
}, {
|
|
5085
5088
|
key: "stop",
|
|
5086
5089
|
value: function stop() {
|
|
@@ -5126,7 +5129,7 @@ function (_Component) {
|
|
|
5126
5129
|
width: '100%',
|
|
5127
5130
|
height: '100%'
|
|
5128
5131
|
};
|
|
5129
|
-
return _react["default"].createElement("div", {
|
|
5132
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5130
5133
|
key: id,
|
|
5131
5134
|
className: className,
|
|
5132
5135
|
style: style
|
|
@@ -5162,7 +5165,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5162
5165
|
});
|
|
5163
5166
|
exports["default"] = exports.Twitch = void 0;
|
|
5164
5167
|
|
|
5165
|
-
var _react = _interopRequireWildcard(
|
|
5168
|
+
var _react = _interopRequireWildcard(React);
|
|
5166
5169
|
|
|
5167
5170
|
|
|
5168
5171
|
|
|
@@ -5186,12 +5189,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5186
5189
|
|
|
5187
5190
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5188
5191
|
|
|
5189
|
-
function
|
|
5192
|
+
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); }; }
|
|
5190
5193
|
|
|
5191
|
-
function
|
|
5194
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5192
5195
|
|
|
5193
5196
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5194
5197
|
|
|
5198
|
+
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; } }
|
|
5199
|
+
|
|
5200
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5201
|
+
|
|
5195
5202
|
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); }
|
|
5196
5203
|
|
|
5197
5204
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5204,14 +5211,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5204
5211
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5205
5212
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5206
5213
|
|
|
5207
|
-
var Twitch =
|
|
5208
|
-
/*#__PURE__*/
|
|
5209
|
-
function (_Component) {
|
|
5214
|
+
var Twitch = /*#__PURE__*/function (_Component) {
|
|
5210
5215
|
_inherits(Twitch, _Component);
|
|
5211
5216
|
|
|
5212
|
-
|
|
5213
|
-
var _getPrototypeOf2;
|
|
5217
|
+
var _super = _createSuper(Twitch);
|
|
5214
5218
|
|
|
5219
|
+
function Twitch() {
|
|
5215
5220
|
var _this;
|
|
5216
5221
|
|
|
5217
5222
|
_classCallCheck(this, Twitch);
|
|
@@ -5220,7 +5225,7 @@ function (_Component) {
|
|
|
5220
5225
|
args[_key] = arguments[_key];
|
|
5221
5226
|
}
|
|
5222
5227
|
|
|
5223
|
-
_this =
|
|
5228
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5224
5229
|
|
|
5225
5230
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5226
5231
|
|
|
@@ -5341,7 +5346,7 @@ function (_Component) {
|
|
|
5341
5346
|
width: '100%',
|
|
5342
5347
|
height: '100%'
|
|
5343
5348
|
};
|
|
5344
|
-
return _react["default"].createElement("div", {
|
|
5349
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5345
5350
|
style: style,
|
|
5346
5351
|
id: this.playerID
|
|
5347
5352
|
});
|
|
@@ -5376,7 +5381,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5376
5381
|
});
|
|
5377
5382
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5378
5383
|
|
|
5379
|
-
var _react = _interopRequireWildcard(
|
|
5384
|
+
var _react = _interopRequireWildcard(React);
|
|
5380
5385
|
|
|
5381
5386
|
|
|
5382
5387
|
|
|
@@ -5394,11 +5399,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5394
5399
|
|
|
5395
5400
|
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; }
|
|
5396
5401
|
|
|
5397
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5402
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5403
|
+
|
|
5404
|
+
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."); }
|
|
5405
|
+
|
|
5406
|
+
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); }
|
|
5398
5407
|
|
|
5399
|
-
function
|
|
5408
|
+
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; }
|
|
5400
5409
|
|
|
5401
|
-
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr)
|
|
5410
|
+
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; }
|
|
5402
5411
|
|
|
5403
5412
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5404
5413
|
|
|
@@ -5408,12 +5417,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5408
5417
|
|
|
5409
5418
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5410
5419
|
|
|
5411
|
-
function
|
|
5420
|
+
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); }; }
|
|
5412
5421
|
|
|
5413
|
-
function
|
|
5422
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5414
5423
|
|
|
5415
5424
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5416
5425
|
|
|
5426
|
+
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; } }
|
|
5427
|
+
|
|
5428
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5429
|
+
|
|
5417
5430
|
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); }
|
|
5418
5431
|
|
|
5419
5432
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5425,14 +5438,12 @@ var SDK_GLOBAL = 'DM';
|
|
|
5425
5438
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5426
5439
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5427
5440
|
|
|
5428
|
-
var DailyMotion =
|
|
5429
|
-
/*#__PURE__*/
|
|
5430
|
-
function (_Component) {
|
|
5441
|
+
var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
5431
5442
|
_inherits(DailyMotion, _Component);
|
|
5432
5443
|
|
|
5433
|
-
|
|
5434
|
-
var _getPrototypeOf2;
|
|
5444
|
+
var _super = _createSuper(DailyMotion);
|
|
5435
5445
|
|
|
5446
|
+
function DailyMotion() {
|
|
5436
5447
|
var _this;
|
|
5437
5448
|
|
|
5438
5449
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5441,7 +5452,7 @@ function (_Component) {
|
|
|
5441
5452
|
args[_key] = arguments[_key];
|
|
5442
5453
|
}
|
|
5443
5454
|
|
|
5444
|
-
_this =
|
|
5455
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5445
5456
|
|
|
5446
5457
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5447
5458
|
|
|
@@ -5570,9 +5581,9 @@ function (_Component) {
|
|
|
5570
5581
|
height: '100%',
|
|
5571
5582
|
display: display
|
|
5572
5583
|
};
|
|
5573
|
-
return _react["default"].createElement("div", {
|
|
5584
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5574
5585
|
style: style
|
|
5575
|
-
}, _react["default"].createElement("div", {
|
|
5586
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
5576
5587
|
ref: this.ref
|
|
5577
5588
|
}));
|
|
5578
5589
|
}
|
|
@@ -5606,7 +5617,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5606
5617
|
});
|
|
5607
5618
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5608
5619
|
|
|
5609
|
-
var _react = _interopRequireWildcard(
|
|
5620
|
+
var _react = _interopRequireWildcard(React);
|
|
5610
5621
|
|
|
5611
5622
|
|
|
5612
5623
|
|
|
@@ -5630,12 +5641,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5630
5641
|
|
|
5631
5642
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5632
5643
|
|
|
5633
|
-
function
|
|
5644
|
+
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); }; }
|
|
5634
5645
|
|
|
5635
|
-
function
|
|
5646
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5636
5647
|
|
|
5637
5648
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5638
5649
|
|
|
5650
|
+
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; } }
|
|
5651
|
+
|
|
5652
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5653
|
+
|
|
5639
5654
|
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); }
|
|
5640
5655
|
|
|
5641
5656
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5646,14 +5661,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5646
5661
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5647
5662
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5648
5663
|
|
|
5649
|
-
var Mixcloud =
|
|
5650
|
-
/*#__PURE__*/
|
|
5651
|
-
function (_Component) {
|
|
5664
|
+
var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
5652
5665
|
_inherits(Mixcloud, _Component);
|
|
5653
5666
|
|
|
5654
|
-
|
|
5655
|
-
var _getPrototypeOf2;
|
|
5667
|
+
var _super = _createSuper(Mixcloud);
|
|
5656
5668
|
|
|
5669
|
+
function Mixcloud() {
|
|
5657
5670
|
var _this;
|
|
5658
5671
|
|
|
5659
5672
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5662,7 +5675,7 @@ function (_Component) {
|
|
|
5662
5675
|
args[_key] = arguments[_key];
|
|
5663
5676
|
}
|
|
5664
5677
|
|
|
5665
|
-
_this =
|
|
5678
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5666
5679
|
|
|
5667
5680
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5668
5681
|
|
|
@@ -5765,7 +5778,7 @@ function (_Component) {
|
|
|
5765
5778
|
})); // We have to give the iframe a key here to prevent a
|
|
5766
5779
|
// weird dialog appearing when loading a new track
|
|
5767
5780
|
|
|
5768
|
-
return _react["default"].createElement("iframe", {
|
|
5781
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
5769
5782
|
key: id,
|
|
5770
5783
|
ref: this.ref,
|
|
5771
5784
|
style: style,
|
|
@@ -5803,7 +5816,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5803
5816
|
});
|
|
5804
5817
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5805
5818
|
|
|
5806
|
-
var _react = _interopRequireWildcard(
|
|
5819
|
+
var _react = _interopRequireWildcard(React);
|
|
5807
5820
|
|
|
5808
5821
|
|
|
5809
5822
|
|
|
@@ -5825,23 +5838,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5825
5838
|
|
|
5826
5839
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5827
5840
|
|
|
5828
|
-
function
|
|
5841
|
+
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); }; }
|
|
5829
5842
|
|
|
5830
|
-
function
|
|
5843
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5831
5844
|
|
|
5832
5845
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5833
5846
|
|
|
5847
|
+
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; } }
|
|
5848
|
+
|
|
5849
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5850
|
+
|
|
5834
5851
|
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); }
|
|
5835
5852
|
|
|
5836
5853
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5837
5854
|
|
|
5838
5855
|
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; }
|
|
5839
5856
|
|
|
5857
|
+
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; } } }; }
|
|
5858
|
+
|
|
5859
|
+
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); }
|
|
5860
|
+
|
|
5861
|
+
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; }
|
|
5862
|
+
|
|
5840
5863
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5841
5864
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5842
5865
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5843
5866
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5844
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5867
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
|
|
5845
5868
|
var HLS_GLOBAL = 'Hls';
|
|
5846
5869
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5847
5870
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5850,12 +5873,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5850
5873
|
|
|
5851
5874
|
function canPlay(url) {
|
|
5852
5875
|
if (url instanceof Array) {
|
|
5853
|
-
var
|
|
5854
|
-
|
|
5855
|
-
var _iteratorError = undefined;
|
|
5876
|
+
var _iterator = _createForOfIteratorHelper(url),
|
|
5877
|
+
_step;
|
|
5856
5878
|
|
|
5857
5879
|
try {
|
|
5858
|
-
for (
|
|
5880
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5859
5881
|
var item = _step.value;
|
|
5860
5882
|
|
|
5861
5883
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5867,18 +5889,9 @@ function canPlay(url) {
|
|
|
5867
5889
|
}
|
|
5868
5890
|
}
|
|
5869
5891
|
} catch (err) {
|
|
5870
|
-
|
|
5871
|
-
_iteratorError = err;
|
|
5892
|
+
_iterator.e(err);
|
|
5872
5893
|
} finally {
|
|
5873
|
-
|
|
5874
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5875
|
-
_iterator["return"]();
|
|
5876
|
-
}
|
|
5877
|
-
} finally {
|
|
5878
|
-
if (_didIteratorError) {
|
|
5879
|
-
throw _iteratorError;
|
|
5880
|
-
}
|
|
5881
|
-
}
|
|
5894
|
+
_iterator.f();
|
|
5882
5895
|
}
|
|
5883
5896
|
|
|
5884
5897
|
return false;
|
|
@@ -5902,14 +5915,12 @@ function canEnablePIP(url) {
|
|
|
5902
5915
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5903
5916
|
}
|
|
5904
5917
|
|
|
5905
|
-
var FilePlayer =
|
|
5906
|
-
/*#__PURE__*/
|
|
5907
|
-
function (_Component) {
|
|
5918
|
+
var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
5908
5919
|
_inherits(FilePlayer, _Component);
|
|
5909
5920
|
|
|
5910
|
-
|
|
5911
|
-
var _getPrototypeOf2;
|
|
5921
|
+
var _super = _createSuper(FilePlayer);
|
|
5912
5922
|
|
|
5923
|
+
function FilePlayer() {
|
|
5913
5924
|
var _this;
|
|
5914
5925
|
|
|
5915
5926
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5918,7 +5929,7 @@ function (_Component) {
|
|
|
5918
5929
|
_args[_key] = arguments[_key];
|
|
5919
5930
|
}
|
|
5920
5931
|
|
|
5921
|
-
_this =
|
|
5932
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5922
5933
|
|
|
5923
5934
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5924
5935
|
var _this$props;
|
|
@@ -6005,19 +6016,19 @@ function (_Component) {
|
|
|
6005
6016
|
|
|
6006
6017
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6007
6018
|
if (typeof source === 'string') {
|
|
6008
|
-
return _react["default"].createElement("source", {
|
|
6019
|
+
return /*#__PURE__*/_react["default"].createElement("source", {
|
|
6009
6020
|
key: index,
|
|
6010
6021
|
src: source
|
|
6011
6022
|
});
|
|
6012
6023
|
}
|
|
6013
6024
|
|
|
6014
|
-
return _react["default"].createElement("source", _extends({
|
|
6025
|
+
return /*#__PURE__*/_react["default"].createElement("source", _extends({
|
|
6015
6026
|
key: index
|
|
6016
6027
|
}, source));
|
|
6017
6028
|
});
|
|
6018
6029
|
|
|
6019
6030
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6020
|
-
return _react["default"].createElement("track", _extends({
|
|
6031
|
+
return /*#__PURE__*/_react["default"].createElement("track", _extends({
|
|
6021
6032
|
key: index
|
|
6022
6033
|
}, track));
|
|
6023
6034
|
});
|
|
@@ -6055,6 +6066,10 @@ function (_Component) {
|
|
|
6055
6066
|
key: "componentWillUnmount",
|
|
6056
6067
|
value: function componentWillUnmount() {
|
|
6057
6068
|
this.removeListeners(this.player);
|
|
6069
|
+
|
|
6070
|
+
if (this.hls) {
|
|
6071
|
+
this.hls.destroy();
|
|
6072
|
+
}
|
|
6058
6073
|
}
|
|
6059
6074
|
}, {
|
|
6060
6075
|
key: "addListeners",
|
|
@@ -6185,10 +6200,6 @@ function (_Component) {
|
|
|
6185
6200
|
value: function stop() {
|
|
6186
6201
|
this.player.removeAttribute('src');
|
|
6187
6202
|
|
|
6188
|
-
if (this.hls) {
|
|
6189
|
-
this.hls.destroy();
|
|
6190
|
-
}
|
|
6191
|
-
|
|
6192
6203
|
if (this.dash) {
|
|
6193
6204
|
this.dash.reset();
|
|
6194
6205
|
}
|
|
@@ -6300,7 +6311,7 @@ function (_Component) {
|
|
|
6300
6311
|
width: width === 'auto' ? width : '100%',
|
|
6301
6312
|
height: height === 'auto' ? height : '100%'
|
|
6302
6313
|
};
|
|
6303
|
-
return _react["default"].createElement(Element, _extends({
|
|
6314
|
+
return /*#__PURE__*/_react["default"].createElement(Element, _extends({
|
|
6304
6315
|
ref: this.ref,
|
|
6305
6316
|
src: this.getSource(url),
|
|
6306
6317
|
style: style,
|
|
@@ -6372,7 +6383,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6372
6383
|
});
|
|
6373
6384
|
exports["default"] = void 0;
|
|
6374
6385
|
|
|
6375
|
-
var _react = _interopRequireWildcard(
|
|
6386
|
+
var _react = _interopRequireWildcard(React);
|
|
6376
6387
|
|
|
6377
6388
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6378
6389
|
|
|
@@ -6390,12 +6401,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6390
6401
|
|
|
6391
6402
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6392
6403
|
|
|
6393
|
-
function
|
|
6404
|
+
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); }; }
|
|
6394
6405
|
|
|
6395
|
-
function
|
|
6406
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6396
6407
|
|
|
6397
6408
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6398
6409
|
|
|
6410
|
+
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; } }
|
|
6411
|
+
|
|
6412
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6413
|
+
|
|
6399
6414
|
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); }
|
|
6400
6415
|
|
|
6401
6416
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6404,14 +6419,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6404
6419
|
|
|
6405
6420
|
var ICON_SIZE = '64px';
|
|
6406
6421
|
|
|
6407
|
-
var Preview =
|
|
6408
|
-
/*#__PURE__*/
|
|
6409
|
-
function (_Component) {
|
|
6422
|
+
var Preview = /*#__PURE__*/function (_Component) {
|
|
6410
6423
|
_inherits(Preview, _Component);
|
|
6411
6424
|
|
|
6412
|
-
|
|
6413
|
-
var _getPrototypeOf2;
|
|
6425
|
+
var _super = _createSuper(Preview);
|
|
6414
6426
|
|
|
6427
|
+
function Preview() {
|
|
6415
6428
|
var _this;
|
|
6416
6429
|
|
|
6417
6430
|
_classCallCheck(this, Preview);
|
|
@@ -6420,7 +6433,7 @@ function (_Component) {
|
|
|
6420
6433
|
args[_key] = arguments[_key];
|
|
6421
6434
|
}
|
|
6422
6435
|
|
|
6423
|
-
_this =
|
|
6436
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6424
6437
|
|
|
6425
6438
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6426
6439
|
|
|
@@ -6518,15 +6531,15 @@ function (_Component) {
|
|
|
6518
6531
|
}
|
|
6519
6532
|
};
|
|
6520
6533
|
|
|
6521
|
-
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6534
|
+
var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
|
|
6522
6535
|
style: styles.shadow,
|
|
6523
6536
|
className: "react-player__shadow"
|
|
6524
|
-
}, _react["default"].createElement("div", {
|
|
6537
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
6525
6538
|
style: styles.playIcon,
|
|
6526
6539
|
className: "react-player__play-icon"
|
|
6527
6540
|
}));
|
|
6528
6541
|
|
|
6529
|
-
return _react["default"].createElement("div", {
|
|
6542
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
6530
6543
|
style: styles.preview,
|
|
6531
6544
|
className: "react-player__preview",
|
|
6532
6545
|
onClick: onClick
|
|
@@ -6549,7 +6562,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6549
6562
|
});
|
|
6550
6563
|
exports["default"] = renderPreloadPlayers;
|
|
6551
6564
|
|
|
6552
|
-
var _react = _interopRequireDefault(
|
|
6565
|
+
var _react = _interopRequireDefault(React);
|
|
6553
6566
|
|
|
6554
6567
|
var _Player = _interopRequireDefault(Player_1);
|
|
6555
6568
|
|
|
@@ -6563,6 +6576,12 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6563
6576
|
|
|
6564
6577
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6565
6578
|
|
|
6579
|
+
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; } } }; }
|
|
6580
|
+
|
|
6581
|
+
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); }
|
|
6582
|
+
|
|
6583
|
+
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; }
|
|
6584
|
+
|
|
6566
6585
|
var PRELOAD_PLAYERS = [{
|
|
6567
6586
|
Player: YouTube_1.YouTube,
|
|
6568
6587
|
configKey: 'youtube',
|
|
@@ -6583,16 +6602,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6583
6602
|
|
|
6584
6603
|
function renderPreloadPlayers(url, controls, config) {
|
|
6585
6604
|
var players = [];
|
|
6586
|
-
|
|
6587
|
-
var
|
|
6588
|
-
|
|
6605
|
+
|
|
6606
|
+
var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
|
|
6607
|
+
_step;
|
|
6589
6608
|
|
|
6590
6609
|
try {
|
|
6591
|
-
for (
|
|
6610
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6592
6611
|
var player = _step.value;
|
|
6593
6612
|
|
|
6594
6613
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6595
|
-
players.push(_react["default"].createElement(_Player["default"], {
|
|
6614
|
+
players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
|
|
6596
6615
|
key: player.Player.displayName,
|
|
6597
6616
|
activePlayer: player.Player,
|
|
6598
6617
|
url: player.url,
|
|
@@ -6604,18 +6623,9 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6604
6623
|
}
|
|
6605
6624
|
}
|
|
6606
6625
|
} catch (err) {
|
|
6607
|
-
|
|
6608
|
-
_iteratorError = err;
|
|
6626
|
+
_iterator.e(err);
|
|
6609
6627
|
} finally {
|
|
6610
|
-
|
|
6611
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6612
|
-
_iterator["return"]();
|
|
6613
|
-
}
|
|
6614
|
-
} finally {
|
|
6615
|
-
if (_didIteratorError) {
|
|
6616
|
-
throw _iteratorError;
|
|
6617
|
-
}
|
|
6618
|
-
}
|
|
6628
|
+
_iterator.f();
|
|
6619
6629
|
}
|
|
6620
6630
|
|
|
6621
6631
|
return players;
|
|
@@ -6691,7 +6701,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6691
6701
|
});
|
|
6692
6702
|
exports["default"] = void 0;
|
|
6693
6703
|
|
|
6694
|
-
var _react = _interopRequireWildcard(
|
|
6704
|
+
var _react = _interopRequireWildcard(React);
|
|
6695
6705
|
|
|
6696
6706
|
|
|
6697
6707
|
|
|
@@ -6739,13 +6749,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6739
6749
|
|
|
6740
6750
|
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); }
|
|
6741
6751
|
|
|
6742
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6752
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6753
|
+
|
|
6754
|
+
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."); }
|
|
6743
6755
|
|
|
6744
|
-
function
|
|
6756
|
+
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); }
|
|
6745
6757
|
|
|
6746
|
-
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter)
|
|
6758
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
6747
6759
|
|
|
6748
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr))
|
|
6760
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6761
|
+
|
|
6762
|
+
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; }
|
|
6749
6763
|
|
|
6750
6764
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6751
6765
|
|
|
@@ -6753,12 +6767,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6753
6767
|
|
|
6754
6768
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6755
6769
|
|
|
6756
|
-
function
|
|
6770
|
+
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); }; }
|
|
6757
6771
|
|
|
6758
|
-
function
|
|
6772
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6759
6773
|
|
|
6760
6774
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6761
6775
|
|
|
6776
|
+
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; } }
|
|
6777
|
+
|
|
6778
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6779
|
+
|
|
6762
6780
|
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); }
|
|
6763
6781
|
|
|
6764
6782
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6768,14 +6786,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6768
6786
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6769
6787
|
var customPlayers = [];
|
|
6770
6788
|
|
|
6771
|
-
var ReactPlayer =
|
|
6772
|
-
/*#__PURE__*/
|
|
6773
|
-
function (_Component) {
|
|
6789
|
+
var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
6774
6790
|
_inherits(ReactPlayer, _Component);
|
|
6775
6791
|
|
|
6776
|
-
|
|
6777
|
-
var _getPrototypeOf2;
|
|
6792
|
+
var _super = _createSuper(ReactPlayer);
|
|
6778
6793
|
|
|
6794
|
+
function ReactPlayer() {
|
|
6779
6795
|
var _this;
|
|
6780
6796
|
|
|
6781
6797
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6784,7 +6800,7 @@ function (_Component) {
|
|
|
6784
6800
|
args[_key] = arguments[_key];
|
|
6785
6801
|
}
|
|
6786
6802
|
|
|
6787
|
-
_this =
|
|
6803
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6788
6804
|
|
|
6789
6805
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6790
6806
|
|
|
@@ -6895,7 +6911,7 @@ function (_Component) {
|
|
|
6895
6911
|
key: "renderActivePlayer",
|
|
6896
6912
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6897
6913
|
if (!url) return null;
|
|
6898
|
-
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6914
|
+
return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6899
6915
|
key: activePlayer.displayName,
|
|
6900
6916
|
ref: this.activePlayerRef,
|
|
6901
6917
|
config: this.config,
|
|
@@ -6932,14 +6948,14 @@ function (_Component) {
|
|
|
6932
6948
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6933
6949
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6934
6950
|
|
|
6935
|
-
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6951
|
+
var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
|
|
6936
6952
|
url: url,
|
|
6937
6953
|
light: light,
|
|
6938
6954
|
playIcon: playIcon,
|
|
6939
6955
|
onClick: this.handleClickPreview
|
|
6940
6956
|
});
|
|
6941
6957
|
|
|
6942
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
6958
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
6943
6959
|
ref: this.wrapperRef,
|
|
6944
6960
|
style: _objectSpread({}, style, {
|
|
6945
6961
|
width: width,
|
|
@@ -6999,20 +7015,20 @@ var Audio = function Audio(_ref) {
|
|
|
6999
7015
|
var node = _ref.node;
|
|
7000
7016
|
|
|
7001
7017
|
if (node.uploadAudio) {
|
|
7002
|
-
return
|
|
7018
|
+
return React.createElement(
|
|
7003
7019
|
'div',
|
|
7004
7020
|
{ className: 'audio d-block text-center mb-3' },
|
|
7005
|
-
|
|
7021
|
+
React.createElement(
|
|
7006
7022
|
'audio',
|
|
7007
7023
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7008
|
-
|
|
7009
|
-
|
|
7024
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7025
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7010
7026
|
'Your browser does not support the audio element.'
|
|
7011
7027
|
),
|
|
7012
|
-
node.caption &&
|
|
7028
|
+
node.caption && React.createElement(
|
|
7013
7029
|
'p',
|
|
7014
7030
|
{ style: { fontSize: '.9rem' } },
|
|
7015
|
-
|
|
7031
|
+
React.createElement(
|
|
7016
7032
|
'em',
|
|
7017
7033
|
null,
|
|
7018
7034
|
node.caption
|
|
@@ -7022,15 +7038,15 @@ var Audio = function Audio(_ref) {
|
|
|
7022
7038
|
} else if (node.audioFilePth) {
|
|
7023
7039
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7024
7040
|
if (hostname === 'embeds.audioboom.com') {
|
|
7025
|
-
return
|
|
7041
|
+
return React.createElement(
|
|
7026
7042
|
'div',
|
|
7027
7043
|
null,
|
|
7028
|
-
|
|
7044
|
+
React.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7029
7045
|
' ',
|
|
7030
|
-
node.caption &&
|
|
7046
|
+
node.caption && React.createElement(
|
|
7031
7047
|
'p',
|
|
7032
7048
|
{ style: { fontSize: '.9rem' } },
|
|
7033
|
-
|
|
7049
|
+
React.createElement(
|
|
7034
7050
|
'em',
|
|
7035
7051
|
null,
|
|
7036
7052
|
node.caption
|
|
@@ -7038,14 +7054,14 @@ var Audio = function Audio(_ref) {
|
|
|
7038
7054
|
)
|
|
7039
7055
|
);
|
|
7040
7056
|
}
|
|
7041
|
-
return
|
|
7057
|
+
return React.createElement(
|
|
7042
7058
|
'div',
|
|
7043
7059
|
{ className: 'audio' },
|
|
7044
|
-
|
|
7045
|
-
node.caption &&
|
|
7060
|
+
React.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7061
|
+
node.caption && React.createElement(
|
|
7046
7062
|
'p',
|
|
7047
7063
|
{ style: { fontSize: '.9rem' } },
|
|
7048
|
-
|
|
7064
|
+
React.createElement(
|
|
7049
7065
|
'em',
|
|
7050
7066
|
null,
|
|
7051
7067
|
node.caption
|
|
@@ -7063,34 +7079,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7063
7079
|
var profileImage = arguments[6];
|
|
7064
7080
|
|
|
7065
7081
|
if (authorName && authorURL) {
|
|
7066
|
-
return
|
|
7082
|
+
return React.createElement(
|
|
7067
7083
|
'span',
|
|
7068
7084
|
null,
|
|
7069
|
-
|
|
7085
|
+
React.createElement(
|
|
7070
7086
|
'a',
|
|
7071
7087
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7072
7088
|
authorName
|
|
7073
7089
|
),
|
|
7074
|
-
|
|
7090
|
+
React.createElement(
|
|
7075
7091
|
Card,
|
|
7076
7092
|
{ className: 'author-details-card-' + index },
|
|
7077
|
-
|
|
7093
|
+
React.createElement(
|
|
7078
7094
|
Row,
|
|
7079
7095
|
null,
|
|
7080
|
-
profileImage &&
|
|
7096
|
+
profileImage && React.createElement(
|
|
7081
7097
|
Col,
|
|
7082
7098
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7083
|
-
|
|
7099
|
+
React.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7084
7100
|
),
|
|
7085
|
-
|
|
7101
|
+
React.createElement(
|
|
7086
7102
|
Col,
|
|
7087
7103
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7088
|
-
|
|
7104
|
+
React.createElement(
|
|
7089
7105
|
'div',
|
|
7090
7106
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7091
7107
|
authorName
|
|
7092
7108
|
),
|
|
7093
|
-
|
|
7109
|
+
React.createElement(
|
|
7094
7110
|
'p',
|
|
7095
7111
|
null,
|
|
7096
7112
|
biography
|
|
@@ -7098,7 +7114,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7098
7114
|
)
|
|
7099
7115
|
)
|
|
7100
7116
|
),
|
|
7101
|
-
|
|
7117
|
+
React.createElement(
|
|
7102
7118
|
'style',
|
|
7103
7119
|
{ jsx: 'true' },
|
|
7104
7120
|
'\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 '
|
|
@@ -7106,7 +7122,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7106
7122
|
length !== index + 1 && ' , '
|
|
7107
7123
|
);
|
|
7108
7124
|
} else if (authorName) {
|
|
7109
|
-
return
|
|
7125
|
+
return React.createElement(
|
|
7110
7126
|
'span',
|
|
7111
7127
|
{ key: index },
|
|
7112
7128
|
authorName,
|
|
@@ -7378,44 +7394,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7378
7394
|
}
|
|
7379
7395
|
};
|
|
7380
7396
|
|
|
7381
|
-
return
|
|
7397
|
+
return React.createElement(
|
|
7382
7398
|
'div',
|
|
7383
7399
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7384
|
-
|
|
7400
|
+
React.createElement(
|
|
7385
7401
|
'div',
|
|
7386
7402
|
{ className: 'mt-2 mb-5' },
|
|
7387
|
-
series &&
|
|
7403
|
+
series && React.createElement(
|
|
7388
7404
|
'div',
|
|
7389
7405
|
{ style: { fontSize: '0.9rem' } },
|
|
7390
7406
|
article.title,
|
|
7391
7407
|
' - Episode ',
|
|
7392
7408
|
series
|
|
7393
7409
|
),
|
|
7394
|
-
Videos[series - 1] &&
|
|
7410
|
+
Videos[series - 1] && React.createElement(
|
|
7395
7411
|
'h1',
|
|
7396
7412
|
{ className: 'mb-3' },
|
|
7397
7413
|
Videos[series - 1].title
|
|
7398
7414
|
),
|
|
7399
|
-
|
|
7415
|
+
React.createElement(
|
|
7400
7416
|
'div',
|
|
7401
7417
|
null,
|
|
7402
7418
|
moment(article.published).format('LL')
|
|
7403
7419
|
),
|
|
7404
|
-
|
|
7420
|
+
React.createElement(
|
|
7405
7421
|
'div',
|
|
7406
7422
|
{ className: 'mb-3' },
|
|
7407
7423
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7408
|
-
return
|
|
7424
|
+
return React.createElement(
|
|
7409
7425
|
'span',
|
|
7410
7426
|
{ key: index },
|
|
7411
7427
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
7412
7428
|
);
|
|
7413
7429
|
})
|
|
7414
7430
|
),
|
|
7415
|
-
|
|
7431
|
+
React.createElement(
|
|
7416
7432
|
'p',
|
|
7417
7433
|
null,
|
|
7418
|
-
|
|
7434
|
+
React.createElement(SocialShare, {
|
|
7419
7435
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7420
7436
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7421
7437
|
shareVia: meta.shareVia,
|
|
@@ -7430,20 +7446,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7430
7446
|
hideFacebook: meta.hideFBShare
|
|
7431
7447
|
})
|
|
7432
7448
|
),
|
|
7433
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7449
|
+
Videos[series - 1] && Videos[series - 1].intro && React.createElement(
|
|
7434
7450
|
'p',
|
|
7435
7451
|
{ className: 'mb-3' },
|
|
7436
|
-
|
|
7452
|
+
React.createElement(
|
|
7437
7453
|
'em',
|
|
7438
7454
|
null,
|
|
7439
7455
|
Videos[series - 1].intro
|
|
7440
7456
|
)
|
|
7441
7457
|
)
|
|
7442
7458
|
),
|
|
7443
|
-
|
|
7459
|
+
React.createElement(
|
|
7444
7460
|
'div',
|
|
7445
7461
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7446
|
-
vidUrl && vidType == 'youtube' &&
|
|
7462
|
+
vidUrl && vidType == 'youtube' && React.createElement(YouTube, {
|
|
7447
7463
|
className: 'fluid-iframe',
|
|
7448
7464
|
videoId: getYoutubeId(vidUrl),
|
|
7449
7465
|
opts: opts,
|
|
@@ -7454,10 +7470,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7454
7470
|
return handleOnEnd(e);
|
|
7455
7471
|
}
|
|
7456
7472
|
}),
|
|
7457
|
-
vidUrl && vidType == 'mp4' &&
|
|
7458
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7459
|
-
|
|
7460
|
-
series &&
|
|
7473
|
+
vidUrl && vidType == 'mp4' && React.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7474
|
+
vidUrl && vidType == 'brightcove' && React.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7475
|
+
React.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7476
|
+
series && React.createElement(
|
|
7461
7477
|
'div',
|
|
7462
7478
|
{
|
|
7463
7479
|
className: 'vid-series',
|
|
@@ -7467,10 +7483,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7467
7483
|
maxHeight: '100%',
|
|
7468
7484
|
paddingBottom: '0'
|
|
7469
7485
|
} },
|
|
7470
|
-
|
|
7486
|
+
React.createElement(
|
|
7471
7487
|
'p',
|
|
7472
7488
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7473
|
-
|
|
7489
|
+
React.createElement(
|
|
7474
7490
|
'b',
|
|
7475
7491
|
{ style: { fontSize: '1.25em' } },
|
|
7476
7492
|
'Now Playing:'
|
|
@@ -7478,16 +7494,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7478
7494
|
' ',
|
|
7479
7495
|
seriesData[series ? series - 1 : 0].title
|
|
7480
7496
|
),
|
|
7481
|
-
vidUrl &&
|
|
7497
|
+
vidUrl && React.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7482
7498
|
)
|
|
7483
7499
|
),
|
|
7484
|
-
|
|
7485
|
-
|
|
7500
|
+
React.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7501
|
+
React.createElement(
|
|
7486
7502
|
'div',
|
|
7487
7503
|
{ className: 'vid-text' },
|
|
7488
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
7504
|
+
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()))
|
|
7489
7505
|
),
|
|
7490
|
-
|
|
7506
|
+
React.createElement(
|
|
7491
7507
|
'style',
|
|
7492
7508
|
{ jsx: 'true' },
|
|
7493
7509
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7540,67 +7556,67 @@ var Poll = function Poll(_ref) {
|
|
|
7540
7556
|
return acc;
|
|
7541
7557
|
}
|
|
7542
7558
|
}, 0);
|
|
7543
|
-
return
|
|
7544
|
-
|
|
7559
|
+
return React.createElement(
|
|
7560
|
+
React.Fragment,
|
|
7545
7561
|
null,
|
|
7546
|
-
question &&
|
|
7562
|
+
question && React.createElement(
|
|
7547
7563
|
'p',
|
|
7548
7564
|
{ className: 'font-weight-bold' },
|
|
7549
7565
|
question
|
|
7550
7566
|
),
|
|
7551
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7567
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7552
7568
|
'form',
|
|
7553
7569
|
{ onSubmit: function onSubmit(e) {
|
|
7554
7570
|
return onSubmitPoll(e);
|
|
7555
7571
|
} },
|
|
7556
7572
|
choices && choices.map(function (choice) {
|
|
7557
|
-
return
|
|
7573
|
+
return React.createElement(
|
|
7558
7574
|
'div',
|
|
7559
7575
|
{ key: choice._key },
|
|
7560
|
-
|
|
7576
|
+
React.createElement(
|
|
7561
7577
|
'label',
|
|
7562
7578
|
{ className: 'pl-2' },
|
|
7563
|
-
|
|
7579
|
+
React.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7564
7580
|
return setSelectedChoice(e.target.value);
|
|
7565
7581
|
} }),
|
|
7566
7582
|
' ' + choice.choiceText
|
|
7567
7583
|
)
|
|
7568
7584
|
);
|
|
7569
7585
|
}),
|
|
7570
|
-
|
|
7586
|
+
React.createElement(
|
|
7571
7587
|
Button,
|
|
7572
7588
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7573
7589
|
'Vote'
|
|
7574
7590
|
)
|
|
7575
7591
|
),
|
|
7576
|
-
|
|
7592
|
+
React.createElement(
|
|
7577
7593
|
'div',
|
|
7578
7594
|
{ className: 'progress-container' },
|
|
7579
7595
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7580
7596
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7581
|
-
return
|
|
7597
|
+
return React.createElement(
|
|
7582
7598
|
'div',
|
|
7583
7599
|
{ key: choice._key, className: 'mb-3' },
|
|
7584
|
-
|
|
7600
|
+
React.createElement(
|
|
7585
7601
|
'div',
|
|
7586
7602
|
{ className: 'correct-answer' },
|
|
7587
|
-
|
|
7603
|
+
React.createElement(
|
|
7588
7604
|
'div',
|
|
7589
7605
|
null,
|
|
7590
7606
|
choice.choiceText
|
|
7591
7607
|
),
|
|
7592
|
-
choice.choiceAnswer === true &&
|
|
7608
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7593
7609
|
'div',
|
|
7594
7610
|
null,
|
|
7595
|
-
|
|
7611
|
+
React.createElement(
|
|
7596
7612
|
'span',
|
|
7597
7613
|
{ style: { color: 'limegreen' } },
|
|
7598
7614
|
'Correct!'
|
|
7599
7615
|
)
|
|
7600
7616
|
)
|
|
7601
7617
|
),
|
|
7602
|
-
|
|
7603
|
-
|
|
7618
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7619
|
+
React.createElement(
|
|
7604
7620
|
'span',
|
|
7605
7621
|
{ className: 'float-right' },
|
|
7606
7622
|
percentage,
|
|
@@ -7611,14 +7627,14 @@ var Poll = function Poll(_ref) {
|
|
|
7611
7627
|
);
|
|
7612
7628
|
})
|
|
7613
7629
|
),
|
|
7614
|
-
showAnswer &&
|
|
7630
|
+
showAnswer && React.createElement(
|
|
7615
7631
|
'h4',
|
|
7616
7632
|
{ className: 'text-center small p-3' },
|
|
7617
7633
|
'Total Votes: ',
|
|
7618
7634
|
choicesTotalCount
|
|
7619
7635
|
),
|
|
7620
|
-
showAnswer && response &&
|
|
7621
|
-
|
|
7636
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7637
|
+
React.createElement(
|
|
7622
7638
|
'style',
|
|
7623
7639
|
{ jsx: 'true' },
|
|
7624
7640
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7717,67 +7733,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7717
7733
|
return acc;
|
|
7718
7734
|
}
|
|
7719
7735
|
}, 0);
|
|
7720
|
-
return
|
|
7721
|
-
|
|
7736
|
+
return React.createElement(
|
|
7737
|
+
React.Fragment,
|
|
7722
7738
|
null,
|
|
7723
|
-
question &&
|
|
7739
|
+
question && React.createElement(
|
|
7724
7740
|
'p',
|
|
7725
7741
|
{ className: 'font-weight-bold' },
|
|
7726
7742
|
question
|
|
7727
7743
|
),
|
|
7728
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7744
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7729
7745
|
'form',
|
|
7730
7746
|
{ onSubmit: function onSubmit(e) {
|
|
7731
7747
|
return onSubmitPoll(e);
|
|
7732
7748
|
} },
|
|
7733
7749
|
choices && choices.map(function (choice) {
|
|
7734
|
-
return
|
|
7750
|
+
return React.createElement(
|
|
7735
7751
|
'div',
|
|
7736
7752
|
{ key: choice._key },
|
|
7737
|
-
|
|
7753
|
+
React.createElement(
|
|
7738
7754
|
'label',
|
|
7739
7755
|
{ className: 'pl-2' },
|
|
7740
|
-
|
|
7756
|
+
React.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7741
7757
|
return setSelectedChoice(e.target.value);
|
|
7742
7758
|
} }),
|
|
7743
7759
|
' ' + choice.choiceText
|
|
7744
7760
|
)
|
|
7745
7761
|
);
|
|
7746
7762
|
}),
|
|
7747
|
-
|
|
7763
|
+
React.createElement(
|
|
7748
7764
|
Button,
|
|
7749
7765
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7750
7766
|
'Vote'
|
|
7751
7767
|
)
|
|
7752
7768
|
),
|
|
7753
|
-
|
|
7769
|
+
React.createElement(
|
|
7754
7770
|
'div',
|
|
7755
7771
|
{ className: 'progress-container' },
|
|
7756
7772
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7757
7773
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7758
|
-
return
|
|
7774
|
+
return React.createElement(
|
|
7759
7775
|
'div',
|
|
7760
7776
|
{ key: choice._key, className: 'mb-3' },
|
|
7761
|
-
|
|
7777
|
+
React.createElement(
|
|
7762
7778
|
'div',
|
|
7763
7779
|
{ className: 'correct-answer' },
|
|
7764
|
-
|
|
7780
|
+
React.createElement(
|
|
7765
7781
|
'div',
|
|
7766
7782
|
null,
|
|
7767
7783
|
choice.choiceText
|
|
7768
7784
|
),
|
|
7769
|
-
choice.choiceAnswer === true &&
|
|
7785
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7770
7786
|
'div',
|
|
7771
7787
|
null,
|
|
7772
|
-
|
|
7788
|
+
React.createElement(
|
|
7773
7789
|
'span',
|
|
7774
7790
|
{ style: { color: 'limegreen' } },
|
|
7775
7791
|
'Correct!'
|
|
7776
7792
|
)
|
|
7777
7793
|
)
|
|
7778
7794
|
),
|
|
7779
|
-
|
|
7780
|
-
|
|
7795
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7796
|
+
React.createElement(
|
|
7781
7797
|
'span',
|
|
7782
7798
|
{ className: 'float-right' },
|
|
7783
7799
|
percentage,
|
|
@@ -7788,14 +7804,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7788
7804
|
);
|
|
7789
7805
|
})
|
|
7790
7806
|
),
|
|
7791
|
-
showAnswer &&
|
|
7807
|
+
showAnswer && React.createElement(
|
|
7792
7808
|
'h4',
|
|
7793
7809
|
{ className: 'text-center small p-3' },
|
|
7794
7810
|
'Total Votes: ',
|
|
7795
7811
|
choicesTotalCount
|
|
7796
7812
|
),
|
|
7797
|
-
showAnswer && response &&
|
|
7798
|
-
|
|
7813
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7814
|
+
React.createElement(
|
|
7799
7815
|
'style',
|
|
7800
7816
|
{ jsx: 'true' },
|
|
7801
7817
|
'\n .correct-answer {\n width: 100%;\n display: flex;\n justify-content: space-between;\n padding: 0 0.5rem;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7803,7 +7819,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7803
7819
|
);
|
|
7804
7820
|
};
|
|
7805
7821
|
|
|
7806
|
-
var numberOfPaginations =
|
|
7822
|
+
var numberOfPaginations = main_39 ? 4 : 10;
|
|
7807
7823
|
|
|
7808
7824
|
var Quiz = function Quiz(_ref) {
|
|
7809
7825
|
var quizzes = _ref.quizzes,
|
|
@@ -7921,34 +7937,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
7921
7937
|
};
|
|
7922
7938
|
|
|
7923
7939
|
var renderPagination = function renderPagination() {
|
|
7924
|
-
return
|
|
7925
|
-
Pagination
|
|
7926
|
-
{ className: 'p-0 m-0', size:
|
|
7927
|
-
|
|
7940
|
+
return React.createElement(
|
|
7941
|
+
Pagination,
|
|
7942
|
+
{ className: 'p-0 m-0', size: main_39 && 'sm' },
|
|
7943
|
+
React.createElement(Pagination.First, { onClick: function onClick() {
|
|
7928
7944
|
return changePage('first');
|
|
7929
7945
|
}, disabled: currentPage === 1 }),
|
|
7930
|
-
|
|
7946
|
+
React.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7931
7947
|
return changePage('prev');
|
|
7932
7948
|
}, disabled: currentPage === 1 }),
|
|
7933
|
-
|
|
7949
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7934
7950
|
return renderNewPages('prev');
|
|
7935
7951
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7936
7952
|
pages.map(function (page) {
|
|
7937
|
-
return
|
|
7938
|
-
Pagination
|
|
7953
|
+
return React.createElement(
|
|
7954
|
+
Pagination.Item,
|
|
7939
7955
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7940
7956
|
return changePage(page);
|
|
7941
7957
|
} },
|
|
7942
7958
|
page
|
|
7943
7959
|
);
|
|
7944
7960
|
}),
|
|
7945
|
-
|
|
7961
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7946
7962
|
return renderNewPages('next');
|
|
7947
7963
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7948
|
-
|
|
7964
|
+
React.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7949
7965
|
return changePage('next');
|
|
7950
7966
|
}, disabled: currentPage === pageCount }),
|
|
7951
|
-
|
|
7967
|
+
React.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7952
7968
|
return changePage('last');
|
|
7953
7969
|
}, disabled: currentPage === pageCount })
|
|
7954
7970
|
);
|
|
@@ -8031,51 +8047,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8031
8047
|
}
|
|
8032
8048
|
};
|
|
8033
8049
|
|
|
8034
|
-
return
|
|
8035
|
-
|
|
8050
|
+
return React.createElement(
|
|
8051
|
+
React.Fragment,
|
|
8036
8052
|
null,
|
|
8037
|
-
quizzes[currentPage - 1] &&
|
|
8038
|
-
|
|
8053
|
+
quizzes[currentPage - 1] && React.createElement(
|
|
8054
|
+
React.Fragment,
|
|
8039
8055
|
null,
|
|
8040
|
-
|
|
8041
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 &&
|
|
8056
|
+
React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8057
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React.createElement(
|
|
8042
8058
|
'form',
|
|
8043
8059
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8044
8060
|
return e.preventDefault();
|
|
8045
8061
|
} },
|
|
8046
8062
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8047
|
-
return
|
|
8063
|
+
return React.createElement(
|
|
8048
8064
|
'div',
|
|
8049
8065
|
{ key: answer._key },
|
|
8050
|
-
|
|
8066
|
+
React.createElement(
|
|
8051
8067
|
'label',
|
|
8052
8068
|
{ className: 'pl-2' },
|
|
8053
|
-
quizzes[currentPage - 1].multiAnswer ?
|
|
8069
|
+
quizzes[currentPage - 1].multiAnswer ? React.createElement('input', { type: 'checkbox', id: 'male', disabled: isDisabled, name: answer._type, value: answer._key }) : React.createElement('input', { type: 'radio', id: 'male', name: answer._type, value: answer._key }),
|
|
8054
8070
|
' ' + answer.answerText
|
|
8055
8071
|
)
|
|
8056
8072
|
);
|
|
8057
8073
|
})
|
|
8058
8074
|
)
|
|
8059
8075
|
),
|
|
8060
|
-
!showAnswer &&
|
|
8076
|
+
!showAnswer && React.createElement(
|
|
8061
8077
|
Button$1,
|
|
8062
8078
|
{ onClick: function onClick() {
|
|
8063
8079
|
return checkAnswers();
|
|
8064
8080
|
}, variant: 'info', block: true },
|
|
8065
8081
|
'Please click here for answer'
|
|
8066
8082
|
),
|
|
8067
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
8068
|
-
|
|
8083
|
+
quizzes[currentPage - 1] && showAnswer && React.createElement(
|
|
8084
|
+
React.Fragment,
|
|
8069
8085
|
null,
|
|
8070
|
-
|
|
8086
|
+
React.createElement(
|
|
8071
8087
|
'h4',
|
|
8072
8088
|
null,
|
|
8073
8089
|
'Answer:'
|
|
8074
8090
|
),
|
|
8075
|
-
quizzes[currentPage - 1].answer &&
|
|
8091
|
+
quizzes[currentPage - 1].answer && React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8076
8092
|
),
|
|
8077
|
-
|
|
8078
|
-
pageCount > 1 &&
|
|
8093
|
+
React.createElement('br', null),
|
|
8094
|
+
pageCount > 1 && React.createElement(
|
|
8079
8095
|
'div',
|
|
8080
8096
|
{ className: 'd-flex justify-content-center' },
|
|
8081
8097
|
renderPagination()
|
|
@@ -8086,10 +8102,10 @@ var Quiz = function Quiz(_ref) {
|
|
|
8086
8102
|
var Leads = function Leads(_ref) {
|
|
8087
8103
|
var url = _ref.url;
|
|
8088
8104
|
|
|
8089
|
-
return
|
|
8105
|
+
return React.createElement(
|
|
8090
8106
|
'div',
|
|
8091
8107
|
{ className: 'd-block text-center mb-3' },
|
|
8092
|
-
url &&
|
|
8108
|
+
url && React.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8093
8109
|
);
|
|
8094
8110
|
};
|
|
8095
8111
|
|
|
@@ -8100,6 +8116,7 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8100
8116
|
getSerializers = _ref.getSerializers;
|
|
8101
8117
|
|
|
8102
8118
|
var router = useRouter();
|
|
8119
|
+
var carouselRef = useRef(null);
|
|
8103
8120
|
var pageNumber = router && router.asPath && router.asPath.split('?page=')[1];
|
|
8104
8121
|
|
|
8105
8122
|
var _useState = useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
|
|
@@ -8126,61 +8143,54 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8126
8143
|
var pageNumber = selectedIndex + 1;
|
|
8127
8144
|
var href = '/view/' + router.query.url + '?page=' + pageNumber;
|
|
8128
8145
|
router.push(router.pathname, pageNumber > 1 ? href : '/view/' + router.query.url, { shallow: true });
|
|
8129
|
-
|
|
8146
|
+
if (carouselRef) {
|
|
8147
|
+
carouselRef.current.scrollIntoView();
|
|
8148
|
+
}
|
|
8130
8149
|
};
|
|
8131
8150
|
|
|
8132
|
-
return
|
|
8151
|
+
return React.createElement(
|
|
8133
8152
|
'div',
|
|
8134
|
-
{ className: 'mt-3 mb-4' },
|
|
8135
|
-
|
|
8153
|
+
{ ref: carouselRef, className: 'mt-3 mb-4' },
|
|
8154
|
+
React.createElement(
|
|
8136
8155
|
Carousel,
|
|
8137
8156
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8138
8157
|
slides && slides.map(function (slide) {
|
|
8139
8158
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8140
|
-
return
|
|
8159
|
+
return React.createElement(
|
|
8141
8160
|
Carousel.Item,
|
|
8142
8161
|
{ key: slide._key },
|
|
8143
|
-
|
|
8162
|
+
React.createElement(
|
|
8144
8163
|
'a',
|
|
8145
8164
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8146
|
-
|
|
8147
|
-
|
|
8148
|
-
|
|
8149
|
-
|
|
8150
|
-
|
|
8165
|
+
React.createElement(
|
|
8166
|
+
LazyLoad,
|
|
8167
|
+
null,
|
|
8168
|
+
React.createElement(
|
|
8169
|
+
'picture',
|
|
8151
8170
|
null,
|
|
8152
|
-
|
|
8153
|
-
|
|
8154
|
-
|
|
8155
|
-
|
|
8156
|
-
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8157
|
-
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8158
|
-
React__default.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', className: 'embed-responsive-item' })
|
|
8159
|
-
)
|
|
8160
|
-
),
|
|
8161
|
-
React__default.createElement(
|
|
8162
|
-
'style',
|
|
8163
|
-
{ jsx: 'true' },
|
|
8164
|
-
'\n .embed-responsive-slide::before {\n padding-top: ' + slide.slideshowImage.height / slide.slideshowImage.width * 100 + '%;\n }\n '
|
|
8171
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8172
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8173
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8174
|
+
React.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
8165
8175
|
)
|
|
8166
8176
|
)
|
|
8167
8177
|
),
|
|
8168
|
-
|
|
8178
|
+
React.createElement(
|
|
8169
8179
|
'div',
|
|
8170
8180
|
{ className: 'p-2' },
|
|
8171
|
-
slide.slideshowImage.caption &&
|
|
8181
|
+
slide.slideshowImage.caption && React.createElement(
|
|
8172
8182
|
'h3',
|
|
8173
8183
|
{ style: { padding: '0px' } },
|
|
8174
8184
|
slide.slideshowImage.caption
|
|
8175
8185
|
),
|
|
8176
|
-
slide.description &&
|
|
8186
|
+
slide.description && React.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8177
8187
|
)
|
|
8178
8188
|
);
|
|
8179
8189
|
}
|
|
8180
8190
|
return null;
|
|
8181
8191
|
})
|
|
8182
8192
|
),
|
|
8183
|
-
|
|
8193
|
+
React.createElement(
|
|
8184
8194
|
'style',
|
|
8185
8195
|
{ jsx: 'true' },
|
|
8186
8196
|
'\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 '
|
|
@@ -8199,10 +8209,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8199
8209
|
sizes = _props$node.sizes,
|
|
8200
8210
|
sizeMapping = _props$node.sizeMapping;
|
|
8201
8211
|
|
|
8202
|
-
return
|
|
8212
|
+
return React.createElement(
|
|
8203
8213
|
'div',
|
|
8204
8214
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8205
|
-
|
|
8215
|
+
React.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8206
8216
|
);
|
|
8207
8217
|
};
|
|
8208
8218
|
|
|
@@ -8213,15 +8223,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8213
8223
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8214
8224
|
|
|
8215
8225
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8216
|
-
return
|
|
8226
|
+
return React.createElement(
|
|
8217
8227
|
'section',
|
|
8218
8228
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8219
|
-
Caption &&
|
|
8229
|
+
Caption && React.createElement(
|
|
8220
8230
|
'h4',
|
|
8221
8231
|
{ className: 'formstack-caption' },
|
|
8222
8232
|
Caption
|
|
8223
8233
|
),
|
|
8224
|
-
|
|
8234
|
+
React.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8225
8235
|
);
|
|
8226
8236
|
};
|
|
8227
8237
|
|
|
@@ -8237,36 +8247,36 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8237
8247
|
}
|
|
8238
8248
|
});
|
|
8239
8249
|
if (medias && medias.length > 0) {
|
|
8240
|
-
return
|
|
8250
|
+
return React.createElement(
|
|
8241
8251
|
'div',
|
|
8242
8252
|
{ className: 'multi-media-container' },
|
|
8243
|
-
|
|
8253
|
+
React.createElement(
|
|
8244
8254
|
Row$1,
|
|
8245
8255
|
{ noGutters: true },
|
|
8246
8256
|
medias.map(function (media) {
|
|
8247
|
-
return
|
|
8257
|
+
return React.createElement(
|
|
8248
8258
|
Col$1,
|
|
8249
8259
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8250
|
-
|
|
8260
|
+
React.createElement(
|
|
8251
8261
|
'a',
|
|
8252
|
-
_extends
|
|
8262
|
+
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8253
8263
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8254
|
-
|
|
8264
|
+
React.createElement(
|
|
8255
8265
|
'div',
|
|
8256
8266
|
{ className: 'multi-media-image-container' },
|
|
8257
|
-
imageBox &&
|
|
8267
|
+
imageBox && React.createElement(
|
|
8258
8268
|
LazyLoad,
|
|
8259
8269
|
{ once: true },
|
|
8260
|
-
|
|
8270
|
+
React.createElement(
|
|
8261
8271
|
'picture',
|
|
8262
8272
|
null,
|
|
8263
|
-
|
|
8264
|
-
|
|
8265
|
-
|
|
8266
|
-
|
|
8273
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8274
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8275
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8276
|
+
React.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
|
|
8267
8277
|
)
|
|
8268
8278
|
),
|
|
8269
|
-
media.caption &&
|
|
8279
|
+
media.caption && React.createElement(
|
|
8270
8280
|
'span',
|
|
8271
8281
|
{ className: 'multi-media-caption' },
|
|
8272
8282
|
media.caption
|
|
@@ -8276,7 +8286,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8276
8286
|
);
|
|
8277
8287
|
})
|
|
8278
8288
|
),
|
|
8279
|
-
|
|
8289
|
+
React.createElement(
|
|
8280
8290
|
'style',
|
|
8281
8291
|
{ jsx: 'true' },
|
|
8282
8292
|
'\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 '
|
|
@@ -8323,7 +8333,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8323
8333
|
}
|
|
8324
8334
|
};
|
|
8325
8335
|
|
|
8326
|
-
_this.wraperRef =
|
|
8336
|
+
_this.wraperRef = React.createRef();
|
|
8327
8337
|
_this.visible = false;
|
|
8328
8338
|
return _this;
|
|
8329
8339
|
}
|
|
@@ -8351,7 +8361,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8351
8361
|
_props$id = _props.id,
|
|
8352
8362
|
id = _props$id === undefined ? '' : _props$id;
|
|
8353
8363
|
|
|
8354
|
-
return
|
|
8364
|
+
return React.createElement(
|
|
8355
8365
|
'div',
|
|
8356
8366
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8357
8367
|
this.props.children
|
|
@@ -8360,7 +8370,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8360
8370
|
}]);
|
|
8361
8371
|
|
|
8362
8372
|
return InscreenSensor;
|
|
8363
|
-
}(
|
|
8373
|
+
}(React.Component);
|
|
8364
8374
|
|
|
8365
8375
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8366
8376
|
var nodes = _ref.nodes,
|
|
@@ -8469,33 +8479,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8469
8479
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8470
8480
|
var showReading = show ? 'showReading' : '';
|
|
8471
8481
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8472
|
-
return
|
|
8482
|
+
return React.createElement(
|
|
8473
8483
|
'div',
|
|
8474
8484
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8475
|
-
|
|
8485
|
+
React.createElement(
|
|
8476
8486
|
'a',
|
|
8477
8487
|
{ onClick: function onClick(e) {
|
|
8478
8488
|
return articleCardClickHandler(e);
|
|
8479
8489
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8480
|
-
|
|
8490
|
+
React.createElement(
|
|
8481
8491
|
'div',
|
|
8482
8492
|
{ className: 'prevNext-thumbnail' },
|
|
8483
|
-
|
|
8484
|
-
|
|
8493
|
+
React.createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
8494
|
+
React.createElement(
|
|
8485
8495
|
'div',
|
|
8486
8496
|
{ className: 'prevNext-reading ' + showReading },
|
|
8487
8497
|
articleLabel
|
|
8488
8498
|
)
|
|
8489
8499
|
),
|
|
8490
|
-
|
|
8500
|
+
React.createElement(
|
|
8491
8501
|
'div',
|
|
8492
8502
|
{ className: 'prevNext-summary' },
|
|
8493
|
-
|
|
8503
|
+
React.createElement(
|
|
8494
8504
|
'div',
|
|
8495
8505
|
{ className: 'prevNext-publishDate' },
|
|
8496
8506
|
moment(article.published).format('LL')
|
|
8497
8507
|
),
|
|
8498
|
-
|
|
8508
|
+
React.createElement(
|
|
8499
8509
|
'h2',
|
|
8500
8510
|
{ className: 'prevNext-title' },
|
|
8501
8511
|
article.title
|
|
@@ -8544,7 +8554,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8544
8554
|
|
|
8545
8555
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8546
8556
|
if (biography) {
|
|
8547
|
-
return
|
|
8557
|
+
return React.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8548
8558
|
}
|
|
8549
8559
|
};
|
|
8550
8560
|
|
|
@@ -8630,7 +8640,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8630
8640
|
//console.log('useLayoutEffect')
|
|
8631
8641
|
if (!firstLoad) {
|
|
8632
8642
|
setUpArrowClicked(false);
|
|
8633
|
-
if (
|
|
8643
|
+
if (main_40) {
|
|
8634
8644
|
grabLoadedAds();
|
|
8635
8645
|
} else {
|
|
8636
8646
|
scrollToArticle();
|
|
@@ -8654,7 +8664,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8654
8664
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8655
8665
|
if (pageview) pageview(path);
|
|
8656
8666
|
|
|
8657
|
-
if (!
|
|
8667
|
+
if (!main_40) {
|
|
8658
8668
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8659
8669
|
if (window.googletag && googletag.pubadsReady) {
|
|
8660
8670
|
lib_3.refresh();
|
|
@@ -8662,7 +8672,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8662
8672
|
});
|
|
8663
8673
|
}
|
|
8664
8674
|
//Refresh leaderboard ad on mobile
|
|
8665
|
-
if (
|
|
8675
|
+
if (main_40) {
|
|
8666
8676
|
var leaderboardSlotId = '';
|
|
8667
8677
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8668
8678
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8702,38 +8712,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8702
8712
|
setSensorVisible(false);
|
|
8703
8713
|
};
|
|
8704
8714
|
|
|
8705
|
-
return
|
|
8706
|
-
|
|
8715
|
+
return React.createElement(
|
|
8716
|
+
React.Fragment,
|
|
8707
8717
|
null,
|
|
8708
|
-
|
|
8718
|
+
React.createElement(
|
|
8709
8719
|
'div',
|
|
8710
8720
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8711
|
-
|
|
8721
|
+
React.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8712
8722
|
return handleArrowClick();
|
|
8713
8723
|
} })
|
|
8714
8724
|
),
|
|
8715
|
-
|
|
8716
|
-
|
|
8725
|
+
React.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8726
|
+
React.createElement(
|
|
8717
8727
|
'div',
|
|
8718
8728
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8719
|
-
|
|
8729
|
+
React.createElement(
|
|
8720
8730
|
'h5',
|
|
8721
8731
|
{ className: 'objective-title' },
|
|
8722
8732
|
nodes.seriesTitle
|
|
8723
8733
|
),
|
|
8724
|
-
|
|
8734
|
+
React.createElement(
|
|
8725
8735
|
'div',
|
|
8726
8736
|
{ className: 'prevNextWrapper' },
|
|
8727
8737
|
PrevNextCards(false, -1)
|
|
8728
8738
|
)
|
|
8729
8739
|
),
|
|
8730
|
-
|
|
8731
|
-
|
|
8740
|
+
React.createElement('hr', { className: 'article-seperater' }),
|
|
8741
|
+
React.createElement(
|
|
8732
8742
|
'div',
|
|
8733
8743
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8734
|
-
|
|
8744
|
+
main_40 && Ads.map(function (ad, index) {
|
|
8735
8745
|
if (index === 0) {
|
|
8736
|
-
return
|
|
8746
|
+
return React.createElement(
|
|
8737
8747
|
'div',
|
|
8738
8748
|
{
|
|
8739
8749
|
key: 'addid-1',
|
|
@@ -8753,14 +8763,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8753
8763
|
}
|
|
8754
8764
|
})
|
|
8755
8765
|
),
|
|
8756
|
-
|
|
8766
|
+
React.createElement(
|
|
8757
8767
|
'div',
|
|
8758
8768
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8759
8769
|
Articles.map(function (article, index) {
|
|
8760
|
-
return
|
|
8770
|
+
return React.createElement(
|
|
8761
8771
|
'div',
|
|
8762
8772
|
{ key: article.title },
|
|
8763
|
-
|
|
8773
|
+
React.createElement(
|
|
8764
8774
|
InscreenSensor,
|
|
8765
8775
|
{
|
|
8766
8776
|
visible: sensorVisible,
|
|
@@ -8778,84 +8788,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8778
8788
|
}
|
|
8779
8789
|
}
|
|
8780
8790
|
} },
|
|
8781
|
-
|
|
8791
|
+
React.createElement(
|
|
8782
8792
|
Head,
|
|
8783
8793
|
null,
|
|
8784
|
-
currentTitle !== null &&
|
|
8794
|
+
currentTitle !== null && React.createElement(
|
|
8785
8795
|
'title',
|
|
8786
8796
|
{ key: 'title' },
|
|
8787
8797
|
currentTitle
|
|
8788
8798
|
),
|
|
8789
|
-
currentSummary !== null &&
|
|
8790
|
-
currentURL !== null &&
|
|
8791
|
-
currentTitle !== null &&
|
|
8792
|
-
currentThumbnail !== null &&
|
|
8793
|
-
currentSummary !== null &&
|
|
8794
|
-
currentTitle !== null &&
|
|
8795
|
-
currentThumbnail !== null &&
|
|
8796
|
-
currentSummary !== null &&
|
|
8799
|
+
currentSummary !== null && React.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8800
|
+
currentURL !== null && React.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8801
|
+
currentTitle !== null && React.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8802
|
+
currentThumbnail !== null && React.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8803
|
+
currentSummary !== null && React.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8804
|
+
currentTitle !== null && React.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8805
|
+
currentThumbnail !== null && React.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8806
|
+
currentSummary !== null && React.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8797
8807
|
),
|
|
8798
|
-
|
|
8808
|
+
React.createElement(
|
|
8799
8809
|
'article',
|
|
8800
8810
|
{ className: 'article-wrapper' },
|
|
8801
|
-
|
|
8811
|
+
React.createElement(
|
|
8802
8812
|
'div',
|
|
8803
8813
|
{ className: 'article-publishDate' },
|
|
8804
8814
|
moment(article.published).format('LL')
|
|
8805
8815
|
),
|
|
8806
|
-
|
|
8816
|
+
React.createElement(
|
|
8807
8817
|
'div',
|
|
8808
8818
|
{ className: 'author-details-wrapper' },
|
|
8809
8819
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8810
|
-
return
|
|
8820
|
+
return React.createElement(
|
|
8811
8821
|
'span',
|
|
8812
8822
|
{ key: index },
|
|
8813
8823
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage }))
|
|
8814
8824
|
);
|
|
8815
8825
|
})
|
|
8816
8826
|
),
|
|
8817
|
-
|
|
8827
|
+
React.createElement(
|
|
8818
8828
|
'h2',
|
|
8819
8829
|
{ className: 'article-title' },
|
|
8820
8830
|
article.title
|
|
8821
8831
|
),
|
|
8822
|
-
|
|
8832
|
+
React.createElement(
|
|
8823
8833
|
'div',
|
|
8824
8834
|
{ className: 'mt-2 mb-2' },
|
|
8825
|
-
|
|
8835
|
+
React.createElement(BlockContent, _extends({
|
|
8826
8836
|
serializers: getSerializers,
|
|
8827
8837
|
videoAccountIDs: accountIDs,
|
|
8828
8838
|
blocks: article.text,
|
|
8829
8839
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8830
8840
|
}, client.config())),
|
|
8831
|
-
|
|
8841
|
+
React.createElement('hr', { className: 'article-seperater my-4' })
|
|
8832
8842
|
),
|
|
8833
|
-
Articles.length > 1 &&
|
|
8834
|
-
|
|
8843
|
+
Articles.length > 1 && React.createElement(
|
|
8844
|
+
React.Fragment,
|
|
8835
8845
|
null,
|
|
8836
|
-
|
|
8846
|
+
React.createElement(
|
|
8837
8847
|
'div',
|
|
8838
8848
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8839
|
-
|
|
8849
|
+
React.createElement(
|
|
8840
8850
|
'h5',
|
|
8841
8851
|
{ className: 'objective-title' },
|
|
8842
8852
|
nodes.seriesTitle
|
|
8843
8853
|
),
|
|
8844
|
-
|
|
8854
|
+
React.createElement(
|
|
8845
8855
|
'div',
|
|
8846
8856
|
{ className: 'prevNextWrapper' },
|
|
8847
8857
|
PrevNextCards(true, index)
|
|
8848
8858
|
)
|
|
8849
8859
|
),
|
|
8850
|
-
|
|
8860
|
+
React.createElement('hr', { className: 'article-seperater' })
|
|
8851
8861
|
)
|
|
8852
8862
|
),
|
|
8853
|
-
|
|
8863
|
+
React.createElement(
|
|
8854
8864
|
'div',
|
|
8855
8865
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8856
|
-
|
|
8866
|
+
main_40 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8857
8867
|
if (innerIndex === 0) {
|
|
8858
|
-
return
|
|
8868
|
+
return React.createElement(
|
|
8859
8869
|
'div',
|
|
8860
8870
|
{
|
|
8861
8871
|
key: 'addid-' + (index + 2),
|
|
@@ -8878,7 +8888,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8878
8888
|
)
|
|
8879
8889
|
);
|
|
8880
8890
|
}),
|
|
8881
|
-
|
|
8891
|
+
React.createElement(
|
|
8882
8892
|
'style',
|
|
8883
8893
|
{ jsx: 'true' },
|
|
8884
8894
|
'\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 '
|
|
@@ -8908,11 +8918,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8908
8918
|
};
|
|
8909
8919
|
}, [handleClickOutside]);
|
|
8910
8920
|
|
|
8911
|
-
return
|
|
8921
|
+
return React.createElement(
|
|
8912
8922
|
'div',
|
|
8913
8923
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8914
|
-
|
|
8915
|
-
|
|
8924
|
+
React.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8925
|
+
React.createElement(
|
|
8916
8926
|
'style',
|
|
8917
8927
|
{ jsx: 'true' },
|
|
8918
8928
|
'\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 '
|
|
@@ -8926,7 +8936,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8926
8936
|
}
|
|
8927
8937
|
};
|
|
8928
8938
|
|
|
8929
|
-
var FigureImage =
|
|
8939
|
+
var FigureImage = React.memo(function (_ref2) {
|
|
8930
8940
|
var node = _ref2.node,
|
|
8931
8941
|
client = _ref2.client,
|
|
8932
8942
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8934,13 +8944,13 @@ var FigureImage = React__default.memo(function (_ref2) {
|
|
|
8934
8944
|
handleClickFigure = _ref2.handleClickFigure;
|
|
8935
8945
|
|
|
8936
8946
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
8937
|
-
return
|
|
8947
|
+
return React.createElement(
|
|
8938
8948
|
'picture',
|
|
8939
8949
|
null,
|
|
8940
|
-
|
|
8941
|
-
|
|
8942
|
-
|
|
8943
|
-
|
|
8950
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8951
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8952
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8953
|
+
React.createElement('img', _extends({
|
|
8944
8954
|
style: figureImageStyle,
|
|
8945
8955
|
className: 'figure-image',
|
|
8946
8956
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9028,13 +9038,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9028
9038
|
|
|
9029
9039
|
var FigureCaption = useCallback(function () {
|
|
9030
9040
|
if (imgcaption && imgcaption.length > 0) {
|
|
9031
|
-
return
|
|
9041
|
+
return React.createElement(
|
|
9032
9042
|
'div',
|
|
9033
9043
|
{ className: 'figure-caption' },
|
|
9034
|
-
|
|
9044
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9035
9045
|
);
|
|
9036
9046
|
} else if (caption) {
|
|
9037
|
-
return
|
|
9047
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9038
9048
|
} else return null;
|
|
9039
9049
|
}, [caption, imgcaption]);
|
|
9040
9050
|
|
|
@@ -9051,24 +9061,24 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9051
9061
|
setShowLightbox(true);
|
|
9052
9062
|
}, [node, client]);
|
|
9053
9063
|
|
|
9054
|
-
return
|
|
9055
|
-
|
|
9064
|
+
return React.createElement(
|
|
9065
|
+
React.Fragment,
|
|
9056
9066
|
null,
|
|
9057
|
-
|
|
9058
|
-
Figure$
|
|
9067
|
+
React.createElement(
|
|
9068
|
+
Figure$2,
|
|
9059
9069
|
{ className: '' + class_name, style: figureStyle },
|
|
9060
|
-
link ?
|
|
9070
|
+
link ? React.createElement(
|
|
9061
9071
|
'a',
|
|
9062
9072
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9063
|
-
|
|
9064
|
-
|
|
9065
|
-
) :
|
|
9066
|
-
|
|
9073
|
+
React.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9074
|
+
React.createElement(FigureCaption, null)
|
|
9075
|
+
) : React.createElement(
|
|
9076
|
+
React.Fragment,
|
|
9067
9077
|
null,
|
|
9068
|
-
|
|
9069
|
-
|
|
9078
|
+
React.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9079
|
+
React.createElement(FigureCaption, null)
|
|
9070
9080
|
),
|
|
9071
|
-
|
|
9081
|
+
React.createElement(LightBox, {
|
|
9072
9082
|
showLightbox: showLightbox,
|
|
9073
9083
|
lightboxImgSrc: lightboxImgSrc,
|
|
9074
9084
|
closeLightbox: function closeLightbox() {
|
|
@@ -9077,7 +9087,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9077
9087
|
}
|
|
9078
9088
|
})
|
|
9079
9089
|
),
|
|
9080
|
-
|
|
9090
|
+
React.createElement(
|
|
9081
9091
|
'style',
|
|
9082
9092
|
{ jsx: 'true' },
|
|
9083
9093
|
'\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 '
|
|
@@ -9085,7 +9095,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9085
9095
|
);
|
|
9086
9096
|
};
|
|
9087
9097
|
|
|
9088
|
-
var Figure =
|
|
9098
|
+
var Figure = React.memo(FigureComponent, compareProps);
|
|
9089
9099
|
|
|
9090
9100
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
9091
9101
|
useEffect(function () {
|
|
@@ -9102,7 +9112,7 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9102
9112
|
}, [ref]);
|
|
9103
9113
|
}
|
|
9104
9114
|
|
|
9105
|
-
var FigureImage$1 =
|
|
9115
|
+
var FigureImage$1 = React.memo(function (_ref) {
|
|
9106
9116
|
var imagesCount = _ref.imagesCount,
|
|
9107
9117
|
image = _ref.image,
|
|
9108
9118
|
client = _ref.client,
|
|
@@ -9110,13 +9120,13 @@ var FigureImage$1 = React__default.memo(function (_ref) {
|
|
|
9110
9120
|
link = _ref.link,
|
|
9111
9121
|
handleClickFigure = _ref.handleClickFigure;
|
|
9112
9122
|
|
|
9113
|
-
return
|
|
9123
|
+
return React.createElement(
|
|
9114
9124
|
'picture',
|
|
9115
9125
|
null,
|
|
9116
|
-
|
|
9117
|
-
|
|
9118
|
-
|
|
9119
|
-
|
|
9126
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9127
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9128
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9129
|
+
React.createElement('img', _extends({
|
|
9120
9130
|
'images-count': imagesCount,
|
|
9121
9131
|
className: 'multi-figure-image',
|
|
9122
9132
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9153,13 +9163,13 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9153
9163
|
imgcaption = _ref2.imgcaption;
|
|
9154
9164
|
|
|
9155
9165
|
if (imgcaption && imgcaption.length > 0) {
|
|
9156
|
-
return
|
|
9166
|
+
return React.createElement(
|
|
9157
9167
|
'div',
|
|
9158
9168
|
{ className: 'multi-figure-caption' },
|
|
9159
|
-
|
|
9169
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9160
9170
|
);
|
|
9161
9171
|
} else if (caption) {
|
|
9162
|
-
return
|
|
9172
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9163
9173
|
} else return null;
|
|
9164
9174
|
};
|
|
9165
9175
|
|
|
@@ -9169,48 +9179,48 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9169
9179
|
}, [client]);
|
|
9170
9180
|
|
|
9171
9181
|
if (images && images.length > 0) {
|
|
9172
|
-
return
|
|
9182
|
+
return React.createElement(
|
|
9173
9183
|
'div',
|
|
9174
9184
|
{ className: 'multi-figure-container' },
|
|
9175
|
-
|
|
9185
|
+
React.createElement(
|
|
9176
9186
|
Row$1,
|
|
9177
9187
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9178
9188
|
images.map(function (image, index) {
|
|
9179
|
-
return
|
|
9189
|
+
return React.createElement(
|
|
9180
9190
|
Col$1,
|
|
9181
9191
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9182
|
-
image.link ?
|
|
9192
|
+
image.link ? React.createElement(
|
|
9183
9193
|
'a',
|
|
9184
|
-
_extends
|
|
9185
|
-
|
|
9194
|
+
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9195
|
+
React.createElement(
|
|
9186
9196
|
'div',
|
|
9187
9197
|
{ className: 'multi-figure-image-container' },
|
|
9188
|
-
|
|
9198
|
+
React.createElement(
|
|
9189
9199
|
LazyLoad,
|
|
9190
9200
|
{ once: true },
|
|
9191
|
-
|
|
9201
|
+
React.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9192
9202
|
),
|
|
9193
|
-
|
|
9203
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9194
9204
|
)
|
|
9195
|
-
) :
|
|
9205
|
+
) : React.createElement(
|
|
9196
9206
|
'div',
|
|
9197
9207
|
{ className: 'multi-figure-image-container' },
|
|
9198
|
-
|
|
9208
|
+
React.createElement(
|
|
9199
9209
|
LazyLoad,
|
|
9200
9210
|
{ once: true },
|
|
9201
|
-
|
|
9211
|
+
React.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9202
9212
|
),
|
|
9203
|
-
|
|
9213
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9204
9214
|
)
|
|
9205
9215
|
);
|
|
9206
9216
|
})
|
|
9207
9217
|
),
|
|
9208
|
-
|
|
9218
|
+
React.createElement(
|
|
9209
9219
|
'div',
|
|
9210
9220
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9211
|
-
|
|
9221
|
+
React.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9212
9222
|
),
|
|
9213
|
-
|
|
9223
|
+
React.createElement(
|
|
9214
9224
|
'style',
|
|
9215
9225
|
{ jsx: 'true' },
|
|
9216
9226
|
'\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: contain;\n cursor: pointer;\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 max-height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-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 max-height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-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 '
|
|
@@ -9232,10 +9242,10 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9232
9242
|
|
|
9233
9243
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
9234
9244
|
|
|
9235
|
-
return
|
|
9245
|
+
return React.createElement(
|
|
9236
9246
|
'div',
|
|
9237
9247
|
{ id: elementId },
|
|
9238
|
-
|
|
9248
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
9239
9249
|
);
|
|
9240
9250
|
};
|
|
9241
9251
|
|
|
@@ -9264,7 +9274,7 @@ exports.__esModule = true;
|
|
|
9264
9274
|
|
|
9265
9275
|
|
|
9266
9276
|
|
|
9267
|
-
var _extends3 = _interopRequireDefault(_extends$
|
|
9277
|
+
var _extends3 = _interopRequireDefault(_extends$1);
|
|
9268
9278
|
|
|
9269
9279
|
|
|
9270
9280
|
|
|
@@ -9284,7 +9294,7 @@ var _inherits3 = _interopRequireDefault(inherits);
|
|
|
9284
9294
|
|
|
9285
9295
|
|
|
9286
9296
|
|
|
9287
|
-
var _react2 = _interopRequireDefault(
|
|
9297
|
+
var _react2 = _interopRequireDefault(React);
|
|
9288
9298
|
|
|
9289
9299
|
|
|
9290
9300
|
|
|
@@ -9443,7 +9453,7 @@ var ScriptTag = function (_Component) {
|
|
|
9443
9453
|
};
|
|
9444
9454
|
|
|
9445
9455
|
return ScriptTag;
|
|
9446
|
-
}(
|
|
9456
|
+
}(React.Component);
|
|
9447
9457
|
|
|
9448
9458
|
ScriptTag.propTypes = {
|
|
9449
9459
|
/**
|
|
@@ -9522,11 +9532,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9522
9532
|
}, []);
|
|
9523
9533
|
|
|
9524
9534
|
if (iframeSrc) {
|
|
9525
|
-
return
|
|
9535
|
+
return React.createElement(
|
|
9526
9536
|
'section',
|
|
9527
9537
|
{ className: 'form-assembly' },
|
|
9528
|
-
|
|
9529
|
-
|
|
9538
|
+
React.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9539
|
+
React.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9530
9540
|
);
|
|
9531
9541
|
}
|
|
9532
9542
|
|
|
@@ -9563,27 +9573,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9563
9573
|
return window.removeEventListener('resize', handleResize);
|
|
9564
9574
|
};
|
|
9565
9575
|
}, []);
|
|
9566
|
-
return
|
|
9576
|
+
return React.createElement(
|
|
9567
9577
|
'div',
|
|
9568
9578
|
{ className: 'blockTableHolder', ref: holder },
|
|
9569
|
-
|
|
9579
|
+
React.createElement(
|
|
9570
9580
|
'div',
|
|
9571
9581
|
{ className: 'blockTable' },
|
|
9572
9582
|
rows && rows.map(function (row) {
|
|
9573
|
-
return
|
|
9583
|
+
return React.createElement(
|
|
9574
9584
|
'div',
|
|
9575
9585
|
{ className: 'blockTableRow' },
|
|
9576
9586
|
row.cells && row.cells.map(function (cell) {
|
|
9577
|
-
return
|
|
9587
|
+
return React.createElement(
|
|
9578
9588
|
'div',
|
|
9579
9589
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9580
|
-
|
|
9590
|
+
React.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9581
9591
|
);
|
|
9582
9592
|
})
|
|
9583
9593
|
);
|
|
9584
9594
|
})
|
|
9585
9595
|
),
|
|
9586
|
-
|
|
9596
|
+
React.createElement(
|
|
9587
9597
|
'style',
|
|
9588
9598
|
{ jsx: true },
|
|
9589
9599
|
'\n .blockTableRow {\n display: flex;\n ' + (showBorders && 'border-top: ' + borderWidth + 'px solid ' + _borderColor) + ';\n }\n .blockTable {\n min-width: ' + minTableWidth + 'px;\n }\n .blockTableRow:last-of-type {\n ' + (showBorders && 'border-bottom: ' + borderWidth + 'px solid ' + _borderColor) + ';\n }\n .blockTableCell {\n padding: 0.5rem;\n ' + (showBorders && 'border-left: ' + borderWidth + 'px solid ' + _borderColor) + ';\n }\n .blockTableCell > div {\n width: 100%;\n }\n .blockTableCell > div p {\n margin: 0;\n }\n .blockTableCell > div figure {\n margin: 0 !important;\n }\n .blockTableCell > div figure img {\n margin: 0 !important;\n }\n .blockTableCell:last-of-type {\n ' + (showBorders && 'border-right: ' + borderWidth + 'px solid ' + _borderColor) + ';\n }\n @media only screen and (max-width: 800px) {\n .blockTableCell {\n padding: 0.25rem;\n }\n }\n '
|
|
@@ -9662,12 +9672,12 @@ var getSerializers = function getSerializers() {
|
|
|
9662
9672
|
var node = _ref.node;
|
|
9663
9673
|
var url = node.url;
|
|
9664
9674
|
|
|
9665
|
-
return
|
|
9675
|
+
return React.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9666
9676
|
},
|
|
9667
9677
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9668
9678
|
var node = _ref2.node;
|
|
9669
9679
|
|
|
9670
|
-
return
|
|
9680
|
+
return React.createElement(YouTubeGallery, {
|
|
9671
9681
|
nodes: node,
|
|
9672
9682
|
article: article,
|
|
9673
9683
|
meta: meta,
|
|
@@ -9681,7 +9691,7 @@ var getSerializers = function getSerializers() {
|
|
|
9681
9691
|
articleSeries: function articleSeries(_ref3) {
|
|
9682
9692
|
var node = _ref3.node;
|
|
9683
9693
|
|
|
9684
|
-
return
|
|
9694
|
+
return React.createElement(ArticleSeries, {
|
|
9685
9695
|
nodes: node,
|
|
9686
9696
|
accountIDs: videoAccountIDs || {},
|
|
9687
9697
|
pageview: pageview,
|
|
@@ -9694,61 +9704,61 @@ var getSerializers = function getSerializers() {
|
|
|
9694
9704
|
figure: function figure(_ref4) {
|
|
9695
9705
|
var node = _ref4.node;
|
|
9696
9706
|
|
|
9697
|
-
return
|
|
9707
|
+
return React.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9698
9708
|
},
|
|
9699
9709
|
multifigure: function multifigure(_ref5) {
|
|
9700
9710
|
var node = _ref5.node;
|
|
9701
9711
|
|
|
9702
|
-
return
|
|
9712
|
+
return React.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9703
9713
|
},
|
|
9704
9714
|
slideshow: function slideshow(_ref6) {
|
|
9705
9715
|
var node = _ref6.node;
|
|
9706
9716
|
var slides = node.slides;
|
|
9707
9717
|
|
|
9708
|
-
return
|
|
9718
|
+
return React.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9709
9719
|
},
|
|
9710
9720
|
sidebar: function sidebar(_ref7) {
|
|
9711
9721
|
var node = _ref7.node;
|
|
9712
9722
|
var caption = node.caption,
|
|
9713
9723
|
content = node.content;
|
|
9714
9724
|
|
|
9715
|
-
return
|
|
9725
|
+
return React.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9716
9726
|
},
|
|
9717
9727
|
datatable: function datatable(_ref8) {
|
|
9718
9728
|
var node = _ref8.node;
|
|
9719
9729
|
var table = node.table;
|
|
9720
9730
|
|
|
9721
|
-
return
|
|
9731
|
+
return React.createElement(TableShow, { rows: table.rows });
|
|
9722
9732
|
},
|
|
9723
9733
|
media: function media(_ref9) {
|
|
9724
9734
|
var node = _ref9.node;
|
|
9725
9735
|
|
|
9726
|
-
return
|
|
9736
|
+
return React.createElement(Media, { node: node, client: client });
|
|
9727
9737
|
},
|
|
9728
9738
|
iframe: function iframe(_ref10) {
|
|
9729
9739
|
var node = _ref10.node;
|
|
9730
9740
|
|
|
9731
|
-
return
|
|
9741
|
+
return React.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9732
9742
|
},
|
|
9733
9743
|
video: function video(_ref11) {
|
|
9734
9744
|
var node = _ref11.node;
|
|
9735
9745
|
|
|
9736
|
-
return
|
|
9746
|
+
return React.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9737
9747
|
},
|
|
9738
9748
|
audio: function audio(_ref12) {
|
|
9739
9749
|
var node = _ref12.node;
|
|
9740
9750
|
|
|
9741
|
-
return
|
|
9751
|
+
return React.createElement(Audio, { node: node });
|
|
9742
9752
|
},
|
|
9743
9753
|
poll: function poll(_ref13) {
|
|
9744
9754
|
var node = _ref13.node;
|
|
9745
9755
|
|
|
9746
|
-
return
|
|
9756
|
+
return React.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9747
9757
|
},
|
|
9748
9758
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9749
9759
|
var node = _ref14.node;
|
|
9750
9760
|
|
|
9751
|
-
return
|
|
9761
|
+
return React.createElement(Poll$1, {
|
|
9752
9762
|
node: node,
|
|
9753
9763
|
client: client,
|
|
9754
9764
|
pageview: pageview,
|
|
@@ -9762,35 +9772,35 @@ var getSerializers = function getSerializers() {
|
|
|
9762
9772
|
var node = _ref15.node;
|
|
9763
9773
|
var quizzes = node.quizzes;
|
|
9764
9774
|
|
|
9765
|
-
return
|
|
9775
|
+
return React.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9766
9776
|
},
|
|
9767
9777
|
leads: function leads(_ref16) {
|
|
9768
9778
|
var node = _ref16.node;
|
|
9769
9779
|
var leadID = node.leadID;
|
|
9770
9780
|
|
|
9771
9781
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9772
|
-
return
|
|
9782
|
+
return React.createElement(Leads, { url: url });
|
|
9773
9783
|
},
|
|
9774
9784
|
slideshows: function slideshows(_ref17) {
|
|
9775
9785
|
var node = _ref17.node;
|
|
9776
9786
|
|
|
9777
|
-
return
|
|
9787
|
+
return React.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9778
9788
|
},
|
|
9779
9789
|
nativeAd: function nativeAd(_ref18) {
|
|
9780
9790
|
var node = _ref18.node;
|
|
9781
9791
|
|
|
9782
|
-
return
|
|
9792
|
+
return React.createElement(NativeAd, { node: node });
|
|
9783
9793
|
},
|
|
9784
9794
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
9785
9795
|
var node = _ref19.node;
|
|
9786
9796
|
|
|
9787
|
-
return
|
|
9797
|
+
return React.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9788
9798
|
},
|
|
9789
9799
|
hrtag: function hrtag() {
|
|
9790
|
-
return
|
|
9800
|
+
return React.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9791
9801
|
},
|
|
9792
9802
|
brtag: function brtag() {
|
|
9793
|
-
return
|
|
9803
|
+
return React.createElement('br', { className: 'line-break' });
|
|
9794
9804
|
},
|
|
9795
9805
|
formstack: function formstack(_ref20) {
|
|
9796
9806
|
var node = _ref20.node;
|
|
@@ -9798,29 +9808,29 @@ var getSerializers = function getSerializers() {
|
|
|
9798
9808
|
Caption = node.Caption,
|
|
9799
9809
|
needSegmentSupport = node.needSegmentSupport;
|
|
9800
9810
|
|
|
9801
|
-
return
|
|
9811
|
+
return React.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
9802
9812
|
},
|
|
9803
9813
|
formassembly: FormAssembly,
|
|
9804
9814
|
multimedia: function multimedia(_ref21) {
|
|
9805
9815
|
var node = _ref21.node;
|
|
9806
9816
|
|
|
9807
|
-
return
|
|
9817
|
+
return React.createElement(MultiMedia, { node: node, client: client });
|
|
9808
9818
|
},
|
|
9809
9819
|
blockTable: function blockTable(_ref22) {
|
|
9810
9820
|
var node = _ref22.node;
|
|
9811
|
-
return
|
|
9821
|
+
return React.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9812
9822
|
}
|
|
9813
9823
|
},
|
|
9814
9824
|
marks: {
|
|
9815
9825
|
superscript: function superscript(props) {
|
|
9816
|
-
return
|
|
9826
|
+
return React.createElement(
|
|
9817
9827
|
'sup',
|
|
9818
9828
|
null,
|
|
9819
9829
|
props.children
|
|
9820
9830
|
);
|
|
9821
9831
|
},
|
|
9822
9832
|
subscript: function subscript(props) {
|
|
9823
|
-
return
|
|
9833
|
+
return React.createElement(
|
|
9824
9834
|
'sub',
|
|
9825
9835
|
null,
|
|
9826
9836
|
props.children
|
|
@@ -9836,7 +9846,7 @@ var getSerializers = function getSerializers() {
|
|
|
9836
9846
|
if (href && href.charAt(0) === '#') {
|
|
9837
9847
|
var elementId = href.slice(1);
|
|
9838
9848
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9839
|
-
return
|
|
9849
|
+
return React.createElement(
|
|
9840
9850
|
'a',
|
|
9841
9851
|
{ onClick: function onClick() {
|
|
9842
9852
|
return ScrollToElement(elementId);
|
|
@@ -9846,7 +9856,7 @@ var getSerializers = function getSerializers() {
|
|
|
9846
9856
|
}
|
|
9847
9857
|
|
|
9848
9858
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9849
|
-
return
|
|
9859
|
+
return React.createElement(
|
|
9850
9860
|
'a',
|
|
9851
9861
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
9852
9862
|
children
|
|
@@ -9854,7 +9864,7 @@ var getSerializers = function getSerializers() {
|
|
|
9854
9864
|
},
|
|
9855
9865
|
alignleft: function alignleft(_ref23) {
|
|
9856
9866
|
var children = _ref23.children;
|
|
9857
|
-
return
|
|
9867
|
+
return React.createElement(
|
|
9858
9868
|
'div',
|
|
9859
9869
|
{ style: { textAlign: 'left' } },
|
|
9860
9870
|
children
|
|
@@ -9862,7 +9872,7 @@ var getSerializers = function getSerializers() {
|
|
|
9862
9872
|
},
|
|
9863
9873
|
alignright: function alignright(_ref24) {
|
|
9864
9874
|
var children = _ref24.children;
|
|
9865
|
-
return
|
|
9875
|
+
return React.createElement(
|
|
9866
9876
|
'div',
|
|
9867
9877
|
{ style: { textAlign: 'right' } },
|
|
9868
9878
|
children
|
|
@@ -9870,7 +9880,7 @@ var getSerializers = function getSerializers() {
|
|
|
9870
9880
|
},
|
|
9871
9881
|
aligncenter: function aligncenter(_ref25) {
|
|
9872
9882
|
var children = _ref25.children;
|
|
9873
|
-
return
|
|
9883
|
+
return React.createElement(
|
|
9874
9884
|
'div',
|
|
9875
9885
|
{ style: { textAlign: 'center' } },
|
|
9876
9886
|
children
|
|
@@ -9878,7 +9888,7 @@ var getSerializers = function getSerializers() {
|
|
|
9878
9888
|
},
|
|
9879
9889
|
alignjustify: function alignjustify(_ref26) {
|
|
9880
9890
|
var children = _ref26.children;
|
|
9881
|
-
return
|
|
9891
|
+
return React.createElement(
|
|
9882
9892
|
'div',
|
|
9883
9893
|
{ style: { textAlign: 'justify' } },
|
|
9884
9894
|
children
|
|
@@ -9888,7 +9898,7 @@ var getSerializers = function getSerializers() {
|
|
|
9888
9898
|
var children = props.children,
|
|
9889
9899
|
color = props.mark.color;
|
|
9890
9900
|
|
|
9891
|
-
return
|
|
9901
|
+
return React.createElement(
|
|
9892
9902
|
'span',
|
|
9893
9903
|
{ style: { color: color ? color.hex : null } },
|
|
9894
9904
|
children
|