@mjhls/mjh-framework 1.0.858 → 1.0.859-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +11 -11
- package/dist/cjs/AD300x250x600.js +11 -11
- package/dist/cjs/AD728x90.js +12 -12
- package/dist/cjs/ADFloatingFooter.js +13 -13
- package/dist/cjs/ADFooter.js +8 -9
- package/dist/cjs/ADGutter.js +13 -13
- package/dist/cjs/{ADInfeed-ff26342c.js → ADInfeed-98c71bcd.js} +9 -11
- package/dist/cjs/ADSkyscraper.js +13 -13
- package/dist/cjs/ADSponsoredResources.js +13 -13
- package/dist/cjs/ADWebcast.js +13 -13
- package/dist/cjs/ADWelcome.js +17 -17
- package/dist/cjs/{ADlgInfeed-ad4953d4.js → ADlgInfeed-9de32585.js} +6 -7
- package/dist/cjs/AccordionPanel.js +22 -24
- package/dist/cjs/AdSlot.js +15 -15
- package/dist/cjs/AdSlotsProvider.js +903 -11
- package/dist/cjs/AlgoliaSearch.js +14012 -49
- package/dist/cjs/AlphabeticList.js +16 -17
- package/dist/cjs/ArticleCarousel.js +11 -12
- package/dist/cjs/ArticleProgramLandingPage.js +24 -25
- package/dist/cjs/ArticleSeriesLandingPage.js +21 -21
- package/dist/cjs/ArticleSeriesListing.js +41 -41
- package/dist/cjs/Auth.js +1197 -237
- package/dist/cjs/AuthWrapper.js +561 -26
- 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 +65 -64
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +19 -22
- package/dist/cjs/Column3.js +34 -36
- package/dist/cjs/ConferenceArticleCard.js +32 -33
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +82 -85
- package/dist/cjs/DeckQueue.js +70 -73
- package/dist/cjs/{Dfp-0bf098b5.js → Dfp-26baccf1.js} +23 -23
- package/dist/cjs/EventsDeck.js +134 -141
- package/dist/cjs/ExternalResources.js +48 -49
- package/dist/cjs/Feature.js +23 -25
- package/dist/cjs/ForbesHero.js +34 -35
- package/dist/cjs/GridContent.js +205 -209
- package/dist/cjs/GridHero.js +35 -36
- package/dist/cjs/GroupDeck.js +48 -49
- package/dist/cjs/HamMagazine.js +125 -130
- 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 +38 -39
- package/dist/cjs/HorizontalHero.js +23 -24
- package/dist/cjs/IssueContentDeck.js +65 -70
- package/dist/cjs/IssueDeck.js +61 -66
- package/dist/cjs/IssueLanding.js +59 -60
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +22 -23
- package/dist/cjs/MasterDeck.js +59 -59
- package/dist/cjs/MediaSeriesLanding.js +909 -801
- package/dist/cjs/NavDvm.js +63 -68
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +126 -131
- package/dist/cjs/NavNative.js +117 -125
- 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 +188 -288
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +13 -15
- package/dist/cjs/PubSection.js +21 -21
- package/dist/cjs/PubToc.js +7 -8
- package/dist/cjs/PublicationDeck.js +59 -64
- package/dist/cjs/PublicationLanding.js +110 -114
- package/dist/cjs/QueueDeckExpanded.js +287 -286
- package/dist/cjs/RecentNews.js +19 -20
- package/dist/cjs/RelatedContent.js +50 -51
- package/dist/cjs/RelatedTopicsDropdown.js +29 -32
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +12 -16
- package/dist/cjs/SeriesListingDeck.js +27 -26
- package/dist/cjs/{SeriesSlider-60fa1342.js → SeriesSlider-8bbc989f.js} +37 -38
- package/dist/cjs/SideFooter.js +25 -26
- 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 +55 -60
- package/dist/cjs/TaxonomyDescription.js +23 -24
- package/dist/cjs/TemplateNormal.js +36 -36
- 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 +41 -45
- package/dist/cjs/VideoSeriesCard.js +23 -24
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesLandingPage.js +26 -26
- package/dist/cjs/VideoSeriesListing.js +58 -58
- package/dist/cjs/View.js +224 -225
- package/dist/cjs/YahooHero.js +30 -31
- package/dist/cjs/YoutubeGroup.js +54 -55
- package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-156bd4d6.js} +8 -10
- package/dist/cjs/events-1b438fe7.js +469 -0
- package/dist/cjs/{extends-60837c34.js → extends-0a918631.js} +1 -0
- package/dist/cjs/faundadb.js +1 -1
- package/dist/cjs/getRelatedArticle.js +131 -67
- package/dist/cjs/getSerializers.js +13 -13
- package/dist/cjs/{getTargeting-3e45e4d4.js → getTargeting-f1821260.js} +11 -11
- package/dist/cjs/getTargeting.js +2 -2
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-99edf08a.js → index-3294d3bc.js} +1 -1
- package/dist/cjs/{index-9d365128.js → index-96b3db50.js} +10 -12
- package/dist/cjs/{index-44481153.js → index-98e01cb9.js} +47 -494
- package/dist/cjs/{index-646379c4.js → index-998ad42c.js} +1204 -954
- package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
- package/dist/cjs/index-e2e62963.js +89 -0
- 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 +61 -65
- package/dist/cjs/{inherits-87492b40.js → inherits-452ff02c.js} +4 -1
- 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 +9 -8
- package/dist/esm/AD300x250x600.js +9 -8
- package/dist/esm/AD728x90.js +10 -9
- package/dist/esm/ADFloatingFooter.js +11 -10
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +11 -10
- package/dist/esm/{ADInfeed-422ad6e6.js → ADInfeed-1cc9d817.js} +7 -7
- package/dist/esm/ADSkyscraper.js +11 -10
- package/dist/esm/ADSponsoredResources.js +11 -10
- package/dist/esm/ADWebcast.js +11 -10
- package/dist/esm/ADWelcome.js +15 -14
- package/dist/esm/{ADlgInfeed-f7468db8.js → ADlgInfeed-8c4f129e.js} +4 -4
- package/dist/esm/AccordionPanel.js +17 -17
- package/dist/esm/AdSlot.js +7 -6
- package/dist/esm/AdSlotsProvider.js +903 -10
- package/dist/esm/AlgoliaSearch.js +14005 -41
- package/dist/esm/AlphabeticList.js +14 -14
- package/dist/esm/ArticleCarousel.js +9 -9
- package/dist/esm/ArticleProgramLandingPage.js +22 -22
- package/dist/esm/ArticleSeriesLandingPage.js +19 -18
- package/dist/esm/ArticleSeriesListing.js +38 -37
- package/dist/esm/Auth.js +1181 -217
- package/dist/esm/AuthWrapper.js +561 -24
- 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 +62 -61
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +17 -17
- package/dist/esm/Column3.js +32 -31
- package/dist/esm/ConferenceArticleCard.js +30 -30
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +78 -77
- package/dist/esm/DeckQueue.js +66 -65
- package/dist/esm/{Dfp-85c9513e.js → Dfp-b7236041.js} +11 -10
- package/dist/esm/EventsDeck.js +110 -110
- package/dist/esm/ExternalResources.js +43 -43
- package/dist/esm/Feature.js +17 -17
- package/dist/esm/ForbesHero.js +28 -28
- package/dist/esm/GridContent.js +174 -173
- package/dist/esm/GridHero.js +29 -29
- package/dist/esm/GroupDeck.js +36 -36
- package/dist/esm/HamMagazine.js +100 -100
- 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 +36 -36
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +53 -53
- package/dist/esm/IssueDeck.js +55 -55
- package/dist/esm/IssueLanding.js +57 -57
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +18 -17
- package/dist/esm/MasterDeck.js +56 -55
- package/dist/esm/MediaSeriesLanding.js +672 -561
- package/dist/esm/NavDvm.js +46 -46
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +103 -103
- package/dist/esm/NavNative.js +92 -92
- 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 +79 -178
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +19 -18
- package/dist/esm/PubToc.js +5 -5
- package/dist/esm/PublicationDeck.js +51 -51
- package/dist/esm/PublicationLanding.js +96 -96
- package/dist/esm/QueueDeckExpanded.js +253 -252
- package/dist/esm/RecentNews.js +17 -17
- package/dist/esm/RelatedContent.js +45 -45
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +7 -7
- package/dist/esm/SeriesListingDeck.js +22 -21
- package/dist/esm/{SeriesSlider-05ecb544.js → SeriesSlider-a866bb21.js} +28 -28
- package/dist/esm/SideFooter.js +21 -21
- 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 +51 -51
- package/dist/esm/TaxonomyDescription.js +18 -18
- package/dist/esm/TemplateNormal.js +33 -32
- 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 +34 -34
- package/dist/esm/VideoSeriesCard.js +18 -18
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesLandingPage.js +19 -18
- package/dist/esm/VideoSeriesListing.js +55 -54
- package/dist/esm/View.js +207 -204
- package/dist/esm/YahooHero.js +25 -25
- package/dist/esm/YoutubeGroup.js +39 -39
- package/dist/esm/{brightcove-react-player-loader.es-4abff0b1.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/events-6c3a7a63.js +467 -0
- package/dist/esm/{extends-eb69e8ac.js → extends-6f2fcc99.js} +1 -1
- package/dist/esm/faundadb.js +1 -1
- package/dist/esm/getRelatedArticle.js +126 -62
- package/dist/esm/getSerializers.js +13 -13
- package/dist/esm/{getTargeting-9cb7e014.js → getTargeting-bd800589.js} +10 -10
- package/dist/esm/getTargeting.js +2 -2
- package/dist/esm/{index-d1dee060.js → index-2fccaa7f.js} +1162 -901
- package/dist/esm/{index-1819118a.js → index-41a678ea.js} +41 -487
- 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-aaa2dae0.js +85 -0
- package/dist/esm/{index-fa2ffe86.js → index-ef6d5dcf.js} +1 -1
- 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 +53 -54
- package/dist/esm/inherits-77d5e4fc.js +101 -0
- package/dist/esm/{inherits-0d8cda6e.js → inherits-cf8dde54.js} +2 -2
- 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 +110 -110
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
|
@@ -1,41 +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 } from './extends-
|
|
5
|
-
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } 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';
|
|
38
|
-
import ScriptTag from 'react-script-tag';
|
|
36
|
+
import Tooltip$1 from 'react-bootstrap/Tooltip';
|
|
37
|
+
import Popover$1 from 'react-bootstrap/Popover';
|
|
39
38
|
|
|
40
39
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
41
40
|
var pageNumber = selectedIndex + 1;
|
|
@@ -70,27 +69,27 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
70
69
|
if (pageview) pageview(router.asPath);
|
|
71
70
|
}, [router]);
|
|
72
71
|
|
|
73
|
-
return
|
|
72
|
+
return React__default.createElement(
|
|
74
73
|
'div',
|
|
75
74
|
{ className: 'mt-3 mb-3' },
|
|
76
|
-
|
|
75
|
+
React__default.createElement(
|
|
77
76
|
Carousel,
|
|
78
77
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
79
78
|
return onChangeSlide(selectedIndex, router);
|
|
80
79
|
}, interval: null },
|
|
81
80
|
slides && slides.map(function (slide) {
|
|
82
|
-
return
|
|
81
|
+
return React__default.createElement(
|
|
83
82
|
Carousel.Item,
|
|
84
83
|
{ key: slide._key },
|
|
85
|
-
|
|
84
|
+
React__default.createElement(
|
|
86
85
|
'picture',
|
|
87
86
|
null,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
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%' } })
|
|
92
91
|
),
|
|
93
|
-
slide.caption &&
|
|
92
|
+
slide.caption && React__default.createElement(
|
|
94
93
|
'p',
|
|
95
94
|
{ className: 'p-2' },
|
|
96
95
|
slide.caption
|
|
@@ -101,18 +100,21 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
101
100
|
);
|
|
102
101
|
};
|
|
103
102
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
103
|
+
var isArray = Array.isArray;
|
|
104
|
+
var keyList = Object.keys;
|
|
105
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
107
106
|
|
|
108
107
|
var fastDeepEqual = function equal(a, b) {
|
|
109
108
|
if (a === b) return true;
|
|
110
109
|
|
|
111
110
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
112
|
-
|
|
111
|
+
var arrA = isArray(a)
|
|
112
|
+
, arrB = isArray(b)
|
|
113
|
+
, i
|
|
114
|
+
, length
|
|
115
|
+
, key;
|
|
113
116
|
|
|
114
|
-
|
|
115
|
-
if (Array.isArray(a)) {
|
|
117
|
+
if (arrA && arrB) {
|
|
116
118
|
length = a.length;
|
|
117
119
|
if (length != b.length) return false;
|
|
118
120
|
for (i = length; i-- !== 0;)
|
|
@@ -120,29 +122,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
120
122
|
return true;
|
|
121
123
|
}
|
|
122
124
|
|
|
125
|
+
if (arrA != arrB) return false;
|
|
123
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();
|
|
124
131
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
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();
|
|
128
136
|
|
|
129
|
-
keys =
|
|
137
|
+
var keys = keyList(a);
|
|
130
138
|
length = keys.length;
|
|
131
|
-
|
|
139
|
+
|
|
140
|
+
if (length !== keyList(b).length)
|
|
141
|
+
return false;
|
|
132
142
|
|
|
133
143
|
for (i = length; i-- !== 0;)
|
|
134
|
-
if (!
|
|
144
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
135
145
|
|
|
136
146
|
for (i = length; i-- !== 0;) {
|
|
137
|
-
|
|
138
|
-
|
|
147
|
+
key = keys[i];
|
|
139
148
|
if (!equal(a[key], b[key])) return false;
|
|
140
149
|
}
|
|
141
150
|
|
|
142
151
|
return true;
|
|
143
152
|
}
|
|
144
153
|
|
|
145
|
-
// true if both NaN, false otherwise
|
|
146
154
|
return a!==a && b!==b;
|
|
147
155
|
};
|
|
148
156
|
|
|
@@ -1565,239 +1573,199 @@ module.exports = exports['default'];
|
|
|
1565
1573
|
|
|
1566
1574
|
var youTubePlayer = unwrapExports(dist);
|
|
1567
1575
|
|
|
1568
|
-
function
|
|
1569
|
-
|
|
1570
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1571
|
-
|
|
1572
|
-
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); } }
|
|
1573
|
-
|
|
1574
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1575
|
-
|
|
1576
|
-
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); }
|
|
1577
|
-
|
|
1578
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1579
|
-
|
|
1580
|
-
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); }; }
|
|
1581
|
-
|
|
1582
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1583
|
-
|
|
1584
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1576
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
1585
1577
|
|
|
1586
|
-
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; };
|
|
1587
1579
|
|
|
1588
|
-
function
|
|
1580
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1589
1581
|
|
|
1590
|
-
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; }
|
|
1591
1583
|
|
|
1592
|
-
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; }
|
|
1593
1585
|
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
*
|
|
1597
|
-
*
|
|
1598
|
-
* @param {Object}
|
|
1599
|
-
* @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
|
|
1600
1591
|
*/
|
|
1601
|
-
|
|
1602
1592
|
function shouldUpdateVideo(prevProps, props) {
|
|
1603
1593
|
// A changing video should always trigger an update
|
|
1604
1594
|
if (prevProps.videoId !== props.videoId) {
|
|
1605
1595
|
return true;
|
|
1606
|
-
}
|
|
1607
|
-
// update.
|
|
1608
|
-
|
|
1596
|
+
}
|
|
1609
1597
|
|
|
1598
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1599
|
+
// update.
|
|
1610
1600
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1611
1601
|
var vars = props.opts.playerVars || {};
|
|
1602
|
+
|
|
1612
1603
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1613
1604
|
}
|
|
1614
|
-
/**
|
|
1615
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
1616
|
-
* that require a player reset. The results can then be compared to see if a
|
|
1617
|
-
* player reset is necessary.
|
|
1618
|
-
*
|
|
1619
|
-
* @param {Object} opts
|
|
1620
|
-
*/
|
|
1621
|
-
|
|
1622
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
|
+
*/
|
|
1623
1613
|
function filterResetOptions(opts) {
|
|
1624
|
-
return
|
|
1625
|
-
playerVars:
|
|
1614
|
+
return _extends({}, opts, {
|
|
1615
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1626
1616
|
autoplay: 0,
|
|
1627
1617
|
start: 0,
|
|
1628
1618
|
end: 0
|
|
1629
1619
|
})
|
|
1630
1620
|
});
|
|
1631
1621
|
}
|
|
1632
|
-
/**
|
|
1633
|
-
* Check whether a `props` change should result in the player being reset.
|
|
1634
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
1635
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1636
|
-
* those.
|
|
1637
|
-
*
|
|
1638
|
-
* @param {Object} prevProps
|
|
1639
|
-
* @param {Object} props
|
|
1640
|
-
*/
|
|
1641
|
-
|
|
1642
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
|
+
*/
|
|
1643
1632
|
function shouldResetPlayer(prevProps, props) {
|
|
1644
1633
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1645
1634
|
}
|
|
1646
|
-
/**
|
|
1647
|
-
* Check whether a props change should result in an id or className update.
|
|
1648
|
-
*
|
|
1649
|
-
* @param {Object} prevProps
|
|
1650
|
-
* @param {Object} props
|
|
1651
|
-
*/
|
|
1652
|
-
|
|
1653
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
|
+
*/
|
|
1654
1642
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1655
1643
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1656
1644
|
}
|
|
1657
1645
|
|
|
1658
|
-
var YouTube =
|
|
1646
|
+
var YouTube = function (_React$Component) {
|
|
1659
1647
|
_inherits(YouTube, _React$Component);
|
|
1660
1648
|
|
|
1661
|
-
var _super = _createSuper(YouTube);
|
|
1662
|
-
|
|
1663
|
-
/**
|
|
1664
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1665
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1666
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1667
|
-
*/
|
|
1668
1649
|
function YouTube(props) {
|
|
1669
|
-
var _this;
|
|
1670
|
-
|
|
1671
1650
|
_classCallCheck(this, YouTube);
|
|
1672
1651
|
|
|
1673
|
-
_this =
|
|
1652
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1674
1653
|
|
|
1675
|
-
|
|
1654
|
+
_this.onPlayerReady = function (event) {
|
|
1676
1655
|
return _this.props.onReady(event);
|
|
1677
|
-
}
|
|
1656
|
+
};
|
|
1678
1657
|
|
|
1679
|
-
|
|
1658
|
+
_this.onPlayerError = function (event) {
|
|
1680
1659
|
return _this.props.onError(event);
|
|
1681
|
-
}
|
|
1660
|
+
};
|
|
1682
1661
|
|
|
1683
|
-
|
|
1662
|
+
_this.onPlayerStateChange = function (event) {
|
|
1684
1663
|
_this.props.onStateChange(event);
|
|
1685
|
-
|
|
1686
1664
|
switch (event.data) {
|
|
1665
|
+
|
|
1687
1666
|
case YouTube.PlayerState.ENDED:
|
|
1688
1667
|
_this.props.onEnd(event);
|
|
1689
|
-
|
|
1690
1668
|
break;
|
|
1691
1669
|
|
|
1692
1670
|
case YouTube.PlayerState.PLAYING:
|
|
1693
1671
|
_this.props.onPlay(event);
|
|
1694
|
-
|
|
1695
1672
|
break;
|
|
1696
1673
|
|
|
1697
1674
|
case YouTube.PlayerState.PAUSED:
|
|
1698
1675
|
_this.props.onPause(event);
|
|
1699
|
-
|
|
1700
1676
|
break;
|
|
1701
1677
|
}
|
|
1702
|
-
}
|
|
1678
|
+
};
|
|
1703
1679
|
|
|
1704
|
-
|
|
1680
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1705
1681
|
return _this.props.onPlaybackRateChange(event);
|
|
1706
|
-
}
|
|
1682
|
+
};
|
|
1707
1683
|
|
|
1708
|
-
|
|
1684
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1709
1685
|
return _this.props.onPlaybackQualityChange(event);
|
|
1710
|
-
}
|
|
1686
|
+
};
|
|
1711
1687
|
|
|
1712
|
-
|
|
1688
|
+
_this.createPlayer = function () {
|
|
1713
1689
|
// do not attempt to create a player server-side, it won't work
|
|
1714
|
-
if (typeof document === 'undefined') return;
|
|
1715
|
-
|
|
1716
|
-
var playerOpts =
|
|
1690
|
+
if (typeof document === 'undefined') return;
|
|
1691
|
+
// create player
|
|
1692
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1717
1693
|
// preload the `videoId` video if one is already given
|
|
1718
1694
|
videoId: _this.props.videoId
|
|
1719
1695
|
});
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1696
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
1697
|
+
// attach event handlers
|
|
1723
1698
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1724
|
-
|
|
1725
1699
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1726
|
-
|
|
1727
1700
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1728
|
-
|
|
1729
1701
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1730
|
-
|
|
1731
1702
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1732
|
-
}
|
|
1703
|
+
};
|
|
1733
1704
|
|
|
1734
|
-
|
|
1705
|
+
_this.resetPlayer = function () {
|
|
1735
1706
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1736
|
-
}
|
|
1707
|
+
};
|
|
1737
1708
|
|
|
1738
|
-
|
|
1709
|
+
_this.updatePlayer = function () {
|
|
1739
1710
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1740
1711
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1741
1712
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1742
1713
|
});
|
|
1743
|
-
}
|
|
1744
|
-
|
|
1745
|
-
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1746
|
-
return _this.internalPlayer;
|
|
1747
|
-
});
|
|
1714
|
+
};
|
|
1748
1715
|
|
|
1749
|
-
|
|
1716
|
+
_this.updateVideo = function () {
|
|
1750
1717
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1751
1718
|
_this.internalPlayer.stopVideo();
|
|
1752
|
-
|
|
1753
1719
|
return;
|
|
1754
|
-
}
|
|
1755
|
-
|
|
1720
|
+
}
|
|
1756
1721
|
|
|
1722
|
+
// set queueing options
|
|
1757
1723
|
var autoplay = false;
|
|
1758
1724
|
var opts = {
|
|
1759
1725
|
videoId: _this.props.videoId
|
|
1760
1726
|
};
|
|
1761
|
-
|
|
1762
1727
|
if ('playerVars' in _this.props.opts) {
|
|
1763
1728
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1764
|
-
|
|
1765
1729
|
if ('start' in _this.props.opts.playerVars) {
|
|
1766
1730
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1767
1731
|
}
|
|
1768
|
-
|
|
1769
1732
|
if ('end' in _this.props.opts.playerVars) {
|
|
1770
1733
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1771
1734
|
}
|
|
1772
|
-
}
|
|
1773
|
-
|
|
1735
|
+
}
|
|
1774
1736
|
|
|
1737
|
+
// if autoplay is enabled loadVideoById
|
|
1775
1738
|
if (autoplay) {
|
|
1776
1739
|
_this.internalPlayer.loadVideoById(opts);
|
|
1777
|
-
|
|
1778
1740
|
return;
|
|
1779
|
-
}
|
|
1780
|
-
|
|
1781
|
-
|
|
1741
|
+
}
|
|
1742
|
+
// default behaviour just cues the video
|
|
1782
1743
|
_this.internalPlayer.cueVideoById(opts);
|
|
1783
|
-
}
|
|
1744
|
+
};
|
|
1784
1745
|
|
|
1785
|
-
|
|
1746
|
+
_this.refContainer = function (container) {
|
|
1786
1747
|
_this.container = container;
|
|
1787
|
-
}
|
|
1748
|
+
};
|
|
1788
1749
|
|
|
1789
1750
|
_this.container = null;
|
|
1790
1751
|
_this.internalPlayer = null;
|
|
1791
1752
|
return _this;
|
|
1792
1753
|
}
|
|
1793
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
|
+
|
|
1794
1762
|
_createClass(YouTube, [{
|
|
1795
|
-
key:
|
|
1763
|
+
key: 'componentDidMount',
|
|
1796
1764
|
value: function componentDidMount() {
|
|
1797
1765
|
this.createPlayer();
|
|
1798
1766
|
}
|
|
1799
1767
|
}, {
|
|
1800
|
-
key:
|
|
1768
|
+
key: 'componentDidUpdate',
|
|
1801
1769
|
value: function componentDidUpdate(prevProps) {
|
|
1802
1770
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1803
1771
|
this.updatePlayer();
|
|
@@ -1812,58 +1780,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1812
1780
|
}
|
|
1813
1781
|
}
|
|
1814
1782
|
}, {
|
|
1815
|
-
key:
|
|
1783
|
+
key: 'componentWillUnmount',
|
|
1816
1784
|
value: function componentWillUnmount() {
|
|
1817
|
-
/**
|
|
1818
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1819
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1820
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1821
|
-
* 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.
|
|
1822
1790
|
*/
|
|
1823
1791
|
this.internalPlayer.destroy();
|
|
1824
1792
|
}
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
*
|
|
1828
|
-
*
|
|
1829
|
-
*
|
|
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.
|
|
1830
1859
|
*/
|
|
1831
1860
|
|
|
1832
1861
|
}, {
|
|
1833
|
-
key:
|
|
1862
|
+
key: 'render',
|
|
1834
1863
|
value: function render() {
|
|
1835
|
-
return
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
id: this.props.id,
|
|
1839
|
-
|
|
1840
|
-
ref: this.refContainer
|
|
1841
|
-
}));
|
|
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
|
+
);
|
|
1842
1869
|
}
|
|
1843
1870
|
}]);
|
|
1844
1871
|
|
|
1845
1872
|
return YouTube;
|
|
1846
|
-
}(
|
|
1847
|
-
|
|
1848
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
1849
|
-
UNSTARTED: -1,
|
|
1850
|
-
ENDED: 0,
|
|
1851
|
-
PLAYING: 1,
|
|
1852
|
-
PAUSED: 2,
|
|
1853
|
-
BUFFERING: 3,
|
|
1854
|
-
CUED: 5
|
|
1855
|
-
});
|
|
1873
|
+
}(React__default.Component);
|
|
1856
1874
|
|
|
1857
1875
|
YouTube.propTypes = {
|
|
1858
1876
|
videoId: PropTypes.string,
|
|
1877
|
+
|
|
1859
1878
|
// custom ID for player element
|
|
1860
1879
|
id: PropTypes.string,
|
|
1880
|
+
|
|
1861
1881
|
// custom class name for player element
|
|
1862
1882
|
className: PropTypes.string,
|
|
1863
1883
|
// custom class name for player container element
|
|
1864
1884
|
containerClassName: PropTypes.string,
|
|
1885
|
+
|
|
1865
1886
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1866
1887
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1888
|
+
|
|
1867
1889
|
// event subscriptions
|
|
1868
1890
|
onReady: PropTypes.func,
|
|
1869
1891
|
onError: PropTypes.func,
|
|
@@ -1875,7 +1897,6 @@ YouTube.propTypes = {
|
|
|
1875
1897
|
onPlaybackQualityChange: PropTypes.func
|
|
1876
1898
|
};
|
|
1877
1899
|
YouTube.defaultProps = {
|
|
1878
|
-
videoId: null,
|
|
1879
1900
|
id: null,
|
|
1880
1901
|
className: null,
|
|
1881
1902
|
opts: {},
|
|
@@ -1889,6 +1910,14 @@ YouTube.defaultProps = {
|
|
|
1889
1910
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1890
1911
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1891
1912
|
};
|
|
1913
|
+
YouTube.PlayerState = {
|
|
1914
|
+
UNSTARTED: -1,
|
|
1915
|
+
ENDED: 0,
|
|
1916
|
+
PLAYING: 1,
|
|
1917
|
+
PAUSED: 2,
|
|
1918
|
+
BUFFERING: 3,
|
|
1919
|
+
CUED: 5
|
|
1920
|
+
};
|
|
1892
1921
|
|
|
1893
1922
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1894
1923
|
var url = _ref.url,
|
|
@@ -1990,11 +2019,11 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1990
2019
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
1991
2020
|
};
|
|
1992
2021
|
|
|
1993
|
-
return
|
|
2022
|
+
return React__default.createElement(
|
|
1994
2023
|
'div',
|
|
1995
2024
|
{ id: 'fluid-video-container' },
|
|
1996
|
-
|
|
1997
|
-
|
|
2025
|
+
React__default.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
2026
|
+
React__default.createElement(
|
|
1998
2027
|
'style',
|
|
1999
2028
|
{ jsx: 'true' },
|
|
2000
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 '
|
|
@@ -2007,20 +2036,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2007
2036
|
content = _ref.content,
|
|
2008
2037
|
getSerializers = _ref.getSerializers;
|
|
2009
2038
|
|
|
2010
|
-
return
|
|
2039
|
+
return React__default.createElement(
|
|
2011
2040
|
'article',
|
|
2012
2041
|
{ className: 'sidebar' },
|
|
2013
|
-
|
|
2042
|
+
React__default.createElement(
|
|
2014
2043
|
'div',
|
|
2015
2044
|
null,
|
|
2016
|
-
|
|
2045
|
+
React__default.createElement(
|
|
2017
2046
|
'h3',
|
|
2018
2047
|
null,
|
|
2019
2048
|
caption
|
|
2020
2049
|
),
|
|
2021
|
-
|
|
2050
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2022
2051
|
),
|
|
2023
|
-
|
|
2052
|
+
React__default.createElement(
|
|
2024
2053
|
'style',
|
|
2025
2054
|
{ jsx: 'true' },
|
|
2026
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 '
|
|
@@ -2031,18 +2060,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2031
2060
|
var TableShow = function TableShow(_ref) {
|
|
2032
2061
|
var rows = _ref.rows;
|
|
2033
2062
|
|
|
2034
|
-
return
|
|
2063
|
+
return React__default.createElement(
|
|
2035
2064
|
Table,
|
|
2036
2065
|
{ bordered: true, hover: true, responsive: true },
|
|
2037
|
-
|
|
2066
|
+
React__default.createElement(
|
|
2038
2067
|
'tbody',
|
|
2039
2068
|
null,
|
|
2040
2069
|
rows && rows.map(function (row) {
|
|
2041
|
-
return
|
|
2070
|
+
return React__default.createElement(
|
|
2042
2071
|
'tr',
|
|
2043
2072
|
{ key: row._key },
|
|
2044
2073
|
row.cells && row.cells.map(function (cell, index) {
|
|
2045
|
-
return cell &&
|
|
2074
|
+
return cell && React__default.createElement(
|
|
2046
2075
|
'td',
|
|
2047
2076
|
{ key: index },
|
|
2048
2077
|
cell
|
|
@@ -2140,25 +2169,25 @@ var Media = function Media(_ref) {
|
|
|
2140
2169
|
margin: imageMargin
|
|
2141
2170
|
};
|
|
2142
2171
|
|
|
2143
|
-
return
|
|
2172
|
+
return React__default.createElement(
|
|
2144
2173
|
Figure$1,
|
|
2145
2174
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2146
|
-
|
|
2175
|
+
React__default.createElement(
|
|
2147
2176
|
'a',
|
|
2148
2177
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2149
|
-
|
|
2178
|
+
React__default.createElement(
|
|
2150
2179
|
LazyLoad,
|
|
2151
2180
|
{ once: true },
|
|
2152
|
-
|
|
2181
|
+
React__default.createElement(
|
|
2153
2182
|
'picture',
|
|
2154
2183
|
null,
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
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 }))
|
|
2159
2188
|
)
|
|
2160
2189
|
),
|
|
2161
|
-
caption &&
|
|
2190
|
+
caption && React__default.createElement(
|
|
2162
2191
|
Figure$1.Caption,
|
|
2163
2192
|
{ className: 'media-caption' },
|
|
2164
2193
|
caption
|
|
@@ -2166,9 +2195,9 @@ var Media = function Media(_ref) {
|
|
|
2166
2195
|
)
|
|
2167
2196
|
);
|
|
2168
2197
|
} else if (caption && caption !== '') {
|
|
2169
|
-
return
|
|
2198
|
+
return React__default.createElement(
|
|
2170
2199
|
'a',
|
|
2171
|
-
_extends({}, uploadDoc.downloadMedia ? {
|
|
2200
|
+
_extends$1({}, uploadDoc.downloadMedia ? {
|
|
2172
2201
|
href: uploadDoc.asset.url + '?dl='
|
|
2173
2202
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2174
2203
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2186,10 +2215,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2186
2215
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2187
2216
|
|
|
2188
2217
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2189
|
-
return
|
|
2218
|
+
return React__default.createElement(
|
|
2190
2219
|
'div',
|
|
2191
2220
|
{ className: 'd-block text-center mb-3' },
|
|
2192
|
-
|
|
2221
|
+
React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2193
2222
|
);
|
|
2194
2223
|
};
|
|
2195
2224
|
|
|
@@ -2284,10 +2313,10 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2284
2313
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
|
|
2285
2314
|
};
|
|
2286
2315
|
|
|
2287
|
-
return
|
|
2316
|
+
return React__default.createElement(
|
|
2288
2317
|
'div',
|
|
2289
2318
|
null,
|
|
2290
|
-
vidLoaded &&
|
|
2319
|
+
vidLoaded && React__default.createElement(
|
|
2291
2320
|
'video',
|
|
2292
2321
|
{
|
|
2293
2322
|
poster: thumbnail || '',
|
|
@@ -2305,7 +2334,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2305
2334
|
onPlay: function onPlay(e) {
|
|
2306
2335
|
return handleOnPlay(e);
|
|
2307
2336
|
} },
|
|
2308
|
-
|
|
2337
|
+
React__default.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2309
2338
|
'Your browser does not support the video tag.'
|
|
2310
2339
|
)
|
|
2311
2340
|
);
|
|
@@ -2342,7 +2371,7 @@ var Video = function Video(_ref) {
|
|
|
2342
2371
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2343
2372
|
//console.log('success:', success.ref)
|
|
2344
2373
|
var player = success.ref;
|
|
2345
|
-
if (_typeof
|
|
2374
|
+
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2346
2375
|
player.ima3.settings.debug = true;
|
|
2347
2376
|
if (targeting.content_placement && targeting.document_url) {
|
|
2348
2377
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2440,53 +2469,53 @@ var Video = function Video(_ref) {
|
|
|
2440
2469
|
|
|
2441
2470
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2442
2471
|
if (videoID) {
|
|
2443
|
-
return
|
|
2472
|
+
return React__default.createElement(
|
|
2444
2473
|
'div',
|
|
2445
2474
|
null,
|
|
2446
|
-
|
|
2475
|
+
React__default.createElement(ReactPlayerLoader, {
|
|
2447
2476
|
onSuccess: onVideoSuccess,
|
|
2448
2477
|
accountId: accountIDs.brightcove.accountId,
|
|
2449
2478
|
videoId: videoID,
|
|
2450
2479
|
playerId: accountIDs.brightcove.playerId,
|
|
2451
2480
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2452
2481
|
}),
|
|
2453
|
-
|
|
2482
|
+
React__default.createElement(
|
|
2454
2483
|
'style',
|
|
2455
2484
|
{ jsx: 'true' },
|
|
2456
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 '
|
|
2457
2486
|
)
|
|
2458
2487
|
);
|
|
2459
2488
|
} else if (playlistID) {
|
|
2460
|
-
return
|
|
2489
|
+
return React__default.createElement(
|
|
2461
2490
|
'div',
|
|
2462
2491
|
null,
|
|
2463
|
-
|
|
2492
|
+
React__default.createElement(ReactPlayerLoader, {
|
|
2464
2493
|
accountId: accountIDs.brightcove.accountId,
|
|
2465
2494
|
playlistId: playlistID,
|
|
2466
2495
|
playerId: accountIDs.brightcove.playerId,
|
|
2467
2496
|
onSuccess: onVideoSuccess,
|
|
2468
2497
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2469
2498
|
}),
|
|
2470
|
-
|
|
2499
|
+
React__default.createElement(
|
|
2471
2500
|
'style',
|
|
2472
2501
|
{ jsx: 'true' },
|
|
2473
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 '
|
|
2474
2503
|
)
|
|
2475
2504
|
);
|
|
2476
2505
|
} else if (experienceID) {
|
|
2477
|
-
return
|
|
2506
|
+
return React__default.createElement(
|
|
2478
2507
|
'div',
|
|
2479
2508
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2480
|
-
videoLoaded &&
|
|
2509
|
+
videoLoaded && React__default.createElement('div', { 'data-experience': experienceID })
|
|
2481
2510
|
);
|
|
2482
2511
|
}
|
|
2483
2512
|
return null;
|
|
2484
2513
|
}
|
|
2485
2514
|
if (source === 'mp4') {
|
|
2486
|
-
return
|
|
2515
|
+
return React__default.createElement(
|
|
2487
2516
|
'div',
|
|
2488
2517
|
null,
|
|
2489
|
-
|
|
2518
|
+
React__default.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2490
2519
|
);
|
|
2491
2520
|
}
|
|
2492
2521
|
|
|
@@ -2864,17 +2893,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2864
2893
|
|
|
2865
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; }
|
|
2866
2895
|
|
|
2867
|
-
function
|
|
2868
|
-
|
|
2869
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2870
|
-
|
|
2871
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
2896
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2872
2897
|
|
|
2873
|
-
function
|
|
2898
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2874
2899
|
|
|
2875
|
-
function
|
|
2876
|
-
|
|
2877
|
-
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; }
|
|
2878
2901
|
|
|
2879
2902
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2880
2903
|
|
|
@@ -3004,12 +3027,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3004
3027
|
|
|
3005
3028
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3006
3029
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3007
|
-
|
|
3008
|
-
var
|
|
3009
|
-
|
|
3030
|
+
var _iteratorNormalCompletion = true;
|
|
3031
|
+
var _didIteratorError = false;
|
|
3032
|
+
var _iteratorError = undefined;
|
|
3010
3033
|
|
|
3011
3034
|
try {
|
|
3012
|
-
for (_iterator.
|
|
3035
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
3013
3036
|
var p = _step.value;
|
|
3014
3037
|
|
|
3015
3038
|
if (props$1[p]) {
|
|
@@ -3024,9 +3047,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3024
3047
|
}
|
|
3025
3048
|
}
|
|
3026
3049
|
} catch (err) {
|
|
3027
|
-
|
|
3050
|
+
_didIteratorError = true;
|
|
3051
|
+
_iteratorError = err;
|
|
3028
3052
|
} finally {
|
|
3029
|
-
|
|
3053
|
+
try {
|
|
3054
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3055
|
+
_iterator["return"]();
|
|
3056
|
+
}
|
|
3057
|
+
} finally {
|
|
3058
|
+
if (_didIteratorError) {
|
|
3059
|
+
throw _iteratorError;
|
|
3060
|
+
}
|
|
3061
|
+
}
|
|
3030
3062
|
}
|
|
3031
3063
|
|
|
3032
3064
|
return config;
|
|
@@ -3091,7 +3123,7 @@ function isEqual(a, b) {
|
|
|
3091
3123
|
return true;
|
|
3092
3124
|
}
|
|
3093
3125
|
|
|
3094
|
-
if ((0,
|
|
3126
|
+
if ((0, React__default.isValidElement)(a) && (0, React__default.isValidElement)(b)) {
|
|
3095
3127
|
return true;
|
|
3096
3128
|
}
|
|
3097
3129
|
|
|
@@ -3153,7 +3185,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3153
3185
|
});
|
|
3154
3186
|
exports["default"] = void 0;
|
|
3155
3187
|
|
|
3156
|
-
var _react = _interopRequireWildcard(
|
|
3188
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3157
3189
|
|
|
3158
3190
|
|
|
3159
3191
|
|
|
@@ -3173,16 +3205,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3173
3205
|
|
|
3174
3206
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3175
3207
|
|
|
3176
|
-
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); }; }
|
|
3177
|
-
|
|
3178
3208
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3179
3209
|
|
|
3180
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3181
|
-
|
|
3182
|
-
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; } }
|
|
3183
|
-
|
|
3184
3210
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3185
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
|
+
|
|
3186
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); }
|
|
3187
3215
|
|
|
3188
3216
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3191,12 +3219,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3191
3219
|
|
|
3192
3220
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3193
3221
|
|
|
3194
|
-
var Player =
|
|
3222
|
+
var Player =
|
|
3223
|
+
/*#__PURE__*/
|
|
3224
|
+
function (_Component) {
|
|
3195
3225
|
_inherits(Player, _Component);
|
|
3196
3226
|
|
|
3197
|
-
var _super = _createSuper(Player);
|
|
3198
|
-
|
|
3199
3227
|
function Player() {
|
|
3228
|
+
var _getPrototypeOf2;
|
|
3229
|
+
|
|
3200
3230
|
var _this;
|
|
3201
3231
|
|
|
3202
3232
|
_classCallCheck(this, Player);
|
|
@@ -3205,7 +3235,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3205
3235
|
_args[_key] = arguments[_key];
|
|
3206
3236
|
}
|
|
3207
3237
|
|
|
3208
|
-
_this =
|
|
3238
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3209
3239
|
|
|
3210
3240
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3211
3241
|
|
|
@@ -3530,7 +3560,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3530
3560
|
return null;
|
|
3531
3561
|
}
|
|
3532
3562
|
|
|
3533
|
-
return
|
|
3563
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3534
3564
|
ref: this.ref,
|
|
3535
3565
|
onReady: this.handleReady,
|
|
3536
3566
|
onPlay: this.handlePlay,
|
|
@@ -3563,7 +3593,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3563
3593
|
});
|
|
3564
3594
|
exports["default"] = createSinglePlayer;
|
|
3565
3595
|
|
|
3566
|
-
var _react = _interopRequireWildcard(
|
|
3596
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3567
3597
|
|
|
3568
3598
|
|
|
3569
3599
|
|
|
@@ -3591,16 +3621,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3591
3621
|
|
|
3592
3622
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3593
3623
|
|
|
3594
|
-
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); }; }
|
|
3595
|
-
|
|
3596
3624
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3597
3625
|
|
|
3598
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3599
|
-
|
|
3600
|
-
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; } }
|
|
3601
|
-
|
|
3602
3626
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3603
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
|
+
|
|
3604
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); }
|
|
3605
3631
|
|
|
3606
3632
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3612,12 +3638,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3612
3638
|
function createSinglePlayer(activePlayer) {
|
|
3613
3639
|
var _class, _temp;
|
|
3614
3640
|
|
|
3615
|
-
return _temp = _class =
|
|
3641
|
+
return _temp = _class =
|
|
3642
|
+
/*#__PURE__*/
|
|
3643
|
+
function (_Component) {
|
|
3616
3644
|
_inherits(SinglePlayer, _Component);
|
|
3617
3645
|
|
|
3618
|
-
var _super = _createSuper(SinglePlayer);
|
|
3619
|
-
|
|
3620
3646
|
function SinglePlayer() {
|
|
3647
|
+
var _getPrototypeOf2;
|
|
3648
|
+
|
|
3621
3649
|
var _this;
|
|
3622
3650
|
|
|
3623
3651
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3626,7 +3654,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3626
3654
|
args[_key] = arguments[_key];
|
|
3627
3655
|
}
|
|
3628
3656
|
|
|
3629
|
-
_this =
|
|
3657
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3630
3658
|
|
|
3631
3659
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3632
3660
|
|
|
@@ -3694,12 +3722,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3694
3722
|
height = _this$props.height,
|
|
3695
3723
|
Wrapper = _this$props.wrapper;
|
|
3696
3724
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3697
|
-
return
|
|
3725
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3698
3726
|
style: _objectSpread({}, style, {
|
|
3699
3727
|
width: width,
|
|
3700
3728
|
height: height
|
|
3701
3729
|
})
|
|
3702
|
-
}, otherProps),
|
|
3730
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3703
3731
|
ref: this.ref,
|
|
3704
3732
|
activePlayer: activePlayer,
|
|
3705
3733
|
config: this.config
|
|
@@ -3721,7 +3749,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3721
3749
|
});
|
|
3722
3750
|
exports["default"] = exports.YouTube = void 0;
|
|
3723
3751
|
|
|
3724
|
-
var _react = _interopRequireWildcard(
|
|
3752
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3725
3753
|
|
|
3726
3754
|
|
|
3727
3755
|
|
|
@@ -3745,31 +3773,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3745
3773
|
|
|
3746
3774
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3747
3775
|
|
|
3748
|
-
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); }; }
|
|
3749
|
-
|
|
3750
3776
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3751
3777
|
|
|
3752
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3753
|
-
|
|
3754
|
-
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; } }
|
|
3755
|
-
|
|
3756
3778
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3757
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
|
+
|
|
3758
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); }
|
|
3759
3783
|
|
|
3760
3784
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3761
3785
|
|
|
3762
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; }
|
|
3763
3787
|
|
|
3764
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3765
|
-
|
|
3766
|
-
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."); }
|
|
3788
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3767
3789
|
|
|
3768
|
-
function
|
|
3790
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3769
3791
|
|
|
3770
|
-
function
|
|
3771
|
-
|
|
3772
|
-
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; }
|
|
3773
3793
|
|
|
3774
3794
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3775
3795
|
|
|
@@ -3794,12 +3814,14 @@ function parsePlaylist(url) {
|
|
|
3794
3814
|
return {};
|
|
3795
3815
|
}
|
|
3796
3816
|
|
|
3797
|
-
var YouTube =
|
|
3817
|
+
var YouTube =
|
|
3818
|
+
/*#__PURE__*/
|
|
3819
|
+
function (_Component) {
|
|
3798
3820
|
_inherits(YouTube, _Component);
|
|
3799
3821
|
|
|
3800
|
-
var _super = _createSuper(YouTube);
|
|
3801
|
-
|
|
3802
3822
|
function YouTube() {
|
|
3823
|
+
var _getPrototypeOf2;
|
|
3824
|
+
|
|
3803
3825
|
var _this;
|
|
3804
3826
|
|
|
3805
3827
|
_classCallCheck(this, YouTube);
|
|
@@ -3808,7 +3830,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3808
3830
|
args[_key] = arguments[_key];
|
|
3809
3831
|
}
|
|
3810
3832
|
|
|
3811
|
-
_this =
|
|
3833
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3812
3834
|
|
|
3813
3835
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3814
3836
|
|
|
@@ -3996,9 +4018,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3996
4018
|
height: '100%',
|
|
3997
4019
|
display: display
|
|
3998
4020
|
};
|
|
3999
|
-
return
|
|
4021
|
+
return _react["default"].createElement("div", {
|
|
4000
4022
|
style: style
|
|
4001
|
-
},
|
|
4023
|
+
}, _react["default"].createElement("div", {
|
|
4002
4024
|
ref: this.ref
|
|
4003
4025
|
}));
|
|
4004
4026
|
}
|
|
@@ -4030,7 +4052,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4030
4052
|
});
|
|
4031
4053
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4032
4054
|
|
|
4033
|
-
var _react = _interopRequireWildcard(
|
|
4055
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4034
4056
|
|
|
4035
4057
|
|
|
4036
4058
|
|
|
@@ -4054,16 +4076,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4054
4076
|
|
|
4055
4077
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4056
4078
|
|
|
4057
|
-
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); }; }
|
|
4058
|
-
|
|
4059
4079
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4060
4080
|
|
|
4061
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4062
|
-
|
|
4063
|
-
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; } }
|
|
4064
|
-
|
|
4065
4081
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4066
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
|
+
|
|
4067
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); }
|
|
4068
4086
|
|
|
4069
4087
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4072,14 +4090,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4072
4090
|
|
|
4073
4091
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4074
4092
|
var SDK_GLOBAL = 'SC';
|
|
4075
|
-
var MATCH_URL = /(
|
|
4093
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
4076
4094
|
|
|
4077
|
-
var SoundCloud =
|
|
4095
|
+
var SoundCloud =
|
|
4096
|
+
/*#__PURE__*/
|
|
4097
|
+
function (_Component) {
|
|
4078
4098
|
_inherits(SoundCloud, _Component);
|
|
4079
4099
|
|
|
4080
|
-
var _super = _createSuper(SoundCloud);
|
|
4081
|
-
|
|
4082
4100
|
function SoundCloud() {
|
|
4101
|
+
var _getPrototypeOf2;
|
|
4102
|
+
|
|
4083
4103
|
var _this;
|
|
4084
4104
|
|
|
4085
4105
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4088,7 +4108,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4088
4108
|
args[_key] = arguments[_key];
|
|
4089
4109
|
}
|
|
4090
4110
|
|
|
4091
|
-
_this =
|
|
4111
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4092
4112
|
|
|
4093
4113
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4094
4114
|
|
|
@@ -4209,7 +4229,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4209
4229
|
height: '100%',
|
|
4210
4230
|
display: display
|
|
4211
4231
|
};
|
|
4212
|
-
return
|
|
4232
|
+
return _react["default"].createElement("iframe", {
|
|
4213
4233
|
ref: this.ref,
|
|
4214
4234
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4215
4235
|
style: style,
|
|
@@ -4247,7 +4267,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4247
4267
|
});
|
|
4248
4268
|
exports["default"] = exports.Vimeo = void 0;
|
|
4249
4269
|
|
|
4250
|
-
var _react = _interopRequireWildcard(
|
|
4270
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4251
4271
|
|
|
4252
4272
|
|
|
4253
4273
|
|
|
@@ -4271,16 +4291,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4271
4291
|
|
|
4272
4292
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4273
4293
|
|
|
4274
|
-
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); }; }
|
|
4275
|
-
|
|
4276
4294
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4277
4295
|
|
|
4278
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4279
|
-
|
|
4280
|
-
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; } }
|
|
4281
|
-
|
|
4282
4296
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4283
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
|
+
|
|
4284
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); }
|
|
4285
4301
|
|
|
4286
4302
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4292,12 +4308,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4292
4308
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4293
4309
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4294
4310
|
|
|
4295
|
-
var Vimeo =
|
|
4311
|
+
var Vimeo =
|
|
4312
|
+
/*#__PURE__*/
|
|
4313
|
+
function (_Component) {
|
|
4296
4314
|
_inherits(Vimeo, _Component);
|
|
4297
4315
|
|
|
4298
|
-
var _super = _createSuper(Vimeo);
|
|
4299
|
-
|
|
4300
4316
|
function Vimeo() {
|
|
4317
|
+
var _getPrototypeOf2;
|
|
4318
|
+
|
|
4301
4319
|
var _this;
|
|
4302
4320
|
|
|
4303
4321
|
_classCallCheck(this, Vimeo);
|
|
@@ -4306,7 +4324,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4306
4324
|
args[_key] = arguments[_key];
|
|
4307
4325
|
}
|
|
4308
4326
|
|
|
4309
|
-
_this =
|
|
4327
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4310
4328
|
|
|
4311
4329
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4312
4330
|
|
|
@@ -4463,7 +4481,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4463
4481
|
overflow: 'hidden',
|
|
4464
4482
|
display: display
|
|
4465
4483
|
};
|
|
4466
|
-
return
|
|
4484
|
+
return _react["default"].createElement("div", {
|
|
4467
4485
|
key: this.props.url,
|
|
4468
4486
|
ref: this.ref,
|
|
4469
4487
|
style: style
|
|
@@ -4503,7 +4521,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4503
4521
|
});
|
|
4504
4522
|
exports["default"] = exports.Facebook = void 0;
|
|
4505
4523
|
|
|
4506
|
-
var _react = _interopRequireWildcard(
|
|
4524
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4507
4525
|
|
|
4508
4526
|
|
|
4509
4527
|
|
|
@@ -4523,16 +4541,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4523
4541
|
|
|
4524
4542
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4525
4543
|
|
|
4526
|
-
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); }; }
|
|
4527
|
-
|
|
4528
4544
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4529
4545
|
|
|
4530
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4531
|
-
|
|
4532
|
-
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; } }
|
|
4533
|
-
|
|
4534
4546
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4535
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
|
+
|
|
4536
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); }
|
|
4537
4551
|
|
|
4538
4552
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4545,12 +4559,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4545
4559
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4546
4560
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4547
4561
|
|
|
4548
|
-
var Facebook =
|
|
4562
|
+
var Facebook =
|
|
4563
|
+
/*#__PURE__*/
|
|
4564
|
+
function (_Component) {
|
|
4549
4565
|
_inherits(Facebook, _Component);
|
|
4550
4566
|
|
|
4551
|
-
var _super = _createSuper(Facebook);
|
|
4552
|
-
|
|
4553
4567
|
function Facebook() {
|
|
4568
|
+
var _getPrototypeOf2;
|
|
4569
|
+
|
|
4554
4570
|
var _this;
|
|
4555
4571
|
|
|
4556
4572
|
_classCallCheck(this, Facebook);
|
|
@@ -4559,7 +4575,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4559
4575
|
args[_key] = arguments[_key];
|
|
4560
4576
|
}
|
|
4561
4577
|
|
|
4562
|
-
_this =
|
|
4578
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4563
4579
|
|
|
4564
4580
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4565
4581
|
|
|
@@ -4675,7 +4691,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4675
4691
|
width: '100%',
|
|
4676
4692
|
height: '100%'
|
|
4677
4693
|
};
|
|
4678
|
-
return
|
|
4694
|
+
return _react["default"].createElement("div", {
|
|
4679
4695
|
style: style,
|
|
4680
4696
|
id: this.playerID,
|
|
4681
4697
|
className: "fb-video",
|
|
@@ -4715,7 +4731,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4715
4731
|
});
|
|
4716
4732
|
exports["default"] = exports.Streamable = void 0;
|
|
4717
4733
|
|
|
4718
|
-
var _react = _interopRequireWildcard(
|
|
4734
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4719
4735
|
|
|
4720
4736
|
|
|
4721
4737
|
|
|
@@ -4735,16 +4751,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4735
4751
|
|
|
4736
4752
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4737
4753
|
|
|
4738
|
-
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); }; }
|
|
4739
|
-
|
|
4740
4754
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4741
4755
|
|
|
4742
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4743
|
-
|
|
4744
|
-
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; } }
|
|
4745
|
-
|
|
4746
4756
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4747
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
|
+
|
|
4748
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); }
|
|
4749
4761
|
|
|
4750
4762
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4755,12 +4767,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4755
4767
|
var SDK_GLOBAL = 'playerjs';
|
|
4756
4768
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4757
4769
|
|
|
4758
|
-
var Streamable =
|
|
4770
|
+
var Streamable =
|
|
4771
|
+
/*#__PURE__*/
|
|
4772
|
+
function (_Component) {
|
|
4759
4773
|
_inherits(Streamable, _Component);
|
|
4760
4774
|
|
|
4761
|
-
var _super = _createSuper(Streamable);
|
|
4762
|
-
|
|
4763
4775
|
function Streamable() {
|
|
4776
|
+
var _getPrototypeOf2;
|
|
4777
|
+
|
|
4764
4778
|
var _this;
|
|
4765
4779
|
|
|
4766
4780
|
_classCallCheck(this, Streamable);
|
|
@@ -4769,7 +4783,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4769
4783
|
args[_key] = arguments[_key];
|
|
4770
4784
|
}
|
|
4771
4785
|
|
|
4772
|
-
_this =
|
|
4786
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4773
4787
|
|
|
4774
4788
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4775
4789
|
|
|
@@ -4889,7 +4903,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4889
4903
|
width: '100%',
|
|
4890
4904
|
height: '100%'
|
|
4891
4905
|
};
|
|
4892
|
-
return
|
|
4906
|
+
return _react["default"].createElement("iframe", {
|
|
4893
4907
|
ref: this.ref,
|
|
4894
4908
|
src: "https://streamable.com/o/".concat(id),
|
|
4895
4909
|
frameBorder: "0",
|
|
@@ -4926,7 +4940,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4926
4940
|
});
|
|
4927
4941
|
exports["default"] = exports.Wistia = void 0;
|
|
4928
4942
|
|
|
4929
|
-
var _react = _interopRequireWildcard(
|
|
4943
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4930
4944
|
|
|
4931
4945
|
|
|
4932
4946
|
|
|
@@ -4950,16 +4964,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4950
4964
|
|
|
4951
4965
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4952
4966
|
|
|
4953
|
-
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); }; }
|
|
4954
|
-
|
|
4955
4967
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4956
4968
|
|
|
4957
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4958
|
-
|
|
4959
|
-
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; } }
|
|
4960
|
-
|
|
4961
4969
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4962
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
|
+
|
|
4963
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); }
|
|
4964
4974
|
|
|
4965
4975
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4970,48 +4980,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4970
4980
|
var SDK_GLOBAL = 'Wistia';
|
|
4971
4981
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4972
4982
|
|
|
4973
|
-
var Wistia =
|
|
4983
|
+
var Wistia =
|
|
4984
|
+
/*#__PURE__*/
|
|
4985
|
+
function (_Component) {
|
|
4974
4986
|
_inherits(Wistia, _Component);
|
|
4975
4987
|
|
|
4976
|
-
var _super = _createSuper(Wistia);
|
|
4977
|
-
|
|
4978
4988
|
function Wistia() {
|
|
4989
|
+
var _getPrototypeOf2;
|
|
4990
|
+
|
|
4979
4991
|
var _this;
|
|
4980
4992
|
|
|
4981
4993
|
_classCallCheck(this, Wistia);
|
|
4982
4994
|
|
|
4983
|
-
for (var _len = arguments.length,
|
|
4984
|
-
|
|
4995
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4996
|
+
args[_key] = arguments[_key];
|
|
4985
4997
|
}
|
|
4986
4998
|
|
|
4987
|
-
_this =
|
|
4999
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4988
5000
|
|
|
4989
5001
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4990
5002
|
|
|
4991
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4992
|
-
var _this$props;
|
|
4993
|
-
|
|
4994
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4995
|
-
});
|
|
4996
|
-
|
|
4997
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4998
|
-
var _this$props2;
|
|
4999
|
-
|
|
5000
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
5001
|
-
});
|
|
5002
|
-
|
|
5003
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
5004
|
-
var _this$props3;
|
|
5005
|
-
|
|
5006
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5007
|
-
});
|
|
5008
|
-
|
|
5009
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5010
|
-
var _this$props4;
|
|
5011
|
-
|
|
5012
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5013
|
-
});
|
|
5014
|
-
|
|
5015
5003
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5016
5004
|
_this.callPlayer('mute');
|
|
5017
5005
|
});
|
|
@@ -5033,13 +5021,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5033
5021
|
value: function load(url) {
|
|
5034
5022
|
var _this2 = this;
|
|
5035
5023
|
|
|
5036
|
-
var _this$
|
|
5037
|
-
playing = _this$
|
|
5038
|
-
muted = _this$
|
|
5039
|
-
controls = _this$
|
|
5040
|
-
_onReady = _this$
|
|
5041
|
-
|
|
5042
|
-
|
|
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;
|
|
5043
5035
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5044
5036
|
window._wq = window._wq || [];
|
|
5045
5037
|
|
|
@@ -5056,28 +5048,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5056
5048
|
|
|
5057
5049
|
_this2.unbind();
|
|
5058
5050
|
|
|
5059
|
-
_this2.player.bind('play',
|
|
5051
|
+
_this2.player.bind('play', onPlay);
|
|
5060
5052
|
|
|
5061
|
-
_this2.player.bind('pause',
|
|
5053
|
+
_this2.player.bind('pause', onPause);
|
|
5062
5054
|
|
|
5063
|
-
_this2.player.bind('seek',
|
|
5055
|
+
_this2.player.bind('seek', onSeek);
|
|
5064
5056
|
|
|
5065
|
-
_this2.player.bind('end',
|
|
5057
|
+
_this2.player.bind('end', onEnded);
|
|
5066
5058
|
|
|
5067
5059
|
_onReady();
|
|
5068
5060
|
}
|
|
5069
5061
|
});
|
|
5070
5062
|
}, onError);
|
|
5071
5063
|
}
|
|
5072
|
-
}, {
|
|
5073
|
-
key: "unbind",
|
|
5074
|
-
value: function unbind() {
|
|
5075
|
-
this.player.unbind('play', this.onPlay);
|
|
5076
|
-
this.player.unbind('pause', this.onPause);
|
|
5077
|
-
this.player.unbind('seek', this.onSeek);
|
|
5078
|
-
this.player.unbind('end', this.onEnded);
|
|
5079
|
-
} // Proxy methods to prevent listener leaks
|
|
5080
|
-
|
|
5081
5064
|
}, {
|
|
5082
5065
|
key: "play",
|
|
5083
5066
|
value: function play() {
|
|
@@ -5088,6 +5071,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5088
5071
|
value: function pause() {
|
|
5089
5072
|
this.callPlayer('pause');
|
|
5090
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
|
+
}
|
|
5091
5087
|
}, {
|
|
5092
5088
|
key: "stop",
|
|
5093
5089
|
value: function stop() {
|
|
@@ -5133,7 +5129,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5133
5129
|
width: '100%',
|
|
5134
5130
|
height: '100%'
|
|
5135
5131
|
};
|
|
5136
|
-
return
|
|
5132
|
+
return _react["default"].createElement("div", {
|
|
5137
5133
|
key: id,
|
|
5138
5134
|
className: className,
|
|
5139
5135
|
style: style
|
|
@@ -5169,7 +5165,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5169
5165
|
});
|
|
5170
5166
|
exports["default"] = exports.Twitch = void 0;
|
|
5171
5167
|
|
|
5172
|
-
var _react = _interopRequireWildcard(
|
|
5168
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5173
5169
|
|
|
5174
5170
|
|
|
5175
5171
|
|
|
@@ -5193,16 +5189,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5193
5189
|
|
|
5194
5190
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5195
5191
|
|
|
5196
|
-
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); }; }
|
|
5197
|
-
|
|
5198
5192
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5199
5193
|
|
|
5200
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5201
|
-
|
|
5202
|
-
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; } }
|
|
5203
|
-
|
|
5204
5194
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5205
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
|
+
|
|
5206
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); }
|
|
5207
5199
|
|
|
5208
5200
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5215,12 +5207,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5215
5207
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5216
5208
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5217
5209
|
|
|
5218
|
-
var Twitch =
|
|
5210
|
+
var Twitch =
|
|
5211
|
+
/*#__PURE__*/
|
|
5212
|
+
function (_Component) {
|
|
5219
5213
|
_inherits(Twitch, _Component);
|
|
5220
5214
|
|
|
5221
|
-
var _super = _createSuper(Twitch);
|
|
5222
|
-
|
|
5223
5215
|
function Twitch() {
|
|
5216
|
+
var _getPrototypeOf2;
|
|
5217
|
+
|
|
5224
5218
|
var _this;
|
|
5225
5219
|
|
|
5226
5220
|
_classCallCheck(this, Twitch);
|
|
@@ -5229,7 +5223,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5229
5223
|
args[_key] = arguments[_key];
|
|
5230
5224
|
}
|
|
5231
5225
|
|
|
5232
|
-
_this =
|
|
5226
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5233
5227
|
|
|
5234
5228
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5235
5229
|
|
|
@@ -5350,7 +5344,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5350
5344
|
width: '100%',
|
|
5351
5345
|
height: '100%'
|
|
5352
5346
|
};
|
|
5353
|
-
return
|
|
5347
|
+
return _react["default"].createElement("div", {
|
|
5354
5348
|
style: style,
|
|
5355
5349
|
id: this.playerID
|
|
5356
5350
|
});
|
|
@@ -5385,7 +5379,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5385
5379
|
});
|
|
5386
5380
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5387
5381
|
|
|
5388
|
-
var _react = _interopRequireWildcard(
|
|
5382
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5389
5383
|
|
|
5390
5384
|
|
|
5391
5385
|
|
|
@@ -5403,15 +5397,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5403
5397
|
|
|
5404
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; }
|
|
5405
5399
|
|
|
5406
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5407
|
-
|
|
5408
|
-
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(); }
|
|
5409
5401
|
|
|
5410
|
-
function
|
|
5402
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5411
5403
|
|
|
5412
|
-
function
|
|
5413
|
-
|
|
5414
|
-
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; }
|
|
5415
5405
|
|
|
5416
5406
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5417
5407
|
|
|
@@ -5421,16 +5411,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5421
5411
|
|
|
5422
5412
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5423
5413
|
|
|
5424
|
-
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); }; }
|
|
5425
|
-
|
|
5426
5414
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5427
5415
|
|
|
5428
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5429
|
-
|
|
5430
|
-
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; } }
|
|
5431
|
-
|
|
5432
5416
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5433
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
|
+
|
|
5434
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); }
|
|
5435
5421
|
|
|
5436
5422
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5442,12 +5428,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5442
5428
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5443
5429
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5444
5430
|
|
|
5445
|
-
var DailyMotion =
|
|
5431
|
+
var DailyMotion =
|
|
5432
|
+
/*#__PURE__*/
|
|
5433
|
+
function (_Component) {
|
|
5446
5434
|
_inherits(DailyMotion, _Component);
|
|
5447
5435
|
|
|
5448
|
-
var _super = _createSuper(DailyMotion);
|
|
5449
|
-
|
|
5450
5436
|
function DailyMotion() {
|
|
5437
|
+
var _getPrototypeOf2;
|
|
5438
|
+
|
|
5451
5439
|
var _this;
|
|
5452
5440
|
|
|
5453
5441
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5456,7 +5444,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5456
5444
|
args[_key] = arguments[_key];
|
|
5457
5445
|
}
|
|
5458
5446
|
|
|
5459
|
-
_this =
|
|
5447
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5460
5448
|
|
|
5461
5449
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5462
5450
|
|
|
@@ -5585,9 +5573,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5585
5573
|
height: '100%',
|
|
5586
5574
|
display: display
|
|
5587
5575
|
};
|
|
5588
|
-
return
|
|
5576
|
+
return _react["default"].createElement("div", {
|
|
5589
5577
|
style: style
|
|
5590
|
-
},
|
|
5578
|
+
}, _react["default"].createElement("div", {
|
|
5591
5579
|
ref: this.ref
|
|
5592
5580
|
}));
|
|
5593
5581
|
}
|
|
@@ -5621,7 +5609,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5621
5609
|
});
|
|
5622
5610
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5623
5611
|
|
|
5624
|
-
var _react = _interopRequireWildcard(
|
|
5612
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5625
5613
|
|
|
5626
5614
|
|
|
5627
5615
|
|
|
@@ -5645,16 +5633,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5645
5633
|
|
|
5646
5634
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5647
5635
|
|
|
5648
|
-
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); }; }
|
|
5649
|
-
|
|
5650
5636
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5651
5637
|
|
|
5652
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5653
|
-
|
|
5654
|
-
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; } }
|
|
5655
|
-
|
|
5656
5638
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5657
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
|
+
|
|
5658
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); }
|
|
5659
5643
|
|
|
5660
5644
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5665,12 +5649,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5665
5649
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5666
5650
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5667
5651
|
|
|
5668
|
-
var Mixcloud =
|
|
5652
|
+
var Mixcloud =
|
|
5653
|
+
/*#__PURE__*/
|
|
5654
|
+
function (_Component) {
|
|
5669
5655
|
_inherits(Mixcloud, _Component);
|
|
5670
5656
|
|
|
5671
|
-
var _super = _createSuper(Mixcloud);
|
|
5672
|
-
|
|
5673
5657
|
function Mixcloud() {
|
|
5658
|
+
var _getPrototypeOf2;
|
|
5659
|
+
|
|
5674
5660
|
var _this;
|
|
5675
5661
|
|
|
5676
5662
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5679,7 +5665,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5679
5665
|
args[_key] = arguments[_key];
|
|
5680
5666
|
}
|
|
5681
5667
|
|
|
5682
|
-
_this =
|
|
5668
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5683
5669
|
|
|
5684
5670
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5685
5671
|
|
|
@@ -5782,7 +5768,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5782
5768
|
})); // We have to give the iframe a key here to prevent a
|
|
5783
5769
|
// weird dialog appearing when loading a new track
|
|
5784
5770
|
|
|
5785
|
-
return
|
|
5771
|
+
return _react["default"].createElement("iframe", {
|
|
5786
5772
|
key: id,
|
|
5787
5773
|
ref: this.ref,
|
|
5788
5774
|
style: style,
|
|
@@ -5820,7 +5806,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5820
5806
|
});
|
|
5821
5807
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5822
5808
|
|
|
5823
|
-
var _react = _interopRequireWildcard(
|
|
5809
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5824
5810
|
|
|
5825
5811
|
|
|
5826
5812
|
|
|
@@ -5842,33 +5828,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5842
5828
|
|
|
5843
5829
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5844
5830
|
|
|
5845
|
-
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); }; }
|
|
5846
|
-
|
|
5847
5831
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5848
5832
|
|
|
5849
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5850
|
-
|
|
5851
|
-
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; } }
|
|
5852
|
-
|
|
5853
5833
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5854
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
|
+
|
|
5855
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); }
|
|
5856
5838
|
|
|
5857
5839
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5858
5840
|
|
|
5859
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; }
|
|
5860
5842
|
|
|
5861
|
-
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; } } }; }
|
|
5862
|
-
|
|
5863
|
-
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); }
|
|
5864
|
-
|
|
5865
|
-
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; }
|
|
5866
|
-
|
|
5867
5843
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5868
5844
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5869
5845
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5870
5846
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5871
|
-
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';
|
|
5872
5848
|
var HLS_GLOBAL = 'Hls';
|
|
5873
5849
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5874
5850
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5877,11 +5853,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5877
5853
|
|
|
5878
5854
|
function canPlay(url) {
|
|
5879
5855
|
if (url instanceof Array) {
|
|
5880
|
-
var
|
|
5881
|
-
|
|
5856
|
+
var _iteratorNormalCompletion = true;
|
|
5857
|
+
var _didIteratorError = false;
|
|
5858
|
+
var _iteratorError = undefined;
|
|
5882
5859
|
|
|
5883
5860
|
try {
|
|
5884
|
-
for (_iterator.
|
|
5861
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5885
5862
|
var item = _step.value;
|
|
5886
5863
|
|
|
5887
5864
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5893,9 +5870,18 @@ function canPlay(url) {
|
|
|
5893
5870
|
}
|
|
5894
5871
|
}
|
|
5895
5872
|
} catch (err) {
|
|
5896
|
-
|
|
5873
|
+
_didIteratorError = true;
|
|
5874
|
+
_iteratorError = err;
|
|
5897
5875
|
} finally {
|
|
5898
|
-
|
|
5876
|
+
try {
|
|
5877
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5878
|
+
_iterator["return"]();
|
|
5879
|
+
}
|
|
5880
|
+
} finally {
|
|
5881
|
+
if (_didIteratorError) {
|
|
5882
|
+
throw _iteratorError;
|
|
5883
|
+
}
|
|
5884
|
+
}
|
|
5899
5885
|
}
|
|
5900
5886
|
|
|
5901
5887
|
return false;
|
|
@@ -5919,12 +5905,14 @@ function canEnablePIP(url) {
|
|
|
5919
5905
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5920
5906
|
}
|
|
5921
5907
|
|
|
5922
|
-
var FilePlayer =
|
|
5908
|
+
var FilePlayer =
|
|
5909
|
+
/*#__PURE__*/
|
|
5910
|
+
function (_Component) {
|
|
5923
5911
|
_inherits(FilePlayer, _Component);
|
|
5924
5912
|
|
|
5925
|
-
var _super = _createSuper(FilePlayer);
|
|
5926
|
-
|
|
5927
5913
|
function FilePlayer() {
|
|
5914
|
+
var _getPrototypeOf2;
|
|
5915
|
+
|
|
5928
5916
|
var _this;
|
|
5929
5917
|
|
|
5930
5918
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5933,7 +5921,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5933
5921
|
_args[_key] = arguments[_key];
|
|
5934
5922
|
}
|
|
5935
5923
|
|
|
5936
|
-
_this =
|
|
5924
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5937
5925
|
|
|
5938
5926
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5939
5927
|
var _this$props;
|
|
@@ -6020,19 +6008,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6020
6008
|
|
|
6021
6009
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6022
6010
|
if (typeof source === 'string') {
|
|
6023
|
-
return
|
|
6011
|
+
return _react["default"].createElement("source", {
|
|
6024
6012
|
key: index,
|
|
6025
6013
|
src: source
|
|
6026
6014
|
});
|
|
6027
6015
|
}
|
|
6028
6016
|
|
|
6029
|
-
return
|
|
6017
|
+
return _react["default"].createElement("source", _extends({
|
|
6030
6018
|
key: index
|
|
6031
6019
|
}, source));
|
|
6032
6020
|
});
|
|
6033
6021
|
|
|
6034
6022
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6035
|
-
return
|
|
6023
|
+
return _react["default"].createElement("track", _extends({
|
|
6036
6024
|
key: index
|
|
6037
6025
|
}, track));
|
|
6038
6026
|
});
|
|
@@ -6070,10 +6058,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6070
6058
|
key: "componentWillUnmount",
|
|
6071
6059
|
value: function componentWillUnmount() {
|
|
6072
6060
|
this.removeListeners(this.player);
|
|
6073
|
-
|
|
6074
|
-
if (this.hls) {
|
|
6075
|
-
this.hls.destroy();
|
|
6076
|
-
}
|
|
6077
6061
|
}
|
|
6078
6062
|
}, {
|
|
6079
6063
|
key: "addListeners",
|
|
@@ -6204,6 +6188,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6204
6188
|
value: function stop() {
|
|
6205
6189
|
this.player.removeAttribute('src');
|
|
6206
6190
|
|
|
6191
|
+
if (this.hls) {
|
|
6192
|
+
this.hls.destroy();
|
|
6193
|
+
}
|
|
6194
|
+
|
|
6207
6195
|
if (this.dash) {
|
|
6208
6196
|
this.dash.reset();
|
|
6209
6197
|
}
|
|
@@ -6315,7 +6303,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6315
6303
|
width: width === 'auto' ? width : '100%',
|
|
6316
6304
|
height: height === 'auto' ? height : '100%'
|
|
6317
6305
|
};
|
|
6318
|
-
return
|
|
6306
|
+
return _react["default"].createElement(Element, _extends({
|
|
6319
6307
|
ref: this.ref,
|
|
6320
6308
|
src: this.getSource(url),
|
|
6321
6309
|
style: style,
|
|
@@ -6387,7 +6375,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6387
6375
|
});
|
|
6388
6376
|
exports["default"] = void 0;
|
|
6389
6377
|
|
|
6390
|
-
var _react = _interopRequireWildcard(
|
|
6378
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6391
6379
|
|
|
6392
6380
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6393
6381
|
|
|
@@ -6405,16 +6393,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6405
6393
|
|
|
6406
6394
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6407
6395
|
|
|
6408
|
-
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); }; }
|
|
6409
|
-
|
|
6410
6396
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6411
6397
|
|
|
6412
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6413
|
-
|
|
6414
|
-
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; } }
|
|
6415
|
-
|
|
6416
6398
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6417
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
|
+
|
|
6418
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); }
|
|
6419
6403
|
|
|
6420
6404
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6423,12 +6407,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6423
6407
|
|
|
6424
6408
|
var ICON_SIZE = '64px';
|
|
6425
6409
|
|
|
6426
|
-
var Preview =
|
|
6410
|
+
var Preview =
|
|
6411
|
+
/*#__PURE__*/
|
|
6412
|
+
function (_Component) {
|
|
6427
6413
|
_inherits(Preview, _Component);
|
|
6428
6414
|
|
|
6429
|
-
var _super = _createSuper(Preview);
|
|
6430
|
-
|
|
6431
6415
|
function Preview() {
|
|
6416
|
+
var _getPrototypeOf2;
|
|
6417
|
+
|
|
6432
6418
|
var _this;
|
|
6433
6419
|
|
|
6434
6420
|
_classCallCheck(this, Preview);
|
|
@@ -6437,7 +6423,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6437
6423
|
args[_key] = arguments[_key];
|
|
6438
6424
|
}
|
|
6439
6425
|
|
|
6440
|
-
_this =
|
|
6426
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6441
6427
|
|
|
6442
6428
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6443
6429
|
|
|
@@ -6535,15 +6521,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6535
6521
|
}
|
|
6536
6522
|
};
|
|
6537
6523
|
|
|
6538
|
-
var defaultPlayIcon =
|
|
6524
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6539
6525
|
style: styles.shadow,
|
|
6540
6526
|
className: "react-player__shadow"
|
|
6541
|
-
},
|
|
6527
|
+
}, _react["default"].createElement("div", {
|
|
6542
6528
|
style: styles.playIcon,
|
|
6543
6529
|
className: "react-player__play-icon"
|
|
6544
6530
|
}));
|
|
6545
6531
|
|
|
6546
|
-
return
|
|
6532
|
+
return _react["default"].createElement("div", {
|
|
6547
6533
|
style: styles.preview,
|
|
6548
6534
|
className: "react-player__preview",
|
|
6549
6535
|
onClick: onClick
|
|
@@ -6566,7 +6552,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6566
6552
|
});
|
|
6567
6553
|
exports["default"] = renderPreloadPlayers;
|
|
6568
6554
|
|
|
6569
|
-
var _react = _interopRequireDefault(
|
|
6555
|
+
var _react = _interopRequireDefault(React__default);
|
|
6570
6556
|
|
|
6571
6557
|
var _Player = _interopRequireDefault(Player_1);
|
|
6572
6558
|
|
|
@@ -6580,12 +6566,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6580
6566
|
|
|
6581
6567
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6582
6568
|
|
|
6583
|
-
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; } } }; }
|
|
6584
|
-
|
|
6585
|
-
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); }
|
|
6586
|
-
|
|
6587
|
-
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; }
|
|
6588
|
-
|
|
6589
6569
|
var PRELOAD_PLAYERS = [{
|
|
6590
6570
|
Player: YouTube_1.YouTube,
|
|
6591
6571
|
configKey: 'youtube',
|
|
@@ -6606,16 +6586,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6606
6586
|
|
|
6607
6587
|
function renderPreloadPlayers(url, controls, config) {
|
|
6608
6588
|
var players = [];
|
|
6609
|
-
|
|
6610
|
-
var
|
|
6611
|
-
|
|
6589
|
+
var _iteratorNormalCompletion = true;
|
|
6590
|
+
var _didIteratorError = false;
|
|
6591
|
+
var _iteratorError = undefined;
|
|
6612
6592
|
|
|
6613
6593
|
try {
|
|
6614
|
-
for (_iterator.
|
|
6594
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6615
6595
|
var player = _step.value;
|
|
6616
6596
|
|
|
6617
6597
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6618
|
-
players.push(
|
|
6598
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6619
6599
|
key: player.Player.displayName,
|
|
6620
6600
|
activePlayer: player.Player,
|
|
6621
6601
|
url: player.url,
|
|
@@ -6627,9 +6607,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6627
6607
|
}
|
|
6628
6608
|
}
|
|
6629
6609
|
} catch (err) {
|
|
6630
|
-
|
|
6610
|
+
_didIteratorError = true;
|
|
6611
|
+
_iteratorError = err;
|
|
6631
6612
|
} finally {
|
|
6632
|
-
|
|
6613
|
+
try {
|
|
6614
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6615
|
+
_iterator["return"]();
|
|
6616
|
+
}
|
|
6617
|
+
} finally {
|
|
6618
|
+
if (_didIteratorError) {
|
|
6619
|
+
throw _iteratorError;
|
|
6620
|
+
}
|
|
6621
|
+
}
|
|
6633
6622
|
}
|
|
6634
6623
|
|
|
6635
6624
|
return players;
|
|
@@ -6705,7 +6694,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6705
6694
|
});
|
|
6706
6695
|
exports["default"] = void 0;
|
|
6707
6696
|
|
|
6708
|
-
var _react = _interopRequireWildcard(
|
|
6697
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6709
6698
|
|
|
6710
6699
|
|
|
6711
6700
|
|
|
@@ -6753,17 +6742,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6753
6742
|
|
|
6754
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); }
|
|
6755
6744
|
|
|
6756
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6757
|
-
|
|
6758
|
-
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."); }
|
|
6759
|
-
|
|
6760
|
-
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(); }
|
|
6761
6746
|
|
|
6762
|
-
function
|
|
6747
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6763
6748
|
|
|
6764
|
-
function
|
|
6749
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6765
6750
|
|
|
6766
|
-
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; } }
|
|
6767
6752
|
|
|
6768
6753
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6769
6754
|
|
|
@@ -6771,16 +6756,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6771
6756
|
|
|
6772
6757
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6773
6758
|
|
|
6774
|
-
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); }; }
|
|
6775
|
-
|
|
6776
6759
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6777
6760
|
|
|
6778
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6779
|
-
|
|
6780
|
-
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; } }
|
|
6781
|
-
|
|
6782
6761
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6783
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
|
+
|
|
6784
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); }
|
|
6785
6766
|
|
|
6786
6767
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6790,12 +6771,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6790
6771
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6791
6772
|
var customPlayers = [];
|
|
6792
6773
|
|
|
6793
|
-
var ReactPlayer =
|
|
6774
|
+
var ReactPlayer =
|
|
6775
|
+
/*#__PURE__*/
|
|
6776
|
+
function (_Component) {
|
|
6794
6777
|
_inherits(ReactPlayer, _Component);
|
|
6795
6778
|
|
|
6796
|
-
var _super = _createSuper(ReactPlayer);
|
|
6797
|
-
|
|
6798
6779
|
function ReactPlayer() {
|
|
6780
|
+
var _getPrototypeOf2;
|
|
6781
|
+
|
|
6799
6782
|
var _this;
|
|
6800
6783
|
|
|
6801
6784
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6804,7 +6787,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6804
6787
|
args[_key] = arguments[_key];
|
|
6805
6788
|
}
|
|
6806
6789
|
|
|
6807
|
-
_this =
|
|
6790
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6808
6791
|
|
|
6809
6792
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6810
6793
|
|
|
@@ -6915,7 +6898,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6915
6898
|
key: "renderActivePlayer",
|
|
6916
6899
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6917
6900
|
if (!url) return null;
|
|
6918
|
-
return
|
|
6901
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6919
6902
|
key: activePlayer.displayName,
|
|
6920
6903
|
ref: this.activePlayerRef,
|
|
6921
6904
|
config: this.config,
|
|
@@ -6952,14 +6935,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6952
6935
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6953
6936
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6954
6937
|
|
|
6955
|
-
var preview =
|
|
6938
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6956
6939
|
url: url,
|
|
6957
6940
|
light: light,
|
|
6958
6941
|
playIcon: playIcon,
|
|
6959
6942
|
onClick: this.handleClickPreview
|
|
6960
6943
|
});
|
|
6961
6944
|
|
|
6962
|
-
return
|
|
6945
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6963
6946
|
ref: this.wrapperRef,
|
|
6964
6947
|
style: _objectSpread({}, style, {
|
|
6965
6948
|
width: width,
|
|
@@ -7019,20 +7002,20 @@ var Audio = function Audio(_ref) {
|
|
|
7019
7002
|
var node = _ref.node;
|
|
7020
7003
|
|
|
7021
7004
|
if (node.uploadAudio) {
|
|
7022
|
-
return
|
|
7005
|
+
return React__default.createElement(
|
|
7023
7006
|
'div',
|
|
7024
7007
|
{ className: 'audio d-block text-center mb-3' },
|
|
7025
|
-
|
|
7008
|
+
React__default.createElement(
|
|
7026
7009
|
'audio',
|
|
7027
7010
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7028
|
-
|
|
7029
|
-
|
|
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' }),
|
|
7030
7013
|
'Your browser does not support the audio element.'
|
|
7031
7014
|
),
|
|
7032
|
-
node.caption &&
|
|
7015
|
+
node.caption && React__default.createElement(
|
|
7033
7016
|
'p',
|
|
7034
7017
|
{ style: { fontSize: '.9rem' } },
|
|
7035
|
-
|
|
7018
|
+
React__default.createElement(
|
|
7036
7019
|
'em',
|
|
7037
7020
|
null,
|
|
7038
7021
|
node.caption
|
|
@@ -7042,15 +7025,15 @@ var Audio = function Audio(_ref) {
|
|
|
7042
7025
|
} else if (node.audioFilePth) {
|
|
7043
7026
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7044
7027
|
if (hostname === 'embeds.audioboom.com') {
|
|
7045
|
-
return
|
|
7028
|
+
return React__default.createElement(
|
|
7046
7029
|
'div',
|
|
7047
7030
|
null,
|
|
7048
|
-
|
|
7031
|
+
React__default.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7049
7032
|
' ',
|
|
7050
|
-
node.caption &&
|
|
7033
|
+
node.caption && React__default.createElement(
|
|
7051
7034
|
'p',
|
|
7052
7035
|
{ style: { fontSize: '.9rem' } },
|
|
7053
|
-
|
|
7036
|
+
React__default.createElement(
|
|
7054
7037
|
'em',
|
|
7055
7038
|
null,
|
|
7056
7039
|
node.caption
|
|
@@ -7058,14 +7041,14 @@ var Audio = function Audio(_ref) {
|
|
|
7058
7041
|
)
|
|
7059
7042
|
);
|
|
7060
7043
|
}
|
|
7061
|
-
return
|
|
7044
|
+
return React__default.createElement(
|
|
7062
7045
|
'div',
|
|
7063
7046
|
{ className: 'audio' },
|
|
7064
|
-
|
|
7065
|
-
node.caption &&
|
|
7047
|
+
React__default.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7048
|
+
node.caption && React__default.createElement(
|
|
7066
7049
|
'p',
|
|
7067
7050
|
{ style: { fontSize: '.9rem' } },
|
|
7068
|
-
|
|
7051
|
+
React__default.createElement(
|
|
7069
7052
|
'em',
|
|
7070
7053
|
null,
|
|
7071
7054
|
node.caption
|
|
@@ -7083,34 +7066,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7083
7066
|
var profileImage = arguments[6];
|
|
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 '
|
|
@@ -9422,6 +9405,8 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9422
9405
|
return null;
|
|
9423
9406
|
};
|
|
9424
9407
|
|
|
9408
|
+
var offsetHeightBuffer = 50;
|
|
9409
|
+
|
|
9425
9410
|
var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
9426
9411
|
var articleId = props.articleId,
|
|
9427
9412
|
_props$node = props.node,
|
|
@@ -9448,18 +9433,294 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9448
9433
|
};
|
|
9449
9434
|
}, []);
|
|
9450
9435
|
|
|
9451
|
-
|
|
9452
|
-
|
|
9453
|
-
|
|
9454
|
-
|
|
9455
|
-
|
|
9456
|
-
|
|
9457
|
-
|
|
9458
|
-
|
|
9436
|
+
var _useState = useState(100),
|
|
9437
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
9438
|
+
offsetHeight = _useState2[0],
|
|
9439
|
+
setOffsetHeight = _useState2[1];
|
|
9440
|
+
|
|
9441
|
+
useEffect(function () {
|
|
9442
|
+
var hambergerNav = document.querySelector('#navbar-ham');
|
|
9443
|
+
var header = document.querySelector('header');
|
|
9444
|
+
if (hambergerNav) setOffsetHeight(hambergerNav.offsetHeight);else if (header) setOffsetHeight(header.offsetHeight);
|
|
9445
|
+
}, []);
|
|
9446
|
+
|
|
9447
|
+
return React__default.createElement(
|
|
9448
|
+
React__default.Fragment,
|
|
9449
|
+
null,
|
|
9450
|
+
React__default.createElement(
|
|
9451
|
+
Head,
|
|
9452
|
+
null,
|
|
9453
|
+
React__default.createElement('script', {
|
|
9454
|
+
dangerouslySetInnerHTML: {
|
|
9455
|
+
__html: 'history.scrollRestoration = "manual"'
|
|
9456
|
+
}
|
|
9457
|
+
})
|
|
9458
|
+
),
|
|
9459
|
+
React__default.createElement(
|
|
9460
|
+
'div',
|
|
9461
|
+
{ id: elementId },
|
|
9462
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers }),
|
|
9463
|
+
React__default.createElement(
|
|
9464
|
+
'style',
|
|
9465
|
+
{ jsx: 'true' },
|
|
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 '
|
|
9467
|
+
)
|
|
9459
9468
|
)
|
|
9460
9469
|
);
|
|
9461
9470
|
};
|
|
9462
9471
|
|
|
9472
|
+
var objectWithoutProperties = createCommonjsModule(function (module, exports) {
|
|
9473
|
+
|
|
9474
|
+
exports.__esModule = true;
|
|
9475
|
+
|
|
9476
|
+
exports.default = function (obj, keys) {
|
|
9477
|
+
var target = {};
|
|
9478
|
+
|
|
9479
|
+
for (var i in obj) {
|
|
9480
|
+
if (keys.indexOf(i) >= 0) continue;
|
|
9481
|
+
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
|
|
9482
|
+
target[i] = obj[i];
|
|
9483
|
+
}
|
|
9484
|
+
|
|
9485
|
+
return target;
|
|
9486
|
+
};
|
|
9487
|
+
});
|
|
9488
|
+
|
|
9489
|
+
unwrapExports(objectWithoutProperties);
|
|
9490
|
+
|
|
9491
|
+
var ScriptTag_1 = createCommonjsModule(function (module, exports) {
|
|
9492
|
+
|
|
9493
|
+
exports.__esModule = true;
|
|
9494
|
+
|
|
9495
|
+
|
|
9496
|
+
|
|
9497
|
+
var _extends3 = _interopRequireDefault(_extends$2);
|
|
9498
|
+
|
|
9499
|
+
|
|
9500
|
+
|
|
9501
|
+
var _objectWithoutProperties3 = _interopRequireDefault(objectWithoutProperties);
|
|
9502
|
+
|
|
9503
|
+
|
|
9504
|
+
|
|
9505
|
+
var _classCallCheck3 = _interopRequireDefault(classCallCheck);
|
|
9506
|
+
|
|
9507
|
+
|
|
9508
|
+
|
|
9509
|
+
var _possibleConstructorReturn3 = _interopRequireDefault(possibleConstructorReturn);
|
|
9510
|
+
|
|
9511
|
+
|
|
9512
|
+
|
|
9513
|
+
var _inherits3 = _interopRequireDefault(inherits);
|
|
9514
|
+
|
|
9515
|
+
|
|
9516
|
+
|
|
9517
|
+
var _react2 = _interopRequireDefault(React__default);
|
|
9518
|
+
|
|
9519
|
+
|
|
9520
|
+
|
|
9521
|
+
var _propTypes2 = _interopRequireDefault(PropTypes);
|
|
9522
|
+
|
|
9523
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9524
|
+
var noop = function noop() {};
|
|
9525
|
+
|
|
9526
|
+
var ScriptTag = function (_Component) {
|
|
9527
|
+
(0, _inherits3.default)(ScriptTag, _Component);
|
|
9528
|
+
|
|
9529
|
+
ScriptTag.removeNode = function removeNode(node) {
|
|
9530
|
+
if (node) {
|
|
9531
|
+
node.parentNode.removeChild(node);
|
|
9532
|
+
}
|
|
9533
|
+
};
|
|
9534
|
+
|
|
9535
|
+
function ScriptTag(props, context) {
|
|
9536
|
+
(0, _classCallCheck3.default)(this, ScriptTag);
|
|
9537
|
+
|
|
9538
|
+
var _this = (0, _possibleConstructorReturn3.default)(this, _Component.call(this, props, context));
|
|
9539
|
+
|
|
9540
|
+
_this.domRef = null;
|
|
9541
|
+
_this.state = {
|
|
9542
|
+
isHydrated: props.isHydrating,
|
|
9543
|
+
additionalNode: null,
|
|
9544
|
+
removeAdditionalNode: null
|
|
9545
|
+
};
|
|
9546
|
+
return _this;
|
|
9547
|
+
}
|
|
9548
|
+
|
|
9549
|
+
ScriptTag.prototype.appendAdditionalElement = function appendAdditionalElement() {
|
|
9550
|
+
var _props = this.props,
|
|
9551
|
+
onError = _props.onError,
|
|
9552
|
+
onLoad = _props.onLoad,
|
|
9553
|
+
nonce = _props.nonce;
|
|
9554
|
+
|
|
9555
|
+
// Create a new HTML script element
|
|
9556
|
+
|
|
9557
|
+
var newElement = document.createElement("script");
|
|
9558
|
+
|
|
9559
|
+
// Copy all attribute values
|
|
9560
|
+
for (var i = 0, len = this.domRef.attributes.length; i < len; i++) {
|
|
9561
|
+
var attr = this.domRef.attributes[i];
|
|
9562
|
+
if (attr.nodeName === 'nonce') {
|
|
9563
|
+
// The browser clears the nonce value - grab from props
|
|
9564
|
+
newElement.setAttribute(attr.nodeName, nonce);
|
|
9565
|
+
} else {
|
|
9566
|
+
newElement.setAttribute(attr.nodeName, attr.nodeValue);
|
|
9567
|
+
}
|
|
9568
|
+
}
|
|
9569
|
+
|
|
9570
|
+
// Copy the inner script
|
|
9571
|
+
if (this.domRef.src === '' && this.domRef.innerHTML && this.domRef.innerHTML !== '') {
|
|
9572
|
+
newElement.innerHTML = this.domRef.innerHTML;
|
|
9573
|
+
}
|
|
9574
|
+
|
|
9575
|
+
// Bind event listeners
|
|
9576
|
+
newElement.addEventListener('load', onLoad);
|
|
9577
|
+
newElement.addEventListener('error', onError);
|
|
9578
|
+
|
|
9579
|
+
// Append the new script tag
|
|
9580
|
+
this.domRef.parentNode.appendChild(newElement);
|
|
9581
|
+
return newElement;
|
|
9582
|
+
};
|
|
9583
|
+
|
|
9584
|
+
ScriptTag.prototype.componentDidMount = function componentDidMount() {
|
|
9585
|
+
var isHydrated = this.state.isHydrated;
|
|
9586
|
+
|
|
9587
|
+
if (isHydrated) {
|
|
9588
|
+
// was rendered on server, don't replace elements when hydrating
|
|
9589
|
+
return;
|
|
9590
|
+
}
|
|
9591
|
+
|
|
9592
|
+
this.setState({
|
|
9593
|
+
additionalNode: this.appendAdditionalElement(),
|
|
9594
|
+
removeAdditionalNode: null
|
|
9595
|
+
});
|
|
9596
|
+
};
|
|
9597
|
+
|
|
9598
|
+
ScriptTag.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
|
9599
|
+
// This logic assumes that the <script> only need to be updated if the 'src' or 'innerHTML' has changed
|
|
9600
|
+
// - this prevents the <script> from updating unnecessarily, which prevents additional 'onload' events
|
|
9601
|
+
|
|
9602
|
+
// This isn't perfect - but it keeps the component very simple, and should cover most use-cases
|
|
9603
|
+
// Other props SHOULD be assigned at the same time as either the 'src' or 'innerHTML' property
|
|
9604
|
+
// -> If this is to change and support updating on ANY prop change, the 'appendAdditionalElement()' method
|
|
9605
|
+
// and state management will need to be modified to manipulate the DOM script tag based on each prop change.
|
|
9606
|
+
// This really complicates the component - for now we'll leave it as is.
|
|
9607
|
+
var _props2 = this.props,
|
|
9608
|
+
src = _props2.src,
|
|
9609
|
+
dangerouslySetInnerHTML = _props2.dangerouslySetInnerHTML;
|
|
9610
|
+
|
|
9611
|
+
if (src && src === nextProps.src) {
|
|
9612
|
+
// The 'src' attribute has not changed
|
|
9613
|
+
return;
|
|
9614
|
+
}
|
|
9615
|
+
|
|
9616
|
+
if (dangerouslySetInnerHTML && dangerouslySetInnerHTML.__html === nextProps.dangerouslySetInnerHTML.__html) {
|
|
9617
|
+
// The 'dangerouslySetInnerHTML' attribute has not changed
|
|
9618
|
+
return;
|
|
9619
|
+
}
|
|
9620
|
+
|
|
9621
|
+
this.setState({
|
|
9622
|
+
removeAdditionalNode: this.state.additionalNode,
|
|
9623
|
+
additionalNode: null
|
|
9624
|
+
});
|
|
9625
|
+
};
|
|
9626
|
+
|
|
9627
|
+
ScriptTag.prototype.componentWillUpdate = function componentWillUpdate(nextProps, nextState) {
|
|
9628
|
+
ScriptTag.removeNode(nextState.removeAdditionalNode);
|
|
9629
|
+
};
|
|
9630
|
+
|
|
9631
|
+
ScriptTag.prototype.componentDidUpdate = function componentDidUpdate() {
|
|
9632
|
+
var _state = this.state,
|
|
9633
|
+
additionalNode = _state.additionalNode,
|
|
9634
|
+
removeAdditionalNode = _state.removeAdditionalNode;
|
|
9635
|
+
|
|
9636
|
+
if (additionalNode === null) {
|
|
9637
|
+
this.setState({
|
|
9638
|
+
additionalNode: this.appendAdditionalElement()
|
|
9639
|
+
});
|
|
9640
|
+
}
|
|
9641
|
+
|
|
9642
|
+
if (removeAdditionalNode !== null) {
|
|
9643
|
+
// Was removed in 'componentWillUpdate', but can not update state there
|
|
9644
|
+
this.setState({
|
|
9645
|
+
removeAdditionalNode: null
|
|
9646
|
+
});
|
|
9647
|
+
}
|
|
9648
|
+
};
|
|
9649
|
+
|
|
9650
|
+
ScriptTag.prototype.componentWillUnmount = function componentWillUnmount() {
|
|
9651
|
+
ScriptTag.removeNode(this.state.removeAdditionalNode);
|
|
9652
|
+
ScriptTag.removeNode(this.state.additionalNode);
|
|
9653
|
+
};
|
|
9654
|
+
|
|
9655
|
+
ScriptTag.prototype.render = function render() {
|
|
9656
|
+
var _this2 = this;
|
|
9657
|
+
|
|
9658
|
+
var additionalNode = this.state.additionalNode;
|
|
9659
|
+
|
|
9660
|
+
if (additionalNode !== null) {
|
|
9661
|
+
return null;
|
|
9662
|
+
}
|
|
9663
|
+
|
|
9664
|
+
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9665
|
+
// eslint-disable-next-line no-unused-vars
|
|
9666
|
+
var _props3 = this.props,
|
|
9667
|
+
isHydrating = _props3.isHydrating,
|
|
9668
|
+
tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9669
|
+
|
|
9670
|
+
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9671
|
+
return _this2.domRef = tag;
|
|
9672
|
+
} }));
|
|
9673
|
+
};
|
|
9674
|
+
|
|
9675
|
+
return ScriptTag;
|
|
9676
|
+
}(React__default.Component);
|
|
9677
|
+
|
|
9678
|
+
ScriptTag.propTypes = {
|
|
9679
|
+
/**
|
|
9680
|
+
* True if the <ScriptTag> is being hydrated on the client, otherwise false.
|
|
9681
|
+
*/
|
|
9682
|
+
isHydrating: _propTypes2.default.bool,
|
|
9683
|
+
|
|
9684
|
+
// Standard <script> tag props
|
|
9685
|
+
async: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.number]),
|
|
9686
|
+
crossOrigin: _propTypes2.default.string,
|
|
9687
|
+
defer: _propTypes2.default.bool,
|
|
9688
|
+
integrity: _propTypes2.default.string,
|
|
9689
|
+
nonce: _propTypes2.default.string,
|
|
9690
|
+
src: _propTypes2.default.string,
|
|
9691
|
+
text: _propTypes2.default.string,
|
|
9692
|
+
type: _propTypes2.default.string,
|
|
9693
|
+
dangerouslySetInnerHTML: _propTypes2.default.object,
|
|
9694
|
+
|
|
9695
|
+
// globals
|
|
9696
|
+
onError: _propTypes2.default.func,
|
|
9697
|
+
onLoad: _propTypes2.default.func
|
|
9698
|
+
};
|
|
9699
|
+
ScriptTag.defaultProps = {
|
|
9700
|
+
isHydrating: false,
|
|
9701
|
+
onError: noop,
|
|
9702
|
+
onLoad: noop
|
|
9703
|
+
};
|
|
9704
|
+
exports.default = ScriptTag;
|
|
9705
|
+
});
|
|
9706
|
+
|
|
9707
|
+
unwrapExports(ScriptTag_1);
|
|
9708
|
+
|
|
9709
|
+
var lib = createCommonjsModule(function (module, exports) {
|
|
9710
|
+
|
|
9711
|
+
exports.__esModule = true;
|
|
9712
|
+
|
|
9713
|
+
|
|
9714
|
+
|
|
9715
|
+
var _ScriptTag2 = _interopRequireDefault(ScriptTag_1);
|
|
9716
|
+
|
|
9717
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9718
|
+
|
|
9719
|
+
exports.default = _ScriptTag2.default;
|
|
9720
|
+
});
|
|
9721
|
+
|
|
9722
|
+
var ScriptTag = unwrapExports(lib);
|
|
9723
|
+
|
|
9463
9724
|
var enterpriseDomainName = 'mjhlifesciences';
|
|
9464
9725
|
|
|
9465
9726
|
var FormAssembly = function FormAssembly(props) {
|
|
@@ -9491,11 +9752,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9491
9752
|
}, []);
|
|
9492
9753
|
|
|
9493
9754
|
if (iframeSrc) {
|
|
9494
|
-
return
|
|
9755
|
+
return React__default.createElement(
|
|
9495
9756
|
'section',
|
|
9496
9757
|
{ className: 'form-assembly' },
|
|
9497
|
-
|
|
9498
|
-
|
|
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 })
|
|
9499
9760
|
);
|
|
9500
9761
|
}
|
|
9501
9762
|
|
|
@@ -9532,27 +9793,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9532
9793
|
return window.removeEventListener('resize', handleResize);
|
|
9533
9794
|
};
|
|
9534
9795
|
}, []);
|
|
9535
|
-
return
|
|
9796
|
+
return React__default.createElement(
|
|
9536
9797
|
'div',
|
|
9537
9798
|
{ className: 'blockTableHolder', ref: holder },
|
|
9538
|
-
|
|
9799
|
+
React__default.createElement(
|
|
9539
9800
|
'div',
|
|
9540
9801
|
{ className: 'blockTable' },
|
|
9541
9802
|
rows && rows.map(function (row) {
|
|
9542
|
-
return
|
|
9803
|
+
return React__default.createElement(
|
|
9543
9804
|
'div',
|
|
9544
9805
|
{ className: 'blockTableRow' },
|
|
9545
9806
|
row.cells && row.cells.map(function (cell) {
|
|
9546
|
-
return
|
|
9807
|
+
return React__default.createElement(
|
|
9547
9808
|
'div',
|
|
9548
9809
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9549
|
-
|
|
9810
|
+
React__default.createElement(BlockContent, _extends$1({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9550
9811
|
);
|
|
9551
9812
|
})
|
|
9552
9813
|
);
|
|
9553
9814
|
})
|
|
9554
9815
|
),
|
|
9555
|
-
|
|
9816
|
+
React__default.createElement(
|
|
9556
9817
|
'style',
|
|
9557
9818
|
{ jsx: true },
|
|
9558
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 '
|
|
@@ -9631,12 +9892,12 @@ var getSerializers = function getSerializers() {
|
|
|
9631
9892
|
var node = _ref.node;
|
|
9632
9893
|
var url = node.url;
|
|
9633
9894
|
|
|
9634
|
-
return
|
|
9895
|
+
return React__default.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9635
9896
|
},
|
|
9636
9897
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9637
9898
|
var node = _ref2.node;
|
|
9638
9899
|
|
|
9639
|
-
return
|
|
9900
|
+
return React__default.createElement(YouTubeGallery, {
|
|
9640
9901
|
nodes: node,
|
|
9641
9902
|
article: article,
|
|
9642
9903
|
meta: meta,
|
|
@@ -9650,7 +9911,7 @@ var getSerializers = function getSerializers() {
|
|
|
9650
9911
|
articleSeries: function articleSeries(_ref3) {
|
|
9651
9912
|
var node = _ref3.node;
|
|
9652
9913
|
|
|
9653
|
-
return
|
|
9914
|
+
return React__default.createElement(ArticleSeries, {
|
|
9654
9915
|
nodes: node,
|
|
9655
9916
|
accountIDs: videoAccountIDs || {},
|
|
9656
9917
|
pageview: pageview,
|
|
@@ -9663,61 +9924,61 @@ var getSerializers = function getSerializers() {
|
|
|
9663
9924
|
figure: function figure(_ref4) {
|
|
9664
9925
|
var node = _ref4.node;
|
|
9665
9926
|
|
|
9666
|
-
return
|
|
9927
|
+
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9667
9928
|
},
|
|
9668
9929
|
multifigure: function multifigure(_ref5) {
|
|
9669
9930
|
var node = _ref5.node;
|
|
9670
9931
|
|
|
9671
|
-
return
|
|
9932
|
+
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9672
9933
|
},
|
|
9673
9934
|
slideshow: function slideshow(_ref6) {
|
|
9674
9935
|
var node = _ref6.node;
|
|
9675
9936
|
var slides = node.slides;
|
|
9676
9937
|
|
|
9677
|
-
return
|
|
9938
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9678
9939
|
},
|
|
9679
9940
|
sidebar: function sidebar(_ref7) {
|
|
9680
9941
|
var node = _ref7.node;
|
|
9681
9942
|
var caption = node.caption,
|
|
9682
9943
|
content = node.content;
|
|
9683
9944
|
|
|
9684
|
-
return
|
|
9945
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9685
9946
|
},
|
|
9686
9947
|
datatable: function datatable(_ref8) {
|
|
9687
9948
|
var node = _ref8.node;
|
|
9688
9949
|
var table = node.table;
|
|
9689
9950
|
|
|
9690
|
-
return
|
|
9951
|
+
return React__default.createElement(TableShow, { rows: table.rows });
|
|
9691
9952
|
},
|
|
9692
9953
|
media: function media(_ref9) {
|
|
9693
9954
|
var node = _ref9.node;
|
|
9694
9955
|
|
|
9695
|
-
return
|
|
9956
|
+
return React__default.createElement(Media, { node: node, client: client });
|
|
9696
9957
|
},
|
|
9697
9958
|
iframe: function iframe(_ref10) {
|
|
9698
9959
|
var node = _ref10.node;
|
|
9699
9960
|
|
|
9700
|
-
return
|
|
9961
|
+
return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9701
9962
|
},
|
|
9702
9963
|
video: function video(_ref11) {
|
|
9703
9964
|
var node = _ref11.node;
|
|
9704
9965
|
|
|
9705
|
-
return
|
|
9966
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9706
9967
|
},
|
|
9707
9968
|
audio: function audio(_ref12) {
|
|
9708
9969
|
var node = _ref12.node;
|
|
9709
9970
|
|
|
9710
|
-
return
|
|
9971
|
+
return React__default.createElement(Audio, { node: node });
|
|
9711
9972
|
},
|
|
9712
9973
|
poll: function poll(_ref13) {
|
|
9713
9974
|
var node = _ref13.node;
|
|
9714
9975
|
|
|
9715
|
-
return
|
|
9976
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9716
9977
|
},
|
|
9717
9978
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9718
9979
|
var node = _ref14.node;
|
|
9719
9980
|
|
|
9720
|
-
return
|
|
9981
|
+
return React__default.createElement(Poll$1, {
|
|
9721
9982
|
node: node,
|
|
9722
9983
|
client: client,
|
|
9723
9984
|
pageview: pageview,
|
|
@@ -9731,35 +9992,35 @@ var getSerializers = function getSerializers() {
|
|
|
9731
9992
|
var node = _ref15.node;
|
|
9732
9993
|
var quizzes = node.quizzes;
|
|
9733
9994
|
|
|
9734
|
-
return
|
|
9995
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9735
9996
|
},
|
|
9736
9997
|
leads: function leads(_ref16) {
|
|
9737
9998
|
var node = _ref16.node;
|
|
9738
9999
|
var leadID = node.leadID;
|
|
9739
10000
|
|
|
9740
10001
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9741
|
-
return
|
|
10002
|
+
return React__default.createElement(Leads, { url: url });
|
|
9742
10003
|
},
|
|
9743
10004
|
slideshows: function slideshows(_ref17) {
|
|
9744
10005
|
var node = _ref17.node;
|
|
9745
10006
|
|
|
9746
|
-
return
|
|
10007
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9747
10008
|
},
|
|
9748
10009
|
nativeAd: function nativeAd(_ref18) {
|
|
9749
10010
|
var node = _ref18.node;
|
|
9750
10011
|
|
|
9751
|
-
return
|
|
10012
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
9752
10013
|
},
|
|
9753
10014
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
9754
10015
|
var node = _ref19.node;
|
|
9755
10016
|
|
|
9756
|
-
return
|
|
10017
|
+
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9757
10018
|
},
|
|
9758
10019
|
hrtag: function hrtag() {
|
|
9759
|
-
return
|
|
10020
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9760
10021
|
},
|
|
9761
10022
|
brtag: function brtag() {
|
|
9762
|
-
return
|
|
10023
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
9763
10024
|
},
|
|
9764
10025
|
formstack: function formstack(_ref20) {
|
|
9765
10026
|
var node = _ref20.node;
|
|
@@ -9767,29 +10028,29 @@ var getSerializers = function getSerializers() {
|
|
|
9767
10028
|
Caption = node.Caption,
|
|
9768
10029
|
needSegmentSupport = node.needSegmentSupport;
|
|
9769
10030
|
|
|
9770
|
-
return
|
|
10031
|
+
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
9771
10032
|
},
|
|
9772
10033
|
formassembly: FormAssembly,
|
|
9773
10034
|
multimedia: function multimedia(_ref21) {
|
|
9774
10035
|
var node = _ref21.node;
|
|
9775
10036
|
|
|
9776
|
-
return
|
|
10037
|
+
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
9777
10038
|
},
|
|
9778
10039
|
blockTable: function blockTable(_ref22) {
|
|
9779
10040
|
var node = _ref22.node;
|
|
9780
|
-
return
|
|
10041
|
+
return React__default.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9781
10042
|
}
|
|
9782
10043
|
},
|
|
9783
10044
|
marks: {
|
|
9784
10045
|
superscript: function superscript(props) {
|
|
9785
|
-
return
|
|
10046
|
+
return React__default.createElement(
|
|
9786
10047
|
'sup',
|
|
9787
10048
|
null,
|
|
9788
10049
|
props.children
|
|
9789
10050
|
);
|
|
9790
10051
|
},
|
|
9791
10052
|
subscript: function subscript(props) {
|
|
9792
|
-
return
|
|
10053
|
+
return React__default.createElement(
|
|
9793
10054
|
'sub',
|
|
9794
10055
|
null,
|
|
9795
10056
|
props.children
|
|
@@ -9806,7 +10067,7 @@ var getSerializers = function getSerializers() {
|
|
|
9806
10067
|
if (href && href.charAt(0) === '#') {
|
|
9807
10068
|
var elementId = href.slice(1);
|
|
9808
10069
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9809
|
-
return
|
|
10070
|
+
return React__default.createElement(
|
|
9810
10071
|
'a',
|
|
9811
10072
|
{ onClick: function onClick() {
|
|
9812
10073
|
return ScrollToElement(elementId);
|
|
@@ -9816,15 +10077,15 @@ var getSerializers = function getSerializers() {
|
|
|
9816
10077
|
}
|
|
9817
10078
|
|
|
9818
10079
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9819
|
-
return
|
|
10080
|
+
return React__default.createElement(
|
|
9820
10081
|
'a',
|
|
9821
|
-
_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 } }),
|
|
9822
10083
|
children
|
|
9823
10084
|
);
|
|
9824
10085
|
},
|
|
9825
10086
|
alignleft: function alignleft(_ref23) {
|
|
9826
10087
|
var children = _ref23.children;
|
|
9827
|
-
return
|
|
10088
|
+
return React__default.createElement(
|
|
9828
10089
|
'div',
|
|
9829
10090
|
{ style: { textAlign: 'left' } },
|
|
9830
10091
|
children
|
|
@@ -9832,7 +10093,7 @@ var getSerializers = function getSerializers() {
|
|
|
9832
10093
|
},
|
|
9833
10094
|
alignright: function alignright(_ref24) {
|
|
9834
10095
|
var children = _ref24.children;
|
|
9835
|
-
return
|
|
10096
|
+
return React__default.createElement(
|
|
9836
10097
|
'div',
|
|
9837
10098
|
{ style: { textAlign: 'right' } },
|
|
9838
10099
|
children
|
|
@@ -9840,7 +10101,7 @@ var getSerializers = function getSerializers() {
|
|
|
9840
10101
|
},
|
|
9841
10102
|
aligncenter: function aligncenter(_ref25) {
|
|
9842
10103
|
var children = _ref25.children;
|
|
9843
|
-
return
|
|
10104
|
+
return React__default.createElement(
|
|
9844
10105
|
'div',
|
|
9845
10106
|
{ style: { textAlign: 'center' } },
|
|
9846
10107
|
children
|
|
@@ -9848,7 +10109,7 @@ var getSerializers = function getSerializers() {
|
|
|
9848
10109
|
},
|
|
9849
10110
|
alignjustify: function alignjustify(_ref26) {
|
|
9850
10111
|
var children = _ref26.children;
|
|
9851
|
-
return
|
|
10112
|
+
return React__default.createElement(
|
|
9852
10113
|
'div',
|
|
9853
10114
|
{ style: { textAlign: 'justify' } },
|
|
9854
10115
|
children
|
|
@@ -9858,7 +10119,7 @@ var getSerializers = function getSerializers() {
|
|
|
9858
10119
|
var children = props.children,
|
|
9859
10120
|
color = props.mark.color;
|
|
9860
10121
|
|
|
9861
|
-
return
|
|
10122
|
+
return React__default.createElement(
|
|
9862
10123
|
'span',
|
|
9863
10124
|
{ style: { color: color ? color.hex : null } },
|
|
9864
10125
|
children
|