@mjhls/mjh-framework 1.0.844-beta.1 → 1.0.844-schema-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-9b50464b.js → ADInfeed-1417ce9a.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-65e48ce7.js → ADlgInfeed-01deca1a.js} +7 -6
- package/dist/cjs/AccordionPanel.js +24 -22
- package/dist/cjs/AdSlot.js +14 -13
- package/dist/cjs/AdSlotsProvider.js +12 -10
- 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 +25 -23
- package/dist/cjs/ArticleSeriesLandingPage.js +20 -19
- package/dist/cjs/ArticleSeriesListing.js +40 -39
- package/dist/cjs/Auth.js +3516 -0
- 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 +48 -46
- package/dist/cjs/Feature.js +25 -23
- package/dist/cjs/ForbesHero.js +35 -34
- package/dist/cjs/GridContent.js +208 -203
- package/dist/cjs/GridHero.js +36 -35
- package/dist/cjs/GroupDeck.js +49 -48
- package/dist/cjs/HamMagazine.js +121 -116
- package/dist/cjs/Header.js +14 -12
- package/dist/cjs/Hero.js +10 -9
- package/dist/cjs/HighlightenVideo.js +17 -16
- package/dist/cjs/HorizontalArticleListing.js +38 -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 +30 -28
- package/dist/cjs/LeftNav.js +22 -20
- package/dist/cjs/MasterDeck.js +50 -49
- package/dist/cjs/MediaSeriesLanding.js +731 -783
- package/dist/cjs/NavDvm.js +68 -63
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +121 -116
- package/dist/cjs/NavNative.js +116 -108
- package/dist/cjs/OncliveHero.js +17 -17
- package/dist/cjs/OncliveLargeHero.js +64 -63
- package/dist/cjs/PageFilter.js +9 -8
- package/dist/cjs/PartnerDetailListing.js +71 -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 +285 -285
- package/dist/cjs/RecentNews.js +20 -19
- package/dist/cjs/RelatedContent.js +23 -22
- package/dist/cjs/RelatedTopicsDropdown.js +22 -19
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +16 -12
- package/dist/cjs/SeriesListingDeck.js +26 -26
- package/dist/cjs/{SeriesSlider-8bbc989f.js → SeriesSlider-0d3bf265.js} +34 -33
- package/dist/cjs/SideFooter.js +24 -23
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-cea213aa.js → SocialSearchComponent-19548e2a.js} +38 -34
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +59 -54
- package/dist/cjs/TaxonomyDescription.js +23 -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 +45 -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 +209 -202
- 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 +4 -321
- package/dist/cjs/getRelatedArticle.js +374 -21
- package/dist/cjs/getSerializers.js +12 -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-3294d3bc.js → index-6367b7bf.js} +16 -17
- package/dist/cjs/{index-a8b50ae3.js → index-73ac3122.js} +882 -1466
- 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 +68 -57
- 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-e1ca5797.js +323 -0
- 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/util-f2c1b65b.js +576 -0
- 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-99535410.js → ADInfeed-bb64ffeb.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-0d359144.js → ADlgInfeed-18efe2e7.js} +4 -4
- package/dist/esm/AccordionPanel.js +17 -17
- package/dist/esm/AdSlot.js +5 -5
- package/dist/esm/AdSlotsProvider.js +5 -5
- 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 +21 -20
- package/dist/esm/ArticleSeriesLandingPage.js +17 -17
- package/dist/esm/ArticleSeriesListing.js +36 -36
- package/dist/esm/Auth.js +3496 -0
- 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 +42 -41
- package/dist/esm/Feature.js +17 -17
- package/dist/esm/ForbesHero.js +28 -28
- package/dist/esm/GridContent.js +172 -172
- package/dist/esm/GridHero.js +29 -29
- package/dist/esm/GroupDeck.js +36 -36
- package/dist/esm/HamMagazine.js +91 -91
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +7 -7
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +35 -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 +27 -26
- package/dist/esm/LeftNav.js +16 -16
- package/dist/esm/MasterDeck.js +46 -46
- package/dist/esm/MediaSeriesLanding.js +451 -506
- package/dist/esm/NavDvm.js +46 -46
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +93 -93
- package/dist/esm/NavNative.js +83 -83
- package/dist/esm/OncliveHero.js +14 -15
- package/dist/esm/OncliveLargeHero.js +52 -52
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +67 -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 +251 -251
- package/dist/esm/RecentNews.js +17 -17
- package/dist/esm/RelatedContent.js +17 -17
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +7 -7
- package/dist/esm/SeriesListingDeck.js +20 -20
- package/dist/esm/{SeriesSlider-a866bb21.js → SeriesSlider-7d89f4d9.js} +24 -24
- package/dist/esm/SideFooter.js +19 -19
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-03c3e869.js → SocialSearchComponent-47815365.js} +28 -28
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +50 -50
- package/dist/esm/TaxonomyDescription.js +17 -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 +33 -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 +185 -182
- 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 +2 -319
- package/dist/esm/getRelatedArticle.js +374 -21
- package/dist/esm/getSerializers.js +12 -11
- 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-1ecf523d.js → index-e537f766.js} +831 -1422
- 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 +55 -48
- 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-4e42248e.js +321 -0
- 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/util-7700fc59.js +574 -0
- package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/package.json +2 -6
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
|
@@ -1,36 +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
|
|
6
|
-
import { _ as _typeof } from './typeof-
|
|
7
|
-
import
|
|
8
|
-
import { l as lib_3 } from './index-
|
|
4
|
+
import { _ as _extends, b as _extends$1 } from './extends-6f2fcc99.js';
|
|
5
|
+
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-75d45541.js';
|
|
6
|
+
import { _ as _typeof$1 } from './typeof-af9c50d8.js';
|
|
7
|
+
import React, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
8
|
+
import { l as lib_3 } from './index-f7fb1e25.js';
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
10
|
import Row$1 from 'react-bootstrap/Row';
|
|
11
11
|
import Col$1 from 'react-bootstrap/Col';
|
|
12
|
-
import { m as moment } from './moment-
|
|
12
|
+
import { m as moment } from './moment-b6f49411.js';
|
|
13
13
|
import Router, { useRouter } from 'next/router';
|
|
14
14
|
import urlFor from './urlFor.js';
|
|
15
|
-
import { L as LazyLoad } from './index-
|
|
16
|
-
import { d as main_16, b as
|
|
15
|
+
import { L as LazyLoad } from './index-6c12bdd5.js';
|
|
16
|
+
import { d as main_16, b as main_39, m as main_40 } from './main-747e7d25.js';
|
|
17
17
|
import { h as html_decode_1 } from './entities-7cc3bf45.js';
|
|
18
18
|
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-641f241f.js';
|
|
19
19
|
import Segment from './Segment.js';
|
|
20
20
|
import Beam from './Beam.js';
|
|
21
21
|
import DFPAdSlot from './AdSlot.js';
|
|
22
22
|
import Button$1 from 'react-bootstrap/Button';
|
|
23
|
-
import { B as BlockContent } from './BlockContent-
|
|
23
|
+
import { B as BlockContent } from './BlockContent-d05b5b23.js';
|
|
24
24
|
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
25
25
|
import GroupDeck from './GroupDeck.js';
|
|
26
26
|
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
27
|
-
import { d as IoIosArrowDropupCircle } from './index.esm-
|
|
28
|
-
import {
|
|
27
|
+
import { d as IoIosArrowDropupCircle } from './index.esm-3fdda599.js';
|
|
28
|
+
import { u as util } from './util-7700fc59.js';
|
|
29
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-4abff0b1.js';
|
|
29
30
|
import Head from 'next/head';
|
|
30
31
|
import SocialShare from './SocialShare.js';
|
|
31
32
|
import { _ as _objectToArray } from './_object-to-array-7e804fce.js';
|
|
32
|
-
import Pagination
|
|
33
|
-
import Figure$
|
|
33
|
+
import Pagination from 'react-bootstrap/Pagination';
|
|
34
|
+
import Figure$2 from 'react-bootstrap/Figure';
|
|
34
35
|
|
|
35
36
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
36
37
|
var pageNumber = selectedIndex + 1;
|
|
@@ -65,27 +66,27 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
65
66
|
if (pageview) pageview(router.asPath);
|
|
66
67
|
}, [router]);
|
|
67
68
|
|
|
68
|
-
return
|
|
69
|
+
return React.createElement(
|
|
69
70
|
'div',
|
|
70
71
|
{ className: 'mt-3 mb-3' },
|
|
71
|
-
|
|
72
|
+
React.createElement(
|
|
72
73
|
Carousel,
|
|
73
74
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
74
75
|
return onChangeSlide(selectedIndex, router);
|
|
75
76
|
}, interval: null },
|
|
76
77
|
slides && slides.map(function (slide) {
|
|
77
|
-
return
|
|
78
|
+
return React.createElement(
|
|
78
79
|
Carousel.Item,
|
|
79
80
|
{ key: slide._key },
|
|
80
|
-
|
|
81
|
+
React.createElement(
|
|
81
82
|
'picture',
|
|
82
83
|
null,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
85
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
86
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
87
|
+
React.createElement('img', { src: urlFor({ source: slide.asset, client: client }), alt: slide.alt || '', style: { width: '100%' } })
|
|
87
88
|
),
|
|
88
|
-
slide.caption &&
|
|
89
|
+
slide.caption && React.createElement(
|
|
89
90
|
'p',
|
|
90
91
|
{ className: 'p-2' },
|
|
91
92
|
slide.caption
|
|
@@ -96,21 +97,18 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
96
97
|
);
|
|
97
98
|
};
|
|
98
99
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
// do not edit .js files directly - edit src/index.jst
|
|
101
|
+
|
|
102
|
+
|
|
102
103
|
|
|
103
104
|
var fastDeepEqual = function equal(a, b) {
|
|
104
105
|
if (a === b) return true;
|
|
105
106
|
|
|
106
107
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
107
|
-
|
|
108
|
-
, arrB = isArray(b)
|
|
109
|
-
, i
|
|
110
|
-
, length
|
|
111
|
-
, key;
|
|
108
|
+
if (a.constructor !== b.constructor) return false;
|
|
112
109
|
|
|
113
|
-
|
|
110
|
+
var length, i, keys;
|
|
111
|
+
if (Array.isArray(a)) {
|
|
114
112
|
length = a.length;
|
|
115
113
|
if (length != b.length) return false;
|
|
116
114
|
for (i = length; i-- !== 0;)
|
|
@@ -118,35 +116,29 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
118
116
|
return true;
|
|
119
117
|
}
|
|
120
118
|
|
|
121
|
-
if (arrA != arrB) return false;
|
|
122
119
|
|
|
123
|
-
var dateA = a instanceof Date
|
|
124
|
-
, dateB = b instanceof Date;
|
|
125
|
-
if (dateA != dateB) return false;
|
|
126
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
127
120
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
if (
|
|
131
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
121
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
122
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
123
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
132
124
|
|
|
133
|
-
|
|
125
|
+
keys = Object.keys(a);
|
|
134
126
|
length = keys.length;
|
|
135
|
-
|
|
136
|
-
if (length !== keyList(b).length)
|
|
137
|
-
return false;
|
|
127
|
+
if (length !== Object.keys(b).length) return false;
|
|
138
128
|
|
|
139
129
|
for (i = length; i-- !== 0;)
|
|
140
|
-
if (!
|
|
130
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
141
131
|
|
|
142
132
|
for (i = length; i-- !== 0;) {
|
|
143
|
-
key = keys[i];
|
|
133
|
+
var key = keys[i];
|
|
134
|
+
|
|
144
135
|
if (!equal(a[key], b[key])) return false;
|
|
145
136
|
}
|
|
146
137
|
|
|
147
138
|
return true;
|
|
148
139
|
}
|
|
149
140
|
|
|
141
|
+
// true if both NaN, false otherwise
|
|
150
142
|
return a!==a && b!==b;
|
|
151
143
|
};
|
|
152
144
|
|
|
@@ -909,579 +901,6 @@ var tty = {
|
|
|
909
901
|
WriteStream: WriteStream
|
|
910
902
|
};
|
|
911
903
|
|
|
912
|
-
var inherits;
|
|
913
|
-
if (typeof Object.create === 'function'){
|
|
914
|
-
inherits = function inherits(ctor, superCtor) {
|
|
915
|
-
// implementation from standard node.js 'util' module
|
|
916
|
-
ctor.super_ = superCtor;
|
|
917
|
-
ctor.prototype = Object.create(superCtor.prototype, {
|
|
918
|
-
constructor: {
|
|
919
|
-
value: ctor,
|
|
920
|
-
enumerable: false,
|
|
921
|
-
writable: true,
|
|
922
|
-
configurable: true
|
|
923
|
-
}
|
|
924
|
-
});
|
|
925
|
-
};
|
|
926
|
-
} else {
|
|
927
|
-
inherits = function inherits(ctor, superCtor) {
|
|
928
|
-
ctor.super_ = superCtor;
|
|
929
|
-
var TempCtor = function () {};
|
|
930
|
-
TempCtor.prototype = superCtor.prototype;
|
|
931
|
-
ctor.prototype = new TempCtor();
|
|
932
|
-
ctor.prototype.constructor = ctor;
|
|
933
|
-
};
|
|
934
|
-
}
|
|
935
|
-
var inherits$1 = inherits;
|
|
936
|
-
|
|
937
|
-
// Copyright Joyent, Inc. and other Node contributors.
|
|
938
|
-
var formatRegExp = /%[sdj%]/g;
|
|
939
|
-
function format(f) {
|
|
940
|
-
if (!isString(f)) {
|
|
941
|
-
var objects = [];
|
|
942
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
943
|
-
objects.push(inspect(arguments[i]));
|
|
944
|
-
}
|
|
945
|
-
return objects.join(' ');
|
|
946
|
-
}
|
|
947
|
-
|
|
948
|
-
var i = 1;
|
|
949
|
-
var args = arguments;
|
|
950
|
-
var len = args.length;
|
|
951
|
-
var str = String(f).replace(formatRegExp, function(x) {
|
|
952
|
-
if (x === '%%') return '%';
|
|
953
|
-
if (i >= len) return x;
|
|
954
|
-
switch (x) {
|
|
955
|
-
case '%s': return String(args[i++]);
|
|
956
|
-
case '%d': return Number(args[i++]);
|
|
957
|
-
case '%j':
|
|
958
|
-
try {
|
|
959
|
-
return JSON.stringify(args[i++]);
|
|
960
|
-
} catch (_) {
|
|
961
|
-
return '[Circular]';
|
|
962
|
-
}
|
|
963
|
-
default:
|
|
964
|
-
return x;
|
|
965
|
-
}
|
|
966
|
-
});
|
|
967
|
-
for (var x = args[i]; i < len; x = args[++i]) {
|
|
968
|
-
if (isNull(x) || !isObject(x)) {
|
|
969
|
-
str += ' ' + x;
|
|
970
|
-
} else {
|
|
971
|
-
str += ' ' + inspect(x);
|
|
972
|
-
}
|
|
973
|
-
}
|
|
974
|
-
return str;
|
|
975
|
-
}
|
|
976
|
-
|
|
977
|
-
// Mark that a method should not be used.
|
|
978
|
-
// Returns a modified function which warns once by default.
|
|
979
|
-
// If --no-deprecation is set, then it is a no-op.
|
|
980
|
-
function deprecate(fn, msg) {
|
|
981
|
-
// Allow for deprecating things in the process of starting up.
|
|
982
|
-
if (isUndefined(global.process)) {
|
|
983
|
-
return function() {
|
|
984
|
-
return deprecate(fn, msg).apply(this, arguments);
|
|
985
|
-
};
|
|
986
|
-
}
|
|
987
|
-
|
|
988
|
-
var warned = false;
|
|
989
|
-
function deprecated() {
|
|
990
|
-
if (!warned) {
|
|
991
|
-
{
|
|
992
|
-
console.error(msg);
|
|
993
|
-
}
|
|
994
|
-
warned = true;
|
|
995
|
-
}
|
|
996
|
-
return fn.apply(this, arguments);
|
|
997
|
-
}
|
|
998
|
-
|
|
999
|
-
return deprecated;
|
|
1000
|
-
}
|
|
1001
|
-
|
|
1002
|
-
var debugs = {};
|
|
1003
|
-
var debugEnviron;
|
|
1004
|
-
function debuglog(set) {
|
|
1005
|
-
if (isUndefined(debugEnviron))
|
|
1006
|
-
debugEnviron = '';
|
|
1007
|
-
set = set.toUpperCase();
|
|
1008
|
-
if (!debugs[set]) {
|
|
1009
|
-
if (new RegExp('\\b' + set + '\\b', 'i').test(debugEnviron)) {
|
|
1010
|
-
var pid = 0;
|
|
1011
|
-
debugs[set] = function() {
|
|
1012
|
-
var msg = format.apply(null, arguments);
|
|
1013
|
-
console.error('%s %d: %s', set, pid, msg);
|
|
1014
|
-
};
|
|
1015
|
-
} else {
|
|
1016
|
-
debugs[set] = function() {};
|
|
1017
|
-
}
|
|
1018
|
-
}
|
|
1019
|
-
return debugs[set];
|
|
1020
|
-
}
|
|
1021
|
-
|
|
1022
|
-
/**
|
|
1023
|
-
* Echos the value of a value. Trys to print the value out
|
|
1024
|
-
* in the best way possible given the different types.
|
|
1025
|
-
*
|
|
1026
|
-
* @param {Object} obj The object to print out.
|
|
1027
|
-
* @param {Object} opts Optional options object that alters the output.
|
|
1028
|
-
*/
|
|
1029
|
-
/* legacy: obj, showHidden, depth, colors*/
|
|
1030
|
-
function inspect(obj, opts) {
|
|
1031
|
-
// default options
|
|
1032
|
-
var ctx = {
|
|
1033
|
-
seen: [],
|
|
1034
|
-
stylize: stylizeNoColor
|
|
1035
|
-
};
|
|
1036
|
-
// legacy...
|
|
1037
|
-
if (arguments.length >= 3) ctx.depth = arguments[2];
|
|
1038
|
-
if (arguments.length >= 4) ctx.colors = arguments[3];
|
|
1039
|
-
if (isBoolean(opts)) {
|
|
1040
|
-
// legacy...
|
|
1041
|
-
ctx.showHidden = opts;
|
|
1042
|
-
} else if (opts) {
|
|
1043
|
-
// got an "options" object
|
|
1044
|
-
_extend(ctx, opts);
|
|
1045
|
-
}
|
|
1046
|
-
// set default options
|
|
1047
|
-
if (isUndefined(ctx.showHidden)) ctx.showHidden = false;
|
|
1048
|
-
if (isUndefined(ctx.depth)) ctx.depth = 2;
|
|
1049
|
-
if (isUndefined(ctx.colors)) ctx.colors = false;
|
|
1050
|
-
if (isUndefined(ctx.customInspect)) ctx.customInspect = true;
|
|
1051
|
-
if (ctx.colors) ctx.stylize = stylizeWithColor;
|
|
1052
|
-
return formatValue(ctx, obj, ctx.depth);
|
|
1053
|
-
}
|
|
1054
|
-
|
|
1055
|
-
// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics
|
|
1056
|
-
inspect.colors = {
|
|
1057
|
-
'bold' : [1, 22],
|
|
1058
|
-
'italic' : [3, 23],
|
|
1059
|
-
'underline' : [4, 24],
|
|
1060
|
-
'inverse' : [7, 27],
|
|
1061
|
-
'white' : [37, 39],
|
|
1062
|
-
'grey' : [90, 39],
|
|
1063
|
-
'black' : [30, 39],
|
|
1064
|
-
'blue' : [34, 39],
|
|
1065
|
-
'cyan' : [36, 39],
|
|
1066
|
-
'green' : [32, 39],
|
|
1067
|
-
'magenta' : [35, 39],
|
|
1068
|
-
'red' : [31, 39],
|
|
1069
|
-
'yellow' : [33, 39]
|
|
1070
|
-
};
|
|
1071
|
-
|
|
1072
|
-
// Don't use 'blue' not visible on cmd.exe
|
|
1073
|
-
inspect.styles = {
|
|
1074
|
-
'special': 'cyan',
|
|
1075
|
-
'number': 'yellow',
|
|
1076
|
-
'boolean': 'yellow',
|
|
1077
|
-
'undefined': 'grey',
|
|
1078
|
-
'null': 'bold',
|
|
1079
|
-
'string': 'green',
|
|
1080
|
-
'date': 'magenta',
|
|
1081
|
-
// "name": intentionally not styling
|
|
1082
|
-
'regexp': 'red'
|
|
1083
|
-
};
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
function stylizeWithColor(str, styleType) {
|
|
1087
|
-
var style = inspect.styles[styleType];
|
|
1088
|
-
|
|
1089
|
-
if (style) {
|
|
1090
|
-
return '\u001b[' + inspect.colors[style][0] + 'm' + str +
|
|
1091
|
-
'\u001b[' + inspect.colors[style][1] + 'm';
|
|
1092
|
-
} else {
|
|
1093
|
-
return str;
|
|
1094
|
-
}
|
|
1095
|
-
}
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
function stylizeNoColor(str, styleType) {
|
|
1099
|
-
return str;
|
|
1100
|
-
}
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
function arrayToHash(array) {
|
|
1104
|
-
var hash = {};
|
|
1105
|
-
|
|
1106
|
-
array.forEach(function(val, idx) {
|
|
1107
|
-
hash[val] = true;
|
|
1108
|
-
});
|
|
1109
|
-
|
|
1110
|
-
return hash;
|
|
1111
|
-
}
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
function formatValue(ctx, value, recurseTimes) {
|
|
1115
|
-
// Provide a hook for user-specified inspect functions.
|
|
1116
|
-
// Check that value is an object with an inspect function on it
|
|
1117
|
-
if (ctx.customInspect &&
|
|
1118
|
-
value &&
|
|
1119
|
-
isFunction(value.inspect) &&
|
|
1120
|
-
// Filter out the util module, it's inspect function is special
|
|
1121
|
-
value.inspect !== inspect &&
|
|
1122
|
-
// Also filter out any prototype objects using the circular check.
|
|
1123
|
-
!(value.constructor && value.constructor.prototype === value)) {
|
|
1124
|
-
var ret = value.inspect(recurseTimes, ctx);
|
|
1125
|
-
if (!isString(ret)) {
|
|
1126
|
-
ret = formatValue(ctx, ret, recurseTimes);
|
|
1127
|
-
}
|
|
1128
|
-
return ret;
|
|
1129
|
-
}
|
|
1130
|
-
|
|
1131
|
-
// Primitive types cannot have properties
|
|
1132
|
-
var primitive = formatPrimitive(ctx, value);
|
|
1133
|
-
if (primitive) {
|
|
1134
|
-
return primitive;
|
|
1135
|
-
}
|
|
1136
|
-
|
|
1137
|
-
// Look up the keys of the object.
|
|
1138
|
-
var keys = Object.keys(value);
|
|
1139
|
-
var visibleKeys = arrayToHash(keys);
|
|
1140
|
-
|
|
1141
|
-
if (ctx.showHidden) {
|
|
1142
|
-
keys = Object.getOwnPropertyNames(value);
|
|
1143
|
-
}
|
|
1144
|
-
|
|
1145
|
-
// IE doesn't make error fields non-enumerable
|
|
1146
|
-
// http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx
|
|
1147
|
-
if (isError(value)
|
|
1148
|
-
&& (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {
|
|
1149
|
-
return formatError(value);
|
|
1150
|
-
}
|
|
1151
|
-
|
|
1152
|
-
// Some type of object without properties can be shortcutted.
|
|
1153
|
-
if (keys.length === 0) {
|
|
1154
|
-
if (isFunction(value)) {
|
|
1155
|
-
var name = value.name ? ': ' + value.name : '';
|
|
1156
|
-
return ctx.stylize('[Function' + name + ']', 'special');
|
|
1157
|
-
}
|
|
1158
|
-
if (isRegExp(value)) {
|
|
1159
|
-
return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
|
|
1160
|
-
}
|
|
1161
|
-
if (isDate(value)) {
|
|
1162
|
-
return ctx.stylize(Date.prototype.toString.call(value), 'date');
|
|
1163
|
-
}
|
|
1164
|
-
if (isError(value)) {
|
|
1165
|
-
return formatError(value);
|
|
1166
|
-
}
|
|
1167
|
-
}
|
|
1168
|
-
|
|
1169
|
-
var base = '', array = false, braces = ['{', '}'];
|
|
1170
|
-
|
|
1171
|
-
// Make Array say that they are Array
|
|
1172
|
-
if (isArray$1(value)) {
|
|
1173
|
-
array = true;
|
|
1174
|
-
braces = ['[', ']'];
|
|
1175
|
-
}
|
|
1176
|
-
|
|
1177
|
-
// Make functions say that they are functions
|
|
1178
|
-
if (isFunction(value)) {
|
|
1179
|
-
var n = value.name ? ': ' + value.name : '';
|
|
1180
|
-
base = ' [Function' + n + ']';
|
|
1181
|
-
}
|
|
1182
|
-
|
|
1183
|
-
// Make RegExps say that they are RegExps
|
|
1184
|
-
if (isRegExp(value)) {
|
|
1185
|
-
base = ' ' + RegExp.prototype.toString.call(value);
|
|
1186
|
-
}
|
|
1187
|
-
|
|
1188
|
-
// Make dates with properties first say the date
|
|
1189
|
-
if (isDate(value)) {
|
|
1190
|
-
base = ' ' + Date.prototype.toUTCString.call(value);
|
|
1191
|
-
}
|
|
1192
|
-
|
|
1193
|
-
// Make error with message first say the error
|
|
1194
|
-
if (isError(value)) {
|
|
1195
|
-
base = ' ' + formatError(value);
|
|
1196
|
-
}
|
|
1197
|
-
|
|
1198
|
-
if (keys.length === 0 && (!array || value.length == 0)) {
|
|
1199
|
-
return braces[0] + base + braces[1];
|
|
1200
|
-
}
|
|
1201
|
-
|
|
1202
|
-
if (recurseTimes < 0) {
|
|
1203
|
-
if (isRegExp(value)) {
|
|
1204
|
-
return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
|
|
1205
|
-
} else {
|
|
1206
|
-
return ctx.stylize('[Object]', 'special');
|
|
1207
|
-
}
|
|
1208
|
-
}
|
|
1209
|
-
|
|
1210
|
-
ctx.seen.push(value);
|
|
1211
|
-
|
|
1212
|
-
var output;
|
|
1213
|
-
if (array) {
|
|
1214
|
-
output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);
|
|
1215
|
-
} else {
|
|
1216
|
-
output = keys.map(function(key) {
|
|
1217
|
-
return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);
|
|
1218
|
-
});
|
|
1219
|
-
}
|
|
1220
|
-
|
|
1221
|
-
ctx.seen.pop();
|
|
1222
|
-
|
|
1223
|
-
return reduceToSingleString(output, base, braces);
|
|
1224
|
-
}
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
function formatPrimitive(ctx, value) {
|
|
1228
|
-
if (isUndefined(value))
|
|
1229
|
-
return ctx.stylize('undefined', 'undefined');
|
|
1230
|
-
if (isString(value)) {
|
|
1231
|
-
var simple = '\'' + JSON.stringify(value).replace(/^"|"$/g, '')
|
|
1232
|
-
.replace(/'/g, "\\'")
|
|
1233
|
-
.replace(/\\"/g, '"') + '\'';
|
|
1234
|
-
return ctx.stylize(simple, 'string');
|
|
1235
|
-
}
|
|
1236
|
-
if (isNumber(value))
|
|
1237
|
-
return ctx.stylize('' + value, 'number');
|
|
1238
|
-
if (isBoolean(value))
|
|
1239
|
-
return ctx.stylize('' + value, 'boolean');
|
|
1240
|
-
// For some reason typeof null is "object", so special case here.
|
|
1241
|
-
if (isNull(value))
|
|
1242
|
-
return ctx.stylize('null', 'null');
|
|
1243
|
-
}
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
function formatError(value) {
|
|
1247
|
-
return '[' + Error.prototype.toString.call(value) + ']';
|
|
1248
|
-
}
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {
|
|
1252
|
-
var output = [];
|
|
1253
|
-
for (var i = 0, l = value.length; i < l; ++i) {
|
|
1254
|
-
if (hasOwnProperty(value, String(i))) {
|
|
1255
|
-
output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
|
|
1256
|
-
String(i), true));
|
|
1257
|
-
} else {
|
|
1258
|
-
output.push('');
|
|
1259
|
-
}
|
|
1260
|
-
}
|
|
1261
|
-
keys.forEach(function(key) {
|
|
1262
|
-
if (!key.match(/^\d+$/)) {
|
|
1263
|
-
output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
|
|
1264
|
-
key, true));
|
|
1265
|
-
}
|
|
1266
|
-
});
|
|
1267
|
-
return output;
|
|
1268
|
-
}
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
|
|
1272
|
-
var name, str, desc;
|
|
1273
|
-
desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };
|
|
1274
|
-
if (desc.get) {
|
|
1275
|
-
if (desc.set) {
|
|
1276
|
-
str = ctx.stylize('[Getter/Setter]', 'special');
|
|
1277
|
-
} else {
|
|
1278
|
-
str = ctx.stylize('[Getter]', 'special');
|
|
1279
|
-
}
|
|
1280
|
-
} else {
|
|
1281
|
-
if (desc.set) {
|
|
1282
|
-
str = ctx.stylize('[Setter]', 'special');
|
|
1283
|
-
}
|
|
1284
|
-
}
|
|
1285
|
-
if (!hasOwnProperty(visibleKeys, key)) {
|
|
1286
|
-
name = '[' + key + ']';
|
|
1287
|
-
}
|
|
1288
|
-
if (!str) {
|
|
1289
|
-
if (ctx.seen.indexOf(desc.value) < 0) {
|
|
1290
|
-
if (isNull(recurseTimes)) {
|
|
1291
|
-
str = formatValue(ctx, desc.value, null);
|
|
1292
|
-
} else {
|
|
1293
|
-
str = formatValue(ctx, desc.value, recurseTimes - 1);
|
|
1294
|
-
}
|
|
1295
|
-
if (str.indexOf('\n') > -1) {
|
|
1296
|
-
if (array) {
|
|
1297
|
-
str = str.split('\n').map(function(line) {
|
|
1298
|
-
return ' ' + line;
|
|
1299
|
-
}).join('\n').substr(2);
|
|
1300
|
-
} else {
|
|
1301
|
-
str = '\n' + str.split('\n').map(function(line) {
|
|
1302
|
-
return ' ' + line;
|
|
1303
|
-
}).join('\n');
|
|
1304
|
-
}
|
|
1305
|
-
}
|
|
1306
|
-
} else {
|
|
1307
|
-
str = ctx.stylize('[Circular]', 'special');
|
|
1308
|
-
}
|
|
1309
|
-
}
|
|
1310
|
-
if (isUndefined(name)) {
|
|
1311
|
-
if (array && key.match(/^\d+$/)) {
|
|
1312
|
-
return str;
|
|
1313
|
-
}
|
|
1314
|
-
name = JSON.stringify('' + key);
|
|
1315
|
-
if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) {
|
|
1316
|
-
name = name.substr(1, name.length - 2);
|
|
1317
|
-
name = ctx.stylize(name, 'name');
|
|
1318
|
-
} else {
|
|
1319
|
-
name = name.replace(/'/g, "\\'")
|
|
1320
|
-
.replace(/\\"/g, '"')
|
|
1321
|
-
.replace(/(^"|"$)/g, "'");
|
|
1322
|
-
name = ctx.stylize(name, 'string');
|
|
1323
|
-
}
|
|
1324
|
-
}
|
|
1325
|
-
|
|
1326
|
-
return name + ': ' + str;
|
|
1327
|
-
}
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
function reduceToSingleString(output, base, braces) {
|
|
1331
|
-
var length = output.reduce(function(prev, cur) {
|
|
1332
|
-
if (cur.indexOf('\n') >= 0) ;
|
|
1333
|
-
return prev + cur.replace(/\u001b\[\d\d?m/g, '').length + 1;
|
|
1334
|
-
}, 0);
|
|
1335
|
-
|
|
1336
|
-
if (length > 60) {
|
|
1337
|
-
return braces[0] +
|
|
1338
|
-
(base === '' ? '' : base + '\n ') +
|
|
1339
|
-
' ' +
|
|
1340
|
-
output.join(',\n ') +
|
|
1341
|
-
' ' +
|
|
1342
|
-
braces[1];
|
|
1343
|
-
}
|
|
1344
|
-
|
|
1345
|
-
return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];
|
|
1346
|
-
}
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
// NOTE: These type checking functions intentionally don't use `instanceof`
|
|
1350
|
-
// because it is fragile and can be easily faked with `Object.create()`.
|
|
1351
|
-
function isArray$1(ar) {
|
|
1352
|
-
return Array.isArray(ar);
|
|
1353
|
-
}
|
|
1354
|
-
|
|
1355
|
-
function isBoolean(arg) {
|
|
1356
|
-
return typeof arg === 'boolean';
|
|
1357
|
-
}
|
|
1358
|
-
|
|
1359
|
-
function isNull(arg) {
|
|
1360
|
-
return arg === null;
|
|
1361
|
-
}
|
|
1362
|
-
|
|
1363
|
-
function isNullOrUndefined(arg) {
|
|
1364
|
-
return arg == null;
|
|
1365
|
-
}
|
|
1366
|
-
|
|
1367
|
-
function isNumber(arg) {
|
|
1368
|
-
return typeof arg === 'number';
|
|
1369
|
-
}
|
|
1370
|
-
|
|
1371
|
-
function isString(arg) {
|
|
1372
|
-
return typeof arg === 'string';
|
|
1373
|
-
}
|
|
1374
|
-
|
|
1375
|
-
function isSymbol(arg) {
|
|
1376
|
-
return typeof arg === 'symbol';
|
|
1377
|
-
}
|
|
1378
|
-
|
|
1379
|
-
function isUndefined(arg) {
|
|
1380
|
-
return arg === void 0;
|
|
1381
|
-
}
|
|
1382
|
-
|
|
1383
|
-
function isRegExp(re) {
|
|
1384
|
-
return isObject(re) && objectToString(re) === '[object RegExp]';
|
|
1385
|
-
}
|
|
1386
|
-
|
|
1387
|
-
function isObject(arg) {
|
|
1388
|
-
return typeof arg === 'object' && arg !== null;
|
|
1389
|
-
}
|
|
1390
|
-
|
|
1391
|
-
function isDate(d) {
|
|
1392
|
-
return isObject(d) && objectToString(d) === '[object Date]';
|
|
1393
|
-
}
|
|
1394
|
-
|
|
1395
|
-
function isError(e) {
|
|
1396
|
-
return isObject(e) &&
|
|
1397
|
-
(objectToString(e) === '[object Error]' || e instanceof Error);
|
|
1398
|
-
}
|
|
1399
|
-
|
|
1400
|
-
function isFunction(arg) {
|
|
1401
|
-
return typeof arg === 'function';
|
|
1402
|
-
}
|
|
1403
|
-
|
|
1404
|
-
function isPrimitive(arg) {
|
|
1405
|
-
return arg === null ||
|
|
1406
|
-
typeof arg === 'boolean' ||
|
|
1407
|
-
typeof arg === 'number' ||
|
|
1408
|
-
typeof arg === 'string' ||
|
|
1409
|
-
typeof arg === 'symbol' || // ES6 symbol
|
|
1410
|
-
typeof arg === 'undefined';
|
|
1411
|
-
}
|
|
1412
|
-
|
|
1413
|
-
function isBuffer(maybeBuf) {
|
|
1414
|
-
return Buffer.isBuffer(maybeBuf);
|
|
1415
|
-
}
|
|
1416
|
-
|
|
1417
|
-
function objectToString(o) {
|
|
1418
|
-
return Object.prototype.toString.call(o);
|
|
1419
|
-
}
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
function pad(n) {
|
|
1423
|
-
return n < 10 ? '0' + n.toString(10) : n.toString(10);
|
|
1424
|
-
}
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep',
|
|
1428
|
-
'Oct', 'Nov', 'Dec'];
|
|
1429
|
-
|
|
1430
|
-
// 26 Feb 16:19:34
|
|
1431
|
-
function timestamp() {
|
|
1432
|
-
var d = new Date();
|
|
1433
|
-
var time = [pad(d.getHours()),
|
|
1434
|
-
pad(d.getMinutes()),
|
|
1435
|
-
pad(d.getSeconds())].join(':');
|
|
1436
|
-
return [d.getDate(), months[d.getMonth()], time].join(' ');
|
|
1437
|
-
}
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
// log is just a thin wrapper to console.log that prepends a timestamp
|
|
1441
|
-
function log() {
|
|
1442
|
-
console.log('%s - %s', timestamp(), format.apply(null, arguments));
|
|
1443
|
-
}
|
|
1444
|
-
|
|
1445
|
-
function _extend(origin, add) {
|
|
1446
|
-
// Don't do anything if add isn't an object
|
|
1447
|
-
if (!add || !isObject(add)) return origin;
|
|
1448
|
-
|
|
1449
|
-
var keys = Object.keys(add);
|
|
1450
|
-
var i = keys.length;
|
|
1451
|
-
while (i--) {
|
|
1452
|
-
origin[keys[i]] = add[keys[i]];
|
|
1453
|
-
}
|
|
1454
|
-
return origin;
|
|
1455
|
-
}
|
|
1456
|
-
function hasOwnProperty(obj, prop) {
|
|
1457
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
1458
|
-
}
|
|
1459
|
-
|
|
1460
|
-
var util = {
|
|
1461
|
-
inherits: inherits$1,
|
|
1462
|
-
_extend: _extend,
|
|
1463
|
-
log: log,
|
|
1464
|
-
isBuffer: isBuffer,
|
|
1465
|
-
isPrimitive: isPrimitive,
|
|
1466
|
-
isFunction: isFunction,
|
|
1467
|
-
isError: isError,
|
|
1468
|
-
isDate: isDate,
|
|
1469
|
-
isObject: isObject,
|
|
1470
|
-
isRegExp: isRegExp,
|
|
1471
|
-
isUndefined: isUndefined,
|
|
1472
|
-
isSymbol: isSymbol,
|
|
1473
|
-
isString: isString,
|
|
1474
|
-
isNumber: isNumber,
|
|
1475
|
-
isNullOrUndefined: isNullOrUndefined,
|
|
1476
|
-
isNull: isNull,
|
|
1477
|
-
isBoolean: isBoolean,
|
|
1478
|
-
isArray: isArray$1,
|
|
1479
|
-
inspect: inspect,
|
|
1480
|
-
deprecate: deprecate,
|
|
1481
|
-
format: format,
|
|
1482
|
-
debuglog: debuglog
|
|
1483
|
-
};
|
|
1484
|
-
|
|
1485
904
|
var require$$2 = {};
|
|
1486
905
|
|
|
1487
906
|
var node = createCommonjsModule(function (module, exports) {
|
|
@@ -2142,199 +1561,239 @@ module.exports = exports['default'];
|
|
|
2142
1561
|
|
|
2143
1562
|
var youTubePlayer = unwrapExports(dist);
|
|
2144
1563
|
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
1564
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
2148
1565
|
|
|
2149
1566
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2150
1567
|
|
|
2151
|
-
function
|
|
1568
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
2152
1569
|
|
|
2153
|
-
function
|
|
1570
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1571
|
+
|
|
1572
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
2154
1573
|
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
1574
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1575
|
+
|
|
1576
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
1577
|
+
|
|
1578
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1579
|
+
|
|
1580
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1581
|
+
|
|
1582
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
1583
|
+
|
|
1584
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1585
|
+
|
|
1586
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
1587
|
+
|
|
1588
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
1589
|
+
|
|
1590
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1591
|
+
/**
|
|
1592
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1593
|
+
*
|
|
1594
|
+
* @param {Object} prevProps
|
|
1595
|
+
* @param {Object} props
|
|
2160
1596
|
*/
|
|
1597
|
+
|
|
2161
1598
|
function shouldUpdateVideo(prevProps, props) {
|
|
2162
1599
|
// A changing video should always trigger an update
|
|
2163
1600
|
if (prevProps.videoId !== props.videoId) {
|
|
2164
1601
|
return true;
|
|
2165
|
-
}
|
|
2166
|
-
|
|
2167
|
-
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1602
|
+
} // Otherwise, a change in the start/end time playerVars also requires a player
|
|
2168
1603
|
// update.
|
|
1604
|
+
|
|
1605
|
+
|
|
2169
1606
|
var prevVars = prevProps.opts.playerVars || {};
|
|
2170
1607
|
var vars = props.opts.playerVars || {};
|
|
2171
|
-
|
|
2172
1608
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
2173
1609
|
}
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
*
|
|
2177
|
-
*
|
|
2178
|
-
*
|
|
2179
|
-
*
|
|
2180
|
-
* @param {Object} opts
|
|
1610
|
+
/**
|
|
1611
|
+
* Neutralize API options that only require a video update, leaving only options
|
|
1612
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1613
|
+
* player reset is necessary.
|
|
1614
|
+
*
|
|
1615
|
+
* @param {Object} opts
|
|
2181
1616
|
*/
|
|
1617
|
+
|
|
1618
|
+
|
|
2182
1619
|
function filterResetOptions(opts) {
|
|
2183
|
-
return
|
|
2184
|
-
playerVars:
|
|
1620
|
+
return _objectSpread(_objectSpread({}, opts), {}, {
|
|
1621
|
+
playerVars: _objectSpread({
|
|
2185
1622
|
autoplay: 0,
|
|
2186
1623
|
start: 0,
|
|
2187
1624
|
end: 0
|
|
2188
|
-
})
|
|
1625
|
+
}, opts.playerVars)
|
|
2189
1626
|
});
|
|
2190
1627
|
}
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
*
|
|
2194
|
-
*
|
|
2195
|
-
*
|
|
2196
|
-
*
|
|
2197
|
-
*
|
|
2198
|
-
* @param {Object}
|
|
2199
|
-
* @param {Object} props
|
|
1628
|
+
/**
|
|
1629
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1630
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1631
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1632
|
+
* those.
|
|
1633
|
+
*
|
|
1634
|
+
* @param {Object} prevProps
|
|
1635
|
+
* @param {Object} props
|
|
2200
1636
|
*/
|
|
1637
|
+
|
|
1638
|
+
|
|
2201
1639
|
function shouldResetPlayer(prevProps, props) {
|
|
2202
1640
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
2203
1641
|
}
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
*
|
|
2207
|
-
*
|
|
2208
|
-
* @param {Object}
|
|
2209
|
-
* @param {Object} props
|
|
1642
|
+
/**
|
|
1643
|
+
* Check whether a props change should result in an id or className update.
|
|
1644
|
+
*
|
|
1645
|
+
* @param {Object} prevProps
|
|
1646
|
+
* @param {Object} props
|
|
2210
1647
|
*/
|
|
1648
|
+
|
|
1649
|
+
|
|
2211
1650
|
function shouldUpdatePlayer(prevProps, props) {
|
|
2212
1651
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
2213
1652
|
}
|
|
2214
1653
|
|
|
2215
|
-
var YouTube = function (_React$Component) {
|
|
1654
|
+
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
2216
1655
|
_inherits(YouTube, _React$Component);
|
|
2217
1656
|
|
|
1657
|
+
var _super = _createSuper(YouTube);
|
|
1658
|
+
|
|
1659
|
+
/**
|
|
1660
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1661
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1662
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1663
|
+
*/
|
|
2218
1664
|
function YouTube(props) {
|
|
1665
|
+
var _this;
|
|
1666
|
+
|
|
2219
1667
|
_classCallCheck(this, YouTube);
|
|
2220
1668
|
|
|
2221
|
-
|
|
1669
|
+
_this = _super.call(this, props);
|
|
2222
1670
|
|
|
2223
|
-
_this
|
|
1671
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
|
|
2224
1672
|
return _this.props.onReady(event);
|
|
2225
|
-
};
|
|
1673
|
+
});
|
|
2226
1674
|
|
|
2227
|
-
_this
|
|
1675
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
|
|
2228
1676
|
return _this.props.onError(event);
|
|
2229
|
-
};
|
|
1677
|
+
});
|
|
2230
1678
|
|
|
2231
|
-
_this
|
|
1679
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
|
|
2232
1680
|
_this.props.onStateChange(event);
|
|
2233
|
-
switch (event.data) {
|
|
2234
1681
|
|
|
1682
|
+
switch (event.data) {
|
|
2235
1683
|
case YouTube.PlayerState.ENDED:
|
|
2236
1684
|
_this.props.onEnd(event);
|
|
1685
|
+
|
|
2237
1686
|
break;
|
|
2238
1687
|
|
|
2239
1688
|
case YouTube.PlayerState.PLAYING:
|
|
2240
1689
|
_this.props.onPlay(event);
|
|
1690
|
+
|
|
2241
1691
|
break;
|
|
2242
1692
|
|
|
2243
1693
|
case YouTube.PlayerState.PAUSED:
|
|
2244
1694
|
_this.props.onPause(event);
|
|
1695
|
+
|
|
2245
1696
|
break;
|
|
2246
1697
|
}
|
|
2247
|
-
};
|
|
1698
|
+
});
|
|
2248
1699
|
|
|
2249
|
-
_this
|
|
1700
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
|
|
2250
1701
|
return _this.props.onPlaybackRateChange(event);
|
|
2251
|
-
};
|
|
1702
|
+
});
|
|
2252
1703
|
|
|
2253
|
-
_this
|
|
1704
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
|
|
2254
1705
|
return _this.props.onPlaybackQualityChange(event);
|
|
2255
|
-
};
|
|
1706
|
+
});
|
|
2256
1707
|
|
|
2257
|
-
_this
|
|
1708
|
+
_defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
|
|
2258
1709
|
// do not attempt to create a player server-side, it won't work
|
|
2259
|
-
if (typeof document === 'undefined') return;
|
|
2260
|
-
|
|
2261
|
-
var playerOpts =
|
|
1710
|
+
if (typeof document === 'undefined') return; // create player
|
|
1711
|
+
|
|
1712
|
+
var playerOpts = _objectSpread(_objectSpread({}, _this.props.opts), {}, {
|
|
2262
1713
|
// preload the `videoId` video if one is already given
|
|
2263
1714
|
videoId: _this.props.videoId
|
|
2264
1715
|
});
|
|
2265
|
-
|
|
2266
|
-
// attach event handlers
|
|
1716
|
+
|
|
1717
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
|
|
1718
|
+
|
|
2267
1719
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1720
|
+
|
|
2268
1721
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1722
|
+
|
|
2269
1723
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1724
|
+
|
|
2270
1725
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1726
|
+
|
|
2271
1727
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
2272
|
-
};
|
|
1728
|
+
});
|
|
2273
1729
|
|
|
2274
|
-
_this
|
|
1730
|
+
_defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
|
|
2275
1731
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
2276
|
-
};
|
|
1732
|
+
});
|
|
2277
1733
|
|
|
2278
|
-
_this
|
|
1734
|
+
_defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
|
|
2279
1735
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
2280
1736
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
2281
1737
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
2282
1738
|
});
|
|
2283
|
-
};
|
|
1739
|
+
});
|
|
2284
1740
|
|
|
2285
|
-
_this
|
|
1741
|
+
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1742
|
+
return _this.internalPlayer;
|
|
1743
|
+
});
|
|
1744
|
+
|
|
1745
|
+
_defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
|
|
2286
1746
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
2287
1747
|
_this.internalPlayer.stopVideo();
|
|
1748
|
+
|
|
2288
1749
|
return;
|
|
2289
|
-
}
|
|
1750
|
+
} // set queueing options
|
|
1751
|
+
|
|
2290
1752
|
|
|
2291
|
-
// set queueing options
|
|
2292
1753
|
var autoplay = false;
|
|
2293
1754
|
var opts = {
|
|
2294
1755
|
videoId: _this.props.videoId
|
|
2295
1756
|
};
|
|
1757
|
+
|
|
2296
1758
|
if ('playerVars' in _this.props.opts) {
|
|
2297
1759
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1760
|
+
|
|
2298
1761
|
if ('start' in _this.props.opts.playerVars) {
|
|
2299
1762
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
2300
1763
|
}
|
|
1764
|
+
|
|
2301
1765
|
if ('end' in _this.props.opts.playerVars) {
|
|
2302
1766
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
2303
1767
|
}
|
|
2304
|
-
}
|
|
1768
|
+
} // if autoplay is enabled loadVideoById
|
|
1769
|
+
|
|
2305
1770
|
|
|
2306
|
-
// if autoplay is enabled loadVideoById
|
|
2307
1771
|
if (autoplay) {
|
|
2308
1772
|
_this.internalPlayer.loadVideoById(opts);
|
|
1773
|
+
|
|
2309
1774
|
return;
|
|
2310
|
-
}
|
|
2311
|
-
|
|
1775
|
+
} // default behaviour just cues the video
|
|
1776
|
+
|
|
1777
|
+
|
|
2312
1778
|
_this.internalPlayer.cueVideoById(opts);
|
|
2313
|
-
};
|
|
1779
|
+
});
|
|
2314
1780
|
|
|
2315
|
-
_this
|
|
1781
|
+
_defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
|
|
2316
1782
|
_this.container = container;
|
|
2317
|
-
};
|
|
1783
|
+
});
|
|
2318
1784
|
|
|
2319
1785
|
_this.container = null;
|
|
2320
1786
|
_this.internalPlayer = null;
|
|
2321
1787
|
return _this;
|
|
2322
1788
|
}
|
|
2323
1789
|
|
|
2324
|
-
/**
|
|
2325
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
2326
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
2327
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
2328
|
-
*/
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
1790
|
_createClass(YouTube, [{
|
|
2332
|
-
key:
|
|
1791
|
+
key: "componentDidMount",
|
|
2333
1792
|
value: function componentDidMount() {
|
|
2334
1793
|
this.createPlayer();
|
|
2335
1794
|
}
|
|
2336
1795
|
}, {
|
|
2337
|
-
key:
|
|
1796
|
+
key: "componentDidUpdate",
|
|
2338
1797
|
value: function componentDidUpdate(prevProps) {
|
|
2339
1798
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
2340
1799
|
this.updatePlayer();
|
|
@@ -2349,112 +1808,58 @@ var YouTube = function (_React$Component) {
|
|
|
2349
1808
|
}
|
|
2350
1809
|
}
|
|
2351
1810
|
}, {
|
|
2352
|
-
key:
|
|
1811
|
+
key: "componentWillUnmount",
|
|
2353
1812
|
value: function componentWillUnmount() {
|
|
2354
|
-
/**
|
|
2355
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
2356
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
2357
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
2358
|
-
* this method isn't quick enough to reset the container element.
|
|
1813
|
+
/**
|
|
1814
|
+
* Note: The `youtube-player` package that is used promisifies all YouTube
|
|
1815
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1816
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1817
|
+
* this method isn't quick enough to reset the container element.
|
|
2359
1818
|
*/
|
|
2360
1819
|
this.internalPlayer.destroy();
|
|
2361
1820
|
}
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
*
|
|
2365
|
-
*
|
|
2366
|
-
*
|
|
2367
|
-
* @param {Object} target - player object
|
|
2368
|
-
*/
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
/**
|
|
2372
|
-
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
2373
|
-
*
|
|
2374
|
-
* @param {Object} event
|
|
2375
|
-
* @param {Integer} data - error type
|
|
2376
|
-
* @param {Object} target - player object
|
|
2377
|
-
*/
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
/**
|
|
2381
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
2382
|
-
*
|
|
2383
|
-
* @param {Object} event
|
|
2384
|
-
* @param {Integer} data - status change type
|
|
2385
|
-
* @param {Object} target - actual YT player
|
|
2386
|
-
*/
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
/**
|
|
2390
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
2391
|
-
*
|
|
2392
|
-
* @param {Object} event
|
|
2393
|
-
* @param {Float} data - playback rate
|
|
2394
|
-
* @param {Object} target - actual YT player
|
|
2395
|
-
*/
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
/**
|
|
2399
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
2400
|
-
*
|
|
2401
|
-
* @param {Object} event
|
|
2402
|
-
* @param {String} data - playback quality
|
|
2403
|
-
* @param {Object} target - actual YT player
|
|
2404
|
-
*/
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
/**
|
|
2408
|
-
* Initialize the Youtube Player API on the container and attach event handlers
|
|
2409
|
-
*/
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
/**
|
|
2413
|
-
* Shorthand for destroying and then re-creating the Youtube Player
|
|
2414
|
-
*/
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
/**
|
|
2418
|
-
* Method to update the id and class of the Youtube Player iframe.
|
|
2419
|
-
* React should update this automatically but since the Youtube Player API
|
|
2420
|
-
* replaced the DIV that is mounted by React we need to do this manually.
|
|
2421
|
-
*/
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
/**
|
|
2425
|
-
* Call Youtube Player API methods to update the currently playing video.
|
|
2426
|
-
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
2427
|
-
* Youtube Player API methods to update the video.
|
|
1821
|
+
/**
|
|
1822
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1823
|
+
*
|
|
1824
|
+
* @param {Object} event
|
|
1825
|
+
* @param {Object} target - player object
|
|
2428
1826
|
*/
|
|
2429
1827
|
|
|
2430
1828
|
}, {
|
|
2431
|
-
key:
|
|
1829
|
+
key: "render",
|
|
2432
1830
|
value: function render() {
|
|
2433
|
-
return
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
1831
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1832
|
+
className: this.props.containerClassName
|
|
1833
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1834
|
+
id: this.props.id,
|
|
1835
|
+
className: this.props.className,
|
|
1836
|
+
ref: this.refContainer
|
|
1837
|
+
}));
|
|
2438
1838
|
}
|
|
2439
1839
|
}]);
|
|
2440
1840
|
|
|
2441
1841
|
return YouTube;
|
|
2442
|
-
}(
|
|
1842
|
+
}(React.Component);
|
|
1843
|
+
|
|
1844
|
+
_defineProperty(YouTube, "PlayerState", {
|
|
1845
|
+
UNSTARTED: -1,
|
|
1846
|
+
ENDED: 0,
|
|
1847
|
+
PLAYING: 1,
|
|
1848
|
+
PAUSED: 2,
|
|
1849
|
+
BUFFERING: 3,
|
|
1850
|
+
CUED: 5
|
|
1851
|
+
});
|
|
2443
1852
|
|
|
2444
1853
|
YouTube.propTypes = {
|
|
2445
1854
|
videoId: PropTypes.string,
|
|
2446
|
-
|
|
2447
1855
|
// custom ID for player element
|
|
2448
1856
|
id: PropTypes.string,
|
|
2449
|
-
|
|
2450
1857
|
// custom class name for player element
|
|
2451
1858
|
className: PropTypes.string,
|
|
2452
1859
|
// custom class name for player container element
|
|
2453
1860
|
containerClassName: PropTypes.string,
|
|
2454
|
-
|
|
2455
1861
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
2456
1862
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
2457
|
-
|
|
2458
1863
|
// event subscriptions
|
|
2459
1864
|
onReady: PropTypes.func,
|
|
2460
1865
|
onError: PropTypes.func,
|
|
@@ -2466,6 +1871,7 @@ YouTube.propTypes = {
|
|
|
2466
1871
|
onPlaybackQualityChange: PropTypes.func
|
|
2467
1872
|
};
|
|
2468
1873
|
YouTube.defaultProps = {
|
|
1874
|
+
videoId: null,
|
|
2469
1875
|
id: null,
|
|
2470
1876
|
className: null,
|
|
2471
1877
|
opts: {},
|
|
@@ -2479,14 +1885,6 @@ YouTube.defaultProps = {
|
|
|
2479
1885
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
2480
1886
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
2481
1887
|
};
|
|
2482
|
-
YouTube.PlayerState = {
|
|
2483
|
-
UNSTARTED: -1,
|
|
2484
|
-
ENDED: 0,
|
|
2485
|
-
PLAYING: 1,
|
|
2486
|
-
PAUSED: 2,
|
|
2487
|
-
BUFFERING: 3,
|
|
2488
|
-
CUED: 5
|
|
2489
|
-
};
|
|
2490
1888
|
|
|
2491
1889
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
2492
1890
|
var url = _ref.url,
|
|
@@ -2588,11 +1986,11 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
2588
1986
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
2589
1987
|
};
|
|
2590
1988
|
|
|
2591
|
-
return
|
|
1989
|
+
return React.createElement(
|
|
2592
1990
|
'div',
|
|
2593
1991
|
{ id: 'fluid-video-container' },
|
|
2594
|
-
|
|
2595
|
-
|
|
1992
|
+
React.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
1993
|
+
React.createElement(
|
|
2596
1994
|
'style',
|
|
2597
1995
|
{ jsx: 'true' },
|
|
2598
1996
|
'\n #fluid-video-container {\n margin-bottom: 2rem;\n }\n #fluid-video-container > div {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n }\n #fluid-video-container .fluid-iframe {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100% !important;\n }\n '
|
|
@@ -2605,20 +2003,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2605
2003
|
content = _ref.content,
|
|
2606
2004
|
getSerializers = _ref.getSerializers;
|
|
2607
2005
|
|
|
2608
|
-
return
|
|
2006
|
+
return React.createElement(
|
|
2609
2007
|
'article',
|
|
2610
2008
|
{ className: 'sidebar' },
|
|
2611
|
-
|
|
2009
|
+
React.createElement(
|
|
2612
2010
|
'div',
|
|
2613
2011
|
null,
|
|
2614
|
-
|
|
2012
|
+
React.createElement(
|
|
2615
2013
|
'h3',
|
|
2616
2014
|
null,
|
|
2617
2015
|
caption
|
|
2618
2016
|
),
|
|
2619
|
-
|
|
2017
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2620
2018
|
),
|
|
2621
|
-
|
|
2019
|
+
React.createElement(
|
|
2622
2020
|
'style',
|
|
2623
2021
|
{ jsx: 'true' },
|
|
2624
2022
|
'\n .sidebar {\n clear: both;\n float: right;\n background-color: #eee;\n width: 40%;\n padding: 1rem;\n margin: 0 0 1rem 1rem;\n }\n /* resolving list items inside sidebar being shifted to center because of unusual margin */\n .sidebar ul {\n margin-left: 0;\n padding-left: 1rem;\n }\n @media screen and (max-width: 991px) {\n .sidebar {\n float: none;\n width: auto;\n margin: 1rem 0;\n }\n }\n '
|
|
@@ -2629,18 +2027,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2629
2027
|
var TableShow = function TableShow(_ref) {
|
|
2630
2028
|
var rows = _ref.rows;
|
|
2631
2029
|
|
|
2632
|
-
return
|
|
2030
|
+
return React.createElement(
|
|
2633
2031
|
Table,
|
|
2634
2032
|
{ bordered: true, hover: true, responsive: true },
|
|
2635
|
-
|
|
2033
|
+
React.createElement(
|
|
2636
2034
|
'tbody',
|
|
2637
2035
|
null,
|
|
2638
2036
|
rows && rows.map(function (row) {
|
|
2639
|
-
return
|
|
2037
|
+
return React.createElement(
|
|
2640
2038
|
'tr',
|
|
2641
2039
|
{ key: row._key },
|
|
2642
2040
|
row.cells && row.cells.map(function (cell, index) {
|
|
2643
|
-
return cell &&
|
|
2041
|
+
return cell && React.createElement(
|
|
2644
2042
|
'td',
|
|
2645
2043
|
{ key: index },
|
|
2646
2044
|
cell
|
|
@@ -2738,25 +2136,25 @@ var Media = function Media(_ref) {
|
|
|
2738
2136
|
margin: imageMargin
|
|
2739
2137
|
};
|
|
2740
2138
|
|
|
2741
|
-
return
|
|
2139
|
+
return React.createElement(
|
|
2742
2140
|
Figure$1,
|
|
2743
2141
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2744
|
-
|
|
2142
|
+
React.createElement(
|
|
2745
2143
|
'a',
|
|
2746
2144
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2747
|
-
|
|
2145
|
+
React.createElement(
|
|
2748
2146
|
LazyLoad,
|
|
2749
2147
|
{ once: true },
|
|
2750
|
-
|
|
2148
|
+
React.createElement(
|
|
2751
2149
|
'picture',
|
|
2752
2150
|
null,
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2151
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2152
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2153
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2154
|
+
React.createElement('img', _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2757
2155
|
)
|
|
2758
2156
|
),
|
|
2759
|
-
caption &&
|
|
2157
|
+
caption && React.createElement(
|
|
2760
2158
|
Figure$1.Caption,
|
|
2761
2159
|
{ className: 'media-caption' },
|
|
2762
2160
|
caption
|
|
@@ -2764,9 +2162,9 @@ var Media = function Media(_ref) {
|
|
|
2764
2162
|
)
|
|
2765
2163
|
);
|
|
2766
2164
|
} else if (caption && caption !== '') {
|
|
2767
|
-
return
|
|
2165
|
+
return React.createElement(
|
|
2768
2166
|
'a',
|
|
2769
|
-
_extends
|
|
2167
|
+
_extends({}, uploadDoc.downloadMedia ? {
|
|
2770
2168
|
href: uploadDoc.asset.url + '?dl='
|
|
2771
2169
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2772
2170
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2784,10 +2182,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2784
2182
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2785
2183
|
|
|
2786
2184
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2787
|
-
return
|
|
2185
|
+
return React.createElement(
|
|
2788
2186
|
'div',
|
|
2789
2187
|
{ className: 'd-block text-center mb-3' },
|
|
2790
|
-
|
|
2188
|
+
React.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2791
2189
|
);
|
|
2792
2190
|
};
|
|
2793
2191
|
|
|
@@ -2882,10 +2280,10 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2882
2280
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
|
|
2883
2281
|
};
|
|
2884
2282
|
|
|
2885
|
-
return
|
|
2283
|
+
return React.createElement(
|
|
2886
2284
|
'div',
|
|
2887
2285
|
null,
|
|
2888
|
-
vidLoaded &&
|
|
2286
|
+
vidLoaded && React.createElement(
|
|
2889
2287
|
'video',
|
|
2890
2288
|
{
|
|
2891
2289
|
poster: thumbnail || '',
|
|
@@ -2903,7 +2301,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2903
2301
|
onPlay: function onPlay(e) {
|
|
2904
2302
|
return handleOnPlay(e);
|
|
2905
2303
|
} },
|
|
2906
|
-
|
|
2304
|
+
React.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2907
2305
|
'Your browser does not support the video tag.'
|
|
2908
2306
|
)
|
|
2909
2307
|
);
|
|
@@ -2940,7 +2338,7 @@ var Video = function Video(_ref) {
|
|
|
2940
2338
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2941
2339
|
//console.log('success:', success.ref)
|
|
2942
2340
|
var player = success.ref;
|
|
2943
|
-
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2341
|
+
if (_typeof$1(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2944
2342
|
player.ima3.settings.debug = true;
|
|
2945
2343
|
if (targeting.content_placement && targeting.document_url) {
|
|
2946
2344
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -3038,53 +2436,53 @@ var Video = function Video(_ref) {
|
|
|
3038
2436
|
|
|
3039
2437
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
3040
2438
|
if (videoID) {
|
|
3041
|
-
return
|
|
2439
|
+
return React.createElement(
|
|
3042
2440
|
'div',
|
|
3043
2441
|
null,
|
|
3044
|
-
|
|
2442
|
+
React.createElement(ReactPlayerLoader, {
|
|
3045
2443
|
onSuccess: onVideoSuccess,
|
|
3046
2444
|
accountId: accountIDs.brightcove.accountId,
|
|
3047
2445
|
videoId: videoID,
|
|
3048
2446
|
playerId: accountIDs.brightcove.playerId,
|
|
3049
2447
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
3050
2448
|
}),
|
|
3051
|
-
|
|
2449
|
+
React.createElement(
|
|
3052
2450
|
'style',
|
|
3053
2451
|
{ jsx: 'true' },
|
|
3054
2452
|
'\n .brightcove-fluid {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n width: 100%;\n margin-bottom: 1rem;\n }\n .brightcove-fluid .video-js {\n height: 100%;\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n '
|
|
3055
2453
|
)
|
|
3056
2454
|
);
|
|
3057
2455
|
} else if (playlistID) {
|
|
3058
|
-
return
|
|
2456
|
+
return React.createElement(
|
|
3059
2457
|
'div',
|
|
3060
2458
|
null,
|
|
3061
|
-
|
|
2459
|
+
React.createElement(ReactPlayerLoader, {
|
|
3062
2460
|
accountId: accountIDs.brightcove.accountId,
|
|
3063
2461
|
playlistId: playlistID,
|
|
3064
2462
|
playerId: accountIDs.brightcove.playerId,
|
|
3065
2463
|
onSuccess: onVideoSuccess,
|
|
3066
2464
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
3067
2465
|
}),
|
|
3068
|
-
|
|
2466
|
+
React.createElement(
|
|
3069
2467
|
'style',
|
|
3070
2468
|
{ jsx: 'true' },
|
|
3071
2469
|
'\n .brightcove-fluid {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n width: 100%;\n margin-bottom: 1rem;\n }\n .brightcove-fluid .video-js {\n height: 100%;\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n '
|
|
3072
2470
|
)
|
|
3073
2471
|
);
|
|
3074
2472
|
} else if (experienceID) {
|
|
3075
|
-
return
|
|
2473
|
+
return React.createElement(
|
|
3076
2474
|
'div',
|
|
3077
2475
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
3078
|
-
videoLoaded &&
|
|
2476
|
+
videoLoaded && React.createElement('div', { 'data-experience': experienceID })
|
|
3079
2477
|
);
|
|
3080
2478
|
}
|
|
3081
2479
|
return null;
|
|
3082
2480
|
}
|
|
3083
2481
|
if (source === 'mp4') {
|
|
3084
|
-
return
|
|
2482
|
+
return React.createElement(
|
|
3085
2483
|
'div',
|
|
3086
2484
|
null,
|
|
3087
|
-
|
|
2485
|
+
React.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
3088
2486
|
);
|
|
3089
2487
|
}
|
|
3090
2488
|
|
|
@@ -3462,11 +2860,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
3462
2860
|
|
|
3463
2861
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3464
2862
|
|
|
3465
|
-
function
|
|
2863
|
+
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
3466
2864
|
|
|
3467
|
-
function
|
|
2865
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3468
2866
|
|
|
3469
|
-
function
|
|
2867
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
2868
|
+
|
|
2869
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
2870
|
+
|
|
2871
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
2872
|
+
|
|
2873
|
+
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
3470
2874
|
|
|
3471
2875
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3472
2876
|
|
|
@@ -3596,12 +3000,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3596
3000
|
|
|
3597
3001
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3598
3002
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3599
|
-
|
|
3600
|
-
var
|
|
3601
|
-
|
|
3003
|
+
|
|
3004
|
+
var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
|
|
3005
|
+
_step;
|
|
3602
3006
|
|
|
3603
3007
|
try {
|
|
3604
|
-
for (
|
|
3008
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3605
3009
|
var p = _step.value;
|
|
3606
3010
|
|
|
3607
3011
|
if (props$1[p]) {
|
|
@@ -3616,18 +3020,9 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3616
3020
|
}
|
|
3617
3021
|
}
|
|
3618
3022
|
} catch (err) {
|
|
3619
|
-
|
|
3620
|
-
_iteratorError = err;
|
|
3023
|
+
_iterator.e(err);
|
|
3621
3024
|
} finally {
|
|
3622
|
-
|
|
3623
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3624
|
-
_iterator["return"]();
|
|
3625
|
-
}
|
|
3626
|
-
} finally {
|
|
3627
|
-
if (_didIteratorError) {
|
|
3628
|
-
throw _iteratorError;
|
|
3629
|
-
}
|
|
3630
|
-
}
|
|
3025
|
+
_iterator.f();
|
|
3631
3026
|
}
|
|
3632
3027
|
|
|
3633
3028
|
return config;
|
|
@@ -3692,7 +3087,7 @@ function isEqual(a, b) {
|
|
|
3692
3087
|
return true;
|
|
3693
3088
|
}
|
|
3694
3089
|
|
|
3695
|
-
if ((0,
|
|
3090
|
+
if ((0, React.isValidElement)(a) && (0, React.isValidElement)(b)) {
|
|
3696
3091
|
return true;
|
|
3697
3092
|
}
|
|
3698
3093
|
|
|
@@ -3754,7 +3149,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3754
3149
|
});
|
|
3755
3150
|
exports["default"] = void 0;
|
|
3756
3151
|
|
|
3757
|
-
var _react = _interopRequireWildcard(
|
|
3152
|
+
var _react = _interopRequireWildcard(React);
|
|
3758
3153
|
|
|
3759
3154
|
|
|
3760
3155
|
|
|
@@ -3774,12 +3169,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3774
3169
|
|
|
3775
3170
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3776
3171
|
|
|
3777
|
-
function
|
|
3172
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
3778
3173
|
|
|
3779
|
-
function
|
|
3174
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3780
3175
|
|
|
3781
3176
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3782
3177
|
|
|
3178
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
3179
|
+
|
|
3180
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3181
|
+
|
|
3783
3182
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
3784
3183
|
|
|
3785
3184
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3788,14 +3187,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3788
3187
|
|
|
3789
3188
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3790
3189
|
|
|
3791
|
-
var Player =
|
|
3792
|
-
/*#__PURE__*/
|
|
3793
|
-
function (_Component) {
|
|
3190
|
+
var Player = /*#__PURE__*/function (_Component) {
|
|
3794
3191
|
_inherits(Player, _Component);
|
|
3795
3192
|
|
|
3796
|
-
|
|
3797
|
-
var _getPrototypeOf2;
|
|
3193
|
+
var _super = _createSuper(Player);
|
|
3798
3194
|
|
|
3195
|
+
function Player() {
|
|
3799
3196
|
var _this;
|
|
3800
3197
|
|
|
3801
3198
|
_classCallCheck(this, Player);
|
|
@@ -3804,7 +3201,7 @@ function (_Component) {
|
|
|
3804
3201
|
_args[_key] = arguments[_key];
|
|
3805
3202
|
}
|
|
3806
3203
|
|
|
3807
|
-
_this =
|
|
3204
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
3808
3205
|
|
|
3809
3206
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3810
3207
|
|
|
@@ -4129,7 +3526,7 @@ function (_Component) {
|
|
|
4129
3526
|
return null;
|
|
4130
3527
|
}
|
|
4131
3528
|
|
|
4132
|
-
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3529
|
+
return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
|
|
4133
3530
|
ref: this.ref,
|
|
4134
3531
|
onReady: this.handleReady,
|
|
4135
3532
|
onPlay: this.handlePlay,
|
|
@@ -4162,7 +3559,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4162
3559
|
});
|
|
4163
3560
|
exports["default"] = createSinglePlayer;
|
|
4164
3561
|
|
|
4165
|
-
var _react = _interopRequireWildcard(
|
|
3562
|
+
var _react = _interopRequireWildcard(React);
|
|
4166
3563
|
|
|
4167
3564
|
|
|
4168
3565
|
|
|
@@ -4190,12 +3587,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4190
3587
|
|
|
4191
3588
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4192
3589
|
|
|
4193
|
-
function
|
|
3590
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4194
3591
|
|
|
4195
|
-
function
|
|
3592
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4196
3593
|
|
|
4197
3594
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4198
3595
|
|
|
3596
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
3597
|
+
|
|
3598
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3599
|
+
|
|
4199
3600
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
4200
3601
|
|
|
4201
3602
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4207,14 +3608,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
4207
3608
|
function createSinglePlayer(activePlayer) {
|
|
4208
3609
|
var _class, _temp;
|
|
4209
3610
|
|
|
4210
|
-
return _temp = _class =
|
|
4211
|
-
/*#__PURE__*/
|
|
4212
|
-
function (_Component) {
|
|
3611
|
+
return _temp = _class = /*#__PURE__*/function (_Component) {
|
|
4213
3612
|
_inherits(SinglePlayer, _Component);
|
|
4214
3613
|
|
|
4215
|
-
|
|
4216
|
-
var _getPrototypeOf2;
|
|
3614
|
+
var _super = _createSuper(SinglePlayer);
|
|
4217
3615
|
|
|
3616
|
+
function SinglePlayer() {
|
|
4218
3617
|
var _this;
|
|
4219
3618
|
|
|
4220
3619
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -4223,7 +3622,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
4223
3622
|
args[_key] = arguments[_key];
|
|
4224
3623
|
}
|
|
4225
3624
|
|
|
4226
|
-
_this =
|
|
3625
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4227
3626
|
|
|
4228
3627
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
4229
3628
|
|
|
@@ -4291,12 +3690,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
4291
3690
|
height = _this$props.height,
|
|
4292
3691
|
Wrapper = _this$props.wrapper;
|
|
4293
3692
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
4294
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
3693
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
4295
3694
|
style: _objectSpread({}, style, {
|
|
4296
3695
|
width: width,
|
|
4297
3696
|
height: height
|
|
4298
3697
|
})
|
|
4299
|
-
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3698
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
4300
3699
|
ref: this.ref,
|
|
4301
3700
|
activePlayer: activePlayer,
|
|
4302
3701
|
config: this.config
|
|
@@ -4318,7 +3717,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4318
3717
|
});
|
|
4319
3718
|
exports["default"] = exports.YouTube = void 0;
|
|
4320
3719
|
|
|
4321
|
-
var _react = _interopRequireWildcard(
|
|
3720
|
+
var _react = _interopRequireWildcard(React);
|
|
4322
3721
|
|
|
4323
3722
|
|
|
4324
3723
|
|
|
@@ -4342,23 +3741,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4342
3741
|
|
|
4343
3742
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4344
3743
|
|
|
4345
|
-
function
|
|
3744
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4346
3745
|
|
|
4347
|
-
function
|
|
3746
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4348
3747
|
|
|
4349
3748
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4350
3749
|
|
|
3750
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
3751
|
+
|
|
3752
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3753
|
+
|
|
4351
3754
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
4352
3755
|
|
|
4353
3756
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
4354
3757
|
|
|
4355
3758
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
4356
3759
|
|
|
4357
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3760
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3761
|
+
|
|
3762
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3763
|
+
|
|
3764
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4358
3765
|
|
|
4359
|
-
function
|
|
3766
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
4360
3767
|
|
|
4361
|
-
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr)
|
|
3768
|
+
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
4362
3769
|
|
|
4363
3770
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
4364
3771
|
|
|
@@ -4383,14 +3790,12 @@ function parsePlaylist(url) {
|
|
|
4383
3790
|
return {};
|
|
4384
3791
|
}
|
|
4385
3792
|
|
|
4386
|
-
var YouTube =
|
|
4387
|
-
/*#__PURE__*/
|
|
4388
|
-
function (_Component) {
|
|
3793
|
+
var YouTube = /*#__PURE__*/function (_Component) {
|
|
4389
3794
|
_inherits(YouTube, _Component);
|
|
4390
3795
|
|
|
4391
|
-
|
|
4392
|
-
var _getPrototypeOf2;
|
|
3796
|
+
var _super = _createSuper(YouTube);
|
|
4393
3797
|
|
|
3798
|
+
function YouTube() {
|
|
4394
3799
|
var _this;
|
|
4395
3800
|
|
|
4396
3801
|
_classCallCheck(this, YouTube);
|
|
@@ -4399,7 +3804,7 @@ function (_Component) {
|
|
|
4399
3804
|
args[_key] = arguments[_key];
|
|
4400
3805
|
}
|
|
4401
3806
|
|
|
4402
|
-
_this =
|
|
3807
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4403
3808
|
|
|
4404
3809
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4405
3810
|
|
|
@@ -4587,9 +3992,9 @@ function (_Component) {
|
|
|
4587
3992
|
height: '100%',
|
|
4588
3993
|
display: display
|
|
4589
3994
|
};
|
|
4590
|
-
return _react["default"].createElement("div", {
|
|
3995
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4591
3996
|
style: style
|
|
4592
|
-
}, _react["default"].createElement("div", {
|
|
3997
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
4593
3998
|
ref: this.ref
|
|
4594
3999
|
}));
|
|
4595
4000
|
}
|
|
@@ -4621,7 +4026,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4621
4026
|
});
|
|
4622
4027
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4623
4028
|
|
|
4624
|
-
var _react = _interopRequireWildcard(
|
|
4029
|
+
var _react = _interopRequireWildcard(React);
|
|
4625
4030
|
|
|
4626
4031
|
|
|
4627
4032
|
|
|
@@ -4645,12 +4050,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4645
4050
|
|
|
4646
4051
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4647
4052
|
|
|
4648
|
-
function
|
|
4053
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4649
4054
|
|
|
4650
|
-
function
|
|
4055
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4651
4056
|
|
|
4652
4057
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4653
4058
|
|
|
4059
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
4060
|
+
|
|
4061
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4062
|
+
|
|
4654
4063
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
4655
4064
|
|
|
4656
4065
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4659,16 +4068,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4659
4068
|
|
|
4660
4069
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4661
4070
|
var SDK_GLOBAL = 'SC';
|
|
4662
|
-
var MATCH_URL = /(soundcloud\.com|snd\.sc)
|
|
4071
|
+
var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
4663
4072
|
|
|
4664
|
-
var SoundCloud =
|
|
4665
|
-
/*#__PURE__*/
|
|
4666
|
-
function (_Component) {
|
|
4073
|
+
var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
4667
4074
|
_inherits(SoundCloud, _Component);
|
|
4668
4075
|
|
|
4669
|
-
|
|
4670
|
-
var _getPrototypeOf2;
|
|
4076
|
+
var _super = _createSuper(SoundCloud);
|
|
4671
4077
|
|
|
4078
|
+
function SoundCloud() {
|
|
4672
4079
|
var _this;
|
|
4673
4080
|
|
|
4674
4081
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4677,7 +4084,7 @@ function (_Component) {
|
|
|
4677
4084
|
args[_key] = arguments[_key];
|
|
4678
4085
|
}
|
|
4679
4086
|
|
|
4680
|
-
_this =
|
|
4087
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4681
4088
|
|
|
4682
4089
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4683
4090
|
|
|
@@ -4798,7 +4205,7 @@ function (_Component) {
|
|
|
4798
4205
|
height: '100%',
|
|
4799
4206
|
display: display
|
|
4800
4207
|
};
|
|
4801
|
-
return _react["default"].createElement("iframe", {
|
|
4208
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4802
4209
|
ref: this.ref,
|
|
4803
4210
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4804
4211
|
style: style,
|
|
@@ -4836,7 +4243,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4836
4243
|
});
|
|
4837
4244
|
exports["default"] = exports.Vimeo = void 0;
|
|
4838
4245
|
|
|
4839
|
-
var _react = _interopRequireWildcard(
|
|
4246
|
+
var _react = _interopRequireWildcard(React);
|
|
4840
4247
|
|
|
4841
4248
|
|
|
4842
4249
|
|
|
@@ -4860,12 +4267,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4860
4267
|
|
|
4861
4268
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4862
4269
|
|
|
4863
|
-
function
|
|
4270
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4864
4271
|
|
|
4865
|
-
function
|
|
4272
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4866
4273
|
|
|
4867
4274
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4868
4275
|
|
|
4276
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
4277
|
+
|
|
4278
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4279
|
+
|
|
4869
4280
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
4870
4281
|
|
|
4871
4282
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4877,14 +4288,12 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4877
4288
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4878
4289
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4879
4290
|
|
|
4880
|
-
var Vimeo =
|
|
4881
|
-
/*#__PURE__*/
|
|
4882
|
-
function (_Component) {
|
|
4291
|
+
var Vimeo = /*#__PURE__*/function (_Component) {
|
|
4883
4292
|
_inherits(Vimeo, _Component);
|
|
4884
4293
|
|
|
4885
|
-
|
|
4886
|
-
var _getPrototypeOf2;
|
|
4294
|
+
var _super = _createSuper(Vimeo);
|
|
4887
4295
|
|
|
4296
|
+
function Vimeo() {
|
|
4888
4297
|
var _this;
|
|
4889
4298
|
|
|
4890
4299
|
_classCallCheck(this, Vimeo);
|
|
@@ -4893,7 +4302,7 @@ function (_Component) {
|
|
|
4893
4302
|
args[_key] = arguments[_key];
|
|
4894
4303
|
}
|
|
4895
4304
|
|
|
4896
|
-
_this =
|
|
4305
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4897
4306
|
|
|
4898
4307
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4899
4308
|
|
|
@@ -5050,7 +4459,7 @@ function (_Component) {
|
|
|
5050
4459
|
overflow: 'hidden',
|
|
5051
4460
|
display: display
|
|
5052
4461
|
};
|
|
5053
|
-
return _react["default"].createElement("div", {
|
|
4462
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5054
4463
|
key: this.props.url,
|
|
5055
4464
|
ref: this.ref,
|
|
5056
4465
|
style: style
|
|
@@ -5090,7 +4499,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5090
4499
|
});
|
|
5091
4500
|
exports["default"] = exports.Facebook = void 0;
|
|
5092
4501
|
|
|
5093
|
-
var _react = _interopRequireWildcard(
|
|
4502
|
+
var _react = _interopRequireWildcard(React);
|
|
5094
4503
|
|
|
5095
4504
|
|
|
5096
4505
|
|
|
@@ -5110,12 +4519,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5110
4519
|
|
|
5111
4520
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5112
4521
|
|
|
5113
|
-
function
|
|
4522
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5114
4523
|
|
|
5115
|
-
function
|
|
4524
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5116
4525
|
|
|
5117
4526
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5118
4527
|
|
|
4528
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
4529
|
+
|
|
4530
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4531
|
+
|
|
5119
4532
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
5120
4533
|
|
|
5121
4534
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5128,14 +4541,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
5128
4541
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
5129
4542
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
5130
4543
|
|
|
5131
|
-
var Facebook =
|
|
5132
|
-
/*#__PURE__*/
|
|
5133
|
-
function (_Component) {
|
|
4544
|
+
var Facebook = /*#__PURE__*/function (_Component) {
|
|
5134
4545
|
_inherits(Facebook, _Component);
|
|
5135
4546
|
|
|
5136
|
-
|
|
5137
|
-
var _getPrototypeOf2;
|
|
4547
|
+
var _super = _createSuper(Facebook);
|
|
5138
4548
|
|
|
4549
|
+
function Facebook() {
|
|
5139
4550
|
var _this;
|
|
5140
4551
|
|
|
5141
4552
|
_classCallCheck(this, Facebook);
|
|
@@ -5144,7 +4555,7 @@ function (_Component) {
|
|
|
5144
4555
|
args[_key] = arguments[_key];
|
|
5145
4556
|
}
|
|
5146
4557
|
|
|
5147
|
-
_this =
|
|
4558
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5148
4559
|
|
|
5149
4560
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5150
4561
|
|
|
@@ -5260,7 +4671,7 @@ function (_Component) {
|
|
|
5260
4671
|
width: '100%',
|
|
5261
4672
|
height: '100%'
|
|
5262
4673
|
};
|
|
5263
|
-
return _react["default"].createElement("div", {
|
|
4674
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5264
4675
|
style: style,
|
|
5265
4676
|
id: this.playerID,
|
|
5266
4677
|
className: "fb-video",
|
|
@@ -5300,7 +4711,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5300
4711
|
});
|
|
5301
4712
|
exports["default"] = exports.Streamable = void 0;
|
|
5302
4713
|
|
|
5303
|
-
var _react = _interopRequireWildcard(
|
|
4714
|
+
var _react = _interopRequireWildcard(React);
|
|
5304
4715
|
|
|
5305
4716
|
|
|
5306
4717
|
|
|
@@ -5320,12 +4731,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5320
4731
|
|
|
5321
4732
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5322
4733
|
|
|
5323
|
-
function
|
|
4734
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5324
4735
|
|
|
5325
|
-
function
|
|
4736
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5326
4737
|
|
|
5327
4738
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5328
4739
|
|
|
4740
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
4741
|
+
|
|
4742
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4743
|
+
|
|
5329
4744
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
5330
4745
|
|
|
5331
4746
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5336,14 +4751,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
5336
4751
|
var SDK_GLOBAL = 'playerjs';
|
|
5337
4752
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
5338
4753
|
|
|
5339
|
-
var Streamable =
|
|
5340
|
-
/*#__PURE__*/
|
|
5341
|
-
function (_Component) {
|
|
4754
|
+
var Streamable = /*#__PURE__*/function (_Component) {
|
|
5342
4755
|
_inherits(Streamable, _Component);
|
|
5343
4756
|
|
|
5344
|
-
|
|
5345
|
-
var _getPrototypeOf2;
|
|
4757
|
+
var _super = _createSuper(Streamable);
|
|
5346
4758
|
|
|
4759
|
+
function Streamable() {
|
|
5347
4760
|
var _this;
|
|
5348
4761
|
|
|
5349
4762
|
_classCallCheck(this, Streamable);
|
|
@@ -5352,7 +4765,7 @@ function (_Component) {
|
|
|
5352
4765
|
args[_key] = arguments[_key];
|
|
5353
4766
|
}
|
|
5354
4767
|
|
|
5355
|
-
_this =
|
|
4768
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5356
4769
|
|
|
5357
4770
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5358
4771
|
|
|
@@ -5472,7 +4885,7 @@ function (_Component) {
|
|
|
5472
4885
|
width: '100%',
|
|
5473
4886
|
height: '100%'
|
|
5474
4887
|
};
|
|
5475
|
-
return _react["default"].createElement("iframe", {
|
|
4888
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
5476
4889
|
ref: this.ref,
|
|
5477
4890
|
src: "https://streamable.com/o/".concat(id),
|
|
5478
4891
|
frameBorder: "0",
|
|
@@ -5509,7 +4922,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5509
4922
|
});
|
|
5510
4923
|
exports["default"] = exports.Wistia = void 0;
|
|
5511
4924
|
|
|
5512
|
-
var _react = _interopRequireWildcard(
|
|
4925
|
+
var _react = _interopRequireWildcard(React);
|
|
5513
4926
|
|
|
5514
4927
|
|
|
5515
4928
|
|
|
@@ -5533,12 +4946,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5533
4946
|
|
|
5534
4947
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5535
4948
|
|
|
5536
|
-
function
|
|
4949
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5537
4950
|
|
|
5538
|
-
function
|
|
4951
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5539
4952
|
|
|
5540
4953
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5541
4954
|
|
|
4955
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
4956
|
+
|
|
4957
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4958
|
+
|
|
5542
4959
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
5543
4960
|
|
|
5544
4961
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5549,26 +4966,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
5549
4966
|
var SDK_GLOBAL = 'Wistia';
|
|
5550
4967
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
5551
4968
|
|
|
5552
|
-
var Wistia =
|
|
5553
|
-
/*#__PURE__*/
|
|
5554
|
-
function (_Component) {
|
|
4969
|
+
var Wistia = /*#__PURE__*/function (_Component) {
|
|
5555
4970
|
_inherits(Wistia, _Component);
|
|
5556
4971
|
|
|
5557
|
-
|
|
5558
|
-
var _getPrototypeOf2;
|
|
4972
|
+
var _super = _createSuper(Wistia);
|
|
5559
4973
|
|
|
4974
|
+
function Wistia() {
|
|
5560
4975
|
var _this;
|
|
5561
4976
|
|
|
5562
4977
|
_classCallCheck(this, Wistia);
|
|
5563
4978
|
|
|
5564
|
-
for (var _len = arguments.length,
|
|
5565
|
-
|
|
4979
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4980
|
+
_args[_key] = arguments[_key];
|
|
5566
4981
|
}
|
|
5567
4982
|
|
|
5568
|
-
_this =
|
|
4983
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5569
4984
|
|
|
5570
4985
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5571
4986
|
|
|
4987
|
+
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4988
|
+
var _this$props;
|
|
4989
|
+
|
|
4990
|
+
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4991
|
+
});
|
|
4992
|
+
|
|
4993
|
+
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4994
|
+
var _this$props2;
|
|
4995
|
+
|
|
4996
|
+
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4997
|
+
});
|
|
4998
|
+
|
|
4999
|
+
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
5000
|
+
var _this$props3;
|
|
5001
|
+
|
|
5002
|
+
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5003
|
+
});
|
|
5004
|
+
|
|
5005
|
+
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5006
|
+
var _this$props4;
|
|
5007
|
+
|
|
5008
|
+
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5009
|
+
});
|
|
5010
|
+
|
|
5572
5011
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5573
5012
|
_this.callPlayer('mute');
|
|
5574
5013
|
});
|
|
@@ -5590,17 +5029,13 @@ function (_Component) {
|
|
|
5590
5029
|
value: function load(url) {
|
|
5591
5030
|
var _this2 = this;
|
|
5592
5031
|
|
|
5593
|
-
var _this$
|
|
5594
|
-
playing = _this$
|
|
5595
|
-
muted = _this$
|
|
5596
|
-
controls = _this$
|
|
5597
|
-
_onReady = _this$
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
onSeek = _this$props.onSeek,
|
|
5601
|
-
onEnded = _this$props.onEnded,
|
|
5602
|
-
config = _this$props.config,
|
|
5603
|
-
onError = _this$props.onError;
|
|
5032
|
+
var _this$props5 = this.props,
|
|
5033
|
+
playing = _this$props5.playing,
|
|
5034
|
+
muted = _this$props5.muted,
|
|
5035
|
+
controls = _this$props5.controls,
|
|
5036
|
+
_onReady = _this$props5.onReady,
|
|
5037
|
+
config = _this$props5.config,
|
|
5038
|
+
onError = _this$props5.onError;
|
|
5604
5039
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5605
5040
|
window._wq = window._wq || [];
|
|
5606
5041
|
|
|
@@ -5617,19 +5052,28 @@ function (_Component) {
|
|
|
5617
5052
|
|
|
5618
5053
|
_this2.unbind();
|
|
5619
5054
|
|
|
5620
|
-
_this2.player.bind('play', onPlay);
|
|
5055
|
+
_this2.player.bind('play', _this2.onPlay);
|
|
5621
5056
|
|
|
5622
|
-
_this2.player.bind('pause', onPause);
|
|
5057
|
+
_this2.player.bind('pause', _this2.onPause);
|
|
5623
5058
|
|
|
5624
|
-
_this2.player.bind('seek', onSeek);
|
|
5059
|
+
_this2.player.bind('seek', _this2.onSeek);
|
|
5625
5060
|
|
|
5626
|
-
_this2.player.bind('end', onEnded);
|
|
5061
|
+
_this2.player.bind('end', _this2.onEnded);
|
|
5627
5062
|
|
|
5628
5063
|
_onReady();
|
|
5629
5064
|
}
|
|
5630
5065
|
});
|
|
5631
5066
|
}, onError);
|
|
5632
5067
|
}
|
|
5068
|
+
}, {
|
|
5069
|
+
key: "unbind",
|
|
5070
|
+
value: function unbind() {
|
|
5071
|
+
this.player.unbind('play', this.onPlay);
|
|
5072
|
+
this.player.unbind('pause', this.onPause);
|
|
5073
|
+
this.player.unbind('seek', this.onSeek);
|
|
5074
|
+
this.player.unbind('end', this.onEnded);
|
|
5075
|
+
} // Proxy methods to prevent listener leaks
|
|
5076
|
+
|
|
5633
5077
|
}, {
|
|
5634
5078
|
key: "play",
|
|
5635
5079
|
value: function play() {
|
|
@@ -5640,19 +5084,6 @@ function (_Component) {
|
|
|
5640
5084
|
value: function pause() {
|
|
5641
5085
|
this.callPlayer('pause');
|
|
5642
5086
|
}
|
|
5643
|
-
}, {
|
|
5644
|
-
key: "unbind",
|
|
5645
|
-
value: function unbind() {
|
|
5646
|
-
var _this$props2 = this.props,
|
|
5647
|
-
onPlay = _this$props2.onPlay,
|
|
5648
|
-
onPause = _this$props2.onPause,
|
|
5649
|
-
onSeek = _this$props2.onSeek,
|
|
5650
|
-
onEnded = _this$props2.onEnded;
|
|
5651
|
-
this.player.unbind('play', onPlay);
|
|
5652
|
-
this.player.unbind('pause', onPause);
|
|
5653
|
-
this.player.unbind('seek', onSeek);
|
|
5654
|
-
this.player.unbind('end', onEnded);
|
|
5655
|
-
}
|
|
5656
5087
|
}, {
|
|
5657
5088
|
key: "stop",
|
|
5658
5089
|
value: function stop() {
|
|
@@ -5698,7 +5129,7 @@ function (_Component) {
|
|
|
5698
5129
|
width: '100%',
|
|
5699
5130
|
height: '100%'
|
|
5700
5131
|
};
|
|
5701
|
-
return _react["default"].createElement("div", {
|
|
5132
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5702
5133
|
key: id,
|
|
5703
5134
|
className: className,
|
|
5704
5135
|
style: style
|
|
@@ -5734,7 +5165,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5734
5165
|
});
|
|
5735
5166
|
exports["default"] = exports.Twitch = void 0;
|
|
5736
5167
|
|
|
5737
|
-
var _react = _interopRequireWildcard(
|
|
5168
|
+
var _react = _interopRequireWildcard(React);
|
|
5738
5169
|
|
|
5739
5170
|
|
|
5740
5171
|
|
|
@@ -5758,12 +5189,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5758
5189
|
|
|
5759
5190
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5760
5191
|
|
|
5761
|
-
function
|
|
5192
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5762
5193
|
|
|
5763
|
-
function
|
|
5194
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5764
5195
|
|
|
5765
5196
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5766
5197
|
|
|
5198
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
5199
|
+
|
|
5200
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5201
|
+
|
|
5767
5202
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
5768
5203
|
|
|
5769
5204
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5776,14 +5211,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5776
5211
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5777
5212
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5778
5213
|
|
|
5779
|
-
var Twitch =
|
|
5780
|
-
/*#__PURE__*/
|
|
5781
|
-
function (_Component) {
|
|
5214
|
+
var Twitch = /*#__PURE__*/function (_Component) {
|
|
5782
5215
|
_inherits(Twitch, _Component);
|
|
5783
5216
|
|
|
5784
|
-
|
|
5785
|
-
var _getPrototypeOf2;
|
|
5217
|
+
var _super = _createSuper(Twitch);
|
|
5786
5218
|
|
|
5219
|
+
function Twitch() {
|
|
5787
5220
|
var _this;
|
|
5788
5221
|
|
|
5789
5222
|
_classCallCheck(this, Twitch);
|
|
@@ -5792,7 +5225,7 @@ function (_Component) {
|
|
|
5792
5225
|
args[_key] = arguments[_key];
|
|
5793
5226
|
}
|
|
5794
5227
|
|
|
5795
|
-
_this =
|
|
5228
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5796
5229
|
|
|
5797
5230
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5798
5231
|
|
|
@@ -5913,7 +5346,7 @@ function (_Component) {
|
|
|
5913
5346
|
width: '100%',
|
|
5914
5347
|
height: '100%'
|
|
5915
5348
|
};
|
|
5916
|
-
return _react["default"].createElement("div", {
|
|
5349
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5917
5350
|
style: style,
|
|
5918
5351
|
id: this.playerID
|
|
5919
5352
|
});
|
|
@@ -5948,7 +5381,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5948
5381
|
});
|
|
5949
5382
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5950
5383
|
|
|
5951
|
-
var _react = _interopRequireWildcard(
|
|
5384
|
+
var _react = _interopRequireWildcard(React);
|
|
5952
5385
|
|
|
5953
5386
|
|
|
5954
5387
|
|
|
@@ -5966,11 +5399,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5966
5399
|
|
|
5967
5400
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
5968
5401
|
|
|
5969
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5402
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5403
|
+
|
|
5404
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5405
|
+
|
|
5406
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5970
5407
|
|
|
5971
|
-
function
|
|
5408
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
5972
5409
|
|
|
5973
|
-
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr)
|
|
5410
|
+
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
5974
5411
|
|
|
5975
5412
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5976
5413
|
|
|
@@ -5980,12 +5417,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5980
5417
|
|
|
5981
5418
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5982
5419
|
|
|
5983
|
-
function
|
|
5420
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5984
5421
|
|
|
5985
|
-
function
|
|
5422
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5986
5423
|
|
|
5987
5424
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5988
5425
|
|
|
5426
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
5427
|
+
|
|
5428
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5429
|
+
|
|
5989
5430
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
5990
5431
|
|
|
5991
5432
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5997,14 +5438,12 @@ var SDK_GLOBAL = 'DM';
|
|
|
5997
5438
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5998
5439
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5999
5440
|
|
|
6000
|
-
var DailyMotion =
|
|
6001
|
-
/*#__PURE__*/
|
|
6002
|
-
function (_Component) {
|
|
5441
|
+
var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
6003
5442
|
_inherits(DailyMotion, _Component);
|
|
6004
5443
|
|
|
6005
|
-
|
|
6006
|
-
var _getPrototypeOf2;
|
|
5444
|
+
var _super = _createSuper(DailyMotion);
|
|
6007
5445
|
|
|
5446
|
+
function DailyMotion() {
|
|
6008
5447
|
var _this;
|
|
6009
5448
|
|
|
6010
5449
|
_classCallCheck(this, DailyMotion);
|
|
@@ -6013,7 +5452,7 @@ function (_Component) {
|
|
|
6013
5452
|
args[_key] = arguments[_key];
|
|
6014
5453
|
}
|
|
6015
5454
|
|
|
6016
|
-
_this =
|
|
5455
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6017
5456
|
|
|
6018
5457
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
6019
5458
|
|
|
@@ -6142,9 +5581,9 @@ function (_Component) {
|
|
|
6142
5581
|
height: '100%',
|
|
6143
5582
|
display: display
|
|
6144
5583
|
};
|
|
6145
|
-
return _react["default"].createElement("div", {
|
|
5584
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
6146
5585
|
style: style
|
|
6147
|
-
}, _react["default"].createElement("div", {
|
|
5586
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
6148
5587
|
ref: this.ref
|
|
6149
5588
|
}));
|
|
6150
5589
|
}
|
|
@@ -6178,7 +5617,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6178
5617
|
});
|
|
6179
5618
|
exports["default"] = exports.Mixcloud = void 0;
|
|
6180
5619
|
|
|
6181
|
-
var _react = _interopRequireWildcard(
|
|
5620
|
+
var _react = _interopRequireWildcard(React);
|
|
6182
5621
|
|
|
6183
5622
|
|
|
6184
5623
|
|
|
@@ -6202,12 +5641,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6202
5641
|
|
|
6203
5642
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6204
5643
|
|
|
6205
|
-
function
|
|
5644
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6206
5645
|
|
|
6207
|
-
function
|
|
5646
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6208
5647
|
|
|
6209
5648
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6210
5649
|
|
|
5650
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
5651
|
+
|
|
5652
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5653
|
+
|
|
6211
5654
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
6212
5655
|
|
|
6213
5656
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6218,14 +5661,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
6218
5661
|
var SDK_GLOBAL = 'Mixcloud';
|
|
6219
5662
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
6220
5663
|
|
|
6221
|
-
var Mixcloud =
|
|
6222
|
-
/*#__PURE__*/
|
|
6223
|
-
function (_Component) {
|
|
5664
|
+
var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
6224
5665
|
_inherits(Mixcloud, _Component);
|
|
6225
5666
|
|
|
6226
|
-
|
|
6227
|
-
var _getPrototypeOf2;
|
|
5667
|
+
var _super = _createSuper(Mixcloud);
|
|
6228
5668
|
|
|
5669
|
+
function Mixcloud() {
|
|
6229
5670
|
var _this;
|
|
6230
5671
|
|
|
6231
5672
|
_classCallCheck(this, Mixcloud);
|
|
@@ -6234,7 +5675,7 @@ function (_Component) {
|
|
|
6234
5675
|
args[_key] = arguments[_key];
|
|
6235
5676
|
}
|
|
6236
5677
|
|
|
6237
|
-
_this =
|
|
5678
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6238
5679
|
|
|
6239
5680
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
6240
5681
|
|
|
@@ -6337,7 +5778,7 @@ function (_Component) {
|
|
|
6337
5778
|
})); // We have to give the iframe a key here to prevent a
|
|
6338
5779
|
// weird dialog appearing when loading a new track
|
|
6339
5780
|
|
|
6340
|
-
return _react["default"].createElement("iframe", {
|
|
5781
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
6341
5782
|
key: id,
|
|
6342
5783
|
ref: this.ref,
|
|
6343
5784
|
style: style,
|
|
@@ -6375,7 +5816,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6375
5816
|
});
|
|
6376
5817
|
exports["default"] = exports.FilePlayer = void 0;
|
|
6377
5818
|
|
|
6378
|
-
var _react = _interopRequireWildcard(
|
|
5819
|
+
var _react = _interopRequireWildcard(React);
|
|
6379
5820
|
|
|
6380
5821
|
|
|
6381
5822
|
|
|
@@ -6397,23 +5838,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6397
5838
|
|
|
6398
5839
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6399
5840
|
|
|
6400
|
-
function
|
|
5841
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6401
5842
|
|
|
6402
|
-
function
|
|
5843
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6403
5844
|
|
|
6404
5845
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6405
5846
|
|
|
5847
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
5848
|
+
|
|
5849
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5850
|
+
|
|
6406
5851
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
6407
5852
|
|
|
6408
5853
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
6409
5854
|
|
|
6410
5855
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6411
5856
|
|
|
5857
|
+
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
5858
|
+
|
|
5859
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5860
|
+
|
|
5861
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
5862
|
+
|
|
6412
5863
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
6413
5864
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
6414
5865
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
6415
5866
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
6416
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5867
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
|
|
6417
5868
|
var HLS_GLOBAL = 'Hls';
|
|
6418
5869
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
6419
5870
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -6422,12 +5873,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
6422
5873
|
|
|
6423
5874
|
function canPlay(url) {
|
|
6424
5875
|
if (url instanceof Array) {
|
|
6425
|
-
var
|
|
6426
|
-
|
|
6427
|
-
var _iteratorError = undefined;
|
|
5876
|
+
var _iterator = _createForOfIteratorHelper(url),
|
|
5877
|
+
_step;
|
|
6428
5878
|
|
|
6429
5879
|
try {
|
|
6430
|
-
for (
|
|
5880
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6431
5881
|
var item = _step.value;
|
|
6432
5882
|
|
|
6433
5883
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -6439,18 +5889,9 @@ function canPlay(url) {
|
|
|
6439
5889
|
}
|
|
6440
5890
|
}
|
|
6441
5891
|
} catch (err) {
|
|
6442
|
-
|
|
6443
|
-
_iteratorError = err;
|
|
5892
|
+
_iterator.e(err);
|
|
6444
5893
|
} finally {
|
|
6445
|
-
|
|
6446
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6447
|
-
_iterator["return"]();
|
|
6448
|
-
}
|
|
6449
|
-
} finally {
|
|
6450
|
-
if (_didIteratorError) {
|
|
6451
|
-
throw _iteratorError;
|
|
6452
|
-
}
|
|
6453
|
-
}
|
|
5894
|
+
_iterator.f();
|
|
6454
5895
|
}
|
|
6455
5896
|
|
|
6456
5897
|
return false;
|
|
@@ -6474,14 +5915,12 @@ function canEnablePIP(url) {
|
|
|
6474
5915
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
6475
5916
|
}
|
|
6476
5917
|
|
|
6477
|
-
var FilePlayer =
|
|
6478
|
-
/*#__PURE__*/
|
|
6479
|
-
function (_Component) {
|
|
5918
|
+
var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
6480
5919
|
_inherits(FilePlayer, _Component);
|
|
6481
5920
|
|
|
6482
|
-
|
|
6483
|
-
var _getPrototypeOf2;
|
|
5921
|
+
var _super = _createSuper(FilePlayer);
|
|
6484
5922
|
|
|
5923
|
+
function FilePlayer() {
|
|
6485
5924
|
var _this;
|
|
6486
5925
|
|
|
6487
5926
|
_classCallCheck(this, FilePlayer);
|
|
@@ -6490,7 +5929,7 @@ function (_Component) {
|
|
|
6490
5929
|
_args[_key] = arguments[_key];
|
|
6491
5930
|
}
|
|
6492
5931
|
|
|
6493
|
-
_this =
|
|
5932
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
6494
5933
|
|
|
6495
5934
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
6496
5935
|
var _this$props;
|
|
@@ -6577,19 +6016,19 @@ function (_Component) {
|
|
|
6577
6016
|
|
|
6578
6017
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6579
6018
|
if (typeof source === 'string') {
|
|
6580
|
-
return _react["default"].createElement("source", {
|
|
6019
|
+
return /*#__PURE__*/_react["default"].createElement("source", {
|
|
6581
6020
|
key: index,
|
|
6582
6021
|
src: source
|
|
6583
6022
|
});
|
|
6584
6023
|
}
|
|
6585
6024
|
|
|
6586
|
-
return _react["default"].createElement("source", _extends({
|
|
6025
|
+
return /*#__PURE__*/_react["default"].createElement("source", _extends({
|
|
6587
6026
|
key: index
|
|
6588
6027
|
}, source));
|
|
6589
6028
|
});
|
|
6590
6029
|
|
|
6591
6030
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6592
|
-
return _react["default"].createElement("track", _extends({
|
|
6031
|
+
return /*#__PURE__*/_react["default"].createElement("track", _extends({
|
|
6593
6032
|
key: index
|
|
6594
6033
|
}, track));
|
|
6595
6034
|
});
|
|
@@ -6627,6 +6066,10 @@ function (_Component) {
|
|
|
6627
6066
|
key: "componentWillUnmount",
|
|
6628
6067
|
value: function componentWillUnmount() {
|
|
6629
6068
|
this.removeListeners(this.player);
|
|
6069
|
+
|
|
6070
|
+
if (this.hls) {
|
|
6071
|
+
this.hls.destroy();
|
|
6072
|
+
}
|
|
6630
6073
|
}
|
|
6631
6074
|
}, {
|
|
6632
6075
|
key: "addListeners",
|
|
@@ -6757,10 +6200,6 @@ function (_Component) {
|
|
|
6757
6200
|
value: function stop() {
|
|
6758
6201
|
this.player.removeAttribute('src');
|
|
6759
6202
|
|
|
6760
|
-
if (this.hls) {
|
|
6761
|
-
this.hls.destroy();
|
|
6762
|
-
}
|
|
6763
|
-
|
|
6764
6203
|
if (this.dash) {
|
|
6765
6204
|
this.dash.reset();
|
|
6766
6205
|
}
|
|
@@ -6872,7 +6311,7 @@ function (_Component) {
|
|
|
6872
6311
|
width: width === 'auto' ? width : '100%',
|
|
6873
6312
|
height: height === 'auto' ? height : '100%'
|
|
6874
6313
|
};
|
|
6875
|
-
return _react["default"].createElement(Element, _extends({
|
|
6314
|
+
return /*#__PURE__*/_react["default"].createElement(Element, _extends({
|
|
6876
6315
|
ref: this.ref,
|
|
6877
6316
|
src: this.getSource(url),
|
|
6878
6317
|
style: style,
|
|
@@ -6944,7 +6383,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6944
6383
|
});
|
|
6945
6384
|
exports["default"] = void 0;
|
|
6946
6385
|
|
|
6947
|
-
var _react = _interopRequireWildcard(
|
|
6386
|
+
var _react = _interopRequireWildcard(React);
|
|
6948
6387
|
|
|
6949
6388
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6950
6389
|
|
|
@@ -6962,12 +6401,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6962
6401
|
|
|
6963
6402
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6964
6403
|
|
|
6965
|
-
function
|
|
6404
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6966
6405
|
|
|
6967
|
-
function
|
|
6406
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6968
6407
|
|
|
6969
6408
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6970
6409
|
|
|
6410
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
6411
|
+
|
|
6412
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6413
|
+
|
|
6971
6414
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
6972
6415
|
|
|
6973
6416
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6976,14 +6419,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6976
6419
|
|
|
6977
6420
|
var ICON_SIZE = '64px';
|
|
6978
6421
|
|
|
6979
|
-
var Preview =
|
|
6980
|
-
/*#__PURE__*/
|
|
6981
|
-
function (_Component) {
|
|
6422
|
+
var Preview = /*#__PURE__*/function (_Component) {
|
|
6982
6423
|
_inherits(Preview, _Component);
|
|
6983
6424
|
|
|
6984
|
-
|
|
6985
|
-
var _getPrototypeOf2;
|
|
6425
|
+
var _super = _createSuper(Preview);
|
|
6986
6426
|
|
|
6427
|
+
function Preview() {
|
|
6987
6428
|
var _this;
|
|
6988
6429
|
|
|
6989
6430
|
_classCallCheck(this, Preview);
|
|
@@ -6992,7 +6433,7 @@ function (_Component) {
|
|
|
6992
6433
|
args[_key] = arguments[_key];
|
|
6993
6434
|
}
|
|
6994
6435
|
|
|
6995
|
-
_this =
|
|
6436
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6996
6437
|
|
|
6997
6438
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6998
6439
|
|
|
@@ -7090,15 +6531,15 @@ function (_Component) {
|
|
|
7090
6531
|
}
|
|
7091
6532
|
};
|
|
7092
6533
|
|
|
7093
|
-
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6534
|
+
var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
|
|
7094
6535
|
style: styles.shadow,
|
|
7095
6536
|
className: "react-player__shadow"
|
|
7096
|
-
}, _react["default"].createElement("div", {
|
|
6537
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
7097
6538
|
style: styles.playIcon,
|
|
7098
6539
|
className: "react-player__play-icon"
|
|
7099
6540
|
}));
|
|
7100
6541
|
|
|
7101
|
-
return _react["default"].createElement("div", {
|
|
6542
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
7102
6543
|
style: styles.preview,
|
|
7103
6544
|
className: "react-player__preview",
|
|
7104
6545
|
onClick: onClick
|
|
@@ -7121,7 +6562,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7121
6562
|
});
|
|
7122
6563
|
exports["default"] = renderPreloadPlayers;
|
|
7123
6564
|
|
|
7124
|
-
var _react = _interopRequireDefault(
|
|
6565
|
+
var _react = _interopRequireDefault(React);
|
|
7125
6566
|
|
|
7126
6567
|
var _Player = _interopRequireDefault(Player_1);
|
|
7127
6568
|
|
|
@@ -7135,6 +6576,12 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
7135
6576
|
|
|
7136
6577
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
7137
6578
|
|
|
6579
|
+
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
6580
|
+
|
|
6581
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6582
|
+
|
|
6583
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
6584
|
+
|
|
7138
6585
|
var PRELOAD_PLAYERS = [{
|
|
7139
6586
|
Player: YouTube_1.YouTube,
|
|
7140
6587
|
configKey: 'youtube',
|
|
@@ -7155,16 +6602,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
7155
6602
|
|
|
7156
6603
|
function renderPreloadPlayers(url, controls, config) {
|
|
7157
6604
|
var players = [];
|
|
7158
|
-
|
|
7159
|
-
var
|
|
7160
|
-
|
|
6605
|
+
|
|
6606
|
+
var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
|
|
6607
|
+
_step;
|
|
7161
6608
|
|
|
7162
6609
|
try {
|
|
7163
|
-
for (
|
|
6610
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
7164
6611
|
var player = _step.value;
|
|
7165
6612
|
|
|
7166
6613
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
7167
|
-
players.push(_react["default"].createElement(_Player["default"], {
|
|
6614
|
+
players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
|
|
7168
6615
|
key: player.Player.displayName,
|
|
7169
6616
|
activePlayer: player.Player,
|
|
7170
6617
|
url: player.url,
|
|
@@ -7176,18 +6623,9 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
7176
6623
|
}
|
|
7177
6624
|
}
|
|
7178
6625
|
} catch (err) {
|
|
7179
|
-
|
|
7180
|
-
_iteratorError = err;
|
|
6626
|
+
_iterator.e(err);
|
|
7181
6627
|
} finally {
|
|
7182
|
-
|
|
7183
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
7184
|
-
_iterator["return"]();
|
|
7185
|
-
}
|
|
7186
|
-
} finally {
|
|
7187
|
-
if (_didIteratorError) {
|
|
7188
|
-
throw _iteratorError;
|
|
7189
|
-
}
|
|
7190
|
-
}
|
|
6628
|
+
_iterator.f();
|
|
7191
6629
|
}
|
|
7192
6630
|
|
|
7193
6631
|
return players;
|
|
@@ -7263,7 +6701,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
7263
6701
|
});
|
|
7264
6702
|
exports["default"] = void 0;
|
|
7265
6703
|
|
|
7266
|
-
var _react = _interopRequireWildcard(
|
|
6704
|
+
var _react = _interopRequireWildcard(React);
|
|
7267
6705
|
|
|
7268
6706
|
|
|
7269
6707
|
|
|
@@ -7311,13 +6749,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
7311
6749
|
|
|
7312
6750
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
7313
6751
|
|
|
7314
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6752
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6753
|
+
|
|
6754
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
7315
6755
|
|
|
7316
|
-
function
|
|
6756
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
7317
6757
|
|
|
7318
|
-
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter)
|
|
6758
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
7319
6759
|
|
|
7320
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr))
|
|
6760
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6761
|
+
|
|
6762
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
7321
6763
|
|
|
7322
6764
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7323
6765
|
|
|
@@ -7325,12 +6767,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
7325
6767
|
|
|
7326
6768
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
7327
6769
|
|
|
7328
|
-
function
|
|
6770
|
+
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7329
6771
|
|
|
7330
|
-
function
|
|
6772
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
7331
6773
|
|
|
7332
6774
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
7333
6775
|
|
|
6776
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
6777
|
+
|
|
6778
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6779
|
+
|
|
7334
6780
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
7335
6781
|
|
|
7336
6782
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -7340,14 +6786,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
7340
6786
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
7341
6787
|
var customPlayers = [];
|
|
7342
6788
|
|
|
7343
|
-
var ReactPlayer =
|
|
7344
|
-
/*#__PURE__*/
|
|
7345
|
-
function (_Component) {
|
|
6789
|
+
var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
7346
6790
|
_inherits(ReactPlayer, _Component);
|
|
7347
6791
|
|
|
7348
|
-
|
|
7349
|
-
var _getPrototypeOf2;
|
|
6792
|
+
var _super = _createSuper(ReactPlayer);
|
|
7350
6793
|
|
|
6794
|
+
function ReactPlayer() {
|
|
7351
6795
|
var _this;
|
|
7352
6796
|
|
|
7353
6797
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -7356,7 +6800,7 @@ function (_Component) {
|
|
|
7356
6800
|
args[_key] = arguments[_key];
|
|
7357
6801
|
}
|
|
7358
6802
|
|
|
7359
|
-
_this =
|
|
6803
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
7360
6804
|
|
|
7361
6805
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
7362
6806
|
|
|
@@ -7467,7 +6911,7 @@ function (_Component) {
|
|
|
7467
6911
|
key: "renderActivePlayer",
|
|
7468
6912
|
value: function renderActivePlayer(url, activePlayer) {
|
|
7469
6913
|
if (!url) return null;
|
|
7470
|
-
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6914
|
+
return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
7471
6915
|
key: activePlayer.displayName,
|
|
7472
6916
|
ref: this.activePlayerRef,
|
|
7473
6917
|
config: this.config,
|
|
@@ -7504,14 +6948,14 @@ function (_Component) {
|
|
|
7504
6948
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
7505
6949
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
7506
6950
|
|
|
7507
|
-
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6951
|
+
var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
|
|
7508
6952
|
url: url,
|
|
7509
6953
|
light: light,
|
|
7510
6954
|
playIcon: playIcon,
|
|
7511
6955
|
onClick: this.handleClickPreview
|
|
7512
6956
|
});
|
|
7513
6957
|
|
|
7514
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
6958
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
7515
6959
|
ref: this.wrapperRef,
|
|
7516
6960
|
style: _objectSpread({}, style, {
|
|
7517
6961
|
width: width,
|
|
@@ -7571,20 +7015,20 @@ var Audio = function Audio(_ref) {
|
|
|
7571
7015
|
var node = _ref.node;
|
|
7572
7016
|
|
|
7573
7017
|
if (node.uploadAudio) {
|
|
7574
|
-
return
|
|
7018
|
+
return React.createElement(
|
|
7575
7019
|
'div',
|
|
7576
7020
|
{ className: 'audio d-block text-center mb-3' },
|
|
7577
|
-
|
|
7021
|
+
React.createElement(
|
|
7578
7022
|
'audio',
|
|
7579
7023
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7580
|
-
|
|
7581
|
-
|
|
7024
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7025
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7582
7026
|
'Your browser does not support the audio element.'
|
|
7583
7027
|
),
|
|
7584
|
-
node.caption &&
|
|
7028
|
+
node.caption && React.createElement(
|
|
7585
7029
|
'p',
|
|
7586
7030
|
{ style: { fontSize: '.9rem' } },
|
|
7587
|
-
|
|
7031
|
+
React.createElement(
|
|
7588
7032
|
'em',
|
|
7589
7033
|
null,
|
|
7590
7034
|
node.caption
|
|
@@ -7594,15 +7038,15 @@ var Audio = function Audio(_ref) {
|
|
|
7594
7038
|
} else if (node.audioFilePth) {
|
|
7595
7039
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7596
7040
|
if (hostname === 'embeds.audioboom.com') {
|
|
7597
|
-
return
|
|
7041
|
+
return React.createElement(
|
|
7598
7042
|
'div',
|
|
7599
7043
|
null,
|
|
7600
|
-
|
|
7044
|
+
React.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7601
7045
|
' ',
|
|
7602
|
-
node.caption &&
|
|
7046
|
+
node.caption && React.createElement(
|
|
7603
7047
|
'p',
|
|
7604
7048
|
{ style: { fontSize: '.9rem' } },
|
|
7605
|
-
|
|
7049
|
+
React.createElement(
|
|
7606
7050
|
'em',
|
|
7607
7051
|
null,
|
|
7608
7052
|
node.caption
|
|
@@ -7610,14 +7054,14 @@ var Audio = function Audio(_ref) {
|
|
|
7610
7054
|
)
|
|
7611
7055
|
);
|
|
7612
7056
|
}
|
|
7613
|
-
return
|
|
7057
|
+
return React.createElement(
|
|
7614
7058
|
'div',
|
|
7615
7059
|
{ className: 'audio' },
|
|
7616
|
-
|
|
7617
|
-
node.caption &&
|
|
7060
|
+
React.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7061
|
+
node.caption && React.createElement(
|
|
7618
7062
|
'p',
|
|
7619
7063
|
{ style: { fontSize: '.9rem' } },
|
|
7620
|
-
|
|
7064
|
+
React.createElement(
|
|
7621
7065
|
'em',
|
|
7622
7066
|
null,
|
|
7623
7067
|
node.caption
|
|
@@ -7635,34 +7079,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7635
7079
|
var profileImage = arguments[6];
|
|
7636
7080
|
|
|
7637
7081
|
if (authorName && authorURL) {
|
|
7638
|
-
return
|
|
7082
|
+
return React.createElement(
|
|
7639
7083
|
'span',
|
|
7640
7084
|
null,
|
|
7641
|
-
|
|
7085
|
+
React.createElement(
|
|
7642
7086
|
'a',
|
|
7643
7087
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7644
7088
|
authorName
|
|
7645
7089
|
),
|
|
7646
|
-
|
|
7090
|
+
React.createElement(
|
|
7647
7091
|
Card,
|
|
7648
7092
|
{ className: 'author-details-card-' + index },
|
|
7649
|
-
|
|
7093
|
+
React.createElement(
|
|
7650
7094
|
Row,
|
|
7651
7095
|
null,
|
|
7652
|
-
profileImage &&
|
|
7096
|
+
profileImage && React.createElement(
|
|
7653
7097
|
Col,
|
|
7654
7098
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7655
|
-
|
|
7099
|
+
React.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7656
7100
|
),
|
|
7657
|
-
|
|
7101
|
+
React.createElement(
|
|
7658
7102
|
Col,
|
|
7659
7103
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7660
|
-
|
|
7104
|
+
React.createElement(
|
|
7661
7105
|
'div',
|
|
7662
7106
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7663
7107
|
authorName
|
|
7664
7108
|
),
|
|
7665
|
-
|
|
7109
|
+
React.createElement(
|
|
7666
7110
|
'p',
|
|
7667
7111
|
null,
|
|
7668
7112
|
biography
|
|
@@ -7670,7 +7114,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7670
7114
|
)
|
|
7671
7115
|
)
|
|
7672
7116
|
),
|
|
7673
|
-
|
|
7117
|
+
React.createElement(
|
|
7674
7118
|
'style',
|
|
7675
7119
|
{ jsx: 'true' },
|
|
7676
7120
|
'\n .author-details-card-' + index + ' {\n display: none;\n position: absolute;\n width: 90%;\n max-width: 450px;\n z-index: 9999;\n }\n .author-details-card-' + index + ' h5 {\n font-weight: 500;\n }\n .author-details-link-' + index + ':hover + .author-details-card-' + index + ', .author-details-card-' + index + ':hover {\n display: block;\n box-shadow: 0px 0px 5px #aaa;\n padding: 15px;\n border-radius: 5px;\n }\n '
|
|
@@ -7678,7 +7122,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7678
7122
|
length !== index + 1 && ' , '
|
|
7679
7123
|
);
|
|
7680
7124
|
} else if (authorName) {
|
|
7681
|
-
return
|
|
7125
|
+
return React.createElement(
|
|
7682
7126
|
'span',
|
|
7683
7127
|
{ key: index },
|
|
7684
7128
|
authorName,
|
|
@@ -7950,44 +7394,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7950
7394
|
}
|
|
7951
7395
|
};
|
|
7952
7396
|
|
|
7953
|
-
return
|
|
7397
|
+
return React.createElement(
|
|
7954
7398
|
'div',
|
|
7955
7399
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7956
|
-
|
|
7400
|
+
React.createElement(
|
|
7957
7401
|
'div',
|
|
7958
7402
|
{ className: 'mt-2 mb-5' },
|
|
7959
|
-
series &&
|
|
7403
|
+
series && React.createElement(
|
|
7960
7404
|
'div',
|
|
7961
7405
|
{ style: { fontSize: '0.9rem' } },
|
|
7962
7406
|
article.title,
|
|
7963
7407
|
' - Episode ',
|
|
7964
7408
|
series
|
|
7965
7409
|
),
|
|
7966
|
-
Videos[series - 1] &&
|
|
7410
|
+
Videos[series - 1] && React.createElement(
|
|
7967
7411
|
'h1',
|
|
7968
7412
|
{ className: 'mb-3' },
|
|
7969
7413
|
Videos[series - 1].title
|
|
7970
7414
|
),
|
|
7971
|
-
|
|
7415
|
+
React.createElement(
|
|
7972
7416
|
'div',
|
|
7973
7417
|
null,
|
|
7974
7418
|
moment(article.published).format('LL')
|
|
7975
7419
|
),
|
|
7976
|
-
|
|
7420
|
+
React.createElement(
|
|
7977
7421
|
'div',
|
|
7978
7422
|
{ className: 'mb-3' },
|
|
7979
7423
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7980
|
-
return
|
|
7424
|
+
return React.createElement(
|
|
7981
7425
|
'span',
|
|
7982
7426
|
{ key: index },
|
|
7983
7427
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
7984
7428
|
);
|
|
7985
7429
|
})
|
|
7986
7430
|
),
|
|
7987
|
-
|
|
7431
|
+
React.createElement(
|
|
7988
7432
|
'p',
|
|
7989
7433
|
null,
|
|
7990
|
-
|
|
7434
|
+
React.createElement(SocialShare, {
|
|
7991
7435
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7992
7436
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7993
7437
|
shareVia: meta.shareVia,
|
|
@@ -8002,20 +7446,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
8002
7446
|
hideFacebook: meta.hideFBShare
|
|
8003
7447
|
})
|
|
8004
7448
|
),
|
|
8005
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7449
|
+
Videos[series - 1] && Videos[series - 1].intro && React.createElement(
|
|
8006
7450
|
'p',
|
|
8007
7451
|
{ className: 'mb-3' },
|
|
8008
|
-
|
|
7452
|
+
React.createElement(
|
|
8009
7453
|
'em',
|
|
8010
7454
|
null,
|
|
8011
7455
|
Videos[series - 1].intro
|
|
8012
7456
|
)
|
|
8013
7457
|
)
|
|
8014
7458
|
),
|
|
8015
|
-
|
|
7459
|
+
React.createElement(
|
|
8016
7460
|
'div',
|
|
8017
7461
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
8018
|
-
vidUrl && vidType == 'youtube' &&
|
|
7462
|
+
vidUrl && vidType == 'youtube' && React.createElement(YouTube, {
|
|
8019
7463
|
className: 'fluid-iframe',
|
|
8020
7464
|
videoId: getYoutubeId(vidUrl),
|
|
8021
7465
|
opts: opts,
|
|
@@ -8026,10 +7470,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
8026
7470
|
return handleOnEnd(e);
|
|
8027
7471
|
}
|
|
8028
7472
|
}),
|
|
8029
|
-
vidUrl && vidType == 'mp4' &&
|
|
8030
|
-
vidUrl && vidType == 'brightcove' &&
|
|
8031
|
-
|
|
8032
|
-
series &&
|
|
7473
|
+
vidUrl && vidType == 'mp4' && React.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7474
|
+
vidUrl && vidType == 'brightcove' && React.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7475
|
+
React.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7476
|
+
series && React.createElement(
|
|
8033
7477
|
'div',
|
|
8034
7478
|
{
|
|
8035
7479
|
className: 'vid-series',
|
|
@@ -8039,10 +7483,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
8039
7483
|
maxHeight: '100%',
|
|
8040
7484
|
paddingBottom: '0'
|
|
8041
7485
|
} },
|
|
8042
|
-
|
|
7486
|
+
React.createElement(
|
|
8043
7487
|
'p',
|
|
8044
7488
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
8045
|
-
|
|
7489
|
+
React.createElement(
|
|
8046
7490
|
'b',
|
|
8047
7491
|
{ style: { fontSize: '1.25em' } },
|
|
8048
7492
|
'Now Playing:'
|
|
@@ -8050,16 +7494,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
8050
7494
|
' ',
|
|
8051
7495
|
seriesData[series ? series - 1 : 0].title
|
|
8052
7496
|
),
|
|
8053
|
-
vidUrl &&
|
|
7497
|
+
vidUrl && React.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
8054
7498
|
)
|
|
8055
7499
|
),
|
|
8056
|
-
|
|
8057
|
-
|
|
7500
|
+
React.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7501
|
+
React.createElement(
|
|
8058
7502
|
'div',
|
|
8059
7503
|
{ className: 'vid-text' },
|
|
8060
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
7504
|
+
Videos[series - 1] && Videos[series - 1].text && React.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
8061
7505
|
),
|
|
8062
|
-
|
|
7506
|
+
React.createElement(
|
|
8063
7507
|
'style',
|
|
8064
7508
|
{ jsx: 'true' },
|
|
8065
7509
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -8112,67 +7556,67 @@ var Poll = function Poll(_ref) {
|
|
|
8112
7556
|
return acc;
|
|
8113
7557
|
}
|
|
8114
7558
|
}, 0);
|
|
8115
|
-
return
|
|
8116
|
-
|
|
7559
|
+
return React.createElement(
|
|
7560
|
+
React.Fragment,
|
|
8117
7561
|
null,
|
|
8118
|
-
question &&
|
|
7562
|
+
question && React.createElement(
|
|
8119
7563
|
'p',
|
|
8120
7564
|
{ className: 'font-weight-bold' },
|
|
8121
7565
|
question
|
|
8122
7566
|
),
|
|
8123
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7567
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
8124
7568
|
'form',
|
|
8125
7569
|
{ onSubmit: function onSubmit(e) {
|
|
8126
7570
|
return onSubmitPoll(e);
|
|
8127
7571
|
} },
|
|
8128
7572
|
choices && choices.map(function (choice) {
|
|
8129
|
-
return
|
|
7573
|
+
return React.createElement(
|
|
8130
7574
|
'div',
|
|
8131
7575
|
{ key: choice._key },
|
|
8132
|
-
|
|
7576
|
+
React.createElement(
|
|
8133
7577
|
'label',
|
|
8134
7578
|
{ className: 'pl-2' },
|
|
8135
|
-
|
|
7579
|
+
React.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
8136
7580
|
return setSelectedChoice(e.target.value);
|
|
8137
7581
|
} }),
|
|
8138
7582
|
' ' + choice.choiceText
|
|
8139
7583
|
)
|
|
8140
7584
|
);
|
|
8141
7585
|
}),
|
|
8142
|
-
|
|
7586
|
+
React.createElement(
|
|
8143
7587
|
Button,
|
|
8144
7588
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
8145
7589
|
'Vote'
|
|
8146
7590
|
)
|
|
8147
7591
|
),
|
|
8148
|
-
|
|
7592
|
+
React.createElement(
|
|
8149
7593
|
'div',
|
|
8150
7594
|
{ className: 'progress-container' },
|
|
8151
7595
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
8152
7596
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
8153
|
-
return
|
|
7597
|
+
return React.createElement(
|
|
8154
7598
|
'div',
|
|
8155
7599
|
{ key: choice._key, className: 'mb-3' },
|
|
8156
|
-
|
|
7600
|
+
React.createElement(
|
|
8157
7601
|
'div',
|
|
8158
7602
|
{ className: 'correct-answer' },
|
|
8159
|
-
|
|
7603
|
+
React.createElement(
|
|
8160
7604
|
'div',
|
|
8161
7605
|
null,
|
|
8162
7606
|
choice.choiceText
|
|
8163
7607
|
),
|
|
8164
|
-
choice.choiceAnswer === true &&
|
|
7608
|
+
choice.choiceAnswer === true && React.createElement(
|
|
8165
7609
|
'div',
|
|
8166
7610
|
null,
|
|
8167
|
-
|
|
7611
|
+
React.createElement(
|
|
8168
7612
|
'span',
|
|
8169
7613
|
{ style: { color: 'limegreen' } },
|
|
8170
7614
|
'Correct!'
|
|
8171
7615
|
)
|
|
8172
7616
|
)
|
|
8173
7617
|
),
|
|
8174
|
-
|
|
8175
|
-
|
|
7618
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7619
|
+
React.createElement(
|
|
8176
7620
|
'span',
|
|
8177
7621
|
{ className: 'float-right' },
|
|
8178
7622
|
percentage,
|
|
@@ -8183,14 +7627,14 @@ var Poll = function Poll(_ref) {
|
|
|
8183
7627
|
);
|
|
8184
7628
|
})
|
|
8185
7629
|
),
|
|
8186
|
-
showAnswer &&
|
|
7630
|
+
showAnswer && React.createElement(
|
|
8187
7631
|
'h4',
|
|
8188
7632
|
{ className: 'text-center small p-3' },
|
|
8189
7633
|
'Total Votes: ',
|
|
8190
7634
|
choicesTotalCount
|
|
8191
7635
|
),
|
|
8192
|
-
showAnswer && response &&
|
|
8193
|
-
|
|
7636
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7637
|
+
React.createElement(
|
|
8194
7638
|
'style',
|
|
8195
7639
|
{ jsx: 'true' },
|
|
8196
7640
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -8289,67 +7733,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
8289
7733
|
return acc;
|
|
8290
7734
|
}
|
|
8291
7735
|
}, 0);
|
|
8292
|
-
return
|
|
8293
|
-
|
|
7736
|
+
return React.createElement(
|
|
7737
|
+
React.Fragment,
|
|
8294
7738
|
null,
|
|
8295
|
-
question &&
|
|
7739
|
+
question && React.createElement(
|
|
8296
7740
|
'p',
|
|
8297
7741
|
{ className: 'font-weight-bold' },
|
|
8298
7742
|
question
|
|
8299
7743
|
),
|
|
8300
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7744
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
8301
7745
|
'form',
|
|
8302
7746
|
{ onSubmit: function onSubmit(e) {
|
|
8303
7747
|
return onSubmitPoll(e);
|
|
8304
7748
|
} },
|
|
8305
7749
|
choices && choices.map(function (choice) {
|
|
8306
|
-
return
|
|
7750
|
+
return React.createElement(
|
|
8307
7751
|
'div',
|
|
8308
7752
|
{ key: choice._key },
|
|
8309
|
-
|
|
7753
|
+
React.createElement(
|
|
8310
7754
|
'label',
|
|
8311
7755
|
{ className: 'pl-2' },
|
|
8312
|
-
|
|
7756
|
+
React.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
8313
7757
|
return setSelectedChoice(e.target.value);
|
|
8314
7758
|
} }),
|
|
8315
7759
|
' ' + choice.choiceText
|
|
8316
7760
|
)
|
|
8317
7761
|
);
|
|
8318
7762
|
}),
|
|
8319
|
-
|
|
7763
|
+
React.createElement(
|
|
8320
7764
|
Button,
|
|
8321
7765
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
8322
7766
|
'Vote'
|
|
8323
7767
|
)
|
|
8324
7768
|
),
|
|
8325
|
-
|
|
7769
|
+
React.createElement(
|
|
8326
7770
|
'div',
|
|
8327
7771
|
{ className: 'progress-container' },
|
|
8328
7772
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
8329
7773
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
8330
|
-
return
|
|
7774
|
+
return React.createElement(
|
|
8331
7775
|
'div',
|
|
8332
7776
|
{ key: choice._key, className: 'mb-3' },
|
|
8333
|
-
|
|
7777
|
+
React.createElement(
|
|
8334
7778
|
'div',
|
|
8335
7779
|
{ className: 'correct-answer' },
|
|
8336
|
-
|
|
7780
|
+
React.createElement(
|
|
8337
7781
|
'div',
|
|
8338
7782
|
null,
|
|
8339
7783
|
choice.choiceText
|
|
8340
7784
|
),
|
|
8341
|
-
choice.choiceAnswer === true &&
|
|
7785
|
+
choice.choiceAnswer === true && React.createElement(
|
|
8342
7786
|
'div',
|
|
8343
7787
|
null,
|
|
8344
|
-
|
|
7788
|
+
React.createElement(
|
|
8345
7789
|
'span',
|
|
8346
7790
|
{ style: { color: 'limegreen' } },
|
|
8347
7791
|
'Correct!'
|
|
8348
7792
|
)
|
|
8349
7793
|
)
|
|
8350
7794
|
),
|
|
8351
|
-
|
|
8352
|
-
|
|
7795
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7796
|
+
React.createElement(
|
|
8353
7797
|
'span',
|
|
8354
7798
|
{ className: 'float-right' },
|
|
8355
7799
|
percentage,
|
|
@@ -8360,14 +7804,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
8360
7804
|
);
|
|
8361
7805
|
})
|
|
8362
7806
|
),
|
|
8363
|
-
showAnswer &&
|
|
7807
|
+
showAnswer && React.createElement(
|
|
8364
7808
|
'h4',
|
|
8365
7809
|
{ className: 'text-center small p-3' },
|
|
8366
7810
|
'Total Votes: ',
|
|
8367
7811
|
choicesTotalCount
|
|
8368
7812
|
),
|
|
8369
|
-
showAnswer && response &&
|
|
8370
|
-
|
|
7813
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7814
|
+
React.createElement(
|
|
8371
7815
|
'style',
|
|
8372
7816
|
{ jsx: 'true' },
|
|
8373
7817
|
'\n .correct-answer {\n width: 100%;\n display: flex;\n justify-content: space-between;\n padding: 0 0.5rem;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -8375,7 +7819,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
8375
7819
|
);
|
|
8376
7820
|
};
|
|
8377
7821
|
|
|
8378
|
-
var numberOfPaginations =
|
|
7822
|
+
var numberOfPaginations = main_39 ? 4 : 10;
|
|
8379
7823
|
|
|
8380
7824
|
var Quiz = function Quiz(_ref) {
|
|
8381
7825
|
var quizzes = _ref.quizzes,
|
|
@@ -8493,34 +7937,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
8493
7937
|
};
|
|
8494
7938
|
|
|
8495
7939
|
var renderPagination = function renderPagination() {
|
|
8496
|
-
return
|
|
8497
|
-
Pagination
|
|
8498
|
-
{ className: 'p-0 m-0', size:
|
|
8499
|
-
|
|
7940
|
+
return React.createElement(
|
|
7941
|
+
Pagination,
|
|
7942
|
+
{ className: 'p-0 m-0', size: main_39 && 'sm' },
|
|
7943
|
+
React.createElement(Pagination.First, { onClick: function onClick() {
|
|
8500
7944
|
return changePage('first');
|
|
8501
7945
|
}, disabled: currentPage === 1 }),
|
|
8502
|
-
|
|
7946
|
+
React.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
8503
7947
|
return changePage('prev');
|
|
8504
7948
|
}, disabled: currentPage === 1 }),
|
|
8505
|
-
|
|
7949
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
8506
7950
|
return renderNewPages('prev');
|
|
8507
7951
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
8508
7952
|
pages.map(function (page) {
|
|
8509
|
-
return
|
|
8510
|
-
Pagination
|
|
7953
|
+
return React.createElement(
|
|
7954
|
+
Pagination.Item,
|
|
8511
7955
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
8512
7956
|
return changePage(page);
|
|
8513
7957
|
} },
|
|
8514
7958
|
page
|
|
8515
7959
|
);
|
|
8516
7960
|
}),
|
|
8517
|
-
|
|
7961
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
8518
7962
|
return renderNewPages('next');
|
|
8519
7963
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
8520
|
-
|
|
7964
|
+
React.createElement(Pagination.Next, { onClick: function onClick() {
|
|
8521
7965
|
return changePage('next');
|
|
8522
7966
|
}, disabled: currentPage === pageCount }),
|
|
8523
|
-
|
|
7967
|
+
React.createElement(Pagination.Last, { onClick: function onClick() {
|
|
8524
7968
|
return changePage('last');
|
|
8525
7969
|
}, disabled: currentPage === pageCount })
|
|
8526
7970
|
);
|
|
@@ -8603,51 +8047,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8603
8047
|
}
|
|
8604
8048
|
};
|
|
8605
8049
|
|
|
8606
|
-
return
|
|
8607
|
-
|
|
8050
|
+
return React.createElement(
|
|
8051
|
+
React.Fragment,
|
|
8608
8052
|
null,
|
|
8609
|
-
quizzes[currentPage - 1] &&
|
|
8610
|
-
|
|
8053
|
+
quizzes[currentPage - 1] && React.createElement(
|
|
8054
|
+
React.Fragment,
|
|
8611
8055
|
null,
|
|
8612
|
-
|
|
8613
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 &&
|
|
8056
|
+
React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8057
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React.createElement(
|
|
8614
8058
|
'form',
|
|
8615
8059
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8616
8060
|
return e.preventDefault();
|
|
8617
8061
|
} },
|
|
8618
8062
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8619
|
-
return
|
|
8063
|
+
return React.createElement(
|
|
8620
8064
|
'div',
|
|
8621
8065
|
{ key: answer._key },
|
|
8622
|
-
|
|
8066
|
+
React.createElement(
|
|
8623
8067
|
'label',
|
|
8624
8068
|
{ className: 'pl-2' },
|
|
8625
|
-
quizzes[currentPage - 1].multiAnswer ?
|
|
8069
|
+
quizzes[currentPage - 1].multiAnswer ? React.createElement('input', { type: 'checkbox', id: 'male', disabled: isDisabled, name: answer._type, value: answer._key }) : React.createElement('input', { type: 'radio', id: 'male', name: answer._type, value: answer._key }),
|
|
8626
8070
|
' ' + answer.answerText
|
|
8627
8071
|
)
|
|
8628
8072
|
);
|
|
8629
8073
|
})
|
|
8630
8074
|
)
|
|
8631
8075
|
),
|
|
8632
|
-
!showAnswer &&
|
|
8076
|
+
!showAnswer && React.createElement(
|
|
8633
8077
|
Button$1,
|
|
8634
8078
|
{ onClick: function onClick() {
|
|
8635
8079
|
return checkAnswers();
|
|
8636
8080
|
}, variant: 'info', block: true },
|
|
8637
8081
|
'Please click here for answer'
|
|
8638
8082
|
),
|
|
8639
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
8640
|
-
|
|
8083
|
+
quizzes[currentPage - 1] && showAnswer && React.createElement(
|
|
8084
|
+
React.Fragment,
|
|
8641
8085
|
null,
|
|
8642
|
-
|
|
8086
|
+
React.createElement(
|
|
8643
8087
|
'h4',
|
|
8644
8088
|
null,
|
|
8645
8089
|
'Answer:'
|
|
8646
8090
|
),
|
|
8647
|
-
quizzes[currentPage - 1].answer &&
|
|
8091
|
+
quizzes[currentPage - 1].answer && React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8648
8092
|
),
|
|
8649
|
-
|
|
8650
|
-
pageCount > 1 &&
|
|
8093
|
+
React.createElement('br', null),
|
|
8094
|
+
pageCount > 1 && React.createElement(
|
|
8651
8095
|
'div',
|
|
8652
8096
|
{ className: 'd-flex justify-content-center' },
|
|
8653
8097
|
renderPagination()
|
|
@@ -8658,10 +8102,10 @@ var Quiz = function Quiz(_ref) {
|
|
|
8658
8102
|
var Leads = function Leads(_ref) {
|
|
8659
8103
|
var url = _ref.url;
|
|
8660
8104
|
|
|
8661
|
-
return
|
|
8105
|
+
return React.createElement(
|
|
8662
8106
|
'div',
|
|
8663
8107
|
{ className: 'd-block text-center mb-3' },
|
|
8664
|
-
url &&
|
|
8108
|
+
url && React.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8665
8109
|
);
|
|
8666
8110
|
};
|
|
8667
8111
|
|
|
@@ -8701,58 +8145,58 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8701
8145
|
setCarouselIndex(selectedIndex);
|
|
8702
8146
|
};
|
|
8703
8147
|
|
|
8704
|
-
return
|
|
8148
|
+
return React.createElement(
|
|
8705
8149
|
'div',
|
|
8706
8150
|
{ className: 'mt-3 mb-4' },
|
|
8707
|
-
|
|
8151
|
+
React.createElement(
|
|
8708
8152
|
Carousel,
|
|
8709
8153
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8710
8154
|
slides && slides.map(function (slide) {
|
|
8711
8155
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8712
|
-
return
|
|
8156
|
+
return React.createElement(
|
|
8713
8157
|
Carousel.Item,
|
|
8714
8158
|
{ key: slide._key },
|
|
8715
|
-
|
|
8159
|
+
React.createElement(
|
|
8716
8160
|
'a',
|
|
8717
8161
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8718
|
-
|
|
8162
|
+
React.createElement(
|
|
8719
8163
|
'div',
|
|
8720
8164
|
{ className: 'embed-responsive embed-responsive-slide' },
|
|
8721
|
-
|
|
8165
|
+
React.createElement(
|
|
8722
8166
|
LazyLoad,
|
|
8723
8167
|
null,
|
|
8724
|
-
|
|
8168
|
+
React.createElement(
|
|
8725
8169
|
'picture',
|
|
8726
8170
|
null,
|
|
8727
|
-
|
|
8728
|
-
|
|
8729
|
-
|
|
8730
|
-
|
|
8171
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8172
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8173
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8174
|
+
React.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', className: 'embed-responsive-item' })
|
|
8731
8175
|
)
|
|
8732
8176
|
),
|
|
8733
|
-
|
|
8177
|
+
React.createElement(
|
|
8734
8178
|
'style',
|
|
8735
8179
|
{ jsx: 'true' },
|
|
8736
8180
|
'\n .embed-responsive-slide::before {\n padding-top: ' + slide.slideshowImage.height / slide.slideshowImage.width * 100 + '%;\n }\n '
|
|
8737
8181
|
)
|
|
8738
8182
|
)
|
|
8739
8183
|
),
|
|
8740
|
-
|
|
8184
|
+
React.createElement(
|
|
8741
8185
|
'div',
|
|
8742
8186
|
{ className: 'p-2' },
|
|
8743
|
-
slide.slideshowImage.caption &&
|
|
8187
|
+
slide.slideshowImage.caption && React.createElement(
|
|
8744
8188
|
'h3',
|
|
8745
8189
|
{ style: { padding: '0px' } },
|
|
8746
8190
|
slide.slideshowImage.caption
|
|
8747
8191
|
),
|
|
8748
|
-
slide.description &&
|
|
8192
|
+
slide.description && React.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8749
8193
|
)
|
|
8750
8194
|
);
|
|
8751
8195
|
}
|
|
8752
8196
|
return null;
|
|
8753
8197
|
})
|
|
8754
8198
|
),
|
|
8755
|
-
|
|
8199
|
+
React.createElement(
|
|
8756
8200
|
'style',
|
|
8757
8201
|
{ jsx: 'true' },
|
|
8758
8202
|
'\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 '
|
|
@@ -8771,10 +8215,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8771
8215
|
sizes = _props$node.sizes,
|
|
8772
8216
|
sizeMapping = _props$node.sizeMapping;
|
|
8773
8217
|
|
|
8774
|
-
return
|
|
8218
|
+
return React.createElement(
|
|
8775
8219
|
'div',
|
|
8776
8220
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8777
|
-
|
|
8221
|
+
React.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8778
8222
|
);
|
|
8779
8223
|
};
|
|
8780
8224
|
|
|
@@ -8785,15 +8229,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8785
8229
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8786
8230
|
|
|
8787
8231
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8788
|
-
return
|
|
8232
|
+
return React.createElement(
|
|
8789
8233
|
'section',
|
|
8790
8234
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8791
|
-
Caption &&
|
|
8235
|
+
Caption && React.createElement(
|
|
8792
8236
|
'h4',
|
|
8793
8237
|
{ className: 'formstack-caption' },
|
|
8794
8238
|
Caption
|
|
8795
8239
|
),
|
|
8796
|
-
|
|
8240
|
+
React.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8797
8241
|
);
|
|
8798
8242
|
};
|
|
8799
8243
|
|
|
@@ -8809,36 +8253,36 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8809
8253
|
}
|
|
8810
8254
|
});
|
|
8811
8255
|
if (medias && medias.length > 0) {
|
|
8812
|
-
return
|
|
8256
|
+
return React.createElement(
|
|
8813
8257
|
'div',
|
|
8814
8258
|
{ className: 'multi-media-container' },
|
|
8815
|
-
|
|
8259
|
+
React.createElement(
|
|
8816
8260
|
Row$1,
|
|
8817
8261
|
{ noGutters: true },
|
|
8818
8262
|
medias.map(function (media) {
|
|
8819
|
-
return
|
|
8263
|
+
return React.createElement(
|
|
8820
8264
|
Col$1,
|
|
8821
8265
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8822
|
-
|
|
8266
|
+
React.createElement(
|
|
8823
8267
|
'a',
|
|
8824
|
-
_extends
|
|
8268
|
+
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8825
8269
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8826
|
-
|
|
8270
|
+
React.createElement(
|
|
8827
8271
|
'div',
|
|
8828
8272
|
{ className: 'multi-media-image-container' },
|
|
8829
|
-
imageBox &&
|
|
8273
|
+
imageBox && React.createElement(
|
|
8830
8274
|
LazyLoad,
|
|
8831
8275
|
{ once: true },
|
|
8832
|
-
|
|
8276
|
+
React.createElement(
|
|
8833
8277
|
'picture',
|
|
8834
8278
|
null,
|
|
8835
|
-
|
|
8836
|
-
|
|
8837
|
-
|
|
8838
|
-
|
|
8279
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8280
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8281
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8282
|
+
React.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
|
|
8839
8283
|
)
|
|
8840
8284
|
),
|
|
8841
|
-
media.caption &&
|
|
8285
|
+
media.caption && React.createElement(
|
|
8842
8286
|
'span',
|
|
8843
8287
|
{ className: 'multi-media-caption' },
|
|
8844
8288
|
media.caption
|
|
@@ -8848,7 +8292,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8848
8292
|
);
|
|
8849
8293
|
})
|
|
8850
8294
|
),
|
|
8851
|
-
|
|
8295
|
+
React.createElement(
|
|
8852
8296
|
'style',
|
|
8853
8297
|
{ jsx: 'true' },
|
|
8854
8298
|
'\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 '
|
|
@@ -8895,7 +8339,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8895
8339
|
}
|
|
8896
8340
|
};
|
|
8897
8341
|
|
|
8898
|
-
_this.wraperRef =
|
|
8342
|
+
_this.wraperRef = React.createRef();
|
|
8899
8343
|
_this.visible = false;
|
|
8900
8344
|
return _this;
|
|
8901
8345
|
}
|
|
@@ -8923,7 +8367,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8923
8367
|
_props$id = _props.id,
|
|
8924
8368
|
id = _props$id === undefined ? '' : _props$id;
|
|
8925
8369
|
|
|
8926
|
-
return
|
|
8370
|
+
return React.createElement(
|
|
8927
8371
|
'div',
|
|
8928
8372
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8929
8373
|
this.props.children
|
|
@@ -8932,7 +8376,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8932
8376
|
}]);
|
|
8933
8377
|
|
|
8934
8378
|
return InscreenSensor;
|
|
8935
|
-
}(
|
|
8379
|
+
}(React.Component);
|
|
8936
8380
|
|
|
8937
8381
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8938
8382
|
var nodes = _ref.nodes,
|
|
@@ -9041,33 +8485,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9041
8485
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
9042
8486
|
var showReading = show ? 'showReading' : '';
|
|
9043
8487
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
9044
|
-
return
|
|
8488
|
+
return React.createElement(
|
|
9045
8489
|
'div',
|
|
9046
8490
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
9047
|
-
|
|
8491
|
+
React.createElement(
|
|
9048
8492
|
'a',
|
|
9049
8493
|
{ onClick: function onClick(e) {
|
|
9050
8494
|
return articleCardClickHandler(e);
|
|
9051
8495
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
9052
|
-
|
|
8496
|
+
React.createElement(
|
|
9053
8497
|
'div',
|
|
9054
8498
|
{ className: 'prevNext-thumbnail' },
|
|
9055
|
-
|
|
9056
|
-
|
|
8499
|
+
React.createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
8500
|
+
React.createElement(
|
|
9057
8501
|
'div',
|
|
9058
8502
|
{ className: 'prevNext-reading ' + showReading },
|
|
9059
8503
|
articleLabel
|
|
9060
8504
|
)
|
|
9061
8505
|
),
|
|
9062
|
-
|
|
8506
|
+
React.createElement(
|
|
9063
8507
|
'div',
|
|
9064
8508
|
{ className: 'prevNext-summary' },
|
|
9065
|
-
|
|
8509
|
+
React.createElement(
|
|
9066
8510
|
'div',
|
|
9067
8511
|
{ className: 'prevNext-publishDate' },
|
|
9068
8512
|
moment(article.published).format('LL')
|
|
9069
8513
|
),
|
|
9070
|
-
|
|
8514
|
+
React.createElement(
|
|
9071
8515
|
'h2',
|
|
9072
8516
|
{ className: 'prevNext-title' },
|
|
9073
8517
|
article.title
|
|
@@ -9116,7 +8560,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9116
8560
|
|
|
9117
8561
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
9118
8562
|
if (biography) {
|
|
9119
|
-
return
|
|
8563
|
+
return React.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
9120
8564
|
}
|
|
9121
8565
|
};
|
|
9122
8566
|
|
|
@@ -9202,7 +8646,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9202
8646
|
//console.log('useLayoutEffect')
|
|
9203
8647
|
if (!firstLoad) {
|
|
9204
8648
|
setUpArrowClicked(false);
|
|
9205
|
-
if (
|
|
8649
|
+
if (main_40) {
|
|
9206
8650
|
grabLoadedAds();
|
|
9207
8651
|
} else {
|
|
9208
8652
|
scrollToArticle();
|
|
@@ -9226,7 +8670,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9226
8670
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
9227
8671
|
if (pageview) pageview(path);
|
|
9228
8672
|
|
|
9229
|
-
if (!
|
|
8673
|
+
if (!main_40) {
|
|
9230
8674
|
lib_3.getGoogletag().then(function (googletag) {
|
|
9231
8675
|
if (window.googletag && googletag.pubadsReady) {
|
|
9232
8676
|
lib_3.refresh();
|
|
@@ -9234,7 +8678,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9234
8678
|
});
|
|
9235
8679
|
}
|
|
9236
8680
|
//Refresh leaderboard ad on mobile
|
|
9237
|
-
if (
|
|
8681
|
+
if (main_40) {
|
|
9238
8682
|
var leaderboardSlotId = '';
|
|
9239
8683
|
lib_3.getGoogletag().then(function (googletag) {
|
|
9240
8684
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -9274,38 +8718,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9274
8718
|
setSensorVisible(false);
|
|
9275
8719
|
};
|
|
9276
8720
|
|
|
9277
|
-
return
|
|
9278
|
-
|
|
8721
|
+
return React.createElement(
|
|
8722
|
+
React.Fragment,
|
|
9279
8723
|
null,
|
|
9280
|
-
|
|
8724
|
+
React.createElement(
|
|
9281
8725
|
'div',
|
|
9282
8726
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
9283
|
-
|
|
8727
|
+
React.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
9284
8728
|
return handleArrowClick();
|
|
9285
8729
|
} })
|
|
9286
8730
|
),
|
|
9287
|
-
|
|
9288
|
-
|
|
8731
|
+
React.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8732
|
+
React.createElement(
|
|
9289
8733
|
'div',
|
|
9290
8734
|
{ className: 'objective-prevNext-Wrapper' },
|
|
9291
|
-
|
|
8735
|
+
React.createElement(
|
|
9292
8736
|
'h5',
|
|
9293
8737
|
{ className: 'objective-title' },
|
|
9294
8738
|
nodes.seriesTitle
|
|
9295
8739
|
),
|
|
9296
|
-
|
|
8740
|
+
React.createElement(
|
|
9297
8741
|
'div',
|
|
9298
8742
|
{ className: 'prevNextWrapper' },
|
|
9299
8743
|
PrevNextCards(false, -1)
|
|
9300
8744
|
)
|
|
9301
8745
|
),
|
|
9302
|
-
|
|
9303
|
-
|
|
8746
|
+
React.createElement('hr', { className: 'article-seperater' }),
|
|
8747
|
+
React.createElement(
|
|
9304
8748
|
'div',
|
|
9305
8749
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
9306
|
-
|
|
8750
|
+
main_40 && Ads.map(function (ad, index) {
|
|
9307
8751
|
if (index === 0) {
|
|
9308
|
-
return
|
|
8752
|
+
return React.createElement(
|
|
9309
8753
|
'div',
|
|
9310
8754
|
{
|
|
9311
8755
|
key: 'addid-1',
|
|
@@ -9325,14 +8769,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9325
8769
|
}
|
|
9326
8770
|
})
|
|
9327
8771
|
),
|
|
9328
|
-
|
|
8772
|
+
React.createElement(
|
|
9329
8773
|
'div',
|
|
9330
8774
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
9331
8775
|
Articles.map(function (article, index) {
|
|
9332
|
-
return
|
|
8776
|
+
return React.createElement(
|
|
9333
8777
|
'div',
|
|
9334
8778
|
{ key: article.title },
|
|
9335
|
-
|
|
8779
|
+
React.createElement(
|
|
9336
8780
|
InscreenSensor,
|
|
9337
8781
|
{
|
|
9338
8782
|
visible: sensorVisible,
|
|
@@ -9350,84 +8794,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9350
8794
|
}
|
|
9351
8795
|
}
|
|
9352
8796
|
} },
|
|
9353
|
-
|
|
8797
|
+
React.createElement(
|
|
9354
8798
|
Head,
|
|
9355
8799
|
null,
|
|
9356
|
-
currentTitle !== null &&
|
|
8800
|
+
currentTitle !== null && React.createElement(
|
|
9357
8801
|
'title',
|
|
9358
8802
|
{ key: 'title' },
|
|
9359
8803
|
currentTitle
|
|
9360
8804
|
),
|
|
9361
|
-
currentSummary !== null &&
|
|
9362
|
-
currentURL !== null &&
|
|
9363
|
-
currentTitle !== null &&
|
|
9364
|
-
currentThumbnail !== null &&
|
|
9365
|
-
currentSummary !== null &&
|
|
9366
|
-
currentTitle !== null &&
|
|
9367
|
-
currentThumbnail !== null &&
|
|
9368
|
-
currentSummary !== null &&
|
|
8805
|
+
currentSummary !== null && React.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8806
|
+
currentURL !== null && React.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8807
|
+
currentTitle !== null && React.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8808
|
+
currentThumbnail !== null && React.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8809
|
+
currentSummary !== null && React.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8810
|
+
currentTitle !== null && React.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8811
|
+
currentThumbnail !== null && React.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8812
|
+
currentSummary !== null && React.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
9369
8813
|
),
|
|
9370
|
-
|
|
8814
|
+
React.createElement(
|
|
9371
8815
|
'article',
|
|
9372
8816
|
{ className: 'article-wrapper' },
|
|
9373
|
-
|
|
8817
|
+
React.createElement(
|
|
9374
8818
|
'div',
|
|
9375
8819
|
{ className: 'article-publishDate' },
|
|
9376
8820
|
moment(article.published).format('LL')
|
|
9377
8821
|
),
|
|
9378
|
-
|
|
8822
|
+
React.createElement(
|
|
9379
8823
|
'div',
|
|
9380
8824
|
{ className: 'author-details-wrapper' },
|
|
9381
8825
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
9382
|
-
return
|
|
8826
|
+
return React.createElement(
|
|
9383
8827
|
'span',
|
|
9384
8828
|
{ key: index },
|
|
9385
8829
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage }))
|
|
9386
8830
|
);
|
|
9387
8831
|
})
|
|
9388
8832
|
),
|
|
9389
|
-
|
|
8833
|
+
React.createElement(
|
|
9390
8834
|
'h2',
|
|
9391
8835
|
{ className: 'article-title' },
|
|
9392
8836
|
article.title
|
|
9393
8837
|
),
|
|
9394
|
-
|
|
8838
|
+
React.createElement(
|
|
9395
8839
|
'div',
|
|
9396
8840
|
{ className: 'mt-2 mb-2' },
|
|
9397
|
-
|
|
8841
|
+
React.createElement(BlockContent, _extends({
|
|
9398
8842
|
serializers: getSerializers,
|
|
9399
8843
|
videoAccountIDs: accountIDs,
|
|
9400
8844
|
blocks: article.text,
|
|
9401
8845
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
9402
8846
|
}, client.config())),
|
|
9403
|
-
|
|
8847
|
+
React.createElement('hr', { className: 'article-seperater my-4' })
|
|
9404
8848
|
),
|
|
9405
|
-
Articles.length > 1 &&
|
|
9406
|
-
|
|
8849
|
+
Articles.length > 1 && React.createElement(
|
|
8850
|
+
React.Fragment,
|
|
9407
8851
|
null,
|
|
9408
|
-
|
|
8852
|
+
React.createElement(
|
|
9409
8853
|
'div',
|
|
9410
8854
|
{ className: 'objective-prevNext-Wrapper' },
|
|
9411
|
-
|
|
8855
|
+
React.createElement(
|
|
9412
8856
|
'h5',
|
|
9413
8857
|
{ className: 'objective-title' },
|
|
9414
8858
|
nodes.seriesTitle
|
|
9415
8859
|
),
|
|
9416
|
-
|
|
8860
|
+
React.createElement(
|
|
9417
8861
|
'div',
|
|
9418
8862
|
{ className: 'prevNextWrapper' },
|
|
9419
8863
|
PrevNextCards(true, index)
|
|
9420
8864
|
)
|
|
9421
8865
|
),
|
|
9422
|
-
|
|
8866
|
+
React.createElement('hr', { className: 'article-seperater' })
|
|
9423
8867
|
)
|
|
9424
8868
|
),
|
|
9425
|
-
|
|
8869
|
+
React.createElement(
|
|
9426
8870
|
'div',
|
|
9427
8871
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
9428
|
-
|
|
8872
|
+
main_40 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
9429
8873
|
if (innerIndex === 0) {
|
|
9430
|
-
return
|
|
8874
|
+
return React.createElement(
|
|
9431
8875
|
'div',
|
|
9432
8876
|
{
|
|
9433
8877
|
key: 'addid-' + (index + 2),
|
|
@@ -9450,7 +8894,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
9450
8894
|
)
|
|
9451
8895
|
);
|
|
9452
8896
|
}),
|
|
9453
|
-
|
|
8897
|
+
React.createElement(
|
|
9454
8898
|
'style',
|
|
9455
8899
|
{ jsx: 'true' },
|
|
9456
8900
|
'\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 '
|
|
@@ -9480,11 +8924,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
9480
8924
|
};
|
|
9481
8925
|
}, [handleClickOutside]);
|
|
9482
8926
|
|
|
9483
|
-
return
|
|
8927
|
+
return React.createElement(
|
|
9484
8928
|
'div',
|
|
9485
8929
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
9486
|
-
|
|
9487
|
-
|
|
8930
|
+
React.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8931
|
+
React.createElement(
|
|
9488
8932
|
'style',
|
|
9489
8933
|
{ jsx: 'true' },
|
|
9490
8934
|
'\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 '
|
|
@@ -9498,7 +8942,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
9498
8942
|
}
|
|
9499
8943
|
};
|
|
9500
8944
|
|
|
9501
|
-
var FigureImage =
|
|
8945
|
+
var FigureImage = React.memo(function (_ref2) {
|
|
9502
8946
|
var node = _ref2.node,
|
|
9503
8947
|
client = _ref2.client,
|
|
9504
8948
|
imgAlt = _ref2.imgAlt,
|
|
@@ -9506,13 +8950,13 @@ var FigureImage = React__default.memo(function (_ref2) {
|
|
|
9506
8950
|
handleClickFigure = _ref2.handleClickFigure;
|
|
9507
8951
|
|
|
9508
8952
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9509
|
-
return
|
|
8953
|
+
return React.createElement(
|
|
9510
8954
|
'picture',
|
|
9511
8955
|
null,
|
|
9512
|
-
|
|
9513
|
-
|
|
9514
|
-
|
|
9515
|
-
|
|
8956
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8957
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8958
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8959
|
+
React.createElement('img', _extends({
|
|
9516
8960
|
style: figureImageStyle,
|
|
9517
8961
|
className: 'figure-image',
|
|
9518
8962
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9600,13 +9044,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9600
9044
|
|
|
9601
9045
|
var FigureCaption = useCallback(function () {
|
|
9602
9046
|
if (imgcaption && imgcaption.length > 0) {
|
|
9603
|
-
return
|
|
9047
|
+
return React.createElement(
|
|
9604
9048
|
'div',
|
|
9605
9049
|
{ className: 'figure-caption' },
|
|
9606
|
-
|
|
9050
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9607
9051
|
);
|
|
9608
9052
|
} else if (caption) {
|
|
9609
|
-
return
|
|
9053
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9610
9054
|
} else return null;
|
|
9611
9055
|
}, [caption, imgcaption]);
|
|
9612
9056
|
|
|
@@ -9623,24 +9067,24 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9623
9067
|
setShowLightbox(true);
|
|
9624
9068
|
}, [node, client]);
|
|
9625
9069
|
|
|
9626
|
-
return
|
|
9627
|
-
|
|
9070
|
+
return React.createElement(
|
|
9071
|
+
React.Fragment,
|
|
9628
9072
|
null,
|
|
9629
|
-
|
|
9630
|
-
Figure$
|
|
9073
|
+
React.createElement(
|
|
9074
|
+
Figure$2,
|
|
9631
9075
|
{ className: '' + class_name, style: figureStyle },
|
|
9632
|
-
link ?
|
|
9076
|
+
link ? React.createElement(
|
|
9633
9077
|
'a',
|
|
9634
9078
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9635
|
-
|
|
9636
|
-
|
|
9637
|
-
) :
|
|
9638
|
-
|
|
9079
|
+
React.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9080
|
+
React.createElement(FigureCaption, null)
|
|
9081
|
+
) : React.createElement(
|
|
9082
|
+
React.Fragment,
|
|
9639
9083
|
null,
|
|
9640
|
-
|
|
9641
|
-
|
|
9084
|
+
React.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9085
|
+
React.createElement(FigureCaption, null)
|
|
9642
9086
|
),
|
|
9643
|
-
|
|
9087
|
+
React.createElement(LightBox, {
|
|
9644
9088
|
showLightbox: showLightbox,
|
|
9645
9089
|
lightboxImgSrc: lightboxImgSrc,
|
|
9646
9090
|
closeLightbox: function closeLightbox() {
|
|
@@ -9649,7 +9093,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9649
9093
|
}
|
|
9650
9094
|
})
|
|
9651
9095
|
),
|
|
9652
|
-
|
|
9096
|
+
React.createElement(
|
|
9653
9097
|
'style',
|
|
9654
9098
|
{ jsx: 'true' },
|
|
9655
9099
|
'\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 '
|
|
@@ -9657,7 +9101,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9657
9101
|
);
|
|
9658
9102
|
};
|
|
9659
9103
|
|
|
9660
|
-
var Figure =
|
|
9104
|
+
var Figure = React.memo(FigureComponent, compareProps);
|
|
9661
9105
|
|
|
9662
9106
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
9663
9107
|
useEffect(function () {
|
|
@@ -9674,7 +9118,7 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9674
9118
|
}, [ref]);
|
|
9675
9119
|
}
|
|
9676
9120
|
|
|
9677
|
-
var FigureImage$1 =
|
|
9121
|
+
var FigureImage$1 = React.memo(function (_ref) {
|
|
9678
9122
|
var imagesCount = _ref.imagesCount,
|
|
9679
9123
|
image = _ref.image,
|
|
9680
9124
|
client = _ref.client,
|
|
@@ -9682,13 +9126,13 @@ var FigureImage$1 = React__default.memo(function (_ref) {
|
|
|
9682
9126
|
link = _ref.link,
|
|
9683
9127
|
handleClickFigure = _ref.handleClickFigure;
|
|
9684
9128
|
|
|
9685
|
-
return
|
|
9129
|
+
return React.createElement(
|
|
9686
9130
|
'picture',
|
|
9687
9131
|
null,
|
|
9688
|
-
|
|
9689
|
-
|
|
9690
|
-
|
|
9691
|
-
|
|
9132
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9133
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9134
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9135
|
+
React.createElement('img', _extends({
|
|
9692
9136
|
'images-count': imagesCount,
|
|
9693
9137
|
className: 'multi-figure-image',
|
|
9694
9138
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9725,13 +9169,13 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9725
9169
|
imgcaption = _ref2.imgcaption;
|
|
9726
9170
|
|
|
9727
9171
|
if (imgcaption && imgcaption.length > 0) {
|
|
9728
|
-
return
|
|
9172
|
+
return React.createElement(
|
|
9729
9173
|
'div',
|
|
9730
9174
|
{ className: 'multi-figure-caption' },
|
|
9731
|
-
|
|
9175
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9732
9176
|
);
|
|
9733
9177
|
} else if (caption) {
|
|
9734
|
-
return
|
|
9178
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9735
9179
|
} else return null;
|
|
9736
9180
|
};
|
|
9737
9181
|
|
|
@@ -9741,48 +9185,48 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9741
9185
|
}, [client]);
|
|
9742
9186
|
|
|
9743
9187
|
if (images && images.length > 0) {
|
|
9744
|
-
return
|
|
9188
|
+
return React.createElement(
|
|
9745
9189
|
'div',
|
|
9746
9190
|
{ className: 'multi-figure-container' },
|
|
9747
|
-
|
|
9191
|
+
React.createElement(
|
|
9748
9192
|
Row$1,
|
|
9749
9193
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9750
9194
|
images.map(function (image, index) {
|
|
9751
|
-
return
|
|
9195
|
+
return React.createElement(
|
|
9752
9196
|
Col$1,
|
|
9753
9197
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9754
|
-
image.link ?
|
|
9198
|
+
image.link ? React.createElement(
|
|
9755
9199
|
'a',
|
|
9756
|
-
_extends
|
|
9757
|
-
|
|
9200
|
+
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9201
|
+
React.createElement(
|
|
9758
9202
|
'div',
|
|
9759
9203
|
{ className: 'multi-figure-image-container' },
|
|
9760
|
-
|
|
9204
|
+
React.createElement(
|
|
9761
9205
|
LazyLoad,
|
|
9762
9206
|
{ once: true },
|
|
9763
|
-
|
|
9207
|
+
React.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9764
9208
|
),
|
|
9765
|
-
|
|
9209
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9766
9210
|
)
|
|
9767
|
-
) :
|
|
9211
|
+
) : React.createElement(
|
|
9768
9212
|
'div',
|
|
9769
9213
|
{ className: 'multi-figure-image-container' },
|
|
9770
|
-
|
|
9214
|
+
React.createElement(
|
|
9771
9215
|
LazyLoad,
|
|
9772
9216
|
{ once: true },
|
|
9773
|
-
|
|
9217
|
+
React.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9774
9218
|
),
|
|
9775
|
-
|
|
9219
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9776
9220
|
)
|
|
9777
9221
|
);
|
|
9778
9222
|
})
|
|
9779
9223
|
),
|
|
9780
|
-
|
|
9224
|
+
React.createElement(
|
|
9781
9225
|
'div',
|
|
9782
9226
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9783
|
-
|
|
9227
|
+
React.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9784
9228
|
),
|
|
9785
|
-
|
|
9229
|
+
React.createElement(
|
|
9786
9230
|
'style',
|
|
9787
9231
|
{ jsx: 'true' },
|
|
9788
9232
|
'\n .multi-figure-caption,\n .multi-figure-caption h1,\n .multi-figure-caption h2,\n .multi-figure-caption h3,\n .multi-figure-caption h4,\n .multi-figure-caption h5,\n .multi-figure-caption h6,\n .multi-figure-caption p,\n .multi-figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n\n .multi-figure-container {\n margin-bottom: 1rem;\n }\n .multi-figure-image {\n width: 100%;\n height: auto;\n object-fit: contain;\n cursor: pointer;\n }\n .multi-figure-image-container {\n padding-right: 0.5rem;\n }\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-figure-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 200px;\n }\n .multi-figure-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 300px;\n }\n }\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
|
|
@@ -9792,8 +9236,6 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9792
9236
|
return null;
|
|
9793
9237
|
};
|
|
9794
9238
|
|
|
9795
|
-
var offsetHeightBuffer = 20;
|
|
9796
|
-
|
|
9797
9239
|
var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
9798
9240
|
var articleId = props.articleId,
|
|
9799
9241
|
_props$node = props.node,
|
|
@@ -9804,45 +9246,12 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9804
9246
|
getSerializers = props.getSerializers;
|
|
9805
9247
|
|
|
9806
9248
|
|
|
9807
|
-
if (typeof window !== 'undefined' && window.history && window.history.scrollRestoration !== 'manual') {
|
|
9808
|
-
window.history.scrollRestoration = 'manual';
|
|
9809
|
-
}
|
|
9810
|
-
|
|
9811
9249
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
9812
9250
|
|
|
9813
|
-
|
|
9814
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
9815
|
-
offsetHeight = _useState2[0],
|
|
9816
|
-
setOffsetHeight = _useState2[1];
|
|
9817
|
-
|
|
9818
|
-
useEffect(function () {
|
|
9819
|
-
var header = document.querySelector('header');
|
|
9820
|
-
if (header) setOffsetHeight(header.offsetHeight);
|
|
9821
|
-
}, []);
|
|
9822
|
-
|
|
9823
|
-
// useEffect(() => {
|
|
9824
|
-
// const timer = setTimeout(() => {
|
|
9825
|
-
// const hash = window.location.hash
|
|
9826
|
-
// if (hash) {
|
|
9827
|
-
// const elementId = hash.slice(1)
|
|
9828
|
-
// const element = document.getElementById(elementId)
|
|
9829
|
-
// element && element.scrollIntoView()
|
|
9830
|
-
// }
|
|
9831
|
-
// }, 3000)
|
|
9832
|
-
// return () => {
|
|
9833
|
-
// clearTimeout(timer)
|
|
9834
|
-
// }
|
|
9835
|
-
// }, [])
|
|
9836
|
-
|
|
9837
|
-
return React__default.createElement(
|
|
9251
|
+
return React.createElement(
|
|
9838
9252
|
'div',
|
|
9839
9253
|
{ id: elementId },
|
|
9840
|
-
|
|
9841
|
-
React__default.createElement(
|
|
9842
|
-
'style',
|
|
9843
|
-
{ jsx: 'true' },
|
|
9844
|
-
'\n #' + elementId + '::before {\n display: block;\n content: \' \';\n margin-top: -' + (offsetHeight + offsetHeightBuffer) + 'px;\n height: ' + (offsetHeight + offsetHeightBuffer) + 'px;\n visibility: hidden;\n pointer-events: none;\n }\n '
|
|
9845
|
-
)
|
|
9254
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
9846
9255
|
);
|
|
9847
9256
|
};
|
|
9848
9257
|
|
|
@@ -9871,7 +9280,7 @@ exports.__esModule = true;
|
|
|
9871
9280
|
|
|
9872
9281
|
|
|
9873
9282
|
|
|
9874
|
-
var _extends3 = _interopRequireDefault(_extends$
|
|
9283
|
+
var _extends3 = _interopRequireDefault(_extends$1);
|
|
9875
9284
|
|
|
9876
9285
|
|
|
9877
9286
|
|
|
@@ -9887,11 +9296,11 @@ var _possibleConstructorReturn3 = _interopRequireDefault(possibleConstructorRetu
|
|
|
9887
9296
|
|
|
9888
9297
|
|
|
9889
9298
|
|
|
9890
|
-
var _inherits3 = _interopRequireDefault(inherits
|
|
9299
|
+
var _inherits3 = _interopRequireDefault(inherits);
|
|
9891
9300
|
|
|
9892
9301
|
|
|
9893
9302
|
|
|
9894
|
-
var _react2 = _interopRequireDefault(
|
|
9303
|
+
var _react2 = _interopRequireDefault(React);
|
|
9895
9304
|
|
|
9896
9305
|
|
|
9897
9306
|
|
|
@@ -10050,7 +9459,7 @@ var ScriptTag = function (_Component) {
|
|
|
10050
9459
|
};
|
|
10051
9460
|
|
|
10052
9461
|
return ScriptTag;
|
|
10053
|
-
}(
|
|
9462
|
+
}(React.Component);
|
|
10054
9463
|
|
|
10055
9464
|
ScriptTag.propTypes = {
|
|
10056
9465
|
/**
|
|
@@ -10129,11 +9538,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
10129
9538
|
}, []);
|
|
10130
9539
|
|
|
10131
9540
|
if (iframeSrc) {
|
|
10132
|
-
return
|
|
9541
|
+
return React.createElement(
|
|
10133
9542
|
'section',
|
|
10134
9543
|
{ className: 'form-assembly' },
|
|
10135
|
-
|
|
10136
|
-
|
|
9544
|
+
React.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9545
|
+
React.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
10137
9546
|
);
|
|
10138
9547
|
}
|
|
10139
9548
|
|
|
@@ -10170,27 +9579,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
10170
9579
|
return window.removeEventListener('resize', handleResize);
|
|
10171
9580
|
};
|
|
10172
9581
|
}, []);
|
|
10173
|
-
return
|
|
9582
|
+
return React.createElement(
|
|
10174
9583
|
'div',
|
|
10175
9584
|
{ className: 'blockTableHolder', ref: holder },
|
|
10176
|
-
|
|
9585
|
+
React.createElement(
|
|
10177
9586
|
'div',
|
|
10178
9587
|
{ className: 'blockTable' },
|
|
10179
9588
|
rows && rows.map(function (row) {
|
|
10180
|
-
return
|
|
9589
|
+
return React.createElement(
|
|
10181
9590
|
'div',
|
|
10182
9591
|
{ className: 'blockTableRow' },
|
|
10183
9592
|
row.cells && row.cells.map(function (cell) {
|
|
10184
|
-
return
|
|
9593
|
+
return React.createElement(
|
|
10185
9594
|
'div',
|
|
10186
9595
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
10187
|
-
|
|
9596
|
+
React.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
10188
9597
|
);
|
|
10189
9598
|
})
|
|
10190
9599
|
);
|
|
10191
9600
|
})
|
|
10192
9601
|
),
|
|
10193
|
-
|
|
9602
|
+
React.createElement(
|
|
10194
9603
|
'style',
|
|
10195
9604
|
{ jsx: true },
|
|
10196
9605
|
'\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 '
|
|
@@ -10269,12 +9678,12 @@ var getSerializers = function getSerializers() {
|
|
|
10269
9678
|
var node = _ref.node;
|
|
10270
9679
|
var url = node.url;
|
|
10271
9680
|
|
|
10272
|
-
return
|
|
9681
|
+
return React.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
10273
9682
|
},
|
|
10274
9683
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
10275
9684
|
var node = _ref2.node;
|
|
10276
9685
|
|
|
10277
|
-
return
|
|
9686
|
+
return React.createElement(YouTubeGallery, {
|
|
10278
9687
|
nodes: node,
|
|
10279
9688
|
article: article,
|
|
10280
9689
|
meta: meta,
|
|
@@ -10288,7 +9697,7 @@ var getSerializers = function getSerializers() {
|
|
|
10288
9697
|
articleSeries: function articleSeries(_ref3) {
|
|
10289
9698
|
var node = _ref3.node;
|
|
10290
9699
|
|
|
10291
|
-
return
|
|
9700
|
+
return React.createElement(ArticleSeries, {
|
|
10292
9701
|
nodes: node,
|
|
10293
9702
|
accountIDs: videoAccountIDs || {},
|
|
10294
9703
|
pageview: pageview,
|
|
@@ -10301,61 +9710,61 @@ var getSerializers = function getSerializers() {
|
|
|
10301
9710
|
figure: function figure(_ref4) {
|
|
10302
9711
|
var node = _ref4.node;
|
|
10303
9712
|
|
|
10304
|
-
return
|
|
9713
|
+
return React.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
10305
9714
|
},
|
|
10306
9715
|
multifigure: function multifigure(_ref5) {
|
|
10307
9716
|
var node = _ref5.node;
|
|
10308
9717
|
|
|
10309
|
-
return
|
|
9718
|
+
return React.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10310
9719
|
},
|
|
10311
9720
|
slideshow: function slideshow(_ref6) {
|
|
10312
9721
|
var node = _ref6.node;
|
|
10313
9722
|
var slides = node.slides;
|
|
10314
9723
|
|
|
10315
|
-
return
|
|
9724
|
+
return React.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
10316
9725
|
},
|
|
10317
9726
|
sidebar: function sidebar(_ref7) {
|
|
10318
9727
|
var node = _ref7.node;
|
|
10319
9728
|
var caption = node.caption,
|
|
10320
9729
|
content = node.content;
|
|
10321
9730
|
|
|
10322
|
-
return
|
|
9731
|
+
return React.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
10323
9732
|
},
|
|
10324
9733
|
datatable: function datatable(_ref8) {
|
|
10325
9734
|
var node = _ref8.node;
|
|
10326
9735
|
var table = node.table;
|
|
10327
9736
|
|
|
10328
|
-
return
|
|
9737
|
+
return React.createElement(TableShow, { rows: table.rows });
|
|
10329
9738
|
},
|
|
10330
9739
|
media: function media(_ref9) {
|
|
10331
9740
|
var node = _ref9.node;
|
|
10332
9741
|
|
|
10333
|
-
return
|
|
9742
|
+
return React.createElement(Media, { node: node, client: client });
|
|
10334
9743
|
},
|
|
10335
9744
|
iframe: function iframe(_ref10) {
|
|
10336
9745
|
var node = _ref10.node;
|
|
10337
9746
|
|
|
10338
|
-
return
|
|
9747
|
+
return React.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
10339
9748
|
},
|
|
10340
9749
|
video: function video(_ref11) {
|
|
10341
9750
|
var node = _ref11.node;
|
|
10342
9751
|
|
|
10343
|
-
return
|
|
9752
|
+
return React.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
10344
9753
|
},
|
|
10345
9754
|
audio: function audio(_ref12) {
|
|
10346
9755
|
var node = _ref12.node;
|
|
10347
9756
|
|
|
10348
|
-
return
|
|
9757
|
+
return React.createElement(Audio, { node: node });
|
|
10349
9758
|
},
|
|
10350
9759
|
poll: function poll(_ref13) {
|
|
10351
9760
|
var node = _ref13.node;
|
|
10352
9761
|
|
|
10353
|
-
return
|
|
9762
|
+
return React.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
10354
9763
|
},
|
|
10355
9764
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
10356
9765
|
var node = _ref14.node;
|
|
10357
9766
|
|
|
10358
|
-
return
|
|
9767
|
+
return React.createElement(Poll$1, {
|
|
10359
9768
|
node: node,
|
|
10360
9769
|
client: client,
|
|
10361
9770
|
pageview: pageview,
|
|
@@ -10369,35 +9778,35 @@ var getSerializers = function getSerializers() {
|
|
|
10369
9778
|
var node = _ref15.node;
|
|
10370
9779
|
var quizzes = node.quizzes;
|
|
10371
9780
|
|
|
10372
|
-
return
|
|
9781
|
+
return React.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
10373
9782
|
},
|
|
10374
9783
|
leads: function leads(_ref16) {
|
|
10375
9784
|
var node = _ref16.node;
|
|
10376
9785
|
var leadID = node.leadID;
|
|
10377
9786
|
|
|
10378
9787
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
10379
|
-
return
|
|
9788
|
+
return React.createElement(Leads, { url: url });
|
|
10380
9789
|
},
|
|
10381
9790
|
slideshows: function slideshows(_ref17) {
|
|
10382
9791
|
var node = _ref17.node;
|
|
10383
9792
|
|
|
10384
|
-
return
|
|
9793
|
+
return React.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
10385
9794
|
},
|
|
10386
9795
|
nativeAd: function nativeAd(_ref18) {
|
|
10387
9796
|
var node = _ref18.node;
|
|
10388
9797
|
|
|
10389
|
-
return
|
|
9798
|
+
return React.createElement(NativeAd, { node: node });
|
|
10390
9799
|
},
|
|
10391
9800
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
10392
9801
|
var node = _ref19.node;
|
|
10393
9802
|
|
|
10394
|
-
return
|
|
9803
|
+
return React.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
10395
9804
|
},
|
|
10396
9805
|
hrtag: function hrtag() {
|
|
10397
|
-
return
|
|
9806
|
+
return React.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
10398
9807
|
},
|
|
10399
9808
|
brtag: function brtag() {
|
|
10400
|
-
return
|
|
9809
|
+
return React.createElement('br', { className: 'line-break' });
|
|
10401
9810
|
},
|
|
10402
9811
|
formstack: function formstack(_ref20) {
|
|
10403
9812
|
var node = _ref20.node;
|
|
@@ -10405,29 +9814,29 @@ var getSerializers = function getSerializers() {
|
|
|
10405
9814
|
Caption = node.Caption,
|
|
10406
9815
|
needSegmentSupport = node.needSegmentSupport;
|
|
10407
9816
|
|
|
10408
|
-
return
|
|
9817
|
+
return React.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
10409
9818
|
},
|
|
10410
9819
|
formassembly: FormAssembly,
|
|
10411
9820
|
multimedia: function multimedia(_ref21) {
|
|
10412
9821
|
var node = _ref21.node;
|
|
10413
9822
|
|
|
10414
|
-
return
|
|
9823
|
+
return React.createElement(MultiMedia, { node: node, client: client });
|
|
10415
9824
|
},
|
|
10416
9825
|
blockTable: function blockTable(_ref22) {
|
|
10417
9826
|
var node = _ref22.node;
|
|
10418
|
-
return
|
|
9827
|
+
return React.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10419
9828
|
}
|
|
10420
9829
|
},
|
|
10421
9830
|
marks: {
|
|
10422
9831
|
superscript: function superscript(props) {
|
|
10423
|
-
return
|
|
9832
|
+
return React.createElement(
|
|
10424
9833
|
'sup',
|
|
10425
9834
|
null,
|
|
10426
9835
|
props.children
|
|
10427
9836
|
);
|
|
10428
9837
|
},
|
|
10429
9838
|
subscript: function subscript(props) {
|
|
10430
|
-
return
|
|
9839
|
+
return React.createElement(
|
|
10431
9840
|
'sub',
|
|
10432
9841
|
null,
|
|
10433
9842
|
props.children
|
|
@@ -10443,7 +9852,7 @@ var getSerializers = function getSerializers() {
|
|
|
10443
9852
|
if (href && href.charAt(0) === '#') {
|
|
10444
9853
|
var elementId = href.slice(1);
|
|
10445
9854
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
10446
|
-
return
|
|
9855
|
+
return React.createElement(
|
|
10447
9856
|
'a',
|
|
10448
9857
|
{ onClick: function onClick() {
|
|
10449
9858
|
return ScrollToElement(elementId);
|
|
@@ -10453,7 +9862,7 @@ var getSerializers = function getSerializers() {
|
|
|
10453
9862
|
}
|
|
10454
9863
|
|
|
10455
9864
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
10456
|
-
return
|
|
9865
|
+
return React.createElement(
|
|
10457
9866
|
'a',
|
|
10458
9867
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
10459
9868
|
children
|
|
@@ -10461,7 +9870,7 @@ var getSerializers = function getSerializers() {
|
|
|
10461
9870
|
},
|
|
10462
9871
|
alignleft: function alignleft(_ref23) {
|
|
10463
9872
|
var children = _ref23.children;
|
|
10464
|
-
return
|
|
9873
|
+
return React.createElement(
|
|
10465
9874
|
'div',
|
|
10466
9875
|
{ style: { textAlign: 'left' } },
|
|
10467
9876
|
children
|
|
@@ -10469,7 +9878,7 @@ var getSerializers = function getSerializers() {
|
|
|
10469
9878
|
},
|
|
10470
9879
|
alignright: function alignright(_ref24) {
|
|
10471
9880
|
var children = _ref24.children;
|
|
10472
|
-
return
|
|
9881
|
+
return React.createElement(
|
|
10473
9882
|
'div',
|
|
10474
9883
|
{ style: { textAlign: 'right' } },
|
|
10475
9884
|
children
|
|
@@ -10477,7 +9886,7 @@ var getSerializers = function getSerializers() {
|
|
|
10477
9886
|
},
|
|
10478
9887
|
aligncenter: function aligncenter(_ref25) {
|
|
10479
9888
|
var children = _ref25.children;
|
|
10480
|
-
return
|
|
9889
|
+
return React.createElement(
|
|
10481
9890
|
'div',
|
|
10482
9891
|
{ style: { textAlign: 'center' } },
|
|
10483
9892
|
children
|
|
@@ -10485,7 +9894,7 @@ var getSerializers = function getSerializers() {
|
|
|
10485
9894
|
},
|
|
10486
9895
|
alignjustify: function alignjustify(_ref26) {
|
|
10487
9896
|
var children = _ref26.children;
|
|
10488
|
-
return
|
|
9897
|
+
return React.createElement(
|
|
10489
9898
|
'div',
|
|
10490
9899
|
{ style: { textAlign: 'justify' } },
|
|
10491
9900
|
children
|
|
@@ -10495,7 +9904,7 @@ var getSerializers = function getSerializers() {
|
|
|
10495
9904
|
var children = props.children,
|
|
10496
9905
|
color = props.mark.color;
|
|
10497
9906
|
|
|
10498
|
-
return
|
|
9907
|
+
return React.createElement(
|
|
10499
9908
|
'span',
|
|
10500
9909
|
{ style: { color: color ? color.hex : null } },
|
|
10501
9910
|
children
|