@mjhls/mjh-framework 1.0.832-beta.0 → 1.0.832-scroll-fix-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/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 +622 -611
- 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 +72 -68
- 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 +179 -170
- 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 +729 -782
- 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 +70 -69
- 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 +298 -298
- 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-d16a5ae5.js → SeriesSlider-7d308aac.js} +34 -33
- package/dist/cjs/SideFooter.js +24 -23
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-97dd19a5.js → SocialSearchComponent-42b9d251.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 +24 -23
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesLandingPage.js +26 -25
- package/dist/cjs/VideoSeriesListing.js +57 -56
- package/dist/cjs/View.js +204 -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/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-98e01cb9.js → index-2cf30c83.js} +9 -8
- package/dist/cjs/{index-0b9683e0.js → index-5d106b44.js} +866 -894
- 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 +64 -60
- package/dist/cjs/{inherits-9953db94.js → inherits-0c7830c5.js} +4 -4
- 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 +251 -241
- 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 +64 -64
- 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 +162 -157
- 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 +449 -505
- 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 +66 -66
- 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 +264 -264
- 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-8dc17b11.js → SeriesSlider-3c4bfe38.js} +24 -24
- package/dist/esm/SideFooter.js +19 -19
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-db5ba548.js → SocialSearchComponent-94f6554c.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 +53 -53
- package/dist/esm/View.js +180 -180
- 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/getRelatedArticle.js +354 -5
- package/dist/esm/getSerializers.js +11 -11
- package/dist/esm/{index-59b21a97.js → index-04d3dda1.js} +818 -853
- package/dist/esm/{index-73819142.js → index-51a80699.js} +20 -19
- 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 +51 -50
- 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
|
@@ -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
|
-
import { B as BlockContent } from './BlockContent-
|
|
22
|
+
import { B as BlockContent } from './BlockContent-d05b5b23.js';
|
|
23
23
|
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
24
24
|
import GroupDeck from './GroupDeck.js';
|
|
25
25
|
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
26
|
-
import { d as IoIosArrowDropupCircle } from './index.esm-
|
|
26
|
+
import { d as IoIosArrowDropupCircle } from './index.esm-3fdda599.js';
|
|
27
27
|
import { u as util } from './util-7700fc59.js';
|
|
28
|
-
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-
|
|
28
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-4abff0b1.js';
|
|
29
29
|
import Head from 'next/head';
|
|
30
30
|
import SocialShare from './SocialShare.js';
|
|
31
31
|
import { _ as _objectToArray } from './_object-to-array-7e804fce.js';
|
|
32
|
-
import Pagination
|
|
32
|
+
import Pagination from 'react-bootstrap/Pagination';
|
|
33
33
|
import Button$1 from 'react-bootstrap/Button';
|
|
34
|
-
import Figure$
|
|
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,20 @@ 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
|
-
|
|
82
|
-
|
|
83
|
-
null,
|
|
84
|
-
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
85
|
-
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
86
|
-
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
87
|
-
React__default.createElement('img', { src: urlFor({ source: slide.asset, client: client }), alt: slide.alt || '', style: { width: '100%' } })
|
|
88
|
-
),
|
|
89
|
-
slide.caption && React__default.createElement(
|
|
81
|
+
React.createElement('img', { src: slide.asset && urlFor({ source: slide.asset, client: client }), alt: slide.alt && slide.alt, style: { width: '100%' } }),
|
|
82
|
+
slide.caption && React.createElement(
|
|
90
83
|
'p',
|
|
91
84
|
{ className: 'p-2' },
|
|
92
85
|
slide.caption
|
|
@@ -97,21 +90,18 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
97
90
|
);
|
|
98
91
|
};
|
|
99
92
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
93
|
+
// do not edit .js files directly - edit src/index.jst
|
|
94
|
+
|
|
95
|
+
|
|
103
96
|
|
|
104
97
|
var fastDeepEqual = function equal(a, b) {
|
|
105
98
|
if (a === b) return true;
|
|
106
99
|
|
|
107
100
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
108
|
-
|
|
109
|
-
, arrB = isArray(b)
|
|
110
|
-
, i
|
|
111
|
-
, length
|
|
112
|
-
, key;
|
|
101
|
+
if (a.constructor !== b.constructor) return false;
|
|
113
102
|
|
|
114
|
-
|
|
103
|
+
var length, i, keys;
|
|
104
|
+
if (Array.isArray(a)) {
|
|
115
105
|
length = a.length;
|
|
116
106
|
if (length != b.length) return false;
|
|
117
107
|
for (i = length; i-- !== 0;)
|
|
@@ -119,35 +109,29 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
119
109
|
return true;
|
|
120
110
|
}
|
|
121
111
|
|
|
122
|
-
if (arrA != arrB) return false;
|
|
123
112
|
|
|
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
113
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
if (
|
|
132
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
114
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
115
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
116
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
133
117
|
|
|
134
|
-
|
|
118
|
+
keys = Object.keys(a);
|
|
135
119
|
length = keys.length;
|
|
136
|
-
|
|
137
|
-
if (length !== keyList(b).length)
|
|
138
|
-
return false;
|
|
120
|
+
if (length !== Object.keys(b).length) return false;
|
|
139
121
|
|
|
140
122
|
for (i = length; i-- !== 0;)
|
|
141
|
-
if (!
|
|
123
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
142
124
|
|
|
143
125
|
for (i = length; i-- !== 0;) {
|
|
144
|
-
key = keys[i];
|
|
126
|
+
var key = keys[i];
|
|
127
|
+
|
|
145
128
|
if (!equal(a[key], b[key])) return false;
|
|
146
129
|
}
|
|
147
130
|
|
|
148
131
|
return true;
|
|
149
132
|
}
|
|
150
133
|
|
|
134
|
+
// true if both NaN, false otherwise
|
|
151
135
|
return a!==a && b!==b;
|
|
152
136
|
};
|
|
153
137
|
|
|
@@ -1570,199 +1554,239 @@ module.exports = exports['default'];
|
|
|
1570
1554
|
|
|
1571
1555
|
var youTubePlayer = unwrapExports(dist);
|
|
1572
1556
|
|
|
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; };
|
|
1557
|
+
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
1558
|
|
|
1577
1559
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1578
1560
|
|
|
1579
|
-
function
|
|
1561
|
+
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); } }
|
|
1562
|
+
|
|
1563
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1564
|
+
|
|
1565
|
+
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); }
|
|
1566
|
+
|
|
1567
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1568
|
+
|
|
1569
|
+
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); }; }
|
|
1570
|
+
|
|
1571
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1572
|
+
|
|
1573
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1574
|
+
|
|
1575
|
+
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; } }
|
|
1576
|
+
|
|
1577
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1578
|
+
|
|
1579
|
+
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; }
|
|
1580
1580
|
|
|
1581
|
-
function
|
|
1581
|
+
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
1582
|
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
*
|
|
1586
|
-
*
|
|
1587
|
-
* @param {Object}
|
|
1583
|
+
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; }
|
|
1584
|
+
/**
|
|
1585
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1586
|
+
*
|
|
1587
|
+
* @param {Object} prevProps
|
|
1588
|
+
* @param {Object} props
|
|
1588
1589
|
*/
|
|
1590
|
+
|
|
1589
1591
|
function shouldUpdateVideo(prevProps, props) {
|
|
1590
1592
|
// A changing video should always trigger an update
|
|
1591
1593
|
if (prevProps.videoId !== props.videoId) {
|
|
1592
1594
|
return true;
|
|
1593
|
-
}
|
|
1594
|
-
|
|
1595
|
-
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1595
|
+
} // Otherwise, a change in the start/end time playerVars also requires a player
|
|
1596
1596
|
// update.
|
|
1597
|
+
|
|
1598
|
+
|
|
1597
1599
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1598
1600
|
var vars = props.opts.playerVars || {};
|
|
1599
|
-
|
|
1600
1601
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1601
1602
|
}
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
*
|
|
1605
|
-
*
|
|
1606
|
-
*
|
|
1607
|
-
*
|
|
1608
|
-
* @param {Object} opts
|
|
1603
|
+
/**
|
|
1604
|
+
* Neutralize API options that only require a video update, leaving only options
|
|
1605
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1606
|
+
* player reset is necessary.
|
|
1607
|
+
*
|
|
1608
|
+
* @param {Object} opts
|
|
1609
1609
|
*/
|
|
1610
|
+
|
|
1611
|
+
|
|
1610
1612
|
function filterResetOptions(opts) {
|
|
1611
|
-
return
|
|
1612
|
-
playerVars:
|
|
1613
|
+
return _objectSpread(_objectSpread({}, opts), {}, {
|
|
1614
|
+
playerVars: _objectSpread({
|
|
1613
1615
|
autoplay: 0,
|
|
1614
1616
|
start: 0,
|
|
1615
1617
|
end: 0
|
|
1616
|
-
})
|
|
1618
|
+
}, opts.playerVars)
|
|
1617
1619
|
});
|
|
1618
1620
|
}
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
*
|
|
1622
|
-
*
|
|
1623
|
-
*
|
|
1624
|
-
*
|
|
1625
|
-
*
|
|
1626
|
-
* @param {Object}
|
|
1627
|
-
* @param {Object} props
|
|
1621
|
+
/**
|
|
1622
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1623
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1624
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1625
|
+
* those.
|
|
1626
|
+
*
|
|
1627
|
+
* @param {Object} prevProps
|
|
1628
|
+
* @param {Object} props
|
|
1628
1629
|
*/
|
|
1630
|
+
|
|
1631
|
+
|
|
1629
1632
|
function shouldResetPlayer(prevProps, props) {
|
|
1630
1633
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1631
1634
|
}
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
*
|
|
1635
|
-
*
|
|
1636
|
-
* @param {Object}
|
|
1637
|
-
* @param {Object} props
|
|
1635
|
+
/**
|
|
1636
|
+
* Check whether a props change should result in an id or className update.
|
|
1637
|
+
*
|
|
1638
|
+
* @param {Object} prevProps
|
|
1639
|
+
* @param {Object} props
|
|
1638
1640
|
*/
|
|
1641
|
+
|
|
1642
|
+
|
|
1639
1643
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1640
1644
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1641
1645
|
}
|
|
1642
1646
|
|
|
1643
|
-
var YouTube = function (_React$Component) {
|
|
1647
|
+
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
1644
1648
|
_inherits(YouTube, _React$Component);
|
|
1645
1649
|
|
|
1650
|
+
var _super = _createSuper(YouTube);
|
|
1651
|
+
|
|
1652
|
+
/**
|
|
1653
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1654
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1655
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1656
|
+
*/
|
|
1646
1657
|
function YouTube(props) {
|
|
1658
|
+
var _this;
|
|
1659
|
+
|
|
1647
1660
|
_classCallCheck(this, YouTube);
|
|
1648
1661
|
|
|
1649
|
-
|
|
1662
|
+
_this = _super.call(this, props);
|
|
1650
1663
|
|
|
1651
|
-
_this
|
|
1664
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
|
|
1652
1665
|
return _this.props.onReady(event);
|
|
1653
|
-
};
|
|
1666
|
+
});
|
|
1654
1667
|
|
|
1655
|
-
_this
|
|
1668
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
|
|
1656
1669
|
return _this.props.onError(event);
|
|
1657
|
-
};
|
|
1670
|
+
});
|
|
1658
1671
|
|
|
1659
|
-
_this
|
|
1672
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
|
|
1660
1673
|
_this.props.onStateChange(event);
|
|
1661
|
-
switch (event.data) {
|
|
1662
1674
|
|
|
1675
|
+
switch (event.data) {
|
|
1663
1676
|
case YouTube.PlayerState.ENDED:
|
|
1664
1677
|
_this.props.onEnd(event);
|
|
1678
|
+
|
|
1665
1679
|
break;
|
|
1666
1680
|
|
|
1667
1681
|
case YouTube.PlayerState.PLAYING:
|
|
1668
1682
|
_this.props.onPlay(event);
|
|
1683
|
+
|
|
1669
1684
|
break;
|
|
1670
1685
|
|
|
1671
1686
|
case YouTube.PlayerState.PAUSED:
|
|
1672
1687
|
_this.props.onPause(event);
|
|
1688
|
+
|
|
1673
1689
|
break;
|
|
1674
1690
|
}
|
|
1675
|
-
};
|
|
1691
|
+
});
|
|
1676
1692
|
|
|
1677
|
-
_this
|
|
1693
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
|
|
1678
1694
|
return _this.props.onPlaybackRateChange(event);
|
|
1679
|
-
};
|
|
1695
|
+
});
|
|
1680
1696
|
|
|
1681
|
-
_this
|
|
1697
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
|
|
1682
1698
|
return _this.props.onPlaybackQualityChange(event);
|
|
1683
|
-
};
|
|
1699
|
+
});
|
|
1684
1700
|
|
|
1685
|
-
_this
|
|
1701
|
+
_defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
|
|
1686
1702
|
// do not attempt to create a player server-side, it won't work
|
|
1687
|
-
if (typeof document === 'undefined') return;
|
|
1688
|
-
|
|
1689
|
-
var playerOpts =
|
|
1703
|
+
if (typeof document === 'undefined') return; // create player
|
|
1704
|
+
|
|
1705
|
+
var playerOpts = _objectSpread(_objectSpread({}, _this.props.opts), {}, {
|
|
1690
1706
|
// preload the `videoId` video if one is already given
|
|
1691
1707
|
videoId: _this.props.videoId
|
|
1692
1708
|
});
|
|
1693
|
-
|
|
1694
|
-
// attach event handlers
|
|
1709
|
+
|
|
1710
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
|
|
1711
|
+
|
|
1695
1712
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1713
|
+
|
|
1696
1714
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1715
|
+
|
|
1697
1716
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1717
|
+
|
|
1698
1718
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1719
|
+
|
|
1699
1720
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1700
|
-
};
|
|
1721
|
+
});
|
|
1701
1722
|
|
|
1702
|
-
_this
|
|
1723
|
+
_defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
|
|
1703
1724
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1704
|
-
};
|
|
1725
|
+
});
|
|
1705
1726
|
|
|
1706
|
-
_this
|
|
1727
|
+
_defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
|
|
1707
1728
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1708
1729
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1709
1730
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1710
1731
|
});
|
|
1711
|
-
};
|
|
1732
|
+
});
|
|
1733
|
+
|
|
1734
|
+
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1735
|
+
return _this.internalPlayer;
|
|
1736
|
+
});
|
|
1712
1737
|
|
|
1713
|
-
_this
|
|
1738
|
+
_defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
|
|
1714
1739
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1715
1740
|
_this.internalPlayer.stopVideo();
|
|
1741
|
+
|
|
1716
1742
|
return;
|
|
1717
|
-
}
|
|
1743
|
+
} // set queueing options
|
|
1744
|
+
|
|
1718
1745
|
|
|
1719
|
-
// set queueing options
|
|
1720
1746
|
var autoplay = false;
|
|
1721
1747
|
var opts = {
|
|
1722
1748
|
videoId: _this.props.videoId
|
|
1723
1749
|
};
|
|
1750
|
+
|
|
1724
1751
|
if ('playerVars' in _this.props.opts) {
|
|
1725
1752
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1753
|
+
|
|
1726
1754
|
if ('start' in _this.props.opts.playerVars) {
|
|
1727
1755
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1728
1756
|
}
|
|
1757
|
+
|
|
1729
1758
|
if ('end' in _this.props.opts.playerVars) {
|
|
1730
1759
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1731
1760
|
}
|
|
1732
|
-
}
|
|
1761
|
+
} // if autoplay is enabled loadVideoById
|
|
1762
|
+
|
|
1733
1763
|
|
|
1734
|
-
// if autoplay is enabled loadVideoById
|
|
1735
1764
|
if (autoplay) {
|
|
1736
1765
|
_this.internalPlayer.loadVideoById(opts);
|
|
1766
|
+
|
|
1737
1767
|
return;
|
|
1738
|
-
}
|
|
1739
|
-
|
|
1768
|
+
} // default behaviour just cues the video
|
|
1769
|
+
|
|
1770
|
+
|
|
1740
1771
|
_this.internalPlayer.cueVideoById(opts);
|
|
1741
|
-
};
|
|
1772
|
+
});
|
|
1742
1773
|
|
|
1743
|
-
_this
|
|
1774
|
+
_defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
|
|
1744
1775
|
_this.container = container;
|
|
1745
|
-
};
|
|
1776
|
+
});
|
|
1746
1777
|
|
|
1747
1778
|
_this.container = null;
|
|
1748
1779
|
_this.internalPlayer = null;
|
|
1749
1780
|
return _this;
|
|
1750
1781
|
}
|
|
1751
1782
|
|
|
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
1783
|
_createClass(YouTube, [{
|
|
1760
|
-
key:
|
|
1784
|
+
key: "componentDidMount",
|
|
1761
1785
|
value: function componentDidMount() {
|
|
1762
1786
|
this.createPlayer();
|
|
1763
1787
|
}
|
|
1764
1788
|
}, {
|
|
1765
|
-
key:
|
|
1789
|
+
key: "componentDidUpdate",
|
|
1766
1790
|
value: function componentDidUpdate(prevProps) {
|
|
1767
1791
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1768
1792
|
this.updatePlayer();
|
|
@@ -1777,112 +1801,58 @@ var YouTube = function (_React$Component) {
|
|
|
1777
1801
|
}
|
|
1778
1802
|
}
|
|
1779
1803
|
}, {
|
|
1780
|
-
key:
|
|
1804
|
+
key: "componentWillUnmount",
|
|
1781
1805
|
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.
|
|
1806
|
+
/**
|
|
1807
|
+
* Note: The `youtube-player` package that is used promisifies all YouTube
|
|
1808
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1809
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1810
|
+
* this method isn't quick enough to reset the container element.
|
|
1787
1811
|
*/
|
|
1788
1812
|
this.internalPlayer.destroy();
|
|
1789
1813
|
}
|
|
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.
|
|
1814
|
+
/**
|
|
1815
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1816
|
+
*
|
|
1817
|
+
* @param {Object} event
|
|
1818
|
+
* @param {Object} target - player object
|
|
1856
1819
|
*/
|
|
1857
1820
|
|
|
1858
1821
|
}, {
|
|
1859
|
-
key:
|
|
1822
|
+
key: "render",
|
|
1860
1823
|
value: function render() {
|
|
1861
|
-
return
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1824
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1825
|
+
className: this.props.containerClassName
|
|
1826
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1827
|
+
id: this.props.id,
|
|
1828
|
+
className: this.props.className,
|
|
1829
|
+
ref: this.refContainer
|
|
1830
|
+
}));
|
|
1866
1831
|
}
|
|
1867
1832
|
}]);
|
|
1868
1833
|
|
|
1869
1834
|
return YouTube;
|
|
1870
|
-
}(
|
|
1835
|
+
}(React.Component);
|
|
1836
|
+
|
|
1837
|
+
_defineProperty(YouTube, "PlayerState", {
|
|
1838
|
+
UNSTARTED: -1,
|
|
1839
|
+
ENDED: 0,
|
|
1840
|
+
PLAYING: 1,
|
|
1841
|
+
PAUSED: 2,
|
|
1842
|
+
BUFFERING: 3,
|
|
1843
|
+
CUED: 5
|
|
1844
|
+
});
|
|
1871
1845
|
|
|
1872
1846
|
YouTube.propTypes = {
|
|
1873
1847
|
videoId: PropTypes.string,
|
|
1874
|
-
|
|
1875
1848
|
// custom ID for player element
|
|
1876
1849
|
id: PropTypes.string,
|
|
1877
|
-
|
|
1878
1850
|
// custom class name for player element
|
|
1879
1851
|
className: PropTypes.string,
|
|
1880
1852
|
// custom class name for player container element
|
|
1881
1853
|
containerClassName: PropTypes.string,
|
|
1882
|
-
|
|
1883
1854
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1884
1855
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1885
|
-
|
|
1886
1856
|
// event subscriptions
|
|
1887
1857
|
onReady: PropTypes.func,
|
|
1888
1858
|
onError: PropTypes.func,
|
|
@@ -1894,6 +1864,7 @@ YouTube.propTypes = {
|
|
|
1894
1864
|
onPlaybackQualityChange: PropTypes.func
|
|
1895
1865
|
};
|
|
1896
1866
|
YouTube.defaultProps = {
|
|
1867
|
+
videoId: null,
|
|
1897
1868
|
id: null,
|
|
1898
1869
|
className: null,
|
|
1899
1870
|
opts: {},
|
|
@@ -1907,14 +1878,6 @@ YouTube.defaultProps = {
|
|
|
1907
1878
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1908
1879
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1909
1880
|
};
|
|
1910
|
-
YouTube.PlayerState = {
|
|
1911
|
-
UNSTARTED: -1,
|
|
1912
|
-
ENDED: 0,
|
|
1913
|
-
PLAYING: 1,
|
|
1914
|
-
PAUSED: 2,
|
|
1915
|
-
BUFFERING: 3,
|
|
1916
|
-
CUED: 5
|
|
1917
|
-
};
|
|
1918
1881
|
|
|
1919
1882
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1920
1883
|
var url = _ref.url,
|
|
@@ -2016,11 +1979,11 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
2016
1979
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
2017
1980
|
};
|
|
2018
1981
|
|
|
2019
|
-
return
|
|
1982
|
+
return React.createElement(
|
|
2020
1983
|
'div',
|
|
2021
1984
|
{ id: 'fluid-video-container' },
|
|
2022
|
-
|
|
2023
|
-
|
|
1985
|
+
React.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
1986
|
+
React.createElement(
|
|
2024
1987
|
'style',
|
|
2025
1988
|
{ jsx: 'true' },
|
|
2026
1989
|
'\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 +1996,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2033
1996
|
content = _ref.content,
|
|
2034
1997
|
getSerializers = _ref.getSerializers;
|
|
2035
1998
|
|
|
2036
|
-
return
|
|
1999
|
+
return React.createElement(
|
|
2037
2000
|
'article',
|
|
2038
2001
|
{ className: 'sidebar' },
|
|
2039
|
-
|
|
2002
|
+
React.createElement(
|
|
2040
2003
|
'div',
|
|
2041
2004
|
null,
|
|
2042
|
-
|
|
2005
|
+
React.createElement(
|
|
2043
2006
|
'h3',
|
|
2044
2007
|
null,
|
|
2045
2008
|
caption
|
|
2046
2009
|
),
|
|
2047
|
-
|
|
2010
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2048
2011
|
),
|
|
2049
|
-
|
|
2012
|
+
React.createElement(
|
|
2050
2013
|
'style',
|
|
2051
2014
|
{ jsx: 'true' },
|
|
2052
2015
|
'\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 +2020,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2057
2020
|
var TableShow = function TableShow(_ref) {
|
|
2058
2021
|
var rows = _ref.rows;
|
|
2059
2022
|
|
|
2060
|
-
return
|
|
2023
|
+
return React.createElement(
|
|
2061
2024
|
Table,
|
|
2062
2025
|
{ bordered: true, hover: true, responsive: true },
|
|
2063
|
-
|
|
2026
|
+
React.createElement(
|
|
2064
2027
|
'tbody',
|
|
2065
2028
|
null,
|
|
2066
2029
|
rows && rows.map(function (row) {
|
|
2067
|
-
return
|
|
2030
|
+
return React.createElement(
|
|
2068
2031
|
'tr',
|
|
2069
2032
|
{ key: row._key },
|
|
2070
2033
|
row.cells && row.cells.map(function (cell, index) {
|
|
2071
|
-
return cell &&
|
|
2034
|
+
return cell && React.createElement(
|
|
2072
2035
|
'td',
|
|
2073
2036
|
{ key: index },
|
|
2074
2037
|
cell
|
|
@@ -2166,25 +2129,18 @@ var Media = function Media(_ref) {
|
|
|
2166
2129
|
margin: imageMargin
|
|
2167
2130
|
};
|
|
2168
2131
|
|
|
2169
|
-
return
|
|
2132
|
+
return React.createElement(
|
|
2170
2133
|
Figure$1,
|
|
2171
2134
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2172
|
-
|
|
2135
|
+
React.createElement(
|
|
2173
2136
|
'a',
|
|
2174
2137
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2175
|
-
|
|
2138
|
+
React.createElement(
|
|
2176
2139
|
LazyLoad,
|
|
2177
2140
|
{ once: true },
|
|
2178
|
-
|
|
2179
|
-
'picture',
|
|
2180
|
-
null,
|
|
2181
|
-
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2182
|
-
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2183
|
-
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2184
|
-
React__default.createElement('img', _extends$1({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2185
|
-
)
|
|
2141
|
+
React.createElement(Figure$1.Image, _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2186
2142
|
),
|
|
2187
|
-
caption &&
|
|
2143
|
+
caption && React.createElement(
|
|
2188
2144
|
Figure$1.Caption,
|
|
2189
2145
|
{ className: 'media-caption' },
|
|
2190
2146
|
caption
|
|
@@ -2192,9 +2148,9 @@ var Media = function Media(_ref) {
|
|
|
2192
2148
|
)
|
|
2193
2149
|
);
|
|
2194
2150
|
} else if (caption && caption !== '') {
|
|
2195
|
-
return
|
|
2151
|
+
return React.createElement(
|
|
2196
2152
|
'a',
|
|
2197
|
-
_extends
|
|
2153
|
+
_extends({}, uploadDoc.downloadMedia ? {
|
|
2198
2154
|
href: uploadDoc.asset.url + '?dl='
|
|
2199
2155
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2200
2156
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2212,10 +2168,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2212
2168
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2213
2169
|
|
|
2214
2170
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2215
|
-
return
|
|
2171
|
+
return React.createElement(
|
|
2216
2172
|
'div',
|
|
2217
2173
|
{ className: 'd-block text-center mb-3' },
|
|
2218
|
-
|
|
2174
|
+
React.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2219
2175
|
);
|
|
2220
2176
|
};
|
|
2221
2177
|
|
|
@@ -2310,10 +2266,10 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2310
2266
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
|
|
2311
2267
|
};
|
|
2312
2268
|
|
|
2313
|
-
return
|
|
2269
|
+
return React.createElement(
|
|
2314
2270
|
'div',
|
|
2315
2271
|
null,
|
|
2316
|
-
vidLoaded &&
|
|
2272
|
+
vidLoaded && React.createElement(
|
|
2317
2273
|
'video',
|
|
2318
2274
|
{
|
|
2319
2275
|
poster: thumbnail || '',
|
|
@@ -2331,7 +2287,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2331
2287
|
onPlay: function onPlay(e) {
|
|
2332
2288
|
return handleOnPlay(e);
|
|
2333
2289
|
} },
|
|
2334
|
-
|
|
2290
|
+
React.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2335
2291
|
'Your browser does not support the video tag.'
|
|
2336
2292
|
)
|
|
2337
2293
|
);
|
|
@@ -2368,7 +2324,7 @@ var Video = function Video(_ref) {
|
|
|
2368
2324
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2369
2325
|
//console.log('success:', success.ref)
|
|
2370
2326
|
var player = success.ref;
|
|
2371
|
-
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2327
|
+
if (_typeof$1(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2372
2328
|
player.ima3.settings.debug = true;
|
|
2373
2329
|
if (targeting.content_placement && targeting.document_url) {
|
|
2374
2330
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2466,53 +2422,53 @@ var Video = function Video(_ref) {
|
|
|
2466
2422
|
|
|
2467
2423
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2468
2424
|
if (videoID) {
|
|
2469
|
-
return
|
|
2425
|
+
return React.createElement(
|
|
2470
2426
|
'div',
|
|
2471
2427
|
null,
|
|
2472
|
-
|
|
2428
|
+
React.createElement(ReactPlayerLoader, {
|
|
2473
2429
|
onSuccess: onVideoSuccess,
|
|
2474
2430
|
accountId: accountIDs.brightcove.accountId,
|
|
2475
2431
|
videoId: videoID,
|
|
2476
2432
|
playerId: accountIDs.brightcove.playerId,
|
|
2477
2433
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2478
2434
|
}),
|
|
2479
|
-
|
|
2435
|
+
React.createElement(
|
|
2480
2436
|
'style',
|
|
2481
2437
|
{ jsx: 'true' },
|
|
2482
2438
|
'\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
2439
|
)
|
|
2484
2440
|
);
|
|
2485
2441
|
} else if (playlistID) {
|
|
2486
|
-
return
|
|
2442
|
+
return React.createElement(
|
|
2487
2443
|
'div',
|
|
2488
2444
|
null,
|
|
2489
|
-
|
|
2445
|
+
React.createElement(ReactPlayerLoader, {
|
|
2490
2446
|
accountId: accountIDs.brightcove.accountId,
|
|
2491
2447
|
playlistId: playlistID,
|
|
2492
2448
|
playerId: accountIDs.brightcove.playerId,
|
|
2493
2449
|
onSuccess: onVideoSuccess,
|
|
2494
2450
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2495
2451
|
}),
|
|
2496
|
-
|
|
2452
|
+
React.createElement(
|
|
2497
2453
|
'style',
|
|
2498
2454
|
{ jsx: 'true' },
|
|
2499
2455
|
'\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
2456
|
)
|
|
2501
2457
|
);
|
|
2502
2458
|
} else if (experienceID) {
|
|
2503
|
-
return
|
|
2459
|
+
return React.createElement(
|
|
2504
2460
|
'div',
|
|
2505
2461
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2506
|
-
videoLoaded &&
|
|
2462
|
+
videoLoaded && React.createElement('div', { 'data-experience': experienceID })
|
|
2507
2463
|
);
|
|
2508
2464
|
}
|
|
2509
2465
|
return null;
|
|
2510
2466
|
}
|
|
2511
2467
|
if (source === 'mp4') {
|
|
2512
|
-
return
|
|
2468
|
+
return React.createElement(
|
|
2513
2469
|
'div',
|
|
2514
2470
|
null,
|
|
2515
|
-
|
|
2471
|
+
React.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2516
2472
|
);
|
|
2517
2473
|
}
|
|
2518
2474
|
|
|
@@ -2890,11 +2846,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2890
2846
|
|
|
2891
2847
|
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
2848
|
|
|
2893
|
-
function
|
|
2849
|
+
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; } } }; }
|
|
2850
|
+
|
|
2851
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2852
|
+
|
|
2853
|
+
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."); }
|
|
2894
2854
|
|
|
2895
|
-
function
|
|
2855
|
+
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); }
|
|
2896
2856
|
|
|
2897
|
-
function
|
|
2857
|
+
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; }
|
|
2858
|
+
|
|
2859
|
+
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
2860
|
|
|
2899
2861
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2900
2862
|
|
|
@@ -3024,12 +2986,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3024
2986
|
|
|
3025
2987
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3026
2988
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3027
|
-
|
|
3028
|
-
var
|
|
3029
|
-
|
|
2989
|
+
|
|
2990
|
+
var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
|
|
2991
|
+
_step;
|
|
3030
2992
|
|
|
3031
2993
|
try {
|
|
3032
|
-
for (
|
|
2994
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3033
2995
|
var p = _step.value;
|
|
3034
2996
|
|
|
3035
2997
|
if (props$1[p]) {
|
|
@@ -3044,18 +3006,9 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3044
3006
|
}
|
|
3045
3007
|
}
|
|
3046
3008
|
} catch (err) {
|
|
3047
|
-
|
|
3048
|
-
_iteratorError = err;
|
|
3009
|
+
_iterator.e(err);
|
|
3049
3010
|
} finally {
|
|
3050
|
-
|
|
3051
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3052
|
-
_iterator["return"]();
|
|
3053
|
-
}
|
|
3054
|
-
} finally {
|
|
3055
|
-
if (_didIteratorError) {
|
|
3056
|
-
throw _iteratorError;
|
|
3057
|
-
}
|
|
3058
|
-
}
|
|
3011
|
+
_iterator.f();
|
|
3059
3012
|
}
|
|
3060
3013
|
|
|
3061
3014
|
return config;
|
|
@@ -3120,7 +3073,7 @@ function isEqual(a, b) {
|
|
|
3120
3073
|
return true;
|
|
3121
3074
|
}
|
|
3122
3075
|
|
|
3123
|
-
if ((0,
|
|
3076
|
+
if ((0, React.isValidElement)(a) && (0, React.isValidElement)(b)) {
|
|
3124
3077
|
return true;
|
|
3125
3078
|
}
|
|
3126
3079
|
|
|
@@ -3182,7 +3135,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3182
3135
|
});
|
|
3183
3136
|
exports["default"] = void 0;
|
|
3184
3137
|
|
|
3185
|
-
var _react = _interopRequireWildcard(
|
|
3138
|
+
var _react = _interopRequireWildcard(React);
|
|
3186
3139
|
|
|
3187
3140
|
|
|
3188
3141
|
|
|
@@ -3202,12 +3155,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3202
3155
|
|
|
3203
3156
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3204
3157
|
|
|
3205
|
-
function
|
|
3158
|
+
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
3159
|
|
|
3207
|
-
function
|
|
3160
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3208
3161
|
|
|
3209
3162
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3210
3163
|
|
|
3164
|
+
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; } }
|
|
3165
|
+
|
|
3166
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3167
|
+
|
|
3211
3168
|
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
3169
|
|
|
3213
3170
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3216,14 +3173,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3216
3173
|
|
|
3217
3174
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3218
3175
|
|
|
3219
|
-
var Player =
|
|
3220
|
-
/*#__PURE__*/
|
|
3221
|
-
function (_Component) {
|
|
3176
|
+
var Player = /*#__PURE__*/function (_Component) {
|
|
3222
3177
|
_inherits(Player, _Component);
|
|
3223
3178
|
|
|
3224
|
-
|
|
3225
|
-
var _getPrototypeOf2;
|
|
3179
|
+
var _super = _createSuper(Player);
|
|
3226
3180
|
|
|
3181
|
+
function Player() {
|
|
3227
3182
|
var _this;
|
|
3228
3183
|
|
|
3229
3184
|
_classCallCheck(this, Player);
|
|
@@ -3232,7 +3187,7 @@ function (_Component) {
|
|
|
3232
3187
|
_args[_key] = arguments[_key];
|
|
3233
3188
|
}
|
|
3234
3189
|
|
|
3235
|
-
_this =
|
|
3190
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
3236
3191
|
|
|
3237
3192
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3238
3193
|
|
|
@@ -3557,7 +3512,7 @@ function (_Component) {
|
|
|
3557
3512
|
return null;
|
|
3558
3513
|
}
|
|
3559
3514
|
|
|
3560
|
-
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3515
|
+
return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
|
|
3561
3516
|
ref: this.ref,
|
|
3562
3517
|
onReady: this.handleReady,
|
|
3563
3518
|
onPlay: this.handlePlay,
|
|
@@ -3590,7 +3545,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3590
3545
|
});
|
|
3591
3546
|
exports["default"] = createSinglePlayer;
|
|
3592
3547
|
|
|
3593
|
-
var _react = _interopRequireWildcard(
|
|
3548
|
+
var _react = _interopRequireWildcard(React);
|
|
3594
3549
|
|
|
3595
3550
|
|
|
3596
3551
|
|
|
@@ -3618,12 +3573,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3618
3573
|
|
|
3619
3574
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3620
3575
|
|
|
3621
|
-
function
|
|
3576
|
+
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
3577
|
|
|
3623
|
-
function
|
|
3578
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3624
3579
|
|
|
3625
3580
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3626
3581
|
|
|
3582
|
+
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; } }
|
|
3583
|
+
|
|
3584
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3585
|
+
|
|
3627
3586
|
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
3587
|
|
|
3629
3588
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3635,14 +3594,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3635
3594
|
function createSinglePlayer(activePlayer) {
|
|
3636
3595
|
var _class, _temp;
|
|
3637
3596
|
|
|
3638
|
-
return _temp = _class =
|
|
3639
|
-
/*#__PURE__*/
|
|
3640
|
-
function (_Component) {
|
|
3597
|
+
return _temp = _class = /*#__PURE__*/function (_Component) {
|
|
3641
3598
|
_inherits(SinglePlayer, _Component);
|
|
3642
3599
|
|
|
3643
|
-
|
|
3644
|
-
var _getPrototypeOf2;
|
|
3600
|
+
var _super = _createSuper(SinglePlayer);
|
|
3645
3601
|
|
|
3602
|
+
function SinglePlayer() {
|
|
3646
3603
|
var _this;
|
|
3647
3604
|
|
|
3648
3605
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3651,7 +3608,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3651
3608
|
args[_key] = arguments[_key];
|
|
3652
3609
|
}
|
|
3653
3610
|
|
|
3654
|
-
_this =
|
|
3611
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3655
3612
|
|
|
3656
3613
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3657
3614
|
|
|
@@ -3719,12 +3676,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3719
3676
|
height = _this$props.height,
|
|
3720
3677
|
Wrapper = _this$props.wrapper;
|
|
3721
3678
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3722
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
3679
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
3723
3680
|
style: _objectSpread({}, style, {
|
|
3724
3681
|
width: width,
|
|
3725
3682
|
height: height
|
|
3726
3683
|
})
|
|
3727
|
-
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3684
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3728
3685
|
ref: this.ref,
|
|
3729
3686
|
activePlayer: activePlayer,
|
|
3730
3687
|
config: this.config
|
|
@@ -3746,7 +3703,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3746
3703
|
});
|
|
3747
3704
|
exports["default"] = exports.YouTube = void 0;
|
|
3748
3705
|
|
|
3749
|
-
var _react = _interopRequireWildcard(
|
|
3706
|
+
var _react = _interopRequireWildcard(React);
|
|
3750
3707
|
|
|
3751
3708
|
|
|
3752
3709
|
|
|
@@ -3770,23 +3727,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3770
3727
|
|
|
3771
3728
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3772
3729
|
|
|
3773
|
-
function
|
|
3730
|
+
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
3731
|
|
|
3775
|
-
function
|
|
3732
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3776
3733
|
|
|
3777
3734
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3778
3735
|
|
|
3736
|
+
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; } }
|
|
3737
|
+
|
|
3738
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3739
|
+
|
|
3779
3740
|
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
3741
|
|
|
3781
3742
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3782
3743
|
|
|
3783
3744
|
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
3745
|
|
|
3785
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3746
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3747
|
+
|
|
3748
|
+
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."); }
|
|
3786
3749
|
|
|
3787
|
-
function
|
|
3750
|
+
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); }
|
|
3788
3751
|
|
|
3789
|
-
function
|
|
3752
|
+
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; }
|
|
3753
|
+
|
|
3754
|
+
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
3755
|
|
|
3791
3756
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3792
3757
|
|
|
@@ -3811,14 +3776,12 @@ function parsePlaylist(url) {
|
|
|
3811
3776
|
return {};
|
|
3812
3777
|
}
|
|
3813
3778
|
|
|
3814
|
-
var YouTube =
|
|
3815
|
-
/*#__PURE__*/
|
|
3816
|
-
function (_Component) {
|
|
3779
|
+
var YouTube = /*#__PURE__*/function (_Component) {
|
|
3817
3780
|
_inherits(YouTube, _Component);
|
|
3818
3781
|
|
|
3819
|
-
|
|
3820
|
-
var _getPrototypeOf2;
|
|
3782
|
+
var _super = _createSuper(YouTube);
|
|
3821
3783
|
|
|
3784
|
+
function YouTube() {
|
|
3822
3785
|
var _this;
|
|
3823
3786
|
|
|
3824
3787
|
_classCallCheck(this, YouTube);
|
|
@@ -3827,7 +3790,7 @@ function (_Component) {
|
|
|
3827
3790
|
args[_key] = arguments[_key];
|
|
3828
3791
|
}
|
|
3829
3792
|
|
|
3830
|
-
_this =
|
|
3793
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3831
3794
|
|
|
3832
3795
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3833
3796
|
|
|
@@ -4015,9 +3978,9 @@ function (_Component) {
|
|
|
4015
3978
|
height: '100%',
|
|
4016
3979
|
display: display
|
|
4017
3980
|
};
|
|
4018
|
-
return _react["default"].createElement("div", {
|
|
3981
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4019
3982
|
style: style
|
|
4020
|
-
}, _react["default"].createElement("div", {
|
|
3983
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
4021
3984
|
ref: this.ref
|
|
4022
3985
|
}));
|
|
4023
3986
|
}
|
|
@@ -4049,7 +4012,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4049
4012
|
});
|
|
4050
4013
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4051
4014
|
|
|
4052
|
-
var _react = _interopRequireWildcard(
|
|
4015
|
+
var _react = _interopRequireWildcard(React);
|
|
4053
4016
|
|
|
4054
4017
|
|
|
4055
4018
|
|
|
@@ -4073,12 +4036,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4073
4036
|
|
|
4074
4037
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4075
4038
|
|
|
4076
|
-
function
|
|
4039
|
+
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
4040
|
|
|
4078
|
-
function
|
|
4041
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4079
4042
|
|
|
4080
4043
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4081
4044
|
|
|
4045
|
+
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; } }
|
|
4046
|
+
|
|
4047
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4048
|
+
|
|
4082
4049
|
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
4050
|
|
|
4084
4051
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4087,16 +4054,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4087
4054
|
|
|
4088
4055
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4089
4056
|
var SDK_GLOBAL = 'SC';
|
|
4090
|
-
var MATCH_URL = /(soundcloud\.com|snd\.sc)
|
|
4057
|
+
var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
4091
4058
|
|
|
4092
|
-
var SoundCloud =
|
|
4093
|
-
/*#__PURE__*/
|
|
4094
|
-
function (_Component) {
|
|
4059
|
+
var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
4095
4060
|
_inherits(SoundCloud, _Component);
|
|
4096
4061
|
|
|
4097
|
-
|
|
4098
|
-
var _getPrototypeOf2;
|
|
4062
|
+
var _super = _createSuper(SoundCloud);
|
|
4099
4063
|
|
|
4064
|
+
function SoundCloud() {
|
|
4100
4065
|
var _this;
|
|
4101
4066
|
|
|
4102
4067
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4105,7 +4070,7 @@ function (_Component) {
|
|
|
4105
4070
|
args[_key] = arguments[_key];
|
|
4106
4071
|
}
|
|
4107
4072
|
|
|
4108
|
-
_this =
|
|
4073
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4109
4074
|
|
|
4110
4075
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4111
4076
|
|
|
@@ -4226,7 +4191,7 @@ function (_Component) {
|
|
|
4226
4191
|
height: '100%',
|
|
4227
4192
|
display: display
|
|
4228
4193
|
};
|
|
4229
|
-
return _react["default"].createElement("iframe", {
|
|
4194
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4230
4195
|
ref: this.ref,
|
|
4231
4196
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4232
4197
|
style: style,
|
|
@@ -4264,7 +4229,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4264
4229
|
});
|
|
4265
4230
|
exports["default"] = exports.Vimeo = void 0;
|
|
4266
4231
|
|
|
4267
|
-
var _react = _interopRequireWildcard(
|
|
4232
|
+
var _react = _interopRequireWildcard(React);
|
|
4268
4233
|
|
|
4269
4234
|
|
|
4270
4235
|
|
|
@@ -4288,12 +4253,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4288
4253
|
|
|
4289
4254
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4290
4255
|
|
|
4291
|
-
function
|
|
4256
|
+
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
4257
|
|
|
4293
|
-
function
|
|
4258
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4294
4259
|
|
|
4295
4260
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4296
4261
|
|
|
4262
|
+
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; } }
|
|
4263
|
+
|
|
4264
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4265
|
+
|
|
4297
4266
|
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
4267
|
|
|
4299
4268
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4305,14 +4274,12 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4305
4274
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4306
4275
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4307
4276
|
|
|
4308
|
-
var Vimeo =
|
|
4309
|
-
/*#__PURE__*/
|
|
4310
|
-
function (_Component) {
|
|
4277
|
+
var Vimeo = /*#__PURE__*/function (_Component) {
|
|
4311
4278
|
_inherits(Vimeo, _Component);
|
|
4312
4279
|
|
|
4313
|
-
|
|
4314
|
-
var _getPrototypeOf2;
|
|
4280
|
+
var _super = _createSuper(Vimeo);
|
|
4315
4281
|
|
|
4282
|
+
function Vimeo() {
|
|
4316
4283
|
var _this;
|
|
4317
4284
|
|
|
4318
4285
|
_classCallCheck(this, Vimeo);
|
|
@@ -4321,7 +4288,7 @@ function (_Component) {
|
|
|
4321
4288
|
args[_key] = arguments[_key];
|
|
4322
4289
|
}
|
|
4323
4290
|
|
|
4324
|
-
_this =
|
|
4291
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4325
4292
|
|
|
4326
4293
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4327
4294
|
|
|
@@ -4478,7 +4445,7 @@ function (_Component) {
|
|
|
4478
4445
|
overflow: 'hidden',
|
|
4479
4446
|
display: display
|
|
4480
4447
|
};
|
|
4481
|
-
return _react["default"].createElement("div", {
|
|
4448
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4482
4449
|
key: this.props.url,
|
|
4483
4450
|
ref: this.ref,
|
|
4484
4451
|
style: style
|
|
@@ -4518,7 +4485,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4518
4485
|
});
|
|
4519
4486
|
exports["default"] = exports.Facebook = void 0;
|
|
4520
4487
|
|
|
4521
|
-
var _react = _interopRequireWildcard(
|
|
4488
|
+
var _react = _interopRequireWildcard(React);
|
|
4522
4489
|
|
|
4523
4490
|
|
|
4524
4491
|
|
|
@@ -4538,12 +4505,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4538
4505
|
|
|
4539
4506
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4540
4507
|
|
|
4541
|
-
function
|
|
4508
|
+
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
4509
|
|
|
4543
|
-
function
|
|
4510
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4544
4511
|
|
|
4545
4512
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4546
4513
|
|
|
4514
|
+
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; } }
|
|
4515
|
+
|
|
4516
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4517
|
+
|
|
4547
4518
|
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
4519
|
|
|
4549
4520
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4556,14 +4527,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4556
4527
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4557
4528
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4558
4529
|
|
|
4559
|
-
var Facebook =
|
|
4560
|
-
/*#__PURE__*/
|
|
4561
|
-
function (_Component) {
|
|
4530
|
+
var Facebook = /*#__PURE__*/function (_Component) {
|
|
4562
4531
|
_inherits(Facebook, _Component);
|
|
4563
4532
|
|
|
4564
|
-
|
|
4565
|
-
var _getPrototypeOf2;
|
|
4533
|
+
var _super = _createSuper(Facebook);
|
|
4566
4534
|
|
|
4535
|
+
function Facebook() {
|
|
4567
4536
|
var _this;
|
|
4568
4537
|
|
|
4569
4538
|
_classCallCheck(this, Facebook);
|
|
@@ -4572,7 +4541,7 @@ function (_Component) {
|
|
|
4572
4541
|
args[_key] = arguments[_key];
|
|
4573
4542
|
}
|
|
4574
4543
|
|
|
4575
|
-
_this =
|
|
4544
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4576
4545
|
|
|
4577
4546
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4578
4547
|
|
|
@@ -4688,7 +4657,7 @@ function (_Component) {
|
|
|
4688
4657
|
width: '100%',
|
|
4689
4658
|
height: '100%'
|
|
4690
4659
|
};
|
|
4691
|
-
return _react["default"].createElement("div", {
|
|
4660
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4692
4661
|
style: style,
|
|
4693
4662
|
id: this.playerID,
|
|
4694
4663
|
className: "fb-video",
|
|
@@ -4728,7 +4697,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4728
4697
|
});
|
|
4729
4698
|
exports["default"] = exports.Streamable = void 0;
|
|
4730
4699
|
|
|
4731
|
-
var _react = _interopRequireWildcard(
|
|
4700
|
+
var _react = _interopRequireWildcard(React);
|
|
4732
4701
|
|
|
4733
4702
|
|
|
4734
4703
|
|
|
@@ -4748,12 +4717,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4748
4717
|
|
|
4749
4718
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4750
4719
|
|
|
4751
|
-
function
|
|
4720
|
+
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
4721
|
|
|
4753
|
-
function
|
|
4722
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4754
4723
|
|
|
4755
4724
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4756
4725
|
|
|
4726
|
+
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; } }
|
|
4727
|
+
|
|
4728
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4729
|
+
|
|
4757
4730
|
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
4731
|
|
|
4759
4732
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4764,14 +4737,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4764
4737
|
var SDK_GLOBAL = 'playerjs';
|
|
4765
4738
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4766
4739
|
|
|
4767
|
-
var Streamable =
|
|
4768
|
-
/*#__PURE__*/
|
|
4769
|
-
function (_Component) {
|
|
4740
|
+
var Streamable = /*#__PURE__*/function (_Component) {
|
|
4770
4741
|
_inherits(Streamable, _Component);
|
|
4771
4742
|
|
|
4772
|
-
|
|
4773
|
-
var _getPrototypeOf2;
|
|
4743
|
+
var _super = _createSuper(Streamable);
|
|
4774
4744
|
|
|
4745
|
+
function Streamable() {
|
|
4775
4746
|
var _this;
|
|
4776
4747
|
|
|
4777
4748
|
_classCallCheck(this, Streamable);
|
|
@@ -4780,7 +4751,7 @@ function (_Component) {
|
|
|
4780
4751
|
args[_key] = arguments[_key];
|
|
4781
4752
|
}
|
|
4782
4753
|
|
|
4783
|
-
_this =
|
|
4754
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4784
4755
|
|
|
4785
4756
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4786
4757
|
|
|
@@ -4900,7 +4871,7 @@ function (_Component) {
|
|
|
4900
4871
|
width: '100%',
|
|
4901
4872
|
height: '100%'
|
|
4902
4873
|
};
|
|
4903
|
-
return _react["default"].createElement("iframe", {
|
|
4874
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4904
4875
|
ref: this.ref,
|
|
4905
4876
|
src: "https://streamable.com/o/".concat(id),
|
|
4906
4877
|
frameBorder: "0",
|
|
@@ -4937,7 +4908,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4937
4908
|
});
|
|
4938
4909
|
exports["default"] = exports.Wistia = void 0;
|
|
4939
4910
|
|
|
4940
|
-
var _react = _interopRequireWildcard(
|
|
4911
|
+
var _react = _interopRequireWildcard(React);
|
|
4941
4912
|
|
|
4942
4913
|
|
|
4943
4914
|
|
|
@@ -4961,12 +4932,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4961
4932
|
|
|
4962
4933
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4963
4934
|
|
|
4964
|
-
function
|
|
4935
|
+
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
4936
|
|
|
4966
|
-
function
|
|
4937
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4967
4938
|
|
|
4968
4939
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4969
4940
|
|
|
4941
|
+
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; } }
|
|
4942
|
+
|
|
4943
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4944
|
+
|
|
4970
4945
|
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
4946
|
|
|
4972
4947
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4977,26 +4952,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4977
4952
|
var SDK_GLOBAL = 'Wistia';
|
|
4978
4953
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4979
4954
|
|
|
4980
|
-
var Wistia =
|
|
4981
|
-
/*#__PURE__*/
|
|
4982
|
-
function (_Component) {
|
|
4955
|
+
var Wistia = /*#__PURE__*/function (_Component) {
|
|
4983
4956
|
_inherits(Wistia, _Component);
|
|
4984
4957
|
|
|
4985
|
-
|
|
4986
|
-
var _getPrototypeOf2;
|
|
4958
|
+
var _super = _createSuper(Wistia);
|
|
4987
4959
|
|
|
4960
|
+
function Wistia() {
|
|
4988
4961
|
var _this;
|
|
4989
4962
|
|
|
4990
4963
|
_classCallCheck(this, Wistia);
|
|
4991
4964
|
|
|
4992
|
-
for (var _len = arguments.length,
|
|
4993
|
-
|
|
4965
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4966
|
+
_args[_key] = arguments[_key];
|
|
4994
4967
|
}
|
|
4995
4968
|
|
|
4996
|
-
_this =
|
|
4969
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
4997
4970
|
|
|
4998
4971
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4999
4972
|
|
|
4973
|
+
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4974
|
+
var _this$props;
|
|
4975
|
+
|
|
4976
|
+
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4977
|
+
});
|
|
4978
|
+
|
|
4979
|
+
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4980
|
+
var _this$props2;
|
|
4981
|
+
|
|
4982
|
+
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4983
|
+
});
|
|
4984
|
+
|
|
4985
|
+
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
4986
|
+
var _this$props3;
|
|
4987
|
+
|
|
4988
|
+
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
4989
|
+
});
|
|
4990
|
+
|
|
4991
|
+
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
4992
|
+
var _this$props4;
|
|
4993
|
+
|
|
4994
|
+
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
4995
|
+
});
|
|
4996
|
+
|
|
5000
4997
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5001
4998
|
_this.callPlayer('mute');
|
|
5002
4999
|
});
|
|
@@ -5018,17 +5015,13 @@ function (_Component) {
|
|
|
5018
5015
|
value: function load(url) {
|
|
5019
5016
|
var _this2 = this;
|
|
5020
5017
|
|
|
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;
|
|
5018
|
+
var _this$props5 = this.props,
|
|
5019
|
+
playing = _this$props5.playing,
|
|
5020
|
+
muted = _this$props5.muted,
|
|
5021
|
+
controls = _this$props5.controls,
|
|
5022
|
+
_onReady = _this$props5.onReady,
|
|
5023
|
+
config = _this$props5.config,
|
|
5024
|
+
onError = _this$props5.onError;
|
|
5032
5025
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5033
5026
|
window._wq = window._wq || [];
|
|
5034
5027
|
|
|
@@ -5045,19 +5038,28 @@ function (_Component) {
|
|
|
5045
5038
|
|
|
5046
5039
|
_this2.unbind();
|
|
5047
5040
|
|
|
5048
|
-
_this2.player.bind('play', onPlay);
|
|
5041
|
+
_this2.player.bind('play', _this2.onPlay);
|
|
5049
5042
|
|
|
5050
|
-
_this2.player.bind('pause', onPause);
|
|
5043
|
+
_this2.player.bind('pause', _this2.onPause);
|
|
5051
5044
|
|
|
5052
|
-
_this2.player.bind('seek', onSeek);
|
|
5045
|
+
_this2.player.bind('seek', _this2.onSeek);
|
|
5053
5046
|
|
|
5054
|
-
_this2.player.bind('end', onEnded);
|
|
5047
|
+
_this2.player.bind('end', _this2.onEnded);
|
|
5055
5048
|
|
|
5056
5049
|
_onReady();
|
|
5057
5050
|
}
|
|
5058
5051
|
});
|
|
5059
5052
|
}, onError);
|
|
5060
5053
|
}
|
|
5054
|
+
}, {
|
|
5055
|
+
key: "unbind",
|
|
5056
|
+
value: function unbind() {
|
|
5057
|
+
this.player.unbind('play', this.onPlay);
|
|
5058
|
+
this.player.unbind('pause', this.onPause);
|
|
5059
|
+
this.player.unbind('seek', this.onSeek);
|
|
5060
|
+
this.player.unbind('end', this.onEnded);
|
|
5061
|
+
} // Proxy methods to prevent listener leaks
|
|
5062
|
+
|
|
5061
5063
|
}, {
|
|
5062
5064
|
key: "play",
|
|
5063
5065
|
value: function play() {
|
|
@@ -5068,19 +5070,6 @@ function (_Component) {
|
|
|
5068
5070
|
value: function pause() {
|
|
5069
5071
|
this.callPlayer('pause');
|
|
5070
5072
|
}
|
|
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
5073
|
}, {
|
|
5085
5074
|
key: "stop",
|
|
5086
5075
|
value: function stop() {
|
|
@@ -5126,7 +5115,7 @@ function (_Component) {
|
|
|
5126
5115
|
width: '100%',
|
|
5127
5116
|
height: '100%'
|
|
5128
5117
|
};
|
|
5129
|
-
return _react["default"].createElement("div", {
|
|
5118
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5130
5119
|
key: id,
|
|
5131
5120
|
className: className,
|
|
5132
5121
|
style: style
|
|
@@ -5162,7 +5151,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5162
5151
|
});
|
|
5163
5152
|
exports["default"] = exports.Twitch = void 0;
|
|
5164
5153
|
|
|
5165
|
-
var _react = _interopRequireWildcard(
|
|
5154
|
+
var _react = _interopRequireWildcard(React);
|
|
5166
5155
|
|
|
5167
5156
|
|
|
5168
5157
|
|
|
@@ -5186,12 +5175,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5186
5175
|
|
|
5187
5176
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5188
5177
|
|
|
5189
|
-
function
|
|
5178
|
+
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
5179
|
|
|
5191
|
-
function
|
|
5180
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5192
5181
|
|
|
5193
5182
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5194
5183
|
|
|
5184
|
+
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; } }
|
|
5185
|
+
|
|
5186
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5187
|
+
|
|
5195
5188
|
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
5189
|
|
|
5197
5190
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5204,14 +5197,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5204
5197
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5205
5198
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5206
5199
|
|
|
5207
|
-
var Twitch =
|
|
5208
|
-
/*#__PURE__*/
|
|
5209
|
-
function (_Component) {
|
|
5200
|
+
var Twitch = /*#__PURE__*/function (_Component) {
|
|
5210
5201
|
_inherits(Twitch, _Component);
|
|
5211
5202
|
|
|
5212
|
-
|
|
5213
|
-
var _getPrototypeOf2;
|
|
5203
|
+
var _super = _createSuper(Twitch);
|
|
5214
5204
|
|
|
5205
|
+
function Twitch() {
|
|
5215
5206
|
var _this;
|
|
5216
5207
|
|
|
5217
5208
|
_classCallCheck(this, Twitch);
|
|
@@ -5220,7 +5211,7 @@ function (_Component) {
|
|
|
5220
5211
|
args[_key] = arguments[_key];
|
|
5221
5212
|
}
|
|
5222
5213
|
|
|
5223
|
-
_this =
|
|
5214
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5224
5215
|
|
|
5225
5216
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5226
5217
|
|
|
@@ -5341,7 +5332,7 @@ function (_Component) {
|
|
|
5341
5332
|
width: '100%',
|
|
5342
5333
|
height: '100%'
|
|
5343
5334
|
};
|
|
5344
|
-
return _react["default"].createElement("div", {
|
|
5335
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5345
5336
|
style: style,
|
|
5346
5337
|
id: this.playerID
|
|
5347
5338
|
});
|
|
@@ -5376,7 +5367,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5376
5367
|
});
|
|
5377
5368
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5378
5369
|
|
|
5379
|
-
var _react = _interopRequireWildcard(
|
|
5370
|
+
var _react = _interopRequireWildcard(React);
|
|
5380
5371
|
|
|
5381
5372
|
|
|
5382
5373
|
|
|
@@ -5394,11 +5385,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5394
5385
|
|
|
5395
5386
|
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
5387
|
|
|
5397
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5388
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5398
5389
|
|
|
5399
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5390
|
+
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."); }
|
|
5400
5391
|
|
|
5401
|
-
function
|
|
5392
|
+
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); }
|
|
5393
|
+
|
|
5394
|
+
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; }
|
|
5395
|
+
|
|
5396
|
+
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
5397
|
|
|
5403
5398
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5404
5399
|
|
|
@@ -5408,12 +5403,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5408
5403
|
|
|
5409
5404
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5410
5405
|
|
|
5411
|
-
function
|
|
5406
|
+
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
5407
|
|
|
5413
|
-
function
|
|
5408
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5414
5409
|
|
|
5415
5410
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5416
5411
|
|
|
5412
|
+
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; } }
|
|
5413
|
+
|
|
5414
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5415
|
+
|
|
5417
5416
|
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
5417
|
|
|
5419
5418
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5425,14 +5424,12 @@ var SDK_GLOBAL = 'DM';
|
|
|
5425
5424
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5426
5425
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5427
5426
|
|
|
5428
|
-
var DailyMotion =
|
|
5429
|
-
/*#__PURE__*/
|
|
5430
|
-
function (_Component) {
|
|
5427
|
+
var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
5431
5428
|
_inherits(DailyMotion, _Component);
|
|
5432
5429
|
|
|
5433
|
-
|
|
5434
|
-
var _getPrototypeOf2;
|
|
5430
|
+
var _super = _createSuper(DailyMotion);
|
|
5435
5431
|
|
|
5432
|
+
function DailyMotion() {
|
|
5436
5433
|
var _this;
|
|
5437
5434
|
|
|
5438
5435
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5441,7 +5438,7 @@ function (_Component) {
|
|
|
5441
5438
|
args[_key] = arguments[_key];
|
|
5442
5439
|
}
|
|
5443
5440
|
|
|
5444
|
-
_this =
|
|
5441
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5445
5442
|
|
|
5446
5443
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5447
5444
|
|
|
@@ -5570,9 +5567,9 @@ function (_Component) {
|
|
|
5570
5567
|
height: '100%',
|
|
5571
5568
|
display: display
|
|
5572
5569
|
};
|
|
5573
|
-
return _react["default"].createElement("div", {
|
|
5570
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5574
5571
|
style: style
|
|
5575
|
-
}, _react["default"].createElement("div", {
|
|
5572
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
5576
5573
|
ref: this.ref
|
|
5577
5574
|
}));
|
|
5578
5575
|
}
|
|
@@ -5606,7 +5603,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5606
5603
|
});
|
|
5607
5604
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5608
5605
|
|
|
5609
|
-
var _react = _interopRequireWildcard(
|
|
5606
|
+
var _react = _interopRequireWildcard(React);
|
|
5610
5607
|
|
|
5611
5608
|
|
|
5612
5609
|
|
|
@@ -5630,12 +5627,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5630
5627
|
|
|
5631
5628
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5632
5629
|
|
|
5633
|
-
function
|
|
5630
|
+
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
5631
|
|
|
5635
|
-
function
|
|
5632
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5636
5633
|
|
|
5637
5634
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5638
5635
|
|
|
5636
|
+
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; } }
|
|
5637
|
+
|
|
5638
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5639
|
+
|
|
5639
5640
|
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
5641
|
|
|
5641
5642
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5646,14 +5647,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5646
5647
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5647
5648
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5648
5649
|
|
|
5649
|
-
var Mixcloud =
|
|
5650
|
-
/*#__PURE__*/
|
|
5651
|
-
function (_Component) {
|
|
5650
|
+
var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
5652
5651
|
_inherits(Mixcloud, _Component);
|
|
5653
5652
|
|
|
5654
|
-
|
|
5655
|
-
var _getPrototypeOf2;
|
|
5653
|
+
var _super = _createSuper(Mixcloud);
|
|
5656
5654
|
|
|
5655
|
+
function Mixcloud() {
|
|
5657
5656
|
var _this;
|
|
5658
5657
|
|
|
5659
5658
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5662,7 +5661,7 @@ function (_Component) {
|
|
|
5662
5661
|
args[_key] = arguments[_key];
|
|
5663
5662
|
}
|
|
5664
5663
|
|
|
5665
|
-
_this =
|
|
5664
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5666
5665
|
|
|
5667
5666
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5668
5667
|
|
|
@@ -5765,7 +5764,7 @@ function (_Component) {
|
|
|
5765
5764
|
})); // We have to give the iframe a key here to prevent a
|
|
5766
5765
|
// weird dialog appearing when loading a new track
|
|
5767
5766
|
|
|
5768
|
-
return _react["default"].createElement("iframe", {
|
|
5767
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
5769
5768
|
key: id,
|
|
5770
5769
|
ref: this.ref,
|
|
5771
5770
|
style: style,
|
|
@@ -5803,7 +5802,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5803
5802
|
});
|
|
5804
5803
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5805
5804
|
|
|
5806
|
-
var _react = _interopRequireWildcard(
|
|
5805
|
+
var _react = _interopRequireWildcard(React);
|
|
5807
5806
|
|
|
5808
5807
|
|
|
5809
5808
|
|
|
@@ -5825,23 +5824,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5825
5824
|
|
|
5826
5825
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5827
5826
|
|
|
5828
|
-
function
|
|
5827
|
+
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
5828
|
|
|
5830
|
-
function
|
|
5829
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5831
5830
|
|
|
5832
5831
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5833
5832
|
|
|
5833
|
+
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; } }
|
|
5834
|
+
|
|
5835
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5836
|
+
|
|
5834
5837
|
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
5838
|
|
|
5836
5839
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5837
5840
|
|
|
5838
5841
|
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
5842
|
|
|
5843
|
+
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; } } }; }
|
|
5844
|
+
|
|
5845
|
+
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); }
|
|
5846
|
+
|
|
5847
|
+
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; }
|
|
5848
|
+
|
|
5840
5849
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5841
5850
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5842
5851
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5843
5852
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5844
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5853
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
|
|
5845
5854
|
var HLS_GLOBAL = 'Hls';
|
|
5846
5855
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5847
5856
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5850,12 +5859,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5850
5859
|
|
|
5851
5860
|
function canPlay(url) {
|
|
5852
5861
|
if (url instanceof Array) {
|
|
5853
|
-
var
|
|
5854
|
-
|
|
5855
|
-
var _iteratorError = undefined;
|
|
5862
|
+
var _iterator = _createForOfIteratorHelper(url),
|
|
5863
|
+
_step;
|
|
5856
5864
|
|
|
5857
5865
|
try {
|
|
5858
|
-
for (
|
|
5866
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5859
5867
|
var item = _step.value;
|
|
5860
5868
|
|
|
5861
5869
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5867,18 +5875,9 @@ function canPlay(url) {
|
|
|
5867
5875
|
}
|
|
5868
5876
|
}
|
|
5869
5877
|
} catch (err) {
|
|
5870
|
-
|
|
5871
|
-
_iteratorError = err;
|
|
5878
|
+
_iterator.e(err);
|
|
5872
5879
|
} finally {
|
|
5873
|
-
|
|
5874
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5875
|
-
_iterator["return"]();
|
|
5876
|
-
}
|
|
5877
|
-
} finally {
|
|
5878
|
-
if (_didIteratorError) {
|
|
5879
|
-
throw _iteratorError;
|
|
5880
|
-
}
|
|
5881
|
-
}
|
|
5880
|
+
_iterator.f();
|
|
5882
5881
|
}
|
|
5883
5882
|
|
|
5884
5883
|
return false;
|
|
@@ -5902,14 +5901,12 @@ function canEnablePIP(url) {
|
|
|
5902
5901
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5903
5902
|
}
|
|
5904
5903
|
|
|
5905
|
-
var FilePlayer =
|
|
5906
|
-
/*#__PURE__*/
|
|
5907
|
-
function (_Component) {
|
|
5904
|
+
var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
5908
5905
|
_inherits(FilePlayer, _Component);
|
|
5909
5906
|
|
|
5910
|
-
|
|
5911
|
-
var _getPrototypeOf2;
|
|
5907
|
+
var _super = _createSuper(FilePlayer);
|
|
5912
5908
|
|
|
5909
|
+
function FilePlayer() {
|
|
5913
5910
|
var _this;
|
|
5914
5911
|
|
|
5915
5912
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5918,7 +5915,7 @@ function (_Component) {
|
|
|
5918
5915
|
_args[_key] = arguments[_key];
|
|
5919
5916
|
}
|
|
5920
5917
|
|
|
5921
|
-
_this =
|
|
5918
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5922
5919
|
|
|
5923
5920
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5924
5921
|
var _this$props;
|
|
@@ -6005,19 +6002,19 @@ function (_Component) {
|
|
|
6005
6002
|
|
|
6006
6003
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6007
6004
|
if (typeof source === 'string') {
|
|
6008
|
-
return _react["default"].createElement("source", {
|
|
6005
|
+
return /*#__PURE__*/_react["default"].createElement("source", {
|
|
6009
6006
|
key: index,
|
|
6010
6007
|
src: source
|
|
6011
6008
|
});
|
|
6012
6009
|
}
|
|
6013
6010
|
|
|
6014
|
-
return _react["default"].createElement("source", _extends({
|
|
6011
|
+
return /*#__PURE__*/_react["default"].createElement("source", _extends({
|
|
6015
6012
|
key: index
|
|
6016
6013
|
}, source));
|
|
6017
6014
|
});
|
|
6018
6015
|
|
|
6019
6016
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6020
|
-
return _react["default"].createElement("track", _extends({
|
|
6017
|
+
return /*#__PURE__*/_react["default"].createElement("track", _extends({
|
|
6021
6018
|
key: index
|
|
6022
6019
|
}, track));
|
|
6023
6020
|
});
|
|
@@ -6055,6 +6052,10 @@ function (_Component) {
|
|
|
6055
6052
|
key: "componentWillUnmount",
|
|
6056
6053
|
value: function componentWillUnmount() {
|
|
6057
6054
|
this.removeListeners(this.player);
|
|
6055
|
+
|
|
6056
|
+
if (this.hls) {
|
|
6057
|
+
this.hls.destroy();
|
|
6058
|
+
}
|
|
6058
6059
|
}
|
|
6059
6060
|
}, {
|
|
6060
6061
|
key: "addListeners",
|
|
@@ -6185,10 +6186,6 @@ function (_Component) {
|
|
|
6185
6186
|
value: function stop() {
|
|
6186
6187
|
this.player.removeAttribute('src');
|
|
6187
6188
|
|
|
6188
|
-
if (this.hls) {
|
|
6189
|
-
this.hls.destroy();
|
|
6190
|
-
}
|
|
6191
|
-
|
|
6192
6189
|
if (this.dash) {
|
|
6193
6190
|
this.dash.reset();
|
|
6194
6191
|
}
|
|
@@ -6300,7 +6297,7 @@ function (_Component) {
|
|
|
6300
6297
|
width: width === 'auto' ? width : '100%',
|
|
6301
6298
|
height: height === 'auto' ? height : '100%'
|
|
6302
6299
|
};
|
|
6303
|
-
return _react["default"].createElement(Element, _extends({
|
|
6300
|
+
return /*#__PURE__*/_react["default"].createElement(Element, _extends({
|
|
6304
6301
|
ref: this.ref,
|
|
6305
6302
|
src: this.getSource(url),
|
|
6306
6303
|
style: style,
|
|
@@ -6372,7 +6369,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6372
6369
|
});
|
|
6373
6370
|
exports["default"] = void 0;
|
|
6374
6371
|
|
|
6375
|
-
var _react = _interopRequireWildcard(
|
|
6372
|
+
var _react = _interopRequireWildcard(React);
|
|
6376
6373
|
|
|
6377
6374
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6378
6375
|
|
|
@@ -6390,12 +6387,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6390
6387
|
|
|
6391
6388
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6392
6389
|
|
|
6393
|
-
function
|
|
6390
|
+
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
6391
|
|
|
6395
|
-
function
|
|
6392
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6396
6393
|
|
|
6397
6394
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6398
6395
|
|
|
6396
|
+
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; } }
|
|
6397
|
+
|
|
6398
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6399
|
+
|
|
6399
6400
|
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
6401
|
|
|
6401
6402
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6404,14 +6405,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6404
6405
|
|
|
6405
6406
|
var ICON_SIZE = '64px';
|
|
6406
6407
|
|
|
6407
|
-
var Preview =
|
|
6408
|
-
/*#__PURE__*/
|
|
6409
|
-
function (_Component) {
|
|
6408
|
+
var Preview = /*#__PURE__*/function (_Component) {
|
|
6410
6409
|
_inherits(Preview, _Component);
|
|
6411
6410
|
|
|
6412
|
-
|
|
6413
|
-
var _getPrototypeOf2;
|
|
6411
|
+
var _super = _createSuper(Preview);
|
|
6414
6412
|
|
|
6413
|
+
function Preview() {
|
|
6415
6414
|
var _this;
|
|
6416
6415
|
|
|
6417
6416
|
_classCallCheck(this, Preview);
|
|
@@ -6420,7 +6419,7 @@ function (_Component) {
|
|
|
6420
6419
|
args[_key] = arguments[_key];
|
|
6421
6420
|
}
|
|
6422
6421
|
|
|
6423
|
-
_this =
|
|
6422
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6424
6423
|
|
|
6425
6424
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6426
6425
|
|
|
@@ -6518,15 +6517,15 @@ function (_Component) {
|
|
|
6518
6517
|
}
|
|
6519
6518
|
};
|
|
6520
6519
|
|
|
6521
|
-
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6520
|
+
var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
|
|
6522
6521
|
style: styles.shadow,
|
|
6523
6522
|
className: "react-player__shadow"
|
|
6524
|
-
}, _react["default"].createElement("div", {
|
|
6523
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
6525
6524
|
style: styles.playIcon,
|
|
6526
6525
|
className: "react-player__play-icon"
|
|
6527
6526
|
}));
|
|
6528
6527
|
|
|
6529
|
-
return _react["default"].createElement("div", {
|
|
6528
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
6530
6529
|
style: styles.preview,
|
|
6531
6530
|
className: "react-player__preview",
|
|
6532
6531
|
onClick: onClick
|
|
@@ -6549,7 +6548,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6549
6548
|
});
|
|
6550
6549
|
exports["default"] = renderPreloadPlayers;
|
|
6551
6550
|
|
|
6552
|
-
var _react = _interopRequireDefault(
|
|
6551
|
+
var _react = _interopRequireDefault(React);
|
|
6553
6552
|
|
|
6554
6553
|
var _Player = _interopRequireDefault(Player_1);
|
|
6555
6554
|
|
|
@@ -6563,6 +6562,12 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6563
6562
|
|
|
6564
6563
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6565
6564
|
|
|
6565
|
+
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; } } }; }
|
|
6566
|
+
|
|
6567
|
+
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); }
|
|
6568
|
+
|
|
6569
|
+
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; }
|
|
6570
|
+
|
|
6566
6571
|
var PRELOAD_PLAYERS = [{
|
|
6567
6572
|
Player: YouTube_1.YouTube,
|
|
6568
6573
|
configKey: 'youtube',
|
|
@@ -6583,16 +6588,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6583
6588
|
|
|
6584
6589
|
function renderPreloadPlayers(url, controls, config) {
|
|
6585
6590
|
var players = [];
|
|
6586
|
-
|
|
6587
|
-
var
|
|
6588
|
-
|
|
6591
|
+
|
|
6592
|
+
var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
|
|
6593
|
+
_step;
|
|
6589
6594
|
|
|
6590
6595
|
try {
|
|
6591
|
-
for (
|
|
6596
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6592
6597
|
var player = _step.value;
|
|
6593
6598
|
|
|
6594
6599
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6595
|
-
players.push(_react["default"].createElement(_Player["default"], {
|
|
6600
|
+
players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
|
|
6596
6601
|
key: player.Player.displayName,
|
|
6597
6602
|
activePlayer: player.Player,
|
|
6598
6603
|
url: player.url,
|
|
@@ -6604,18 +6609,9 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6604
6609
|
}
|
|
6605
6610
|
}
|
|
6606
6611
|
} catch (err) {
|
|
6607
|
-
|
|
6608
|
-
_iteratorError = err;
|
|
6612
|
+
_iterator.e(err);
|
|
6609
6613
|
} finally {
|
|
6610
|
-
|
|
6611
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6612
|
-
_iterator["return"]();
|
|
6613
|
-
}
|
|
6614
|
-
} finally {
|
|
6615
|
-
if (_didIteratorError) {
|
|
6616
|
-
throw _iteratorError;
|
|
6617
|
-
}
|
|
6618
|
-
}
|
|
6614
|
+
_iterator.f();
|
|
6619
6615
|
}
|
|
6620
6616
|
|
|
6621
6617
|
return players;
|
|
@@ -6691,7 +6687,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6691
6687
|
});
|
|
6692
6688
|
exports["default"] = void 0;
|
|
6693
6689
|
|
|
6694
|
-
var _react = _interopRequireWildcard(
|
|
6690
|
+
var _react = _interopRequireWildcard(React);
|
|
6695
6691
|
|
|
6696
6692
|
|
|
6697
6693
|
|
|
@@ -6739,13 +6735,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6739
6735
|
|
|
6740
6736
|
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
6737
|
|
|
6742
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6738
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6739
|
+
|
|
6740
|
+
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."); }
|
|
6741
|
+
|
|
6742
|
+
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); }
|
|
6743
6743
|
|
|
6744
|
-
function
|
|
6744
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
6745
6745
|
|
|
6746
|
-
function
|
|
6746
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6747
6747
|
|
|
6748
|
-
function
|
|
6748
|
+
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
6749
|
|
|
6750
6750
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6751
6751
|
|
|
@@ -6753,12 +6753,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6753
6753
|
|
|
6754
6754
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6755
6755
|
|
|
6756
|
-
function
|
|
6756
|
+
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
6757
|
|
|
6758
|
-
function
|
|
6758
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6759
6759
|
|
|
6760
6760
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6761
6761
|
|
|
6762
|
+
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; } }
|
|
6763
|
+
|
|
6764
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6765
|
+
|
|
6762
6766
|
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
6767
|
|
|
6764
6768
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6768,14 +6772,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6768
6772
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6769
6773
|
var customPlayers = [];
|
|
6770
6774
|
|
|
6771
|
-
var ReactPlayer =
|
|
6772
|
-
/*#__PURE__*/
|
|
6773
|
-
function (_Component) {
|
|
6775
|
+
var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
6774
6776
|
_inherits(ReactPlayer, _Component);
|
|
6775
6777
|
|
|
6776
|
-
|
|
6777
|
-
var _getPrototypeOf2;
|
|
6778
|
+
var _super = _createSuper(ReactPlayer);
|
|
6778
6779
|
|
|
6780
|
+
function ReactPlayer() {
|
|
6779
6781
|
var _this;
|
|
6780
6782
|
|
|
6781
6783
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6784,7 +6786,7 @@ function (_Component) {
|
|
|
6784
6786
|
args[_key] = arguments[_key];
|
|
6785
6787
|
}
|
|
6786
6788
|
|
|
6787
|
-
_this =
|
|
6789
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6788
6790
|
|
|
6789
6791
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6790
6792
|
|
|
@@ -6895,7 +6897,7 @@ function (_Component) {
|
|
|
6895
6897
|
key: "renderActivePlayer",
|
|
6896
6898
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6897
6899
|
if (!url) return null;
|
|
6898
|
-
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6900
|
+
return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6899
6901
|
key: activePlayer.displayName,
|
|
6900
6902
|
ref: this.activePlayerRef,
|
|
6901
6903
|
config: this.config,
|
|
@@ -6932,14 +6934,14 @@ function (_Component) {
|
|
|
6932
6934
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6933
6935
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6934
6936
|
|
|
6935
|
-
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6937
|
+
var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
|
|
6936
6938
|
url: url,
|
|
6937
6939
|
light: light,
|
|
6938
6940
|
playIcon: playIcon,
|
|
6939
6941
|
onClick: this.handleClickPreview
|
|
6940
6942
|
});
|
|
6941
6943
|
|
|
6942
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
6944
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
6943
6945
|
ref: this.wrapperRef,
|
|
6944
6946
|
style: _objectSpread({}, style, {
|
|
6945
6947
|
width: width,
|
|
@@ -6999,20 +7001,20 @@ var Audio = function Audio(_ref) {
|
|
|
6999
7001
|
var node = _ref.node;
|
|
7000
7002
|
|
|
7001
7003
|
if (node.uploadAudio) {
|
|
7002
|
-
return
|
|
7004
|
+
return React.createElement(
|
|
7003
7005
|
'div',
|
|
7004
7006
|
{ className: 'audio d-block text-center mb-3' },
|
|
7005
|
-
|
|
7007
|
+
React.createElement(
|
|
7006
7008
|
'audio',
|
|
7007
7009
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7008
|
-
|
|
7009
|
-
|
|
7010
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7011
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7010
7012
|
'Your browser does not support the audio element.'
|
|
7011
7013
|
),
|
|
7012
|
-
node.caption &&
|
|
7014
|
+
node.caption && React.createElement(
|
|
7013
7015
|
'p',
|
|
7014
7016
|
{ style: { fontSize: '.9rem' } },
|
|
7015
|
-
|
|
7017
|
+
React.createElement(
|
|
7016
7018
|
'em',
|
|
7017
7019
|
null,
|
|
7018
7020
|
node.caption
|
|
@@ -7022,15 +7024,15 @@ var Audio = function Audio(_ref) {
|
|
|
7022
7024
|
} else if (node.audioFilePth) {
|
|
7023
7025
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7024
7026
|
if (hostname === 'embeds.audioboom.com') {
|
|
7025
|
-
return
|
|
7027
|
+
return React.createElement(
|
|
7026
7028
|
'div',
|
|
7027
7029
|
null,
|
|
7028
|
-
|
|
7030
|
+
React.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7029
7031
|
' ',
|
|
7030
|
-
node.caption &&
|
|
7032
|
+
node.caption && React.createElement(
|
|
7031
7033
|
'p',
|
|
7032
7034
|
{ style: { fontSize: '.9rem' } },
|
|
7033
|
-
|
|
7035
|
+
React.createElement(
|
|
7034
7036
|
'em',
|
|
7035
7037
|
null,
|
|
7036
7038
|
node.caption
|
|
@@ -7038,14 +7040,14 @@ var Audio = function Audio(_ref) {
|
|
|
7038
7040
|
)
|
|
7039
7041
|
);
|
|
7040
7042
|
}
|
|
7041
|
-
return
|
|
7043
|
+
return React.createElement(
|
|
7042
7044
|
'div',
|
|
7043
7045
|
{ className: 'audio' },
|
|
7044
|
-
|
|
7045
|
-
node.caption &&
|
|
7046
|
+
React.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7047
|
+
node.caption && React.createElement(
|
|
7046
7048
|
'p',
|
|
7047
7049
|
{ style: { fontSize: '.9rem' } },
|
|
7048
|
-
|
|
7050
|
+
React.createElement(
|
|
7049
7051
|
'em',
|
|
7050
7052
|
null,
|
|
7051
7053
|
node.caption
|
|
@@ -7063,34 +7065,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7063
7065
|
var profileImage = arguments[6];
|
|
7064
7066
|
|
|
7065
7067
|
if (authorName && authorURL) {
|
|
7066
|
-
return
|
|
7068
|
+
return React.createElement(
|
|
7067
7069
|
'span',
|
|
7068
7070
|
null,
|
|
7069
|
-
|
|
7071
|
+
React.createElement(
|
|
7070
7072
|
'a',
|
|
7071
7073
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7072
7074
|
authorName
|
|
7073
7075
|
),
|
|
7074
|
-
|
|
7076
|
+
React.createElement(
|
|
7075
7077
|
Card,
|
|
7076
7078
|
{ className: 'author-details-card-' + index },
|
|
7077
|
-
|
|
7079
|
+
React.createElement(
|
|
7078
7080
|
Row,
|
|
7079
7081
|
null,
|
|
7080
|
-
profileImage &&
|
|
7082
|
+
profileImage && React.createElement(
|
|
7081
7083
|
Col,
|
|
7082
7084
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7083
|
-
|
|
7085
|
+
React.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7084
7086
|
),
|
|
7085
|
-
|
|
7087
|
+
React.createElement(
|
|
7086
7088
|
Col,
|
|
7087
7089
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7088
|
-
|
|
7090
|
+
React.createElement(
|
|
7089
7091
|
'div',
|
|
7090
7092
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7091
7093
|
authorName
|
|
7092
7094
|
),
|
|
7093
|
-
|
|
7095
|
+
React.createElement(
|
|
7094
7096
|
'p',
|
|
7095
7097
|
null,
|
|
7096
7098
|
biography
|
|
@@ -7098,7 +7100,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7098
7100
|
)
|
|
7099
7101
|
)
|
|
7100
7102
|
),
|
|
7101
|
-
|
|
7103
|
+
React.createElement(
|
|
7102
7104
|
'style',
|
|
7103
7105
|
{ jsx: 'true' },
|
|
7104
7106
|
'\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 +7108,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7106
7108
|
length !== index + 1 && ' , '
|
|
7107
7109
|
);
|
|
7108
7110
|
} else if (authorName) {
|
|
7109
|
-
return
|
|
7111
|
+
return React.createElement(
|
|
7110
7112
|
'span',
|
|
7111
7113
|
{ key: index },
|
|
7112
7114
|
authorName,
|
|
@@ -7378,44 +7380,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7378
7380
|
}
|
|
7379
7381
|
};
|
|
7380
7382
|
|
|
7381
|
-
return
|
|
7383
|
+
return React.createElement(
|
|
7382
7384
|
'div',
|
|
7383
7385
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7384
|
-
|
|
7386
|
+
React.createElement(
|
|
7385
7387
|
'div',
|
|
7386
7388
|
{ className: 'mt-2 mb-5' },
|
|
7387
|
-
series &&
|
|
7389
|
+
series && React.createElement(
|
|
7388
7390
|
'div',
|
|
7389
7391
|
{ style: { fontSize: '0.9rem' } },
|
|
7390
7392
|
article.title,
|
|
7391
7393
|
' - Episode ',
|
|
7392
7394
|
series
|
|
7393
7395
|
),
|
|
7394
|
-
Videos[series - 1] &&
|
|
7396
|
+
Videos[series - 1] && React.createElement(
|
|
7395
7397
|
'h1',
|
|
7396
7398
|
{ className: 'mb-3' },
|
|
7397
7399
|
Videos[series - 1].title
|
|
7398
7400
|
),
|
|
7399
|
-
|
|
7401
|
+
React.createElement(
|
|
7400
7402
|
'div',
|
|
7401
7403
|
null,
|
|
7402
7404
|
moment(article.published).format('LL')
|
|
7403
7405
|
),
|
|
7404
|
-
|
|
7406
|
+
React.createElement(
|
|
7405
7407
|
'div',
|
|
7406
7408
|
{ className: 'mb-3' },
|
|
7407
7409
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7408
|
-
return
|
|
7410
|
+
return React.createElement(
|
|
7409
7411
|
'span',
|
|
7410
7412
|
{ key: index },
|
|
7411
7413
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
7412
7414
|
);
|
|
7413
7415
|
})
|
|
7414
7416
|
),
|
|
7415
|
-
|
|
7417
|
+
React.createElement(
|
|
7416
7418
|
'p',
|
|
7417
7419
|
null,
|
|
7418
|
-
|
|
7420
|
+
React.createElement(SocialShare, {
|
|
7419
7421
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7420
7422
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7421
7423
|
shareVia: meta.shareVia,
|
|
@@ -7430,20 +7432,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7430
7432
|
hideFacebook: meta.hideFBShare
|
|
7431
7433
|
})
|
|
7432
7434
|
),
|
|
7433
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7435
|
+
Videos[series - 1] && Videos[series - 1].intro && React.createElement(
|
|
7434
7436
|
'p',
|
|
7435
7437
|
{ className: 'mb-3' },
|
|
7436
|
-
|
|
7438
|
+
React.createElement(
|
|
7437
7439
|
'em',
|
|
7438
7440
|
null,
|
|
7439
7441
|
Videos[series - 1].intro
|
|
7440
7442
|
)
|
|
7441
7443
|
)
|
|
7442
7444
|
),
|
|
7443
|
-
|
|
7445
|
+
React.createElement(
|
|
7444
7446
|
'div',
|
|
7445
7447
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7446
|
-
vidUrl && vidType == 'youtube' &&
|
|
7448
|
+
vidUrl && vidType == 'youtube' && React.createElement(YouTube, {
|
|
7447
7449
|
className: 'fluid-iframe',
|
|
7448
7450
|
videoId: getYoutubeId(vidUrl),
|
|
7449
7451
|
opts: opts,
|
|
@@ -7454,10 +7456,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7454
7456
|
return handleOnEnd(e);
|
|
7455
7457
|
}
|
|
7456
7458
|
}),
|
|
7457
|
-
vidUrl && vidType == 'mp4' &&
|
|
7458
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7459
|
-
|
|
7460
|
-
series &&
|
|
7459
|
+
vidUrl && vidType == 'mp4' && React.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7460
|
+
vidUrl && vidType == 'brightcove' && React.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7461
|
+
React.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7462
|
+
series && React.createElement(
|
|
7461
7463
|
'div',
|
|
7462
7464
|
{
|
|
7463
7465
|
className: 'vid-series',
|
|
@@ -7467,10 +7469,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7467
7469
|
maxHeight: '100%',
|
|
7468
7470
|
paddingBottom: '0'
|
|
7469
7471
|
} },
|
|
7470
|
-
|
|
7472
|
+
React.createElement(
|
|
7471
7473
|
'p',
|
|
7472
7474
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7473
|
-
|
|
7475
|
+
React.createElement(
|
|
7474
7476
|
'b',
|
|
7475
7477
|
{ style: { fontSize: '1.25em' } },
|
|
7476
7478
|
'Now Playing:'
|
|
@@ -7478,16 +7480,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7478
7480
|
' ',
|
|
7479
7481
|
seriesData[series ? series - 1 : 0].title
|
|
7480
7482
|
),
|
|
7481
|
-
vidUrl &&
|
|
7483
|
+
vidUrl && React.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7482
7484
|
)
|
|
7483
7485
|
),
|
|
7484
|
-
|
|
7485
|
-
|
|
7486
|
+
React.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7487
|
+
React.createElement(
|
|
7486
7488
|
'div',
|
|
7487
7489
|
{ className: 'vid-text' },
|
|
7488
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
7490
|
+
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
7491
|
),
|
|
7490
|
-
|
|
7492
|
+
React.createElement(
|
|
7491
7493
|
'style',
|
|
7492
7494
|
{ jsx: 'true' },
|
|
7493
7495
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7540,67 +7542,67 @@ var Poll = function Poll(_ref) {
|
|
|
7540
7542
|
return acc;
|
|
7541
7543
|
}
|
|
7542
7544
|
}, 0);
|
|
7543
|
-
return
|
|
7544
|
-
|
|
7545
|
+
return React.createElement(
|
|
7546
|
+
React.Fragment,
|
|
7545
7547
|
null,
|
|
7546
|
-
question &&
|
|
7548
|
+
question && React.createElement(
|
|
7547
7549
|
'p',
|
|
7548
7550
|
{ className: 'font-weight-bold' },
|
|
7549
7551
|
question
|
|
7550
7552
|
),
|
|
7551
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7553
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7552
7554
|
'form',
|
|
7553
7555
|
{ onSubmit: function onSubmit(e) {
|
|
7554
7556
|
return onSubmitPoll(e);
|
|
7555
7557
|
} },
|
|
7556
7558
|
choices && choices.map(function (choice) {
|
|
7557
|
-
return
|
|
7559
|
+
return React.createElement(
|
|
7558
7560
|
'div',
|
|
7559
7561
|
{ key: choice._key },
|
|
7560
|
-
|
|
7562
|
+
React.createElement(
|
|
7561
7563
|
'label',
|
|
7562
7564
|
{ className: 'pl-2' },
|
|
7563
|
-
|
|
7565
|
+
React.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7564
7566
|
return setSelectedChoice(e.target.value);
|
|
7565
7567
|
} }),
|
|
7566
7568
|
' ' + choice.choiceText
|
|
7567
7569
|
)
|
|
7568
7570
|
);
|
|
7569
7571
|
}),
|
|
7570
|
-
|
|
7572
|
+
React.createElement(
|
|
7571
7573
|
Button,
|
|
7572
7574
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7573
7575
|
'Vote'
|
|
7574
7576
|
)
|
|
7575
7577
|
),
|
|
7576
|
-
|
|
7578
|
+
React.createElement(
|
|
7577
7579
|
'div',
|
|
7578
7580
|
{ className: 'progress-container' },
|
|
7579
7581
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7580
7582
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7581
|
-
return
|
|
7583
|
+
return React.createElement(
|
|
7582
7584
|
'div',
|
|
7583
7585
|
{ key: choice._key, className: 'mb-3' },
|
|
7584
|
-
|
|
7586
|
+
React.createElement(
|
|
7585
7587
|
'div',
|
|
7586
7588
|
{ className: 'correct-answer' },
|
|
7587
|
-
|
|
7589
|
+
React.createElement(
|
|
7588
7590
|
'div',
|
|
7589
7591
|
null,
|
|
7590
7592
|
choice.choiceText
|
|
7591
7593
|
),
|
|
7592
|
-
choice.choiceAnswer === true &&
|
|
7594
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7593
7595
|
'div',
|
|
7594
7596
|
null,
|
|
7595
|
-
|
|
7597
|
+
React.createElement(
|
|
7596
7598
|
'span',
|
|
7597
7599
|
{ style: { color: 'limegreen' } },
|
|
7598
7600
|
'Correct!'
|
|
7599
7601
|
)
|
|
7600
7602
|
)
|
|
7601
7603
|
),
|
|
7602
|
-
|
|
7603
|
-
|
|
7604
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7605
|
+
React.createElement(
|
|
7604
7606
|
'span',
|
|
7605
7607
|
{ className: 'float-right' },
|
|
7606
7608
|
percentage,
|
|
@@ -7611,14 +7613,14 @@ var Poll = function Poll(_ref) {
|
|
|
7611
7613
|
);
|
|
7612
7614
|
})
|
|
7613
7615
|
),
|
|
7614
|
-
showAnswer &&
|
|
7616
|
+
showAnswer && React.createElement(
|
|
7615
7617
|
'h4',
|
|
7616
7618
|
{ className: 'text-center small p-3' },
|
|
7617
7619
|
'Total Votes: ',
|
|
7618
7620
|
choicesTotalCount
|
|
7619
7621
|
),
|
|
7620
|
-
showAnswer && response &&
|
|
7621
|
-
|
|
7622
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7623
|
+
React.createElement(
|
|
7622
7624
|
'style',
|
|
7623
7625
|
{ jsx: 'true' },
|
|
7624
7626
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7717,67 +7719,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7717
7719
|
return acc;
|
|
7718
7720
|
}
|
|
7719
7721
|
}, 0);
|
|
7720
|
-
return
|
|
7721
|
-
|
|
7722
|
+
return React.createElement(
|
|
7723
|
+
React.Fragment,
|
|
7722
7724
|
null,
|
|
7723
|
-
question &&
|
|
7725
|
+
question && React.createElement(
|
|
7724
7726
|
'p',
|
|
7725
7727
|
{ className: 'font-weight-bold' },
|
|
7726
7728
|
question
|
|
7727
7729
|
),
|
|
7728
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7730
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7729
7731
|
'form',
|
|
7730
7732
|
{ onSubmit: function onSubmit(e) {
|
|
7731
7733
|
return onSubmitPoll(e);
|
|
7732
7734
|
} },
|
|
7733
7735
|
choices && choices.map(function (choice) {
|
|
7734
|
-
return
|
|
7736
|
+
return React.createElement(
|
|
7735
7737
|
'div',
|
|
7736
7738
|
{ key: choice._key },
|
|
7737
|
-
|
|
7739
|
+
React.createElement(
|
|
7738
7740
|
'label',
|
|
7739
7741
|
{ className: 'pl-2' },
|
|
7740
|
-
|
|
7742
|
+
React.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7741
7743
|
return setSelectedChoice(e.target.value);
|
|
7742
7744
|
} }),
|
|
7743
7745
|
' ' + choice.choiceText
|
|
7744
7746
|
)
|
|
7745
7747
|
);
|
|
7746
7748
|
}),
|
|
7747
|
-
|
|
7749
|
+
React.createElement(
|
|
7748
7750
|
Button,
|
|
7749
7751
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7750
7752
|
'Vote'
|
|
7751
7753
|
)
|
|
7752
7754
|
),
|
|
7753
|
-
|
|
7755
|
+
React.createElement(
|
|
7754
7756
|
'div',
|
|
7755
7757
|
{ className: 'progress-container' },
|
|
7756
7758
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7757
7759
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7758
|
-
return
|
|
7760
|
+
return React.createElement(
|
|
7759
7761
|
'div',
|
|
7760
7762
|
{ key: choice._key, className: 'mb-3' },
|
|
7761
|
-
|
|
7763
|
+
React.createElement(
|
|
7762
7764
|
'div',
|
|
7763
7765
|
{ className: 'correct-answer' },
|
|
7764
|
-
|
|
7766
|
+
React.createElement(
|
|
7765
7767
|
'div',
|
|
7766
7768
|
null,
|
|
7767
7769
|
choice.choiceText
|
|
7768
7770
|
),
|
|
7769
|
-
choice.choiceAnswer === true &&
|
|
7771
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7770
7772
|
'div',
|
|
7771
7773
|
null,
|
|
7772
|
-
|
|
7774
|
+
React.createElement(
|
|
7773
7775
|
'span',
|
|
7774
7776
|
{ style: { color: 'limegreen' } },
|
|
7775
7777
|
'Correct!'
|
|
7776
7778
|
)
|
|
7777
7779
|
)
|
|
7778
7780
|
),
|
|
7779
|
-
|
|
7780
|
-
|
|
7781
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7782
|
+
React.createElement(
|
|
7781
7783
|
'span',
|
|
7782
7784
|
{ className: 'float-right' },
|
|
7783
7785
|
percentage,
|
|
@@ -7788,14 +7790,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7788
7790
|
);
|
|
7789
7791
|
})
|
|
7790
7792
|
),
|
|
7791
|
-
showAnswer &&
|
|
7793
|
+
showAnswer && React.createElement(
|
|
7792
7794
|
'h4',
|
|
7793
7795
|
{ className: 'text-center small p-3' },
|
|
7794
7796
|
'Total Votes: ',
|
|
7795
7797
|
choicesTotalCount
|
|
7796
7798
|
),
|
|
7797
|
-
showAnswer && response &&
|
|
7798
|
-
|
|
7799
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7800
|
+
React.createElement(
|
|
7799
7801
|
'style',
|
|
7800
7802
|
{ jsx: 'true' },
|
|
7801
7803
|
'\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 +7805,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7803
7805
|
);
|
|
7804
7806
|
};
|
|
7805
7807
|
|
|
7806
|
-
var numberOfPaginations =
|
|
7808
|
+
var numberOfPaginations = main_39 ? 4 : 10;
|
|
7807
7809
|
|
|
7808
7810
|
var Quiz = function Quiz(_ref) {
|
|
7809
7811
|
var quizzes = _ref.quizzes,
|
|
@@ -7921,34 +7923,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
7921
7923
|
};
|
|
7922
7924
|
|
|
7923
7925
|
var renderPagination = function renderPagination() {
|
|
7924
|
-
return
|
|
7925
|
-
Pagination
|
|
7926
|
-
{ className: 'p-0 m-0', size:
|
|
7927
|
-
|
|
7926
|
+
return React.createElement(
|
|
7927
|
+
Pagination,
|
|
7928
|
+
{ className: 'p-0 m-0', size: main_39 && 'sm' },
|
|
7929
|
+
React.createElement(Pagination.First, { onClick: function onClick() {
|
|
7928
7930
|
return changePage('first');
|
|
7929
7931
|
}, disabled: currentPage === 1 }),
|
|
7930
|
-
|
|
7932
|
+
React.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7931
7933
|
return changePage('prev');
|
|
7932
7934
|
}, disabled: currentPage === 1 }),
|
|
7933
|
-
|
|
7935
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7934
7936
|
return renderNewPages('prev');
|
|
7935
7937
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7936
7938
|
pages.map(function (page) {
|
|
7937
|
-
return
|
|
7938
|
-
Pagination
|
|
7939
|
+
return React.createElement(
|
|
7940
|
+
Pagination.Item,
|
|
7939
7941
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7940
7942
|
return changePage(page);
|
|
7941
7943
|
} },
|
|
7942
7944
|
page
|
|
7943
7945
|
);
|
|
7944
7946
|
}),
|
|
7945
|
-
|
|
7947
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7946
7948
|
return renderNewPages('next');
|
|
7947
7949
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7948
|
-
|
|
7950
|
+
React.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7949
7951
|
return changePage('next');
|
|
7950
7952
|
}, disabled: currentPage === pageCount }),
|
|
7951
|
-
|
|
7953
|
+
React.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7952
7954
|
return changePage('last');
|
|
7953
7955
|
}, disabled: currentPage === pageCount })
|
|
7954
7956
|
);
|
|
@@ -8031,51 +8033,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8031
8033
|
}
|
|
8032
8034
|
};
|
|
8033
8035
|
|
|
8034
|
-
return
|
|
8035
|
-
|
|
8036
|
+
return React.createElement(
|
|
8037
|
+
React.Fragment,
|
|
8036
8038
|
null,
|
|
8037
|
-
quizzes[currentPage - 1] &&
|
|
8038
|
-
|
|
8039
|
+
quizzes[currentPage - 1] && React.createElement(
|
|
8040
|
+
React.Fragment,
|
|
8039
8041
|
null,
|
|
8040
|
-
|
|
8041
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 &&
|
|
8042
|
+
React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8043
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React.createElement(
|
|
8042
8044
|
'form',
|
|
8043
8045
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8044
8046
|
return e.preventDefault();
|
|
8045
8047
|
} },
|
|
8046
8048
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8047
|
-
return
|
|
8049
|
+
return React.createElement(
|
|
8048
8050
|
'div',
|
|
8049
8051
|
{ key: answer._key },
|
|
8050
|
-
|
|
8052
|
+
React.createElement(
|
|
8051
8053
|
'label',
|
|
8052
8054
|
{ className: 'pl-2' },
|
|
8053
|
-
quizzes[currentPage - 1].multiAnswer ?
|
|
8055
|
+
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
8056
|
' ' + answer.answerText
|
|
8055
8057
|
)
|
|
8056
8058
|
);
|
|
8057
8059
|
})
|
|
8058
8060
|
)
|
|
8059
8061
|
),
|
|
8060
|
-
!showAnswer &&
|
|
8062
|
+
!showAnswer && React.createElement(
|
|
8061
8063
|
Button$1,
|
|
8062
8064
|
{ onClick: function onClick() {
|
|
8063
8065
|
return checkAnswers();
|
|
8064
8066
|
}, variant: 'info', block: true },
|
|
8065
8067
|
'Please click here for answer'
|
|
8066
8068
|
),
|
|
8067
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
8068
|
-
|
|
8069
|
+
quizzes[currentPage - 1] && showAnswer && React.createElement(
|
|
8070
|
+
React.Fragment,
|
|
8069
8071
|
null,
|
|
8070
|
-
|
|
8072
|
+
React.createElement(
|
|
8071
8073
|
'h4',
|
|
8072
8074
|
null,
|
|
8073
8075
|
'Answer:'
|
|
8074
8076
|
),
|
|
8075
|
-
quizzes[currentPage - 1].answer &&
|
|
8077
|
+
quizzes[currentPage - 1].answer && React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8076
8078
|
),
|
|
8077
|
-
|
|
8078
|
-
pageCount > 1 &&
|
|
8079
|
+
React.createElement('br', null),
|
|
8080
|
+
pageCount > 1 && React.createElement(
|
|
8079
8081
|
'div',
|
|
8080
8082
|
{ className: 'd-flex justify-content-center' },
|
|
8081
8083
|
renderPagination()
|
|
@@ -8086,10 +8088,10 @@ var Quiz = function Quiz(_ref) {
|
|
|
8086
8088
|
var Leads = function Leads(_ref) {
|
|
8087
8089
|
var url = _ref.url;
|
|
8088
8090
|
|
|
8089
|
-
return
|
|
8091
|
+
return React.createElement(
|
|
8090
8092
|
'div',
|
|
8091
8093
|
{ className: 'd-block text-center mb-3' },
|
|
8092
|
-
url &&
|
|
8094
|
+
url && React.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8093
8095
|
);
|
|
8094
8096
|
};
|
|
8095
8097
|
|
|
@@ -8132,49 +8134,42 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8132
8134
|
}
|
|
8133
8135
|
};
|
|
8134
8136
|
|
|
8135
|
-
return
|
|
8137
|
+
return React.createElement(
|
|
8136
8138
|
'div',
|
|
8137
8139
|
{ ref: carouselRef, className: 'mt-3 mb-4' },
|
|
8138
|
-
|
|
8140
|
+
React.createElement(
|
|
8139
8141
|
Carousel,
|
|
8140
8142
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8141
8143
|
slides && slides.map(function (slide) {
|
|
8142
8144
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8143
|
-
return
|
|
8145
|
+
return React.createElement(
|
|
8144
8146
|
Carousel.Item,
|
|
8145
8147
|
{ key: slide._key },
|
|
8146
|
-
|
|
8148
|
+
React.createElement(
|
|
8147
8149
|
'a',
|
|
8148
8150
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8149
|
-
|
|
8151
|
+
React.createElement(
|
|
8150
8152
|
LazyLoad,
|
|
8151
8153
|
null,
|
|
8152
|
-
|
|
8153
|
-
'picture',
|
|
8154
|
-
null,
|
|
8155
|
-
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
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', style: { width: '100%' } })
|
|
8159
|
-
)
|
|
8154
|
+
React.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
8160
8155
|
)
|
|
8161
8156
|
),
|
|
8162
|
-
|
|
8157
|
+
React.createElement(
|
|
8163
8158
|
'div',
|
|
8164
8159
|
{ className: 'p-2' },
|
|
8165
|
-
slide.slideshowImage.caption &&
|
|
8160
|
+
slide.slideshowImage.caption && React.createElement(
|
|
8166
8161
|
'h3',
|
|
8167
8162
|
{ style: { padding: '0px' } },
|
|
8168
8163
|
slide.slideshowImage.caption
|
|
8169
8164
|
),
|
|
8170
|
-
slide.description &&
|
|
8165
|
+
slide.description && React.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8171
8166
|
)
|
|
8172
8167
|
);
|
|
8173
8168
|
}
|
|
8174
8169
|
return null;
|
|
8175
8170
|
})
|
|
8176
8171
|
),
|
|
8177
|
-
|
|
8172
|
+
React.createElement(
|
|
8178
8173
|
'style',
|
|
8179
8174
|
{ jsx: 'true' },
|
|
8180
8175
|
'\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 '
|
|
@@ -8193,10 +8188,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8193
8188
|
sizes = _props$node.sizes,
|
|
8194
8189
|
sizeMapping = _props$node.sizeMapping;
|
|
8195
8190
|
|
|
8196
|
-
return
|
|
8191
|
+
return React.createElement(
|
|
8197
8192
|
'div',
|
|
8198
8193
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8199
|
-
|
|
8194
|
+
React.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8200
8195
|
);
|
|
8201
8196
|
};
|
|
8202
8197
|
|
|
@@ -8207,15 +8202,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8207
8202
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8208
8203
|
|
|
8209
8204
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8210
|
-
return
|
|
8205
|
+
return React.createElement(
|
|
8211
8206
|
'section',
|
|
8212
8207
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8213
|
-
Caption &&
|
|
8208
|
+
Caption && React.createElement(
|
|
8214
8209
|
'h4',
|
|
8215
8210
|
{ className: 'formstack-caption' },
|
|
8216
8211
|
Caption
|
|
8217
8212
|
),
|
|
8218
|
-
|
|
8213
|
+
React.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8219
8214
|
);
|
|
8220
8215
|
};
|
|
8221
8216
|
|
|
@@ -8231,36 +8226,29 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8231
8226
|
}
|
|
8232
8227
|
});
|
|
8233
8228
|
if (medias && medias.length > 0) {
|
|
8234
|
-
return
|
|
8229
|
+
return React.createElement(
|
|
8235
8230
|
'div',
|
|
8236
8231
|
{ className: 'multi-media-container' },
|
|
8237
|
-
|
|
8232
|
+
React.createElement(
|
|
8238
8233
|
Row$1,
|
|
8239
8234
|
{ noGutters: true },
|
|
8240
8235
|
medias.map(function (media) {
|
|
8241
|
-
return
|
|
8236
|
+
return React.createElement(
|
|
8242
8237
|
Col$1,
|
|
8243
8238
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8244
|
-
|
|
8239
|
+
React.createElement(
|
|
8245
8240
|
'a',
|
|
8246
|
-
_extends
|
|
8241
|
+
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8247
8242
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8248
|
-
|
|
8243
|
+
React.createElement(
|
|
8249
8244
|
'div',
|
|
8250
8245
|
{ className: 'multi-media-image-container' },
|
|
8251
|
-
imageBox &&
|
|
8246
|
+
imageBox && React.createElement(
|
|
8252
8247
|
LazyLoad,
|
|
8253
8248
|
{ once: true },
|
|
8254
|
-
|
|
8255
|
-
'picture',
|
|
8256
|
-
null,
|
|
8257
|
-
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8258
|
-
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8259
|
-
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8260
|
-
React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
|
|
8261
|
-
)
|
|
8249
|
+
React.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt })
|
|
8262
8250
|
),
|
|
8263
|
-
media.caption &&
|
|
8251
|
+
media.caption && React.createElement(
|
|
8264
8252
|
'span',
|
|
8265
8253
|
{ className: 'multi-media-caption' },
|
|
8266
8254
|
media.caption
|
|
@@ -8270,7 +8258,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8270
8258
|
);
|
|
8271
8259
|
})
|
|
8272
8260
|
),
|
|
8273
|
-
|
|
8261
|
+
React.createElement(
|
|
8274
8262
|
'style',
|
|
8275
8263
|
{ jsx: 'true' },
|
|
8276
8264
|
'\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 '
|
|
@@ -8317,7 +8305,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8317
8305
|
}
|
|
8318
8306
|
};
|
|
8319
8307
|
|
|
8320
|
-
_this.wraperRef =
|
|
8308
|
+
_this.wraperRef = React.createRef();
|
|
8321
8309
|
_this.visible = false;
|
|
8322
8310
|
return _this;
|
|
8323
8311
|
}
|
|
@@ -8345,7 +8333,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8345
8333
|
_props$id = _props.id,
|
|
8346
8334
|
id = _props$id === undefined ? '' : _props$id;
|
|
8347
8335
|
|
|
8348
|
-
return
|
|
8336
|
+
return React.createElement(
|
|
8349
8337
|
'div',
|
|
8350
8338
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8351
8339
|
this.props.children
|
|
@@ -8354,7 +8342,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8354
8342
|
}]);
|
|
8355
8343
|
|
|
8356
8344
|
return InscreenSensor;
|
|
8357
|
-
}(
|
|
8345
|
+
}(React.Component);
|
|
8358
8346
|
|
|
8359
8347
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8360
8348
|
var nodes = _ref.nodes,
|
|
@@ -8463,33 +8451,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8463
8451
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8464
8452
|
var showReading = show ? 'showReading' : '';
|
|
8465
8453
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8466
|
-
return
|
|
8454
|
+
return React.createElement(
|
|
8467
8455
|
'div',
|
|
8468
8456
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8469
|
-
|
|
8457
|
+
React.createElement(
|
|
8470
8458
|
'a',
|
|
8471
8459
|
{ onClick: function onClick(e) {
|
|
8472
8460
|
return articleCardClickHandler(e);
|
|
8473
8461
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8474
|
-
|
|
8462
|
+
React.createElement(
|
|
8475
8463
|
'div',
|
|
8476
8464
|
{ className: 'prevNext-thumbnail' },
|
|
8477
|
-
|
|
8478
|
-
|
|
8465
|
+
React.createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
8466
|
+
React.createElement(
|
|
8479
8467
|
'div',
|
|
8480
8468
|
{ className: 'prevNext-reading ' + showReading },
|
|
8481
8469
|
articleLabel
|
|
8482
8470
|
)
|
|
8483
8471
|
),
|
|
8484
|
-
|
|
8472
|
+
React.createElement(
|
|
8485
8473
|
'div',
|
|
8486
8474
|
{ className: 'prevNext-summary' },
|
|
8487
|
-
|
|
8475
|
+
React.createElement(
|
|
8488
8476
|
'div',
|
|
8489
8477
|
{ className: 'prevNext-publishDate' },
|
|
8490
8478
|
moment(article.published).format('LL')
|
|
8491
8479
|
),
|
|
8492
|
-
|
|
8480
|
+
React.createElement(
|
|
8493
8481
|
'h2',
|
|
8494
8482
|
{ className: 'prevNext-title' },
|
|
8495
8483
|
article.title
|
|
@@ -8538,7 +8526,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8538
8526
|
|
|
8539
8527
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8540
8528
|
if (biography) {
|
|
8541
|
-
return
|
|
8529
|
+
return React.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8542
8530
|
}
|
|
8543
8531
|
};
|
|
8544
8532
|
|
|
@@ -8624,7 +8612,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8624
8612
|
//console.log('useLayoutEffect')
|
|
8625
8613
|
if (!firstLoad) {
|
|
8626
8614
|
setUpArrowClicked(false);
|
|
8627
|
-
if (
|
|
8615
|
+
if (main_40) {
|
|
8628
8616
|
grabLoadedAds();
|
|
8629
8617
|
} else {
|
|
8630
8618
|
scrollToArticle();
|
|
@@ -8648,7 +8636,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8648
8636
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8649
8637
|
if (pageview) pageview(path);
|
|
8650
8638
|
|
|
8651
|
-
if (!
|
|
8639
|
+
if (!main_40) {
|
|
8652
8640
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8653
8641
|
if (window.googletag && googletag.pubadsReady) {
|
|
8654
8642
|
lib_3.refresh();
|
|
@@ -8656,7 +8644,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8656
8644
|
});
|
|
8657
8645
|
}
|
|
8658
8646
|
//Refresh leaderboard ad on mobile
|
|
8659
|
-
if (
|
|
8647
|
+
if (main_40) {
|
|
8660
8648
|
var leaderboardSlotId = '';
|
|
8661
8649
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8662
8650
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8696,38 +8684,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8696
8684
|
setSensorVisible(false);
|
|
8697
8685
|
};
|
|
8698
8686
|
|
|
8699
|
-
return
|
|
8700
|
-
|
|
8687
|
+
return React.createElement(
|
|
8688
|
+
React.Fragment,
|
|
8701
8689
|
null,
|
|
8702
|
-
|
|
8690
|
+
React.createElement(
|
|
8703
8691
|
'div',
|
|
8704
8692
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8705
|
-
|
|
8693
|
+
React.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8706
8694
|
return handleArrowClick();
|
|
8707
8695
|
} })
|
|
8708
8696
|
),
|
|
8709
|
-
|
|
8710
|
-
|
|
8697
|
+
React.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8698
|
+
React.createElement(
|
|
8711
8699
|
'div',
|
|
8712
8700
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8713
|
-
|
|
8701
|
+
React.createElement(
|
|
8714
8702
|
'h5',
|
|
8715
8703
|
{ className: 'objective-title' },
|
|
8716
8704
|
nodes.seriesTitle
|
|
8717
8705
|
),
|
|
8718
|
-
|
|
8706
|
+
React.createElement(
|
|
8719
8707
|
'div',
|
|
8720
8708
|
{ className: 'prevNextWrapper' },
|
|
8721
8709
|
PrevNextCards(false, -1)
|
|
8722
8710
|
)
|
|
8723
8711
|
),
|
|
8724
|
-
|
|
8725
|
-
|
|
8712
|
+
React.createElement('hr', { className: 'article-seperater' }),
|
|
8713
|
+
React.createElement(
|
|
8726
8714
|
'div',
|
|
8727
8715
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8728
|
-
|
|
8716
|
+
main_40 && Ads.map(function (ad, index) {
|
|
8729
8717
|
if (index === 0) {
|
|
8730
|
-
return
|
|
8718
|
+
return React.createElement(
|
|
8731
8719
|
'div',
|
|
8732
8720
|
{
|
|
8733
8721
|
key: 'addid-1',
|
|
@@ -8747,14 +8735,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8747
8735
|
}
|
|
8748
8736
|
})
|
|
8749
8737
|
),
|
|
8750
|
-
|
|
8738
|
+
React.createElement(
|
|
8751
8739
|
'div',
|
|
8752
8740
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8753
8741
|
Articles.map(function (article, index) {
|
|
8754
|
-
return
|
|
8742
|
+
return React.createElement(
|
|
8755
8743
|
'div',
|
|
8756
8744
|
{ key: article.title },
|
|
8757
|
-
|
|
8745
|
+
React.createElement(
|
|
8758
8746
|
InscreenSensor,
|
|
8759
8747
|
{
|
|
8760
8748
|
visible: sensorVisible,
|
|
@@ -8772,84 +8760,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8772
8760
|
}
|
|
8773
8761
|
}
|
|
8774
8762
|
} },
|
|
8775
|
-
|
|
8763
|
+
React.createElement(
|
|
8776
8764
|
Head,
|
|
8777
8765
|
null,
|
|
8778
|
-
currentTitle !== null &&
|
|
8766
|
+
currentTitle !== null && React.createElement(
|
|
8779
8767
|
'title',
|
|
8780
8768
|
{ key: 'title' },
|
|
8781
8769
|
currentTitle
|
|
8782
8770
|
),
|
|
8783
|
-
currentSummary !== null &&
|
|
8784
|
-
currentURL !== null &&
|
|
8785
|
-
currentTitle !== null &&
|
|
8786
|
-
currentThumbnail !== null &&
|
|
8787
|
-
currentSummary !== null &&
|
|
8788
|
-
currentTitle !== null &&
|
|
8789
|
-
currentThumbnail !== null &&
|
|
8790
|
-
currentSummary !== null &&
|
|
8771
|
+
currentSummary !== null && React.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8772
|
+
currentURL !== null && React.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8773
|
+
currentTitle !== null && React.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8774
|
+
currentThumbnail !== null && React.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8775
|
+
currentSummary !== null && React.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8776
|
+
currentTitle !== null && React.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8777
|
+
currentThumbnail !== null && React.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8778
|
+
currentSummary !== null && React.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8791
8779
|
),
|
|
8792
|
-
|
|
8780
|
+
React.createElement(
|
|
8793
8781
|
'article',
|
|
8794
8782
|
{ className: 'article-wrapper' },
|
|
8795
|
-
|
|
8783
|
+
React.createElement(
|
|
8796
8784
|
'div',
|
|
8797
8785
|
{ className: 'article-publishDate' },
|
|
8798
8786
|
moment(article.published).format('LL')
|
|
8799
8787
|
),
|
|
8800
|
-
|
|
8788
|
+
React.createElement(
|
|
8801
8789
|
'div',
|
|
8802
8790
|
{ className: 'author-details-wrapper' },
|
|
8803
8791
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8804
|
-
return
|
|
8792
|
+
return React.createElement(
|
|
8805
8793
|
'span',
|
|
8806
8794
|
{ key: index },
|
|
8807
8795
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage }))
|
|
8808
8796
|
);
|
|
8809
8797
|
})
|
|
8810
8798
|
),
|
|
8811
|
-
|
|
8799
|
+
React.createElement(
|
|
8812
8800
|
'h2',
|
|
8813
8801
|
{ className: 'article-title' },
|
|
8814
8802
|
article.title
|
|
8815
8803
|
),
|
|
8816
|
-
|
|
8804
|
+
React.createElement(
|
|
8817
8805
|
'div',
|
|
8818
8806
|
{ className: 'mt-2 mb-2' },
|
|
8819
|
-
|
|
8807
|
+
React.createElement(BlockContent, _extends({
|
|
8820
8808
|
serializers: getSerializers,
|
|
8821
8809
|
videoAccountIDs: accountIDs,
|
|
8822
8810
|
blocks: article.text,
|
|
8823
8811
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8824
8812
|
}, client.config())),
|
|
8825
|
-
|
|
8813
|
+
React.createElement('hr', { className: 'article-seperater my-4' })
|
|
8826
8814
|
),
|
|
8827
|
-
Articles.length > 1 &&
|
|
8828
|
-
|
|
8815
|
+
Articles.length > 1 && React.createElement(
|
|
8816
|
+
React.Fragment,
|
|
8829
8817
|
null,
|
|
8830
|
-
|
|
8818
|
+
React.createElement(
|
|
8831
8819
|
'div',
|
|
8832
8820
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8833
|
-
|
|
8821
|
+
React.createElement(
|
|
8834
8822
|
'h5',
|
|
8835
8823
|
{ className: 'objective-title' },
|
|
8836
8824
|
nodes.seriesTitle
|
|
8837
8825
|
),
|
|
8838
|
-
|
|
8826
|
+
React.createElement(
|
|
8839
8827
|
'div',
|
|
8840
8828
|
{ className: 'prevNextWrapper' },
|
|
8841
8829
|
PrevNextCards(true, index)
|
|
8842
8830
|
)
|
|
8843
8831
|
),
|
|
8844
|
-
|
|
8832
|
+
React.createElement('hr', { className: 'article-seperater' })
|
|
8845
8833
|
)
|
|
8846
8834
|
),
|
|
8847
|
-
|
|
8835
|
+
React.createElement(
|
|
8848
8836
|
'div',
|
|
8849
8837
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8850
|
-
|
|
8838
|
+
main_40 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8851
8839
|
if (innerIndex === 0) {
|
|
8852
|
-
return
|
|
8840
|
+
return React.createElement(
|
|
8853
8841
|
'div',
|
|
8854
8842
|
{
|
|
8855
8843
|
key: 'addid-' + (index + 2),
|
|
@@ -8872,7 +8860,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8872
8860
|
)
|
|
8873
8861
|
);
|
|
8874
8862
|
}),
|
|
8875
|
-
|
|
8863
|
+
React.createElement(
|
|
8876
8864
|
'style',
|
|
8877
8865
|
{ jsx: 'true' },
|
|
8878
8866
|
'\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 '
|
|
@@ -8902,11 +8890,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8902
8890
|
};
|
|
8903
8891
|
}, [handleClickOutside]);
|
|
8904
8892
|
|
|
8905
|
-
return
|
|
8893
|
+
return React.createElement(
|
|
8906
8894
|
'div',
|
|
8907
8895
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8908
|
-
|
|
8909
|
-
|
|
8896
|
+
React.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8897
|
+
React.createElement(
|
|
8910
8898
|
'style',
|
|
8911
8899
|
{ jsx: 'true' },
|
|
8912
8900
|
'\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 '
|
|
@@ -8920,7 +8908,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8920
8908
|
}
|
|
8921
8909
|
};
|
|
8922
8910
|
|
|
8923
|
-
var FigureImage =
|
|
8911
|
+
var FigureImage = React.memo(function (_ref2) {
|
|
8924
8912
|
var node = _ref2.node,
|
|
8925
8913
|
client = _ref2.client,
|
|
8926
8914
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8928,13 +8916,13 @@ var FigureImage = React__default.memo(function (_ref2) {
|
|
|
8928
8916
|
handleClickFigure = _ref2.handleClickFigure;
|
|
8929
8917
|
|
|
8930
8918
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
8931
|
-
return
|
|
8919
|
+
return React.createElement(
|
|
8932
8920
|
'picture',
|
|
8933
8921
|
null,
|
|
8934
|
-
|
|
8935
|
-
|
|
8936
|
-
|
|
8937
|
-
|
|
8922
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8923
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8924
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8925
|
+
React.createElement('img', _extends({
|
|
8938
8926
|
style: figureImageStyle,
|
|
8939
8927
|
className: 'figure-image',
|
|
8940
8928
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9022,13 +9010,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9022
9010
|
|
|
9023
9011
|
var FigureCaption = useCallback(function () {
|
|
9024
9012
|
if (imgcaption && imgcaption.length > 0) {
|
|
9025
|
-
return
|
|
9013
|
+
return React.createElement(
|
|
9026
9014
|
'div',
|
|
9027
9015
|
{ className: 'figure-caption' },
|
|
9028
|
-
|
|
9016
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9029
9017
|
);
|
|
9030
9018
|
} else if (caption) {
|
|
9031
|
-
return
|
|
9019
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9032
9020
|
} else return null;
|
|
9033
9021
|
}, [caption, imgcaption]);
|
|
9034
9022
|
|
|
@@ -9045,24 +9033,24 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9045
9033
|
setShowLightbox(true);
|
|
9046
9034
|
}, [node, client]);
|
|
9047
9035
|
|
|
9048
|
-
return
|
|
9049
|
-
|
|
9036
|
+
return React.createElement(
|
|
9037
|
+
React.Fragment,
|
|
9050
9038
|
null,
|
|
9051
|
-
|
|
9052
|
-
Figure$
|
|
9039
|
+
React.createElement(
|
|
9040
|
+
Figure$2,
|
|
9053
9041
|
{ className: '' + class_name, style: figureStyle },
|
|
9054
|
-
link ?
|
|
9042
|
+
link ? React.createElement(
|
|
9055
9043
|
'a',
|
|
9056
9044
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9057
|
-
|
|
9058
|
-
|
|
9059
|
-
) :
|
|
9060
|
-
|
|
9045
|
+
React.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9046
|
+
React.createElement(FigureCaption, null)
|
|
9047
|
+
) : React.createElement(
|
|
9048
|
+
React.Fragment,
|
|
9061
9049
|
null,
|
|
9062
|
-
|
|
9063
|
-
|
|
9050
|
+
React.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9051
|
+
React.createElement(FigureCaption, null)
|
|
9064
9052
|
),
|
|
9065
|
-
|
|
9053
|
+
React.createElement(LightBox, {
|
|
9066
9054
|
showLightbox: showLightbox,
|
|
9067
9055
|
lightboxImgSrc: lightboxImgSrc,
|
|
9068
9056
|
closeLightbox: function closeLightbox() {
|
|
@@ -9071,7 +9059,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9071
9059
|
}
|
|
9072
9060
|
})
|
|
9073
9061
|
),
|
|
9074
|
-
|
|
9062
|
+
React.createElement(
|
|
9075
9063
|
'style',
|
|
9076
9064
|
{ jsx: 'true' },
|
|
9077
9065
|
'\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 '
|
|
@@ -9079,7 +9067,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9079
9067
|
);
|
|
9080
9068
|
};
|
|
9081
9069
|
|
|
9082
|
-
var Figure =
|
|
9070
|
+
var Figure = React.memo(FigureComponent, compareProps);
|
|
9083
9071
|
|
|
9084
9072
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
9085
9073
|
useEffect(function () {
|
|
@@ -9096,33 +9084,6 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9096
9084
|
}, [ref]);
|
|
9097
9085
|
}
|
|
9098
9086
|
|
|
9099
|
-
var FigureImage$1 = React__default.memo(function (_ref) {
|
|
9100
|
-
var imagesCount = _ref.imagesCount,
|
|
9101
|
-
image = _ref.image,
|
|
9102
|
-
client = _ref.client,
|
|
9103
|
-
imgAlt = _ref.imgAlt,
|
|
9104
|
-
link = _ref.link,
|
|
9105
|
-
handleClickFigure = _ref.handleClickFigure;
|
|
9106
|
-
|
|
9107
|
-
return React__default.createElement(
|
|
9108
|
-
'picture',
|
|
9109
|
-
null,
|
|
9110
|
-
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9111
|
-
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9112
|
-
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9113
|
-
React__default.createElement('img', _extends$1({
|
|
9114
|
-
'images-count': imagesCount,
|
|
9115
|
-
className: 'multi-figure-image',
|
|
9116
|
-
src: urlFor({ source: image, client: client }),
|
|
9117
|
-
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9118
|
-
}, !link && {
|
|
9119
|
-
onClick: function onClick() {
|
|
9120
|
-
return handleClickFigure(image, client);
|
|
9121
|
-
}
|
|
9122
|
-
}))
|
|
9123
|
-
);
|
|
9124
|
-
});
|
|
9125
|
-
|
|
9126
9087
|
var MultiFigure = function MultiFigure(props) {
|
|
9127
9088
|
var images = props.node.images,
|
|
9128
9089
|
client = props.client,
|
|
@@ -9142,72 +9103,76 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9142
9103
|
var lightboxContainer = useRef(null);
|
|
9143
9104
|
useOutsideAlerter(lightboxImage, lightboxContainer, setOpenImg, setOpenImgSrc);
|
|
9144
9105
|
|
|
9145
|
-
var FigureCaption = function FigureCaption(
|
|
9146
|
-
var caption =
|
|
9147
|
-
imgcaption =
|
|
9106
|
+
var FigureCaption = function FigureCaption(_ref) {
|
|
9107
|
+
var caption = _ref.caption,
|
|
9108
|
+
imgcaption = _ref.imgcaption;
|
|
9148
9109
|
|
|
9149
9110
|
if (imgcaption && imgcaption.length > 0) {
|
|
9150
|
-
return
|
|
9111
|
+
return React.createElement(
|
|
9151
9112
|
'div',
|
|
9152
9113
|
{ className: 'multi-figure-caption' },
|
|
9153
|
-
|
|
9114
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9154
9115
|
);
|
|
9155
9116
|
} else if (caption) {
|
|
9156
|
-
return
|
|
9117
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9157
9118
|
} else return null;
|
|
9158
9119
|
};
|
|
9159
9120
|
|
|
9160
|
-
var handleClickFigure = useCallback(function (image, client) {
|
|
9161
|
-
setOpenImgSrc(urlFor({ source: image, client: client }));
|
|
9162
|
-
setOpenImg(true);
|
|
9163
|
-
}, [client]);
|
|
9164
|
-
|
|
9165
9121
|
if (images && images.length > 0) {
|
|
9166
|
-
return
|
|
9122
|
+
return React.createElement(
|
|
9167
9123
|
'div',
|
|
9168
9124
|
{ className: 'multi-figure-container' },
|
|
9169
|
-
|
|
9125
|
+
React.createElement(
|
|
9170
9126
|
Row$1,
|
|
9171
9127
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9172
9128
|
images.map(function (image, index) {
|
|
9173
|
-
return
|
|
9129
|
+
return React.createElement(
|
|
9174
9130
|
Col$1,
|
|
9175
9131
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9176
|
-
image.link ?
|
|
9132
|
+
image.link ? React.createElement(
|
|
9177
9133
|
'a',
|
|
9178
|
-
_extends
|
|
9179
|
-
|
|
9134
|
+
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9135
|
+
React.createElement(
|
|
9180
9136
|
'div',
|
|
9181
9137
|
{ className: 'multi-figure-image-container' },
|
|
9182
|
-
|
|
9138
|
+
React.createElement(
|
|
9183
9139
|
LazyLoad,
|
|
9184
9140
|
{ once: true },
|
|
9185
|
-
|
|
9141
|
+
React.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor({ source: image.asset, client: client }), alt: image.alt })
|
|
9186
9142
|
),
|
|
9187
|
-
|
|
9143
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9188
9144
|
)
|
|
9189
|
-
) :
|
|
9145
|
+
) : React.createElement(
|
|
9190
9146
|
'div',
|
|
9191
9147
|
{ className: 'multi-figure-image-container' },
|
|
9192
|
-
|
|
9148
|
+
React.createElement(
|
|
9193
9149
|
LazyLoad,
|
|
9194
9150
|
{ once: true },
|
|
9195
|
-
|
|
9151
|
+
React.createElement('img', {
|
|
9152
|
+
'images-count': images.length,
|
|
9153
|
+
className: 'multi-figure-image',
|
|
9154
|
+
src: urlFor({ source: image.asset, client: client }),
|
|
9155
|
+
alt: image.alt,
|
|
9156
|
+
onClick: function onClick() {
|
|
9157
|
+
setOpenImgSrc(urlFor({ source: image, client: client }));
|
|
9158
|
+
setOpenImg(true);
|
|
9159
|
+
}
|
|
9160
|
+
})
|
|
9196
9161
|
),
|
|
9197
|
-
|
|
9162
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9198
9163
|
)
|
|
9199
9164
|
);
|
|
9200
9165
|
})
|
|
9201
9166
|
),
|
|
9202
|
-
|
|
9167
|
+
React.createElement(
|
|
9203
9168
|
'div',
|
|
9204
9169
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9205
|
-
|
|
9170
|
+
React.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9206
9171
|
),
|
|
9207
|
-
|
|
9172
|
+
React.createElement(
|
|
9208
9173
|
'style',
|
|
9209
9174
|
{ jsx: 'true' },
|
|
9210
|
-
'\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
|
|
9175
|
+
'\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 }\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 '
|
|
9211
9176
|
)
|
|
9212
9177
|
);
|
|
9213
9178
|
}
|
|
@@ -9226,10 +9191,10 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9226
9191
|
|
|
9227
9192
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
9228
9193
|
|
|
9229
|
-
return
|
|
9194
|
+
return React.createElement(
|
|
9230
9195
|
'div',
|
|
9231
9196
|
{ id: elementId },
|
|
9232
|
-
|
|
9197
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
9233
9198
|
);
|
|
9234
9199
|
};
|
|
9235
9200
|
|
|
@@ -9258,7 +9223,7 @@ exports.__esModule = true;
|
|
|
9258
9223
|
|
|
9259
9224
|
|
|
9260
9225
|
|
|
9261
|
-
var _extends3 = _interopRequireDefault(_extends$
|
|
9226
|
+
var _extends3 = _interopRequireDefault(_extends$1);
|
|
9262
9227
|
|
|
9263
9228
|
|
|
9264
9229
|
|
|
@@ -9278,7 +9243,7 @@ var _inherits3 = _interopRequireDefault(inherits);
|
|
|
9278
9243
|
|
|
9279
9244
|
|
|
9280
9245
|
|
|
9281
|
-
var _react2 = _interopRequireDefault(
|
|
9246
|
+
var _react2 = _interopRequireDefault(React);
|
|
9282
9247
|
|
|
9283
9248
|
|
|
9284
9249
|
|
|
@@ -9437,7 +9402,7 @@ var ScriptTag = function (_Component) {
|
|
|
9437
9402
|
};
|
|
9438
9403
|
|
|
9439
9404
|
return ScriptTag;
|
|
9440
|
-
}(
|
|
9405
|
+
}(React.Component);
|
|
9441
9406
|
|
|
9442
9407
|
ScriptTag.propTypes = {
|
|
9443
9408
|
/**
|
|
@@ -9516,11 +9481,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9516
9481
|
}, []);
|
|
9517
9482
|
|
|
9518
9483
|
if (iframeSrc) {
|
|
9519
|
-
return
|
|
9484
|
+
return React.createElement(
|
|
9520
9485
|
'section',
|
|
9521
9486
|
{ className: 'form-assembly' },
|
|
9522
|
-
|
|
9523
|
-
|
|
9487
|
+
React.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9488
|
+
React.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9524
9489
|
);
|
|
9525
9490
|
}
|
|
9526
9491
|
|
|
@@ -9557,27 +9522,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9557
9522
|
return window.removeEventListener('resize', handleResize);
|
|
9558
9523
|
};
|
|
9559
9524
|
}, []);
|
|
9560
|
-
return
|
|
9525
|
+
return React.createElement(
|
|
9561
9526
|
'div',
|
|
9562
9527
|
{ className: 'blockTableHolder', ref: holder },
|
|
9563
|
-
|
|
9528
|
+
React.createElement(
|
|
9564
9529
|
'div',
|
|
9565
9530
|
{ className: 'blockTable' },
|
|
9566
9531
|
rows && rows.map(function (row) {
|
|
9567
|
-
return
|
|
9532
|
+
return React.createElement(
|
|
9568
9533
|
'div',
|
|
9569
9534
|
{ className: 'blockTableRow' },
|
|
9570
9535
|
row.cells && row.cells.map(function (cell) {
|
|
9571
|
-
return
|
|
9536
|
+
return React.createElement(
|
|
9572
9537
|
'div',
|
|
9573
9538
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9574
|
-
|
|
9539
|
+
React.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9575
9540
|
);
|
|
9576
9541
|
})
|
|
9577
9542
|
);
|
|
9578
9543
|
})
|
|
9579
9544
|
),
|
|
9580
|
-
|
|
9545
|
+
React.createElement(
|
|
9581
9546
|
'style',
|
|
9582
9547
|
{ jsx: true },
|
|
9583
9548
|
'\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 '
|
|
@@ -9656,12 +9621,12 @@ var getSerializers = function getSerializers() {
|
|
|
9656
9621
|
var node = _ref.node;
|
|
9657
9622
|
var url = node.url;
|
|
9658
9623
|
|
|
9659
|
-
return
|
|
9624
|
+
return React.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9660
9625
|
},
|
|
9661
9626
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9662
9627
|
var node = _ref2.node;
|
|
9663
9628
|
|
|
9664
|
-
return
|
|
9629
|
+
return React.createElement(YouTubeGallery, {
|
|
9665
9630
|
nodes: node,
|
|
9666
9631
|
article: article,
|
|
9667
9632
|
meta: meta,
|
|
@@ -9675,7 +9640,7 @@ var getSerializers = function getSerializers() {
|
|
|
9675
9640
|
articleSeries: function articleSeries(_ref3) {
|
|
9676
9641
|
var node = _ref3.node;
|
|
9677
9642
|
|
|
9678
|
-
return
|
|
9643
|
+
return React.createElement(ArticleSeries, {
|
|
9679
9644
|
nodes: node,
|
|
9680
9645
|
accountIDs: videoAccountIDs || {},
|
|
9681
9646
|
pageview: pageview,
|
|
@@ -9688,61 +9653,61 @@ var getSerializers = function getSerializers() {
|
|
|
9688
9653
|
figure: function figure(_ref4) {
|
|
9689
9654
|
var node = _ref4.node;
|
|
9690
9655
|
|
|
9691
|
-
return
|
|
9656
|
+
return React.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9692
9657
|
},
|
|
9693
9658
|
multifigure: function multifigure(_ref5) {
|
|
9694
9659
|
var node = _ref5.node;
|
|
9695
9660
|
|
|
9696
|
-
return
|
|
9661
|
+
return React.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9697
9662
|
},
|
|
9698
9663
|
slideshow: function slideshow(_ref6) {
|
|
9699
9664
|
var node = _ref6.node;
|
|
9700
9665
|
var slides = node.slides;
|
|
9701
9666
|
|
|
9702
|
-
return
|
|
9667
|
+
return React.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9703
9668
|
},
|
|
9704
9669
|
sidebar: function sidebar(_ref7) {
|
|
9705
9670
|
var node = _ref7.node;
|
|
9706
9671
|
var caption = node.caption,
|
|
9707
9672
|
content = node.content;
|
|
9708
9673
|
|
|
9709
|
-
return
|
|
9674
|
+
return React.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9710
9675
|
},
|
|
9711
9676
|
datatable: function datatable(_ref8) {
|
|
9712
9677
|
var node = _ref8.node;
|
|
9713
9678
|
var table = node.table;
|
|
9714
9679
|
|
|
9715
|
-
return
|
|
9680
|
+
return React.createElement(TableShow, { rows: table.rows });
|
|
9716
9681
|
},
|
|
9717
9682
|
media: function media(_ref9) {
|
|
9718
9683
|
var node = _ref9.node;
|
|
9719
9684
|
|
|
9720
|
-
return
|
|
9685
|
+
return React.createElement(Media, { node: node, client: client });
|
|
9721
9686
|
},
|
|
9722
9687
|
iframe: function iframe(_ref10) {
|
|
9723
9688
|
var node = _ref10.node;
|
|
9724
9689
|
|
|
9725
|
-
return
|
|
9690
|
+
return React.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9726
9691
|
},
|
|
9727
9692
|
video: function video(_ref11) {
|
|
9728
9693
|
var node = _ref11.node;
|
|
9729
9694
|
|
|
9730
|
-
return
|
|
9695
|
+
return React.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9731
9696
|
},
|
|
9732
9697
|
audio: function audio(_ref12) {
|
|
9733
9698
|
var node = _ref12.node;
|
|
9734
9699
|
|
|
9735
|
-
return
|
|
9700
|
+
return React.createElement(Audio, { node: node });
|
|
9736
9701
|
},
|
|
9737
9702
|
poll: function poll(_ref13) {
|
|
9738
9703
|
var node = _ref13.node;
|
|
9739
9704
|
|
|
9740
|
-
return
|
|
9705
|
+
return React.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9741
9706
|
},
|
|
9742
9707
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9743
9708
|
var node = _ref14.node;
|
|
9744
9709
|
|
|
9745
|
-
return
|
|
9710
|
+
return React.createElement(Poll$1, {
|
|
9746
9711
|
node: node,
|
|
9747
9712
|
client: client,
|
|
9748
9713
|
pageview: pageview,
|
|
@@ -9756,35 +9721,35 @@ var getSerializers = function getSerializers() {
|
|
|
9756
9721
|
var node = _ref15.node;
|
|
9757
9722
|
var quizzes = node.quizzes;
|
|
9758
9723
|
|
|
9759
|
-
return
|
|
9724
|
+
return React.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9760
9725
|
},
|
|
9761
9726
|
leads: function leads(_ref16) {
|
|
9762
9727
|
var node = _ref16.node;
|
|
9763
9728
|
var leadID = node.leadID;
|
|
9764
9729
|
|
|
9765
9730
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9766
|
-
return
|
|
9731
|
+
return React.createElement(Leads, { url: url });
|
|
9767
9732
|
},
|
|
9768
9733
|
slideshows: function slideshows(_ref17) {
|
|
9769
9734
|
var node = _ref17.node;
|
|
9770
9735
|
|
|
9771
|
-
return
|
|
9736
|
+
return React.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9772
9737
|
},
|
|
9773
9738
|
nativeAd: function nativeAd(_ref18) {
|
|
9774
9739
|
var node = _ref18.node;
|
|
9775
9740
|
|
|
9776
|
-
return
|
|
9741
|
+
return React.createElement(NativeAd, { node: node });
|
|
9777
9742
|
},
|
|
9778
9743
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
9779
9744
|
var node = _ref19.node;
|
|
9780
9745
|
|
|
9781
|
-
return
|
|
9746
|
+
return React.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9782
9747
|
},
|
|
9783
9748
|
hrtag: function hrtag() {
|
|
9784
|
-
return
|
|
9749
|
+
return React.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9785
9750
|
},
|
|
9786
9751
|
brtag: function brtag() {
|
|
9787
|
-
return
|
|
9752
|
+
return React.createElement('br', { className: 'line-break' });
|
|
9788
9753
|
},
|
|
9789
9754
|
formstack: function formstack(_ref20) {
|
|
9790
9755
|
var node = _ref20.node;
|
|
@@ -9792,29 +9757,29 @@ var getSerializers = function getSerializers() {
|
|
|
9792
9757
|
Caption = node.Caption,
|
|
9793
9758
|
needSegmentSupport = node.needSegmentSupport;
|
|
9794
9759
|
|
|
9795
|
-
return
|
|
9760
|
+
return React.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
9796
9761
|
},
|
|
9797
9762
|
formassembly: FormAssembly,
|
|
9798
9763
|
multimedia: function multimedia(_ref21) {
|
|
9799
9764
|
var node = _ref21.node;
|
|
9800
9765
|
|
|
9801
|
-
return
|
|
9766
|
+
return React.createElement(MultiMedia, { node: node, client: client });
|
|
9802
9767
|
},
|
|
9803
9768
|
blockTable: function blockTable(_ref22) {
|
|
9804
9769
|
var node = _ref22.node;
|
|
9805
|
-
return
|
|
9770
|
+
return React.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9806
9771
|
}
|
|
9807
9772
|
},
|
|
9808
9773
|
marks: {
|
|
9809
9774
|
superscript: function superscript(props) {
|
|
9810
|
-
return
|
|
9775
|
+
return React.createElement(
|
|
9811
9776
|
'sup',
|
|
9812
9777
|
null,
|
|
9813
9778
|
props.children
|
|
9814
9779
|
);
|
|
9815
9780
|
},
|
|
9816
9781
|
subscript: function subscript(props) {
|
|
9817
|
-
return
|
|
9782
|
+
return React.createElement(
|
|
9818
9783
|
'sub',
|
|
9819
9784
|
null,
|
|
9820
9785
|
props.children
|
|
@@ -9830,7 +9795,7 @@ var getSerializers = function getSerializers() {
|
|
|
9830
9795
|
if (href && href.charAt(0) === '#') {
|
|
9831
9796
|
var elementId = href.slice(1);
|
|
9832
9797
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9833
|
-
return
|
|
9798
|
+
return React.createElement(
|
|
9834
9799
|
'a',
|
|
9835
9800
|
{ onClick: function onClick() {
|
|
9836
9801
|
return ScrollToElement(elementId);
|
|
@@ -9840,7 +9805,7 @@ var getSerializers = function getSerializers() {
|
|
|
9840
9805
|
}
|
|
9841
9806
|
|
|
9842
9807
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9843
|
-
return
|
|
9808
|
+
return React.createElement(
|
|
9844
9809
|
'a',
|
|
9845
9810
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
9846
9811
|
children
|
|
@@ -9848,7 +9813,7 @@ var getSerializers = function getSerializers() {
|
|
|
9848
9813
|
},
|
|
9849
9814
|
alignleft: function alignleft(_ref23) {
|
|
9850
9815
|
var children = _ref23.children;
|
|
9851
|
-
return
|
|
9816
|
+
return React.createElement(
|
|
9852
9817
|
'div',
|
|
9853
9818
|
{ style: { textAlign: 'left' } },
|
|
9854
9819
|
children
|
|
@@ -9856,7 +9821,7 @@ var getSerializers = function getSerializers() {
|
|
|
9856
9821
|
},
|
|
9857
9822
|
alignright: function alignright(_ref24) {
|
|
9858
9823
|
var children = _ref24.children;
|
|
9859
|
-
return
|
|
9824
|
+
return React.createElement(
|
|
9860
9825
|
'div',
|
|
9861
9826
|
{ style: { textAlign: 'right' } },
|
|
9862
9827
|
children
|
|
@@ -9864,7 +9829,7 @@ var getSerializers = function getSerializers() {
|
|
|
9864
9829
|
},
|
|
9865
9830
|
aligncenter: function aligncenter(_ref25) {
|
|
9866
9831
|
var children = _ref25.children;
|
|
9867
|
-
return
|
|
9832
|
+
return React.createElement(
|
|
9868
9833
|
'div',
|
|
9869
9834
|
{ style: { textAlign: 'center' } },
|
|
9870
9835
|
children
|
|
@@ -9872,7 +9837,7 @@ var getSerializers = function getSerializers() {
|
|
|
9872
9837
|
},
|
|
9873
9838
|
alignjustify: function alignjustify(_ref26) {
|
|
9874
9839
|
var children = _ref26.children;
|
|
9875
|
-
return
|
|
9840
|
+
return React.createElement(
|
|
9876
9841
|
'div',
|
|
9877
9842
|
{ style: { textAlign: 'justify' } },
|
|
9878
9843
|
children
|
|
@@ -9882,7 +9847,7 @@ var getSerializers = function getSerializers() {
|
|
|
9882
9847
|
var children = props.children,
|
|
9883
9848
|
color = props.mark.color;
|
|
9884
9849
|
|
|
9885
|
-
return
|
|
9850
|
+
return React.createElement(
|
|
9886
9851
|
'span',
|
|
9887
9852
|
{ style: { color: color ? color.hex : null } },
|
|
9888
9853
|
children
|