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