@mjhls/mjh-framework 1.0.861-dl-iframe-v1 → 1.0.862-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/AD.js +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 +15 -16
- 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 +3899 -80
- 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 +200 -204
- 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-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-f83a102a.js → index-a1e54356.js} +934 -965
- 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 +13 -13
- 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 +3895 -76
- 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 +181 -181
- 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-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-82fea143.js → index-a1c5f00a.js} +887 -908
- 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); }
|
|
1582
|
-
|
|
1583
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return 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; }; }();
|
|
1584
1577
|
|
|
1585
|
-
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; };
|
|
1586
1579
|
|
|
1587
|
-
function
|
|
1580
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1588
1581
|
|
|
1589
|
-
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; }
|
|
1590
1583
|
|
|
1591
|
-
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; }
|
|
1592
1585
|
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
*
|
|
1596
|
-
*
|
|
1597
|
-
* @param {Object}
|
|
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
|
|
2867
|
-
|
|
2868
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2869
|
-
|
|
2870
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
2896
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2871
2897
|
|
|
2872
|
-
function
|
|
2898
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2873
2899
|
|
|
2874
|
-
function
|
|
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) ||
|
|
3764
|
-
|
|
3765
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3766
|
-
|
|
3767
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
3788
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3768
3789
|
|
|
3769
|
-
function
|
|
3790
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3770
3791
|
|
|
3771
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
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,15 +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
|
-
|
|
8112
|
-
'style',
|
|
8113
|
-
{ jsx: 'true' },
|
|
8114
|
-
'\n @media screen and (max-width: 1190px) {\n .leads-block {\n min-height: 2000px;\n }\n }\n @media screen and (min-width: 1191px) {\n .leads-block {\n min-height: 1500px;\n }\n }\n '
|
|
8115
|
-
),
|
|
8116
|
-
url && React.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8095
|
+
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8117
8096
|
);
|
|
8118
8097
|
};
|
|
8119
8098
|
|
|
@@ -8153,53 +8132,53 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8153
8132
|
setCarouselIndex(selectedIndex);
|
|
8154
8133
|
};
|
|
8155
8134
|
|
|
8156
|
-
return
|
|
8135
|
+
return React__default.createElement(
|
|
8157
8136
|
'div',
|
|
8158
8137
|
{ className: 'mt-3 mb-4' },
|
|
8159
|
-
|
|
8138
|
+
React__default.createElement(
|
|
8160
8139
|
Carousel,
|
|
8161
8140
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8162
8141
|
slides && slides.map(function (slide) {
|
|
8163
8142
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8164
|
-
return
|
|
8143
|
+
return React__default.createElement(
|
|
8165
8144
|
Carousel.Item,
|
|
8166
8145
|
{ key: slide._key },
|
|
8167
|
-
|
|
8146
|
+
React__default.createElement(
|
|
8168
8147
|
'a',
|
|
8169
8148
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8170
|
-
|
|
8149
|
+
React__default.createElement(
|
|
8171
8150
|
'div',
|
|
8172
8151
|
{ style: { textAlign: 'center' }, className: '' },
|
|
8173
|
-
|
|
8152
|
+
React__default.createElement(
|
|
8174
8153
|
LazyLoad,
|
|
8175
8154
|
null,
|
|
8176
|
-
|
|
8155
|
+
React__default.createElement(
|
|
8177
8156
|
'picture',
|
|
8178
8157
|
null,
|
|
8179
|
-
|
|
8180
|
-
|
|
8181
|
-
|
|
8182
|
-
|
|
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' })
|
|
8183
8162
|
)
|
|
8184
8163
|
)
|
|
8185
8164
|
)
|
|
8186
8165
|
),
|
|
8187
|
-
|
|
8166
|
+
React__default.createElement(
|
|
8188
8167
|
'div',
|
|
8189
8168
|
{ className: 'p-2' },
|
|
8190
|
-
slide.slideshowImage.caption &&
|
|
8169
|
+
slide.slideshowImage.caption && React__default.createElement(
|
|
8191
8170
|
'h3',
|
|
8192
8171
|
{ style: { padding: '0px' } },
|
|
8193
8172
|
slide.slideshowImage.caption
|
|
8194
8173
|
),
|
|
8195
|
-
slide.description &&
|
|
8174
|
+
slide.description && React__default.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8196
8175
|
)
|
|
8197
8176
|
);
|
|
8198
8177
|
}
|
|
8199
8178
|
return null;
|
|
8200
8179
|
})
|
|
8201
8180
|
),
|
|
8202
|
-
|
|
8181
|
+
React__default.createElement(
|
|
8203
8182
|
'style',
|
|
8204
8183
|
{ jsx: 'true' },
|
|
8205
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 '
|
|
@@ -8218,10 +8197,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8218
8197
|
sizes = _props$node.sizes,
|
|
8219
8198
|
sizeMapping = _props$node.sizeMapping;
|
|
8220
8199
|
|
|
8221
|
-
return
|
|
8200
|
+
return React__default.createElement(
|
|
8222
8201
|
'div',
|
|
8223
8202
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8224
|
-
|
|
8203
|
+
React__default.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8225
8204
|
);
|
|
8226
8205
|
};
|
|
8227
8206
|
|
|
@@ -8232,15 +8211,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8232
8211
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8233
8212
|
|
|
8234
8213
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8235
|
-
return
|
|
8214
|
+
return React__default.createElement(
|
|
8236
8215
|
'section',
|
|
8237
8216
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8238
|
-
Caption &&
|
|
8217
|
+
Caption && React__default.createElement(
|
|
8239
8218
|
'h4',
|
|
8240
8219
|
{ className: 'formstack-caption' },
|
|
8241
8220
|
Caption
|
|
8242
8221
|
),
|
|
8243
|
-
|
|
8222
|
+
React__default.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8244
8223
|
);
|
|
8245
8224
|
};
|
|
8246
8225
|
|
|
@@ -8256,36 +8235,36 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8256
8235
|
}
|
|
8257
8236
|
});
|
|
8258
8237
|
if (medias && medias.length > 0) {
|
|
8259
|
-
return
|
|
8238
|
+
return React__default.createElement(
|
|
8260
8239
|
'div',
|
|
8261
8240
|
{ className: 'multi-media-container' },
|
|
8262
|
-
|
|
8241
|
+
React__default.createElement(
|
|
8263
8242
|
Row$1,
|
|
8264
8243
|
{ noGutters: true },
|
|
8265
8244
|
medias.map(function (media) {
|
|
8266
|
-
return
|
|
8245
|
+
return React__default.createElement(
|
|
8267
8246
|
Col$1,
|
|
8268
8247
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8269
|
-
|
|
8248
|
+
React__default.createElement(
|
|
8270
8249
|
'a',
|
|
8271
|
-
_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' }, {
|
|
8272
8251
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8273
|
-
|
|
8252
|
+
React__default.createElement(
|
|
8274
8253
|
'div',
|
|
8275
8254
|
{ className: 'multi-media-image-container' },
|
|
8276
|
-
imageBox &&
|
|
8255
|
+
imageBox && React__default.createElement(
|
|
8277
8256
|
LazyLoad,
|
|
8278
8257
|
{ once: true },
|
|
8279
|
-
|
|
8258
|
+
React__default.createElement(
|
|
8280
8259
|
'picture',
|
|
8281
8260
|
null,
|
|
8282
|
-
|
|
8283
|
-
|
|
8284
|
-
|
|
8285
|
-
|
|
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 || '' })
|
|
8286
8265
|
)
|
|
8287
8266
|
),
|
|
8288
|
-
media.caption &&
|
|
8267
|
+
media.caption && React__default.createElement(
|
|
8289
8268
|
'span',
|
|
8290
8269
|
{ className: 'multi-media-caption' },
|
|
8291
8270
|
media.caption
|
|
@@ -8295,7 +8274,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8295
8274
|
);
|
|
8296
8275
|
})
|
|
8297
8276
|
),
|
|
8298
|
-
|
|
8277
|
+
React__default.createElement(
|
|
8299
8278
|
'style',
|
|
8300
8279
|
{ jsx: 'true' },
|
|
8301
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 '
|
|
@@ -8342,7 +8321,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8342
8321
|
}
|
|
8343
8322
|
};
|
|
8344
8323
|
|
|
8345
|
-
_this.wraperRef =
|
|
8324
|
+
_this.wraperRef = React__default.createRef();
|
|
8346
8325
|
_this.visible = false;
|
|
8347
8326
|
return _this;
|
|
8348
8327
|
}
|
|
@@ -8370,7 +8349,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8370
8349
|
_props$id = _props.id,
|
|
8371
8350
|
id = _props$id === undefined ? '' : _props$id;
|
|
8372
8351
|
|
|
8373
|
-
return
|
|
8352
|
+
return React__default.createElement(
|
|
8374
8353
|
'div',
|
|
8375
8354
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8376
8355
|
this.props.children
|
|
@@ -8379,7 +8358,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8379
8358
|
}]);
|
|
8380
8359
|
|
|
8381
8360
|
return InscreenSensor;
|
|
8382
|
-
}(
|
|
8361
|
+
}(React__default.Component);
|
|
8383
8362
|
|
|
8384
8363
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8385
8364
|
var nodes = _ref.nodes,
|
|
@@ -8488,33 +8467,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8488
8467
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8489
8468
|
var showReading = show ? 'showReading' : '';
|
|
8490
8469
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8491
|
-
return
|
|
8470
|
+
return React__default.createElement(
|
|
8492
8471
|
'div',
|
|
8493
8472
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8494
|
-
|
|
8473
|
+
React__default.createElement(
|
|
8495
8474
|
'a',
|
|
8496
8475
|
{ onClick: function onClick(e) {
|
|
8497
8476
|
return articleCardClickHandler(e);
|
|
8498
8477
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8499
|
-
|
|
8478
|
+
React__default.createElement(
|
|
8500
8479
|
'div',
|
|
8501
8480
|
{ className: 'prevNext-thumbnail' },
|
|
8502
|
-
|
|
8503
|
-
|
|
8481
|
+
React__default.createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
8482
|
+
React__default.createElement(
|
|
8504
8483
|
'div',
|
|
8505
8484
|
{ className: 'prevNext-reading ' + showReading },
|
|
8506
8485
|
articleLabel
|
|
8507
8486
|
)
|
|
8508
8487
|
),
|
|
8509
|
-
|
|
8488
|
+
React__default.createElement(
|
|
8510
8489
|
'div',
|
|
8511
8490
|
{ className: 'prevNext-summary' },
|
|
8512
|
-
|
|
8491
|
+
React__default.createElement(
|
|
8513
8492
|
'div',
|
|
8514
8493
|
{ className: 'prevNext-publishDate' },
|
|
8515
8494
|
moment(article.published).format('LL')
|
|
8516
8495
|
),
|
|
8517
|
-
|
|
8496
|
+
React__default.createElement(
|
|
8518
8497
|
'h2',
|
|
8519
8498
|
{ className: 'prevNext-title' },
|
|
8520
8499
|
article.title
|
|
@@ -8563,7 +8542,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8563
8542
|
|
|
8564
8543
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8565
8544
|
if (biography) {
|
|
8566
|
-
return
|
|
8545
|
+
return React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8567
8546
|
}
|
|
8568
8547
|
};
|
|
8569
8548
|
|
|
@@ -8649,7 +8628,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8649
8628
|
//console.log('useLayoutEffect')
|
|
8650
8629
|
if (!firstLoad) {
|
|
8651
8630
|
setUpArrowClicked(false);
|
|
8652
|
-
if (
|
|
8631
|
+
if (main_36) {
|
|
8653
8632
|
grabLoadedAds();
|
|
8654
8633
|
} else {
|
|
8655
8634
|
scrollToArticle();
|
|
@@ -8673,7 +8652,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8673
8652
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8674
8653
|
if (pageview) pageview(path);
|
|
8675
8654
|
|
|
8676
|
-
if (!
|
|
8655
|
+
if (!main_36) {
|
|
8677
8656
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8678
8657
|
if (window.googletag && googletag.pubadsReady) {
|
|
8679
8658
|
lib_3.refresh();
|
|
@@ -8681,7 +8660,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8681
8660
|
});
|
|
8682
8661
|
}
|
|
8683
8662
|
//Refresh leaderboard ad on mobile
|
|
8684
|
-
if (
|
|
8663
|
+
if (main_36) {
|
|
8685
8664
|
var leaderboardSlotId = '';
|
|
8686
8665
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8687
8666
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8721,38 +8700,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8721
8700
|
setSensorVisible(false);
|
|
8722
8701
|
};
|
|
8723
8702
|
|
|
8724
|
-
return
|
|
8725
|
-
|
|
8703
|
+
return React__default.createElement(
|
|
8704
|
+
React__default.Fragment,
|
|
8726
8705
|
null,
|
|
8727
|
-
|
|
8706
|
+
React__default.createElement(
|
|
8728
8707
|
'div',
|
|
8729
8708
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8730
|
-
|
|
8709
|
+
React__default.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8731
8710
|
return handleArrowClick();
|
|
8732
8711
|
} })
|
|
8733
8712
|
),
|
|
8734
|
-
|
|
8735
|
-
|
|
8713
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8714
|
+
React__default.createElement(
|
|
8736
8715
|
'div',
|
|
8737
8716
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8738
|
-
|
|
8717
|
+
React__default.createElement(
|
|
8739
8718
|
'h5',
|
|
8740
8719
|
{ className: 'objective-title' },
|
|
8741
8720
|
nodes.seriesTitle
|
|
8742
8721
|
),
|
|
8743
|
-
|
|
8722
|
+
React__default.createElement(
|
|
8744
8723
|
'div',
|
|
8745
8724
|
{ className: 'prevNextWrapper' },
|
|
8746
8725
|
PrevNextCards(false, -1)
|
|
8747
8726
|
)
|
|
8748
8727
|
),
|
|
8749
|
-
|
|
8750
|
-
|
|
8728
|
+
React__default.createElement('hr', { className: 'article-seperater' }),
|
|
8729
|
+
React__default.createElement(
|
|
8751
8730
|
'div',
|
|
8752
8731
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8753
|
-
|
|
8732
|
+
main_36 && Ads.map(function (ad, index) {
|
|
8754
8733
|
if (index === 0) {
|
|
8755
|
-
return
|
|
8734
|
+
return React__default.createElement(
|
|
8756
8735
|
'div',
|
|
8757
8736
|
{
|
|
8758
8737
|
key: 'addid-1',
|
|
@@ -8772,14 +8751,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8772
8751
|
}
|
|
8773
8752
|
})
|
|
8774
8753
|
),
|
|
8775
|
-
|
|
8754
|
+
React__default.createElement(
|
|
8776
8755
|
'div',
|
|
8777
8756
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8778
8757
|
Articles.map(function (article, index) {
|
|
8779
|
-
return
|
|
8758
|
+
return React__default.createElement(
|
|
8780
8759
|
'div',
|
|
8781
8760
|
{ key: article.title },
|
|
8782
|
-
|
|
8761
|
+
React__default.createElement(
|
|
8783
8762
|
InscreenSensor,
|
|
8784
8763
|
{
|
|
8785
8764
|
visible: sensorVisible,
|
|
@@ -8797,84 +8776,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8797
8776
|
}
|
|
8798
8777
|
}
|
|
8799
8778
|
} },
|
|
8800
|
-
|
|
8779
|
+
React__default.createElement(
|
|
8801
8780
|
Head,
|
|
8802
8781
|
null,
|
|
8803
|
-
currentTitle !== null &&
|
|
8782
|
+
currentTitle !== null && React__default.createElement(
|
|
8804
8783
|
'title',
|
|
8805
8784
|
{ key: 'title' },
|
|
8806
8785
|
currentTitle
|
|
8807
8786
|
),
|
|
8808
|
-
currentSummary !== null &&
|
|
8809
|
-
currentURL !== null &&
|
|
8810
|
-
currentTitle !== null &&
|
|
8811
|
-
currentThumbnail !== null &&
|
|
8812
|
-
currentSummary !== null &&
|
|
8813
|
-
currentTitle !== null &&
|
|
8814
|
-
currentThumbnail !== null &&
|
|
8815
|
-
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' })
|
|
8816
8795
|
),
|
|
8817
|
-
|
|
8796
|
+
React__default.createElement(
|
|
8818
8797
|
'article',
|
|
8819
8798
|
{ className: 'article-wrapper' },
|
|
8820
|
-
|
|
8799
|
+
React__default.createElement(
|
|
8821
8800
|
'div',
|
|
8822
8801
|
{ className: 'article-publishDate' },
|
|
8823
8802
|
moment(article.published).format('LL')
|
|
8824
8803
|
),
|
|
8825
|
-
|
|
8804
|
+
React__default.createElement(
|
|
8826
8805
|
'div',
|
|
8827
8806
|
{ className: 'author-details-wrapper' },
|
|
8828
8807
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8829
|
-
return
|
|
8808
|
+
return React__default.createElement(
|
|
8830
8809
|
'span',
|
|
8831
8810
|
{ key: index },
|
|
8832
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 }))
|
|
8833
8812
|
);
|
|
8834
8813
|
})
|
|
8835
8814
|
),
|
|
8836
|
-
|
|
8815
|
+
React__default.createElement(
|
|
8837
8816
|
'h2',
|
|
8838
8817
|
{ className: 'article-title' },
|
|
8839
8818
|
article.title
|
|
8840
8819
|
),
|
|
8841
|
-
|
|
8820
|
+
React__default.createElement(
|
|
8842
8821
|
'div',
|
|
8843
8822
|
{ className: 'mt-2 mb-2' },
|
|
8844
|
-
|
|
8823
|
+
React__default.createElement(BlockContent, _extends$1({
|
|
8845
8824
|
serializers: getSerializers,
|
|
8846
8825
|
videoAccountIDs: accountIDs,
|
|
8847
8826
|
blocks: article.text,
|
|
8848
8827
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8849
8828
|
}, client.config())),
|
|
8850
|
-
|
|
8829
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' })
|
|
8851
8830
|
),
|
|
8852
|
-
Articles.length > 1 &&
|
|
8853
|
-
|
|
8831
|
+
Articles.length > 1 && React__default.createElement(
|
|
8832
|
+
React__default.Fragment,
|
|
8854
8833
|
null,
|
|
8855
|
-
|
|
8834
|
+
React__default.createElement(
|
|
8856
8835
|
'div',
|
|
8857
8836
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8858
|
-
|
|
8837
|
+
React__default.createElement(
|
|
8859
8838
|
'h5',
|
|
8860
8839
|
{ className: 'objective-title' },
|
|
8861
8840
|
nodes.seriesTitle
|
|
8862
8841
|
),
|
|
8863
|
-
|
|
8842
|
+
React__default.createElement(
|
|
8864
8843
|
'div',
|
|
8865
8844
|
{ className: 'prevNextWrapper' },
|
|
8866
8845
|
PrevNextCards(true, index)
|
|
8867
8846
|
)
|
|
8868
8847
|
),
|
|
8869
|
-
|
|
8848
|
+
React__default.createElement('hr', { className: 'article-seperater' })
|
|
8870
8849
|
)
|
|
8871
8850
|
),
|
|
8872
|
-
|
|
8851
|
+
React__default.createElement(
|
|
8873
8852
|
'div',
|
|
8874
8853
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8875
|
-
|
|
8854
|
+
main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8876
8855
|
if (innerIndex === 0) {
|
|
8877
|
-
return
|
|
8856
|
+
return React__default.createElement(
|
|
8878
8857
|
'div',
|
|
8879
8858
|
{
|
|
8880
8859
|
key: 'addid-' + (index + 2),
|
|
@@ -8897,7 +8876,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8897
8876
|
)
|
|
8898
8877
|
);
|
|
8899
8878
|
}),
|
|
8900
|
-
|
|
8879
|
+
React__default.createElement(
|
|
8901
8880
|
'style',
|
|
8902
8881
|
{ jsx: 'true' },
|
|
8903
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 '
|
|
@@ -8927,11 +8906,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8927
8906
|
};
|
|
8928
8907
|
}, [handleClickOutside]);
|
|
8929
8908
|
|
|
8930
|
-
return
|
|
8909
|
+
return React__default.createElement(
|
|
8931
8910
|
'div',
|
|
8932
8911
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8933
|
-
|
|
8934
|
-
|
|
8912
|
+
React__default.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8913
|
+
React__default.createElement(
|
|
8935
8914
|
'style',
|
|
8936
8915
|
{ jsx: 'true' },
|
|
8937
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 '
|
|
@@ -8945,7 +8924,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8945
8924
|
}
|
|
8946
8925
|
};
|
|
8947
8926
|
|
|
8948
|
-
var FigureImage =
|
|
8927
|
+
var FigureImage = React__default.memo(function (_ref2) {
|
|
8949
8928
|
var node = _ref2.node,
|
|
8950
8929
|
client = _ref2.client,
|
|
8951
8930
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8953,13 +8932,13 @@ var FigureImage = React.memo(function (_ref2) {
|
|
|
8953
8932
|
handleClickFigure = _ref2.handleClickFigure;
|
|
8954
8933
|
|
|
8955
8934
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
8956
|
-
return
|
|
8935
|
+
return React__default.createElement(
|
|
8957
8936
|
'picture',
|
|
8958
8937
|
null,
|
|
8959
|
-
|
|
8960
|
-
|
|
8961
|
-
|
|
8962
|
-
|
|
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({
|
|
8963
8942
|
style: figureImageStyle,
|
|
8964
8943
|
className: 'figure-image',
|
|
8965
8944
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9010,30 +8989,30 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9010
8989
|
|
|
9011
8990
|
var renderTooltip = function renderTooltip(props) {
|
|
9012
8991
|
if (infoBox[0].title) {
|
|
9013
|
-
return
|
|
9014
|
-
Popover,
|
|
8992
|
+
return React__default.createElement(
|
|
8993
|
+
Popover$1,
|
|
9015
8994
|
{ id: 'popover-basic-' + infoBox[0].title },
|
|
9016
|
-
|
|
9017
|
-
Popover.Title,
|
|
8995
|
+
React__default.createElement(
|
|
8996
|
+
Popover$1.Title,
|
|
9018
8997
|
{ as: 'h3' },
|
|
9019
8998
|
infoBox[0].title
|
|
9020
8999
|
),
|
|
9021
|
-
|
|
9022
|
-
Popover.Content,
|
|
9000
|
+
React__default.createElement(
|
|
9001
|
+
Popover$1.Content,
|
|
9023
9002
|
null,
|
|
9024
|
-
|
|
9003
|
+
React__default.createElement(BlockContent, { blocks: infoBox[0].infoText, serializers: getSerializers })
|
|
9025
9004
|
)
|
|
9026
9005
|
);
|
|
9027
9006
|
} else {
|
|
9028
|
-
return
|
|
9029
|
-
Tooltip,
|
|
9030
|
-
_extends({ id: 'button-tooltip' }, props),
|
|
9031
|
-
|
|
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 })
|
|
9032
9011
|
);
|
|
9033
9012
|
}
|
|
9034
9013
|
};
|
|
9035
9014
|
|
|
9036
|
-
var FigureImageWOverLay =
|
|
9015
|
+
var FigureImageWOverLay = React__default.memo(function (_ref3) {
|
|
9037
9016
|
var node = _ref3.node,
|
|
9038
9017
|
client = _ref3.client,
|
|
9039
9018
|
imgAlt = _ref3.imgAlt,
|
|
@@ -9041,32 +9020,32 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9041
9020
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9042
9021
|
|
|
9043
9022
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
9044
|
-
var triggerAction =
|
|
9045
|
-
var placementLocation =
|
|
9046
|
-
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(
|
|
9047
9026
|
'picture',
|
|
9048
9027
|
null,
|
|
9049
|
-
|
|
9050
|
-
|
|
9051
|
-
|
|
9052
|
-
|
|
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({
|
|
9053
9032
|
style: figureImageStyle,
|
|
9054
9033
|
className: 'figure-image',
|
|
9055
9034
|
src: urlFor({ source: node, client: client }),
|
|
9056
9035
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9057
|
-
}, !link && !
|
|
9036
|
+
}, !link && !main_35 && {
|
|
9058
9037
|
onClick: function onClick() {
|
|
9059
9038
|
return handleClickFigure(node, client);
|
|
9060
9039
|
}
|
|
9061
|
-
})) :
|
|
9040
|
+
})) : React__default.createElement(
|
|
9062
9041
|
OverlayTrigger,
|
|
9063
9042
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip() },
|
|
9064
|
-
|
|
9043
|
+
React__default.createElement('img', _extends$1({
|
|
9065
9044
|
style: figureImageStyle,
|
|
9066
9045
|
className: 'figure-image',
|
|
9067
9046
|
src: urlFor({ source: node, client: client }),
|
|
9068
9047
|
alt: imgAlt ? imgAlt : 'figure image'
|
|
9069
|
-
}, !link && !
|
|
9048
|
+
}, !link && !main_35 && {
|
|
9070
9049
|
onClick: function onClick() {
|
|
9071
9050
|
return handleClickFigure(node, client);
|
|
9072
9051
|
}
|
|
@@ -9115,13 +9094,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9115
9094
|
|
|
9116
9095
|
var FigureCaption = useCallback(function () {
|
|
9117
9096
|
if (imgcaption && imgcaption.length > 0) {
|
|
9118
|
-
return
|
|
9097
|
+
return React__default.createElement(
|
|
9119
9098
|
'div',
|
|
9120
9099
|
{ className: 'figure-caption' },
|
|
9121
|
-
|
|
9100
|
+
React__default.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9122
9101
|
);
|
|
9123
9102
|
} else if (caption) {
|
|
9124
|
-
return
|
|
9103
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9125
9104
|
} else return null;
|
|
9126
9105
|
}, [caption, imgcaption]);
|
|
9127
9106
|
|
|
@@ -9138,24 +9117,24 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9138
9117
|
setShowLightbox(true);
|
|
9139
9118
|
}, [node, client]);
|
|
9140
9119
|
|
|
9141
|
-
return
|
|
9142
|
-
|
|
9120
|
+
return React__default.createElement(
|
|
9121
|
+
React__default.Fragment,
|
|
9143
9122
|
null,
|
|
9144
|
-
infoBox.length >= 1 ?
|
|
9145
|
-
Figure$
|
|
9123
|
+
infoBox.length >= 1 ? React__default.createElement(
|
|
9124
|
+
Figure$1$1,
|
|
9146
9125
|
{ className: '' + class_name, style: figureStyle },
|
|
9147
|
-
link ?
|
|
9126
|
+
link ? React__default.createElement(
|
|
9148
9127
|
'a',
|
|
9149
9128
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9150
|
-
|
|
9151
|
-
|
|
9152
|
-
) :
|
|
9153
|
-
|
|
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,
|
|
9154
9133
|
null,
|
|
9155
|
-
|
|
9156
|
-
|
|
9134
|
+
React__default.createElement(FigureImageWOverLay, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9135
|
+
React__default.createElement(FigureCaption, null)
|
|
9157
9136
|
),
|
|
9158
|
-
|
|
9137
|
+
React__default.createElement(LightBox, {
|
|
9159
9138
|
showLightbox: showLightbox,
|
|
9160
9139
|
lightboxImgSrc: lightboxImgSrc,
|
|
9161
9140
|
closeLightbox: function closeLightbox() {
|
|
@@ -9163,21 +9142,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9163
9142
|
setShowLightbox(false);
|
|
9164
9143
|
}
|
|
9165
9144
|
})
|
|
9166
|
-
) :
|
|
9167
|
-
Figure$
|
|
9145
|
+
) : React__default.createElement(
|
|
9146
|
+
Figure$1$1,
|
|
9168
9147
|
{ className: '' + class_name, style: figureStyle },
|
|
9169
|
-
link ?
|
|
9148
|
+
link ? React__default.createElement(
|
|
9170
9149
|
'a',
|
|
9171
9150
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9172
|
-
|
|
9173
|
-
|
|
9174
|
-
) :
|
|
9175
|
-
|
|
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,
|
|
9176
9155
|
null,
|
|
9177
|
-
|
|
9178
|
-
|
|
9156
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9157
|
+
React__default.createElement(FigureCaption, null)
|
|
9179
9158
|
),
|
|
9180
|
-
|
|
9159
|
+
React__default.createElement(LightBox, {
|
|
9181
9160
|
showLightbox: showLightbox,
|
|
9182
9161
|
lightboxImgSrc: lightboxImgSrc,
|
|
9183
9162
|
closeLightbox: function closeLightbox() {
|
|
@@ -9186,7 +9165,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9186
9165
|
}
|
|
9187
9166
|
})
|
|
9188
9167
|
),
|
|
9189
|
-
|
|
9168
|
+
React__default.createElement(
|
|
9190
9169
|
'style',
|
|
9191
9170
|
{ jsx: 'true' },
|
|
9192
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 '
|
|
@@ -9194,7 +9173,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9194
9173
|
);
|
|
9195
9174
|
};
|
|
9196
9175
|
|
|
9197
|
-
var Figure =
|
|
9176
|
+
var Figure = React__default.memo(FigureComponent, compareProps);
|
|
9198
9177
|
|
|
9199
9178
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
9200
9179
|
useEffect(function () {
|
|
@@ -9211,7 +9190,7 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9211
9190
|
}, [ref]);
|
|
9212
9191
|
}
|
|
9213
9192
|
|
|
9214
|
-
var FigureImage$1 =
|
|
9193
|
+
var FigureImage$1 = React__default.memo(function (_ref) {
|
|
9215
9194
|
var imagesCount = _ref.imagesCount,
|
|
9216
9195
|
image = _ref.image,
|
|
9217
9196
|
client = _ref.client,
|
|
@@ -9219,13 +9198,13 @@ var FigureImage$1 = React.memo(function (_ref) {
|
|
|
9219
9198
|
link = _ref.link,
|
|
9220
9199
|
handleClickFigure = _ref.handleClickFigure;
|
|
9221
9200
|
|
|
9222
|
-
return
|
|
9201
|
+
return React__default.createElement(
|
|
9223
9202
|
'picture',
|
|
9224
9203
|
null,
|
|
9225
|
-
|
|
9226
|
-
|
|
9227
|
-
|
|
9228
|
-
|
|
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({
|
|
9229
9208
|
'images-count': imagesCount,
|
|
9230
9209
|
className: 'multi-figure-image',
|
|
9231
9210
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9262,13 +9241,13 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9262
9241
|
imgcaption = _ref2.imgcaption;
|
|
9263
9242
|
|
|
9264
9243
|
if (imgcaption && imgcaption.length > 0) {
|
|
9265
|
-
return
|
|
9244
|
+
return React__default.createElement(
|
|
9266
9245
|
'div',
|
|
9267
9246
|
{ className: 'multi-figure-caption' },
|
|
9268
|
-
|
|
9247
|
+
React__default.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9269
9248
|
);
|
|
9270
9249
|
} else if (caption) {
|
|
9271
|
-
return
|
|
9250
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9272
9251
|
} else return null;
|
|
9273
9252
|
};
|
|
9274
9253
|
|
|
@@ -9277,7 +9256,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9277
9256
|
setOpenImg(true);
|
|
9278
9257
|
}, [client]);
|
|
9279
9258
|
|
|
9280
|
-
var FigureImageWOverLay =
|
|
9259
|
+
var FigureImageWOverLay = React__default.memo(function (_ref3) {
|
|
9281
9260
|
var imagesCount = _ref3.imagesCount,
|
|
9282
9261
|
image = _ref3.image,
|
|
9283
9262
|
client = _ref3.client,
|
|
@@ -9285,32 +9264,32 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9285
9264
|
link = _ref3.link,
|
|
9286
9265
|
handleClickFigure = _ref3.handleClickFigure;
|
|
9287
9266
|
|
|
9288
|
-
var triggerAction =
|
|
9289
|
-
var placementLocation =
|
|
9290
|
-
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(
|
|
9291
9270
|
'picture',
|
|
9292
9271
|
null,
|
|
9293
|
-
|
|
9294
|
-
|
|
9295
|
-
|
|
9296
|
-
|
|
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({
|
|
9297
9276
|
'images-count': imagesCount,
|
|
9298
9277
|
className: 'multi-figure-image',
|
|
9299
9278
|
src: urlFor({ source: image, client: client }),
|
|
9300
9279
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9301
|
-
}, !link && !
|
|
9280
|
+
}, !link && !main_35 && {
|
|
9302
9281
|
onClick: function onClick() {
|
|
9303
9282
|
return handleClickFigure(image, client);
|
|
9304
9283
|
}
|
|
9305
|
-
})) :
|
|
9284
|
+
})) : React__default.createElement(
|
|
9306
9285
|
OverlayTrigger,
|
|
9307
9286
|
{ trigger: triggerAction, placement: placementLocation, delay: { show: 250, hide: 400 }, overlay: renderTooltip(image) },
|
|
9308
|
-
|
|
9287
|
+
React__default.createElement('img', _extends$1({
|
|
9309
9288
|
'images-count': imagesCount,
|
|
9310
9289
|
className: 'multi-figure-image',
|
|
9311
9290
|
src: urlFor({ source: image, client: client }),
|
|
9312
9291
|
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9313
|
-
}, !link && !
|
|
9292
|
+
}, !link && !main_35 && {
|
|
9314
9293
|
onClick: function onClick() {
|
|
9315
9294
|
return handleClickFigure(image, client);
|
|
9316
9295
|
}
|
|
@@ -9321,102 +9300,102 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9321
9300
|
|
|
9322
9301
|
var renderTooltip = function renderTooltip(image) {
|
|
9323
9302
|
if (image.infoBox[0].title) {
|
|
9324
|
-
return
|
|
9325
|
-
Popover,
|
|
9303
|
+
return React__default.createElement(
|
|
9304
|
+
Popover$1,
|
|
9326
9305
|
{ id: 'popover-basic-' + image.infoBox[0].title },
|
|
9327
|
-
|
|
9328
|
-
Popover.Title,
|
|
9306
|
+
React__default.createElement(
|
|
9307
|
+
Popover$1.Title,
|
|
9329
9308
|
{ as: 'h3' },
|
|
9330
9309
|
image.infoBox[0].title
|
|
9331
9310
|
),
|
|
9332
|
-
|
|
9333
|
-
Popover.Content,
|
|
9311
|
+
React__default.createElement(
|
|
9312
|
+
Popover$1.Content,
|
|
9334
9313
|
null,
|
|
9335
|
-
|
|
9314
|
+
React__default.createElement(BlockContent, { blocks: image.infoBox[0].infoText, serializers: getSerializers })
|
|
9336
9315
|
)
|
|
9337
9316
|
);
|
|
9338
9317
|
} else {
|
|
9339
|
-
return
|
|
9340
|
-
Tooltip,
|
|
9341
|
-
_extends({ id: 'button-tooltip' }, props),
|
|
9342
|
-
|
|
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 })
|
|
9343
9322
|
);
|
|
9344
9323
|
}
|
|
9345
9324
|
};
|
|
9346
9325
|
|
|
9347
9326
|
if (images && images.length > 0) {
|
|
9348
|
-
return
|
|
9327
|
+
return React__default.createElement(
|
|
9349
9328
|
'div',
|
|
9350
9329
|
{ className: 'multi-figure-container' },
|
|
9351
|
-
|
|
9330
|
+
React__default.createElement(
|
|
9352
9331
|
Row$1,
|
|
9353
9332
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9354
9333
|
images.map(function (image, index) {
|
|
9355
9334
|
if (image.infoBox) {
|
|
9356
|
-
return
|
|
9335
|
+
return React__default.createElement(
|
|
9357
9336
|
Col$1,
|
|
9358
9337
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9359
|
-
image.link ?
|
|
9338
|
+
image.link ? React__default.createElement(
|
|
9360
9339
|
'a',
|
|
9361
|
-
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9362
|
-
|
|
9340
|
+
_extends$1({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9341
|
+
React__default.createElement(
|
|
9363
9342
|
'div',
|
|
9364
9343
|
{ className: 'multi-figure-image-container' },
|
|
9365
|
-
|
|
9344
|
+
React__default.createElement(
|
|
9366
9345
|
LazyLoad,
|
|
9367
9346
|
{ once: true },
|
|
9368
|
-
|
|
9347
|
+
React__default.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9369
9348
|
),
|
|
9370
|
-
|
|
9349
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9371
9350
|
)
|
|
9372
|
-
) :
|
|
9351
|
+
) : React__default.createElement(
|
|
9373
9352
|
'div',
|
|
9374
9353
|
{ className: 'multi-figure-image-container' },
|
|
9375
|
-
|
|
9354
|
+
React__default.createElement(
|
|
9376
9355
|
LazyLoad,
|
|
9377
9356
|
{ once: true },
|
|
9378
|
-
|
|
9357
|
+
React__default.createElement(FigureImageWOverLay, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9379
9358
|
),
|
|
9380
|
-
|
|
9359
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9381
9360
|
)
|
|
9382
9361
|
);
|
|
9383
9362
|
} else {
|
|
9384
|
-
return
|
|
9363
|
+
return React__default.createElement(
|
|
9385
9364
|
Col$1,
|
|
9386
9365
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9387
|
-
image.link ?
|
|
9366
|
+
image.link ? React__default.createElement(
|
|
9388
9367
|
'a',
|
|
9389
|
-
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9390
|
-
|
|
9368
|
+
_extends$1({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9369
|
+
React__default.createElement(
|
|
9391
9370
|
'div',
|
|
9392
9371
|
{ className: 'multi-figure-image-container' },
|
|
9393
|
-
|
|
9372
|
+
React__default.createElement(
|
|
9394
9373
|
LazyLoad,
|
|
9395
9374
|
{ once: true },
|
|
9396
|
-
|
|
9375
|
+
React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9397
9376
|
),
|
|
9398
|
-
|
|
9377
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9399
9378
|
)
|
|
9400
|
-
) :
|
|
9379
|
+
) : React__default.createElement(
|
|
9401
9380
|
'div',
|
|
9402
9381
|
{ className: 'multi-figure-image-container' },
|
|
9403
|
-
|
|
9382
|
+
React__default.createElement(
|
|
9404
9383
|
LazyLoad,
|
|
9405
9384
|
{ once: true },
|
|
9406
|
-
|
|
9385
|
+
React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9407
9386
|
),
|
|
9408
|
-
|
|
9387
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9409
9388
|
)
|
|
9410
9389
|
);
|
|
9411
9390
|
}
|
|
9412
9391
|
})
|
|
9413
9392
|
),
|
|
9414
|
-
|
|
9393
|
+
React__default.createElement(
|
|
9415
9394
|
'div',
|
|
9416
9395
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9417
|
-
|
|
9396
|
+
React__default.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9418
9397
|
),
|
|
9419
|
-
|
|
9398
|
+
React__default.createElement(
|
|
9420
9399
|
'style',
|
|
9421
9400
|
{ jsx: 'true' },
|
|
9422
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 '
|
|
@@ -9465,23 +9444,23 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9465
9444
|
if (hambergerNav) setOffsetHeight(hambergerNav.offsetHeight);else if (header) setOffsetHeight(header.offsetHeight);
|
|
9466
9445
|
}, []);
|
|
9467
9446
|
|
|
9468
|
-
return
|
|
9469
|
-
|
|
9447
|
+
return React__default.createElement(
|
|
9448
|
+
React__default.Fragment,
|
|
9470
9449
|
null,
|
|
9471
|
-
|
|
9450
|
+
React__default.createElement(
|
|
9472
9451
|
Head,
|
|
9473
9452
|
null,
|
|
9474
|
-
|
|
9453
|
+
React__default.createElement('script', {
|
|
9475
9454
|
dangerouslySetInnerHTML: {
|
|
9476
9455
|
__html: 'history.scrollRestoration = "manual"'
|
|
9477
9456
|
}
|
|
9478
9457
|
})
|
|
9479
9458
|
),
|
|
9480
|
-
|
|
9459
|
+
React__default.createElement(
|
|
9481
9460
|
'div',
|
|
9482
9461
|
{ id: elementId },
|
|
9483
|
-
|
|
9484
|
-
|
|
9462
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers }),
|
|
9463
|
+
React__default.createElement(
|
|
9485
9464
|
'style',
|
|
9486
9465
|
{ jsx: 'true' },
|
|
9487
9466
|
'\n #' + elementId + '::before {\n display: block;\n content: \' \';\n margin-top: -' + (offsetHeight + offsetHeightBuffer) + 'px;\n height: ' + (offsetHeight + offsetHeightBuffer) + 'px;\n visibility: hidden;\n pointer-events: none;\n }\n '
|
|
@@ -9515,7 +9494,7 @@ exports.__esModule = true;
|
|
|
9515
9494
|
|
|
9516
9495
|
|
|
9517
9496
|
|
|
9518
|
-
var _extends3 = _interopRequireDefault(_extends$
|
|
9497
|
+
var _extends3 = _interopRequireDefault(_extends$2);
|
|
9519
9498
|
|
|
9520
9499
|
|
|
9521
9500
|
|
|
@@ -9535,7 +9514,7 @@ var _inherits3 = _interopRequireDefault(inherits);
|
|
|
9535
9514
|
|
|
9536
9515
|
|
|
9537
9516
|
|
|
9538
|
-
var _react2 = _interopRequireDefault(
|
|
9517
|
+
var _react2 = _interopRequireDefault(React__default);
|
|
9539
9518
|
|
|
9540
9519
|
|
|
9541
9520
|
|
|
@@ -9694,7 +9673,7 @@ var ScriptTag = function (_Component) {
|
|
|
9694
9673
|
};
|
|
9695
9674
|
|
|
9696
9675
|
return ScriptTag;
|
|
9697
|
-
}(
|
|
9676
|
+
}(React__default.Component);
|
|
9698
9677
|
|
|
9699
9678
|
ScriptTag.propTypes = {
|
|
9700
9679
|
/**
|
|
@@ -9773,11 +9752,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9773
9752
|
}, []);
|
|
9774
9753
|
|
|
9775
9754
|
if (iframeSrc) {
|
|
9776
|
-
return
|
|
9755
|
+
return React__default.createElement(
|
|
9777
9756
|
'section',
|
|
9778
9757
|
{ className: 'form-assembly' },
|
|
9779
|
-
|
|
9780
|
-
|
|
9758
|
+
React__default.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9759
|
+
React__default.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9781
9760
|
);
|
|
9782
9761
|
}
|
|
9783
9762
|
|
|
@@ -9814,27 +9793,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9814
9793
|
return window.removeEventListener('resize', handleResize);
|
|
9815
9794
|
};
|
|
9816
9795
|
}, []);
|
|
9817
|
-
return
|
|
9796
|
+
return React__default.createElement(
|
|
9818
9797
|
'div',
|
|
9819
9798
|
{ className: 'blockTableHolder', ref: holder },
|
|
9820
|
-
|
|
9799
|
+
React__default.createElement(
|
|
9821
9800
|
'div',
|
|
9822
9801
|
{ className: 'blockTable' },
|
|
9823
9802
|
rows && rows.map(function (row) {
|
|
9824
|
-
return
|
|
9803
|
+
return React__default.createElement(
|
|
9825
9804
|
'div',
|
|
9826
9805
|
{ className: 'blockTableRow' },
|
|
9827
9806
|
row.cells && row.cells.map(function (cell) {
|
|
9828
|
-
return
|
|
9807
|
+
return React__default.createElement(
|
|
9829
9808
|
'div',
|
|
9830
9809
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9831
|
-
|
|
9810
|
+
React__default.createElement(BlockContent, _extends$1({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9832
9811
|
);
|
|
9833
9812
|
})
|
|
9834
9813
|
);
|
|
9835
9814
|
})
|
|
9836
9815
|
),
|
|
9837
|
-
|
|
9816
|
+
React__default.createElement(
|
|
9838
9817
|
'style',
|
|
9839
9818
|
{ jsx: true },
|
|
9840
9819
|
'\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 '
|
|
@@ -9913,12 +9892,12 @@ var getSerializers = function getSerializers() {
|
|
|
9913
9892
|
var node = _ref.node;
|
|
9914
9893
|
var url = node.url;
|
|
9915
9894
|
|
|
9916
|
-
return
|
|
9895
|
+
return React__default.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9917
9896
|
},
|
|
9918
9897
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9919
9898
|
var node = _ref2.node;
|
|
9920
9899
|
|
|
9921
|
-
return
|
|
9900
|
+
return React__default.createElement(YouTubeGallery, {
|
|
9922
9901
|
nodes: node,
|
|
9923
9902
|
article: article,
|
|
9924
9903
|
meta: meta,
|
|
@@ -9932,7 +9911,7 @@ var getSerializers = function getSerializers() {
|
|
|
9932
9911
|
articleSeries: function articleSeries(_ref3) {
|
|
9933
9912
|
var node = _ref3.node;
|
|
9934
9913
|
|
|
9935
|
-
return
|
|
9914
|
+
return React__default.createElement(ArticleSeries, {
|
|
9936
9915
|
nodes: node,
|
|
9937
9916
|
accountIDs: videoAccountIDs || {},
|
|
9938
9917
|
pageview: pageview,
|
|
@@ -9945,61 +9924,61 @@ var getSerializers = function getSerializers() {
|
|
|
9945
9924
|
figure: function figure(_ref4) {
|
|
9946
9925
|
var node = _ref4.node;
|
|
9947
9926
|
|
|
9948
|
-
return
|
|
9927
|
+
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9949
9928
|
},
|
|
9950
9929
|
multifigure: function multifigure(_ref5) {
|
|
9951
9930
|
var node = _ref5.node;
|
|
9952
9931
|
|
|
9953
|
-
return
|
|
9932
|
+
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9954
9933
|
},
|
|
9955
9934
|
slideshow: function slideshow(_ref6) {
|
|
9956
9935
|
var node = _ref6.node;
|
|
9957
9936
|
var slides = node.slides;
|
|
9958
9937
|
|
|
9959
|
-
return
|
|
9938
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9960
9939
|
},
|
|
9961
9940
|
sidebar: function sidebar(_ref7) {
|
|
9962
9941
|
var node = _ref7.node;
|
|
9963
9942
|
var caption = node.caption,
|
|
9964
9943
|
content = node.content;
|
|
9965
9944
|
|
|
9966
|
-
return
|
|
9945
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9967
9946
|
},
|
|
9968
9947
|
datatable: function datatable(_ref8) {
|
|
9969
9948
|
var node = _ref8.node;
|
|
9970
9949
|
var table = node.table;
|
|
9971
9950
|
|
|
9972
|
-
return
|
|
9951
|
+
return React__default.createElement(TableShow, { rows: table.rows });
|
|
9973
9952
|
},
|
|
9974
9953
|
media: function media(_ref9) {
|
|
9975
9954
|
var node = _ref9.node;
|
|
9976
9955
|
|
|
9977
|
-
return
|
|
9956
|
+
return React__default.createElement(Media, { node: node, client: client });
|
|
9978
9957
|
},
|
|
9979
9958
|
iframe: function iframe(_ref10) {
|
|
9980
9959
|
var node = _ref10.node;
|
|
9981
9960
|
|
|
9982
|
-
return
|
|
9961
|
+
return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9983
9962
|
},
|
|
9984
9963
|
video: function video(_ref11) {
|
|
9985
9964
|
var node = _ref11.node;
|
|
9986
9965
|
|
|
9987
|
-
return
|
|
9966
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9988
9967
|
},
|
|
9989
9968
|
audio: function audio(_ref12) {
|
|
9990
9969
|
var node = _ref12.node;
|
|
9991
9970
|
|
|
9992
|
-
return
|
|
9971
|
+
return React__default.createElement(Audio, { node: node });
|
|
9993
9972
|
},
|
|
9994
9973
|
poll: function poll(_ref13) {
|
|
9995
9974
|
var node = _ref13.node;
|
|
9996
9975
|
|
|
9997
|
-
return
|
|
9976
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9998
9977
|
},
|
|
9999
9978
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
10000
9979
|
var node = _ref14.node;
|
|
10001
9980
|
|
|
10002
|
-
return
|
|
9981
|
+
return React__default.createElement(Poll$1, {
|
|
10003
9982
|
node: node,
|
|
10004
9983
|
client: client,
|
|
10005
9984
|
pageview: pageview,
|
|
@@ -10013,35 +9992,35 @@ var getSerializers = function getSerializers() {
|
|
|
10013
9992
|
var node = _ref15.node;
|
|
10014
9993
|
var quizzes = node.quizzes;
|
|
10015
9994
|
|
|
10016
|
-
return
|
|
9995
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
10017
9996
|
},
|
|
10018
9997
|
leads: function leads(_ref16) {
|
|
10019
9998
|
var node = _ref16.node;
|
|
10020
9999
|
var leadID = node.leadID;
|
|
10021
10000
|
|
|
10022
10001
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
10023
|
-
return
|
|
10002
|
+
return React__default.createElement(Leads, { url: url });
|
|
10024
10003
|
},
|
|
10025
10004
|
slideshows: function slideshows(_ref17) {
|
|
10026
10005
|
var node = _ref17.node;
|
|
10027
10006
|
|
|
10028
|
-
return
|
|
10007
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
10029
10008
|
},
|
|
10030
10009
|
nativeAd: function nativeAd(_ref18) {
|
|
10031
10010
|
var node = _ref18.node;
|
|
10032
10011
|
|
|
10033
|
-
return
|
|
10012
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
10034
10013
|
},
|
|
10035
10014
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
10036
10015
|
var node = _ref19.node;
|
|
10037
10016
|
|
|
10038
|
-
return
|
|
10017
|
+
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
10039
10018
|
},
|
|
10040
10019
|
hrtag: function hrtag() {
|
|
10041
|
-
return
|
|
10020
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
10042
10021
|
},
|
|
10043
10022
|
brtag: function brtag() {
|
|
10044
|
-
return
|
|
10023
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
10045
10024
|
},
|
|
10046
10025
|
formstack: function formstack(_ref20) {
|
|
10047
10026
|
var node = _ref20.node;
|
|
@@ -10049,29 +10028,29 @@ var getSerializers = function getSerializers() {
|
|
|
10049
10028
|
Caption = node.Caption,
|
|
10050
10029
|
needSegmentSupport = node.needSegmentSupport;
|
|
10051
10030
|
|
|
10052
|
-
return
|
|
10031
|
+
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
10053
10032
|
},
|
|
10054
10033
|
formassembly: FormAssembly,
|
|
10055
10034
|
multimedia: function multimedia(_ref21) {
|
|
10056
10035
|
var node = _ref21.node;
|
|
10057
10036
|
|
|
10058
|
-
return
|
|
10037
|
+
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
10059
10038
|
},
|
|
10060
10039
|
blockTable: function blockTable(_ref22) {
|
|
10061
10040
|
var node = _ref22.node;
|
|
10062
|
-
return
|
|
10041
|
+
return React__default.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
10063
10042
|
}
|
|
10064
10043
|
},
|
|
10065
10044
|
marks: {
|
|
10066
10045
|
superscript: function superscript(props) {
|
|
10067
|
-
return
|
|
10046
|
+
return React__default.createElement(
|
|
10068
10047
|
'sup',
|
|
10069
10048
|
null,
|
|
10070
10049
|
props.children
|
|
10071
10050
|
);
|
|
10072
10051
|
},
|
|
10073
10052
|
subscript: function subscript(props) {
|
|
10074
|
-
return
|
|
10053
|
+
return React__default.createElement(
|
|
10075
10054
|
'sub',
|
|
10076
10055
|
null,
|
|
10077
10056
|
props.children
|
|
@@ -10088,7 +10067,7 @@ var getSerializers = function getSerializers() {
|
|
|
10088
10067
|
if (href && href.charAt(0) === '#') {
|
|
10089
10068
|
var elementId = href.slice(1);
|
|
10090
10069
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
10091
|
-
return
|
|
10070
|
+
return React__default.createElement(
|
|
10092
10071
|
'a',
|
|
10093
10072
|
{ onClick: function onClick() {
|
|
10094
10073
|
return ScrollToElement(elementId);
|
|
@@ -10098,15 +10077,15 @@ var getSerializers = function getSerializers() {
|
|
|
10098
10077
|
}
|
|
10099
10078
|
|
|
10100
10079
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
10101
|
-
return href ?
|
|
10080
|
+
return href ? React__default.createElement(
|
|
10102
10081
|
'a',
|
|
10103
|
-
_extends({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10082
|
+
_extends$1({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
|
|
10104
10083
|
children
|
|
10105
10084
|
) : children;
|
|
10106
10085
|
},
|
|
10107
10086
|
alignleft: function alignleft(_ref23) {
|
|
10108
10087
|
var children = _ref23.children;
|
|
10109
|
-
return
|
|
10088
|
+
return React__default.createElement(
|
|
10110
10089
|
'div',
|
|
10111
10090
|
{ style: { textAlign: 'left' } },
|
|
10112
10091
|
children
|
|
@@ -10114,7 +10093,7 @@ var getSerializers = function getSerializers() {
|
|
|
10114
10093
|
},
|
|
10115
10094
|
alignright: function alignright(_ref24) {
|
|
10116
10095
|
var children = _ref24.children;
|
|
10117
|
-
return
|
|
10096
|
+
return React__default.createElement(
|
|
10118
10097
|
'div',
|
|
10119
10098
|
{ style: { textAlign: 'right' } },
|
|
10120
10099
|
children
|
|
@@ -10122,7 +10101,7 @@ var getSerializers = function getSerializers() {
|
|
|
10122
10101
|
},
|
|
10123
10102
|
aligncenter: function aligncenter(_ref25) {
|
|
10124
10103
|
var children = _ref25.children;
|
|
10125
|
-
return
|
|
10104
|
+
return React__default.createElement(
|
|
10126
10105
|
'div',
|
|
10127
10106
|
{ style: { textAlign: 'center' } },
|
|
10128
10107
|
children
|
|
@@ -10130,7 +10109,7 @@ var getSerializers = function getSerializers() {
|
|
|
10130
10109
|
},
|
|
10131
10110
|
alignjustify: function alignjustify(_ref26) {
|
|
10132
10111
|
var children = _ref26.children;
|
|
10133
|
-
return
|
|
10112
|
+
return React__default.createElement(
|
|
10134
10113
|
'div',
|
|
10135
10114
|
{ style: { textAlign: 'justify' } },
|
|
10136
10115
|
children
|
|
@@ -10140,7 +10119,7 @@ var getSerializers = function getSerializers() {
|
|
|
10140
10119
|
var children = props.children,
|
|
10141
10120
|
color = props.mark.color;
|
|
10142
10121
|
|
|
10143
|
-
return
|
|
10122
|
+
return React__default.createElement(
|
|
10144
10123
|
'span',
|
|
10145
10124
|
{ style: { color: color ? color.hex : null } },
|
|
10146
10125
|
children
|