@mjhls/mjh-framework 1.0.862-beta.0 → 1.0.863-author-details-v1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/AD.js +10 -9
- package/dist/cjs/AD300x250.js +10 -9
- package/dist/cjs/AD300x250x600.js +10 -9
- package/dist/cjs/AD728x90.js +11 -10
- package/dist/cjs/ADFloatingFooter.js +12 -11
- package/dist/cjs/ADFooter.js +9 -8
- package/dist/cjs/ADGutter.js +12 -11
- package/dist/cjs/{ADInfeed-98c71bcd.js → ADInfeed-25d48cc2.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-9de32585.js → ADlgInfeed-a535a768.js} +7 -6
- package/dist/cjs/AccordionPanel.js +24 -22
- package/dist/cjs/AdSlot.js +14 -13
- package/dist/cjs/AdSlotsProvider.js +11 -902
- package/dist/cjs/AlgoliaSearch.js +952 -842
- package/dist/cjs/AlphabeticList.js +16 -15
- package/dist/cjs/ArticleCarousel.js +11 -10
- package/dist/cjs/ArticleProgramLandingPage.js +28 -27
- package/dist/cjs/ArticleSeriesLandingPage.js +23 -22
- package/dist/cjs/ArticleSeriesListing.js +40 -39
- package/dist/cjs/Auth.js +237 -1197
- package/dist/cjs/AuthWrapper.js +124 -46
- package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-ac8972ce.js} +13 -12
- package/dist/cjs/{BlockContent-091a991f.js → BlockContent-8b494587.js} +25 -24
- package/dist/cjs/Breadcrumbs.js +23 -21
- package/dist/cjs/CMEDeck.js +64 -64
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +22 -19
- package/dist/cjs/Column3.js +35 -32
- package/dist/cjs/ConferenceArticleCard.js +18 -17
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +76 -72
- package/dist/cjs/DeckQueue.js +72 -68
- package/dist/cjs/{Dfp-26baccf1.js → Dfp-391fd124.js} +23 -22
- package/dist/cjs/EventsDeck.js +123 -116
- package/dist/cjs/ExternalResources.js +47 -46
- package/dist/cjs/Feature.js +25 -23
- package/dist/cjs/ForbesHero.js +35 -34
- package/dist/cjs/GridContent.js +208 -203
- package/dist/cjs/GridHero.js +36 -35
- package/dist/cjs/GroupDeck.js +49 -48
- package/dist/cjs/HamMagazine.js +121 -116
- package/dist/cjs/Header.js +14 -12
- package/dist/cjs/Hero.js +10 -9
- package/dist/cjs/HighlightenVideo.js +17 -16
- package/dist/cjs/HorizontalArticleListing.js +37 -36
- package/dist/cjs/HorizontalHero.js +24 -23
- package/dist/cjs/IssueContentDeck.js +70 -65
- package/dist/cjs/IssueDeck.js +65 -60
- package/dist/cjs/IssueLanding.js +29 -28
- package/dist/cjs/LeftNav.js +22 -20
- package/dist/cjs/MasterDeck.js +50 -49
- package/dist/cjs/MediaSeriesLanding.js +733 -786
- 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 +133 -1229
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +15 -13
- package/dist/cjs/PubSection.js +20 -19
- package/dist/cjs/PubToc.js +8 -7
- package/dist/cjs/PublicationDeck.js +64 -59
- package/dist/cjs/PublicationLanding.js +87 -83
- package/dist/cjs/QueueDeckExpanded.js +285 -285
- package/dist/cjs/RecentNews.js +20 -19
- package/dist/cjs/RelatedContent.js +23 -22
- package/dist/cjs/RelatedTopicsDropdown.js +22 -19
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +16 -12
- package/dist/cjs/SeriesListingDeck.js +26 -26
- package/dist/cjs/{SeriesSlider-8bbc989f.js → SeriesSlider-0d3bf265.js} +34 -33
- package/dist/cjs/SideFooter.js +24 -23
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-cea213aa.js → SocialSearchComponent-19548e2a.js} +38 -34
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +59 -54
- package/dist/cjs/TaxonomyDescription.js +22 -21
- package/dist/cjs/TemplateNormal.js +35 -34
- package/dist/cjs/ThumbnailCard.js +19 -17
- package/dist/cjs/Ustream.js +22 -21
- package/dist/cjs/VerticalHero.js +16 -15
- package/dist/cjs/VideoProgramLandingPage.js +47 -43
- package/dist/cjs/VideoSeriesCard.js +23 -22
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesLandingPage.js +28 -27
- package/dist/cjs/VideoSeriesListing.js +57 -56
- package/dist/cjs/View.js +207 -201
- 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 +16 -16
- package/dist/cjs/getRelatedArticle.js +67 -131
- package/dist/cjs/getRootDocGroup.js +3 -3
- package/dist/cjs/getSerializers.js +11 -11
- package/dist/cjs/{getTargeting-f1821260.js → getTargeting-a9a871f0.js} +2 -2
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-a1e54356.js → index-04a5a4a2.js} +961 -934
- package/dist/cjs/{index-98e01cb9.js → index-2cf30c83.js} +9 -8
- package/dist/cjs/{index-3294d3bc.js → index-6367b7bf.js} +16 -17
- package/dist/cjs/{index-96b3db50.js → index-9d365128.js} +12 -10
- package/dist/cjs/{index-be0c82be.js → index-b5eb3ff8.js} +20 -19
- package/dist/cjs/{index.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 +63 -58
- package/dist/cjs/{inherits-1f5a1c72.js → inherits-0c7830c5.js} +3 -3
- package/dist/cjs/{lodash-fc2922d0.js → lodash-7fd85bcf.js} +71 -22
- package/dist/cjs/{main-02daeefe.js → main-7b5e57b0.js} +90 -54
- package/dist/cjs/{md5-5039b1a6.js → md5-e1ca5797.js} +1 -1
- package/dist/cjs/{moment-575fe24c.js → moment-ca3bd9fb.js} +10 -8
- package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-07939b41.js} +12 -11
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{typeof-725500bc.js → typeof-9d7f610f.js} +1 -1
- package/dist/cjs/urlFor.js +3 -3
- package/dist/cjs/{visibility-sensor-ad5e3116.js → visibility-sensor-eb2c5b69.js} +7 -5
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +7 -7
- package/dist/esm/AD300x250x600.js +7 -7
- package/dist/esm/AD728x90.js +8 -8
- package/dist/esm/ADFloatingFooter.js +9 -9
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +9 -9
- package/dist/esm/{ADInfeed-1cc9d817.js → ADInfeed-56a3db8b.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-8c4f129e.js → ADlgInfeed-53edb995.js} +4 -4
- package/dist/esm/AccordionPanel.js +17 -17
- package/dist/esm/AdSlot.js +5 -5
- package/dist/esm/AdSlotsProvider.js +10 -902
- package/dist/esm/AlgoliaSearch.js +347 -238
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +8 -8
- package/dist/esm/ArticleProgramLandingPage.js +20 -20
- package/dist/esm/ArticleSeriesLandingPage.js +17 -17
- package/dist/esm/ArticleSeriesListing.js +36 -36
- package/dist/esm/Auth.js +216 -1180
- package/dist/esm/AuthWrapper.js +121 -44
- package/dist/esm/{AuthorComponent-34b16174.js → AuthorComponent-8ffd4679.js} +10 -10
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-d05b5b23.js} +4 -4
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +61 -61
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +17 -17
- package/dist/esm/Column3.js +30 -30
- package/dist/esm/ConferenceArticleCard.js +15 -15
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +68 -68
- package/dist/esm/DeckQueue.js +64 -64
- package/dist/esm/{Dfp-b7236041.js → Dfp-2f9796e1.js} +10 -10
- package/dist/esm/EventsDeck.js +92 -92
- package/dist/esm/ExternalResources.js +41 -41
- package/dist/esm/Feature.js +17 -17
- package/dist/esm/ForbesHero.js +28 -28
- package/dist/esm/GridContent.js +172 -172
- package/dist/esm/GridHero.js +29 -29
- package/dist/esm/GroupDeck.js +36 -36
- package/dist/esm/HamMagazine.js +91 -91
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +7 -7
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +34 -34
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +53 -53
- package/dist/esm/IssueDeck.js +54 -54
- package/dist/esm/IssueLanding.js +26 -26
- package/dist/esm/LeftNav.js +16 -16
- package/dist/esm/MasterDeck.js +46 -46
- package/dist/esm/MediaSeriesLanding.js +450 -506
- package/dist/esm/NavDvm.js +46 -46
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +93 -93
- package/dist/esm/NavNative.js +83 -83
- package/dist/esm/OncliveHero.js +14 -15
- package/dist/esm/OncliveLargeHero.js +52 -52
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +130 -1227
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +17 -17
- package/dist/esm/PubToc.js +5 -5
- package/dist/esm/PublicationDeck.js +51 -51
- package/dist/esm/PublicationLanding.js +69 -69
- package/dist/esm/QueueDeckExpanded.js +251 -251
- package/dist/esm/RecentNews.js +17 -17
- package/dist/esm/RelatedContent.js +17 -17
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +7 -7
- package/dist/esm/SeriesListingDeck.js +20 -20
- package/dist/esm/{SeriesSlider-a866bb21.js → SeriesSlider-7d89f4d9.js} +24 -24
- package/dist/esm/SideFooter.js +19 -19
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-03c3e869.js → SocialSearchComponent-47815365.js} +28 -28
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +50 -50
- package/dist/esm/TaxonomyDescription.js +16 -16
- package/dist/esm/TemplateNormal.js +31 -31
- package/dist/esm/ThumbnailCard.js +10 -10
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoProgramLandingPage.js +32 -32
- package/dist/esm/VideoSeriesCard.js +17 -17
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesLandingPage.js +17 -17
- package/dist/esm/VideoSeriesListing.js +53 -53
- package/dist/esm/View.js +184 -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 +1 -1
- package/dist/esm/getRelatedArticle.js +62 -126
- package/dist/esm/getSerializers.js +11 -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-a1c5f00a.js → index-cf54da7f.js} +904 -887
- package/dist/esm/{index-41a678ea.js → index-f7fb1e25.js} +3 -3
- package/dist/esm/{index.es-29c1cef5.js → index.es-c6222053.js} +28 -10
- package/dist/esm/{index.esm-29e48d38.js → index.esm-3fdda599.js} +6 -15
- package/dist/esm/{index.esm-fd746768.js → index.esm-8ee5ff72.js} +17 -18
- package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
- package/dist/esm/{index.esm-f8aaeeeb.js → index.esm-c6715e80.js} +3 -6
- package/dist/esm/index.js +51 -49
- package/dist/esm/{inherits-cf8dde54.js → inherits-75d45541.js} +1 -1
- package/dist/esm/{lodash-17fdfebb.js → lodash-ec8c6b48.js} +71 -22
- package/dist/esm/{main-e4a934b2.js → main-747e7d25.js} +87 -52
- package/dist/esm/{md5-9be0e905.js → md5-4e42248e.js} +1 -1
- package/dist/esm/{moment-e2f9b20c.js → moment-b6f49411.js} +10 -8
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-3822f1ce.js} +5 -5
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{typeof-6435ba1c.js → typeof-af9c50d8.js} +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/package.json +1 -1
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
- package/dist/cjs/inherits-8d29278d.js +0 -110
- package/dist/esm/inherits-77d5e4fc.js +0 -101
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import { _ as _export, a as _core } from './_to-object-a4107da3.js';
|
|
3
3
|
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
|
|
4
|
-
import { _ as _extends
|
|
5
|
-
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-
|
|
6
|
-
import { _ as _typeof } from './typeof-
|
|
7
|
-
import
|
|
8
|
-
import { l as lib_3 } from './index-
|
|
4
|
+
import { _ as _extends, b as _extends$1 } from './extends-6f2fcc99.js';
|
|
5
|
+
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-75d45541.js';
|
|
6
|
+
import { _ as _typeof$1 } from './typeof-af9c50d8.js';
|
|
7
|
+
import React, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
8
|
+
import { l as lib_3 } from './index-f7fb1e25.js';
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
10
|
import Row$1 from 'react-bootstrap/Row';
|
|
11
11
|
import Col$1 from 'react-bootstrap/Col';
|
|
12
|
-
import { m as moment } from './moment-
|
|
12
|
+
import { m as moment } from './moment-b6f49411.js';
|
|
13
13
|
import Router, { useRouter } from 'next/router';
|
|
14
14
|
import urlFor from './urlFor.js';
|
|
15
|
-
import { L as LazyLoad } from './index-
|
|
16
|
-
import { d as main_16, b as
|
|
15
|
+
import { L as LazyLoad } from './index-6c12bdd5.js';
|
|
16
|
+
import { d as main_16, b as main_39, m as main_40 } from './main-747e7d25.js';
|
|
17
17
|
import { h as html_decode_1 } from './entities-7cc3bf45.js';
|
|
18
18
|
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-641f241f.js';
|
|
19
19
|
import Segment from './Segment.js';
|
|
20
20
|
import Beam from './Beam.js';
|
|
21
21
|
import DFPAdSlot from './AdSlot.js';
|
|
22
22
|
import Button$1 from 'react-bootstrap/Button';
|
|
23
|
-
import { B as BlockContent } from './BlockContent-
|
|
23
|
+
import { B as BlockContent } from './BlockContent-d05b5b23.js';
|
|
24
24
|
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
25
25
|
import GroupDeck from './GroupDeck.js';
|
|
26
26
|
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
27
|
-
import { d as IoIosArrowDropupCircle } from './index.esm-
|
|
27
|
+
import { d as IoIosArrowDropupCircle } from './index.esm-3fdda599.js';
|
|
28
28
|
import { u as util } from './util-7700fc59.js';
|
|
29
|
-
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-
|
|
29
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-4abff0b1.js';
|
|
30
30
|
import Head from 'next/head';
|
|
31
31
|
import SocialShare from './SocialShare.js';
|
|
32
32
|
import { _ as _objectToArray } from './_object-to-array-7e804fce.js';
|
|
33
|
-
import Pagination
|
|
34
|
-
import Figure$
|
|
33
|
+
import Pagination from 'react-bootstrap/Pagination';
|
|
34
|
+
import Figure$2 from 'react-bootstrap/Figure';
|
|
35
35
|
import OverlayTrigger from 'react-bootstrap/OverlayTrigger';
|
|
36
|
-
import Tooltip
|
|
37
|
-
import Popover
|
|
36
|
+
import Tooltip from 'react-bootstrap/Tooltip';
|
|
37
|
+
import Popover from 'react-bootstrap/Popover';
|
|
38
38
|
|
|
39
39
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
40
40
|
var pageNumber = selectedIndex + 1;
|
|
@@ -69,27 +69,27 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
69
69
|
if (pageview) pageview(router.asPath);
|
|
70
70
|
}, [router]);
|
|
71
71
|
|
|
72
|
-
return
|
|
72
|
+
return React.createElement(
|
|
73
73
|
'div',
|
|
74
74
|
{ className: 'mt-3 mb-3' },
|
|
75
|
-
|
|
75
|
+
React.createElement(
|
|
76
76
|
Carousel,
|
|
77
77
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
78
78
|
return onChangeSlide(selectedIndex, router);
|
|
79
79
|
}, interval: null },
|
|
80
80
|
slides && slides.map(function (slide) {
|
|
81
|
-
return
|
|
81
|
+
return React.createElement(
|
|
82
82
|
Carousel.Item,
|
|
83
83
|
{ key: slide._key },
|
|
84
|
-
|
|
84
|
+
React.createElement(
|
|
85
85
|
'picture',
|
|
86
86
|
null,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
87
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
88
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
89
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
90
|
+
React.createElement('img', { src: urlFor({ source: slide.asset, client: client }), alt: slide.alt || '', style: { width: '100%' } })
|
|
91
91
|
),
|
|
92
|
-
slide.caption &&
|
|
92
|
+
slide.caption && React.createElement(
|
|
93
93
|
'p',
|
|
94
94
|
{ className: 'p-2' },
|
|
95
95
|
slide.caption
|
|
@@ -100,21 +100,18 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
100
100
|
);
|
|
101
101
|
};
|
|
102
102
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
103
|
+
// do not edit .js files directly - edit src/index.jst
|
|
104
|
+
|
|
105
|
+
|
|
106
106
|
|
|
107
107
|
var fastDeepEqual = function equal(a, b) {
|
|
108
108
|
if (a === b) return true;
|
|
109
109
|
|
|
110
110
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
111
|
-
|
|
112
|
-
, arrB = isArray(b)
|
|
113
|
-
, i
|
|
114
|
-
, length
|
|
115
|
-
, key;
|
|
111
|
+
if (a.constructor !== b.constructor) return false;
|
|
116
112
|
|
|
117
|
-
|
|
113
|
+
var length, i, keys;
|
|
114
|
+
if (Array.isArray(a)) {
|
|
118
115
|
length = a.length;
|
|
119
116
|
if (length != b.length) return false;
|
|
120
117
|
for (i = length; i-- !== 0;)
|
|
@@ -122,35 +119,29 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
122
119
|
return true;
|
|
123
120
|
}
|
|
124
121
|
|
|
125
|
-
if (arrA != arrB) return false;
|
|
126
122
|
|
|
127
|
-
var dateA = a instanceof Date
|
|
128
|
-
, dateB = b instanceof Date;
|
|
129
|
-
if (dateA != dateB) return false;
|
|
130
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
131
123
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
if (
|
|
135
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
124
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
125
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
126
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
136
127
|
|
|
137
|
-
|
|
128
|
+
keys = Object.keys(a);
|
|
138
129
|
length = keys.length;
|
|
139
|
-
|
|
140
|
-
if (length !== keyList(b).length)
|
|
141
|
-
return false;
|
|
130
|
+
if (length !== Object.keys(b).length) return false;
|
|
142
131
|
|
|
143
132
|
for (i = length; i-- !== 0;)
|
|
144
|
-
if (!
|
|
133
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
145
134
|
|
|
146
135
|
for (i = length; i-- !== 0;) {
|
|
147
|
-
key = keys[i];
|
|
136
|
+
var key = keys[i];
|
|
137
|
+
|
|
148
138
|
if (!equal(a[key], b[key])) return false;
|
|
149
139
|
}
|
|
150
140
|
|
|
151
141
|
return true;
|
|
152
142
|
}
|
|
153
143
|
|
|
144
|
+
// true if both NaN, false otherwise
|
|
154
145
|
return a!==a && b!==b;
|
|
155
146
|
};
|
|
156
147
|
|
|
@@ -1573,199 +1564,239 @@ module.exports = exports['default'];
|
|
|
1573
1564
|
|
|
1574
1565
|
var youTubePlayer = unwrapExports(dist);
|
|
1575
1566
|
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
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; };
|
|
1567
|
+
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); }
|
|
1579
1568
|
|
|
1580
1569
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1581
1570
|
|
|
1582
|
-
function
|
|
1571
|
+
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); } }
|
|
1572
|
+
|
|
1573
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1574
|
+
|
|
1575
|
+
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); }
|
|
1576
|
+
|
|
1577
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1578
|
+
|
|
1579
|
+
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); }; }
|
|
1580
|
+
|
|
1581
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1582
|
+
|
|
1583
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1584
|
+
|
|
1585
|
+
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; } }
|
|
1586
|
+
|
|
1587
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1583
1588
|
|
|
1584
|
-
function
|
|
1589
|
+
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; }
|
|
1585
1590
|
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
*
|
|
1591
|
+
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; }
|
|
1592
|
+
|
|
1593
|
+
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; }
|
|
1594
|
+
/**
|
|
1595
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1596
|
+
*
|
|
1597
|
+
* @param {Object} prevProps
|
|
1598
|
+
* @param {Object} props
|
|
1591
1599
|
*/
|
|
1600
|
+
|
|
1592
1601
|
function shouldUpdateVideo(prevProps, props) {
|
|
1593
1602
|
// A changing video should always trigger an update
|
|
1594
1603
|
if (prevProps.videoId !== props.videoId) {
|
|
1595
1604
|
return true;
|
|
1596
|
-
}
|
|
1597
|
-
|
|
1598
|
-
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1605
|
+
} // Otherwise, a change in the start/end time playerVars also requires a player
|
|
1599
1606
|
// update.
|
|
1607
|
+
|
|
1608
|
+
|
|
1600
1609
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1601
1610
|
var vars = props.opts.playerVars || {};
|
|
1602
|
-
|
|
1603
1611
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1604
1612
|
}
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
*
|
|
1608
|
-
*
|
|
1609
|
-
*
|
|
1610
|
-
*
|
|
1611
|
-
* @param {Object} opts
|
|
1613
|
+
/**
|
|
1614
|
+
* Neutralize API options that only require a video update, leaving only options
|
|
1615
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1616
|
+
* player reset is necessary.
|
|
1617
|
+
*
|
|
1618
|
+
* @param {Object} opts
|
|
1612
1619
|
*/
|
|
1620
|
+
|
|
1621
|
+
|
|
1613
1622
|
function filterResetOptions(opts) {
|
|
1614
|
-
return
|
|
1615
|
-
playerVars:
|
|
1623
|
+
return _objectSpread(_objectSpread({}, opts), {}, {
|
|
1624
|
+
playerVars: _objectSpread({
|
|
1616
1625
|
autoplay: 0,
|
|
1617
1626
|
start: 0,
|
|
1618
1627
|
end: 0
|
|
1619
|
-
})
|
|
1628
|
+
}, opts.playerVars)
|
|
1620
1629
|
});
|
|
1621
1630
|
}
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
*
|
|
1625
|
-
*
|
|
1626
|
-
*
|
|
1627
|
-
*
|
|
1628
|
-
*
|
|
1629
|
-
* @param {Object}
|
|
1630
|
-
* @param {Object} props
|
|
1631
|
+
/**
|
|
1632
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1633
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1634
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1635
|
+
* those.
|
|
1636
|
+
*
|
|
1637
|
+
* @param {Object} prevProps
|
|
1638
|
+
* @param {Object} props
|
|
1631
1639
|
*/
|
|
1640
|
+
|
|
1641
|
+
|
|
1632
1642
|
function shouldResetPlayer(prevProps, props) {
|
|
1633
1643
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1634
1644
|
}
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
*
|
|
1638
|
-
*
|
|
1639
|
-
* @param {Object}
|
|
1640
|
-
* @param {Object} props
|
|
1645
|
+
/**
|
|
1646
|
+
* Check whether a props change should result in an id or className update.
|
|
1647
|
+
*
|
|
1648
|
+
* @param {Object} prevProps
|
|
1649
|
+
* @param {Object} props
|
|
1641
1650
|
*/
|
|
1651
|
+
|
|
1652
|
+
|
|
1642
1653
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1643
1654
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1644
1655
|
}
|
|
1645
1656
|
|
|
1646
|
-
var YouTube = function (_React$Component) {
|
|
1657
|
+
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
1647
1658
|
_inherits(YouTube, _React$Component);
|
|
1648
1659
|
|
|
1660
|
+
var _super = _createSuper(YouTube);
|
|
1661
|
+
|
|
1662
|
+
/**
|
|
1663
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1664
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1665
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1666
|
+
*/
|
|
1649
1667
|
function YouTube(props) {
|
|
1668
|
+
var _this;
|
|
1669
|
+
|
|
1650
1670
|
_classCallCheck(this, YouTube);
|
|
1651
1671
|
|
|
1652
|
-
|
|
1672
|
+
_this = _super.call(this, props);
|
|
1653
1673
|
|
|
1654
|
-
_this
|
|
1674
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
|
|
1655
1675
|
return _this.props.onReady(event);
|
|
1656
|
-
};
|
|
1676
|
+
});
|
|
1657
1677
|
|
|
1658
|
-
_this
|
|
1678
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
|
|
1659
1679
|
return _this.props.onError(event);
|
|
1660
|
-
};
|
|
1680
|
+
});
|
|
1661
1681
|
|
|
1662
|
-
_this
|
|
1682
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
|
|
1663
1683
|
_this.props.onStateChange(event);
|
|
1664
|
-
switch (event.data) {
|
|
1665
1684
|
|
|
1685
|
+
switch (event.data) {
|
|
1666
1686
|
case YouTube.PlayerState.ENDED:
|
|
1667
1687
|
_this.props.onEnd(event);
|
|
1688
|
+
|
|
1668
1689
|
break;
|
|
1669
1690
|
|
|
1670
1691
|
case YouTube.PlayerState.PLAYING:
|
|
1671
1692
|
_this.props.onPlay(event);
|
|
1693
|
+
|
|
1672
1694
|
break;
|
|
1673
1695
|
|
|
1674
1696
|
case YouTube.PlayerState.PAUSED:
|
|
1675
1697
|
_this.props.onPause(event);
|
|
1698
|
+
|
|
1676
1699
|
break;
|
|
1677
1700
|
}
|
|
1678
|
-
};
|
|
1701
|
+
});
|
|
1679
1702
|
|
|
1680
|
-
_this
|
|
1703
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
|
|
1681
1704
|
return _this.props.onPlaybackRateChange(event);
|
|
1682
|
-
};
|
|
1705
|
+
});
|
|
1683
1706
|
|
|
1684
|
-
_this
|
|
1707
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
|
|
1685
1708
|
return _this.props.onPlaybackQualityChange(event);
|
|
1686
|
-
};
|
|
1709
|
+
});
|
|
1687
1710
|
|
|
1688
|
-
_this
|
|
1711
|
+
_defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
|
|
1689
1712
|
// do not attempt to create a player server-side, it won't work
|
|
1690
|
-
if (typeof document === 'undefined') return;
|
|
1691
|
-
|
|
1692
|
-
var playerOpts =
|
|
1713
|
+
if (typeof document === 'undefined') return; // create player
|
|
1714
|
+
|
|
1715
|
+
var playerOpts = _objectSpread(_objectSpread({}, _this.props.opts), {}, {
|
|
1693
1716
|
// preload the `videoId` video if one is already given
|
|
1694
1717
|
videoId: _this.props.videoId
|
|
1695
1718
|
});
|
|
1696
|
-
|
|
1697
|
-
// attach event handlers
|
|
1719
|
+
|
|
1720
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
|
|
1721
|
+
|
|
1698
1722
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1723
|
+
|
|
1699
1724
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1725
|
+
|
|
1700
1726
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1727
|
+
|
|
1701
1728
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1729
|
+
|
|
1702
1730
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1703
|
-
};
|
|
1731
|
+
});
|
|
1704
1732
|
|
|
1705
|
-
_this
|
|
1733
|
+
_defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
|
|
1706
1734
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1707
|
-
};
|
|
1735
|
+
});
|
|
1708
1736
|
|
|
1709
|
-
_this
|
|
1737
|
+
_defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
|
|
1710
1738
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1711
1739
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1712
1740
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1713
1741
|
});
|
|
1714
|
-
};
|
|
1742
|
+
});
|
|
1715
1743
|
|
|
1716
|
-
_this
|
|
1744
|
+
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1745
|
+
return _this.internalPlayer;
|
|
1746
|
+
});
|
|
1747
|
+
|
|
1748
|
+
_defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
|
|
1717
1749
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1718
1750
|
_this.internalPlayer.stopVideo();
|
|
1751
|
+
|
|
1719
1752
|
return;
|
|
1720
|
-
}
|
|
1753
|
+
} // set queueing options
|
|
1754
|
+
|
|
1721
1755
|
|
|
1722
|
-
// set queueing options
|
|
1723
1756
|
var autoplay = false;
|
|
1724
1757
|
var opts = {
|
|
1725
1758
|
videoId: _this.props.videoId
|
|
1726
1759
|
};
|
|
1760
|
+
|
|
1727
1761
|
if ('playerVars' in _this.props.opts) {
|
|
1728
1762
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1763
|
+
|
|
1729
1764
|
if ('start' in _this.props.opts.playerVars) {
|
|
1730
1765
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1731
1766
|
}
|
|
1767
|
+
|
|
1732
1768
|
if ('end' in _this.props.opts.playerVars) {
|
|
1733
1769
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1734
1770
|
}
|
|
1735
|
-
}
|
|
1771
|
+
} // if autoplay is enabled loadVideoById
|
|
1772
|
+
|
|
1736
1773
|
|
|
1737
|
-
// if autoplay is enabled loadVideoById
|
|
1738
1774
|
if (autoplay) {
|
|
1739
1775
|
_this.internalPlayer.loadVideoById(opts);
|
|
1776
|
+
|
|
1740
1777
|
return;
|
|
1741
|
-
}
|
|
1742
|
-
|
|
1778
|
+
} // default behaviour just cues the video
|
|
1779
|
+
|
|
1780
|
+
|
|
1743
1781
|
_this.internalPlayer.cueVideoById(opts);
|
|
1744
|
-
};
|
|
1782
|
+
});
|
|
1745
1783
|
|
|
1746
|
-
_this
|
|
1784
|
+
_defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
|
|
1747
1785
|
_this.container = container;
|
|
1748
|
-
};
|
|
1786
|
+
});
|
|
1749
1787
|
|
|
1750
1788
|
_this.container = null;
|
|
1751
1789
|
_this.internalPlayer = null;
|
|
1752
1790
|
return _this;
|
|
1753
1791
|
}
|
|
1754
1792
|
|
|
1755
|
-
/**
|
|
1756
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1757
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1758
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1759
|
-
*/
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
1793
|
_createClass(YouTube, [{
|
|
1763
|
-
key:
|
|
1794
|
+
key: "componentDidMount",
|
|
1764
1795
|
value: function componentDidMount() {
|
|
1765
1796
|
this.createPlayer();
|
|
1766
1797
|
}
|
|
1767
1798
|
}, {
|
|
1768
|
-
key:
|
|
1799
|
+
key: "componentDidUpdate",
|
|
1769
1800
|
value: function componentDidUpdate(prevProps) {
|
|
1770
1801
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1771
1802
|
this.updatePlayer();
|
|
@@ -1780,112 +1811,58 @@ var YouTube = function (_React$Component) {
|
|
|
1780
1811
|
}
|
|
1781
1812
|
}
|
|
1782
1813
|
}, {
|
|
1783
|
-
key:
|
|
1814
|
+
key: "componentWillUnmount",
|
|
1784
1815
|
value: function componentWillUnmount() {
|
|
1785
|
-
/**
|
|
1786
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1787
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1788
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1789
|
-
* this method isn't quick enough to reset the container element.
|
|
1816
|
+
/**
|
|
1817
|
+
* Note: The `youtube-player` package that is used promisifies all YouTube
|
|
1818
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1819
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1820
|
+
* this method isn't quick enough to reset the container element.
|
|
1790
1821
|
*/
|
|
1791
1822
|
this.internalPlayer.destroy();
|
|
1792
1823
|
}
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
*
|
|
1796
|
-
*
|
|
1797
|
-
*
|
|
1798
|
-
* @param {Object} target - player object
|
|
1799
|
-
*/
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
/**
|
|
1803
|
-
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1804
|
-
*
|
|
1805
|
-
* @param {Object} event
|
|
1806
|
-
* @param {Integer} data - error type
|
|
1807
|
-
* @param {Object} target - player object
|
|
1808
|
-
*/
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
/**
|
|
1812
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1813
|
-
*
|
|
1814
|
-
* @param {Object} event
|
|
1815
|
-
* @param {Integer} data - status change type
|
|
1816
|
-
* @param {Object} target - actual YT player
|
|
1817
|
-
*/
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
/**
|
|
1821
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1822
|
-
*
|
|
1823
|
-
* @param {Object} event
|
|
1824
|
-
* @param {Float} data - playback rate
|
|
1825
|
-
* @param {Object} target - actual YT player
|
|
1826
|
-
*/
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
/**
|
|
1830
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1831
|
-
*
|
|
1832
|
-
* @param {Object} event
|
|
1833
|
-
* @param {String} data - playback quality
|
|
1834
|
-
* @param {Object} target - actual YT player
|
|
1835
|
-
*/
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
/**
|
|
1839
|
-
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1840
|
-
*/
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
/**
|
|
1844
|
-
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1845
|
-
*/
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
/**
|
|
1849
|
-
* Method to update the id and class of the Youtube Player iframe.
|
|
1850
|
-
* React should update this automatically but since the Youtube Player API
|
|
1851
|
-
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1852
|
-
*/
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
/**
|
|
1856
|
-
* Call Youtube Player API methods to update the currently playing video.
|
|
1857
|
-
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1858
|
-
* Youtube Player API methods to update the video.
|
|
1824
|
+
/**
|
|
1825
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1826
|
+
*
|
|
1827
|
+
* @param {Object} event
|
|
1828
|
+
* @param {Object} target - player object
|
|
1859
1829
|
*/
|
|
1860
1830
|
|
|
1861
1831
|
}, {
|
|
1862
|
-
key:
|
|
1832
|
+
key: "render",
|
|
1863
1833
|
value: function render() {
|
|
1864
|
-
return
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1834
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1835
|
+
className: this.props.containerClassName
|
|
1836
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1837
|
+
id: this.props.id,
|
|
1838
|
+
className: this.props.className,
|
|
1839
|
+
ref: this.refContainer
|
|
1840
|
+
}));
|
|
1869
1841
|
}
|
|
1870
1842
|
}]);
|
|
1871
1843
|
|
|
1872
1844
|
return YouTube;
|
|
1873
|
-
}(
|
|
1845
|
+
}(React.Component);
|
|
1846
|
+
|
|
1847
|
+
_defineProperty(YouTube, "PlayerState", {
|
|
1848
|
+
UNSTARTED: -1,
|
|
1849
|
+
ENDED: 0,
|
|
1850
|
+
PLAYING: 1,
|
|
1851
|
+
PAUSED: 2,
|
|
1852
|
+
BUFFERING: 3,
|
|
1853
|
+
CUED: 5
|
|
1854
|
+
});
|
|
1874
1855
|
|
|
1875
1856
|
YouTube.propTypes = {
|
|
1876
1857
|
videoId: PropTypes.string,
|
|
1877
|
-
|
|
1878
1858
|
// custom ID for player element
|
|
1879
1859
|
id: PropTypes.string,
|
|
1880
|
-
|
|
1881
1860
|
// custom class name for player element
|
|
1882
1861
|
className: PropTypes.string,
|
|
1883
1862
|
// custom class name for player container element
|
|
1884
1863
|
containerClassName: PropTypes.string,
|
|
1885
|
-
|
|
1886
1864
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1887
1865
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1888
|
-
|
|
1889
1866
|
// event subscriptions
|
|
1890
1867
|
onReady: PropTypes.func,
|
|
1891
1868
|
onError: PropTypes.func,
|
|
@@ -1897,6 +1874,7 @@ YouTube.propTypes = {
|
|
|
1897
1874
|
onPlaybackQualityChange: PropTypes.func
|
|
1898
1875
|
};
|
|
1899
1876
|
YouTube.defaultProps = {
|
|
1877
|
+
videoId: null,
|
|
1900
1878
|
id: null,
|
|
1901
1879
|
className: null,
|
|
1902
1880
|
opts: {},
|
|
@@ -1910,14 +1888,6 @@ YouTube.defaultProps = {
|
|
|
1910
1888
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1911
1889
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1912
1890
|
};
|
|
1913
|
-
YouTube.PlayerState = {
|
|
1914
|
-
UNSTARTED: -1,
|
|
1915
|
-
ENDED: 0,
|
|
1916
|
-
PLAYING: 1,
|
|
1917
|
-
PAUSED: 2,
|
|
1918
|
-
BUFFERING: 3,
|
|
1919
|
-
CUED: 5
|
|
1920
|
-
};
|
|
1921
1891
|
|
|
1922
1892
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1923
1893
|
var url = _ref.url,
|
|
@@ -2019,11 +1989,11 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
2019
1989
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
2020
1990
|
};
|
|
2021
1991
|
|
|
2022
|
-
return
|
|
1992
|
+
return React.createElement(
|
|
2023
1993
|
'div',
|
|
2024
1994
|
{ id: 'fluid-video-container' },
|
|
2025
|
-
|
|
2026
|
-
|
|
1995
|
+
React.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
1996
|
+
React.createElement(
|
|
2027
1997
|
'style',
|
|
2028
1998
|
{ jsx: 'true' },
|
|
2029
1999
|
'\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 '
|
|
@@ -2036,20 +2006,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2036
2006
|
content = _ref.content,
|
|
2037
2007
|
getSerializers = _ref.getSerializers;
|
|
2038
2008
|
|
|
2039
|
-
return
|
|
2009
|
+
return React.createElement(
|
|
2040
2010
|
'article',
|
|
2041
2011
|
{ className: 'sidebar' },
|
|
2042
|
-
|
|
2012
|
+
React.createElement(
|
|
2043
2013
|
'div',
|
|
2044
2014
|
null,
|
|
2045
|
-
|
|
2015
|
+
React.createElement(
|
|
2046
2016
|
'h3',
|
|
2047
2017
|
null,
|
|
2048
2018
|
caption
|
|
2049
2019
|
),
|
|
2050
|
-
|
|
2020
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2051
2021
|
),
|
|
2052
|
-
|
|
2022
|
+
React.createElement(
|
|
2053
2023
|
'style',
|
|
2054
2024
|
{ jsx: 'true' },
|
|
2055
2025
|
'\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 '
|
|
@@ -2060,18 +2030,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2060
2030
|
var TableShow = function TableShow(_ref) {
|
|
2061
2031
|
var rows = _ref.rows;
|
|
2062
2032
|
|
|
2063
|
-
return
|
|
2033
|
+
return React.createElement(
|
|
2064
2034
|
Table,
|
|
2065
2035
|
{ bordered: true, hover: true, responsive: true },
|
|
2066
|
-
|
|
2036
|
+
React.createElement(
|
|
2067
2037
|
'tbody',
|
|
2068
2038
|
null,
|
|
2069
2039
|
rows && rows.map(function (row) {
|
|
2070
|
-
return
|
|
2040
|
+
return React.createElement(
|
|
2071
2041
|
'tr',
|
|
2072
2042
|
{ key: row._key },
|
|
2073
2043
|
row.cells && row.cells.map(function (cell, index) {
|
|
2074
|
-
return cell &&
|
|
2044
|
+
return cell && React.createElement(
|
|
2075
2045
|
'td',
|
|
2076
2046
|
{ key: index },
|
|
2077
2047
|
cell
|
|
@@ -2169,25 +2139,25 @@ var Media = function Media(_ref) {
|
|
|
2169
2139
|
margin: imageMargin
|
|
2170
2140
|
};
|
|
2171
2141
|
|
|
2172
|
-
return
|
|
2142
|
+
return React.createElement(
|
|
2173
2143
|
Figure$1,
|
|
2174
2144
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2175
|
-
|
|
2145
|
+
React.createElement(
|
|
2176
2146
|
'a',
|
|
2177
2147
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2178
|
-
|
|
2148
|
+
React.createElement(
|
|
2179
2149
|
LazyLoad,
|
|
2180
2150
|
{ once: true },
|
|
2181
|
-
|
|
2151
|
+
React.createElement(
|
|
2182
2152
|
'picture',
|
|
2183
2153
|
null,
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2154
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2155
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2156
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2157
|
+
React.createElement('img', _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2188
2158
|
)
|
|
2189
2159
|
),
|
|
2190
|
-
caption &&
|
|
2160
|
+
caption && React.createElement(
|
|
2191
2161
|
Figure$1.Caption,
|
|
2192
2162
|
{ className: 'media-caption' },
|
|
2193
2163
|
caption
|
|
@@ -2195,9 +2165,9 @@ var Media = function Media(_ref) {
|
|
|
2195
2165
|
)
|
|
2196
2166
|
);
|
|
2197
2167
|
} else if (caption && caption !== '') {
|
|
2198
|
-
return
|
|
2168
|
+
return React.createElement(
|
|
2199
2169
|
'a',
|
|
2200
|
-
_extends
|
|
2170
|
+
_extends({}, uploadDoc.downloadMedia ? {
|
|
2201
2171
|
href: uploadDoc.asset.url + '?dl='
|
|
2202
2172
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2203
2173
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2215,10 +2185,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2215
2185
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2216
2186
|
|
|
2217
2187
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2218
|
-
return
|
|
2188
|
+
return React.createElement(
|
|
2219
2189
|
'div',
|
|
2220
2190
|
{ className: 'd-block text-center mb-3' },
|
|
2221
|
-
|
|
2191
|
+
React.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2222
2192
|
);
|
|
2223
2193
|
};
|
|
2224
2194
|
|
|
@@ -2313,10 +2283,10 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2313
2283
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
|
|
2314
2284
|
};
|
|
2315
2285
|
|
|
2316
|
-
return
|
|
2286
|
+
return React.createElement(
|
|
2317
2287
|
'div',
|
|
2318
2288
|
null,
|
|
2319
|
-
vidLoaded &&
|
|
2289
|
+
vidLoaded && React.createElement(
|
|
2320
2290
|
'video',
|
|
2321
2291
|
{
|
|
2322
2292
|
poster: thumbnail || '',
|
|
@@ -2334,7 +2304,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2334
2304
|
onPlay: function onPlay(e) {
|
|
2335
2305
|
return handleOnPlay(e);
|
|
2336
2306
|
} },
|
|
2337
|
-
|
|
2307
|
+
React.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2338
2308
|
'Your browser does not support the video tag.'
|
|
2339
2309
|
)
|
|
2340
2310
|
);
|
|
@@ -2371,7 +2341,7 @@ var Video = function Video(_ref) {
|
|
|
2371
2341
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2372
2342
|
//console.log('success:', success.ref)
|
|
2373
2343
|
var player = success.ref;
|
|
2374
|
-
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2344
|
+
if (_typeof$1(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2375
2345
|
player.ima3.settings.debug = true;
|
|
2376
2346
|
if (targeting.content_placement && targeting.document_url) {
|
|
2377
2347
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2469,53 +2439,53 @@ var Video = function Video(_ref) {
|
|
|
2469
2439
|
|
|
2470
2440
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2471
2441
|
if (videoID) {
|
|
2472
|
-
return
|
|
2442
|
+
return React.createElement(
|
|
2473
2443
|
'div',
|
|
2474
2444
|
null,
|
|
2475
|
-
|
|
2445
|
+
React.createElement(ReactPlayerLoader, {
|
|
2476
2446
|
onSuccess: onVideoSuccess,
|
|
2477
2447
|
accountId: accountIDs.brightcove.accountId,
|
|
2478
2448
|
videoId: videoID,
|
|
2479
2449
|
playerId: accountIDs.brightcove.playerId,
|
|
2480
2450
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2481
2451
|
}),
|
|
2482
|
-
|
|
2452
|
+
React.createElement(
|
|
2483
2453
|
'style',
|
|
2484
2454
|
{ jsx: 'true' },
|
|
2485
2455
|
'\n .brightcove-fluid {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n width: 100%;\n margin-bottom: 1rem;\n }\n .brightcove-fluid .video-js {\n height: 100%;\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n '
|
|
2486
2456
|
)
|
|
2487
2457
|
);
|
|
2488
2458
|
} else if (playlistID) {
|
|
2489
|
-
return
|
|
2459
|
+
return React.createElement(
|
|
2490
2460
|
'div',
|
|
2491
2461
|
null,
|
|
2492
|
-
|
|
2462
|
+
React.createElement(ReactPlayerLoader, {
|
|
2493
2463
|
accountId: accountIDs.brightcove.accountId,
|
|
2494
2464
|
playlistId: playlistID,
|
|
2495
2465
|
playerId: accountIDs.brightcove.playerId,
|
|
2496
2466
|
onSuccess: onVideoSuccess,
|
|
2497
2467
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2498
2468
|
}),
|
|
2499
|
-
|
|
2469
|
+
React.createElement(
|
|
2500
2470
|
'style',
|
|
2501
2471
|
{ jsx: 'true' },
|
|
2502
2472
|
'\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 '
|
|
2503
2473
|
)
|
|
2504
2474
|
);
|
|
2505
2475
|
} else if (experienceID) {
|
|
2506
|
-
return
|
|
2476
|
+
return React.createElement(
|
|
2507
2477
|
'div',
|
|
2508
2478
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2509
|
-
videoLoaded &&
|
|
2479
|
+
videoLoaded && React.createElement('div', { 'data-experience': experienceID })
|
|
2510
2480
|
);
|
|
2511
2481
|
}
|
|
2512
2482
|
return null;
|
|
2513
2483
|
}
|
|
2514
2484
|
if (source === 'mp4') {
|
|
2515
|
-
return
|
|
2485
|
+
return React.createElement(
|
|
2516
2486
|
'div',
|
|
2517
2487
|
null,
|
|
2518
|
-
|
|
2488
|
+
React.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2519
2489
|
);
|
|
2520
2490
|
}
|
|
2521
2491
|
|
|
@@ -2893,11 +2863,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2893
2863
|
|
|
2894
2864
|
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; }
|
|
2895
2865
|
|
|
2896
|
-
function
|
|
2866
|
+
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; } } }; }
|
|
2897
2867
|
|
|
2898
|
-
function
|
|
2868
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2899
2869
|
|
|
2900
|
-
function
|
|
2870
|
+
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."); }
|
|
2871
|
+
|
|
2872
|
+
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); }
|
|
2873
|
+
|
|
2874
|
+
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; }
|
|
2875
|
+
|
|
2876
|
+
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; }
|
|
2901
2877
|
|
|
2902
2878
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2903
2879
|
|
|
@@ -3027,12 +3003,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3027
3003
|
|
|
3028
3004
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3029
3005
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3030
|
-
|
|
3031
|
-
var
|
|
3032
|
-
|
|
3006
|
+
|
|
3007
|
+
var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
|
|
3008
|
+
_step;
|
|
3033
3009
|
|
|
3034
3010
|
try {
|
|
3035
|
-
for (
|
|
3011
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3036
3012
|
var p = _step.value;
|
|
3037
3013
|
|
|
3038
3014
|
if (props$1[p]) {
|
|
@@ -3047,18 +3023,9 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3047
3023
|
}
|
|
3048
3024
|
}
|
|
3049
3025
|
} catch (err) {
|
|
3050
|
-
|
|
3051
|
-
_iteratorError = err;
|
|
3026
|
+
_iterator.e(err);
|
|
3052
3027
|
} finally {
|
|
3053
|
-
|
|
3054
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3055
|
-
_iterator["return"]();
|
|
3056
|
-
}
|
|
3057
|
-
} finally {
|
|
3058
|
-
if (_didIteratorError) {
|
|
3059
|
-
throw _iteratorError;
|
|
3060
|
-
}
|
|
3061
|
-
}
|
|
3028
|
+
_iterator.f();
|
|
3062
3029
|
}
|
|
3063
3030
|
|
|
3064
3031
|
return config;
|
|
@@ -3123,7 +3090,7 @@ function isEqual(a, b) {
|
|
|
3123
3090
|
return true;
|
|
3124
3091
|
}
|
|
3125
3092
|
|
|
3126
|
-
if ((0,
|
|
3093
|
+
if ((0, React.isValidElement)(a) && (0, React.isValidElement)(b)) {
|
|
3127
3094
|
return true;
|
|
3128
3095
|
}
|
|
3129
3096
|
|
|
@@ -3185,7 +3152,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3185
3152
|
});
|
|
3186
3153
|
exports["default"] = void 0;
|
|
3187
3154
|
|
|
3188
|
-
var _react = _interopRequireWildcard(
|
|
3155
|
+
var _react = _interopRequireWildcard(React);
|
|
3189
3156
|
|
|
3190
3157
|
|
|
3191
3158
|
|
|
@@ -3205,12 +3172,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3205
3172
|
|
|
3206
3173
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3207
3174
|
|
|
3208
|
-
function
|
|
3175
|
+
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); }; }
|
|
3209
3176
|
|
|
3210
|
-
function
|
|
3177
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3211
3178
|
|
|
3212
3179
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3213
3180
|
|
|
3181
|
+
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; } }
|
|
3182
|
+
|
|
3183
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3184
|
+
|
|
3214
3185
|
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); }
|
|
3215
3186
|
|
|
3216
3187
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3219,14 +3190,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3219
3190
|
|
|
3220
3191
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3221
3192
|
|
|
3222
|
-
var Player =
|
|
3223
|
-
/*#__PURE__*/
|
|
3224
|
-
function (_Component) {
|
|
3193
|
+
var Player = /*#__PURE__*/function (_Component) {
|
|
3225
3194
|
_inherits(Player, _Component);
|
|
3226
3195
|
|
|
3227
|
-
|
|
3228
|
-
var _getPrototypeOf2;
|
|
3196
|
+
var _super = _createSuper(Player);
|
|
3229
3197
|
|
|
3198
|
+
function Player() {
|
|
3230
3199
|
var _this;
|
|
3231
3200
|
|
|
3232
3201
|
_classCallCheck(this, Player);
|
|
@@ -3235,7 +3204,7 @@ function (_Component) {
|
|
|
3235
3204
|
_args[_key] = arguments[_key];
|
|
3236
3205
|
}
|
|
3237
3206
|
|
|
3238
|
-
_this =
|
|
3207
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
3239
3208
|
|
|
3240
3209
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3241
3210
|
|
|
@@ -3560,7 +3529,7 @@ function (_Component) {
|
|
|
3560
3529
|
return null;
|
|
3561
3530
|
}
|
|
3562
3531
|
|
|
3563
|
-
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3532
|
+
return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
|
|
3564
3533
|
ref: this.ref,
|
|
3565
3534
|
onReady: this.handleReady,
|
|
3566
3535
|
onPlay: this.handlePlay,
|
|
@@ -3593,7 +3562,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3593
3562
|
});
|
|
3594
3563
|
exports["default"] = createSinglePlayer;
|
|
3595
3564
|
|
|
3596
|
-
var _react = _interopRequireWildcard(
|
|
3565
|
+
var _react = _interopRequireWildcard(React);
|
|
3597
3566
|
|
|
3598
3567
|
|
|
3599
3568
|
|
|
@@ -3621,12 +3590,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3621
3590
|
|
|
3622
3591
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3623
3592
|
|
|
3624
|
-
function
|
|
3593
|
+
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); }; }
|
|
3625
3594
|
|
|
3626
|
-
function
|
|
3595
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3627
3596
|
|
|
3628
3597
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3629
3598
|
|
|
3599
|
+
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; } }
|
|
3600
|
+
|
|
3601
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3602
|
+
|
|
3630
3603
|
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); }
|
|
3631
3604
|
|
|
3632
3605
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3638,14 +3611,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3638
3611
|
function createSinglePlayer(activePlayer) {
|
|
3639
3612
|
var _class, _temp;
|
|
3640
3613
|
|
|
3641
|
-
return _temp = _class =
|
|
3642
|
-
/*#__PURE__*/
|
|
3643
|
-
function (_Component) {
|
|
3614
|
+
return _temp = _class = /*#__PURE__*/function (_Component) {
|
|
3644
3615
|
_inherits(SinglePlayer, _Component);
|
|
3645
3616
|
|
|
3646
|
-
|
|
3647
|
-
var _getPrototypeOf2;
|
|
3617
|
+
var _super = _createSuper(SinglePlayer);
|
|
3648
3618
|
|
|
3619
|
+
function SinglePlayer() {
|
|
3649
3620
|
var _this;
|
|
3650
3621
|
|
|
3651
3622
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3654,7 +3625,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3654
3625
|
args[_key] = arguments[_key];
|
|
3655
3626
|
}
|
|
3656
3627
|
|
|
3657
|
-
_this =
|
|
3628
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3658
3629
|
|
|
3659
3630
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3660
3631
|
|
|
@@ -3722,12 +3693,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3722
3693
|
height = _this$props.height,
|
|
3723
3694
|
Wrapper = _this$props.wrapper;
|
|
3724
3695
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3725
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
3696
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
3726
3697
|
style: _objectSpread({}, style, {
|
|
3727
3698
|
width: width,
|
|
3728
3699
|
height: height
|
|
3729
3700
|
})
|
|
3730
|
-
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3701
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3731
3702
|
ref: this.ref,
|
|
3732
3703
|
activePlayer: activePlayer,
|
|
3733
3704
|
config: this.config
|
|
@@ -3749,7 +3720,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3749
3720
|
});
|
|
3750
3721
|
exports["default"] = exports.YouTube = void 0;
|
|
3751
3722
|
|
|
3752
|
-
var _react = _interopRequireWildcard(
|
|
3723
|
+
var _react = _interopRequireWildcard(React);
|
|
3753
3724
|
|
|
3754
3725
|
|
|
3755
3726
|
|
|
@@ -3773,23 +3744,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3773
3744
|
|
|
3774
3745
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3775
3746
|
|
|
3776
|
-
function
|
|
3747
|
+
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); }; }
|
|
3777
3748
|
|
|
3778
|
-
function
|
|
3749
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3779
3750
|
|
|
3780
3751
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3781
3752
|
|
|
3753
|
+
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; } }
|
|
3754
|
+
|
|
3755
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3756
|
+
|
|
3782
3757
|
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); }
|
|
3783
3758
|
|
|
3784
3759
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3785
3760
|
|
|
3786
3761
|
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; }
|
|
3787
3762
|
|
|
3788
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3763
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3789
3764
|
|
|
3790
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3765
|
+
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."); }
|
|
3791
3766
|
|
|
3792
|
-
function
|
|
3767
|
+
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); }
|
|
3768
|
+
|
|
3769
|
+
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; }
|
|
3770
|
+
|
|
3771
|
+
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; }
|
|
3793
3772
|
|
|
3794
3773
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3795
3774
|
|
|
@@ -3814,14 +3793,12 @@ function parsePlaylist(url) {
|
|
|
3814
3793
|
return {};
|
|
3815
3794
|
}
|
|
3816
3795
|
|
|
3817
|
-
var YouTube =
|
|
3818
|
-
/*#__PURE__*/
|
|
3819
|
-
function (_Component) {
|
|
3796
|
+
var YouTube = /*#__PURE__*/function (_Component) {
|
|
3820
3797
|
_inherits(YouTube, _Component);
|
|
3821
3798
|
|
|
3822
|
-
|
|
3823
|
-
var _getPrototypeOf2;
|
|
3799
|
+
var _super = _createSuper(YouTube);
|
|
3824
3800
|
|
|
3801
|
+
function YouTube() {
|
|
3825
3802
|
var _this;
|
|
3826
3803
|
|
|
3827
3804
|
_classCallCheck(this, YouTube);
|
|
@@ -3830,7 +3807,7 @@ function (_Component) {
|
|
|
3830
3807
|
args[_key] = arguments[_key];
|
|
3831
3808
|
}
|
|
3832
3809
|
|
|
3833
|
-
_this =
|
|
3810
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3834
3811
|
|
|
3835
3812
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3836
3813
|
|
|
@@ -4018,9 +3995,9 @@ function (_Component) {
|
|
|
4018
3995
|
height: '100%',
|
|
4019
3996
|
display: display
|
|
4020
3997
|
};
|
|
4021
|
-
return _react["default"].createElement("div", {
|
|
3998
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4022
3999
|
style: style
|
|
4023
|
-
}, _react["default"].createElement("div", {
|
|
4000
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
4024
4001
|
ref: this.ref
|
|
4025
4002
|
}));
|
|
4026
4003
|
}
|
|
@@ -4052,7 +4029,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4052
4029
|
});
|
|
4053
4030
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4054
4031
|
|
|
4055
|
-
var _react = _interopRequireWildcard(
|
|
4032
|
+
var _react = _interopRequireWildcard(React);
|
|
4056
4033
|
|
|
4057
4034
|
|
|
4058
4035
|
|
|
@@ -4076,12 +4053,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4076
4053
|
|
|
4077
4054
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4078
4055
|
|
|
4079
|
-
function
|
|
4056
|
+
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); }; }
|
|
4080
4057
|
|
|
4081
|
-
function
|
|
4058
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4082
4059
|
|
|
4083
4060
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4084
4061
|
|
|
4062
|
+
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; } }
|
|
4063
|
+
|
|
4064
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4065
|
+
|
|
4085
4066
|
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); }
|
|
4086
4067
|
|
|
4087
4068
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4090,16 +4071,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4090
4071
|
|
|
4091
4072
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4092
4073
|
var SDK_GLOBAL = 'SC';
|
|
4093
|
-
var MATCH_URL = /(soundcloud\.com|snd\.sc)
|
|
4074
|
+
var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
4094
4075
|
|
|
4095
|
-
var SoundCloud =
|
|
4096
|
-
/*#__PURE__*/
|
|
4097
|
-
function (_Component) {
|
|
4076
|
+
var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
4098
4077
|
_inherits(SoundCloud, _Component);
|
|
4099
4078
|
|
|
4100
|
-
|
|
4101
|
-
var _getPrototypeOf2;
|
|
4079
|
+
var _super = _createSuper(SoundCloud);
|
|
4102
4080
|
|
|
4081
|
+
function SoundCloud() {
|
|
4103
4082
|
var _this;
|
|
4104
4083
|
|
|
4105
4084
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4108,7 +4087,7 @@ function (_Component) {
|
|
|
4108
4087
|
args[_key] = arguments[_key];
|
|
4109
4088
|
}
|
|
4110
4089
|
|
|
4111
|
-
_this =
|
|
4090
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4112
4091
|
|
|
4113
4092
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4114
4093
|
|
|
@@ -4229,7 +4208,7 @@ function (_Component) {
|
|
|
4229
4208
|
height: '100%',
|
|
4230
4209
|
display: display
|
|
4231
4210
|
};
|
|
4232
|
-
return _react["default"].createElement("iframe", {
|
|
4211
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4233
4212
|
ref: this.ref,
|
|
4234
4213
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4235
4214
|
style: style,
|
|
@@ -4267,7 +4246,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4267
4246
|
});
|
|
4268
4247
|
exports["default"] = exports.Vimeo = void 0;
|
|
4269
4248
|
|
|
4270
|
-
var _react = _interopRequireWildcard(
|
|
4249
|
+
var _react = _interopRequireWildcard(React);
|
|
4271
4250
|
|
|
4272
4251
|
|
|
4273
4252
|
|
|
@@ -4291,12 +4270,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4291
4270
|
|
|
4292
4271
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4293
4272
|
|
|
4294
|
-
function
|
|
4273
|
+
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); }; }
|
|
4295
4274
|
|
|
4296
|
-
function
|
|
4275
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4297
4276
|
|
|
4298
4277
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4299
4278
|
|
|
4279
|
+
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; } }
|
|
4280
|
+
|
|
4281
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4282
|
+
|
|
4300
4283
|
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); }
|
|
4301
4284
|
|
|
4302
4285
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4308,14 +4291,12 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4308
4291
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4309
4292
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4310
4293
|
|
|
4311
|
-
var Vimeo =
|
|
4312
|
-
/*#__PURE__*/
|
|
4313
|
-
function (_Component) {
|
|
4294
|
+
var Vimeo = /*#__PURE__*/function (_Component) {
|
|
4314
4295
|
_inherits(Vimeo, _Component);
|
|
4315
4296
|
|
|
4316
|
-
|
|
4317
|
-
var _getPrototypeOf2;
|
|
4297
|
+
var _super = _createSuper(Vimeo);
|
|
4318
4298
|
|
|
4299
|
+
function Vimeo() {
|
|
4319
4300
|
var _this;
|
|
4320
4301
|
|
|
4321
4302
|
_classCallCheck(this, Vimeo);
|
|
@@ -4324,7 +4305,7 @@ function (_Component) {
|
|
|
4324
4305
|
args[_key] = arguments[_key];
|
|
4325
4306
|
}
|
|
4326
4307
|
|
|
4327
|
-
_this =
|
|
4308
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4328
4309
|
|
|
4329
4310
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4330
4311
|
|
|
@@ -4481,7 +4462,7 @@ function (_Component) {
|
|
|
4481
4462
|
overflow: 'hidden',
|
|
4482
4463
|
display: display
|
|
4483
4464
|
};
|
|
4484
|
-
return _react["default"].createElement("div", {
|
|
4465
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4485
4466
|
key: this.props.url,
|
|
4486
4467
|
ref: this.ref,
|
|
4487
4468
|
style: style
|
|
@@ -4521,7 +4502,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4521
4502
|
});
|
|
4522
4503
|
exports["default"] = exports.Facebook = void 0;
|
|
4523
4504
|
|
|
4524
|
-
var _react = _interopRequireWildcard(
|
|
4505
|
+
var _react = _interopRequireWildcard(React);
|
|
4525
4506
|
|
|
4526
4507
|
|
|
4527
4508
|
|
|
@@ -4541,12 +4522,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4541
4522
|
|
|
4542
4523
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4543
4524
|
|
|
4544
|
-
function
|
|
4525
|
+
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); }; }
|
|
4545
4526
|
|
|
4546
|
-
function
|
|
4527
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4547
4528
|
|
|
4548
4529
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4549
4530
|
|
|
4531
|
+
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; } }
|
|
4532
|
+
|
|
4533
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4534
|
+
|
|
4550
4535
|
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); }
|
|
4551
4536
|
|
|
4552
4537
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4559,14 +4544,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4559
4544
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4560
4545
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4561
4546
|
|
|
4562
|
-
var Facebook =
|
|
4563
|
-
/*#__PURE__*/
|
|
4564
|
-
function (_Component) {
|
|
4547
|
+
var Facebook = /*#__PURE__*/function (_Component) {
|
|
4565
4548
|
_inherits(Facebook, _Component);
|
|
4566
4549
|
|
|
4567
|
-
|
|
4568
|
-
var _getPrototypeOf2;
|
|
4550
|
+
var _super = _createSuper(Facebook);
|
|
4569
4551
|
|
|
4552
|
+
function Facebook() {
|
|
4570
4553
|
var _this;
|
|
4571
4554
|
|
|
4572
4555
|
_classCallCheck(this, Facebook);
|
|
@@ -4575,7 +4558,7 @@ function (_Component) {
|
|
|
4575
4558
|
args[_key] = arguments[_key];
|
|
4576
4559
|
}
|
|
4577
4560
|
|
|
4578
|
-
_this =
|
|
4561
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4579
4562
|
|
|
4580
4563
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4581
4564
|
|
|
@@ -4691,7 +4674,7 @@ function (_Component) {
|
|
|
4691
4674
|
width: '100%',
|
|
4692
4675
|
height: '100%'
|
|
4693
4676
|
};
|
|
4694
|
-
return _react["default"].createElement("div", {
|
|
4677
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4695
4678
|
style: style,
|
|
4696
4679
|
id: this.playerID,
|
|
4697
4680
|
className: "fb-video",
|
|
@@ -4731,7 +4714,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4731
4714
|
});
|
|
4732
4715
|
exports["default"] = exports.Streamable = void 0;
|
|
4733
4716
|
|
|
4734
|
-
var _react = _interopRequireWildcard(
|
|
4717
|
+
var _react = _interopRequireWildcard(React);
|
|
4735
4718
|
|
|
4736
4719
|
|
|
4737
4720
|
|
|
@@ -4751,12 +4734,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4751
4734
|
|
|
4752
4735
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4753
4736
|
|
|
4754
|
-
function
|
|
4737
|
+
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); }; }
|
|
4755
4738
|
|
|
4756
|
-
function
|
|
4739
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4757
4740
|
|
|
4758
4741
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4759
4742
|
|
|
4743
|
+
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; } }
|
|
4744
|
+
|
|
4745
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4746
|
+
|
|
4760
4747
|
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); }
|
|
4761
4748
|
|
|
4762
4749
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4767,14 +4754,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4767
4754
|
var SDK_GLOBAL = 'playerjs';
|
|
4768
4755
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4769
4756
|
|
|
4770
|
-
var Streamable =
|
|
4771
|
-
/*#__PURE__*/
|
|
4772
|
-
function (_Component) {
|
|
4757
|
+
var Streamable = /*#__PURE__*/function (_Component) {
|
|
4773
4758
|
_inherits(Streamable, _Component);
|
|
4774
4759
|
|
|
4775
|
-
|
|
4776
|
-
var _getPrototypeOf2;
|
|
4760
|
+
var _super = _createSuper(Streamable);
|
|
4777
4761
|
|
|
4762
|
+
function Streamable() {
|
|
4778
4763
|
var _this;
|
|
4779
4764
|
|
|
4780
4765
|
_classCallCheck(this, Streamable);
|
|
@@ -4783,7 +4768,7 @@ function (_Component) {
|
|
|
4783
4768
|
args[_key] = arguments[_key];
|
|
4784
4769
|
}
|
|
4785
4770
|
|
|
4786
|
-
_this =
|
|
4771
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4787
4772
|
|
|
4788
4773
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4789
4774
|
|
|
@@ -4903,7 +4888,7 @@ function (_Component) {
|
|
|
4903
4888
|
width: '100%',
|
|
4904
4889
|
height: '100%'
|
|
4905
4890
|
};
|
|
4906
|
-
return _react["default"].createElement("iframe", {
|
|
4891
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4907
4892
|
ref: this.ref,
|
|
4908
4893
|
src: "https://streamable.com/o/".concat(id),
|
|
4909
4894
|
frameBorder: "0",
|
|
@@ -4940,7 +4925,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4940
4925
|
});
|
|
4941
4926
|
exports["default"] = exports.Wistia = void 0;
|
|
4942
4927
|
|
|
4943
|
-
var _react = _interopRequireWildcard(
|
|
4928
|
+
var _react = _interopRequireWildcard(React);
|
|
4944
4929
|
|
|
4945
4930
|
|
|
4946
4931
|
|
|
@@ -4964,12 +4949,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4964
4949
|
|
|
4965
4950
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4966
4951
|
|
|
4967
|
-
function
|
|
4952
|
+
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); }; }
|
|
4968
4953
|
|
|
4969
|
-
function
|
|
4954
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4970
4955
|
|
|
4971
4956
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4972
4957
|
|
|
4958
|
+
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; } }
|
|
4959
|
+
|
|
4960
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4961
|
+
|
|
4973
4962
|
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); }
|
|
4974
4963
|
|
|
4975
4964
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4980,26 +4969,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4980
4969
|
var SDK_GLOBAL = 'Wistia';
|
|
4981
4970
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4982
4971
|
|
|
4983
|
-
var Wistia =
|
|
4984
|
-
/*#__PURE__*/
|
|
4985
|
-
function (_Component) {
|
|
4972
|
+
var Wistia = /*#__PURE__*/function (_Component) {
|
|
4986
4973
|
_inherits(Wistia, _Component);
|
|
4987
4974
|
|
|
4988
|
-
|
|
4989
|
-
var _getPrototypeOf2;
|
|
4975
|
+
var _super = _createSuper(Wistia);
|
|
4990
4976
|
|
|
4977
|
+
function Wistia() {
|
|
4991
4978
|
var _this;
|
|
4992
4979
|
|
|
4993
4980
|
_classCallCheck(this, Wistia);
|
|
4994
4981
|
|
|
4995
|
-
for (var _len = arguments.length,
|
|
4996
|
-
|
|
4982
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4983
|
+
_args[_key] = arguments[_key];
|
|
4997
4984
|
}
|
|
4998
4985
|
|
|
4999
|
-
_this =
|
|
4986
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5000
4987
|
|
|
5001
4988
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5002
4989
|
|
|
4990
|
+
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4991
|
+
var _this$props;
|
|
4992
|
+
|
|
4993
|
+
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4994
|
+
});
|
|
4995
|
+
|
|
4996
|
+
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4997
|
+
var _this$props2;
|
|
4998
|
+
|
|
4999
|
+
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
5000
|
+
});
|
|
5001
|
+
|
|
5002
|
+
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
5003
|
+
var _this$props3;
|
|
5004
|
+
|
|
5005
|
+
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5006
|
+
});
|
|
5007
|
+
|
|
5008
|
+
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5009
|
+
var _this$props4;
|
|
5010
|
+
|
|
5011
|
+
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5012
|
+
});
|
|
5013
|
+
|
|
5003
5014
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5004
5015
|
_this.callPlayer('mute');
|
|
5005
5016
|
});
|
|
@@ -5021,17 +5032,13 @@ function (_Component) {
|
|
|
5021
5032
|
value: function load(url) {
|
|
5022
5033
|
var _this2 = this;
|
|
5023
5034
|
|
|
5024
|
-
var _this$
|
|
5025
|
-
playing = _this$
|
|
5026
|
-
muted = _this$
|
|
5027
|
-
controls = _this$
|
|
5028
|
-
_onReady = _this$
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
onSeek = _this$props.onSeek,
|
|
5032
|
-
onEnded = _this$props.onEnded,
|
|
5033
|
-
config = _this$props.config,
|
|
5034
|
-
onError = _this$props.onError;
|
|
5035
|
+
var _this$props5 = this.props,
|
|
5036
|
+
playing = _this$props5.playing,
|
|
5037
|
+
muted = _this$props5.muted,
|
|
5038
|
+
controls = _this$props5.controls,
|
|
5039
|
+
_onReady = _this$props5.onReady,
|
|
5040
|
+
config = _this$props5.config,
|
|
5041
|
+
onError = _this$props5.onError;
|
|
5035
5042
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5036
5043
|
window._wq = window._wq || [];
|
|
5037
5044
|
|
|
@@ -5048,19 +5055,28 @@ function (_Component) {
|
|
|
5048
5055
|
|
|
5049
5056
|
_this2.unbind();
|
|
5050
5057
|
|
|
5051
|
-
_this2.player.bind('play', onPlay);
|
|
5058
|
+
_this2.player.bind('play', _this2.onPlay);
|
|
5052
5059
|
|
|
5053
|
-
_this2.player.bind('pause', onPause);
|
|
5060
|
+
_this2.player.bind('pause', _this2.onPause);
|
|
5054
5061
|
|
|
5055
|
-
_this2.player.bind('seek', onSeek);
|
|
5062
|
+
_this2.player.bind('seek', _this2.onSeek);
|
|
5056
5063
|
|
|
5057
|
-
_this2.player.bind('end', onEnded);
|
|
5064
|
+
_this2.player.bind('end', _this2.onEnded);
|
|
5058
5065
|
|
|
5059
5066
|
_onReady();
|
|
5060
5067
|
}
|
|
5061
5068
|
});
|
|
5062
5069
|
}, onError);
|
|
5063
5070
|
}
|
|
5071
|
+
}, {
|
|
5072
|
+
key: "unbind",
|
|
5073
|
+
value: function unbind() {
|
|
5074
|
+
this.player.unbind('play', this.onPlay);
|
|
5075
|
+
this.player.unbind('pause', this.onPause);
|
|
5076
|
+
this.player.unbind('seek', this.onSeek);
|
|
5077
|
+
this.player.unbind('end', this.onEnded);
|
|
5078
|
+
} // Proxy methods to prevent listener leaks
|
|
5079
|
+
|
|
5064
5080
|
}, {
|
|
5065
5081
|
key: "play",
|
|
5066
5082
|
value: function play() {
|
|
@@ -5071,19 +5087,6 @@ function (_Component) {
|
|
|
5071
5087
|
value: function pause() {
|
|
5072
5088
|
this.callPlayer('pause');
|
|
5073
5089
|
}
|
|
5074
|
-
}, {
|
|
5075
|
-
key: "unbind",
|
|
5076
|
-
value: function unbind() {
|
|
5077
|
-
var _this$props2 = this.props,
|
|
5078
|
-
onPlay = _this$props2.onPlay,
|
|
5079
|
-
onPause = _this$props2.onPause,
|
|
5080
|
-
onSeek = _this$props2.onSeek,
|
|
5081
|
-
onEnded = _this$props2.onEnded;
|
|
5082
|
-
this.player.unbind('play', onPlay);
|
|
5083
|
-
this.player.unbind('pause', onPause);
|
|
5084
|
-
this.player.unbind('seek', onSeek);
|
|
5085
|
-
this.player.unbind('end', onEnded);
|
|
5086
|
-
}
|
|
5087
5090
|
}, {
|
|
5088
5091
|
key: "stop",
|
|
5089
5092
|
value: function stop() {
|
|
@@ -5129,7 +5132,7 @@ function (_Component) {
|
|
|
5129
5132
|
width: '100%',
|
|
5130
5133
|
height: '100%'
|
|
5131
5134
|
};
|
|
5132
|
-
return _react["default"].createElement("div", {
|
|
5135
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5133
5136
|
key: id,
|
|
5134
5137
|
className: className,
|
|
5135
5138
|
style: style
|
|
@@ -5165,7 +5168,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5165
5168
|
});
|
|
5166
5169
|
exports["default"] = exports.Twitch = void 0;
|
|
5167
5170
|
|
|
5168
|
-
var _react = _interopRequireWildcard(
|
|
5171
|
+
var _react = _interopRequireWildcard(React);
|
|
5169
5172
|
|
|
5170
5173
|
|
|
5171
5174
|
|
|
@@ -5189,12 +5192,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5189
5192
|
|
|
5190
5193
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5191
5194
|
|
|
5192
|
-
function
|
|
5195
|
+
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); }; }
|
|
5193
5196
|
|
|
5194
|
-
function
|
|
5197
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5195
5198
|
|
|
5196
5199
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5197
5200
|
|
|
5201
|
+
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; } }
|
|
5202
|
+
|
|
5203
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5204
|
+
|
|
5198
5205
|
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); }
|
|
5199
5206
|
|
|
5200
5207
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5207,14 +5214,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5207
5214
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5208
5215
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5209
5216
|
|
|
5210
|
-
var Twitch =
|
|
5211
|
-
/*#__PURE__*/
|
|
5212
|
-
function (_Component) {
|
|
5217
|
+
var Twitch = /*#__PURE__*/function (_Component) {
|
|
5213
5218
|
_inherits(Twitch, _Component);
|
|
5214
5219
|
|
|
5215
|
-
|
|
5216
|
-
var _getPrototypeOf2;
|
|
5220
|
+
var _super = _createSuper(Twitch);
|
|
5217
5221
|
|
|
5222
|
+
function Twitch() {
|
|
5218
5223
|
var _this;
|
|
5219
5224
|
|
|
5220
5225
|
_classCallCheck(this, Twitch);
|
|
@@ -5223,7 +5228,7 @@ function (_Component) {
|
|
|
5223
5228
|
args[_key] = arguments[_key];
|
|
5224
5229
|
}
|
|
5225
5230
|
|
|
5226
|
-
_this =
|
|
5231
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5227
5232
|
|
|
5228
5233
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5229
5234
|
|
|
@@ -5344,7 +5349,7 @@ function (_Component) {
|
|
|
5344
5349
|
width: '100%',
|
|
5345
5350
|
height: '100%'
|
|
5346
5351
|
};
|
|
5347
|
-
return _react["default"].createElement("div", {
|
|
5352
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5348
5353
|
style: style,
|
|
5349
5354
|
id: this.playerID
|
|
5350
5355
|
});
|
|
@@ -5379,7 +5384,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5379
5384
|
});
|
|
5380
5385
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5381
5386
|
|
|
5382
|
-
var _react = _interopRequireWildcard(
|
|
5387
|
+
var _react = _interopRequireWildcard(React);
|
|
5383
5388
|
|
|
5384
5389
|
|
|
5385
5390
|
|
|
@@ -5397,11 +5402,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5397
5402
|
|
|
5398
5403
|
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; }
|
|
5399
5404
|
|
|
5400
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5405
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5406
|
+
|
|
5407
|
+
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."); }
|
|
5401
5408
|
|
|
5402
|
-
function
|
|
5409
|
+
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); }
|
|
5403
5410
|
|
|
5404
|
-
function
|
|
5411
|
+
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; }
|
|
5412
|
+
|
|
5413
|
+
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; }
|
|
5405
5414
|
|
|
5406
5415
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5407
5416
|
|
|
@@ -5411,12 +5420,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5411
5420
|
|
|
5412
5421
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5413
5422
|
|
|
5414
|
-
function
|
|
5423
|
+
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); }; }
|
|
5415
5424
|
|
|
5416
|
-
function
|
|
5425
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5417
5426
|
|
|
5418
5427
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5419
5428
|
|
|
5429
|
+
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; } }
|
|
5430
|
+
|
|
5431
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5432
|
+
|
|
5420
5433
|
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); }
|
|
5421
5434
|
|
|
5422
5435
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5428,14 +5441,12 @@ var SDK_GLOBAL = 'DM';
|
|
|
5428
5441
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5429
5442
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5430
5443
|
|
|
5431
|
-
var DailyMotion =
|
|
5432
|
-
/*#__PURE__*/
|
|
5433
|
-
function (_Component) {
|
|
5444
|
+
var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
5434
5445
|
_inherits(DailyMotion, _Component);
|
|
5435
5446
|
|
|
5436
|
-
|
|
5437
|
-
var _getPrototypeOf2;
|
|
5447
|
+
var _super = _createSuper(DailyMotion);
|
|
5438
5448
|
|
|
5449
|
+
function DailyMotion() {
|
|
5439
5450
|
var _this;
|
|
5440
5451
|
|
|
5441
5452
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5444,7 +5455,7 @@ function (_Component) {
|
|
|
5444
5455
|
args[_key] = arguments[_key];
|
|
5445
5456
|
}
|
|
5446
5457
|
|
|
5447
|
-
_this =
|
|
5458
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5448
5459
|
|
|
5449
5460
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5450
5461
|
|
|
@@ -5573,9 +5584,9 @@ function (_Component) {
|
|
|
5573
5584
|
height: '100%',
|
|
5574
5585
|
display: display
|
|
5575
5586
|
};
|
|
5576
|
-
return _react["default"].createElement("div", {
|
|
5587
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5577
5588
|
style: style
|
|
5578
|
-
}, _react["default"].createElement("div", {
|
|
5589
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
5579
5590
|
ref: this.ref
|
|
5580
5591
|
}));
|
|
5581
5592
|
}
|
|
@@ -5609,7 +5620,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5609
5620
|
});
|
|
5610
5621
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5611
5622
|
|
|
5612
|
-
var _react = _interopRequireWildcard(
|
|
5623
|
+
var _react = _interopRequireWildcard(React);
|
|
5613
5624
|
|
|
5614
5625
|
|
|
5615
5626
|
|
|
@@ -5633,12 +5644,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5633
5644
|
|
|
5634
5645
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5635
5646
|
|
|
5636
|
-
function
|
|
5647
|
+
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); }; }
|
|
5637
5648
|
|
|
5638
|
-
function
|
|
5649
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5639
5650
|
|
|
5640
5651
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5641
5652
|
|
|
5653
|
+
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; } }
|
|
5654
|
+
|
|
5655
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5656
|
+
|
|
5642
5657
|
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); }
|
|
5643
5658
|
|
|
5644
5659
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5649,14 +5664,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5649
5664
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5650
5665
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5651
5666
|
|
|
5652
|
-
var Mixcloud =
|
|
5653
|
-
/*#__PURE__*/
|
|
5654
|
-
function (_Component) {
|
|
5667
|
+
var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
5655
5668
|
_inherits(Mixcloud, _Component);
|
|
5656
5669
|
|
|
5657
|
-
|
|
5658
|
-
var _getPrototypeOf2;
|
|
5670
|
+
var _super = _createSuper(Mixcloud);
|
|
5659
5671
|
|
|
5672
|
+
function Mixcloud() {
|
|
5660
5673
|
var _this;
|
|
5661
5674
|
|
|
5662
5675
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5665,7 +5678,7 @@ function (_Component) {
|
|
|
5665
5678
|
args[_key] = arguments[_key];
|
|
5666
5679
|
}
|
|
5667
5680
|
|
|
5668
|
-
_this =
|
|
5681
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5669
5682
|
|
|
5670
5683
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5671
5684
|
|
|
@@ -5768,7 +5781,7 @@ function (_Component) {
|
|
|
5768
5781
|
})); // We have to give the iframe a key here to prevent a
|
|
5769
5782
|
// weird dialog appearing when loading a new track
|
|
5770
5783
|
|
|
5771
|
-
return _react["default"].createElement("iframe", {
|
|
5784
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
5772
5785
|
key: id,
|
|
5773
5786
|
ref: this.ref,
|
|
5774
5787
|
style: style,
|
|
@@ -5806,7 +5819,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5806
5819
|
});
|
|
5807
5820
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5808
5821
|
|
|
5809
|
-
var _react = _interopRequireWildcard(
|
|
5822
|
+
var _react = _interopRequireWildcard(React);
|
|
5810
5823
|
|
|
5811
5824
|
|
|
5812
5825
|
|
|
@@ -5828,23 +5841,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5828
5841
|
|
|
5829
5842
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5830
5843
|
|
|
5831
|
-
function
|
|
5844
|
+
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); }; }
|
|
5832
5845
|
|
|
5833
|
-
function
|
|
5846
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5834
5847
|
|
|
5835
5848
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5836
5849
|
|
|
5850
|
+
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; } }
|
|
5851
|
+
|
|
5852
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5853
|
+
|
|
5837
5854
|
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); }
|
|
5838
5855
|
|
|
5839
5856
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5840
5857
|
|
|
5841
5858
|
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; }
|
|
5842
5859
|
|
|
5860
|
+
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; } } }; }
|
|
5861
|
+
|
|
5862
|
+
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); }
|
|
5863
|
+
|
|
5864
|
+
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; }
|
|
5865
|
+
|
|
5843
5866
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5844
5867
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5845
5868
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5846
5869
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5847
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5870
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
|
|
5848
5871
|
var HLS_GLOBAL = 'Hls';
|
|
5849
5872
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5850
5873
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5853,12 +5876,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5853
5876
|
|
|
5854
5877
|
function canPlay(url) {
|
|
5855
5878
|
if (url instanceof Array) {
|
|
5856
|
-
var
|
|
5857
|
-
|
|
5858
|
-
var _iteratorError = undefined;
|
|
5879
|
+
var _iterator = _createForOfIteratorHelper(url),
|
|
5880
|
+
_step;
|
|
5859
5881
|
|
|
5860
5882
|
try {
|
|
5861
|
-
for (
|
|
5883
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5862
5884
|
var item = _step.value;
|
|
5863
5885
|
|
|
5864
5886
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5870,18 +5892,9 @@ function canPlay(url) {
|
|
|
5870
5892
|
}
|
|
5871
5893
|
}
|
|
5872
5894
|
} catch (err) {
|
|
5873
|
-
|
|
5874
|
-
_iteratorError = err;
|
|
5895
|
+
_iterator.e(err);
|
|
5875
5896
|
} finally {
|
|
5876
|
-
|
|
5877
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5878
|
-
_iterator["return"]();
|
|
5879
|
-
}
|
|
5880
|
-
} finally {
|
|
5881
|
-
if (_didIteratorError) {
|
|
5882
|
-
throw _iteratorError;
|
|
5883
|
-
}
|
|
5884
|
-
}
|
|
5897
|
+
_iterator.f();
|
|
5885
5898
|
}
|
|
5886
5899
|
|
|
5887
5900
|
return false;
|
|
@@ -5905,14 +5918,12 @@ function canEnablePIP(url) {
|
|
|
5905
5918
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5906
5919
|
}
|
|
5907
5920
|
|
|
5908
|
-
var FilePlayer =
|
|
5909
|
-
/*#__PURE__*/
|
|
5910
|
-
function (_Component) {
|
|
5921
|
+
var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
5911
5922
|
_inherits(FilePlayer, _Component);
|
|
5912
5923
|
|
|
5913
|
-
|
|
5914
|
-
var _getPrototypeOf2;
|
|
5924
|
+
var _super = _createSuper(FilePlayer);
|
|
5915
5925
|
|
|
5926
|
+
function FilePlayer() {
|
|
5916
5927
|
var _this;
|
|
5917
5928
|
|
|
5918
5929
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5921,7 +5932,7 @@ function (_Component) {
|
|
|
5921
5932
|
_args[_key] = arguments[_key];
|
|
5922
5933
|
}
|
|
5923
5934
|
|
|
5924
|
-
_this =
|
|
5935
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5925
5936
|
|
|
5926
5937
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5927
5938
|
var _this$props;
|
|
@@ -6008,19 +6019,19 @@ function (_Component) {
|
|
|
6008
6019
|
|
|
6009
6020
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6010
6021
|
if (typeof source === 'string') {
|
|
6011
|
-
return _react["default"].createElement("source", {
|
|
6022
|
+
return /*#__PURE__*/_react["default"].createElement("source", {
|
|
6012
6023
|
key: index,
|
|
6013
6024
|
src: source
|
|
6014
6025
|
});
|
|
6015
6026
|
}
|
|
6016
6027
|
|
|
6017
|
-
return _react["default"].createElement("source", _extends({
|
|
6028
|
+
return /*#__PURE__*/_react["default"].createElement("source", _extends({
|
|
6018
6029
|
key: index
|
|
6019
6030
|
}, source));
|
|
6020
6031
|
});
|
|
6021
6032
|
|
|
6022
6033
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6023
|
-
return _react["default"].createElement("track", _extends({
|
|
6034
|
+
return /*#__PURE__*/_react["default"].createElement("track", _extends({
|
|
6024
6035
|
key: index
|
|
6025
6036
|
}, track));
|
|
6026
6037
|
});
|
|
@@ -6058,6 +6069,10 @@ function (_Component) {
|
|
|
6058
6069
|
key: "componentWillUnmount",
|
|
6059
6070
|
value: function componentWillUnmount() {
|
|
6060
6071
|
this.removeListeners(this.player);
|
|
6072
|
+
|
|
6073
|
+
if (this.hls) {
|
|
6074
|
+
this.hls.destroy();
|
|
6075
|
+
}
|
|
6061
6076
|
}
|
|
6062
6077
|
}, {
|
|
6063
6078
|
key: "addListeners",
|
|
@@ -6188,10 +6203,6 @@ function (_Component) {
|
|
|
6188
6203
|
value: function stop() {
|
|
6189
6204
|
this.player.removeAttribute('src');
|
|
6190
6205
|
|
|
6191
|
-
if (this.hls) {
|
|
6192
|
-
this.hls.destroy();
|
|
6193
|
-
}
|
|
6194
|
-
|
|
6195
6206
|
if (this.dash) {
|
|
6196
6207
|
this.dash.reset();
|
|
6197
6208
|
}
|
|
@@ -6303,7 +6314,7 @@ function (_Component) {
|
|
|
6303
6314
|
width: width === 'auto' ? width : '100%',
|
|
6304
6315
|
height: height === 'auto' ? height : '100%'
|
|
6305
6316
|
};
|
|
6306
|
-
return _react["default"].createElement(Element, _extends({
|
|
6317
|
+
return /*#__PURE__*/_react["default"].createElement(Element, _extends({
|
|
6307
6318
|
ref: this.ref,
|
|
6308
6319
|
src: this.getSource(url),
|
|
6309
6320
|
style: style,
|
|
@@ -6375,7 +6386,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6375
6386
|
});
|
|
6376
6387
|
exports["default"] = void 0;
|
|
6377
6388
|
|
|
6378
|
-
var _react = _interopRequireWildcard(
|
|
6389
|
+
var _react = _interopRequireWildcard(React);
|
|
6379
6390
|
|
|
6380
6391
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6381
6392
|
|
|
@@ -6393,12 +6404,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6393
6404
|
|
|
6394
6405
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6395
6406
|
|
|
6396
|
-
function
|
|
6407
|
+
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); }; }
|
|
6397
6408
|
|
|
6398
|
-
function
|
|
6409
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6399
6410
|
|
|
6400
6411
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6401
6412
|
|
|
6413
|
+
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; } }
|
|
6414
|
+
|
|
6415
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6416
|
+
|
|
6402
6417
|
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); }
|
|
6403
6418
|
|
|
6404
6419
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6407,14 +6422,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6407
6422
|
|
|
6408
6423
|
var ICON_SIZE = '64px';
|
|
6409
6424
|
|
|
6410
|
-
var Preview =
|
|
6411
|
-
/*#__PURE__*/
|
|
6412
|
-
function (_Component) {
|
|
6425
|
+
var Preview = /*#__PURE__*/function (_Component) {
|
|
6413
6426
|
_inherits(Preview, _Component);
|
|
6414
6427
|
|
|
6415
|
-
|
|
6416
|
-
var _getPrototypeOf2;
|
|
6428
|
+
var _super = _createSuper(Preview);
|
|
6417
6429
|
|
|
6430
|
+
function Preview() {
|
|
6418
6431
|
var _this;
|
|
6419
6432
|
|
|
6420
6433
|
_classCallCheck(this, Preview);
|
|
@@ -6423,7 +6436,7 @@ function (_Component) {
|
|
|
6423
6436
|
args[_key] = arguments[_key];
|
|
6424
6437
|
}
|
|
6425
6438
|
|
|
6426
|
-
_this =
|
|
6439
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6427
6440
|
|
|
6428
6441
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6429
6442
|
|
|
@@ -6521,15 +6534,15 @@ function (_Component) {
|
|
|
6521
6534
|
}
|
|
6522
6535
|
};
|
|
6523
6536
|
|
|
6524
|
-
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6537
|
+
var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
|
|
6525
6538
|
style: styles.shadow,
|
|
6526
6539
|
className: "react-player__shadow"
|
|
6527
|
-
}, _react["default"].createElement("div", {
|
|
6540
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
6528
6541
|
style: styles.playIcon,
|
|
6529
6542
|
className: "react-player__play-icon"
|
|
6530
6543
|
}));
|
|
6531
6544
|
|
|
6532
|
-
return _react["default"].createElement("div", {
|
|
6545
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
6533
6546
|
style: styles.preview,
|
|
6534
6547
|
className: "react-player__preview",
|
|
6535
6548
|
onClick: onClick
|
|
@@ -6552,7 +6565,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6552
6565
|
});
|
|
6553
6566
|
exports["default"] = renderPreloadPlayers;
|
|
6554
6567
|
|
|
6555
|
-
var _react = _interopRequireDefault(
|
|
6568
|
+
var _react = _interopRequireDefault(React);
|
|
6556
6569
|
|
|
6557
6570
|
var _Player = _interopRequireDefault(Player_1);
|
|
6558
6571
|
|
|
@@ -6566,6 +6579,12 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6566
6579
|
|
|
6567
6580
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6568
6581
|
|
|
6582
|
+
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; } } }; }
|
|
6583
|
+
|
|
6584
|
+
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); }
|
|
6585
|
+
|
|
6586
|
+
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; }
|
|
6587
|
+
|
|
6569
6588
|
var PRELOAD_PLAYERS = [{
|
|
6570
6589
|
Player: YouTube_1.YouTube,
|
|
6571
6590
|
configKey: 'youtube',
|
|
@@ -6586,16 +6605,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6586
6605
|
|
|
6587
6606
|
function renderPreloadPlayers(url, controls, config) {
|
|
6588
6607
|
var players = [];
|
|
6589
|
-
|
|
6590
|
-
var
|
|
6591
|
-
|
|
6608
|
+
|
|
6609
|
+
var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
|
|
6610
|
+
_step;
|
|
6592
6611
|
|
|
6593
6612
|
try {
|
|
6594
|
-
for (
|
|
6613
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6595
6614
|
var player = _step.value;
|
|
6596
6615
|
|
|
6597
6616
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6598
|
-
players.push(_react["default"].createElement(_Player["default"], {
|
|
6617
|
+
players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
|
|
6599
6618
|
key: player.Player.displayName,
|
|
6600
6619
|
activePlayer: player.Player,
|
|
6601
6620
|
url: player.url,
|
|
@@ -6607,18 +6626,9 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6607
6626
|
}
|
|
6608
6627
|
}
|
|
6609
6628
|
} catch (err) {
|
|
6610
|
-
|
|
6611
|
-
_iteratorError = err;
|
|
6629
|
+
_iterator.e(err);
|
|
6612
6630
|
} finally {
|
|
6613
|
-
|
|
6614
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6615
|
-
_iterator["return"]();
|
|
6616
|
-
}
|
|
6617
|
-
} finally {
|
|
6618
|
-
if (_didIteratorError) {
|
|
6619
|
-
throw _iteratorError;
|
|
6620
|
-
}
|
|
6621
|
-
}
|
|
6631
|
+
_iterator.f();
|
|
6622
6632
|
}
|
|
6623
6633
|
|
|
6624
6634
|
return players;
|
|
@@ -6694,7 +6704,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6694
6704
|
});
|
|
6695
6705
|
exports["default"] = void 0;
|
|
6696
6706
|
|
|
6697
|
-
var _react = _interopRequireWildcard(
|
|
6707
|
+
var _react = _interopRequireWildcard(React);
|
|
6698
6708
|
|
|
6699
6709
|
|
|
6700
6710
|
|
|
@@ -6742,13 +6752,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6742
6752
|
|
|
6743
6753
|
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); }
|
|
6744
6754
|
|
|
6745
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6755
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6756
|
+
|
|
6757
|
+
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."); }
|
|
6758
|
+
|
|
6759
|
+
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); }
|
|
6746
6760
|
|
|
6747
|
-
function
|
|
6761
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
6748
6762
|
|
|
6749
|
-
function
|
|
6763
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6750
6764
|
|
|
6751
|
-
function
|
|
6765
|
+
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; }
|
|
6752
6766
|
|
|
6753
6767
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6754
6768
|
|
|
@@ -6756,12 +6770,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6756
6770
|
|
|
6757
6771
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6758
6772
|
|
|
6759
|
-
function
|
|
6773
|
+
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); }; }
|
|
6760
6774
|
|
|
6761
|
-
function
|
|
6775
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6762
6776
|
|
|
6763
6777
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6764
6778
|
|
|
6779
|
+
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; } }
|
|
6780
|
+
|
|
6781
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6782
|
+
|
|
6765
6783
|
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); }
|
|
6766
6784
|
|
|
6767
6785
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6771,14 +6789,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6771
6789
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6772
6790
|
var customPlayers = [];
|
|
6773
6791
|
|
|
6774
|
-
var ReactPlayer =
|
|
6775
|
-
/*#__PURE__*/
|
|
6776
|
-
function (_Component) {
|
|
6792
|
+
var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
6777
6793
|
_inherits(ReactPlayer, _Component);
|
|
6778
6794
|
|
|
6779
|
-
|
|
6780
|
-
var _getPrototypeOf2;
|
|
6795
|
+
var _super = _createSuper(ReactPlayer);
|
|
6781
6796
|
|
|
6797
|
+
function ReactPlayer() {
|
|
6782
6798
|
var _this;
|
|
6783
6799
|
|
|
6784
6800
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6787,7 +6803,7 @@ function (_Component) {
|
|
|
6787
6803
|
args[_key] = arguments[_key];
|
|
6788
6804
|
}
|
|
6789
6805
|
|
|
6790
|
-
_this =
|
|
6806
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6791
6807
|
|
|
6792
6808
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6793
6809
|
|
|
@@ -6898,7 +6914,7 @@ function (_Component) {
|
|
|
6898
6914
|
key: "renderActivePlayer",
|
|
6899
6915
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6900
6916
|
if (!url) return null;
|
|
6901
|
-
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6917
|
+
return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6902
6918
|
key: activePlayer.displayName,
|
|
6903
6919
|
ref: this.activePlayerRef,
|
|
6904
6920
|
config: this.config,
|
|
@@ -6935,14 +6951,14 @@ function (_Component) {
|
|
|
6935
6951
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6936
6952
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6937
6953
|
|
|
6938
|
-
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6954
|
+
var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
|
|
6939
6955
|
url: url,
|
|
6940
6956
|
light: light,
|
|
6941
6957
|
playIcon: playIcon,
|
|
6942
6958
|
onClick: this.handleClickPreview
|
|
6943
6959
|
});
|
|
6944
6960
|
|
|
6945
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
6961
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
6946
6962
|
ref: this.wrapperRef,
|
|
6947
6963
|
style: _objectSpread({}, style, {
|
|
6948
6964
|
width: width,
|
|
@@ -7002,20 +7018,20 @@ var Audio = function Audio(_ref) {
|
|
|
7002
7018
|
var node = _ref.node;
|
|
7003
7019
|
|
|
7004
7020
|
if (node.uploadAudio) {
|
|
7005
|
-
return
|
|
7021
|
+
return React.createElement(
|
|
7006
7022
|
'div',
|
|
7007
7023
|
{ className: 'audio d-block text-center mb-3' },
|
|
7008
|
-
|
|
7024
|
+
React.createElement(
|
|
7009
7025
|
'audio',
|
|
7010
7026
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7011
|
-
|
|
7012
|
-
|
|
7027
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7028
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7013
7029
|
'Your browser does not support the audio element.'
|
|
7014
7030
|
),
|
|
7015
|
-
node.caption &&
|
|
7031
|
+
node.caption && React.createElement(
|
|
7016
7032
|
'p',
|
|
7017
7033
|
{ style: { fontSize: '.9rem' } },
|
|
7018
|
-
|
|
7034
|
+
React.createElement(
|
|
7019
7035
|
'em',
|
|
7020
7036
|
null,
|
|
7021
7037
|
node.caption
|
|
@@ -7025,15 +7041,15 @@ var Audio = function Audio(_ref) {
|
|
|
7025
7041
|
} else if (node.audioFilePth) {
|
|
7026
7042
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7027
7043
|
if (hostname === 'embeds.audioboom.com') {
|
|
7028
|
-
return
|
|
7044
|
+
return React.createElement(
|
|
7029
7045
|
'div',
|
|
7030
7046
|
null,
|
|
7031
|
-
|
|
7047
|
+
React.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7032
7048
|
' ',
|
|
7033
|
-
node.caption &&
|
|
7049
|
+
node.caption && React.createElement(
|
|
7034
7050
|
'p',
|
|
7035
7051
|
{ style: { fontSize: '.9rem' } },
|
|
7036
|
-
|
|
7052
|
+
React.createElement(
|
|
7037
7053
|
'em',
|
|
7038
7054
|
null,
|
|
7039
7055
|
node.caption
|
|
@@ -7041,14 +7057,14 @@ var Audio = function Audio(_ref) {
|
|
|
7041
7057
|
)
|
|
7042
7058
|
);
|
|
7043
7059
|
}
|
|
7044
|
-
return
|
|
7060
|
+
return React.createElement(
|
|
7045
7061
|
'div',
|
|
7046
7062
|
{ className: 'audio' },
|
|
7047
|
-
|
|
7048
|
-
node.caption &&
|
|
7063
|
+
React.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7064
|
+
node.caption && React.createElement(
|
|
7049
7065
|
'p',
|
|
7050
7066
|
{ style: { fontSize: '.9rem' } },
|
|
7051
|
-
|
|
7067
|
+
React.createElement(
|
|
7052
7068
|
'em',
|
|
7053
7069
|
null,
|
|
7054
7070
|
node.caption
|
|
@@ -7064,36 +7080,37 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7064
7080
|
var defaultUrl = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 'authors';
|
|
7065
7081
|
var biography = arguments[5];
|
|
7066
7082
|
var profileImage = arguments[6];
|
|
7083
|
+
var showAuthorDetails = arguments[7];
|
|
7067
7084
|
|
|
7068
7085
|
if (authorName && authorURL) {
|
|
7069
|
-
return
|
|
7086
|
+
return React.createElement(
|
|
7070
7087
|
'span',
|
|
7071
7088
|
null,
|
|
7072
|
-
|
|
7089
|
+
React.createElement(
|
|
7073
7090
|
'a',
|
|
7074
7091
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7075
7092
|
authorName
|
|
7076
7093
|
),
|
|
7077
|
-
|
|
7094
|
+
showAuthorDetails && React.createElement(
|
|
7078
7095
|
Card,
|
|
7079
7096
|
{ className: 'author-details-card-' + index },
|
|
7080
|
-
|
|
7097
|
+
React.createElement(
|
|
7081
7098
|
Row,
|
|
7082
7099
|
null,
|
|
7083
|
-
profileImage &&
|
|
7100
|
+
profileImage && React.createElement(
|
|
7084
7101
|
Col,
|
|
7085
7102
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7086
|
-
|
|
7103
|
+
React.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7087
7104
|
),
|
|
7088
|
-
|
|
7105
|
+
React.createElement(
|
|
7089
7106
|
Col,
|
|
7090
7107
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7091
|
-
|
|
7108
|
+
React.createElement(
|
|
7092
7109
|
'div',
|
|
7093
7110
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7094
7111
|
authorName
|
|
7095
7112
|
),
|
|
7096
|
-
|
|
7113
|
+
React.createElement(
|
|
7097
7114
|
'p',
|
|
7098
7115
|
null,
|
|
7099
7116
|
biography
|
|
@@ -7101,7 +7118,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7101
7118
|
)
|
|
7102
7119
|
)
|
|
7103
7120
|
),
|
|
7104
|
-
|
|
7121
|
+
React.createElement(
|
|
7105
7122
|
'style',
|
|
7106
7123
|
{ jsx: 'true' },
|
|
7107
7124
|
'\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 '
|
|
@@ -7109,7 +7126,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7109
7126
|
length !== index + 1 && ', '
|
|
7110
7127
|
);
|
|
7111
7128
|
} else if (authorName) {
|
|
7112
|
-
return
|
|
7129
|
+
return React.createElement(
|
|
7113
7130
|
'span',
|
|
7114
7131
|
{ key: index },
|
|
7115
7132
|
authorName,
|
|
@@ -7381,44 +7398,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7381
7398
|
}
|
|
7382
7399
|
};
|
|
7383
7400
|
|
|
7384
|
-
return
|
|
7401
|
+
return React.createElement(
|
|
7385
7402
|
'div',
|
|
7386
7403
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7387
|
-
|
|
7404
|
+
React.createElement(
|
|
7388
7405
|
'div',
|
|
7389
7406
|
{ className: 'mt-2 mb-5' },
|
|
7390
|
-
series &&
|
|
7407
|
+
series && React.createElement(
|
|
7391
7408
|
'div',
|
|
7392
7409
|
{ style: { fontSize: '0.9rem' } },
|
|
7393
7410
|
article.title,
|
|
7394
7411
|
' - Episode ',
|
|
7395
7412
|
series
|
|
7396
7413
|
),
|
|
7397
|
-
Videos[series - 1] &&
|
|
7414
|
+
Videos[series - 1] && React.createElement(
|
|
7398
7415
|
'h1',
|
|
7399
7416
|
{ className: 'mb-3' },
|
|
7400
7417
|
Videos[series - 1].title
|
|
7401
7418
|
),
|
|
7402
|
-
|
|
7419
|
+
React.createElement(
|
|
7403
7420
|
'div',
|
|
7404
7421
|
null,
|
|
7405
7422
|
moment(article.published).format('LL')
|
|
7406
7423
|
),
|
|
7407
|
-
|
|
7424
|
+
React.createElement(
|
|
7408
7425
|
'div',
|
|
7409
7426
|
{ className: 'mb-3' },
|
|
7410
7427
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7411
|
-
return
|
|
7428
|
+
return React.createElement(
|
|
7412
7429
|
'span',
|
|
7413
7430
|
{ key: index },
|
|
7414
7431
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
7415
7432
|
);
|
|
7416
7433
|
})
|
|
7417
7434
|
),
|
|
7418
|
-
|
|
7435
|
+
React.createElement(
|
|
7419
7436
|
'p',
|
|
7420
7437
|
null,
|
|
7421
|
-
|
|
7438
|
+
React.createElement(SocialShare, {
|
|
7422
7439
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7423
7440
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7424
7441
|
shareVia: meta.shareVia,
|
|
@@ -7433,20 +7450,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7433
7450
|
hideFacebook: meta.hideFBShare
|
|
7434
7451
|
})
|
|
7435
7452
|
),
|
|
7436
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7453
|
+
Videos[series - 1] && Videos[series - 1].intro && React.createElement(
|
|
7437
7454
|
'p',
|
|
7438
7455
|
{ className: 'mb-3' },
|
|
7439
|
-
|
|
7456
|
+
React.createElement(
|
|
7440
7457
|
'em',
|
|
7441
7458
|
null,
|
|
7442
7459
|
Videos[series - 1].intro
|
|
7443
7460
|
)
|
|
7444
7461
|
)
|
|
7445
7462
|
),
|
|
7446
|
-
|
|
7463
|
+
React.createElement(
|
|
7447
7464
|
'div',
|
|
7448
7465
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7449
|
-
vidUrl && vidType == 'youtube' &&
|
|
7466
|
+
vidUrl && vidType == 'youtube' && React.createElement(YouTube, {
|
|
7450
7467
|
className: 'fluid-iframe',
|
|
7451
7468
|
videoId: getYoutubeId(vidUrl),
|
|
7452
7469
|
opts: opts,
|
|
@@ -7457,10 +7474,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7457
7474
|
return handleOnEnd(e);
|
|
7458
7475
|
}
|
|
7459
7476
|
}),
|
|
7460
|
-
vidUrl && vidType == 'mp4' &&
|
|
7461
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7462
|
-
|
|
7463
|
-
series &&
|
|
7477
|
+
vidUrl && vidType == 'mp4' && React.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7478
|
+
vidUrl && vidType == 'brightcove' && React.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7479
|
+
React.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7480
|
+
series && React.createElement(
|
|
7464
7481
|
'div',
|
|
7465
7482
|
{
|
|
7466
7483
|
className: 'vid-series',
|
|
@@ -7470,10 +7487,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7470
7487
|
maxHeight: '100%',
|
|
7471
7488
|
paddingBottom: '0'
|
|
7472
7489
|
} },
|
|
7473
|
-
|
|
7490
|
+
React.createElement(
|
|
7474
7491
|
'p',
|
|
7475
7492
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7476
|
-
|
|
7493
|
+
React.createElement(
|
|
7477
7494
|
'b',
|
|
7478
7495
|
{ style: { fontSize: '1.25em' } },
|
|
7479
7496
|
'Now Playing:'
|
|
@@ -7481,16 +7498,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7481
7498
|
' ',
|
|
7482
7499
|
seriesData[series ? series - 1 : 0].title
|
|
7483
7500
|
),
|
|
7484
|
-
vidUrl &&
|
|
7501
|
+
vidUrl && React.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7485
7502
|
)
|
|
7486
7503
|
),
|
|
7487
|
-
|
|
7488
|
-
|
|
7504
|
+
React.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7505
|
+
React.createElement(
|
|
7489
7506
|
'div',
|
|
7490
7507
|
{ className: 'vid-text' },
|
|
7491
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
7508
|
+
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()))
|
|
7492
7509
|
),
|
|
7493
|
-
|
|
7510
|
+
React.createElement(
|
|
7494
7511
|
'style',
|
|
7495
7512
|
{ jsx: 'true' },
|
|
7496
7513
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7543,67 +7560,67 @@ var Poll = function Poll(_ref) {
|
|
|
7543
7560
|
return acc;
|
|
7544
7561
|
}
|
|
7545
7562
|
}, 0);
|
|
7546
|
-
return
|
|
7547
|
-
|
|
7563
|
+
return React.createElement(
|
|
7564
|
+
React.Fragment,
|
|
7548
7565
|
null,
|
|
7549
|
-
question &&
|
|
7566
|
+
question && React.createElement(
|
|
7550
7567
|
'p',
|
|
7551
7568
|
{ className: 'font-weight-bold' },
|
|
7552
7569
|
question
|
|
7553
7570
|
),
|
|
7554
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7571
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7555
7572
|
'form',
|
|
7556
7573
|
{ onSubmit: function onSubmit(e) {
|
|
7557
7574
|
return onSubmitPoll(e);
|
|
7558
7575
|
} },
|
|
7559
7576
|
choices && choices.map(function (choice) {
|
|
7560
|
-
return
|
|
7577
|
+
return React.createElement(
|
|
7561
7578
|
'div',
|
|
7562
7579
|
{ key: choice._key },
|
|
7563
|
-
|
|
7580
|
+
React.createElement(
|
|
7564
7581
|
'label',
|
|
7565
7582
|
{ className: 'pl-2' },
|
|
7566
|
-
|
|
7583
|
+
React.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7567
7584
|
return setSelectedChoice(e.target.value);
|
|
7568
7585
|
} }),
|
|
7569
7586
|
' ' + choice.choiceText
|
|
7570
7587
|
)
|
|
7571
7588
|
);
|
|
7572
7589
|
}),
|
|
7573
|
-
|
|
7590
|
+
React.createElement(
|
|
7574
7591
|
Button,
|
|
7575
7592
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7576
7593
|
'Vote'
|
|
7577
7594
|
)
|
|
7578
7595
|
),
|
|
7579
|
-
|
|
7596
|
+
React.createElement(
|
|
7580
7597
|
'div',
|
|
7581
7598
|
{ className: 'progress-container' },
|
|
7582
7599
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7583
7600
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7584
|
-
return
|
|
7601
|
+
return React.createElement(
|
|
7585
7602
|
'div',
|
|
7586
7603
|
{ key: choice._key, className: 'mb-3' },
|
|
7587
|
-
|
|
7604
|
+
React.createElement(
|
|
7588
7605
|
'div',
|
|
7589
7606
|
{ className: 'correct-answer' },
|
|
7590
|
-
|
|
7607
|
+
React.createElement(
|
|
7591
7608
|
'div',
|
|
7592
7609
|
null,
|
|
7593
7610
|
choice.choiceText
|
|
7594
7611
|
),
|
|
7595
|
-
choice.choiceAnswer === true &&
|
|
7612
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7596
7613
|
'div',
|
|
7597
7614
|
null,
|
|
7598
|
-
|
|
7615
|
+
React.createElement(
|
|
7599
7616
|
'span',
|
|
7600
7617
|
{ style: { color: 'limegreen' } },
|
|
7601
7618
|
'Correct!'
|
|
7602
7619
|
)
|
|
7603
7620
|
)
|
|
7604
7621
|
),
|
|
7605
|
-
|
|
7606
|
-
|
|
7622
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7623
|
+
React.createElement(
|
|
7607
7624
|
'span',
|
|
7608
7625
|
{ className: 'float-right' },
|
|
7609
7626
|
percentage,
|
|
@@ -7614,14 +7631,14 @@ var Poll = function Poll(_ref) {
|
|
|
7614
7631
|
);
|
|
7615
7632
|
})
|
|
7616
7633
|
),
|
|
7617
|
-
showAnswer &&
|
|
7634
|
+
showAnswer && React.createElement(
|
|
7618
7635
|
'h4',
|
|
7619
7636
|
{ className: 'text-center small p-3' },
|
|
7620
7637
|
'Total Votes: ',
|
|
7621
7638
|
choicesTotalCount
|
|
7622
7639
|
),
|
|
7623
|
-
showAnswer && response &&
|
|
7624
|
-
|
|
7640
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7641
|
+
React.createElement(
|
|
7625
7642
|
'style',
|
|
7626
7643
|
{ jsx: 'true' },
|
|
7627
7644
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7720,67 +7737,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7720
7737
|
return acc;
|
|
7721
7738
|
}
|
|
7722
7739
|
}, 0);
|
|
7723
|
-
return
|
|
7724
|
-
|
|
7740
|
+
return React.createElement(
|
|
7741
|
+
React.Fragment,
|
|
7725
7742
|
null,
|
|
7726
|
-
question &&
|
|
7743
|
+
question && React.createElement(
|
|
7727
7744
|
'p',
|
|
7728
7745
|
{ className: 'font-weight-bold' },
|
|
7729
7746
|
question
|
|
7730
7747
|
),
|
|
7731
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7748
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7732
7749
|
'form',
|
|
7733
7750
|
{ onSubmit: function onSubmit(e) {
|
|
7734
7751
|
return onSubmitPoll(e);
|
|
7735
7752
|
} },
|
|
7736
7753
|
choices && choices.map(function (choice) {
|
|
7737
|
-
return
|
|
7754
|
+
return React.createElement(
|
|
7738
7755
|
'div',
|
|
7739
7756
|
{ key: choice._key },
|
|
7740
|
-
|
|
7757
|
+
React.createElement(
|
|
7741
7758
|
'label',
|
|
7742
7759
|
{ className: 'pl-2' },
|
|
7743
|
-
|
|
7760
|
+
React.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7744
7761
|
return setSelectedChoice(e.target.value);
|
|
7745
7762
|
} }),
|
|
7746
7763
|
' ' + choice.choiceText
|
|
7747
7764
|
)
|
|
7748
7765
|
);
|
|
7749
7766
|
}),
|
|
7750
|
-
|
|
7767
|
+
React.createElement(
|
|
7751
7768
|
Button,
|
|
7752
7769
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7753
7770
|
'Vote'
|
|
7754
7771
|
)
|
|
7755
7772
|
),
|
|
7756
|
-
|
|
7773
|
+
React.createElement(
|
|
7757
7774
|
'div',
|
|
7758
7775
|
{ className: 'progress-container' },
|
|
7759
7776
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7760
7777
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7761
|
-
return
|
|
7778
|
+
return React.createElement(
|
|
7762
7779
|
'div',
|
|
7763
7780
|
{ key: choice._key, className: 'mb-3' },
|
|
7764
|
-
|
|
7781
|
+
React.createElement(
|
|
7765
7782
|
'div',
|
|
7766
7783
|
{ className: 'correct-answer' },
|
|
7767
|
-
|
|
7784
|
+
React.createElement(
|
|
7768
7785
|
'div',
|
|
7769
7786
|
null,
|
|
7770
7787
|
choice.choiceText
|
|
7771
7788
|
),
|
|
7772
|
-
choice.choiceAnswer === true &&
|
|
7789
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7773
7790
|
'div',
|
|
7774
7791
|
null,
|
|
7775
|
-
|
|
7792
|
+
React.createElement(
|
|
7776
7793
|
'span',
|
|
7777
7794
|
{ style: { color: 'limegreen' } },
|
|
7778
7795
|
'Correct!'
|
|
7779
7796
|
)
|
|
7780
7797
|
)
|
|
7781
7798
|
),
|
|
7782
|
-
|
|
7783
|
-
|
|
7799
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7800
|
+
React.createElement(
|
|
7784
7801
|
'span',
|
|
7785
7802
|
{ className: 'float-right' },
|
|
7786
7803
|
percentage,
|
|
@@ -7791,14 +7808,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7791
7808
|
);
|
|
7792
7809
|
})
|
|
7793
7810
|
),
|
|
7794
|
-
showAnswer &&
|
|
7811
|
+
showAnswer && React.createElement(
|
|
7795
7812
|
'h4',
|
|
7796
7813
|
{ className: 'text-center small p-3' },
|
|
7797
7814
|
'Total Votes: ',
|
|
7798
7815
|
choicesTotalCount
|
|
7799
7816
|
),
|
|
7800
|
-
showAnswer && response &&
|
|
7801
|
-
|
|
7817
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7818
|
+
React.createElement(
|
|
7802
7819
|
'style',
|
|
7803
7820
|
{ jsx: 'true' },
|
|
7804
7821
|
'\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 '
|
|
@@ -7806,7 +7823,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7806
7823
|
);
|
|
7807
7824
|
};
|
|
7808
7825
|
|
|
7809
|
-
var numberOfPaginations =
|
|
7826
|
+
var numberOfPaginations = main_39 ? 4 : 10;
|
|
7810
7827
|
|
|
7811
7828
|
var Quiz = function Quiz(_ref) {
|
|
7812
7829
|
var quizzes = _ref.quizzes,
|
|
@@ -7924,34 +7941,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
7924
7941
|
};
|
|
7925
7942
|
|
|
7926
7943
|
var renderPagination = function renderPagination() {
|
|
7927
|
-
return
|
|
7928
|
-
Pagination
|
|
7929
|
-
{ className: 'p-0 m-0', size:
|
|
7930
|
-
|
|
7944
|
+
return React.createElement(
|
|
7945
|
+
Pagination,
|
|
7946
|
+
{ className: 'p-0 m-0', size: main_39 && 'sm' },
|
|
7947
|
+
React.createElement(Pagination.First, { onClick: function onClick() {
|
|
7931
7948
|
return changePage('first');
|
|
7932
7949
|
}, disabled: currentPage === 1 }),
|
|
7933
|
-
|
|
7950
|
+
React.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7934
7951
|
return changePage('prev');
|
|
7935
7952
|
}, disabled: currentPage === 1 }),
|
|
7936
|
-
|
|
7953
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7937
7954
|
return renderNewPages('prev');
|
|
7938
7955
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7939
7956
|
pages.map(function (page) {
|
|
7940
|
-
return
|
|
7941
|
-
Pagination
|
|
7957
|
+
return React.createElement(
|
|
7958
|
+
Pagination.Item,
|
|
7942
7959
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7943
7960
|
return changePage(page);
|
|
7944
7961
|
} },
|
|
7945
7962
|
page
|
|
7946
7963
|
);
|
|
7947
7964
|
}),
|
|
7948
|
-
|
|
7965
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7949
7966
|
return renderNewPages('next');
|
|
7950
7967
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7951
|
-
|
|
7968
|
+
React.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7952
7969
|
return changePage('next');
|
|
7953
7970
|
}, disabled: currentPage === pageCount }),
|
|
7954
|
-
|
|
7971
|
+
React.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7955
7972
|
return changePage('last');
|
|
7956
7973
|
}, disabled: currentPage === pageCount })
|
|
7957
7974
|
);
|
|
@@ -8034,51 +8051,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8034
8051
|
}
|
|
8035
8052
|
};
|
|
8036
8053
|
|
|
8037
|
-
return
|
|
8038
|
-
|
|
8054
|
+
return React.createElement(
|
|
8055
|
+
React.Fragment,
|
|
8039
8056
|
null,
|
|
8040
|
-
quizzes[currentPage - 1] &&
|
|
8041
|
-
|
|
8057
|
+
quizzes[currentPage - 1] && React.createElement(
|
|
8058
|
+
React.Fragment,
|
|
8042
8059
|
null,
|
|
8043
|
-
|
|
8044
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 &&
|
|
8060
|
+
React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8061
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React.createElement(
|
|
8045
8062
|
'form',
|
|
8046
8063
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8047
8064
|
return e.preventDefault();
|
|
8048
8065
|
} },
|
|
8049
8066
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8050
|
-
return
|
|
8067
|
+
return React.createElement(
|
|
8051
8068
|
'div',
|
|
8052
8069
|
{ key: answer._key },
|
|
8053
|
-
|
|
8070
|
+
React.createElement(
|
|
8054
8071
|
'label',
|
|
8055
8072
|
{ className: 'pl-2' },
|
|
8056
|
-
quizzes[currentPage - 1].multiAnswer ?
|
|
8073
|
+
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 }),
|
|
8057
8074
|
' ' + answer.answerText
|
|
8058
8075
|
)
|
|
8059
8076
|
);
|
|
8060
8077
|
})
|
|
8061
8078
|
)
|
|
8062
8079
|
),
|
|
8063
|
-
!showAnswer &&
|
|
8080
|
+
!showAnswer && React.createElement(
|
|
8064
8081
|
Button$1,
|
|
8065
8082
|
{ onClick: function onClick() {
|
|
8066
8083
|
return checkAnswers();
|
|
8067
8084
|
}, variant: 'info', block: true },
|
|
8068
8085
|
'Please click here for answer'
|
|
8069
8086
|
),
|
|
8070
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
8071
|
-
|
|
8087
|
+
quizzes[currentPage - 1] && showAnswer && React.createElement(
|
|
8088
|
+
React.Fragment,
|
|
8072
8089
|
null,
|
|
8073
|
-
|
|
8090
|
+
React.createElement(
|
|
8074
8091
|
'h4',
|
|
8075
8092
|
null,
|
|
8076
8093
|
'Answer:'
|
|
8077
8094
|
),
|
|
8078
|
-
quizzes[currentPage - 1].answer &&
|
|
8095
|
+
quizzes[currentPage - 1].answer && React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8079
8096
|
),
|
|
8080
|
-
|
|
8081
|
-
pageCount > 1 &&
|
|
8097
|
+
React.createElement('br', null),
|
|
8098
|
+
pageCount > 1 && React.createElement(
|
|
8082
8099
|
'div',
|
|
8083
8100
|
{ className: 'd-flex justify-content-center' },
|
|
8084
8101
|
renderPagination()
|
|
@@ -8089,10 +8106,10 @@ var Quiz = function Quiz(_ref) {
|
|
|
8089
8106
|
var Leads = function Leads(_ref) {
|
|
8090
8107
|
var url = _ref.url;
|
|
8091
8108
|
|
|
8092
|
-
return
|
|
8109
|
+
return React.createElement(
|
|
8093
8110
|
'div',
|
|
8094
8111
|
{ className: 'd-block text-center mb-3' },
|
|
8095
|
-
url &&
|
|
8112
|
+
url && React.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8096
8113
|
);
|
|
8097
8114
|
};
|
|
8098
8115
|
|
|
@@ -8132,53 +8149,53 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8132
8149
|
setCarouselIndex(selectedIndex);
|
|
8133
8150
|
};
|
|
8134
8151
|
|
|
8135
|
-
return
|
|
8152
|
+
return React.createElement(
|
|
8136
8153
|
'div',
|
|
8137
8154
|
{ className: 'mt-3 mb-4' },
|
|
8138
|
-
|
|
8155
|
+
React.createElement(
|
|
8139
8156
|
Carousel,
|
|
8140
8157
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8141
8158
|
slides && slides.map(function (slide) {
|
|
8142
8159
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8143
|
-
return
|
|
8160
|
+
return React.createElement(
|
|
8144
8161
|
Carousel.Item,
|
|
8145
8162
|
{ key: slide._key },
|
|
8146
|
-
|
|
8163
|
+
React.createElement(
|
|
8147
8164
|
'a',
|
|
8148
8165
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8149
|
-
|
|
8166
|
+
React.createElement(
|
|
8150
8167
|
'div',
|
|
8151
8168
|
{ style: { textAlign: 'center' }, className: '' },
|
|
8152
|
-
|
|
8169
|
+
React.createElement(
|
|
8153
8170
|
LazyLoad,
|
|
8154
8171
|
null,
|
|
8155
|
-
|
|
8172
|
+
React.createElement(
|
|
8156
8173
|
'picture',
|
|
8157
8174
|
null,
|
|
8158
|
-
|
|
8159
|
-
|
|
8160
|
-
|
|
8161
|
-
|
|
8175
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8176
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8177
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8178
|
+
React.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', className: 'embed-item-img' })
|
|
8162
8179
|
)
|
|
8163
8180
|
)
|
|
8164
8181
|
)
|
|
8165
8182
|
),
|
|
8166
|
-
|
|
8183
|
+
React.createElement(
|
|
8167
8184
|
'div',
|
|
8168
8185
|
{ className: 'p-2' },
|
|
8169
|
-
slide.slideshowImage.caption &&
|
|
8186
|
+
slide.slideshowImage.caption && React.createElement(
|
|
8170
8187
|
'h3',
|
|
8171
8188
|
{ style: { padding: '0px' } },
|
|
8172
8189
|
slide.slideshowImage.caption
|
|
8173
8190
|
),
|
|
8174
|
-
slide.description &&
|
|
8191
|
+
slide.description && React.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8175
8192
|
)
|
|
8176
8193
|
);
|
|
8177
8194
|
}
|
|
8178
8195
|
return null;
|
|
8179
8196
|
})
|
|
8180
8197
|
),
|
|
8181
|
-
|
|
8198
|
+
React.createElement(
|
|
8182
8199
|
'style',
|
|
8183
8200
|
{ jsx: 'true' },
|
|
8184
8201
|
'\n .embed-item-img {\n max-width: 100%;\n max-height: 750px;\n }\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 '
|
|
@@ -8197,10 +8214,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8197
8214
|
sizes = _props$node.sizes,
|
|
8198
8215
|
sizeMapping = _props$node.sizeMapping;
|
|
8199
8216
|
|
|
8200
|
-
return
|
|
8217
|
+
return React.createElement(
|
|
8201
8218
|
'div',
|
|
8202
8219
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8203
|
-
|
|
8220
|
+
React.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8204
8221
|
);
|
|
8205
8222
|
};
|
|
8206
8223
|
|
|
@@ -8211,15 +8228,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8211
8228
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8212
8229
|
|
|
8213
8230
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8214
|
-
return
|
|
8231
|
+
return React.createElement(
|
|
8215
8232
|
'section',
|
|
8216
8233
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8217
|
-
Caption &&
|
|
8234
|
+
Caption && React.createElement(
|
|
8218
8235
|
'h4',
|
|
8219
8236
|
{ className: 'formstack-caption' },
|
|
8220
8237
|
Caption
|
|
8221
8238
|
),
|
|
8222
|
-
|
|
8239
|
+
React.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8223
8240
|
);
|
|
8224
8241
|
};
|
|
8225
8242
|
|
|
@@ -8235,36 +8252,36 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8235
8252
|
}
|
|
8236
8253
|
});
|
|
8237
8254
|
if (medias && medias.length > 0) {
|
|
8238
|
-
return
|
|
8255
|
+
return React.createElement(
|
|
8239
8256
|
'div',
|
|
8240
8257
|
{ className: 'multi-media-container' },
|
|
8241
|
-
|
|
8258
|
+
React.createElement(
|
|
8242
8259
|
Row$1,
|
|
8243
8260
|
{ noGutters: true },
|
|
8244
8261
|
medias.map(function (media) {
|
|
8245
|
-
return
|
|
8262
|
+
return React.createElement(
|
|
8246
8263
|
Col$1,
|
|
8247
8264
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8248
|
-
|
|
8265
|
+
React.createElement(
|
|
8249
8266
|
'a',
|
|
8250
|
-
_extends
|
|
8267
|
+
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8251
8268
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8252
|
-
|
|
8269
|
+
React.createElement(
|
|
8253
8270
|
'div',
|
|
8254
8271
|
{ className: 'multi-media-image-container' },
|
|
8255
|
-
imageBox &&
|
|
8272
|
+
imageBox && React.createElement(
|
|
8256
8273
|
LazyLoad,
|
|
8257
8274
|
{ once: true },
|
|
8258
|
-
|
|
8275
|
+
React.createElement(
|
|
8259
8276
|
'picture',
|
|
8260
8277
|
null,
|
|
8261
|
-
|
|
8262
|
-
|
|
8263
|
-
|
|
8264
|
-
|
|
8278
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8279
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8280
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8281
|
+
React.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
|
|
8265
8282
|
)
|
|
8266
8283
|
),
|
|
8267
|
-
media.caption &&
|
|
8284
|
+
media.caption && React.createElement(
|
|
8268
8285
|
'span',
|
|
8269
8286
|
{ className: 'multi-media-caption' },
|
|
8270
8287
|
media.caption
|
|
@@ -8274,7 +8291,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8274
8291
|
);
|
|
8275
8292
|
})
|
|
8276
8293
|
),
|
|
8277
|
-
|
|
8294
|
+
React.createElement(
|
|
8278
8295
|
'style',
|
|
8279
8296
|
{ jsx: 'true' },
|
|
8280
8297
|
'\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 '
|
|
@@ -8321,7 +8338,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8321
8338
|
}
|
|
8322
8339
|
};
|
|
8323
8340
|
|
|
8324
|
-
_this.wraperRef =
|
|
8341
|
+
_this.wraperRef = React.createRef();
|
|
8325
8342
|
_this.visible = false;
|
|
8326
8343
|
return _this;
|
|
8327
8344
|
}
|
|
@@ -8349,7 +8366,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8349
8366
|
_props$id = _props.id,
|
|
8350
8367
|
id = _props$id === undefined ? '' : _props$id;
|
|
8351
8368
|
|
|
8352
|
-
return
|
|
8369
|
+
return React.createElement(
|
|
8353
8370
|
'div',
|
|
8354
8371
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8355
8372
|
this.props.children
|
|
@@ -8358,7 +8375,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8358
8375
|
}]);
|
|
8359
8376
|
|
|
8360
8377
|
return InscreenSensor;
|
|
8361
|
-
}(
|
|
8378
|
+
}(React.Component);
|
|
8362
8379
|
|
|
8363
8380
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8364
8381
|
var nodes = _ref.nodes,
|
|
@@ -8467,33 +8484,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8467
8484
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8468
8485
|
var showReading = show ? 'showReading' : '';
|
|
8469
8486
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8470
|
-
return
|
|
8487
|
+
return React.createElement(
|
|
8471
8488
|
'div',
|
|
8472
8489
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8473
|
-
|
|
8490
|
+
React.createElement(
|
|
8474
8491
|
'a',
|
|
8475
8492
|
{ onClick: function onClick(e) {
|
|
8476
8493
|
return articleCardClickHandler(e);
|
|
8477
8494
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8478
|
-
|
|
8495
|
+
React.createElement(
|
|
8479
8496
|
'div',
|
|
8480
8497
|
{ className: 'prevNext-thumbnail' },
|
|
8481
|
-
|
|
8482
|
-
|
|
8498
|
+
React.createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
8499
|
+
React.createElement(
|
|
8483
8500
|
'div',
|
|
8484
8501
|
{ className: 'prevNext-reading ' + showReading },
|
|
8485
8502
|
articleLabel
|
|
8486
8503
|
)
|
|
8487
8504
|
),
|
|
8488
|
-
|
|
8505
|
+
React.createElement(
|
|
8489
8506
|
'div',
|
|
8490
8507
|
{ className: 'prevNext-summary' },
|
|
8491
|
-
|
|
8508
|
+
React.createElement(
|
|
8492
8509
|
'div',
|
|
8493
8510
|
{ className: 'prevNext-publishDate' },
|
|
8494
8511
|
moment(article.published).format('LL')
|
|
8495
8512
|
),
|
|
8496
|
-
|
|
8513
|
+
React.createElement(
|
|
8497
8514
|
'h2',
|
|
8498
8515
|
{ className: 'prevNext-title' },
|
|
8499
8516
|
article.title
|
|
@@ -8542,7 +8559,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8542
8559
|
|
|
8543
8560
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8544
8561
|
if (biography) {
|
|
8545
|
-
return
|
|
8562
|
+
return React.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8546
8563
|
}
|
|
8547
8564
|
};
|
|
8548
8565
|
|
|
@@ -8628,7 +8645,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8628
8645
|
//console.log('useLayoutEffect')
|
|
8629
8646
|
if (!firstLoad) {
|
|
8630
8647
|
setUpArrowClicked(false);
|
|
8631
|
-
if (
|
|
8648
|
+
if (main_40) {
|
|
8632
8649
|
grabLoadedAds();
|
|
8633
8650
|
} else {
|
|
8634
8651
|
scrollToArticle();
|
|
@@ -8652,7 +8669,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8652
8669
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8653
8670
|
if (pageview) pageview(path);
|
|
8654
8671
|
|
|
8655
|
-
if (!
|
|
8672
|
+
if (!main_40) {
|
|
8656
8673
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8657
8674
|
if (window.googletag && googletag.pubadsReady) {
|
|
8658
8675
|
lib_3.refresh();
|
|
@@ -8660,7 +8677,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8660
8677
|
});
|
|
8661
8678
|
}
|
|
8662
8679
|
//Refresh leaderboard ad on mobile
|
|
8663
|
-
if (
|
|
8680
|
+
if (main_40) {
|
|
8664
8681
|
var leaderboardSlotId = '';
|
|
8665
8682
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8666
8683
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8700,38 +8717,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8700
8717
|
setSensorVisible(false);
|
|
8701
8718
|
};
|
|
8702
8719
|
|
|
8703
|
-
return
|
|
8704
|
-
|
|
8720
|
+
return React.createElement(
|
|
8721
|
+
React.Fragment,
|
|
8705
8722
|
null,
|
|
8706
|
-
|
|
8723
|
+
React.createElement(
|
|
8707
8724
|
'div',
|
|
8708
8725
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8709
|
-
|
|
8726
|
+
React.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8710
8727
|
return handleArrowClick();
|
|
8711
8728
|
} })
|
|
8712
8729
|
),
|
|
8713
|
-
|
|
8714
|
-
|
|
8730
|
+
React.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8731
|
+
React.createElement(
|
|
8715
8732
|
'div',
|
|
8716
8733
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8717
|
-
|
|
8734
|
+
React.createElement(
|
|
8718
8735
|
'h5',
|
|
8719
8736
|
{ className: 'objective-title' },
|
|
8720
8737
|
nodes.seriesTitle
|
|
8721
8738
|
),
|
|
8722
|
-
|
|
8739
|
+
React.createElement(
|
|
8723
8740
|
'div',
|
|
8724
8741
|
{ className: 'prevNextWrapper' },
|
|
8725
8742
|
PrevNextCards(false, -1)
|
|
8726
8743
|
)
|
|
8727
8744
|
),
|
|
8728
|
-
|
|
8729
|
-
|
|
8745
|
+
React.createElement('hr', { className: 'article-seperater' }),
|
|
8746
|
+
React.createElement(
|
|
8730
8747
|
'div',
|
|
8731
8748
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8732
|
-
|
|
8749
|
+
main_40 && Ads.map(function (ad, index) {
|
|
8733
8750
|
if (index === 0) {
|
|
8734
|
-
return
|
|
8751
|
+
return React.createElement(
|
|
8735
8752
|
'div',
|
|
8736
8753
|
{
|
|
8737
8754
|
key: 'addid-1',
|
|
@@ -8751,14 +8768,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8751
8768
|
}
|
|
8752
8769
|
})
|
|
8753
8770
|
),
|
|
8754
|
-
|
|
8771
|
+
React.createElement(
|
|
8755
8772
|
'div',
|
|
8756
8773
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8757
8774
|
Articles.map(function (article, index) {
|
|
8758
|
-
return
|
|
8775
|
+
return React.createElement(
|
|
8759
8776
|
'div',
|
|
8760
8777
|
{ key: article.title },
|
|
8761
|
-
|
|
8778
|
+
React.createElement(
|
|
8762
8779
|
InscreenSensor,
|
|
8763
8780
|
{
|
|
8764
8781
|
visible: sensorVisible,
|
|
@@ -8776,84 +8793,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8776
8793
|
}
|
|
8777
8794
|
}
|
|
8778
8795
|
} },
|
|
8779
|
-
|
|
8796
|
+
React.createElement(
|
|
8780
8797
|
Head,
|
|
8781
8798
|
null,
|
|
8782
|
-
currentTitle !== null &&
|
|
8799
|
+
currentTitle !== null && React.createElement(
|
|
8783
8800
|
'title',
|
|
8784
8801
|
{ key: 'title' },
|
|
8785
8802
|
currentTitle
|
|
8786
8803
|
),
|
|
8787
|
-
currentSummary !== null &&
|
|
8788
|
-
currentURL !== null &&
|
|
8789
|
-
currentTitle !== null &&
|
|
8790
|
-
currentThumbnail !== null &&
|
|
8791
|
-
currentSummary !== null &&
|
|
8792
|
-
currentTitle !== null &&
|
|
8793
|
-
currentThumbnail !== null &&
|
|
8794
|
-
currentSummary !== null &&
|
|
8804
|
+
currentSummary !== null && React.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8805
|
+
currentURL !== null && React.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8806
|
+
currentTitle !== null && React.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8807
|
+
currentThumbnail !== null && React.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8808
|
+
currentSummary !== null && React.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8809
|
+
currentTitle !== null && React.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8810
|
+
currentThumbnail !== null && React.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8811
|
+
currentSummary !== null && React.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8795
8812
|
),
|
|
8796
|
-
|
|
8813
|
+
React.createElement(
|
|
8797
8814
|
'article',
|
|
8798
8815
|
{ className: 'article-wrapper' },
|
|
8799
|
-
|
|
8816
|
+
React.createElement(
|
|
8800
8817
|
'div',
|
|
8801
8818
|
{ className: 'article-publishDate' },
|
|
8802
8819
|
moment(article.published).format('LL')
|
|
8803
8820
|
),
|
|
8804
|
-
|
|
8821
|
+
React.createElement(
|
|
8805
8822
|
'div',
|
|
8806
8823
|
{ className: 'author-details-wrapper' },
|
|
8807
8824
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8808
|
-
return
|
|
8825
|
+
return React.createElement(
|
|
8809
8826
|
'span',
|
|
8810
8827
|
{ key: index },
|
|
8811
8828
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage }))
|
|
8812
8829
|
);
|
|
8813
8830
|
})
|
|
8814
8831
|
),
|
|
8815
|
-
|
|
8832
|
+
React.createElement(
|
|
8816
8833
|
'h2',
|
|
8817
8834
|
{ className: 'article-title' },
|
|
8818
8835
|
article.title
|
|
8819
8836
|
),
|
|
8820
|
-
|
|
8837
|
+
React.createElement(
|
|
8821
8838
|
'div',
|
|
8822
8839
|
{ className: 'mt-2 mb-2' },
|
|
8823
|
-
|
|
8840
|
+
React.createElement(BlockContent, _extends({
|
|
8824
8841
|
serializers: getSerializers,
|
|
8825
8842
|
videoAccountIDs: accountIDs,
|
|
8826
8843
|
blocks: article.text,
|
|
8827
8844
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8828
8845
|
}, client.config())),
|
|
8829
|
-
|
|
8846
|
+
React.createElement('hr', { className: 'article-seperater my-4' })
|
|
8830
8847
|
),
|
|
8831
|
-
Articles.length > 1 &&
|
|
8832
|
-
|
|
8848
|
+
Articles.length > 1 && React.createElement(
|
|
8849
|
+
React.Fragment,
|
|
8833
8850
|
null,
|
|
8834
|
-
|
|
8851
|
+
React.createElement(
|
|
8835
8852
|
'div',
|
|
8836
8853
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8837
|
-
|
|
8854
|
+
React.createElement(
|
|
8838
8855
|
'h5',
|
|
8839
8856
|
{ className: 'objective-title' },
|
|
8840
8857
|
nodes.seriesTitle
|
|
8841
8858
|
),
|
|
8842
|
-
|
|
8859
|
+
React.createElement(
|
|
8843
8860
|
'div',
|
|
8844
8861
|
{ className: 'prevNextWrapper' },
|
|
8845
8862
|
PrevNextCards(true, index)
|
|
8846
8863
|
)
|
|
8847
8864
|
),
|
|
8848
|
-
|
|
8865
|
+
React.createElement('hr', { className: 'article-seperater' })
|
|
8849
8866
|
)
|
|
8850
8867
|
),
|
|
8851
|
-
|
|
8868
|
+
React.createElement(
|
|
8852
8869
|
'div',
|
|
8853
8870
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8854
|
-
|
|
8871
|
+
main_40 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8855
8872
|
if (innerIndex === 0) {
|
|
8856
|
-
return
|
|
8873
|
+
return React.createElement(
|
|
8857
8874
|
'div',
|
|
8858
8875
|
{
|
|
8859
8876
|
key: 'addid-' + (index + 2),
|
|
@@ -8876,7 +8893,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8876
8893
|
)
|
|
8877
8894
|
);
|
|
8878
8895
|
}),
|
|
8879
|
-
|
|
8896
|
+
React.createElement(
|
|
8880
8897
|
'style',
|
|
8881
8898
|
{ jsx: 'true' },
|
|
8882
8899
|
'\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 '
|
|
@@ -8906,11 +8923,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8906
8923
|
};
|
|
8907
8924
|
}, [handleClickOutside]);
|
|
8908
8925
|
|
|
8909
|
-
return
|
|
8926
|
+
return React.createElement(
|
|
8910
8927
|
'div',
|
|
8911
8928
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8912
|
-
|
|
8913
|
-
|
|
8929
|
+
React.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8930
|
+
React.createElement(
|
|
8914
8931
|
'style',
|
|
8915
8932
|
{ jsx: 'true' },
|
|
8916
8933
|
'\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 '
|
|
@@ -8924,7 +8941,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8924
8941
|
}
|
|
8925
8942
|
};
|
|
8926
8943
|
|
|
8927
|
-
var FigureImage =
|
|
8944
|
+
var FigureImage = React.memo(function (_ref2) {
|
|
8928
8945
|
var node = _ref2.node,
|
|
8929
8946
|
client = _ref2.client,
|
|
8930
8947
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8932,13 +8949,13 @@ var FigureImage = React__default.memo(function (_ref2) {
|
|
|
8932
8949
|
handleClickFigure = _ref2.handleClickFigure;
|
|
8933
8950
|
|
|
8934
8951
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
8935
|
-
return
|
|
8952
|
+
return React.createElement(
|
|
8936
8953
|
'picture',
|
|
8937
8954
|
null,
|
|
8938
|
-
|
|
8939
|
-
|
|
8940
|
-
|
|
8941
|
-
|
|
8955
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8956
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8957
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8958
|
+
React.createElement('img', _extends({
|
|
8942
8959
|
style: figureImageStyle,
|
|
8943
8960
|
className: 'figure-image',
|
|
8944
8961
|
src: urlFor({ source: node, client: client }),
|
|
@@ -8989,30 +9006,30 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
8989
9006
|
|
|
8990
9007
|
var renderTooltip = function renderTooltip(props) {
|
|
8991
9008
|
if (infoBox[0].title) {
|
|
8992
|
-
return
|
|
8993
|
-
Popover
|
|
9009
|
+
return React.createElement(
|
|
9010
|
+
Popover,
|
|
8994
9011
|
{ id: 'popover-basic-' + infoBox[0].title },
|
|
8995
|
-
|
|
8996
|
-
Popover
|
|
9012
|
+
React.createElement(
|
|
9013
|
+
Popover.Title,
|
|
8997
9014
|
{ as: 'h3' },
|
|
8998
9015
|
infoBox[0].title
|
|
8999
9016
|
),
|
|
9000
|
-
|
|
9001
|
-
Popover
|
|
9017
|
+
React.createElement(
|
|
9018
|
+
Popover.Content,
|
|
9002
9019
|
null,
|
|
9003
|
-
|
|
9020
|
+
React.createElement(BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9004
9021
|
)
|
|
9005
9022
|
);
|
|
9006
9023
|
} else {
|
|
9007
|
-
return
|
|
9008
|
-
Tooltip
|
|
9009
|
-
_extends
|
|
9010
|
-
|
|
9024
|
+
return React.createElement(
|
|
9025
|
+
Tooltip,
|
|
9026
|
+
_extends({ id: 'button-tooltip' }, props),
|
|
9027
|
+
React.createElement(BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9011
9028
|
);
|
|
9012
9029
|
}
|
|
9013
9030
|
};
|
|
9014
9031
|
|
|
9015
|
-
var FigureImageWOverLay =
|
|
9032
|
+
var FigureImageWOverLay = React.memo(function (_ref3) {
|
|
9016
9033
|
var node = _ref3.node,
|
|
9017
9034
|
client = _ref3.client,
|
|
9018
9035
|
imgAlt = _ref3.imgAlt,
|
|
@@ -9020,32 +9037,32 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9020
9037
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9021
9038
|
|
|
9022
9039
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9023
|
-
var triggerAction =
|
|
9024
|
-
var placementLocation =
|
|
9025
|
-
return
|
|
9040
|
+
var triggerAction = main_39 ? 'click' : 'hover';
|
|
9041
|
+
var placementLocation = main_39 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
|
|
9042
|
+
return React.createElement(
|
|
9026
9043
|
'picture',
|
|
9027
9044
|
null,
|
|
9028
|
-
|
|
9029
|
-
|
|
9030
|
-
|
|
9031
|
-
|
|
9045
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9046
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9047
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9048
|
+
main_39 && link ? React.createElement('img', _extends({
|
|
9032
9049
|
style: figureImageStyle,
|
|
9033
9050
|
className: 'figure-image',
|
|
9034
9051
|
src: urlFor({ source: node, client: client }),
|
|
9035
9052
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9036
|
-
}, !link && !
|
|
9053
|
+
}, !link && !main_39 && {
|
|
9037
9054
|
onClick: function onClick() {
|
|
9038
9055
|
return handleClickFigure(node, client);
|
|
9039
9056
|
}
|
|
9040
|
-
})) :
|
|
9057
|
+
})) : React.createElement(
|
|
9041
9058
|
OverlayTrigger,
|
|
9042
9059
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip() },
|
|
9043
|
-
|
|
9060
|
+
React.createElement('img', _extends({
|
|
9044
9061
|
style: figureImageStyle,
|
|
9045
9062
|
className: 'figure-image',
|
|
9046
9063
|
src: urlFor({ source: node, client: client }),
|
|
9047
9064
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9048
|
-
}, !link && !
|
|
9065
|
+
}, !link && !main_39 && {
|
|
9049
9066
|
onClick: function onClick() {
|
|
9050
9067
|
return handleClickFigure(node, client);
|
|
9051
9068
|
}
|
|
@@ -9094,13 +9111,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9094
9111
|
|
|
9095
9112
|
var FigureCaption = useCallback(function () {
|
|
9096
9113
|
if (imgcaption && imgcaption.length > 0) {
|
|
9097
|
-
return
|
|
9114
|
+
return React.createElement(
|
|
9098
9115
|
'div',
|
|
9099
9116
|
{ className: 'figure-caption' },
|
|
9100
|
-
|
|
9117
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9101
9118
|
);
|
|
9102
9119
|
} else if (caption) {
|
|
9103
|
-
return
|
|
9120
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9104
9121
|
} else return null;
|
|
9105
9122
|
}, [caption, imgcaption]);
|
|
9106
9123
|
|
|
@@ -9117,24 +9134,24 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9117
9134
|
setShowLightbox(true);
|
|
9118
9135
|
}, [node, client]);
|
|
9119
9136
|
|
|
9120
|
-
return
|
|
9121
|
-
|
|
9137
|
+
return React.createElement(
|
|
9138
|
+
React.Fragment,
|
|
9122
9139
|
null,
|
|
9123
|
-
infoBox.length >= 1 ?
|
|
9124
|
-
Figure$
|
|
9140
|
+
infoBox.length >= 1 ? React.createElement(
|
|
9141
|
+
Figure$2,
|
|
9125
9142
|
{ className: '' + class_name, style: figureStyle },
|
|
9126
|
-
link ?
|
|
9143
|
+
link ? React.createElement(
|
|
9127
9144
|
'a',
|
|
9128
9145
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9129
|
-
|
|
9130
|
-
|
|
9131
|
-
) :
|
|
9132
|
-
|
|
9146
|
+
React.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9147
|
+
React.createElement(FigureCaption, null)
|
|
9148
|
+
) : React.createElement(
|
|
9149
|
+
React.Fragment,
|
|
9133
9150
|
null,
|
|
9134
|
-
|
|
9135
|
-
|
|
9151
|
+
React.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9152
|
+
React.createElement(FigureCaption, null)
|
|
9136
9153
|
),
|
|
9137
|
-
|
|
9154
|
+
React.createElement(LightBox, {
|
|
9138
9155
|
showLightbox: showLightbox,
|
|
9139
9156
|
lightboxImgSrc: lightboxImgSrc,
|
|
9140
9157
|
closeLightbox: function closeLightbox() {
|
|
@@ -9142,21 +9159,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9142
9159
|
setShowLightbox(false);
|
|
9143
9160
|
}
|
|
9144
9161
|
})
|
|
9145
|
-
) :
|
|
9146
|
-
Figure$
|
|
9162
|
+
) : React.createElement(
|
|
9163
|
+
Figure$2,
|
|
9147
9164
|
{ className: '' + class_name, style: figureStyle },
|
|
9148
|
-
link ?
|
|
9165
|
+
link ? React.createElement(
|
|
9149
9166
|
'a',
|
|
9150
9167
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9151
|
-
|
|
9152
|
-
|
|
9153
|
-
) :
|
|
9154
|
-
|
|
9168
|
+
React.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9169
|
+
React.createElement(FigureCaption, null)
|
|
9170
|
+
) : React.createElement(
|
|
9171
|
+
React.Fragment,
|
|
9155
9172
|
null,
|
|
9156
|
-
|
|
9157
|
-
|
|
9173
|
+
React.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9174
|
+
React.createElement(FigureCaption, null)
|
|
9158
9175
|
),
|
|
9159
|
-
|
|
9176
|
+
React.createElement(LightBox, {
|
|
9160
9177
|
showLightbox: showLightbox,
|
|
9161
9178
|
lightboxImgSrc: lightboxImgSrc,
|
|
9162
9179
|
closeLightbox: function closeLightbox() {
|
|
@@ -9165,7 +9182,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9165
9182
|
}
|
|
9166
9183
|
})
|
|
9167
9184
|
),
|
|
9168
|
-
|
|
9185
|
+
React.createElement(
|
|
9169
9186
|
'style',
|
|
9170
9187
|
{ jsx: 'true' },
|
|
9171
9188
|
'\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 '
|
|
@@ -9173,7 +9190,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9173
9190
|
);
|
|
9174
9191
|
};
|
|
9175
9192
|
|
|
9176
|
-
var Figure =
|
|
9193
|
+
var Figure = React.memo(FigureComponent, compareProps);
|
|
9177
9194
|
|
|
9178
9195
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
9179
9196
|
useEffect(function () {
|
|
@@ -9190,7 +9207,7 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9190
9207
|
}, [ref]);
|
|
9191
9208
|
}
|
|
9192
9209
|
|
|
9193
|
-
var FigureImage$1 =
|
|
9210
|
+
var FigureImage$1 = React.memo(function (_ref) {
|
|
9194
9211
|
var imagesCount = _ref.imagesCount,
|
|
9195
9212
|
image = _ref.image,
|
|
9196
9213
|
client = _ref.client,
|
|
@@ -9198,13 +9215,13 @@ var FigureImage$1 = React__default.memo(function (_ref) {
|
|
|
9198
9215
|
link = _ref.link,
|
|
9199
9216
|
handleClickFigure = _ref.handleClickFigure;
|
|
9200
9217
|
|
|
9201
|
-
return
|
|
9218
|
+
return React.createElement(
|
|
9202
9219
|
'picture',
|
|
9203
9220
|
null,
|
|
9204
|
-
|
|
9205
|
-
|
|
9206
|
-
|
|
9207
|
-
|
|
9221
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9222
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9223
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9224
|
+
React.createElement('img', _extends({
|
|
9208
9225
|
'images-count': imagesCount,
|
|
9209
9226
|
className: 'multi-figure-image',
|
|
9210
9227
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9241,13 +9258,13 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9241
9258
|
imgcaption = _ref2.imgcaption;
|
|
9242
9259
|
|
|
9243
9260
|
if (imgcaption && imgcaption.length > 0) {
|
|
9244
|
-
return
|
|
9261
|
+
return React.createElement(
|
|
9245
9262
|
'div',
|
|
9246
9263
|
{ className: 'multi-figure-caption' },
|
|
9247
|
-
|
|
9264
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9248
9265
|
);
|
|
9249
9266
|
} else if (caption) {
|
|
9250
|
-
return
|
|
9267
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9251
9268
|
} else return null;
|
|
9252
9269
|
};
|
|
9253
9270
|
|
|
@@ -9256,7 +9273,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9256
9273
|
setOpenImg(true);
|
|
9257
9274
|
}, [client]);
|
|
9258
9275
|
|
|
9259
|
-
var FigureImageWOverLay =
|
|
9276
|
+
var FigureImageWOverLay = React.memo(function (_ref3) {
|
|
9260
9277
|
var imagesCount = _ref3.imagesCount,
|
|
9261
9278
|
image = _ref3.image,
|
|
9262
9279
|
client = _ref3.client,
|
|
@@ -9264,32 +9281,32 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9264
9281
|
link = _ref3.link,
|
|
9265
9282
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9266
9283
|
|
|
9267
|
-
var triggerAction =
|
|
9268
|
-
var placementLocation =
|
|
9269
|
-
return
|
|
9284
|
+
var triggerAction = main_39 ? 'click' : 'hover';
|
|
9285
|
+
var placementLocation = main_39 ? 'top' : image.infoBox[0] ? image.infoBox[0].alignment : 'right';
|
|
9286
|
+
return React.createElement(
|
|
9270
9287
|
'picture',
|
|
9271
9288
|
null,
|
|
9272
|
-
|
|
9273
|
-
|
|
9274
|
-
|
|
9275
|
-
|
|
9289
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9290
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9291
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9292
|
+
main_39 && link ? React.createElement('img', _extends({
|
|
9276
9293
|
'images-count': imagesCount,
|
|
9277
9294
|
className: 'multi-figure-image',
|
|
9278
9295
|
src: urlFor({ source: image, client: client }),
|
|
9279
9296
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9280
|
-
}, !link && !
|
|
9297
|
+
}, !link && !main_39 && {
|
|
9281
9298
|
onClick: function onClick() {
|
|
9282
9299
|
return handleClickFigure(image, client);
|
|
9283
9300
|
}
|
|
9284
|
-
})) :
|
|
9301
|
+
})) : React.createElement(
|
|
9285
9302
|
OverlayTrigger,
|
|
9286
9303
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip(image) },
|
|
9287
|
-
|
|
9304
|
+
React.createElement('img', _extends({
|
|
9288
9305
|
'images-count': imagesCount,
|
|
9289
9306
|
className: 'multi-figure-image',
|
|
9290
9307
|
src: urlFor({ source: image, client: client }),
|
|
9291
9308
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9292
|
-
}, !link && !
|
|
9309
|
+
}, !link && !main_39 && {
|
|
9293
9310
|
onClick: function onClick() {
|
|
9294
9311
|
return handleClickFigure(image, client);
|
|
9295
9312
|
}
|
|
@@ -9300,102 +9317,102 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9300
9317
|
|
|
9301
9318
|
var renderTooltip = function renderTooltip(image) {
|
|
9302
9319
|
if (image.infoBox[0].title) {
|
|
9303
|
-
return
|
|
9304
|
-
Popover
|
|
9320
|
+
return React.createElement(
|
|
9321
|
+
Popover,
|
|
9305
9322
|
{ id: 'popover-basic-' + image.infoBox[0].title },
|
|
9306
|
-
|
|
9307
|
-
Popover
|
|
9323
|
+
React.createElement(
|
|
9324
|
+
Popover.Title,
|
|
9308
9325
|
{ as: 'h3' },
|
|
9309
9326
|
image.infoBox[0].title
|
|
9310
9327
|
),
|
|
9311
|
-
|
|
9312
|
-
Popover
|
|
9328
|
+
React.createElement(
|
|
9329
|
+
Popover.Content,
|
|
9313
9330
|
null,
|
|
9314
|
-
|
|
9331
|
+
React.createElement(BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9315
9332
|
)
|
|
9316
9333
|
);
|
|
9317
9334
|
} else {
|
|
9318
|
-
return
|
|
9319
|
-
Tooltip
|
|
9320
|
-
_extends
|
|
9321
|
-
|
|
9335
|
+
return React.createElement(
|
|
9336
|
+
Tooltip,
|
|
9337
|
+
_extends({ id: 'button-tooltip' }, props),
|
|
9338
|
+
React.createElement(BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9322
9339
|
);
|
|
9323
9340
|
}
|
|
9324
9341
|
};
|
|
9325
9342
|
|
|
9326
9343
|
if (images && images.length > 0) {
|
|
9327
|
-
return
|
|
9344
|
+
return React.createElement(
|
|
9328
9345
|
'div',
|
|
9329
9346
|
{ className: 'multi-figure-container' },
|
|
9330
|
-
|
|
9347
|
+
React.createElement(
|
|
9331
9348
|
Row$1,
|
|
9332
9349
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9333
9350
|
images.map(function (image, index) {
|
|
9334
9351
|
if (image.infoBox) {
|
|
9335
|
-
return
|
|
9352
|
+
return React.createElement(
|
|
9336
9353
|
Col$1,
|
|
9337
9354
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9338
|
-
image.link ?
|
|
9355
|
+
image.link ? React.createElement(
|
|
9339
9356
|
'a',
|
|
9340
|
-
_extends
|
|
9341
|
-
|
|
9357
|
+
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9358
|
+
React.createElement(
|
|
9342
9359
|
'div',
|
|
9343
9360
|
{ className: 'multi-figure-image-container' },
|
|
9344
|
-
|
|
9361
|
+
React.createElement(
|
|
9345
9362
|
LazyLoad,
|
|
9346
9363
|
{ once: true },
|
|
9347
|
-
|
|
9364
|
+
React.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9348
9365
|
),
|
|
9349
|
-
|
|
9366
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9350
9367
|
)
|
|
9351
|
-
) :
|
|
9368
|
+
) : React.createElement(
|
|
9352
9369
|
'div',
|
|
9353
9370
|
{ className: 'multi-figure-image-container' },
|
|
9354
|
-
|
|
9371
|
+
React.createElement(
|
|
9355
9372
|
LazyLoad,
|
|
9356
9373
|
{ once: true },
|
|
9357
|
-
|
|
9374
|
+
React.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9358
9375
|
),
|
|
9359
|
-
|
|
9376
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9360
9377
|
)
|
|
9361
9378
|
);
|
|
9362
9379
|
} else {
|
|
9363
|
-
return
|
|
9380
|
+
return React.createElement(
|
|
9364
9381
|
Col$1,
|
|
9365
9382
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9366
|
-
image.link ?
|
|
9383
|
+
image.link ? React.createElement(
|
|
9367
9384
|
'a',
|
|
9368
|
-
_extends
|
|
9369
|
-
|
|
9385
|
+
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9386
|
+
React.createElement(
|
|
9370
9387
|
'div',
|
|
9371
9388
|
{ className: 'multi-figure-image-container' },
|
|
9372
|
-
|
|
9389
|
+
React.createElement(
|
|
9373
9390
|
LazyLoad,
|
|
9374
9391
|
{ once: true },
|
|
9375
|
-
|
|
9392
|
+
React.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9376
9393
|
),
|
|
9377
|
-
|
|
9394
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9378
9395
|
)
|
|
9379
|
-
) :
|
|
9396
|
+
) : React.createElement(
|
|
9380
9397
|
'div',
|
|
9381
9398
|
{ className: 'multi-figure-image-container' },
|
|
9382
|
-
|
|
9399
|
+
React.createElement(
|
|
9383
9400
|
LazyLoad,
|
|
9384
9401
|
{ once: true },
|
|
9385
|
-
|
|
9402
|
+
React.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9386
9403
|
),
|
|
9387
|
-
|
|
9404
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9388
9405
|
)
|
|
9389
9406
|
);
|
|
9390
9407
|
}
|
|
9391
9408
|
})
|
|
9392
9409
|
),
|
|
9393
|
-
|
|
9410
|
+
React.createElement(
|
|
9394
9411
|
'div',
|
|
9395
9412
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9396
|
-
|
|
9413
|
+
React.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9397
9414
|
),
|
|
9398
|
-
|
|
9415
|
+
React.createElement(
|
|
9399
9416
|
'style',
|
|
9400
9417
|
{ jsx: 'true' },
|
|
9401
9418
|
'\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 '
|
|
@@ -9444,23 +9461,23 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9444
9461
|
if (hambergerNav) setOffsetHeight(hambergerNav.offsetHeight);else if (header) setOffsetHeight(header.offsetHeight);
|
|
9445
9462
|
}, []);
|
|
9446
9463
|
|
|
9447
|
-
return
|
|
9448
|
-
|
|
9464
|
+
return React.createElement(
|
|
9465
|
+
React.Fragment,
|
|
9449
9466
|
null,
|
|
9450
|
-
|
|
9467
|
+
React.createElement(
|
|
9451
9468
|
Head,
|
|
9452
9469
|
null,
|
|
9453
|
-
|
|
9470
|
+
React.createElement('script', {
|
|
9454
9471
|
dangerouslySetInnerHTML: {
|
|
9455
9472
|
__html: 'history.scrollRestoration = "manual"'
|
|
9456
9473
|
}
|
|
9457
9474
|
})
|
|
9458
9475
|
),
|
|
9459
|
-
|
|
9476
|
+
React.createElement(
|
|
9460
9477
|
'div',
|
|
9461
9478
|
{ id: elementId },
|
|
9462
|
-
|
|
9463
|
-
|
|
9479
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers }),
|
|
9480
|
+
React.createElement(
|
|
9464
9481
|
'style',
|
|
9465
9482
|
{ jsx: 'true' },
|
|
9466
9483
|
'\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 '
|
|
@@ -9494,7 +9511,7 @@ exports.__esModule = true;
|
|
|
9494
9511
|
|
|
9495
9512
|
|
|
9496
9513
|
|
|
9497
|
-
var _extends3 = _interopRequireDefault(_extends$
|
|
9514
|
+
var _extends3 = _interopRequireDefault(_extends$1);
|
|
9498
9515
|
|
|
9499
9516
|
|
|
9500
9517
|
|
|
@@ -9514,7 +9531,7 @@ var _inherits3 = _interopRequireDefault(inherits);
|
|
|
9514
9531
|
|
|
9515
9532
|
|
|
9516
9533
|
|
|
9517
|
-
var _react2 = _interopRequireDefault(
|
|
9534
|
+
var _react2 = _interopRequireDefault(React);
|
|
9518
9535
|
|
|
9519
9536
|
|
|
9520
9537
|
|
|
@@ -9673,7 +9690,7 @@ var ScriptTag = function (_Component) {
|
|
|
9673
9690
|
};
|
|
9674
9691
|
|
|
9675
9692
|
return ScriptTag;
|
|
9676
|
-
}(
|
|
9693
|
+
}(React.Component);
|
|
9677
9694
|
|
|
9678
9695
|
ScriptTag.propTypes = {
|
|
9679
9696
|
/**
|
|
@@ -9752,11 +9769,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9752
9769
|
}, []);
|
|
9753
9770
|
|
|
9754
9771
|
if (iframeSrc) {
|
|
9755
|
-
return
|
|
9772
|
+
return React.createElement(
|
|
9756
9773
|
'section',
|
|
9757
9774
|
{ className: 'form-assembly' },
|
|
9758
|
-
|
|
9759
|
-
|
|
9775
|
+
React.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9776
|
+
React.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9760
9777
|
);
|
|
9761
9778
|
}
|
|
9762
9779
|
|
|
@@ -9793,27 +9810,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9793
9810
|
return window.removeEventListener('resize', handleResize);
|
|
9794
9811
|
};
|
|
9795
9812
|
}, []);
|
|
9796
|
-
return
|
|
9813
|
+
return React.createElement(
|
|
9797
9814
|
'div',
|
|
9798
9815
|
{ className: 'blockTableHolder', ref: holder },
|
|
9799
|
-
|
|
9816
|
+
React.createElement(
|
|
9800
9817
|
'div',
|
|
9801
9818
|
{ className: 'blockTable' },
|
|
9802
9819
|
rows && rows.map(function (row) {
|
|
9803
|
-
return
|
|
9820
|
+
return React.createElement(
|
|
9804
9821
|
'div',
|
|
9805
9822
|
{ className: 'blockTableRow' },
|
|
9806
9823
|
row.cells && row.cells.map(function (cell) {
|
|
9807
|
-
return
|
|
9824
|
+
return React.createElement(
|
|
9808
9825
|
'div',
|
|
9809
9826
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9810
|
-
|
|
9827
|
+
React.createElement(BlockContent, _extends({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9811
9828
|
);
|
|
9812
9829
|
})
|
|
9813
9830
|
);
|
|
9814
9831
|
})
|
|
9815
9832
|
),
|
|
9816
|
-
|
|
9833
|
+
React.createElement(
|
|
9817
9834
|
'style',
|
|
9818
9835
|
{ jsx: true },
|
|
9819
9836
|
'\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 '
|
|
@@ -9892,12 +9909,12 @@ var getSerializers = function getSerializers() {
|
|
|
9892
9909
|
var node = _ref.node;
|
|
9893
9910
|
var url = node.url;
|
|
9894
9911
|
|
|
9895
|
-
return
|
|
9912
|
+
return React.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9896
9913
|
},
|
|
9897
9914
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9898
9915
|
var node = _ref2.node;
|
|
9899
9916
|
|
|
9900
|
-
return
|
|
9917
|
+
return React.createElement(YouTubeGallery, {
|
|
9901
9918
|
nodes: node,
|
|
9902
9919
|
article: article,
|
|
9903
9920
|
meta: meta,
|
|
@@ -9911,7 +9928,7 @@ var getSerializers = function getSerializers() {
|
|
|
9911
9928
|
articleSeries: function articleSeries(_ref3) {
|
|
9912
9929
|
var node = _ref3.node;
|
|
9913
9930
|
|
|
9914
|
-
return
|
|
9931
|
+
return React.createElement(ArticleSeries, {
|
|
9915
9932
|
nodes: node,
|
|
9916
9933
|
accountIDs: videoAccountIDs || {},
|
|
9917
9934
|
pageview: pageview,
|
|
@@ -9924,61 +9941,61 @@ var getSerializers = function getSerializers() {
|
|
|
9924
9941
|
figure: function figure(_ref4) {
|
|
9925
9942
|
var node = _ref4.node;
|
|
9926
9943
|
|
|
9927
|
-
return
|
|
9944
|
+
return React.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9928
9945
|
},
|
|
9929
9946
|
multifigure: function multifigure(_ref5) {
|
|
9930
9947
|
var node = _ref5.node;
|
|
9931
9948
|
|
|
9932
|
-
return
|
|
9949
|
+
return React.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9933
9950
|
},
|
|
9934
9951
|
slideshow: function slideshow(_ref6) {
|
|
9935
9952
|
var node = _ref6.node;
|
|
9936
9953
|
var slides = node.slides;
|
|
9937
9954
|
|
|
9938
|
-
return
|
|
9955
|
+
return React.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9939
9956
|
},
|
|
9940
9957
|
sidebar: function sidebar(_ref7) {
|
|
9941
9958
|
var node = _ref7.node;
|
|
9942
9959
|
var caption = node.caption,
|
|
9943
9960
|
content = node.content;
|
|
9944
9961
|
|
|
9945
|
-
return
|
|
9962
|
+
return React.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9946
9963
|
},
|
|
9947
9964
|
datatable: function datatable(_ref8) {
|
|
9948
9965
|
var node = _ref8.node;
|
|
9949
9966
|
var table = node.table;
|
|
9950
9967
|
|
|
9951
|
-
return
|
|
9968
|
+
return React.createElement(TableShow, { rows: table.rows });
|
|
9952
9969
|
},
|
|
9953
9970
|
media: function media(_ref9) {
|
|
9954
9971
|
var node = _ref9.node;
|
|
9955
9972
|
|
|
9956
|
-
return
|
|
9973
|
+
return React.createElement(Media, { node: node, client: client });
|
|
9957
9974
|
},
|
|
9958
9975
|
iframe: function iframe(_ref10) {
|
|
9959
9976
|
var node = _ref10.node;
|
|
9960
9977
|
|
|
9961
|
-
return
|
|
9978
|
+
return React.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9962
9979
|
},
|
|
9963
9980
|
video: function video(_ref11) {
|
|
9964
9981
|
var node = _ref11.node;
|
|
9965
9982
|
|
|
9966
|
-
return
|
|
9983
|
+
return React.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9967
9984
|
},
|
|
9968
9985
|
audio: function audio(_ref12) {
|
|
9969
9986
|
var node = _ref12.node;
|
|
9970
9987
|
|
|
9971
|
-
return
|
|
9988
|
+
return React.createElement(Audio, { node: node });
|
|
9972
9989
|
},
|
|
9973
9990
|
poll: function poll(_ref13) {
|
|
9974
9991
|
var node = _ref13.node;
|
|
9975
9992
|
|
|
9976
|
-
return
|
|
9993
|
+
return React.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9977
9994
|
},
|
|
9978
9995
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9979
9996
|
var node = _ref14.node;
|
|
9980
9997
|
|
|
9981
|
-
return
|
|
9998
|
+
return React.createElement(Poll$1, {
|
|
9982
9999
|
node: node,
|
|
9983
10000
|
client: client,
|
|
9984
10001
|
pageview: pageview,
|
|
@@ -9992,35 +10009,35 @@ var getSerializers = function getSerializers() {
|
|
|
9992
10009
|
var node = _ref15.node;
|
|
9993
10010
|
var quizzes = node.quizzes;
|
|
9994
10011
|
|
|
9995
|
-
return
|
|
10012
|
+
return React.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9996
10013
|
},
|
|
9997
10014
|
leads: function leads(_ref16) {
|
|
9998
10015
|
var node = _ref16.node;
|
|
9999
10016
|
var leadID = node.leadID;
|
|
10000
10017
|
|
|
10001
10018
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
10002
|
-
return
|
|
10019
|
+
return React.createElement(Leads, { url: url });
|
|
10003
10020
|
},
|
|
10004
10021
|
slideshows: function slideshows(_ref17) {
|
|
10005
10022
|
var node = _ref17.node;
|
|
10006
10023
|
|
|
10007
|
-
return
|
|
10024
|
+
return React.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
10008
10025
|
},
|
|
10009
10026
|
nativeAd: function nativeAd(_ref18) {
|
|
10010
10027
|
var node = _ref18.node;
|
|
10011
10028
|
|
|
10012
|
-
return
|
|
10029
|
+
return React.createElement(NativeAd, { node: node });
|
|
10013
10030
|
},
|
|
10014
10031
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
10015
10032
|
var node = _ref19.node;
|
|
10016
10033
|
|
|
10017
|
-
return
|
|
10034
|
+
return React.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
10018
10035
|
},
|
|
10019
10036
|
hrtag: function hrtag() {
|
|
10020
|
-
return
|
|
10037
|
+
return React.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
10021
10038
|
},
|
|
10022
10039
|
brtag: function brtag() {
|
|
10023
|
-
return
|
|
10040
|
+
return React.createElement('br', { className: 'line-break' });
|
|
10024
10041
|
},
|
|
10025
10042
|
formstack: function formstack(_ref20) {
|
|
10026
10043
|
var node = _ref20.node;
|
|
@@ -10028,29 +10045,29 @@ var getSerializers = function getSerializers() {
|
|
|
10028
10045
|
Caption = node.Caption,
|
|
10029
10046
|
needSegmentSupport = node.needSegmentSupport;
|
|
10030
10047
|
|
|
10031
|
-
return
|
|
10048
|
+
return React.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
10032
10049
|
},
|
|
10033
10050
|
formassembly: FormAssembly,
|
|
10034
10051
|
multimedia: function multimedia(_ref21) {
|
|
10035
10052
|
var node = _ref21.node;
|
|
10036
10053
|
|
|
10037
|
-
return
|
|
10054
|
+
return React.createElement(MultiMedia, { node: node, client: client });
|
|
10038
10055
|
},
|
|
10039
10056
|
blockTable: function blockTable(_ref22) {
|
|
10040
10057
|
var node = _ref22.node;
|
|
10041
|
-
return
|
|
10058
|
+
return React.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10042
10059
|
}
|
|
10043
10060
|
},
|
|
10044
10061
|
marks: {
|
|
10045
10062
|
superscript: function superscript(props) {
|
|
10046
|
-
return
|
|
10063
|
+
return React.createElement(
|
|
10047
10064
|
'sup',
|
|
10048
10065
|
null,
|
|
10049
10066
|
props.children
|
|
10050
10067
|
);
|
|
10051
10068
|
},
|
|
10052
10069
|
subscript: function subscript(props) {
|
|
10053
|
-
return
|
|
10070
|
+
return React.createElement(
|
|
10054
10071
|
'sub',
|
|
10055
10072
|
null,
|
|
10056
10073
|
props.children
|
|
@@ -10067,7 +10084,7 @@ var getSerializers = function getSerializers() {
|
|
|
10067
10084
|
if (href && href.charAt(0) === '#') {
|
|
10068
10085
|
var elementId = href.slice(1);
|
|
10069
10086
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
10070
|
-
return
|
|
10087
|
+
return React.createElement(
|
|
10071
10088
|
'a',
|
|
10072
10089
|
{ onClick: function onClick() {
|
|
10073
10090
|
return ScrollToElement(elementId);
|
|
@@ -10077,15 +10094,15 @@ var getSerializers = function getSerializers() {
|
|
|
10077
10094
|
}
|
|
10078
10095
|
|
|
10079
10096
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
10080
|
-
return href ?
|
|
10097
|
+
return href ? React.createElement(
|
|
10081
10098
|
'a',
|
|
10082
|
-
_extends
|
|
10099
|
+
_extends({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10083
10100
|
children
|
|
10084
10101
|
) : children;
|
|
10085
10102
|
},
|
|
10086
10103
|
alignleft: function alignleft(_ref23) {
|
|
10087
10104
|
var children = _ref23.children;
|
|
10088
|
-
return
|
|
10105
|
+
return React.createElement(
|
|
10089
10106
|
'div',
|
|
10090
10107
|
{ style: { textAlign: 'left' } },
|
|
10091
10108
|
children
|
|
@@ -10093,7 +10110,7 @@ var getSerializers = function getSerializers() {
|
|
|
10093
10110
|
},
|
|
10094
10111
|
alignright: function alignright(_ref24) {
|
|
10095
10112
|
var children = _ref24.children;
|
|
10096
|
-
return
|
|
10113
|
+
return React.createElement(
|
|
10097
10114
|
'div',
|
|
10098
10115
|
{ style: { textAlign: 'right' } },
|
|
10099
10116
|
children
|
|
@@ -10101,7 +10118,7 @@ var getSerializers = function getSerializers() {
|
|
|
10101
10118
|
},
|
|
10102
10119
|
aligncenter: function aligncenter(_ref25) {
|
|
10103
10120
|
var children = _ref25.children;
|
|
10104
|
-
return
|
|
10121
|
+
return React.createElement(
|
|
10105
10122
|
'div',
|
|
10106
10123
|
{ style: { textAlign: 'center' } },
|
|
10107
10124
|
children
|
|
@@ -10109,7 +10126,7 @@ var getSerializers = function getSerializers() {
|
|
|
10109
10126
|
},
|
|
10110
10127
|
alignjustify: function alignjustify(_ref26) {
|
|
10111
10128
|
var children = _ref26.children;
|
|
10112
|
-
return
|
|
10129
|
+
return React.createElement(
|
|
10113
10130
|
'div',
|
|
10114
10131
|
{ style: { textAlign: 'justify' } },
|
|
10115
10132
|
children
|
|
@@ -10119,7 +10136,7 @@ var getSerializers = function getSerializers() {
|
|
|
10119
10136
|
var children = props.children,
|
|
10120
10137
|
color = props.mark.color;
|
|
10121
10138
|
|
|
10122
|
-
return
|
|
10139
|
+
return React.createElement(
|
|
10123
10140
|
'span',
|
|
10124
10141
|
{ style: { color: color ? color.hex : null } },
|
|
10125
10142
|
children
|