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