@mjhls/mjh-framework 1.0.849 → 1.0.850-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +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-86e987a0.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-5d6f91d7.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 +14011 -48
- 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 +144 -232
- 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 +58 -61
- 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 +187 -289
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +13 -15
- package/dist/cjs/PubSection.js +20 -22
- 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 +1129 -1109
- 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/Segment.js +362 -337
- 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 +201 -205
- 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-80e98193.js → index-bc88f898.js} +1099 -872
- 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 +62 -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 +10 -9
- package/dist/esm/AD300x250x600.js +10 -9
- package/dist/esm/AD728x90.js +11 -10
- package/dist/esm/ADFloatingFooter.js +12 -11
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +12 -11
- package/dist/esm/{ADInfeed-4096aff2.js → ADInfeed-bbdd5398.js} +7 -7
- package/dist/esm/ADSkyscraper.js +12 -11
- package/dist/esm/ADSponsoredResources.js +12 -11
- package/dist/esm/ADWebcast.js +12 -11
- package/dist/esm/ADWelcome.js +16 -15
- package/dist/esm/{ADlgInfeed-8e4fcfbd.js → ADlgInfeed-4473ee3b.js} +4 -4
- package/dist/esm/AccordionPanel.js +17 -17
- package/dist/esm/AdSlot.js +8 -7
- package/dist/esm/AdSlotsProvider.js +904 -11
- package/dist/esm/AlgoliaSearch.js +14004 -40
- package/dist/esm/AlphabeticList.js +14 -14
- package/dist/esm/ArticleCarousel.js +9 -9
- package/dist/esm/ArticleProgramLandingPage.js +23 -23
- package/dist/esm/ArticleSeriesLandingPage.js +20 -19
- package/dist/esm/ArticleSeriesListing.js +38 -37
- package/dist/esm/Auth.js +128 -212
- package/dist/esm/AuthWrapper.js +561 -24
- package/dist/esm/{AuthorComponent-8ffd4679.js → AuthorComponent-34b16174.js} +10 -10
- package/dist/esm/Beam.js +1 -1
- package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-e9b4ddcf.js} +4 -4
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +63 -62
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +18 -18
- package/dist/esm/Column3.js +33 -32
- package/dist/esm/ConferenceArticleCard.js +30 -30
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +79 -78
- 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 +44 -44
- package/dist/esm/Feature.js +17 -17
- package/dist/esm/ForbesHero.js +28 -28
- package/dist/esm/GridContent.js +175 -174
- package/dist/esm/GridHero.js +29 -29
- package/dist/esm/GroupDeck.js +36 -36
- package/dist/esm/HamMagazine.js +101 -101
- 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 +37 -37
- 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 -59
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +19 -18
- package/dist/esm/MasterDeck.js +57 -56
- package/dist/esm/MediaSeriesLanding.js +673 -562
- package/dist/esm/NavDvm.js +47 -47
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +104 -104
- package/dist/esm/NavNative.js +93 -93
- 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 -180
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +19 -20
- package/dist/esm/PubToc.js +6 -6
- package/dist/esm/PublicationDeck.js +51 -51
- package/dist/esm/PublicationLanding.js +97 -97
- package/dist/esm/QueueDeckExpanded.js +1120 -1100
- 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/Segment.js +363 -338
- package/dist/esm/SeriesListingDeck.js +22 -21
- package/dist/esm/{SeriesSlider-05ecb544.js → SeriesSlider-a866bb21.js} +28 -28
- package/dist/esm/SideFooter.js +22 -22
- 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 +19 -19
- package/dist/esm/TemplateNormal.js +34 -33
- package/dist/esm/ThumbnailCard.js +10 -10
- package/dist/esm/Ustream.js +19 -19
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoProgramLandingPage.js +35 -35
- package/dist/esm/VideoSeriesCard.js +18 -18
- package/dist/esm/VideoSeriesFilter.js +7 -7
- package/dist/esm/VideoSeriesLandingPage.js +20 -19
- package/dist/esm/VideoSeriesListing.js +55 -54
- package/dist/esm/View.js +185 -185
- package/dist/esm/YahooHero.js +25 -25
- package/dist/esm/YoutubeGroup.js +39 -39
- package/dist/esm/{asyncToGenerator-fc1c2e29.js → asyncToGenerator-4877b617.js} +1 -1
- 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 +2 -2
- package/dist/esm/getRelatedArticle.js +127 -63
- package/dist/esm/getRootDocGroup.js +1 -1
- package/dist/esm/getSerializers.js +14 -14
- package/dist/esm/{getTargeting-9cb7e014.js → getTargeting-bd800589.js} +10 -10
- package/dist/esm/getTargeting.js +2 -2
- 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-295b6942.js → index-f2a0d400.js} +1061 -826
- 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 +55 -55
- 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 +111 -110
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
|
@@ -1,38 +1,37 @@
|
|
|
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$
|
|
35
|
-
import ScriptTag from 'react-script-tag';
|
|
33
|
+
import Pagination$1 from 'react-bootstrap/Pagination';
|
|
34
|
+
import Figure$1$1 from 'react-bootstrap/Figure';
|
|
36
35
|
|
|
37
36
|
var onChangeSlide = function onChangeSlide(selectedIndex, router) {
|
|
38
37
|
var pageNumber = selectedIndex + 1;
|
|
@@ -67,27 +66,27 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
67
66
|
if (pageview) pageview(router.asPath);
|
|
68
67
|
}, [router]);
|
|
69
68
|
|
|
70
|
-
return
|
|
69
|
+
return React__default.createElement(
|
|
71
70
|
'div',
|
|
72
71
|
{ className: 'mt-3 mb-3' },
|
|
73
|
-
|
|
72
|
+
React__default.createElement(
|
|
74
73
|
Carousel,
|
|
75
74
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
76
75
|
return onChangeSlide(selectedIndex, router);
|
|
77
76
|
}, interval: null },
|
|
78
77
|
slides && slides.map(function (slide) {
|
|
79
|
-
return
|
|
78
|
+
return React__default.createElement(
|
|
80
79
|
Carousel.Item,
|
|
81
80
|
{ key: slide._key },
|
|
82
|
-
|
|
81
|
+
React__default.createElement(
|
|
83
82
|
'picture',
|
|
84
83
|
null,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
84
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
85
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
86
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
87
|
+
React__default.createElement('img', { src: urlFor({ source: slide.asset, client: client }), alt: slide.alt || '', style: { width: '100%' } })
|
|
89
88
|
),
|
|
90
|
-
slide.caption &&
|
|
89
|
+
slide.caption && React__default.createElement(
|
|
91
90
|
'p',
|
|
92
91
|
{ className: 'p-2' },
|
|
93
92
|
slide.caption
|
|
@@ -98,18 +97,21 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
98
97
|
);
|
|
99
98
|
};
|
|
100
99
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
100
|
+
var isArray = Array.isArray;
|
|
101
|
+
var keyList = Object.keys;
|
|
102
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
104
103
|
|
|
105
104
|
var fastDeepEqual = function equal(a, b) {
|
|
106
105
|
if (a === b) return true;
|
|
107
106
|
|
|
108
107
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
109
|
-
|
|
108
|
+
var arrA = isArray(a)
|
|
109
|
+
, arrB = isArray(b)
|
|
110
|
+
, i
|
|
111
|
+
, length
|
|
112
|
+
, key;
|
|
110
113
|
|
|
111
|
-
|
|
112
|
-
if (Array.isArray(a)) {
|
|
114
|
+
if (arrA && arrB) {
|
|
113
115
|
length = a.length;
|
|
114
116
|
if (length != b.length) return false;
|
|
115
117
|
for (i = length; i-- !== 0;)
|
|
@@ -117,29 +119,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
117
119
|
return true;
|
|
118
120
|
}
|
|
119
121
|
|
|
122
|
+
if (arrA != arrB) return false;
|
|
120
123
|
|
|
124
|
+
var dateA = a instanceof Date
|
|
125
|
+
, dateB = b instanceof Date;
|
|
126
|
+
if (dateA != dateB) return false;
|
|
127
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
121
128
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
if (
|
|
129
|
+
var regexpA = a instanceof RegExp
|
|
130
|
+
, regexpB = b instanceof RegExp;
|
|
131
|
+
if (regexpA != regexpB) return false;
|
|
132
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
125
133
|
|
|
126
|
-
keys =
|
|
134
|
+
var keys = keyList(a);
|
|
127
135
|
length = keys.length;
|
|
128
|
-
|
|
136
|
+
|
|
137
|
+
if (length !== keyList(b).length)
|
|
138
|
+
return false;
|
|
129
139
|
|
|
130
140
|
for (i = length; i-- !== 0;)
|
|
131
|
-
if (!
|
|
141
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
132
142
|
|
|
133
143
|
for (i = length; i-- !== 0;) {
|
|
134
|
-
|
|
135
|
-
|
|
144
|
+
key = keys[i];
|
|
136
145
|
if (!equal(a[key], b[key])) return false;
|
|
137
146
|
}
|
|
138
147
|
|
|
139
148
|
return true;
|
|
140
149
|
}
|
|
141
150
|
|
|
142
|
-
// true if both NaN, false otherwise
|
|
143
151
|
return a!==a && b!==b;
|
|
144
152
|
};
|
|
145
153
|
|
|
@@ -1562,239 +1570,199 @@ module.exports = exports['default'];
|
|
|
1562
1570
|
|
|
1563
1571
|
var youTubePlayer = unwrapExports(dist);
|
|
1564
1572
|
|
|
1565
|
-
function
|
|
1566
|
-
|
|
1567
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1568
|
-
|
|
1569
|
-
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); } }
|
|
1570
|
-
|
|
1571
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1572
|
-
|
|
1573
|
-
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); }
|
|
1574
|
-
|
|
1575
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1576
|
-
|
|
1577
|
-
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); }; }
|
|
1578
|
-
|
|
1579
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1573
|
+
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; }; }();
|
|
1580
1574
|
|
|
1581
|
-
function
|
|
1575
|
+
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; };
|
|
1582
1576
|
|
|
1583
|
-
function
|
|
1577
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1584
1578
|
|
|
1585
|
-
function
|
|
1579
|
+
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; }
|
|
1586
1580
|
|
|
1587
|
-
function
|
|
1581
|
+
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; }
|
|
1588
1582
|
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
*
|
|
1594
|
-
*
|
|
1595
|
-
* @param {Object} prevProps
|
|
1596
|
-
* @param {Object} props
|
|
1583
|
+
/**
|
|
1584
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1585
|
+
*
|
|
1586
|
+
* @param {Object} prevProps
|
|
1587
|
+
* @param {Object} props
|
|
1597
1588
|
*/
|
|
1598
|
-
|
|
1599
1589
|
function shouldUpdateVideo(prevProps, props) {
|
|
1600
1590
|
// A changing video should always trigger an update
|
|
1601
1591
|
if (prevProps.videoId !== props.videoId) {
|
|
1602
1592
|
return true;
|
|
1603
|
-
}
|
|
1604
|
-
// update.
|
|
1605
|
-
|
|
1593
|
+
}
|
|
1606
1594
|
|
|
1595
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1596
|
+
// update.
|
|
1607
1597
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1608
1598
|
var vars = props.opts.playerVars || {};
|
|
1599
|
+
|
|
1609
1600
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1610
1601
|
}
|
|
1611
|
-
/**
|
|
1612
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
1613
|
-
* that require a player reset. The results can then be compared to see if a
|
|
1614
|
-
* player reset is necessary.
|
|
1615
|
-
*
|
|
1616
|
-
* @param {Object} opts
|
|
1617
|
-
*/
|
|
1618
|
-
|
|
1619
1602
|
|
|
1603
|
+
/**
|
|
1604
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
1605
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1606
|
+
* player reset is necessary.
|
|
1607
|
+
*
|
|
1608
|
+
* @param {Object} opts
|
|
1609
|
+
*/
|
|
1620
1610
|
function filterResetOptions(opts) {
|
|
1621
|
-
return
|
|
1622
|
-
playerVars:
|
|
1611
|
+
return _extends({}, opts, {
|
|
1612
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1623
1613
|
autoplay: 0,
|
|
1624
1614
|
start: 0,
|
|
1625
1615
|
end: 0
|
|
1626
1616
|
})
|
|
1627
1617
|
});
|
|
1628
1618
|
}
|
|
1629
|
-
/**
|
|
1630
|
-
* Check whether a `props` change should result in the player being reset.
|
|
1631
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
1632
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1633
|
-
* those.
|
|
1634
|
-
*
|
|
1635
|
-
* @param {Object} prevProps
|
|
1636
|
-
* @param {Object} props
|
|
1637
|
-
*/
|
|
1638
|
-
|
|
1639
1619
|
|
|
1620
|
+
/**
|
|
1621
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1622
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1623
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1624
|
+
* those.
|
|
1625
|
+
*
|
|
1626
|
+
* @param {Object} prevProps
|
|
1627
|
+
* @param {Object} props
|
|
1628
|
+
*/
|
|
1640
1629
|
function shouldResetPlayer(prevProps, props) {
|
|
1641
1630
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1642
1631
|
}
|
|
1643
|
-
/**
|
|
1644
|
-
* Check whether a props change should result in an id or className update.
|
|
1645
|
-
*
|
|
1646
|
-
* @param {Object} prevProps
|
|
1647
|
-
* @param {Object} props
|
|
1648
|
-
*/
|
|
1649
|
-
|
|
1650
1632
|
|
|
1633
|
+
/**
|
|
1634
|
+
* Check whether a props change should result in an id or className update.
|
|
1635
|
+
*
|
|
1636
|
+
* @param {Object} prevProps
|
|
1637
|
+
* @param {Object} props
|
|
1638
|
+
*/
|
|
1651
1639
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1652
1640
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1653
1641
|
}
|
|
1654
1642
|
|
|
1655
|
-
var YouTube =
|
|
1643
|
+
var YouTube = function (_React$Component) {
|
|
1656
1644
|
_inherits(YouTube, _React$Component);
|
|
1657
1645
|
|
|
1658
|
-
var _super = _createSuper(YouTube);
|
|
1659
|
-
|
|
1660
|
-
/**
|
|
1661
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1662
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1663
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1664
|
-
*/
|
|
1665
1646
|
function YouTube(props) {
|
|
1666
|
-
var _this;
|
|
1667
|
-
|
|
1668
1647
|
_classCallCheck(this, YouTube);
|
|
1669
1648
|
|
|
1670
|
-
_this =
|
|
1649
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1671
1650
|
|
|
1672
|
-
|
|
1651
|
+
_this.onPlayerReady = function (event) {
|
|
1673
1652
|
return _this.props.onReady(event);
|
|
1674
|
-
}
|
|
1653
|
+
};
|
|
1675
1654
|
|
|
1676
|
-
|
|
1655
|
+
_this.onPlayerError = function (event) {
|
|
1677
1656
|
return _this.props.onError(event);
|
|
1678
|
-
}
|
|
1657
|
+
};
|
|
1679
1658
|
|
|
1680
|
-
|
|
1659
|
+
_this.onPlayerStateChange = function (event) {
|
|
1681
1660
|
_this.props.onStateChange(event);
|
|
1682
|
-
|
|
1683
1661
|
switch (event.data) {
|
|
1662
|
+
|
|
1684
1663
|
case YouTube.PlayerState.ENDED:
|
|
1685
1664
|
_this.props.onEnd(event);
|
|
1686
|
-
|
|
1687
1665
|
break;
|
|
1688
1666
|
|
|
1689
1667
|
case YouTube.PlayerState.PLAYING:
|
|
1690
1668
|
_this.props.onPlay(event);
|
|
1691
|
-
|
|
1692
1669
|
break;
|
|
1693
1670
|
|
|
1694
1671
|
case YouTube.PlayerState.PAUSED:
|
|
1695
1672
|
_this.props.onPause(event);
|
|
1696
|
-
|
|
1697
1673
|
break;
|
|
1698
1674
|
}
|
|
1699
|
-
}
|
|
1675
|
+
};
|
|
1700
1676
|
|
|
1701
|
-
|
|
1677
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1702
1678
|
return _this.props.onPlaybackRateChange(event);
|
|
1703
|
-
}
|
|
1679
|
+
};
|
|
1704
1680
|
|
|
1705
|
-
|
|
1681
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1706
1682
|
return _this.props.onPlaybackQualityChange(event);
|
|
1707
|
-
}
|
|
1683
|
+
};
|
|
1708
1684
|
|
|
1709
|
-
|
|
1685
|
+
_this.createPlayer = function () {
|
|
1710
1686
|
// do not attempt to create a player server-side, it won't work
|
|
1711
|
-
if (typeof document === 'undefined') return;
|
|
1712
|
-
|
|
1713
|
-
var playerOpts =
|
|
1687
|
+
if (typeof document === 'undefined') return;
|
|
1688
|
+
// create player
|
|
1689
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1714
1690
|
// preload the `videoId` video if one is already given
|
|
1715
1691
|
videoId: _this.props.videoId
|
|
1716
1692
|
});
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1693
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
1694
|
+
// attach event handlers
|
|
1720
1695
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1721
|
-
|
|
1722
1696
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1723
|
-
|
|
1724
1697
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1725
|
-
|
|
1726
1698
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1727
|
-
|
|
1728
1699
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1729
|
-
}
|
|
1700
|
+
};
|
|
1730
1701
|
|
|
1731
|
-
|
|
1702
|
+
_this.resetPlayer = function () {
|
|
1732
1703
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1733
|
-
}
|
|
1704
|
+
};
|
|
1734
1705
|
|
|
1735
|
-
|
|
1706
|
+
_this.updatePlayer = function () {
|
|
1736
1707
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1737
1708
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1738
1709
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1739
1710
|
});
|
|
1740
|
-
}
|
|
1741
|
-
|
|
1742
|
-
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1743
|
-
return _this.internalPlayer;
|
|
1744
|
-
});
|
|
1711
|
+
};
|
|
1745
1712
|
|
|
1746
|
-
|
|
1713
|
+
_this.updateVideo = function () {
|
|
1747
1714
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1748
1715
|
_this.internalPlayer.stopVideo();
|
|
1749
|
-
|
|
1750
1716
|
return;
|
|
1751
|
-
}
|
|
1752
|
-
|
|
1717
|
+
}
|
|
1753
1718
|
|
|
1719
|
+
// set queueing options
|
|
1754
1720
|
var autoplay = false;
|
|
1755
1721
|
var opts = {
|
|
1756
1722
|
videoId: _this.props.videoId
|
|
1757
1723
|
};
|
|
1758
|
-
|
|
1759
1724
|
if ('playerVars' in _this.props.opts) {
|
|
1760
1725
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1761
|
-
|
|
1762
1726
|
if ('start' in _this.props.opts.playerVars) {
|
|
1763
1727
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1764
1728
|
}
|
|
1765
|
-
|
|
1766
1729
|
if ('end' in _this.props.opts.playerVars) {
|
|
1767
1730
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1768
1731
|
}
|
|
1769
|
-
}
|
|
1770
|
-
|
|
1732
|
+
}
|
|
1771
1733
|
|
|
1734
|
+
// if autoplay is enabled loadVideoById
|
|
1772
1735
|
if (autoplay) {
|
|
1773
1736
|
_this.internalPlayer.loadVideoById(opts);
|
|
1774
|
-
|
|
1775
1737
|
return;
|
|
1776
|
-
}
|
|
1777
|
-
|
|
1778
|
-
|
|
1738
|
+
}
|
|
1739
|
+
// default behaviour just cues the video
|
|
1779
1740
|
_this.internalPlayer.cueVideoById(opts);
|
|
1780
|
-
}
|
|
1741
|
+
};
|
|
1781
1742
|
|
|
1782
|
-
|
|
1743
|
+
_this.refContainer = function (container) {
|
|
1783
1744
|
_this.container = container;
|
|
1784
|
-
}
|
|
1745
|
+
};
|
|
1785
1746
|
|
|
1786
1747
|
_this.container = null;
|
|
1787
1748
|
_this.internalPlayer = null;
|
|
1788
1749
|
return _this;
|
|
1789
1750
|
}
|
|
1790
1751
|
|
|
1752
|
+
/**
|
|
1753
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1754
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1755
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1756
|
+
*/
|
|
1757
|
+
|
|
1758
|
+
|
|
1791
1759
|
_createClass(YouTube, [{
|
|
1792
|
-
key:
|
|
1760
|
+
key: 'componentDidMount',
|
|
1793
1761
|
value: function componentDidMount() {
|
|
1794
1762
|
this.createPlayer();
|
|
1795
1763
|
}
|
|
1796
1764
|
}, {
|
|
1797
|
-
key:
|
|
1765
|
+
key: 'componentDidUpdate',
|
|
1798
1766
|
value: function componentDidUpdate(prevProps) {
|
|
1799
1767
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1800
1768
|
this.updatePlayer();
|
|
@@ -1809,58 +1777,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1809
1777
|
}
|
|
1810
1778
|
}
|
|
1811
1779
|
}, {
|
|
1812
|
-
key:
|
|
1780
|
+
key: 'componentWillUnmount',
|
|
1813
1781
|
value: function componentWillUnmount() {
|
|
1814
|
-
/**
|
|
1815
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1816
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1817
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1818
|
-
* this method isn't quick enough to reset the container element.
|
|
1782
|
+
/**
|
|
1783
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
1784
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1785
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1786
|
+
* this method isn't quick enough to reset the container element.
|
|
1819
1787
|
*/
|
|
1820
1788
|
this.internalPlayer.destroy();
|
|
1821
1789
|
}
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
*
|
|
1825
|
-
*
|
|
1826
|
-
*
|
|
1790
|
+
|
|
1791
|
+
/**
|
|
1792
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1793
|
+
*
|
|
1794
|
+
* @param {Object} event
|
|
1795
|
+
* @param {Object} target - player object
|
|
1796
|
+
*/
|
|
1797
|
+
|
|
1798
|
+
|
|
1799
|
+
/**
|
|
1800
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1801
|
+
*
|
|
1802
|
+
* @param {Object} event
|
|
1803
|
+
* @param {Integer} data - error type
|
|
1804
|
+
* @param {Object} target - player object
|
|
1805
|
+
*/
|
|
1806
|
+
|
|
1807
|
+
|
|
1808
|
+
/**
|
|
1809
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1810
|
+
*
|
|
1811
|
+
* @param {Object} event
|
|
1812
|
+
* @param {Integer} data - status change type
|
|
1813
|
+
* @param {Object} target - actual YT player
|
|
1814
|
+
*/
|
|
1815
|
+
|
|
1816
|
+
|
|
1817
|
+
/**
|
|
1818
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1819
|
+
*
|
|
1820
|
+
* @param {Object} event
|
|
1821
|
+
* @param {Float} data - playback rate
|
|
1822
|
+
* @param {Object} target - actual YT player
|
|
1823
|
+
*/
|
|
1824
|
+
|
|
1825
|
+
|
|
1826
|
+
/**
|
|
1827
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1828
|
+
*
|
|
1829
|
+
* @param {Object} event
|
|
1830
|
+
* @param {String} data - playback quality
|
|
1831
|
+
* @param {Object} target - actual YT player
|
|
1832
|
+
*/
|
|
1833
|
+
|
|
1834
|
+
|
|
1835
|
+
/**
|
|
1836
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1837
|
+
*/
|
|
1838
|
+
|
|
1839
|
+
|
|
1840
|
+
/**
|
|
1841
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1842
|
+
*/
|
|
1843
|
+
|
|
1844
|
+
|
|
1845
|
+
/**
|
|
1846
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
1847
|
+
* React should update this automatically but since the Youtube Player API
|
|
1848
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1849
|
+
*/
|
|
1850
|
+
|
|
1851
|
+
|
|
1852
|
+
/**
|
|
1853
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
1854
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1855
|
+
* Youtube Player API methods to update the video.
|
|
1827
1856
|
*/
|
|
1828
1857
|
|
|
1829
1858
|
}, {
|
|
1830
|
-
key:
|
|
1859
|
+
key: 'render',
|
|
1831
1860
|
value: function render() {
|
|
1832
|
-
return
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
id: this.props.id,
|
|
1836
|
-
|
|
1837
|
-
ref: this.refContainer
|
|
1838
|
-
}));
|
|
1861
|
+
return React__default.createElement(
|
|
1862
|
+
'div',
|
|
1863
|
+
{ className: this.props.containerClassName },
|
|
1864
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
1865
|
+
);
|
|
1839
1866
|
}
|
|
1840
1867
|
}]);
|
|
1841
1868
|
|
|
1842
1869
|
return YouTube;
|
|
1843
|
-
}(
|
|
1844
|
-
|
|
1845
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
1846
|
-
UNSTARTED: -1,
|
|
1847
|
-
ENDED: 0,
|
|
1848
|
-
PLAYING: 1,
|
|
1849
|
-
PAUSED: 2,
|
|
1850
|
-
BUFFERING: 3,
|
|
1851
|
-
CUED: 5
|
|
1852
|
-
});
|
|
1870
|
+
}(React__default.Component);
|
|
1853
1871
|
|
|
1854
1872
|
YouTube.propTypes = {
|
|
1855
1873
|
videoId: PropTypes.string,
|
|
1874
|
+
|
|
1856
1875
|
// custom ID for player element
|
|
1857
1876
|
id: PropTypes.string,
|
|
1877
|
+
|
|
1858
1878
|
// custom class name for player element
|
|
1859
1879
|
className: PropTypes.string,
|
|
1860
1880
|
// custom class name for player container element
|
|
1861
1881
|
containerClassName: PropTypes.string,
|
|
1882
|
+
|
|
1862
1883
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1863
1884
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1885
|
+
|
|
1864
1886
|
// event subscriptions
|
|
1865
1887
|
onReady: PropTypes.func,
|
|
1866
1888
|
onError: PropTypes.func,
|
|
@@ -1872,7 +1894,6 @@ YouTube.propTypes = {
|
|
|
1872
1894
|
onPlaybackQualityChange: PropTypes.func
|
|
1873
1895
|
};
|
|
1874
1896
|
YouTube.defaultProps = {
|
|
1875
|
-
videoId: null,
|
|
1876
1897
|
id: null,
|
|
1877
1898
|
className: null,
|
|
1878
1899
|
opts: {},
|
|
@@ -1886,6 +1907,14 @@ YouTube.defaultProps = {
|
|
|
1886
1907
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1887
1908
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1888
1909
|
};
|
|
1910
|
+
YouTube.PlayerState = {
|
|
1911
|
+
UNSTARTED: -1,
|
|
1912
|
+
ENDED: 0,
|
|
1913
|
+
PLAYING: 1,
|
|
1914
|
+
PAUSED: 2,
|
|
1915
|
+
BUFFERING: 3,
|
|
1916
|
+
CUED: 5
|
|
1917
|
+
};
|
|
1889
1918
|
|
|
1890
1919
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1891
1920
|
var url = _ref.url,
|
|
@@ -1987,11 +2016,11 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1987
2016
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
1988
2017
|
};
|
|
1989
2018
|
|
|
1990
|
-
return
|
|
2019
|
+
return React__default.createElement(
|
|
1991
2020
|
'div',
|
|
1992
2021
|
{ id: 'fluid-video-container' },
|
|
1993
|
-
|
|
1994
|
-
|
|
2022
|
+
React__default.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
2023
|
+
React__default.createElement(
|
|
1995
2024
|
'style',
|
|
1996
2025
|
{ jsx: 'true' },
|
|
1997
2026
|
'\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 '
|
|
@@ -2004,20 +2033,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2004
2033
|
content = _ref.content,
|
|
2005
2034
|
getSerializers = _ref.getSerializers;
|
|
2006
2035
|
|
|
2007
|
-
return
|
|
2036
|
+
return React__default.createElement(
|
|
2008
2037
|
'article',
|
|
2009
2038
|
{ className: 'sidebar' },
|
|
2010
|
-
|
|
2039
|
+
React__default.createElement(
|
|
2011
2040
|
'div',
|
|
2012
2041
|
null,
|
|
2013
|
-
|
|
2042
|
+
React__default.createElement(
|
|
2014
2043
|
'h3',
|
|
2015
2044
|
null,
|
|
2016
2045
|
caption
|
|
2017
2046
|
),
|
|
2018
|
-
|
|
2047
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2019
2048
|
),
|
|
2020
|
-
|
|
2049
|
+
React__default.createElement(
|
|
2021
2050
|
'style',
|
|
2022
2051
|
{ jsx: 'true' },
|
|
2023
2052
|
'\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 '
|
|
@@ -2028,18 +2057,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2028
2057
|
var TableShow = function TableShow(_ref) {
|
|
2029
2058
|
var rows = _ref.rows;
|
|
2030
2059
|
|
|
2031
|
-
return
|
|
2060
|
+
return React__default.createElement(
|
|
2032
2061
|
Table,
|
|
2033
2062
|
{ bordered: true, hover: true, responsive: true },
|
|
2034
|
-
|
|
2063
|
+
React__default.createElement(
|
|
2035
2064
|
'tbody',
|
|
2036
2065
|
null,
|
|
2037
2066
|
rows && rows.map(function (row) {
|
|
2038
|
-
return
|
|
2067
|
+
return React__default.createElement(
|
|
2039
2068
|
'tr',
|
|
2040
2069
|
{ key: row._key },
|
|
2041
2070
|
row.cells && row.cells.map(function (cell, index) {
|
|
2042
|
-
return cell &&
|
|
2071
|
+
return cell && React__default.createElement(
|
|
2043
2072
|
'td',
|
|
2044
2073
|
{ key: index },
|
|
2045
2074
|
cell
|
|
@@ -2137,25 +2166,25 @@ var Media = function Media(_ref) {
|
|
|
2137
2166
|
margin: imageMargin
|
|
2138
2167
|
};
|
|
2139
2168
|
|
|
2140
|
-
return
|
|
2169
|
+
return React__default.createElement(
|
|
2141
2170
|
Figure$1,
|
|
2142
2171
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2143
|
-
|
|
2172
|
+
React__default.createElement(
|
|
2144
2173
|
'a',
|
|
2145
2174
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2146
|
-
|
|
2175
|
+
React__default.createElement(
|
|
2147
2176
|
LazyLoad,
|
|
2148
2177
|
{ once: true },
|
|
2149
|
-
|
|
2178
|
+
React__default.createElement(
|
|
2150
2179
|
'picture',
|
|
2151
2180
|
null,
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2181
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2182
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2183
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2184
|
+
React__default.createElement('img', _extends$1({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2156
2185
|
)
|
|
2157
2186
|
),
|
|
2158
|
-
caption &&
|
|
2187
|
+
caption && React__default.createElement(
|
|
2159
2188
|
Figure$1.Caption,
|
|
2160
2189
|
{ className: 'media-caption' },
|
|
2161
2190
|
caption
|
|
@@ -2163,9 +2192,9 @@ var Media = function Media(_ref) {
|
|
|
2163
2192
|
)
|
|
2164
2193
|
);
|
|
2165
2194
|
} else if (caption && caption !== '') {
|
|
2166
|
-
return
|
|
2195
|
+
return React__default.createElement(
|
|
2167
2196
|
'a',
|
|
2168
|
-
_extends({}, uploadDoc.downloadMedia ? {
|
|
2197
|
+
_extends$1({}, uploadDoc.downloadMedia ? {
|
|
2169
2198
|
href: uploadDoc.asset.url + '?dl='
|
|
2170
2199
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2171
2200
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2183,10 +2212,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2183
2212
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2184
2213
|
|
|
2185
2214
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2186
|
-
return
|
|
2215
|
+
return React__default.createElement(
|
|
2187
2216
|
'div',
|
|
2188
2217
|
{ className: 'd-block text-center mb-3' },
|
|
2189
|
-
|
|
2218
|
+
React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2190
2219
|
);
|
|
2191
2220
|
};
|
|
2192
2221
|
|
|
@@ -2281,10 +2310,10 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2281
2310
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
|
|
2282
2311
|
};
|
|
2283
2312
|
|
|
2284
|
-
return
|
|
2313
|
+
return React__default.createElement(
|
|
2285
2314
|
'div',
|
|
2286
2315
|
null,
|
|
2287
|
-
vidLoaded &&
|
|
2316
|
+
vidLoaded && React__default.createElement(
|
|
2288
2317
|
'video',
|
|
2289
2318
|
{
|
|
2290
2319
|
poster: thumbnail || '',
|
|
@@ -2302,7 +2331,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2302
2331
|
onPlay: function onPlay(e) {
|
|
2303
2332
|
return handleOnPlay(e);
|
|
2304
2333
|
} },
|
|
2305
|
-
|
|
2334
|
+
React__default.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2306
2335
|
'Your browser does not support the video tag.'
|
|
2307
2336
|
)
|
|
2308
2337
|
);
|
|
@@ -2339,7 +2368,7 @@ var Video = function Video(_ref) {
|
|
|
2339
2368
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2340
2369
|
//console.log('success:', success.ref)
|
|
2341
2370
|
var player = success.ref;
|
|
2342
|
-
if (_typeof
|
|
2371
|
+
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2343
2372
|
player.ima3.settings.debug = true;
|
|
2344
2373
|
if (targeting.content_placement && targeting.document_url) {
|
|
2345
2374
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2437,53 +2466,53 @@ var Video = function Video(_ref) {
|
|
|
2437
2466
|
|
|
2438
2467
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2439
2468
|
if (videoID) {
|
|
2440
|
-
return
|
|
2469
|
+
return React__default.createElement(
|
|
2441
2470
|
'div',
|
|
2442
2471
|
null,
|
|
2443
|
-
|
|
2472
|
+
React__default.createElement(ReactPlayerLoader, {
|
|
2444
2473
|
onSuccess: onVideoSuccess,
|
|
2445
2474
|
accountId: accountIDs.brightcove.accountId,
|
|
2446
2475
|
videoId: videoID,
|
|
2447
2476
|
playerId: accountIDs.brightcove.playerId,
|
|
2448
2477
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2449
2478
|
}),
|
|
2450
|
-
|
|
2479
|
+
React__default.createElement(
|
|
2451
2480
|
'style',
|
|
2452
2481
|
{ jsx: 'true' },
|
|
2453
2482
|
'\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 '
|
|
2454
2483
|
)
|
|
2455
2484
|
);
|
|
2456
2485
|
} else if (playlistID) {
|
|
2457
|
-
return
|
|
2486
|
+
return React__default.createElement(
|
|
2458
2487
|
'div',
|
|
2459
2488
|
null,
|
|
2460
|
-
|
|
2489
|
+
React__default.createElement(ReactPlayerLoader, {
|
|
2461
2490
|
accountId: accountIDs.brightcove.accountId,
|
|
2462
2491
|
playlistId: playlistID,
|
|
2463
2492
|
playerId: accountIDs.brightcove.playerId,
|
|
2464
2493
|
onSuccess: onVideoSuccess,
|
|
2465
2494
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2466
2495
|
}),
|
|
2467
|
-
|
|
2496
|
+
React__default.createElement(
|
|
2468
2497
|
'style',
|
|
2469
2498
|
{ jsx: 'true' },
|
|
2470
2499
|
'\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 '
|
|
2471
2500
|
)
|
|
2472
2501
|
);
|
|
2473
2502
|
} else if (experienceID) {
|
|
2474
|
-
return
|
|
2503
|
+
return React__default.createElement(
|
|
2475
2504
|
'div',
|
|
2476
2505
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2477
|
-
videoLoaded &&
|
|
2506
|
+
videoLoaded && React__default.createElement('div', { 'data-experience': experienceID })
|
|
2478
2507
|
);
|
|
2479
2508
|
}
|
|
2480
2509
|
return null;
|
|
2481
2510
|
}
|
|
2482
2511
|
if (source === 'mp4') {
|
|
2483
|
-
return
|
|
2512
|
+
return React__default.createElement(
|
|
2484
2513
|
'div',
|
|
2485
2514
|
null,
|
|
2486
|
-
|
|
2515
|
+
React__default.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2487
2516
|
);
|
|
2488
2517
|
}
|
|
2489
2518
|
|
|
@@ -2861,17 +2890,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2861
2890
|
|
|
2862
2891
|
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; }
|
|
2863
2892
|
|
|
2864
|
-
function
|
|
2893
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2865
2894
|
|
|
2866
|
-
function
|
|
2895
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2867
2896
|
|
|
2868
|
-
function
|
|
2869
|
-
|
|
2870
|
-
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); }
|
|
2871
|
-
|
|
2872
|
-
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; }
|
|
2873
|
-
|
|
2874
|
-
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; }
|
|
2897
|
+
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; }
|
|
2875
2898
|
|
|
2876
2899
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2877
2900
|
|
|
@@ -3001,12 +3024,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3001
3024
|
|
|
3002
3025
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3003
3026
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3004
|
-
|
|
3005
|
-
var
|
|
3006
|
-
|
|
3027
|
+
var _iteratorNormalCompletion = true;
|
|
3028
|
+
var _didIteratorError = false;
|
|
3029
|
+
var _iteratorError = undefined;
|
|
3007
3030
|
|
|
3008
3031
|
try {
|
|
3009
|
-
for (_iterator.
|
|
3032
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
3010
3033
|
var p = _step.value;
|
|
3011
3034
|
|
|
3012
3035
|
if (props$1[p]) {
|
|
@@ -3021,9 +3044,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3021
3044
|
}
|
|
3022
3045
|
}
|
|
3023
3046
|
} catch (err) {
|
|
3024
|
-
|
|
3047
|
+
_didIteratorError = true;
|
|
3048
|
+
_iteratorError = err;
|
|
3025
3049
|
} finally {
|
|
3026
|
-
|
|
3050
|
+
try {
|
|
3051
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3052
|
+
_iterator["return"]();
|
|
3053
|
+
}
|
|
3054
|
+
} finally {
|
|
3055
|
+
if (_didIteratorError) {
|
|
3056
|
+
throw _iteratorError;
|
|
3057
|
+
}
|
|
3058
|
+
}
|
|
3027
3059
|
}
|
|
3028
3060
|
|
|
3029
3061
|
return config;
|
|
@@ -3088,7 +3120,7 @@ function isEqual(a, b) {
|
|
|
3088
3120
|
return true;
|
|
3089
3121
|
}
|
|
3090
3122
|
|
|
3091
|
-
if ((0,
|
|
3123
|
+
if ((0, React__default.isValidElement)(a) && (0, React__default.isValidElement)(b)) {
|
|
3092
3124
|
return true;
|
|
3093
3125
|
}
|
|
3094
3126
|
|
|
@@ -3150,7 +3182,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3150
3182
|
});
|
|
3151
3183
|
exports["default"] = void 0;
|
|
3152
3184
|
|
|
3153
|
-
var _react = _interopRequireWildcard(
|
|
3185
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3154
3186
|
|
|
3155
3187
|
|
|
3156
3188
|
|
|
@@ -3170,16 +3202,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3170
3202
|
|
|
3171
3203
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3172
3204
|
|
|
3173
|
-
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); }; }
|
|
3174
|
-
|
|
3175
3205
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3176
3206
|
|
|
3177
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3178
|
-
|
|
3179
|
-
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; } }
|
|
3180
|
-
|
|
3181
3207
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3182
3208
|
|
|
3209
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3210
|
+
|
|
3183
3211
|
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); }
|
|
3184
3212
|
|
|
3185
3213
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3188,12 +3216,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3188
3216
|
|
|
3189
3217
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3190
3218
|
|
|
3191
|
-
var Player =
|
|
3219
|
+
var Player =
|
|
3220
|
+
/*#__PURE__*/
|
|
3221
|
+
function (_Component) {
|
|
3192
3222
|
_inherits(Player, _Component);
|
|
3193
3223
|
|
|
3194
|
-
var _super = _createSuper(Player);
|
|
3195
|
-
|
|
3196
3224
|
function Player() {
|
|
3225
|
+
var _getPrototypeOf2;
|
|
3226
|
+
|
|
3197
3227
|
var _this;
|
|
3198
3228
|
|
|
3199
3229
|
_classCallCheck(this, Player);
|
|
@@ -3202,7 +3232,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3202
3232
|
_args[_key] = arguments[_key];
|
|
3203
3233
|
}
|
|
3204
3234
|
|
|
3205
|
-
_this =
|
|
3235
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3206
3236
|
|
|
3207
3237
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3208
3238
|
|
|
@@ -3527,7 +3557,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3527
3557
|
return null;
|
|
3528
3558
|
}
|
|
3529
3559
|
|
|
3530
|
-
return
|
|
3560
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3531
3561
|
ref: this.ref,
|
|
3532
3562
|
onReady: this.handleReady,
|
|
3533
3563
|
onPlay: this.handlePlay,
|
|
@@ -3560,7 +3590,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3560
3590
|
});
|
|
3561
3591
|
exports["default"] = createSinglePlayer;
|
|
3562
3592
|
|
|
3563
|
-
var _react = _interopRequireWildcard(
|
|
3593
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3564
3594
|
|
|
3565
3595
|
|
|
3566
3596
|
|
|
@@ -3588,16 +3618,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3588
3618
|
|
|
3589
3619
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3590
3620
|
|
|
3591
|
-
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); }; }
|
|
3592
|
-
|
|
3593
3621
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3594
3622
|
|
|
3595
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3596
|
-
|
|
3597
|
-
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; } }
|
|
3598
|
-
|
|
3599
3623
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3600
3624
|
|
|
3625
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3626
|
+
|
|
3601
3627
|
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); }
|
|
3602
3628
|
|
|
3603
3629
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3609,12 +3635,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3609
3635
|
function createSinglePlayer(activePlayer) {
|
|
3610
3636
|
var _class, _temp;
|
|
3611
3637
|
|
|
3612
|
-
return _temp = _class =
|
|
3638
|
+
return _temp = _class =
|
|
3639
|
+
/*#__PURE__*/
|
|
3640
|
+
function (_Component) {
|
|
3613
3641
|
_inherits(SinglePlayer, _Component);
|
|
3614
3642
|
|
|
3615
|
-
var _super = _createSuper(SinglePlayer);
|
|
3616
|
-
|
|
3617
3643
|
function SinglePlayer() {
|
|
3644
|
+
var _getPrototypeOf2;
|
|
3645
|
+
|
|
3618
3646
|
var _this;
|
|
3619
3647
|
|
|
3620
3648
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3623,7 +3651,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3623
3651
|
args[_key] = arguments[_key];
|
|
3624
3652
|
}
|
|
3625
3653
|
|
|
3626
|
-
_this =
|
|
3654
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3627
3655
|
|
|
3628
3656
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3629
3657
|
|
|
@@ -3691,12 +3719,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3691
3719
|
height = _this$props.height,
|
|
3692
3720
|
Wrapper = _this$props.wrapper;
|
|
3693
3721
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3694
|
-
return
|
|
3722
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3695
3723
|
style: _objectSpread({}, style, {
|
|
3696
3724
|
width: width,
|
|
3697
3725
|
height: height
|
|
3698
3726
|
})
|
|
3699
|
-
}, otherProps),
|
|
3727
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3700
3728
|
ref: this.ref,
|
|
3701
3729
|
activePlayer: activePlayer,
|
|
3702
3730
|
config: this.config
|
|
@@ -3718,7 +3746,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3718
3746
|
});
|
|
3719
3747
|
exports["default"] = exports.YouTube = void 0;
|
|
3720
3748
|
|
|
3721
|
-
var _react = _interopRequireWildcard(
|
|
3749
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3722
3750
|
|
|
3723
3751
|
|
|
3724
3752
|
|
|
@@ -3742,31 +3770,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3742
3770
|
|
|
3743
3771
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3744
3772
|
|
|
3745
|
-
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); }; }
|
|
3746
|
-
|
|
3747
3773
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3748
3774
|
|
|
3749
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3750
|
-
|
|
3751
|
-
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; } }
|
|
3752
|
-
|
|
3753
3775
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3754
3776
|
|
|
3777
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3778
|
+
|
|
3755
3779
|
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); }
|
|
3756
3780
|
|
|
3757
3781
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3758
3782
|
|
|
3759
3783
|
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; }
|
|
3760
3784
|
|
|
3761
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3762
|
-
|
|
3763
|
-
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."); }
|
|
3785
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3764
3786
|
|
|
3765
|
-
function
|
|
3787
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3766
3788
|
|
|
3767
|
-
function
|
|
3768
|
-
|
|
3769
|
-
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; }
|
|
3789
|
+
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; }
|
|
3770
3790
|
|
|
3771
3791
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3772
3792
|
|
|
@@ -3791,12 +3811,14 @@ function parsePlaylist(url) {
|
|
|
3791
3811
|
return {};
|
|
3792
3812
|
}
|
|
3793
3813
|
|
|
3794
|
-
var YouTube =
|
|
3814
|
+
var YouTube =
|
|
3815
|
+
/*#__PURE__*/
|
|
3816
|
+
function (_Component) {
|
|
3795
3817
|
_inherits(YouTube, _Component);
|
|
3796
3818
|
|
|
3797
|
-
var _super = _createSuper(YouTube);
|
|
3798
|
-
|
|
3799
3819
|
function YouTube() {
|
|
3820
|
+
var _getPrototypeOf2;
|
|
3821
|
+
|
|
3800
3822
|
var _this;
|
|
3801
3823
|
|
|
3802
3824
|
_classCallCheck(this, YouTube);
|
|
@@ -3805,7 +3827,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3805
3827
|
args[_key] = arguments[_key];
|
|
3806
3828
|
}
|
|
3807
3829
|
|
|
3808
|
-
_this =
|
|
3830
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3809
3831
|
|
|
3810
3832
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3811
3833
|
|
|
@@ -3993,9 +4015,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3993
4015
|
height: '100%',
|
|
3994
4016
|
display: display
|
|
3995
4017
|
};
|
|
3996
|
-
return
|
|
4018
|
+
return _react["default"].createElement("div", {
|
|
3997
4019
|
style: style
|
|
3998
|
-
},
|
|
4020
|
+
}, _react["default"].createElement("div", {
|
|
3999
4021
|
ref: this.ref
|
|
4000
4022
|
}));
|
|
4001
4023
|
}
|
|
@@ -4027,7 +4049,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4027
4049
|
});
|
|
4028
4050
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4029
4051
|
|
|
4030
|
-
var _react = _interopRequireWildcard(
|
|
4052
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4031
4053
|
|
|
4032
4054
|
|
|
4033
4055
|
|
|
@@ -4051,16 +4073,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4051
4073
|
|
|
4052
4074
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4053
4075
|
|
|
4054
|
-
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); }; }
|
|
4055
|
-
|
|
4056
4076
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4057
4077
|
|
|
4058
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4059
|
-
|
|
4060
|
-
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; } }
|
|
4061
|
-
|
|
4062
4078
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4063
4079
|
|
|
4080
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4081
|
+
|
|
4064
4082
|
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); }
|
|
4065
4083
|
|
|
4066
4084
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4069,14 +4087,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4069
4087
|
|
|
4070
4088
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4071
4089
|
var SDK_GLOBAL = 'SC';
|
|
4072
|
-
var MATCH_URL = /(
|
|
4090
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
4073
4091
|
|
|
4074
|
-
var SoundCloud =
|
|
4092
|
+
var SoundCloud =
|
|
4093
|
+
/*#__PURE__*/
|
|
4094
|
+
function (_Component) {
|
|
4075
4095
|
_inherits(SoundCloud, _Component);
|
|
4076
4096
|
|
|
4077
|
-
var _super = _createSuper(SoundCloud);
|
|
4078
|
-
|
|
4079
4097
|
function SoundCloud() {
|
|
4098
|
+
var _getPrototypeOf2;
|
|
4099
|
+
|
|
4080
4100
|
var _this;
|
|
4081
4101
|
|
|
4082
4102
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4085,7 +4105,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4085
4105
|
args[_key] = arguments[_key];
|
|
4086
4106
|
}
|
|
4087
4107
|
|
|
4088
|
-
_this =
|
|
4108
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4089
4109
|
|
|
4090
4110
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4091
4111
|
|
|
@@ -4206,7 +4226,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4206
4226
|
height: '100%',
|
|
4207
4227
|
display: display
|
|
4208
4228
|
};
|
|
4209
|
-
return
|
|
4229
|
+
return _react["default"].createElement("iframe", {
|
|
4210
4230
|
ref: this.ref,
|
|
4211
4231
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4212
4232
|
style: style,
|
|
@@ -4244,7 +4264,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4244
4264
|
});
|
|
4245
4265
|
exports["default"] = exports.Vimeo = void 0;
|
|
4246
4266
|
|
|
4247
|
-
var _react = _interopRequireWildcard(
|
|
4267
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4248
4268
|
|
|
4249
4269
|
|
|
4250
4270
|
|
|
@@ -4268,16 +4288,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4268
4288
|
|
|
4269
4289
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4270
4290
|
|
|
4271
|
-
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); }; }
|
|
4272
|
-
|
|
4273
4291
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4274
4292
|
|
|
4275
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4276
|
-
|
|
4277
|
-
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; } }
|
|
4278
|
-
|
|
4279
4293
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4280
4294
|
|
|
4295
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4296
|
+
|
|
4281
4297
|
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); }
|
|
4282
4298
|
|
|
4283
4299
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4289,12 +4305,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4289
4305
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4290
4306
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4291
4307
|
|
|
4292
|
-
var Vimeo =
|
|
4308
|
+
var Vimeo =
|
|
4309
|
+
/*#__PURE__*/
|
|
4310
|
+
function (_Component) {
|
|
4293
4311
|
_inherits(Vimeo, _Component);
|
|
4294
4312
|
|
|
4295
|
-
var _super = _createSuper(Vimeo);
|
|
4296
|
-
|
|
4297
4313
|
function Vimeo() {
|
|
4314
|
+
var _getPrototypeOf2;
|
|
4315
|
+
|
|
4298
4316
|
var _this;
|
|
4299
4317
|
|
|
4300
4318
|
_classCallCheck(this, Vimeo);
|
|
@@ -4303,7 +4321,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4303
4321
|
args[_key] = arguments[_key];
|
|
4304
4322
|
}
|
|
4305
4323
|
|
|
4306
|
-
_this =
|
|
4324
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4307
4325
|
|
|
4308
4326
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4309
4327
|
|
|
@@ -4460,7 +4478,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4460
4478
|
overflow: 'hidden',
|
|
4461
4479
|
display: display
|
|
4462
4480
|
};
|
|
4463
|
-
return
|
|
4481
|
+
return _react["default"].createElement("div", {
|
|
4464
4482
|
key: this.props.url,
|
|
4465
4483
|
ref: this.ref,
|
|
4466
4484
|
style: style
|
|
@@ -4500,7 +4518,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4500
4518
|
});
|
|
4501
4519
|
exports["default"] = exports.Facebook = void 0;
|
|
4502
4520
|
|
|
4503
|
-
var _react = _interopRequireWildcard(
|
|
4521
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4504
4522
|
|
|
4505
4523
|
|
|
4506
4524
|
|
|
@@ -4520,16 +4538,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4520
4538
|
|
|
4521
4539
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4522
4540
|
|
|
4523
|
-
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); }; }
|
|
4524
|
-
|
|
4525
4541
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4526
4542
|
|
|
4527
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4528
|
-
|
|
4529
|
-
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; } }
|
|
4530
|
-
|
|
4531
4543
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4532
4544
|
|
|
4545
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4546
|
+
|
|
4533
4547
|
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); }
|
|
4534
4548
|
|
|
4535
4549
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4542,12 +4556,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4542
4556
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4543
4557
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4544
4558
|
|
|
4545
|
-
var Facebook =
|
|
4559
|
+
var Facebook =
|
|
4560
|
+
/*#__PURE__*/
|
|
4561
|
+
function (_Component) {
|
|
4546
4562
|
_inherits(Facebook, _Component);
|
|
4547
4563
|
|
|
4548
|
-
var _super = _createSuper(Facebook);
|
|
4549
|
-
|
|
4550
4564
|
function Facebook() {
|
|
4565
|
+
var _getPrototypeOf2;
|
|
4566
|
+
|
|
4551
4567
|
var _this;
|
|
4552
4568
|
|
|
4553
4569
|
_classCallCheck(this, Facebook);
|
|
@@ -4556,7 +4572,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4556
4572
|
args[_key] = arguments[_key];
|
|
4557
4573
|
}
|
|
4558
4574
|
|
|
4559
|
-
_this =
|
|
4575
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4560
4576
|
|
|
4561
4577
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4562
4578
|
|
|
@@ -4672,7 +4688,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4672
4688
|
width: '100%',
|
|
4673
4689
|
height: '100%'
|
|
4674
4690
|
};
|
|
4675
|
-
return
|
|
4691
|
+
return _react["default"].createElement("div", {
|
|
4676
4692
|
style: style,
|
|
4677
4693
|
id: this.playerID,
|
|
4678
4694
|
className: "fb-video",
|
|
@@ -4712,7 +4728,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4712
4728
|
});
|
|
4713
4729
|
exports["default"] = exports.Streamable = void 0;
|
|
4714
4730
|
|
|
4715
|
-
var _react = _interopRequireWildcard(
|
|
4731
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4716
4732
|
|
|
4717
4733
|
|
|
4718
4734
|
|
|
@@ -4732,16 +4748,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4732
4748
|
|
|
4733
4749
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4734
4750
|
|
|
4735
|
-
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); }; }
|
|
4736
|
-
|
|
4737
4751
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4738
4752
|
|
|
4739
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4740
|
-
|
|
4741
|
-
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; } }
|
|
4742
|
-
|
|
4743
4753
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4744
4754
|
|
|
4755
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4756
|
+
|
|
4745
4757
|
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); }
|
|
4746
4758
|
|
|
4747
4759
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4752,12 +4764,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4752
4764
|
var SDK_GLOBAL = 'playerjs';
|
|
4753
4765
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4754
4766
|
|
|
4755
|
-
var Streamable =
|
|
4767
|
+
var Streamable =
|
|
4768
|
+
/*#__PURE__*/
|
|
4769
|
+
function (_Component) {
|
|
4756
4770
|
_inherits(Streamable, _Component);
|
|
4757
4771
|
|
|
4758
|
-
var _super = _createSuper(Streamable);
|
|
4759
|
-
|
|
4760
4772
|
function Streamable() {
|
|
4773
|
+
var _getPrototypeOf2;
|
|
4774
|
+
|
|
4761
4775
|
var _this;
|
|
4762
4776
|
|
|
4763
4777
|
_classCallCheck(this, Streamable);
|
|
@@ -4766,7 +4780,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4766
4780
|
args[_key] = arguments[_key];
|
|
4767
4781
|
}
|
|
4768
4782
|
|
|
4769
|
-
_this =
|
|
4783
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4770
4784
|
|
|
4771
4785
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4772
4786
|
|
|
@@ -4886,7 +4900,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4886
4900
|
width: '100%',
|
|
4887
4901
|
height: '100%'
|
|
4888
4902
|
};
|
|
4889
|
-
return
|
|
4903
|
+
return _react["default"].createElement("iframe", {
|
|
4890
4904
|
ref: this.ref,
|
|
4891
4905
|
src: "https://streamable.com/o/".concat(id),
|
|
4892
4906
|
frameBorder: "0",
|
|
@@ -4923,7 +4937,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4923
4937
|
});
|
|
4924
4938
|
exports["default"] = exports.Wistia = void 0;
|
|
4925
4939
|
|
|
4926
|
-
var _react = _interopRequireWildcard(
|
|
4940
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4927
4941
|
|
|
4928
4942
|
|
|
4929
4943
|
|
|
@@ -4947,16 +4961,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4947
4961
|
|
|
4948
4962
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4949
4963
|
|
|
4950
|
-
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); }; }
|
|
4951
|
-
|
|
4952
4964
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4953
4965
|
|
|
4954
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4955
|
-
|
|
4956
|
-
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; } }
|
|
4957
|
-
|
|
4958
4966
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4959
4967
|
|
|
4968
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4969
|
+
|
|
4960
4970
|
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); }
|
|
4961
4971
|
|
|
4962
4972
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4967,48 +4977,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4967
4977
|
var SDK_GLOBAL = 'Wistia';
|
|
4968
4978
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4969
4979
|
|
|
4970
|
-
var Wistia =
|
|
4980
|
+
var Wistia =
|
|
4981
|
+
/*#__PURE__*/
|
|
4982
|
+
function (_Component) {
|
|
4971
4983
|
_inherits(Wistia, _Component);
|
|
4972
4984
|
|
|
4973
|
-
var _super = _createSuper(Wistia);
|
|
4974
|
-
|
|
4975
4985
|
function Wistia() {
|
|
4986
|
+
var _getPrototypeOf2;
|
|
4987
|
+
|
|
4976
4988
|
var _this;
|
|
4977
4989
|
|
|
4978
4990
|
_classCallCheck(this, Wistia);
|
|
4979
4991
|
|
|
4980
|
-
for (var _len = arguments.length,
|
|
4981
|
-
|
|
4992
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4993
|
+
args[_key] = arguments[_key];
|
|
4982
4994
|
}
|
|
4983
4995
|
|
|
4984
|
-
_this =
|
|
4996
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4985
4997
|
|
|
4986
4998
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4987
4999
|
|
|
4988
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4989
|
-
var _this$props;
|
|
4990
|
-
|
|
4991
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4992
|
-
});
|
|
4993
|
-
|
|
4994
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4995
|
-
var _this$props2;
|
|
4996
|
-
|
|
4997
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4998
|
-
});
|
|
4999
|
-
|
|
5000
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
5001
|
-
var _this$props3;
|
|
5002
|
-
|
|
5003
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5004
|
-
});
|
|
5005
|
-
|
|
5006
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5007
|
-
var _this$props4;
|
|
5008
|
-
|
|
5009
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5010
|
-
});
|
|
5011
|
-
|
|
5012
5000
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5013
5001
|
_this.callPlayer('mute');
|
|
5014
5002
|
});
|
|
@@ -5030,13 +5018,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5030
5018
|
value: function load(url) {
|
|
5031
5019
|
var _this2 = this;
|
|
5032
5020
|
|
|
5033
|
-
var _this$
|
|
5034
|
-
playing = _this$
|
|
5035
|
-
muted = _this$
|
|
5036
|
-
controls = _this$
|
|
5037
|
-
_onReady = _this$
|
|
5038
|
-
|
|
5039
|
-
|
|
5021
|
+
var _this$props = this.props,
|
|
5022
|
+
playing = _this$props.playing,
|
|
5023
|
+
muted = _this$props.muted,
|
|
5024
|
+
controls = _this$props.controls,
|
|
5025
|
+
_onReady = _this$props.onReady,
|
|
5026
|
+
onPlay = _this$props.onPlay,
|
|
5027
|
+
onPause = _this$props.onPause,
|
|
5028
|
+
onSeek = _this$props.onSeek,
|
|
5029
|
+
onEnded = _this$props.onEnded,
|
|
5030
|
+
config = _this$props.config,
|
|
5031
|
+
onError = _this$props.onError;
|
|
5040
5032
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5041
5033
|
window._wq = window._wq || [];
|
|
5042
5034
|
|
|
@@ -5053,28 +5045,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5053
5045
|
|
|
5054
5046
|
_this2.unbind();
|
|
5055
5047
|
|
|
5056
|
-
_this2.player.bind('play',
|
|
5048
|
+
_this2.player.bind('play', onPlay);
|
|
5057
5049
|
|
|
5058
|
-
_this2.player.bind('pause',
|
|
5050
|
+
_this2.player.bind('pause', onPause);
|
|
5059
5051
|
|
|
5060
|
-
_this2.player.bind('seek',
|
|
5052
|
+
_this2.player.bind('seek', onSeek);
|
|
5061
5053
|
|
|
5062
|
-
_this2.player.bind('end',
|
|
5054
|
+
_this2.player.bind('end', onEnded);
|
|
5063
5055
|
|
|
5064
5056
|
_onReady();
|
|
5065
5057
|
}
|
|
5066
5058
|
});
|
|
5067
5059
|
}, onError);
|
|
5068
5060
|
}
|
|
5069
|
-
}, {
|
|
5070
|
-
key: "unbind",
|
|
5071
|
-
value: function unbind() {
|
|
5072
|
-
this.player.unbind('play', this.onPlay);
|
|
5073
|
-
this.player.unbind('pause', this.onPause);
|
|
5074
|
-
this.player.unbind('seek', this.onSeek);
|
|
5075
|
-
this.player.unbind('end', this.onEnded);
|
|
5076
|
-
} // Proxy methods to prevent listener leaks
|
|
5077
|
-
|
|
5078
5061
|
}, {
|
|
5079
5062
|
key: "play",
|
|
5080
5063
|
value: function play() {
|
|
@@ -5085,6 +5068,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5085
5068
|
value: function pause() {
|
|
5086
5069
|
this.callPlayer('pause');
|
|
5087
5070
|
}
|
|
5071
|
+
}, {
|
|
5072
|
+
key: "unbind",
|
|
5073
|
+
value: function unbind() {
|
|
5074
|
+
var _this$props2 = this.props,
|
|
5075
|
+
onPlay = _this$props2.onPlay,
|
|
5076
|
+
onPause = _this$props2.onPause,
|
|
5077
|
+
onSeek = _this$props2.onSeek,
|
|
5078
|
+
onEnded = _this$props2.onEnded;
|
|
5079
|
+
this.player.unbind('play', onPlay);
|
|
5080
|
+
this.player.unbind('pause', onPause);
|
|
5081
|
+
this.player.unbind('seek', onSeek);
|
|
5082
|
+
this.player.unbind('end', onEnded);
|
|
5083
|
+
}
|
|
5088
5084
|
}, {
|
|
5089
5085
|
key: "stop",
|
|
5090
5086
|
value: function stop() {
|
|
@@ -5130,7 +5126,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5130
5126
|
width: '100%',
|
|
5131
5127
|
height: '100%'
|
|
5132
5128
|
};
|
|
5133
|
-
return
|
|
5129
|
+
return _react["default"].createElement("div", {
|
|
5134
5130
|
key: id,
|
|
5135
5131
|
className: className,
|
|
5136
5132
|
style: style
|
|
@@ -5166,7 +5162,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5166
5162
|
});
|
|
5167
5163
|
exports["default"] = exports.Twitch = void 0;
|
|
5168
5164
|
|
|
5169
|
-
var _react = _interopRequireWildcard(
|
|
5165
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5170
5166
|
|
|
5171
5167
|
|
|
5172
5168
|
|
|
@@ -5190,16 +5186,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5190
5186
|
|
|
5191
5187
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5192
5188
|
|
|
5193
|
-
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); }; }
|
|
5194
|
-
|
|
5195
5189
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5196
5190
|
|
|
5197
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5198
|
-
|
|
5199
|
-
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; } }
|
|
5200
|
-
|
|
5201
5191
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5202
5192
|
|
|
5193
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5194
|
+
|
|
5203
5195
|
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); }
|
|
5204
5196
|
|
|
5205
5197
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5212,12 +5204,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5212
5204
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5213
5205
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5214
5206
|
|
|
5215
|
-
var Twitch =
|
|
5207
|
+
var Twitch =
|
|
5208
|
+
/*#__PURE__*/
|
|
5209
|
+
function (_Component) {
|
|
5216
5210
|
_inherits(Twitch, _Component);
|
|
5217
5211
|
|
|
5218
|
-
var _super = _createSuper(Twitch);
|
|
5219
|
-
|
|
5220
5212
|
function Twitch() {
|
|
5213
|
+
var _getPrototypeOf2;
|
|
5214
|
+
|
|
5221
5215
|
var _this;
|
|
5222
5216
|
|
|
5223
5217
|
_classCallCheck(this, Twitch);
|
|
@@ -5226,7 +5220,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5226
5220
|
args[_key] = arguments[_key];
|
|
5227
5221
|
}
|
|
5228
5222
|
|
|
5229
|
-
_this =
|
|
5223
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5230
5224
|
|
|
5231
5225
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5232
5226
|
|
|
@@ -5347,7 +5341,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5347
5341
|
width: '100%',
|
|
5348
5342
|
height: '100%'
|
|
5349
5343
|
};
|
|
5350
|
-
return
|
|
5344
|
+
return _react["default"].createElement("div", {
|
|
5351
5345
|
style: style,
|
|
5352
5346
|
id: this.playerID
|
|
5353
5347
|
});
|
|
@@ -5382,7 +5376,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5382
5376
|
});
|
|
5383
5377
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5384
5378
|
|
|
5385
|
-
var _react = _interopRequireWildcard(
|
|
5379
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5386
5380
|
|
|
5387
5381
|
|
|
5388
5382
|
|
|
@@ -5400,15 +5394,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5400
5394
|
|
|
5401
5395
|
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; }
|
|
5402
5396
|
|
|
5403
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5404
|
-
|
|
5405
|
-
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."); }
|
|
5397
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5406
5398
|
|
|
5407
|
-
function
|
|
5399
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5408
5400
|
|
|
5409
|
-
function
|
|
5410
|
-
|
|
5411
|
-
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; }
|
|
5401
|
+
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; }
|
|
5412
5402
|
|
|
5413
5403
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5414
5404
|
|
|
@@ -5418,16 +5408,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5418
5408
|
|
|
5419
5409
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5420
5410
|
|
|
5421
|
-
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); }; }
|
|
5422
|
-
|
|
5423
5411
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5424
5412
|
|
|
5425
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5426
|
-
|
|
5427
|
-
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; } }
|
|
5428
|
-
|
|
5429
5413
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5430
5414
|
|
|
5415
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5416
|
+
|
|
5431
5417
|
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); }
|
|
5432
5418
|
|
|
5433
5419
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5439,12 +5425,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5439
5425
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5440
5426
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5441
5427
|
|
|
5442
|
-
var DailyMotion =
|
|
5428
|
+
var DailyMotion =
|
|
5429
|
+
/*#__PURE__*/
|
|
5430
|
+
function (_Component) {
|
|
5443
5431
|
_inherits(DailyMotion, _Component);
|
|
5444
5432
|
|
|
5445
|
-
var _super = _createSuper(DailyMotion);
|
|
5446
|
-
|
|
5447
5433
|
function DailyMotion() {
|
|
5434
|
+
var _getPrototypeOf2;
|
|
5435
|
+
|
|
5448
5436
|
var _this;
|
|
5449
5437
|
|
|
5450
5438
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5453,7 +5441,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5453
5441
|
args[_key] = arguments[_key];
|
|
5454
5442
|
}
|
|
5455
5443
|
|
|
5456
|
-
_this =
|
|
5444
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5457
5445
|
|
|
5458
5446
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5459
5447
|
|
|
@@ -5582,9 +5570,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5582
5570
|
height: '100%',
|
|
5583
5571
|
display: display
|
|
5584
5572
|
};
|
|
5585
|
-
return
|
|
5573
|
+
return _react["default"].createElement("div", {
|
|
5586
5574
|
style: style
|
|
5587
|
-
},
|
|
5575
|
+
}, _react["default"].createElement("div", {
|
|
5588
5576
|
ref: this.ref
|
|
5589
5577
|
}));
|
|
5590
5578
|
}
|
|
@@ -5618,7 +5606,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5618
5606
|
});
|
|
5619
5607
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5620
5608
|
|
|
5621
|
-
var _react = _interopRequireWildcard(
|
|
5609
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5622
5610
|
|
|
5623
5611
|
|
|
5624
5612
|
|
|
@@ -5642,16 +5630,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5642
5630
|
|
|
5643
5631
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5644
5632
|
|
|
5645
|
-
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); }; }
|
|
5646
|
-
|
|
5647
5633
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5648
5634
|
|
|
5649
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5650
|
-
|
|
5651
|
-
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; } }
|
|
5652
|
-
|
|
5653
5635
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5654
5636
|
|
|
5637
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5638
|
+
|
|
5655
5639
|
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); }
|
|
5656
5640
|
|
|
5657
5641
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5662,12 +5646,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5662
5646
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5663
5647
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5664
5648
|
|
|
5665
|
-
var Mixcloud =
|
|
5649
|
+
var Mixcloud =
|
|
5650
|
+
/*#__PURE__*/
|
|
5651
|
+
function (_Component) {
|
|
5666
5652
|
_inherits(Mixcloud, _Component);
|
|
5667
5653
|
|
|
5668
|
-
var _super = _createSuper(Mixcloud);
|
|
5669
|
-
|
|
5670
5654
|
function Mixcloud() {
|
|
5655
|
+
var _getPrototypeOf2;
|
|
5656
|
+
|
|
5671
5657
|
var _this;
|
|
5672
5658
|
|
|
5673
5659
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5676,7 +5662,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5676
5662
|
args[_key] = arguments[_key];
|
|
5677
5663
|
}
|
|
5678
5664
|
|
|
5679
|
-
_this =
|
|
5665
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5680
5666
|
|
|
5681
5667
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5682
5668
|
|
|
@@ -5779,7 +5765,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5779
5765
|
})); // We have to give the iframe a key here to prevent a
|
|
5780
5766
|
// weird dialog appearing when loading a new track
|
|
5781
5767
|
|
|
5782
|
-
return
|
|
5768
|
+
return _react["default"].createElement("iframe", {
|
|
5783
5769
|
key: id,
|
|
5784
5770
|
ref: this.ref,
|
|
5785
5771
|
style: style,
|
|
@@ -5817,7 +5803,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5817
5803
|
});
|
|
5818
5804
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5819
5805
|
|
|
5820
|
-
var _react = _interopRequireWildcard(
|
|
5806
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5821
5807
|
|
|
5822
5808
|
|
|
5823
5809
|
|
|
@@ -5839,33 +5825,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5839
5825
|
|
|
5840
5826
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5841
5827
|
|
|
5842
|
-
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); }; }
|
|
5843
|
-
|
|
5844
5828
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5845
5829
|
|
|
5846
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5847
|
-
|
|
5848
|
-
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; } }
|
|
5849
|
-
|
|
5850
5830
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5851
5831
|
|
|
5832
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5833
|
+
|
|
5852
5834
|
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); }
|
|
5853
5835
|
|
|
5854
5836
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5855
5837
|
|
|
5856
5838
|
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; }
|
|
5857
5839
|
|
|
5858
|
-
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; } } }; }
|
|
5859
|
-
|
|
5860
|
-
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); }
|
|
5861
|
-
|
|
5862
|
-
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; }
|
|
5863
|
-
|
|
5864
5840
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5865
5841
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5866
5842
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5867
5843
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5868
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
5844
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5869
5845
|
var HLS_GLOBAL = 'Hls';
|
|
5870
5846
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5871
5847
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5874,11 +5850,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5874
5850
|
|
|
5875
5851
|
function canPlay(url) {
|
|
5876
5852
|
if (url instanceof Array) {
|
|
5877
|
-
var
|
|
5878
|
-
|
|
5853
|
+
var _iteratorNormalCompletion = true;
|
|
5854
|
+
var _didIteratorError = false;
|
|
5855
|
+
var _iteratorError = undefined;
|
|
5879
5856
|
|
|
5880
5857
|
try {
|
|
5881
|
-
for (_iterator.
|
|
5858
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5882
5859
|
var item = _step.value;
|
|
5883
5860
|
|
|
5884
5861
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5890,9 +5867,18 @@ function canPlay(url) {
|
|
|
5890
5867
|
}
|
|
5891
5868
|
}
|
|
5892
5869
|
} catch (err) {
|
|
5893
|
-
|
|
5870
|
+
_didIteratorError = true;
|
|
5871
|
+
_iteratorError = err;
|
|
5894
5872
|
} finally {
|
|
5895
|
-
|
|
5873
|
+
try {
|
|
5874
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5875
|
+
_iterator["return"]();
|
|
5876
|
+
}
|
|
5877
|
+
} finally {
|
|
5878
|
+
if (_didIteratorError) {
|
|
5879
|
+
throw _iteratorError;
|
|
5880
|
+
}
|
|
5881
|
+
}
|
|
5896
5882
|
}
|
|
5897
5883
|
|
|
5898
5884
|
return false;
|
|
@@ -5916,12 +5902,14 @@ function canEnablePIP(url) {
|
|
|
5916
5902
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5917
5903
|
}
|
|
5918
5904
|
|
|
5919
|
-
var FilePlayer =
|
|
5905
|
+
var FilePlayer =
|
|
5906
|
+
/*#__PURE__*/
|
|
5907
|
+
function (_Component) {
|
|
5920
5908
|
_inherits(FilePlayer, _Component);
|
|
5921
5909
|
|
|
5922
|
-
var _super = _createSuper(FilePlayer);
|
|
5923
|
-
|
|
5924
5910
|
function FilePlayer() {
|
|
5911
|
+
var _getPrototypeOf2;
|
|
5912
|
+
|
|
5925
5913
|
var _this;
|
|
5926
5914
|
|
|
5927
5915
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5930,7 +5918,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5930
5918
|
_args[_key] = arguments[_key];
|
|
5931
5919
|
}
|
|
5932
5920
|
|
|
5933
|
-
_this =
|
|
5921
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5934
5922
|
|
|
5935
5923
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5936
5924
|
var _this$props;
|
|
@@ -6017,19 +6005,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6017
6005
|
|
|
6018
6006
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6019
6007
|
if (typeof source === 'string') {
|
|
6020
|
-
return
|
|
6008
|
+
return _react["default"].createElement("source", {
|
|
6021
6009
|
key: index,
|
|
6022
6010
|
src: source
|
|
6023
6011
|
});
|
|
6024
6012
|
}
|
|
6025
6013
|
|
|
6026
|
-
return
|
|
6014
|
+
return _react["default"].createElement("source", _extends({
|
|
6027
6015
|
key: index
|
|
6028
6016
|
}, source));
|
|
6029
6017
|
});
|
|
6030
6018
|
|
|
6031
6019
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6032
|
-
return
|
|
6020
|
+
return _react["default"].createElement("track", _extends({
|
|
6033
6021
|
key: index
|
|
6034
6022
|
}, track));
|
|
6035
6023
|
});
|
|
@@ -6067,10 +6055,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6067
6055
|
key: "componentWillUnmount",
|
|
6068
6056
|
value: function componentWillUnmount() {
|
|
6069
6057
|
this.removeListeners(this.player);
|
|
6070
|
-
|
|
6071
|
-
if (this.hls) {
|
|
6072
|
-
this.hls.destroy();
|
|
6073
|
-
}
|
|
6074
6058
|
}
|
|
6075
6059
|
}, {
|
|
6076
6060
|
key: "addListeners",
|
|
@@ -6201,6 +6185,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6201
6185
|
value: function stop() {
|
|
6202
6186
|
this.player.removeAttribute('src');
|
|
6203
6187
|
|
|
6188
|
+
if (this.hls) {
|
|
6189
|
+
this.hls.destroy();
|
|
6190
|
+
}
|
|
6191
|
+
|
|
6204
6192
|
if (this.dash) {
|
|
6205
6193
|
this.dash.reset();
|
|
6206
6194
|
}
|
|
@@ -6312,7 +6300,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6312
6300
|
width: width === 'auto' ? width : '100%',
|
|
6313
6301
|
height: height === 'auto' ? height : '100%'
|
|
6314
6302
|
};
|
|
6315
|
-
return
|
|
6303
|
+
return _react["default"].createElement(Element, _extends({
|
|
6316
6304
|
ref: this.ref,
|
|
6317
6305
|
src: this.getSource(url),
|
|
6318
6306
|
style: style,
|
|
@@ -6384,7 +6372,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6384
6372
|
});
|
|
6385
6373
|
exports["default"] = void 0;
|
|
6386
6374
|
|
|
6387
|
-
var _react = _interopRequireWildcard(
|
|
6375
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6388
6376
|
|
|
6389
6377
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6390
6378
|
|
|
@@ -6402,16 +6390,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6402
6390
|
|
|
6403
6391
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6404
6392
|
|
|
6405
|
-
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); }; }
|
|
6406
|
-
|
|
6407
6393
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6408
6394
|
|
|
6409
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6410
|
-
|
|
6411
|
-
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; } }
|
|
6412
|
-
|
|
6413
6395
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6414
6396
|
|
|
6397
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6398
|
+
|
|
6415
6399
|
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); }
|
|
6416
6400
|
|
|
6417
6401
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6420,12 +6404,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6420
6404
|
|
|
6421
6405
|
var ICON_SIZE = '64px';
|
|
6422
6406
|
|
|
6423
|
-
var Preview =
|
|
6407
|
+
var Preview =
|
|
6408
|
+
/*#__PURE__*/
|
|
6409
|
+
function (_Component) {
|
|
6424
6410
|
_inherits(Preview, _Component);
|
|
6425
6411
|
|
|
6426
|
-
var _super = _createSuper(Preview);
|
|
6427
|
-
|
|
6428
6412
|
function Preview() {
|
|
6413
|
+
var _getPrototypeOf2;
|
|
6414
|
+
|
|
6429
6415
|
var _this;
|
|
6430
6416
|
|
|
6431
6417
|
_classCallCheck(this, Preview);
|
|
@@ -6434,7 +6420,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6434
6420
|
args[_key] = arguments[_key];
|
|
6435
6421
|
}
|
|
6436
6422
|
|
|
6437
|
-
_this =
|
|
6423
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6438
6424
|
|
|
6439
6425
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6440
6426
|
|
|
@@ -6532,15 +6518,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6532
6518
|
}
|
|
6533
6519
|
};
|
|
6534
6520
|
|
|
6535
|
-
var defaultPlayIcon =
|
|
6521
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6536
6522
|
style: styles.shadow,
|
|
6537
6523
|
className: "react-player__shadow"
|
|
6538
|
-
},
|
|
6524
|
+
}, _react["default"].createElement("div", {
|
|
6539
6525
|
style: styles.playIcon,
|
|
6540
6526
|
className: "react-player__play-icon"
|
|
6541
6527
|
}));
|
|
6542
6528
|
|
|
6543
|
-
return
|
|
6529
|
+
return _react["default"].createElement("div", {
|
|
6544
6530
|
style: styles.preview,
|
|
6545
6531
|
className: "react-player__preview",
|
|
6546
6532
|
onClick: onClick
|
|
@@ -6563,7 +6549,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6563
6549
|
});
|
|
6564
6550
|
exports["default"] = renderPreloadPlayers;
|
|
6565
6551
|
|
|
6566
|
-
var _react = _interopRequireDefault(
|
|
6552
|
+
var _react = _interopRequireDefault(React__default);
|
|
6567
6553
|
|
|
6568
6554
|
var _Player = _interopRequireDefault(Player_1);
|
|
6569
6555
|
|
|
@@ -6577,12 +6563,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6577
6563
|
|
|
6578
6564
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6579
6565
|
|
|
6580
|
-
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; } } }; }
|
|
6581
|
-
|
|
6582
|
-
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); }
|
|
6583
|
-
|
|
6584
|
-
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; }
|
|
6585
|
-
|
|
6586
6566
|
var PRELOAD_PLAYERS = [{
|
|
6587
6567
|
Player: YouTube_1.YouTube,
|
|
6588
6568
|
configKey: 'youtube',
|
|
@@ -6603,16 +6583,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6603
6583
|
|
|
6604
6584
|
function renderPreloadPlayers(url, controls, config) {
|
|
6605
6585
|
var players = [];
|
|
6606
|
-
|
|
6607
|
-
var
|
|
6608
|
-
|
|
6586
|
+
var _iteratorNormalCompletion = true;
|
|
6587
|
+
var _didIteratorError = false;
|
|
6588
|
+
var _iteratorError = undefined;
|
|
6609
6589
|
|
|
6610
6590
|
try {
|
|
6611
|
-
for (_iterator.
|
|
6591
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6612
6592
|
var player = _step.value;
|
|
6613
6593
|
|
|
6614
6594
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6615
|
-
players.push(
|
|
6595
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6616
6596
|
key: player.Player.displayName,
|
|
6617
6597
|
activePlayer: player.Player,
|
|
6618
6598
|
url: player.url,
|
|
@@ -6624,9 +6604,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6624
6604
|
}
|
|
6625
6605
|
}
|
|
6626
6606
|
} catch (err) {
|
|
6627
|
-
|
|
6607
|
+
_didIteratorError = true;
|
|
6608
|
+
_iteratorError = err;
|
|
6628
6609
|
} finally {
|
|
6629
|
-
|
|
6610
|
+
try {
|
|
6611
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6612
|
+
_iterator["return"]();
|
|
6613
|
+
}
|
|
6614
|
+
} finally {
|
|
6615
|
+
if (_didIteratorError) {
|
|
6616
|
+
throw _iteratorError;
|
|
6617
|
+
}
|
|
6618
|
+
}
|
|
6630
6619
|
}
|
|
6631
6620
|
|
|
6632
6621
|
return players;
|
|
@@ -6702,7 +6691,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6702
6691
|
});
|
|
6703
6692
|
exports["default"] = void 0;
|
|
6704
6693
|
|
|
6705
|
-
var _react = _interopRequireWildcard(
|
|
6694
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6706
6695
|
|
|
6707
6696
|
|
|
6708
6697
|
|
|
@@ -6750,17 +6739,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6750
6739
|
|
|
6751
6740
|
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); }
|
|
6752
6741
|
|
|
6753
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6754
|
-
|
|
6755
|
-
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."); }
|
|
6742
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6756
6743
|
|
|
6757
|
-
function
|
|
6744
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6758
6745
|
|
|
6759
|
-
function _iterableToArray(iter) { if (
|
|
6746
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6760
6747
|
|
|
6761
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr))
|
|
6762
|
-
|
|
6763
|
-
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; }
|
|
6748
|
+
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; } }
|
|
6764
6749
|
|
|
6765
6750
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6766
6751
|
|
|
@@ -6768,16 +6753,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6768
6753
|
|
|
6769
6754
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6770
6755
|
|
|
6771
|
-
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); }; }
|
|
6772
|
-
|
|
6773
6756
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6774
6757
|
|
|
6775
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6776
|
-
|
|
6777
|
-
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; } }
|
|
6778
|
-
|
|
6779
6758
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6780
6759
|
|
|
6760
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6761
|
+
|
|
6781
6762
|
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); }
|
|
6782
6763
|
|
|
6783
6764
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6787,12 +6768,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6787
6768
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6788
6769
|
var customPlayers = [];
|
|
6789
6770
|
|
|
6790
|
-
var ReactPlayer =
|
|
6771
|
+
var ReactPlayer =
|
|
6772
|
+
/*#__PURE__*/
|
|
6773
|
+
function (_Component) {
|
|
6791
6774
|
_inherits(ReactPlayer, _Component);
|
|
6792
6775
|
|
|
6793
|
-
var _super = _createSuper(ReactPlayer);
|
|
6794
|
-
|
|
6795
6776
|
function ReactPlayer() {
|
|
6777
|
+
var _getPrototypeOf2;
|
|
6778
|
+
|
|
6796
6779
|
var _this;
|
|
6797
6780
|
|
|
6798
6781
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6801,7 +6784,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6801
6784
|
args[_key] = arguments[_key];
|
|
6802
6785
|
}
|
|
6803
6786
|
|
|
6804
|
-
_this =
|
|
6787
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6805
6788
|
|
|
6806
6789
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6807
6790
|
|
|
@@ -6912,7 +6895,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6912
6895
|
key: "renderActivePlayer",
|
|
6913
6896
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6914
6897
|
if (!url) return null;
|
|
6915
|
-
return
|
|
6898
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6916
6899
|
key: activePlayer.displayName,
|
|
6917
6900
|
ref: this.activePlayerRef,
|
|
6918
6901
|
config: this.config,
|
|
@@ -6949,14 +6932,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6949
6932
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6950
6933
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6951
6934
|
|
|
6952
|
-
var preview =
|
|
6935
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6953
6936
|
url: url,
|
|
6954
6937
|
light: light,
|
|
6955
6938
|
playIcon: playIcon,
|
|
6956
6939
|
onClick: this.handleClickPreview
|
|
6957
6940
|
});
|
|
6958
6941
|
|
|
6959
|
-
return
|
|
6942
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6960
6943
|
ref: this.wrapperRef,
|
|
6961
6944
|
style: _objectSpread({}, style, {
|
|
6962
6945
|
width: width,
|
|
@@ -7016,20 +6999,20 @@ var Audio = function Audio(_ref) {
|
|
|
7016
6999
|
var node = _ref.node;
|
|
7017
7000
|
|
|
7018
7001
|
if (node.uploadAudio) {
|
|
7019
|
-
return
|
|
7002
|
+
return React__default.createElement(
|
|
7020
7003
|
'div',
|
|
7021
7004
|
{ className: 'audio d-block text-center mb-3' },
|
|
7022
|
-
|
|
7005
|
+
React__default.createElement(
|
|
7023
7006
|
'audio',
|
|
7024
7007
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7025
|
-
|
|
7026
|
-
|
|
7008
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7009
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7027
7010
|
'Your browser does not support the audio element.'
|
|
7028
7011
|
),
|
|
7029
|
-
node.caption &&
|
|
7012
|
+
node.caption && React__default.createElement(
|
|
7030
7013
|
'p',
|
|
7031
7014
|
{ style: { fontSize: '.9rem' } },
|
|
7032
|
-
|
|
7015
|
+
React__default.createElement(
|
|
7033
7016
|
'em',
|
|
7034
7017
|
null,
|
|
7035
7018
|
node.caption
|
|
@@ -7039,15 +7022,15 @@ var Audio = function Audio(_ref) {
|
|
|
7039
7022
|
} else if (node.audioFilePth) {
|
|
7040
7023
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7041
7024
|
if (hostname === 'embeds.audioboom.com') {
|
|
7042
|
-
return
|
|
7025
|
+
return React__default.createElement(
|
|
7043
7026
|
'div',
|
|
7044
7027
|
null,
|
|
7045
|
-
|
|
7028
|
+
React__default.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7046
7029
|
' ',
|
|
7047
|
-
node.caption &&
|
|
7030
|
+
node.caption && React__default.createElement(
|
|
7048
7031
|
'p',
|
|
7049
7032
|
{ style: { fontSize: '.9rem' } },
|
|
7050
|
-
|
|
7033
|
+
React__default.createElement(
|
|
7051
7034
|
'em',
|
|
7052
7035
|
null,
|
|
7053
7036
|
node.caption
|
|
@@ -7055,14 +7038,14 @@ var Audio = function Audio(_ref) {
|
|
|
7055
7038
|
)
|
|
7056
7039
|
);
|
|
7057
7040
|
}
|
|
7058
|
-
return
|
|
7041
|
+
return React__default.createElement(
|
|
7059
7042
|
'div',
|
|
7060
7043
|
{ className: 'audio' },
|
|
7061
|
-
|
|
7062
|
-
node.caption &&
|
|
7044
|
+
React__default.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7045
|
+
node.caption && React__default.createElement(
|
|
7063
7046
|
'p',
|
|
7064
7047
|
{ style: { fontSize: '.9rem' } },
|
|
7065
|
-
|
|
7048
|
+
React__default.createElement(
|
|
7066
7049
|
'em',
|
|
7067
7050
|
null,
|
|
7068
7051
|
node.caption
|
|
@@ -7080,34 +7063,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7080
7063
|
var profileImage = arguments[6];
|
|
7081
7064
|
|
|
7082
7065
|
if (authorName && authorURL) {
|
|
7083
|
-
return
|
|
7066
|
+
return React__default.createElement(
|
|
7084
7067
|
'span',
|
|
7085
7068
|
null,
|
|
7086
|
-
|
|
7069
|
+
React__default.createElement(
|
|
7087
7070
|
'a',
|
|
7088
7071
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7089
7072
|
authorName
|
|
7090
7073
|
),
|
|
7091
|
-
|
|
7074
|
+
React__default.createElement(
|
|
7092
7075
|
Card,
|
|
7093
7076
|
{ className: 'author-details-card-' + index },
|
|
7094
|
-
|
|
7077
|
+
React__default.createElement(
|
|
7095
7078
|
Row,
|
|
7096
7079
|
null,
|
|
7097
|
-
profileImage &&
|
|
7080
|
+
profileImage && React__default.createElement(
|
|
7098
7081
|
Col,
|
|
7099
7082
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7100
|
-
|
|
7083
|
+
React__default.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7101
7084
|
),
|
|
7102
|
-
|
|
7085
|
+
React__default.createElement(
|
|
7103
7086
|
Col,
|
|
7104
7087
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7105
|
-
|
|
7088
|
+
React__default.createElement(
|
|
7106
7089
|
'div',
|
|
7107
7090
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7108
7091
|
authorName
|
|
7109
7092
|
),
|
|
7110
|
-
|
|
7093
|
+
React__default.createElement(
|
|
7111
7094
|
'p',
|
|
7112
7095
|
null,
|
|
7113
7096
|
biography
|
|
@@ -7115,7 +7098,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7115
7098
|
)
|
|
7116
7099
|
)
|
|
7117
7100
|
),
|
|
7118
|
-
|
|
7101
|
+
React__default.createElement(
|
|
7119
7102
|
'style',
|
|
7120
7103
|
{ jsx: 'true' },
|
|
7121
7104
|
'\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 '
|
|
@@ -7123,7 +7106,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7123
7106
|
length !== index + 1 && ' , '
|
|
7124
7107
|
);
|
|
7125
7108
|
} else if (authorName) {
|
|
7126
|
-
return
|
|
7109
|
+
return React__default.createElement(
|
|
7127
7110
|
'span',
|
|
7128
7111
|
{ key: index },
|
|
7129
7112
|
authorName,
|
|
@@ -7395,44 +7378,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7395
7378
|
}
|
|
7396
7379
|
};
|
|
7397
7380
|
|
|
7398
|
-
return
|
|
7381
|
+
return React__default.createElement(
|
|
7399
7382
|
'div',
|
|
7400
7383
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7401
|
-
|
|
7384
|
+
React__default.createElement(
|
|
7402
7385
|
'div',
|
|
7403
7386
|
{ className: 'mt-2 mb-5' },
|
|
7404
|
-
series &&
|
|
7387
|
+
series && React__default.createElement(
|
|
7405
7388
|
'div',
|
|
7406
7389
|
{ style: { fontSize: '0.9rem' } },
|
|
7407
7390
|
article.title,
|
|
7408
7391
|
' - Episode ',
|
|
7409
7392
|
series
|
|
7410
7393
|
),
|
|
7411
|
-
Videos[series - 1] &&
|
|
7394
|
+
Videos[series - 1] && React__default.createElement(
|
|
7412
7395
|
'h1',
|
|
7413
7396
|
{ className: 'mb-3' },
|
|
7414
7397
|
Videos[series - 1].title
|
|
7415
7398
|
),
|
|
7416
|
-
|
|
7399
|
+
React__default.createElement(
|
|
7417
7400
|
'div',
|
|
7418
7401
|
null,
|
|
7419
7402
|
moment(article.published).format('LL')
|
|
7420
7403
|
),
|
|
7421
|
-
|
|
7404
|
+
React__default.createElement(
|
|
7422
7405
|
'div',
|
|
7423
7406
|
{ className: 'mb-3' },
|
|
7424
7407
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7425
|
-
return
|
|
7408
|
+
return React__default.createElement(
|
|
7426
7409
|
'span',
|
|
7427
7410
|
{ key: index },
|
|
7428
7411
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
7429
7412
|
);
|
|
7430
7413
|
})
|
|
7431
7414
|
),
|
|
7432
|
-
|
|
7415
|
+
React__default.createElement(
|
|
7433
7416
|
'p',
|
|
7434
7417
|
null,
|
|
7435
|
-
|
|
7418
|
+
React__default.createElement(SocialShare, {
|
|
7436
7419
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7437
7420
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7438
7421
|
shareVia: meta.shareVia,
|
|
@@ -7447,20 +7430,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7447
7430
|
hideFacebook: meta.hideFBShare
|
|
7448
7431
|
})
|
|
7449
7432
|
),
|
|
7450
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7433
|
+
Videos[series - 1] && Videos[series - 1].intro && React__default.createElement(
|
|
7451
7434
|
'p',
|
|
7452
7435
|
{ className: 'mb-3' },
|
|
7453
|
-
|
|
7436
|
+
React__default.createElement(
|
|
7454
7437
|
'em',
|
|
7455
7438
|
null,
|
|
7456
7439
|
Videos[series - 1].intro
|
|
7457
7440
|
)
|
|
7458
7441
|
)
|
|
7459
7442
|
),
|
|
7460
|
-
|
|
7443
|
+
React__default.createElement(
|
|
7461
7444
|
'div',
|
|
7462
7445
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7463
|
-
vidUrl && vidType == 'youtube' &&
|
|
7446
|
+
vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, {
|
|
7464
7447
|
className: 'fluid-iframe',
|
|
7465
7448
|
videoId: getYoutubeId(vidUrl),
|
|
7466
7449
|
opts: opts,
|
|
@@ -7471,10 +7454,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7471
7454
|
return handleOnEnd(e);
|
|
7472
7455
|
}
|
|
7473
7456
|
}),
|
|
7474
|
-
vidUrl && vidType == 'mp4' &&
|
|
7475
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7476
|
-
|
|
7477
|
-
series &&
|
|
7457
|
+
vidUrl && vidType == 'mp4' && React__default.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7458
|
+
vidUrl && vidType == 'brightcove' && React__default.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7459
|
+
React__default.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7460
|
+
series && React__default.createElement(
|
|
7478
7461
|
'div',
|
|
7479
7462
|
{
|
|
7480
7463
|
className: 'vid-series',
|
|
@@ -7484,10 +7467,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7484
7467
|
maxHeight: '100%',
|
|
7485
7468
|
paddingBottom: '0'
|
|
7486
7469
|
} },
|
|
7487
|
-
|
|
7470
|
+
React__default.createElement(
|
|
7488
7471
|
'p',
|
|
7489
7472
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7490
|
-
|
|
7473
|
+
React__default.createElement(
|
|
7491
7474
|
'b',
|
|
7492
7475
|
{ style: { fontSize: '1.25em' } },
|
|
7493
7476
|
'Now Playing:'
|
|
@@ -7495,16 +7478,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7495
7478
|
' ',
|
|
7496
7479
|
seriesData[series ? series - 1 : 0].title
|
|
7497
7480
|
),
|
|
7498
|
-
vidUrl &&
|
|
7481
|
+
vidUrl && React__default.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7499
7482
|
)
|
|
7500
7483
|
),
|
|
7501
|
-
|
|
7502
|
-
|
|
7484
|
+
React__default.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7485
|
+
React__default.createElement(
|
|
7503
7486
|
'div',
|
|
7504
7487
|
{ className: 'vid-text' },
|
|
7505
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
7488
|
+
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()))
|
|
7506
7489
|
),
|
|
7507
|
-
|
|
7490
|
+
React__default.createElement(
|
|
7508
7491
|
'style',
|
|
7509
7492
|
{ jsx: 'true' },
|
|
7510
7493
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7557,67 +7540,67 @@ var Poll = function Poll(_ref) {
|
|
|
7557
7540
|
return acc;
|
|
7558
7541
|
}
|
|
7559
7542
|
}, 0);
|
|
7560
|
-
return
|
|
7561
|
-
|
|
7543
|
+
return React__default.createElement(
|
|
7544
|
+
React__default.Fragment,
|
|
7562
7545
|
null,
|
|
7563
|
-
question &&
|
|
7546
|
+
question && React__default.createElement(
|
|
7564
7547
|
'p',
|
|
7565
7548
|
{ className: 'font-weight-bold' },
|
|
7566
7549
|
question
|
|
7567
7550
|
),
|
|
7568
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7551
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7569
7552
|
'form',
|
|
7570
7553
|
{ onSubmit: function onSubmit(e) {
|
|
7571
7554
|
return onSubmitPoll(e);
|
|
7572
7555
|
} },
|
|
7573
7556
|
choices && choices.map(function (choice) {
|
|
7574
|
-
return
|
|
7557
|
+
return React__default.createElement(
|
|
7575
7558
|
'div',
|
|
7576
7559
|
{ key: choice._key },
|
|
7577
|
-
|
|
7560
|
+
React__default.createElement(
|
|
7578
7561
|
'label',
|
|
7579
7562
|
{ className: 'pl-2' },
|
|
7580
|
-
|
|
7563
|
+
React__default.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7581
7564
|
return setSelectedChoice(e.target.value);
|
|
7582
7565
|
} }),
|
|
7583
7566
|
' ' + choice.choiceText
|
|
7584
7567
|
)
|
|
7585
7568
|
);
|
|
7586
7569
|
}),
|
|
7587
|
-
|
|
7570
|
+
React__default.createElement(
|
|
7588
7571
|
Button,
|
|
7589
7572
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7590
7573
|
'Vote'
|
|
7591
7574
|
)
|
|
7592
7575
|
),
|
|
7593
|
-
|
|
7576
|
+
React__default.createElement(
|
|
7594
7577
|
'div',
|
|
7595
7578
|
{ className: 'progress-container' },
|
|
7596
7579
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7597
7580
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7598
|
-
return
|
|
7581
|
+
return React__default.createElement(
|
|
7599
7582
|
'div',
|
|
7600
7583
|
{ key: choice._key, className: 'mb-3' },
|
|
7601
|
-
|
|
7584
|
+
React__default.createElement(
|
|
7602
7585
|
'div',
|
|
7603
7586
|
{ className: 'correct-answer' },
|
|
7604
|
-
|
|
7587
|
+
React__default.createElement(
|
|
7605
7588
|
'div',
|
|
7606
7589
|
null,
|
|
7607
7590
|
choice.choiceText
|
|
7608
7591
|
),
|
|
7609
|
-
choice.choiceAnswer === true &&
|
|
7592
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7610
7593
|
'div',
|
|
7611
7594
|
null,
|
|
7612
|
-
|
|
7595
|
+
React__default.createElement(
|
|
7613
7596
|
'span',
|
|
7614
7597
|
{ style: { color: 'limegreen' } },
|
|
7615
7598
|
'Correct!'
|
|
7616
7599
|
)
|
|
7617
7600
|
)
|
|
7618
7601
|
),
|
|
7619
|
-
|
|
7620
|
-
|
|
7602
|
+
React__default.createElement(ProgressBar, { now: percentage }),
|
|
7603
|
+
React__default.createElement(
|
|
7621
7604
|
'span',
|
|
7622
7605
|
{ className: 'float-right' },
|
|
7623
7606
|
percentage,
|
|
@@ -7628,14 +7611,14 @@ var Poll = function Poll(_ref) {
|
|
|
7628
7611
|
);
|
|
7629
7612
|
})
|
|
7630
7613
|
),
|
|
7631
|
-
showAnswer &&
|
|
7614
|
+
showAnswer && React__default.createElement(
|
|
7632
7615
|
'h4',
|
|
7633
7616
|
{ className: 'text-center small p-3' },
|
|
7634
7617
|
'Total Votes: ',
|
|
7635
7618
|
choicesTotalCount
|
|
7636
7619
|
),
|
|
7637
|
-
showAnswer && response &&
|
|
7638
|
-
|
|
7620
|
+
showAnswer && response && React__default.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7621
|
+
React__default.createElement(
|
|
7639
7622
|
'style',
|
|
7640
7623
|
{ jsx: 'true' },
|
|
7641
7624
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7734,67 +7717,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7734
7717
|
return acc;
|
|
7735
7718
|
}
|
|
7736
7719
|
}, 0);
|
|
7737
|
-
return
|
|
7738
|
-
|
|
7720
|
+
return React__default.createElement(
|
|
7721
|
+
React__default.Fragment,
|
|
7739
7722
|
null,
|
|
7740
|
-
question &&
|
|
7723
|
+
question && React__default.createElement(
|
|
7741
7724
|
'p',
|
|
7742
7725
|
{ className: 'font-weight-bold' },
|
|
7743
7726
|
question
|
|
7744
7727
|
),
|
|
7745
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7728
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7746
7729
|
'form',
|
|
7747
7730
|
{ onSubmit: function onSubmit(e) {
|
|
7748
7731
|
return onSubmitPoll(e);
|
|
7749
7732
|
} },
|
|
7750
7733
|
choices && choices.map(function (choice) {
|
|
7751
|
-
return
|
|
7734
|
+
return React__default.createElement(
|
|
7752
7735
|
'div',
|
|
7753
7736
|
{ key: choice._key },
|
|
7754
|
-
|
|
7737
|
+
React__default.createElement(
|
|
7755
7738
|
'label',
|
|
7756
7739
|
{ className: 'pl-2' },
|
|
7757
|
-
|
|
7740
|
+
React__default.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7758
7741
|
return setSelectedChoice(e.target.value);
|
|
7759
7742
|
} }),
|
|
7760
7743
|
' ' + choice.choiceText
|
|
7761
7744
|
)
|
|
7762
7745
|
);
|
|
7763
7746
|
}),
|
|
7764
|
-
|
|
7747
|
+
React__default.createElement(
|
|
7765
7748
|
Button,
|
|
7766
7749
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7767
7750
|
'Vote'
|
|
7768
7751
|
)
|
|
7769
7752
|
),
|
|
7770
|
-
|
|
7753
|
+
React__default.createElement(
|
|
7771
7754
|
'div',
|
|
7772
7755
|
{ className: 'progress-container' },
|
|
7773
7756
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7774
7757
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7775
|
-
return
|
|
7758
|
+
return React__default.createElement(
|
|
7776
7759
|
'div',
|
|
7777
7760
|
{ key: choice._key, className: 'mb-3' },
|
|
7778
|
-
|
|
7761
|
+
React__default.createElement(
|
|
7779
7762
|
'div',
|
|
7780
7763
|
{ className: 'correct-answer' },
|
|
7781
|
-
|
|
7764
|
+
React__default.createElement(
|
|
7782
7765
|
'div',
|
|
7783
7766
|
null,
|
|
7784
7767
|
choice.choiceText
|
|
7785
7768
|
),
|
|
7786
|
-
choice.choiceAnswer === true &&
|
|
7769
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7787
7770
|
'div',
|
|
7788
7771
|
null,
|
|
7789
|
-
|
|
7772
|
+
React__default.createElement(
|
|
7790
7773
|
'span',
|
|
7791
7774
|
{ style: { color: 'limegreen' } },
|
|
7792
7775
|
'Correct!'
|
|
7793
7776
|
)
|
|
7794
7777
|
)
|
|
7795
7778
|
),
|
|
7796
|
-
|
|
7797
|
-
|
|
7779
|
+
React__default.createElement(ProgressBar, { now: percentage }),
|
|
7780
|
+
React__default.createElement(
|
|
7798
7781
|
'span',
|
|
7799
7782
|
{ className: 'float-right' },
|
|
7800
7783
|
percentage,
|
|
@@ -7805,14 +7788,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7805
7788
|
);
|
|
7806
7789
|
})
|
|
7807
7790
|
),
|
|
7808
|
-
showAnswer &&
|
|
7791
|
+
showAnswer && React__default.createElement(
|
|
7809
7792
|
'h4',
|
|
7810
7793
|
{ className: 'text-center small p-3' },
|
|
7811
7794
|
'Total Votes: ',
|
|
7812
7795
|
choicesTotalCount
|
|
7813
7796
|
),
|
|
7814
|
-
showAnswer && response &&
|
|
7815
|
-
|
|
7797
|
+
showAnswer && response && React__default.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7798
|
+
React__default.createElement(
|
|
7816
7799
|
'style',
|
|
7817
7800
|
{ jsx: 'true' },
|
|
7818
7801
|
'\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 '
|
|
@@ -7820,7 +7803,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7820
7803
|
);
|
|
7821
7804
|
};
|
|
7822
7805
|
|
|
7823
|
-
var numberOfPaginations =
|
|
7806
|
+
var numberOfPaginations = main_35 ? 4 : 10;
|
|
7824
7807
|
|
|
7825
7808
|
var Quiz = function Quiz(_ref) {
|
|
7826
7809
|
var quizzes = _ref.quizzes,
|
|
@@ -7938,34 +7921,34 @@ var Quiz = function Quiz(_ref) {
|
|
|
7938
7921
|
};
|
|
7939
7922
|
|
|
7940
7923
|
var renderPagination = function renderPagination() {
|
|
7941
|
-
return
|
|
7942
|
-
Pagination,
|
|
7943
|
-
{ className: 'p-0 m-0', size:
|
|
7944
|
-
|
|
7924
|
+
return React__default.createElement(
|
|
7925
|
+
Pagination$1,
|
|
7926
|
+
{ className: 'p-0 m-0', size: main_35 && 'sm' },
|
|
7927
|
+
React__default.createElement(Pagination$1.First, { onClick: function onClick() {
|
|
7945
7928
|
return changePage('first');
|
|
7946
7929
|
}, disabled: currentPage === 1 }),
|
|
7947
|
-
|
|
7930
|
+
React__default.createElement(Pagination$1.Prev, { onClick: function onClick() {
|
|
7948
7931
|
return changePage('prev');
|
|
7949
7932
|
}, disabled: currentPage === 1 }),
|
|
7950
|
-
|
|
7933
|
+
React__default.createElement(Pagination$1.Ellipsis, { onClick: function onClick() {
|
|
7951
7934
|
return renderNewPages('prev');
|
|
7952
7935
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7953
7936
|
pages.map(function (page) {
|
|
7954
|
-
return
|
|
7955
|
-
Pagination.Item,
|
|
7937
|
+
return React__default.createElement(
|
|
7938
|
+
Pagination$1.Item,
|
|
7956
7939
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7957
7940
|
return changePage(page);
|
|
7958
7941
|
} },
|
|
7959
7942
|
page
|
|
7960
7943
|
);
|
|
7961
7944
|
}),
|
|
7962
|
-
|
|
7945
|
+
React__default.createElement(Pagination$1.Ellipsis, { onClick: function onClick() {
|
|
7963
7946
|
return renderNewPages('next');
|
|
7964
7947
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7965
|
-
|
|
7948
|
+
React__default.createElement(Pagination$1.Next, { onClick: function onClick() {
|
|
7966
7949
|
return changePage('next');
|
|
7967
7950
|
}, disabled: currentPage === pageCount }),
|
|
7968
|
-
|
|
7951
|
+
React__default.createElement(Pagination$1.Last, { onClick: function onClick() {
|
|
7969
7952
|
return changePage('last');
|
|
7970
7953
|
}, disabled: currentPage === pageCount })
|
|
7971
7954
|
);
|
|
@@ -8048,51 +8031,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8048
8031
|
}
|
|
8049
8032
|
};
|
|
8050
8033
|
|
|
8051
|
-
return
|
|
8052
|
-
|
|
8034
|
+
return React__default.createElement(
|
|
8035
|
+
React__default.Fragment,
|
|
8053
8036
|
null,
|
|
8054
|
-
quizzes[currentPage - 1] &&
|
|
8055
|
-
|
|
8037
|
+
quizzes[currentPage - 1] && React__default.createElement(
|
|
8038
|
+
React__default.Fragment,
|
|
8056
8039
|
null,
|
|
8057
|
-
|
|
8058
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 &&
|
|
8040
|
+
React__default.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8041
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default.createElement(
|
|
8059
8042
|
'form',
|
|
8060
8043
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8061
8044
|
return e.preventDefault();
|
|
8062
8045
|
} },
|
|
8063
8046
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8064
|
-
return
|
|
8047
|
+
return React__default.createElement(
|
|
8065
8048
|
'div',
|
|
8066
8049
|
{ key: answer._key },
|
|
8067
|
-
|
|
8050
|
+
React__default.createElement(
|
|
8068
8051
|
'label',
|
|
8069
8052
|
{ className: 'pl-2' },
|
|
8070
|
-
quizzes[currentPage - 1].multiAnswer ?
|
|
8053
|
+
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 }),
|
|
8071
8054
|
' ' + answer.answerText
|
|
8072
8055
|
)
|
|
8073
8056
|
);
|
|
8074
8057
|
})
|
|
8075
8058
|
)
|
|
8076
8059
|
),
|
|
8077
|
-
!showAnswer &&
|
|
8060
|
+
!showAnswer && React__default.createElement(
|
|
8078
8061
|
Button$1,
|
|
8079
8062
|
{ onClick: function onClick() {
|
|
8080
8063
|
return checkAnswers();
|
|
8081
8064
|
}, variant: 'info', block: true },
|
|
8082
8065
|
'Please click here for answer'
|
|
8083
8066
|
),
|
|
8084
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
8085
|
-
|
|
8067
|
+
quizzes[currentPage - 1] && showAnswer && React__default.createElement(
|
|
8068
|
+
React__default.Fragment,
|
|
8086
8069
|
null,
|
|
8087
|
-
|
|
8070
|
+
React__default.createElement(
|
|
8088
8071
|
'h4',
|
|
8089
8072
|
null,
|
|
8090
8073
|
'Answer:'
|
|
8091
8074
|
),
|
|
8092
|
-
quizzes[currentPage - 1].answer &&
|
|
8075
|
+
quizzes[currentPage - 1].answer && React__default.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8093
8076
|
),
|
|
8094
|
-
|
|
8095
|
-
pageCount > 1 &&
|
|
8077
|
+
React__default.createElement('br', null),
|
|
8078
|
+
pageCount > 1 && React__default.createElement(
|
|
8096
8079
|
'div',
|
|
8097
8080
|
{ className: 'd-flex justify-content-center' },
|
|
8098
8081
|
renderPagination()
|
|
@@ -8103,10 +8086,10 @@ var Quiz = function Quiz(_ref) {
|
|
|
8103
8086
|
var Leads = function Leads(_ref) {
|
|
8104
8087
|
var url = _ref.url;
|
|
8105
8088
|
|
|
8106
|
-
return
|
|
8089
|
+
return React__default.createElement(
|
|
8107
8090
|
'div',
|
|
8108
8091
|
{ className: 'd-block text-center mb-3' },
|
|
8109
|
-
url &&
|
|
8092
|
+
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8110
8093
|
);
|
|
8111
8094
|
};
|
|
8112
8095
|
|
|
@@ -8146,58 +8129,58 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8146
8129
|
setCarouselIndex(selectedIndex);
|
|
8147
8130
|
};
|
|
8148
8131
|
|
|
8149
|
-
return
|
|
8132
|
+
return React__default.createElement(
|
|
8150
8133
|
'div',
|
|
8151
8134
|
{ className: 'mt-3 mb-4' },
|
|
8152
|
-
|
|
8135
|
+
React__default.createElement(
|
|
8153
8136
|
Carousel,
|
|
8154
8137
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8155
8138
|
slides && slides.map(function (slide) {
|
|
8156
8139
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8157
|
-
return
|
|
8140
|
+
return React__default.createElement(
|
|
8158
8141
|
Carousel.Item,
|
|
8159
8142
|
{ key: slide._key },
|
|
8160
|
-
|
|
8143
|
+
React__default.createElement(
|
|
8161
8144
|
'a',
|
|
8162
8145
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8163
|
-
|
|
8146
|
+
React__default.createElement(
|
|
8164
8147
|
'div',
|
|
8165
8148
|
{ className: 'embed-responsive embed-responsive-slide' },
|
|
8166
|
-
|
|
8149
|
+
React__default.createElement(
|
|
8167
8150
|
LazyLoad,
|
|
8168
8151
|
null,
|
|
8169
|
-
|
|
8152
|
+
React__default.createElement(
|
|
8170
8153
|
'picture',
|
|
8171
8154
|
null,
|
|
8172
|
-
|
|
8173
|
-
|
|
8174
|
-
|
|
8175
|
-
|
|
8155
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8156
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8157
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8158
|
+
React__default.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', className: 'embed-responsive-item' })
|
|
8176
8159
|
)
|
|
8177
8160
|
),
|
|
8178
|
-
|
|
8161
|
+
React__default.createElement(
|
|
8179
8162
|
'style',
|
|
8180
8163
|
{ jsx: 'true' },
|
|
8181
8164
|
'\n .embed-responsive-slide::before {\n padding-top: ' + slide.slideshowImage.height / slide.slideshowImage.width * 100 + '%;\n }\n '
|
|
8182
8165
|
)
|
|
8183
8166
|
)
|
|
8184
8167
|
),
|
|
8185
|
-
|
|
8168
|
+
React__default.createElement(
|
|
8186
8169
|
'div',
|
|
8187
8170
|
{ className: 'p-2' },
|
|
8188
|
-
slide.slideshowImage.caption &&
|
|
8171
|
+
slide.slideshowImage.caption && React__default.createElement(
|
|
8189
8172
|
'h3',
|
|
8190
8173
|
{ style: { padding: '0px' } },
|
|
8191
8174
|
slide.slideshowImage.caption
|
|
8192
8175
|
),
|
|
8193
|
-
slide.description &&
|
|
8176
|
+
slide.description && React__default.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8194
8177
|
)
|
|
8195
8178
|
);
|
|
8196
8179
|
}
|
|
8197
8180
|
return null;
|
|
8198
8181
|
})
|
|
8199
8182
|
),
|
|
8200
|
-
|
|
8183
|
+
React__default.createElement(
|
|
8201
8184
|
'style',
|
|
8202
8185
|
{ jsx: 'true' },
|
|
8203
8186
|
'\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 '
|
|
@@ -8216,10 +8199,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8216
8199
|
sizes = _props$node.sizes,
|
|
8217
8200
|
sizeMapping = _props$node.sizeMapping;
|
|
8218
8201
|
|
|
8219
|
-
return
|
|
8202
|
+
return React__default.createElement(
|
|
8220
8203
|
'div',
|
|
8221
8204
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8222
|
-
|
|
8205
|
+
React__default.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8223
8206
|
);
|
|
8224
8207
|
};
|
|
8225
8208
|
|
|
@@ -8230,15 +8213,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8230
8213
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8231
8214
|
|
|
8232
8215
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8233
|
-
return
|
|
8216
|
+
return React__default.createElement(
|
|
8234
8217
|
'section',
|
|
8235
8218
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8236
|
-
Caption &&
|
|
8219
|
+
Caption && React__default.createElement(
|
|
8237
8220
|
'h4',
|
|
8238
8221
|
{ className: 'formstack-caption' },
|
|
8239
8222
|
Caption
|
|
8240
8223
|
),
|
|
8241
|
-
|
|
8224
|
+
React__default.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8242
8225
|
);
|
|
8243
8226
|
};
|
|
8244
8227
|
|
|
@@ -8254,36 +8237,36 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8254
8237
|
}
|
|
8255
8238
|
});
|
|
8256
8239
|
if (medias && medias.length > 0) {
|
|
8257
|
-
return
|
|
8240
|
+
return React__default.createElement(
|
|
8258
8241
|
'div',
|
|
8259
8242
|
{ className: 'multi-media-container' },
|
|
8260
|
-
|
|
8243
|
+
React__default.createElement(
|
|
8261
8244
|
Row$1,
|
|
8262
8245
|
{ noGutters: true },
|
|
8263
8246
|
medias.map(function (media) {
|
|
8264
|
-
return
|
|
8247
|
+
return React__default.createElement(
|
|
8265
8248
|
Col$1,
|
|
8266
8249
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8267
|
-
|
|
8250
|
+
React__default.createElement(
|
|
8268
8251
|
'a',
|
|
8269
|
-
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8252
|
+
_extends$1({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8270
8253
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8271
|
-
|
|
8254
|
+
React__default.createElement(
|
|
8272
8255
|
'div',
|
|
8273
8256
|
{ className: 'multi-media-image-container' },
|
|
8274
|
-
imageBox &&
|
|
8257
|
+
imageBox && React__default.createElement(
|
|
8275
8258
|
LazyLoad,
|
|
8276
8259
|
{ once: true },
|
|
8277
|
-
|
|
8260
|
+
React__default.createElement(
|
|
8278
8261
|
'picture',
|
|
8279
8262
|
null,
|
|
8280
|
-
|
|
8281
|
-
|
|
8282
|
-
|
|
8283
|
-
|
|
8263
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8264
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8265
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8266
|
+
React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
|
|
8284
8267
|
)
|
|
8285
8268
|
),
|
|
8286
|
-
media.caption &&
|
|
8269
|
+
media.caption && React__default.createElement(
|
|
8287
8270
|
'span',
|
|
8288
8271
|
{ className: 'multi-media-caption' },
|
|
8289
8272
|
media.caption
|
|
@@ -8293,7 +8276,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8293
8276
|
);
|
|
8294
8277
|
})
|
|
8295
8278
|
),
|
|
8296
|
-
|
|
8279
|
+
React__default.createElement(
|
|
8297
8280
|
'style',
|
|
8298
8281
|
{ jsx: 'true' },
|
|
8299
8282
|
'\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 '
|
|
@@ -8340,7 +8323,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8340
8323
|
}
|
|
8341
8324
|
};
|
|
8342
8325
|
|
|
8343
|
-
_this.wraperRef =
|
|
8326
|
+
_this.wraperRef = React__default.createRef();
|
|
8344
8327
|
_this.visible = false;
|
|
8345
8328
|
return _this;
|
|
8346
8329
|
}
|
|
@@ -8368,7 +8351,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8368
8351
|
_props$id = _props.id,
|
|
8369
8352
|
id = _props$id === undefined ? '' : _props$id;
|
|
8370
8353
|
|
|
8371
|
-
return
|
|
8354
|
+
return React__default.createElement(
|
|
8372
8355
|
'div',
|
|
8373
8356
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8374
8357
|
this.props.children
|
|
@@ -8377,7 +8360,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8377
8360
|
}]);
|
|
8378
8361
|
|
|
8379
8362
|
return InscreenSensor;
|
|
8380
|
-
}(
|
|
8363
|
+
}(React__default.Component);
|
|
8381
8364
|
|
|
8382
8365
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8383
8366
|
var nodes = _ref.nodes,
|
|
@@ -8486,33 +8469,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8486
8469
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8487
8470
|
var showReading = show ? 'showReading' : '';
|
|
8488
8471
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8489
|
-
return
|
|
8472
|
+
return React__default.createElement(
|
|
8490
8473
|
'div',
|
|
8491
8474
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8492
|
-
|
|
8475
|
+
React__default.createElement(
|
|
8493
8476
|
'a',
|
|
8494
8477
|
{ onClick: function onClick(e) {
|
|
8495
8478
|
return articleCardClickHandler(e);
|
|
8496
8479
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8497
|
-
|
|
8480
|
+
React__default.createElement(
|
|
8498
8481
|
'div',
|
|
8499
8482
|
{ className: 'prevNext-thumbnail' },
|
|
8500
|
-
|
|
8501
|
-
|
|
8483
|
+
React__default.createElement('img', { src: urlFor({ client: client, source: article.thumbnail.asset }) }),
|
|
8484
|
+
React__default.createElement(
|
|
8502
8485
|
'div',
|
|
8503
8486
|
{ className: 'prevNext-reading ' + showReading },
|
|
8504
8487
|
articleLabel
|
|
8505
8488
|
)
|
|
8506
8489
|
),
|
|
8507
|
-
|
|
8490
|
+
React__default.createElement(
|
|
8508
8491
|
'div',
|
|
8509
8492
|
{ className: 'prevNext-summary' },
|
|
8510
|
-
|
|
8493
|
+
React__default.createElement(
|
|
8511
8494
|
'div',
|
|
8512
8495
|
{ className: 'prevNext-publishDate' },
|
|
8513
8496
|
moment(article.published).format('LL')
|
|
8514
8497
|
),
|
|
8515
|
-
|
|
8498
|
+
React__default.createElement(
|
|
8516
8499
|
'h2',
|
|
8517
8500
|
{ className: 'prevNext-title' },
|
|
8518
8501
|
article.title
|
|
@@ -8561,7 +8544,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8561
8544
|
|
|
8562
8545
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8563
8546
|
if (biography) {
|
|
8564
|
-
return
|
|
8547
|
+
return React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8565
8548
|
}
|
|
8566
8549
|
};
|
|
8567
8550
|
|
|
@@ -8647,7 +8630,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8647
8630
|
//console.log('useLayoutEffect')
|
|
8648
8631
|
if (!firstLoad) {
|
|
8649
8632
|
setUpArrowClicked(false);
|
|
8650
|
-
if (
|
|
8633
|
+
if (main_36) {
|
|
8651
8634
|
grabLoadedAds();
|
|
8652
8635
|
} else {
|
|
8653
8636
|
scrollToArticle();
|
|
@@ -8671,7 +8654,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8671
8654
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8672
8655
|
if (pageview) pageview(path);
|
|
8673
8656
|
|
|
8674
|
-
if (!
|
|
8657
|
+
if (!main_36) {
|
|
8675
8658
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8676
8659
|
if (window.googletag && googletag.pubadsReady) {
|
|
8677
8660
|
lib_3.refresh();
|
|
@@ -8679,7 +8662,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8679
8662
|
});
|
|
8680
8663
|
}
|
|
8681
8664
|
//Refresh leaderboard ad on mobile
|
|
8682
|
-
if (
|
|
8665
|
+
if (main_36) {
|
|
8683
8666
|
var leaderboardSlotId = '';
|
|
8684
8667
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8685
8668
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8719,38 +8702,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8719
8702
|
setSensorVisible(false);
|
|
8720
8703
|
};
|
|
8721
8704
|
|
|
8722
|
-
return
|
|
8723
|
-
|
|
8705
|
+
return React__default.createElement(
|
|
8706
|
+
React__default.Fragment,
|
|
8724
8707
|
null,
|
|
8725
|
-
|
|
8708
|
+
React__default.createElement(
|
|
8726
8709
|
'div',
|
|
8727
8710
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8728
|
-
|
|
8711
|
+
React__default.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8729
8712
|
return handleArrowClick();
|
|
8730
8713
|
} })
|
|
8731
8714
|
),
|
|
8732
|
-
|
|
8733
|
-
|
|
8715
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8716
|
+
React__default.createElement(
|
|
8734
8717
|
'div',
|
|
8735
8718
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8736
|
-
|
|
8719
|
+
React__default.createElement(
|
|
8737
8720
|
'h5',
|
|
8738
8721
|
{ className: 'objective-title' },
|
|
8739
8722
|
nodes.seriesTitle
|
|
8740
8723
|
),
|
|
8741
|
-
|
|
8724
|
+
React__default.createElement(
|
|
8742
8725
|
'div',
|
|
8743
8726
|
{ className: 'prevNextWrapper' },
|
|
8744
8727
|
PrevNextCards(false, -1)
|
|
8745
8728
|
)
|
|
8746
8729
|
),
|
|
8747
|
-
|
|
8748
|
-
|
|
8730
|
+
React__default.createElement('hr', { className: 'article-seperater' }),
|
|
8731
|
+
React__default.createElement(
|
|
8749
8732
|
'div',
|
|
8750
8733
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8751
|
-
|
|
8734
|
+
main_36 && Ads.map(function (ad, index) {
|
|
8752
8735
|
if (index === 0) {
|
|
8753
|
-
return
|
|
8736
|
+
return React__default.createElement(
|
|
8754
8737
|
'div',
|
|
8755
8738
|
{
|
|
8756
8739
|
key: 'addid-1',
|
|
@@ -8770,14 +8753,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8770
8753
|
}
|
|
8771
8754
|
})
|
|
8772
8755
|
),
|
|
8773
|
-
|
|
8756
|
+
React__default.createElement(
|
|
8774
8757
|
'div',
|
|
8775
8758
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8776
8759
|
Articles.map(function (article, index) {
|
|
8777
|
-
return
|
|
8760
|
+
return React__default.createElement(
|
|
8778
8761
|
'div',
|
|
8779
8762
|
{ key: article.title },
|
|
8780
|
-
|
|
8763
|
+
React__default.createElement(
|
|
8781
8764
|
InscreenSensor,
|
|
8782
8765
|
{
|
|
8783
8766
|
visible: sensorVisible,
|
|
@@ -8795,84 +8778,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8795
8778
|
}
|
|
8796
8779
|
}
|
|
8797
8780
|
} },
|
|
8798
|
-
|
|
8781
|
+
React__default.createElement(
|
|
8799
8782
|
Head,
|
|
8800
8783
|
null,
|
|
8801
|
-
currentTitle !== null &&
|
|
8784
|
+
currentTitle !== null && React__default.createElement(
|
|
8802
8785
|
'title',
|
|
8803
8786
|
{ key: 'title' },
|
|
8804
8787
|
currentTitle
|
|
8805
8788
|
),
|
|
8806
|
-
currentSummary !== null &&
|
|
8807
|
-
currentURL !== null &&
|
|
8808
|
-
currentTitle !== null &&
|
|
8809
|
-
currentThumbnail !== null &&
|
|
8810
|
-
currentSummary !== null &&
|
|
8811
|
-
currentTitle !== null &&
|
|
8812
|
-
currentThumbnail !== null &&
|
|
8813
|
-
currentSummary !== null &&
|
|
8789
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8790
|
+
currentURL !== null && React__default.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8791
|
+
currentTitle !== null && React__default.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8792
|
+
currentThumbnail !== null && React__default.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8793
|
+
currentSummary !== null && React__default.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8794
|
+
currentTitle !== null && React__default.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8795
|
+
currentThumbnail !== null && React__default.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8796
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8814
8797
|
),
|
|
8815
|
-
|
|
8798
|
+
React__default.createElement(
|
|
8816
8799
|
'article',
|
|
8817
8800
|
{ className: 'article-wrapper' },
|
|
8818
|
-
|
|
8801
|
+
React__default.createElement(
|
|
8819
8802
|
'div',
|
|
8820
8803
|
{ className: 'article-publishDate' },
|
|
8821
8804
|
moment(article.published).format('LL')
|
|
8822
8805
|
),
|
|
8823
|
-
|
|
8806
|
+
React__default.createElement(
|
|
8824
8807
|
'div',
|
|
8825
8808
|
{ className: 'author-details-wrapper' },
|
|
8826
8809
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8827
|
-
return
|
|
8810
|
+
return React__default.createElement(
|
|
8828
8811
|
'span',
|
|
8829
8812
|
{ key: index },
|
|
8830
8813
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: client, source: authorDetail.profileImage }))
|
|
8831
8814
|
);
|
|
8832
8815
|
})
|
|
8833
8816
|
),
|
|
8834
|
-
|
|
8817
|
+
React__default.createElement(
|
|
8835
8818
|
'h2',
|
|
8836
8819
|
{ className: 'article-title' },
|
|
8837
8820
|
article.title
|
|
8838
8821
|
),
|
|
8839
|
-
|
|
8822
|
+
React__default.createElement(
|
|
8840
8823
|
'div',
|
|
8841
8824
|
{ className: 'mt-2 mb-2' },
|
|
8842
|
-
|
|
8825
|
+
React__default.createElement(BlockContent, _extends$1({
|
|
8843
8826
|
serializers: getSerializers,
|
|
8844
8827
|
videoAccountIDs: accountIDs,
|
|
8845
8828
|
blocks: article.text,
|
|
8846
8829
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8847
8830
|
}, client.config())),
|
|
8848
|
-
|
|
8831
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' })
|
|
8849
8832
|
),
|
|
8850
|
-
Articles.length > 1 &&
|
|
8851
|
-
|
|
8833
|
+
Articles.length > 1 && React__default.createElement(
|
|
8834
|
+
React__default.Fragment,
|
|
8852
8835
|
null,
|
|
8853
|
-
|
|
8836
|
+
React__default.createElement(
|
|
8854
8837
|
'div',
|
|
8855
8838
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8856
|
-
|
|
8839
|
+
React__default.createElement(
|
|
8857
8840
|
'h5',
|
|
8858
8841
|
{ className: 'objective-title' },
|
|
8859
8842
|
nodes.seriesTitle
|
|
8860
8843
|
),
|
|
8861
|
-
|
|
8844
|
+
React__default.createElement(
|
|
8862
8845
|
'div',
|
|
8863
8846
|
{ className: 'prevNextWrapper' },
|
|
8864
8847
|
PrevNextCards(true, index)
|
|
8865
8848
|
)
|
|
8866
8849
|
),
|
|
8867
|
-
|
|
8850
|
+
React__default.createElement('hr', { className: 'article-seperater' })
|
|
8868
8851
|
)
|
|
8869
8852
|
),
|
|
8870
|
-
|
|
8853
|
+
React__default.createElement(
|
|
8871
8854
|
'div',
|
|
8872
8855
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8873
|
-
|
|
8856
|
+
main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8874
8857
|
if (innerIndex === 0) {
|
|
8875
|
-
return
|
|
8858
|
+
return React__default.createElement(
|
|
8876
8859
|
'div',
|
|
8877
8860
|
{
|
|
8878
8861
|
key: 'addid-' + (index + 2),
|
|
@@ -8895,7 +8878,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8895
8878
|
)
|
|
8896
8879
|
);
|
|
8897
8880
|
}),
|
|
8898
|
-
|
|
8881
|
+
React__default.createElement(
|
|
8899
8882
|
'style',
|
|
8900
8883
|
{ jsx: 'true' },
|
|
8901
8884
|
'\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 '
|
|
@@ -8925,11 +8908,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8925
8908
|
};
|
|
8926
8909
|
}, [handleClickOutside]);
|
|
8927
8910
|
|
|
8928
|
-
return
|
|
8911
|
+
return React__default.createElement(
|
|
8929
8912
|
'div',
|
|
8930
8913
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8931
|
-
|
|
8932
|
-
|
|
8914
|
+
React__default.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8915
|
+
React__default.createElement(
|
|
8933
8916
|
'style',
|
|
8934
8917
|
{ jsx: 'true' },
|
|
8935
8918
|
'\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 '
|
|
@@ -8943,7 +8926,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8943
8926
|
}
|
|
8944
8927
|
};
|
|
8945
8928
|
|
|
8946
|
-
var FigureImage =
|
|
8929
|
+
var FigureImage = React__default.memo(function (_ref2) {
|
|
8947
8930
|
var node = _ref2.node,
|
|
8948
8931
|
client = _ref2.client,
|
|
8949
8932
|
imgAlt = _ref2.imgAlt,
|
|
@@ -8951,13 +8934,13 @@ var FigureImage = React.memo(function (_ref2) {
|
|
|
8951
8934
|
handleClickFigure = _ref2.handleClickFigure;
|
|
8952
8935
|
|
|
8953
8936
|
var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
|
|
8954
|
-
return
|
|
8937
|
+
return React__default.createElement(
|
|
8955
8938
|
'picture',
|
|
8956
8939
|
null,
|
|
8957
|
-
|
|
8958
|
-
|
|
8959
|
-
|
|
8960
|
-
|
|
8940
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8941
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8942
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: node, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8943
|
+
React__default.createElement('img', _extends$1({
|
|
8961
8944
|
style: figureImageStyle,
|
|
8962
8945
|
className: 'figure-image',
|
|
8963
8946
|
src: urlFor({ source: node, client: client }),
|
|
@@ -9045,13 +9028,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9045
9028
|
|
|
9046
9029
|
var FigureCaption = useCallback(function () {
|
|
9047
9030
|
if (imgcaption && imgcaption.length > 0) {
|
|
9048
|
-
return
|
|
9031
|
+
return React__default.createElement(
|
|
9049
9032
|
'div',
|
|
9050
9033
|
{ className: 'figure-caption' },
|
|
9051
|
-
|
|
9034
|
+
React__default.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9052
9035
|
);
|
|
9053
9036
|
} else if (caption) {
|
|
9054
|
-
return
|
|
9037
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9055
9038
|
} else return null;
|
|
9056
9039
|
}, [caption, imgcaption]);
|
|
9057
9040
|
|
|
@@ -9068,24 +9051,24 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9068
9051
|
setShowLightbox(true);
|
|
9069
9052
|
}, [node, client]);
|
|
9070
9053
|
|
|
9071
|
-
return
|
|
9072
|
-
|
|
9054
|
+
return React__default.createElement(
|
|
9055
|
+
React__default.Fragment,
|
|
9073
9056
|
null,
|
|
9074
|
-
|
|
9075
|
-
Figure$
|
|
9057
|
+
React__default.createElement(
|
|
9058
|
+
Figure$1$1,
|
|
9076
9059
|
{ className: '' + class_name, style: figureStyle },
|
|
9077
|
-
link ?
|
|
9060
|
+
link ? React__default.createElement(
|
|
9078
9061
|
'a',
|
|
9079
9062
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9080
|
-
|
|
9081
|
-
|
|
9082
|
-
) :
|
|
9083
|
-
|
|
9063
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9064
|
+
React__default.createElement(FigureCaption, null)
|
|
9065
|
+
) : React__default.createElement(
|
|
9066
|
+
React__default.Fragment,
|
|
9084
9067
|
null,
|
|
9085
|
-
|
|
9086
|
-
|
|
9068
|
+
React__default.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9069
|
+
React__default.createElement(FigureCaption, null)
|
|
9087
9070
|
),
|
|
9088
|
-
|
|
9071
|
+
React__default.createElement(LightBox, {
|
|
9089
9072
|
showLightbox: showLightbox,
|
|
9090
9073
|
lightboxImgSrc: lightboxImgSrc,
|
|
9091
9074
|
closeLightbox: function closeLightbox() {
|
|
@@ -9094,7 +9077,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9094
9077
|
}
|
|
9095
9078
|
})
|
|
9096
9079
|
),
|
|
9097
|
-
|
|
9080
|
+
React__default.createElement(
|
|
9098
9081
|
'style',
|
|
9099
9082
|
{ jsx: 'true' },
|
|
9100
9083
|
'\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 '
|
|
@@ -9102,7 +9085,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9102
9085
|
);
|
|
9103
9086
|
};
|
|
9104
9087
|
|
|
9105
|
-
var Figure =
|
|
9088
|
+
var Figure = React__default.memo(FigureComponent, compareProps);
|
|
9106
9089
|
|
|
9107
9090
|
function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
9108
9091
|
useEffect(function () {
|
|
@@ -9119,7 +9102,7 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9119
9102
|
}, [ref]);
|
|
9120
9103
|
}
|
|
9121
9104
|
|
|
9122
|
-
var FigureImage$1 =
|
|
9105
|
+
var FigureImage$1 = React__default.memo(function (_ref) {
|
|
9123
9106
|
var imagesCount = _ref.imagesCount,
|
|
9124
9107
|
image = _ref.image,
|
|
9125
9108
|
client = _ref.client,
|
|
@@ -9127,13 +9110,13 @@ var FigureImage$1 = React.memo(function (_ref) {
|
|
|
9127
9110
|
link = _ref.link,
|
|
9128
9111
|
handleClickFigure = _ref.handleClickFigure;
|
|
9129
9112
|
|
|
9130
|
-
return
|
|
9113
|
+
return React__default.createElement(
|
|
9131
9114
|
'picture',
|
|
9132
9115
|
null,
|
|
9133
|
-
|
|
9134
|
-
|
|
9135
|
-
|
|
9136
|
-
|
|
9116
|
+
React__default.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9117
|
+
React__default.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9118
|
+
React__default.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9119
|
+
React__default.createElement('img', _extends$1({
|
|
9137
9120
|
'images-count': imagesCount,
|
|
9138
9121
|
className: 'multi-figure-image',
|
|
9139
9122
|
src: urlFor({ source: image, client: client }),
|
|
@@ -9170,13 +9153,13 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9170
9153
|
imgcaption = _ref2.imgcaption;
|
|
9171
9154
|
|
|
9172
9155
|
if (imgcaption && imgcaption.length > 0) {
|
|
9173
|
-
return
|
|
9156
|
+
return React__default.createElement(
|
|
9174
9157
|
'div',
|
|
9175
9158
|
{ className: 'multi-figure-caption' },
|
|
9176
|
-
|
|
9159
|
+
React__default.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9177
9160
|
);
|
|
9178
9161
|
} else if (caption) {
|
|
9179
|
-
return
|
|
9162
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9180
9163
|
} else return null;
|
|
9181
9164
|
};
|
|
9182
9165
|
|
|
@@ -9186,48 +9169,48 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9186
9169
|
}, [client]);
|
|
9187
9170
|
|
|
9188
9171
|
if (images && images.length > 0) {
|
|
9189
|
-
return
|
|
9172
|
+
return React__default.createElement(
|
|
9190
9173
|
'div',
|
|
9191
9174
|
{ className: 'multi-figure-container' },
|
|
9192
|
-
|
|
9175
|
+
React__default.createElement(
|
|
9193
9176
|
Row$1,
|
|
9194
9177
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9195
9178
|
images.map(function (image, index) {
|
|
9196
|
-
return
|
|
9179
|
+
return React__default.createElement(
|
|
9197
9180
|
Col$1,
|
|
9198
9181
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9199
|
-
image.link ?
|
|
9182
|
+
image.link ? React__default.createElement(
|
|
9200
9183
|
'a',
|
|
9201
|
-
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9202
|
-
|
|
9184
|
+
_extends$1({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9185
|
+
React__default.createElement(
|
|
9203
9186
|
'div',
|
|
9204
9187
|
{ className: 'multi-figure-image-container' },
|
|
9205
|
-
|
|
9188
|
+
React__default.createElement(
|
|
9206
9189
|
LazyLoad,
|
|
9207
9190
|
{ once: true },
|
|
9208
|
-
|
|
9191
|
+
React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9209
9192
|
),
|
|
9210
|
-
|
|
9193
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9211
9194
|
)
|
|
9212
|
-
) :
|
|
9195
|
+
) : React__default.createElement(
|
|
9213
9196
|
'div',
|
|
9214
9197
|
{ className: 'multi-figure-image-container' },
|
|
9215
|
-
|
|
9198
|
+
React__default.createElement(
|
|
9216
9199
|
LazyLoad,
|
|
9217
9200
|
{ once: true },
|
|
9218
|
-
|
|
9201
|
+
React__default.createElement(FigureImage$1, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9219
9202
|
),
|
|
9220
|
-
|
|
9203
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9221
9204
|
)
|
|
9222
9205
|
);
|
|
9223
9206
|
})
|
|
9224
9207
|
),
|
|
9225
|
-
|
|
9208
|
+
React__default.createElement(
|
|
9226
9209
|
'div',
|
|
9227
9210
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9228
|
-
|
|
9211
|
+
React__default.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9229
9212
|
),
|
|
9230
|
-
|
|
9213
|
+
React__default.createElement(
|
|
9231
9214
|
'style',
|
|
9232
9215
|
{ jsx: 'true' },
|
|
9233
9216
|
'\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 '
|
|
@@ -9249,13 +9232,265 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9249
9232
|
|
|
9250
9233
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
9251
9234
|
|
|
9252
|
-
return
|
|
9235
|
+
return React__default.createElement(
|
|
9253
9236
|
'div',
|
|
9254
9237
|
{ id: elementId },
|
|
9255
|
-
|
|
9238
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
9256
9239
|
);
|
|
9257
9240
|
};
|
|
9258
9241
|
|
|
9242
|
+
var objectWithoutProperties = createCommonjsModule(function (module, exports) {
|
|
9243
|
+
|
|
9244
|
+
exports.__esModule = true;
|
|
9245
|
+
|
|
9246
|
+
exports.default = function (obj, keys) {
|
|
9247
|
+
var target = {};
|
|
9248
|
+
|
|
9249
|
+
for (var i in obj) {
|
|
9250
|
+
if (keys.indexOf(i) >= 0) continue;
|
|
9251
|
+
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
|
|
9252
|
+
target[i] = obj[i];
|
|
9253
|
+
}
|
|
9254
|
+
|
|
9255
|
+
return target;
|
|
9256
|
+
};
|
|
9257
|
+
});
|
|
9258
|
+
|
|
9259
|
+
unwrapExports(objectWithoutProperties);
|
|
9260
|
+
|
|
9261
|
+
var ScriptTag_1 = createCommonjsModule(function (module, exports) {
|
|
9262
|
+
|
|
9263
|
+
exports.__esModule = true;
|
|
9264
|
+
|
|
9265
|
+
|
|
9266
|
+
|
|
9267
|
+
var _extends3 = _interopRequireDefault(_extends$2);
|
|
9268
|
+
|
|
9269
|
+
|
|
9270
|
+
|
|
9271
|
+
var _objectWithoutProperties3 = _interopRequireDefault(objectWithoutProperties);
|
|
9272
|
+
|
|
9273
|
+
|
|
9274
|
+
|
|
9275
|
+
var _classCallCheck3 = _interopRequireDefault(classCallCheck);
|
|
9276
|
+
|
|
9277
|
+
|
|
9278
|
+
|
|
9279
|
+
var _possibleConstructorReturn3 = _interopRequireDefault(possibleConstructorReturn);
|
|
9280
|
+
|
|
9281
|
+
|
|
9282
|
+
|
|
9283
|
+
var _inherits3 = _interopRequireDefault(inherits);
|
|
9284
|
+
|
|
9285
|
+
|
|
9286
|
+
|
|
9287
|
+
var _react2 = _interopRequireDefault(React__default);
|
|
9288
|
+
|
|
9289
|
+
|
|
9290
|
+
|
|
9291
|
+
var _propTypes2 = _interopRequireDefault(PropTypes);
|
|
9292
|
+
|
|
9293
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9294
|
+
var noop = function noop() {};
|
|
9295
|
+
|
|
9296
|
+
var ScriptTag = function (_Component) {
|
|
9297
|
+
(0, _inherits3.default)(ScriptTag, _Component);
|
|
9298
|
+
|
|
9299
|
+
ScriptTag.removeNode = function removeNode(node) {
|
|
9300
|
+
if (node) {
|
|
9301
|
+
node.parentNode.removeChild(node);
|
|
9302
|
+
}
|
|
9303
|
+
};
|
|
9304
|
+
|
|
9305
|
+
function ScriptTag(props, context) {
|
|
9306
|
+
(0, _classCallCheck3.default)(this, ScriptTag);
|
|
9307
|
+
|
|
9308
|
+
var _this = (0, _possibleConstructorReturn3.default)(this, _Component.call(this, props, context));
|
|
9309
|
+
|
|
9310
|
+
_this.domRef = null;
|
|
9311
|
+
_this.state = {
|
|
9312
|
+
isHydrated: props.isHydrating,
|
|
9313
|
+
additionalNode: null,
|
|
9314
|
+
removeAdditionalNode: null
|
|
9315
|
+
};
|
|
9316
|
+
return _this;
|
|
9317
|
+
}
|
|
9318
|
+
|
|
9319
|
+
ScriptTag.prototype.appendAdditionalElement = function appendAdditionalElement() {
|
|
9320
|
+
var _props = this.props,
|
|
9321
|
+
onError = _props.onError,
|
|
9322
|
+
onLoad = _props.onLoad,
|
|
9323
|
+
nonce = _props.nonce;
|
|
9324
|
+
|
|
9325
|
+
// Create a new HTML script element
|
|
9326
|
+
|
|
9327
|
+
var newElement = document.createElement("script");
|
|
9328
|
+
|
|
9329
|
+
// Copy all attribute values
|
|
9330
|
+
for (var i = 0, len = this.domRef.attributes.length; i < len; i++) {
|
|
9331
|
+
var attr = this.domRef.attributes[i];
|
|
9332
|
+
if (attr.nodeName === 'nonce') {
|
|
9333
|
+
// The browser clears the nonce value - grab from props
|
|
9334
|
+
newElement.setAttribute(attr.nodeName, nonce);
|
|
9335
|
+
} else {
|
|
9336
|
+
newElement.setAttribute(attr.nodeName, attr.nodeValue);
|
|
9337
|
+
}
|
|
9338
|
+
}
|
|
9339
|
+
|
|
9340
|
+
// Copy the inner script
|
|
9341
|
+
if (this.domRef.src === '' && this.domRef.innerHTML && this.domRef.innerHTML !== '') {
|
|
9342
|
+
newElement.innerHTML = this.domRef.innerHTML;
|
|
9343
|
+
}
|
|
9344
|
+
|
|
9345
|
+
// Bind event listeners
|
|
9346
|
+
newElement.addEventListener('load', onLoad);
|
|
9347
|
+
newElement.addEventListener('error', onError);
|
|
9348
|
+
|
|
9349
|
+
// Append the new script tag
|
|
9350
|
+
this.domRef.parentNode.appendChild(newElement);
|
|
9351
|
+
return newElement;
|
|
9352
|
+
};
|
|
9353
|
+
|
|
9354
|
+
ScriptTag.prototype.componentDidMount = function componentDidMount() {
|
|
9355
|
+
var isHydrated = this.state.isHydrated;
|
|
9356
|
+
|
|
9357
|
+
if (isHydrated) {
|
|
9358
|
+
// was rendered on server, don't replace elements when hydrating
|
|
9359
|
+
return;
|
|
9360
|
+
}
|
|
9361
|
+
|
|
9362
|
+
this.setState({
|
|
9363
|
+
additionalNode: this.appendAdditionalElement(),
|
|
9364
|
+
removeAdditionalNode: null
|
|
9365
|
+
});
|
|
9366
|
+
};
|
|
9367
|
+
|
|
9368
|
+
ScriptTag.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
|
9369
|
+
// This logic assumes that the <script> only need to be updated if the 'src' or 'innerHTML' has changed
|
|
9370
|
+
// - this prevents the <script> from updating unnecessarily, which prevents additional 'onload' events
|
|
9371
|
+
|
|
9372
|
+
// This isn't perfect - but it keeps the component very simple, and should cover most use-cases
|
|
9373
|
+
// Other props SHOULD be assigned at the same time as either the 'src' or 'innerHTML' property
|
|
9374
|
+
// -> If this is to change and support updating on ANY prop change, the 'appendAdditionalElement()' method
|
|
9375
|
+
// and state management will need to be modified to manipulate the DOM script tag based on each prop change.
|
|
9376
|
+
// This really complicates the component - for now we'll leave it as is.
|
|
9377
|
+
var _props2 = this.props,
|
|
9378
|
+
src = _props2.src,
|
|
9379
|
+
dangerouslySetInnerHTML = _props2.dangerouslySetInnerHTML;
|
|
9380
|
+
|
|
9381
|
+
if (src && src === nextProps.src) {
|
|
9382
|
+
// The 'src' attribute has not changed
|
|
9383
|
+
return;
|
|
9384
|
+
}
|
|
9385
|
+
|
|
9386
|
+
if (dangerouslySetInnerHTML && dangerouslySetInnerHTML.__html === nextProps.dangerouslySetInnerHTML.__html) {
|
|
9387
|
+
// The 'dangerouslySetInnerHTML' attribute has not changed
|
|
9388
|
+
return;
|
|
9389
|
+
}
|
|
9390
|
+
|
|
9391
|
+
this.setState({
|
|
9392
|
+
removeAdditionalNode: this.state.additionalNode,
|
|
9393
|
+
additionalNode: null
|
|
9394
|
+
});
|
|
9395
|
+
};
|
|
9396
|
+
|
|
9397
|
+
ScriptTag.prototype.componentWillUpdate = function componentWillUpdate(nextProps, nextState) {
|
|
9398
|
+
ScriptTag.removeNode(nextState.removeAdditionalNode);
|
|
9399
|
+
};
|
|
9400
|
+
|
|
9401
|
+
ScriptTag.prototype.componentDidUpdate = function componentDidUpdate() {
|
|
9402
|
+
var _state = this.state,
|
|
9403
|
+
additionalNode = _state.additionalNode,
|
|
9404
|
+
removeAdditionalNode = _state.removeAdditionalNode;
|
|
9405
|
+
|
|
9406
|
+
if (additionalNode === null) {
|
|
9407
|
+
this.setState({
|
|
9408
|
+
additionalNode: this.appendAdditionalElement()
|
|
9409
|
+
});
|
|
9410
|
+
}
|
|
9411
|
+
|
|
9412
|
+
if (removeAdditionalNode !== null) {
|
|
9413
|
+
// Was removed in 'componentWillUpdate', but can not update state there
|
|
9414
|
+
this.setState({
|
|
9415
|
+
removeAdditionalNode: null
|
|
9416
|
+
});
|
|
9417
|
+
}
|
|
9418
|
+
};
|
|
9419
|
+
|
|
9420
|
+
ScriptTag.prototype.componentWillUnmount = function componentWillUnmount() {
|
|
9421
|
+
ScriptTag.removeNode(this.state.removeAdditionalNode);
|
|
9422
|
+
ScriptTag.removeNode(this.state.additionalNode);
|
|
9423
|
+
};
|
|
9424
|
+
|
|
9425
|
+
ScriptTag.prototype.render = function render() {
|
|
9426
|
+
var _this2 = this;
|
|
9427
|
+
|
|
9428
|
+
var additionalNode = this.state.additionalNode;
|
|
9429
|
+
|
|
9430
|
+
if (additionalNode !== null) {
|
|
9431
|
+
return null;
|
|
9432
|
+
}
|
|
9433
|
+
|
|
9434
|
+
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9435
|
+
// eslint-disable-next-line no-unused-vars
|
|
9436
|
+
var _props3 = this.props,
|
|
9437
|
+
isHydrating = _props3.isHydrating,
|
|
9438
|
+
tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9439
|
+
|
|
9440
|
+
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9441
|
+
return _this2.domRef = tag;
|
|
9442
|
+
} }));
|
|
9443
|
+
};
|
|
9444
|
+
|
|
9445
|
+
return ScriptTag;
|
|
9446
|
+
}(React__default.Component);
|
|
9447
|
+
|
|
9448
|
+
ScriptTag.propTypes = {
|
|
9449
|
+
/**
|
|
9450
|
+
* True if the <ScriptTag> is being hydrated on the client, otherwise false.
|
|
9451
|
+
*/
|
|
9452
|
+
isHydrating: _propTypes2.default.bool,
|
|
9453
|
+
|
|
9454
|
+
// Standard <script> tag props
|
|
9455
|
+
async: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.number]),
|
|
9456
|
+
crossOrigin: _propTypes2.default.string,
|
|
9457
|
+
defer: _propTypes2.default.bool,
|
|
9458
|
+
integrity: _propTypes2.default.string,
|
|
9459
|
+
nonce: _propTypes2.default.string,
|
|
9460
|
+
src: _propTypes2.default.string,
|
|
9461
|
+
text: _propTypes2.default.string,
|
|
9462
|
+
type: _propTypes2.default.string,
|
|
9463
|
+
dangerouslySetInnerHTML: _propTypes2.default.object,
|
|
9464
|
+
|
|
9465
|
+
// globals
|
|
9466
|
+
onError: _propTypes2.default.func,
|
|
9467
|
+
onLoad: _propTypes2.default.func
|
|
9468
|
+
};
|
|
9469
|
+
ScriptTag.defaultProps = {
|
|
9470
|
+
isHydrating: false,
|
|
9471
|
+
onError: noop,
|
|
9472
|
+
onLoad: noop
|
|
9473
|
+
};
|
|
9474
|
+
exports.default = ScriptTag;
|
|
9475
|
+
});
|
|
9476
|
+
|
|
9477
|
+
unwrapExports(ScriptTag_1);
|
|
9478
|
+
|
|
9479
|
+
var lib = createCommonjsModule(function (module, exports) {
|
|
9480
|
+
|
|
9481
|
+
exports.__esModule = true;
|
|
9482
|
+
|
|
9483
|
+
|
|
9484
|
+
|
|
9485
|
+
var _ScriptTag2 = _interopRequireDefault(ScriptTag_1);
|
|
9486
|
+
|
|
9487
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9488
|
+
|
|
9489
|
+
exports.default = _ScriptTag2.default;
|
|
9490
|
+
});
|
|
9491
|
+
|
|
9492
|
+
var ScriptTag = unwrapExports(lib);
|
|
9493
|
+
|
|
9259
9494
|
var enterpriseDomainName = 'mjhlifesciences';
|
|
9260
9495
|
|
|
9261
9496
|
var FormAssembly = function FormAssembly(props) {
|
|
@@ -9287,11 +9522,11 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9287
9522
|
}, []);
|
|
9288
9523
|
|
|
9289
9524
|
if (iframeSrc) {
|
|
9290
|
-
return
|
|
9525
|
+
return React__default.createElement(
|
|
9291
9526
|
'section',
|
|
9292
9527
|
{ className: 'form-assembly' },
|
|
9293
|
-
|
|
9294
|
-
|
|
9528
|
+
React__default.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9529
|
+
React__default.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9295
9530
|
);
|
|
9296
9531
|
}
|
|
9297
9532
|
|
|
@@ -9328,27 +9563,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9328
9563
|
return window.removeEventListener('resize', handleResize);
|
|
9329
9564
|
};
|
|
9330
9565
|
}, []);
|
|
9331
|
-
return
|
|
9566
|
+
return React__default.createElement(
|
|
9332
9567
|
'div',
|
|
9333
9568
|
{ className: 'blockTableHolder', ref: holder },
|
|
9334
|
-
|
|
9569
|
+
React__default.createElement(
|
|
9335
9570
|
'div',
|
|
9336
9571
|
{ className: 'blockTable' },
|
|
9337
9572
|
rows && rows.map(function (row) {
|
|
9338
|
-
return
|
|
9573
|
+
return React__default.createElement(
|
|
9339
9574
|
'div',
|
|
9340
9575
|
{ className: 'blockTableRow' },
|
|
9341
9576
|
row.cells && row.cells.map(function (cell) {
|
|
9342
|
-
return
|
|
9577
|
+
return React__default.createElement(
|
|
9343
9578
|
'div',
|
|
9344
9579
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9345
|
-
|
|
9580
|
+
React__default.createElement(BlockContent, _extends$1({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9346
9581
|
);
|
|
9347
9582
|
})
|
|
9348
9583
|
);
|
|
9349
9584
|
})
|
|
9350
9585
|
),
|
|
9351
|
-
|
|
9586
|
+
React__default.createElement(
|
|
9352
9587
|
'style',
|
|
9353
9588
|
{ jsx: true },
|
|
9354
9589
|
'\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 '
|
|
@@ -9427,12 +9662,12 @@ var getSerializers = function getSerializers() {
|
|
|
9427
9662
|
var node = _ref.node;
|
|
9428
9663
|
var url = node.url;
|
|
9429
9664
|
|
|
9430
|
-
return
|
|
9665
|
+
return React__default.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9431
9666
|
},
|
|
9432
9667
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9433
9668
|
var node = _ref2.node;
|
|
9434
9669
|
|
|
9435
|
-
return
|
|
9670
|
+
return React__default.createElement(YouTubeGallery, {
|
|
9436
9671
|
nodes: node,
|
|
9437
9672
|
article: article,
|
|
9438
9673
|
meta: meta,
|
|
@@ -9446,7 +9681,7 @@ var getSerializers = function getSerializers() {
|
|
|
9446
9681
|
articleSeries: function articleSeries(_ref3) {
|
|
9447
9682
|
var node = _ref3.node;
|
|
9448
9683
|
|
|
9449
|
-
return
|
|
9684
|
+
return React__default.createElement(ArticleSeries, {
|
|
9450
9685
|
nodes: node,
|
|
9451
9686
|
accountIDs: videoAccountIDs || {},
|
|
9452
9687
|
pageview: pageview,
|
|
@@ -9459,61 +9694,61 @@ var getSerializers = function getSerializers() {
|
|
|
9459
9694
|
figure: function figure(_ref4) {
|
|
9460
9695
|
var node = _ref4.node;
|
|
9461
9696
|
|
|
9462
|
-
return
|
|
9697
|
+
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9463
9698
|
},
|
|
9464
9699
|
multifigure: function multifigure(_ref5) {
|
|
9465
9700
|
var node = _ref5.node;
|
|
9466
9701
|
|
|
9467
|
-
return
|
|
9702
|
+
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9468
9703
|
},
|
|
9469
9704
|
slideshow: function slideshow(_ref6) {
|
|
9470
9705
|
var node = _ref6.node;
|
|
9471
9706
|
var slides = node.slides;
|
|
9472
9707
|
|
|
9473
|
-
return
|
|
9708
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9474
9709
|
},
|
|
9475
9710
|
sidebar: function sidebar(_ref7) {
|
|
9476
9711
|
var node = _ref7.node;
|
|
9477
9712
|
var caption = node.caption,
|
|
9478
9713
|
content = node.content;
|
|
9479
9714
|
|
|
9480
|
-
return
|
|
9715
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9481
9716
|
},
|
|
9482
9717
|
datatable: function datatable(_ref8) {
|
|
9483
9718
|
var node = _ref8.node;
|
|
9484
9719
|
var table = node.table;
|
|
9485
9720
|
|
|
9486
|
-
return
|
|
9721
|
+
return React__default.createElement(TableShow, { rows: table.rows });
|
|
9487
9722
|
},
|
|
9488
9723
|
media: function media(_ref9) {
|
|
9489
9724
|
var node = _ref9.node;
|
|
9490
9725
|
|
|
9491
|
-
return
|
|
9726
|
+
return React__default.createElement(Media, { node: node, client: client });
|
|
9492
9727
|
},
|
|
9493
9728
|
iframe: function iframe(_ref10) {
|
|
9494
9729
|
var node = _ref10.node;
|
|
9495
9730
|
|
|
9496
|
-
return
|
|
9731
|
+
return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9497
9732
|
},
|
|
9498
9733
|
video: function video(_ref11) {
|
|
9499
9734
|
var node = _ref11.node;
|
|
9500
9735
|
|
|
9501
|
-
return
|
|
9736
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9502
9737
|
},
|
|
9503
9738
|
audio: function audio(_ref12) {
|
|
9504
9739
|
var node = _ref12.node;
|
|
9505
9740
|
|
|
9506
|
-
return
|
|
9741
|
+
return React__default.createElement(Audio, { node: node });
|
|
9507
9742
|
},
|
|
9508
9743
|
poll: function poll(_ref13) {
|
|
9509
9744
|
var node = _ref13.node;
|
|
9510
9745
|
|
|
9511
|
-
return
|
|
9746
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9512
9747
|
},
|
|
9513
9748
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9514
9749
|
var node = _ref14.node;
|
|
9515
9750
|
|
|
9516
|
-
return
|
|
9751
|
+
return React__default.createElement(Poll$1, {
|
|
9517
9752
|
node: node,
|
|
9518
9753
|
client: client,
|
|
9519
9754
|
pageview: pageview,
|
|
@@ -9527,35 +9762,35 @@ var getSerializers = function getSerializers() {
|
|
|
9527
9762
|
var node = _ref15.node;
|
|
9528
9763
|
var quizzes = node.quizzes;
|
|
9529
9764
|
|
|
9530
|
-
return
|
|
9765
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9531
9766
|
},
|
|
9532
9767
|
leads: function leads(_ref16) {
|
|
9533
9768
|
var node = _ref16.node;
|
|
9534
9769
|
var leadID = node.leadID;
|
|
9535
9770
|
|
|
9536
9771
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9537
|
-
return
|
|
9772
|
+
return React__default.createElement(Leads, { url: url });
|
|
9538
9773
|
},
|
|
9539
9774
|
slideshows: function slideshows(_ref17) {
|
|
9540
9775
|
var node = _ref17.node;
|
|
9541
9776
|
|
|
9542
|
-
return
|
|
9777
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9543
9778
|
},
|
|
9544
9779
|
nativeAd: function nativeAd(_ref18) {
|
|
9545
9780
|
var node = _ref18.node;
|
|
9546
9781
|
|
|
9547
|
-
return
|
|
9782
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
9548
9783
|
},
|
|
9549
9784
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
9550
9785
|
var node = _ref19.node;
|
|
9551
9786
|
|
|
9552
|
-
return
|
|
9787
|
+
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9553
9788
|
},
|
|
9554
9789
|
hrtag: function hrtag() {
|
|
9555
|
-
return
|
|
9790
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9556
9791
|
},
|
|
9557
9792
|
brtag: function brtag() {
|
|
9558
|
-
return
|
|
9793
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
9559
9794
|
},
|
|
9560
9795
|
formstack: function formstack(_ref20) {
|
|
9561
9796
|
var node = _ref20.node;
|
|
@@ -9563,29 +9798,29 @@ var getSerializers = function getSerializers() {
|
|
|
9563
9798
|
Caption = node.Caption,
|
|
9564
9799
|
needSegmentSupport = node.needSegmentSupport;
|
|
9565
9800
|
|
|
9566
|
-
return
|
|
9801
|
+
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
9567
9802
|
},
|
|
9568
9803
|
formassembly: FormAssembly,
|
|
9569
9804
|
multimedia: function multimedia(_ref21) {
|
|
9570
9805
|
var node = _ref21.node;
|
|
9571
9806
|
|
|
9572
|
-
return
|
|
9807
|
+
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
9573
9808
|
},
|
|
9574
9809
|
blockTable: function blockTable(_ref22) {
|
|
9575
9810
|
var node = _ref22.node;
|
|
9576
|
-
return
|
|
9811
|
+
return React__default.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9577
9812
|
}
|
|
9578
9813
|
},
|
|
9579
9814
|
marks: {
|
|
9580
9815
|
superscript: function superscript(props) {
|
|
9581
|
-
return
|
|
9816
|
+
return React__default.createElement(
|
|
9582
9817
|
'sup',
|
|
9583
9818
|
null,
|
|
9584
9819
|
props.children
|
|
9585
9820
|
);
|
|
9586
9821
|
},
|
|
9587
9822
|
subscript: function subscript(props) {
|
|
9588
|
-
return
|
|
9823
|
+
return React__default.createElement(
|
|
9589
9824
|
'sub',
|
|
9590
9825
|
null,
|
|
9591
9826
|
props.children
|
|
@@ -9601,7 +9836,7 @@ var getSerializers = function getSerializers() {
|
|
|
9601
9836
|
if (href && href.charAt(0) === '#') {
|
|
9602
9837
|
var elementId = href.slice(1);
|
|
9603
9838
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9604
|
-
return
|
|
9839
|
+
return React__default.createElement(
|
|
9605
9840
|
'a',
|
|
9606
9841
|
{ onClick: function onClick() {
|
|
9607
9842
|
return ScrollToElement(elementId);
|
|
@@ -9611,7 +9846,7 @@ var getSerializers = function getSerializers() {
|
|
|
9611
9846
|
}
|
|
9612
9847
|
|
|
9613
9848
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9614
|
-
return
|
|
9849
|
+
return React__default.createElement(
|
|
9615
9850
|
'a',
|
|
9616
9851
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
9617
9852
|
children
|
|
@@ -9619,7 +9854,7 @@ var getSerializers = function getSerializers() {
|
|
|
9619
9854
|
},
|
|
9620
9855
|
alignleft: function alignleft(_ref23) {
|
|
9621
9856
|
var children = _ref23.children;
|
|
9622
|
-
return
|
|
9857
|
+
return React__default.createElement(
|
|
9623
9858
|
'div',
|
|
9624
9859
|
{ style: { textAlign: 'left' } },
|
|
9625
9860
|
children
|
|
@@ -9627,7 +9862,7 @@ var getSerializers = function getSerializers() {
|
|
|
9627
9862
|
},
|
|
9628
9863
|
alignright: function alignright(_ref24) {
|
|
9629
9864
|
var children = _ref24.children;
|
|
9630
|
-
return
|
|
9865
|
+
return React__default.createElement(
|
|
9631
9866
|
'div',
|
|
9632
9867
|
{ style: { textAlign: 'right' } },
|
|
9633
9868
|
children
|
|
@@ -9635,7 +9870,7 @@ var getSerializers = function getSerializers() {
|
|
|
9635
9870
|
},
|
|
9636
9871
|
aligncenter: function aligncenter(_ref25) {
|
|
9637
9872
|
var children = _ref25.children;
|
|
9638
|
-
return
|
|
9873
|
+
return React__default.createElement(
|
|
9639
9874
|
'div',
|
|
9640
9875
|
{ style: { textAlign: 'center' } },
|
|
9641
9876
|
children
|
|
@@ -9643,7 +9878,7 @@ var getSerializers = function getSerializers() {
|
|
|
9643
9878
|
},
|
|
9644
9879
|
alignjustify: function alignjustify(_ref26) {
|
|
9645
9880
|
var children = _ref26.children;
|
|
9646
|
-
return
|
|
9881
|
+
return React__default.createElement(
|
|
9647
9882
|
'div',
|
|
9648
9883
|
{ style: { textAlign: 'justify' } },
|
|
9649
9884
|
children
|
|
@@ -9653,7 +9888,7 @@ var getSerializers = function getSerializers() {
|
|
|
9653
9888
|
var children = props.children,
|
|
9654
9889
|
color = props.mark.color;
|
|
9655
9890
|
|
|
9656
|
-
return
|
|
9891
|
+
return React__default.createElement(
|
|
9657
9892
|
'span',
|
|
9658
9893
|
{ style: { color: color ? color.hex : null } },
|
|
9659
9894
|
children
|