@mjhls/mjh-framework 1.0.709 → 1.0.711-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +24 -25
- package/dist/cjs/AD300x250x600.js +24 -25
- package/dist/cjs/AD728x90.js +27 -28
- package/dist/cjs/ADFloatingFooter.js +26 -27
- package/dist/cjs/ADFooter.js +14 -15
- package/dist/cjs/ADGutter.js +26 -27
- package/dist/cjs/{ADInfeed-2c7a6dd8.js → ADInfeed-5a561d7c.js} +11 -13
- package/dist/cjs/ADSkyscraper.js +26 -27
- package/dist/cjs/ADSponsoredResources.js +26 -27
- package/dist/cjs/ADWebcast.js +26 -27
- package/dist/cjs/ADWelcome.js +30 -31
- package/dist/cjs/{ADlgInfeed-fb101797.js → ADlgInfeed-c50f81d4.js} +8 -9
- package/dist/cjs/AccordionPanel.js +29 -31
- package/dist/cjs/AdSlot.js +31 -32
- package/dist/cjs/AdSlotsProvider.js +116 -19
- package/dist/cjs/AlphabeticList.js +24 -25
- package/dist/cjs/ArticleCarousel.js +22 -23
- package/dist/cjs/ArticleSeriesListing.js +58 -59
- package/dist/cjs/Auth.js +334 -820
- package/dist/cjs/{AuthorComponent-5fa89df5.js → AuthorComponent-bb831b74.js} +13 -14
- package/dist/cjs/Beam.js +9 -9
- package/dist/cjs/{BlockContent-eca358e4.js → BlockContent-091a991f.js} +24 -25
- package/dist/cjs/Breadcrumbs.js +27 -29
- package/dist/cjs/BrowseVideosListing.js +40 -41
- package/dist/cjs/CMEDeck.js +78 -78
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +32 -35
- package/dist/cjs/Column3.js +55 -58
- package/dist/cjs/ConferenceArticleCard.js +22 -23
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +94 -98
- package/dist/cjs/DeckQueue.js +86 -90
- package/dist/cjs/{Dfp-a863cf48.js → Dfp-ce7ac168.js} +30 -31
- package/dist/cjs/EventsDeck.js +129 -136
- package/dist/cjs/ExternalResources.js +77 -76
- package/dist/cjs/Feature.js +25 -27
- package/dist/cjs/ForbesHero.js +40 -41
- package/dist/cjs/GridContent.js +177 -181
- package/dist/cjs/GridHero.js +42 -43
- package/dist/cjs/GroupDeck.js +49 -50
- package/dist/cjs/HamMagazine.js +130 -135
- package/dist/cjs/Header.js +11 -13
- package/dist/cjs/Hero.js +12 -13
- package/dist/cjs/HighlightenVideo.js +17 -18
- package/dist/cjs/HorizontalHero.js +25 -26
- package/dist/cjs/IssueContentDeck.js +72 -77
- package/dist/cjs/IssueDeck.js +70 -75
- package/dist/cjs/IssueLanding.js +40 -41
- package/dist/cjs/LeftNav.js +36 -38
- package/dist/cjs/MasterDeck.js +71 -72
- package/dist/cjs/NavDvm.js +75 -80
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +138 -143
- package/dist/cjs/NavNative.js +115 -123
- package/dist/cjs/NavNormal.js +48 -53
- package/dist/cjs/OncliveHero.js +20 -20
- package/dist/cjs/OncliveLargeHero.js +66 -67
- package/dist/cjs/PageFilter.js +14 -15
- package/dist/cjs/PartnerDetailListing.js +105 -106
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +19 -21
- package/dist/cjs/PublicationDeck.js +61 -66
- package/dist/cjs/PublicationLanding.js +74 -78
- package/dist/cjs/QueueDeckExpanded.js +292 -292
- package/dist/cjs/RecentNews.js +23 -24
- package/dist/cjs/RelatedContent.js +24 -25
- package/dist/cjs/RelatedTopicsDropdown.js +19 -22
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +18 -22
- package/dist/cjs/Segment.js +7 -7
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +35 -36
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-45c54bed.js → SocialSearchComponent-8dd468fd.js} +36 -40
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +57 -62
- package/dist/cjs/TaxonomyDescription.js +50 -51
- package/dist/cjs/TemplateNormal.js +72 -73
- package/dist/cjs/ThumbnailCard.js +20 -22
- package/dist/cjs/Ustream.js +26 -27
- package/dist/cjs/VerticalHero.js +17 -18
- package/dist/cjs/VideoSeriesCard.js +31 -32
- package/dist/cjs/VideoSeriesFilter.js +19 -19
- package/dist/cjs/VideoSeriesListing.js +73 -74
- package/dist/cjs/View.js +226 -229
- package/dist/cjs/YahooHero.js +39 -40
- package/dist/cjs/YoutubeGroup.js +58 -59
- package/dist/cjs/{_is-array-63ae4740.js → _is-array-754e012d.js} +6 -6
- package/dist/cjs/{_iter-detect-2613ffa1.js → _iter-detect-60b2f026.js} +2 -2
- package/dist/cjs/{_object-sap-c5bd707d.js → _object-sap-5e74ba08.js} +1 -1
- package/dist/cjs/{_set-species-a8cfdb84.js → _set-species-f92c67c5.js} +4 -4
- package/dist/cjs/{_to-object-821a2927.js → _to-object-329a650b.js} +4 -4
- package/dist/cjs/{asyncToGenerator-2edcb6ad.js → asyncToGenerator-533d476a.js} +8 -8
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
- package/dist/cjs/{core.get-iterator-method-b4615fd3.js → core.get-iterator-method-f62321d4.js} +2 -2
- package/dist/cjs/{define-property-aff11f8a.js → define-property-f4d12f4e.js} +1 -1
- package/dist/cjs/{defineProperty-d6fbb280.js → defineProperty-55548b25.js} +1 -1
- package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
- package/dist/cjs/{es6.string.iterator-20d42c53.js → es6.string.iterator-cc0bbaa4.js} +2 -2
- package/dist/cjs/{extends-1e24fc8d.js → extends-60837c34.js} +1 -1
- package/dist/cjs/getRelatedArticle.js +76 -138
- package/dist/cjs/getSerializers.js +41 -41
- package/dist/cjs/{getTargeting-497b581d.js → getTargeting-9af0ef69.js} +3 -3
- package/dist/cjs/getTargeting.js +7 -7
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-4d74ffd6.js → index-3294d3bc.js} +41 -40
- package/dist/cjs/{index-5ad2b070.js → index-8bf6c863.js} +48 -30
- package/dist/cjs/{index-bb09dc7c.js → index-b0cfd1de.js} +849 -872
- package/dist/cjs/{index-d48b231c.js → index-be0c82be.js} +25 -31
- package/dist/cjs/{index-80f57cff.js → index-da796b8c.js} +15 -17
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-8123cf40.js → index.esm-4d410430.js} +20 -20
- package/dist/cjs/{index.esm-3b9b8952.js → index.esm-66ffa47a.js} +9 -4
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +127 -127
- package/dist/cjs/{inherits-2eb23889.js → inherits-c9f99d47.js} +5 -5
- package/dist/cjs/{keys-95c064c9.js → keys-a586b7a0.js} +2 -2
- package/dist/cjs/{lodash-4ef21f0f.js → lodash-fc2922d0.js} +23 -72
- package/dist/cjs/{main-dc082238.js → main-02daeefe.js} +80 -116
- package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
- package/dist/cjs/{slicedToArray-db24842a.js → slicedToArray-8f385299.js} +4 -4
- package/dist/cjs/{smoothscroll-1abb448e.js → smoothscroll-95231a70.js} +1 -1
- package/dist/cjs/{stringify-01cf47f7.js → stringify-7c5aff47.js} +1 -1
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-cf0865fc.js → toConsumableArray-9a3476fe.js} +4 -4
- package/dist/cjs/{typeof-97065d40.js → typeof-725500bc.js} +7 -7
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
- package/dist/cjs/{visibility-sensor-8b54af99.js → visibility-sensor-0c45a583.js} +5 -7
- package/dist/cjs/{web.dom.iterable-4480325a.js → web.dom.iterable-a0e279c1.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +21 -21
- package/dist/esm/AD300x250x600.js +21 -21
- package/dist/esm/AD728x90.js +24 -24
- package/dist/esm/ADFloatingFooter.js +23 -23
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +23 -23
- package/dist/esm/{ADInfeed-a9a35a5c.js → ADInfeed-d4c94a16.js} +7 -7
- package/dist/esm/ADSkyscraper.js +23 -23
- package/dist/esm/ADSponsoredResources.js +23 -23
- package/dist/esm/ADWebcast.js +23 -23
- package/dist/esm/ADWelcome.js +27 -27
- package/dist/esm/{ADlgInfeed-ce2e0e3a.js → ADlgInfeed-5b170d9e.js} +6 -6
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +23 -23
- package/dist/esm/AdSlotsProvider.js +114 -16
- package/dist/esm/AlphabeticList.js +21 -21
- package/dist/esm/ArticleCarousel.js +19 -19
- package/dist/esm/ArticleSeriesListing.js +53 -53
- package/dist/esm/Auth.js +317 -799
- package/dist/esm/{AuthorComponent-c29a0075.js → AuthorComponent-00f13201.js} +11 -11
- package/dist/esm/Beam.js +9 -9
- package/dist/esm/{BlockContent-d8cd739c.js → BlockContent-e9b4ddcf.js} +4 -4
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/BrowseVideosListing.js +37 -37
- package/dist/esm/CMEDeck.js +74 -74
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +26 -26
- package/dist/esm/Column3.js +48 -48
- package/dist/esm/ConferenceArticleCard.js +18 -18
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +76 -76
- package/dist/esm/DeckQueue.js +64 -64
- package/dist/esm/{Dfp-db06d7dc.js → Dfp-14e866d7.js} +20 -20
- package/dist/esm/EventsDeck.js +82 -82
- package/dist/esm/ExternalResources.js +71 -69
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +34 -34
- package/dist/esm/GridContent.js +139 -139
- package/dist/esm/GridHero.js +36 -36
- package/dist/esm/GroupDeck.js +45 -45
- package/dist/esm/HamMagazine.js +104 -104
- package/dist/esm/Header.js +7 -7
- package/dist/esm/Hero.js +9 -9
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +49 -49
- package/dist/esm/IssueDeck.js +46 -46
- package/dist/esm/IssueLanding.js +37 -37
- package/dist/esm/LeftNav.js +32 -32
- package/dist/esm/MasterDeck.js +65 -65
- package/dist/esm/NavDvm.js +57 -57
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +114 -114
- package/dist/esm/NavNative.js +91 -91
- package/dist/esm/NavNormal.js +36 -36
- package/dist/esm/OncliveHero.js +17 -16
- package/dist/esm/OncliveLargeHero.js +59 -59
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +101 -101
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PublicationDeck.js +38 -38
- package/dist/esm/PublicationLanding.js +50 -50
- package/dist/esm/QueueDeckExpanded.js +272 -272
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +19 -19
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +12 -12
- package/dist/esm/Segment.js +7 -7
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +31 -31
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-fab3e851.js → SocialSearchComponent-8ac29f4f.js} +28 -28
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +41 -41
- package/dist/esm/TaxonomyDescription.js +45 -45
- package/dist/esm/TemplateNormal.js +66 -66
- package/dist/esm/ThumbnailCard.js +13 -13
- package/dist/esm/Ustream.js +23 -23
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoSeriesCard.js +24 -24
- package/dist/esm/VideoSeriesFilter.js +16 -16
- package/dist/esm/VideoSeriesListing.js +67 -67
- package/dist/esm/View.js +210 -209
- package/dist/esm/YahooHero.js +34 -34
- package/dist/esm/YoutubeGroup.js +45 -45
- package/dist/esm/{_is-array-9383b394.js → _is-array-49698029.js} +6 -6
- package/dist/esm/{_iter-detect-d4d262ee.js → _iter-detect-59409a32.js} +2 -2
- package/dist/esm/{_object-sap-6a003379.js → _object-sap-4d59d5bd.js} +1 -1
- package/dist/esm/{_set-species-0b056cff.js → _set-species-cede29f8.js} +4 -4
- package/dist/esm/{_to-object-9bef3b62.js → _to-object-ded78eb9.js} +5 -5
- package/dist/esm/{asyncToGenerator-acd1cc47.js → asyncToGenerator-7c654f36.js} +8 -8
- package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/{core.get-iterator-method-1b116089.js → core.get-iterator-method-54d2e411.js} +2 -2
- package/dist/esm/{define-property-9a008401.js → define-property-de3fc946.js} +1 -1
- package/dist/esm/{defineProperty-ddd52c29.js → defineProperty-b798470d.js} +1 -1
- package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
- package/dist/esm/{es6.string.iterator-b24a54f2.js → es6.string.iterator-9b2af4a5.js} +3 -3
- package/dist/esm/{extends-c2b1c9d7.js → extends-cc5da797.js} +1 -1
- package/dist/esm/getRelatedArticle.js +71 -133
- package/dist/esm/getSerializers.js +41 -41
- package/dist/esm/{getTargeting-b1a7be54.js → getTargeting-2acdec91.js} +2 -2
- package/dist/esm/getTargeting.js +7 -7
- package/dist/esm/{index-752d1dae.js → index-5f9f807a.js} +10 -10
- package/dist/esm/{index-3f5c03b2.js → index-73819142.js} +25 -31
- package/dist/esm/{index-669ff425.js → index-a9e53f80.js} +43 -24
- package/dist/esm/{index-48a08226.js → index-c6440f6f.js} +800 -816
- package/dist/esm/{index-ccb770c7.js → index-ef6d5dcf.js} +41 -40
- 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-d6f88d94.js → index.esm-b08f4b04.js} +9 -4
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-8016b507.js → index.esm-fd746768.js} +18 -17
- package/dist/esm/index.js +105 -105
- package/dist/esm/{inherits-18d4a779.js → inherits-7ee3e0c1.js} +5 -5
- package/dist/esm/{keys-9bb7939c.js → keys-fc2d4c34.js} +2 -2
- package/dist/esm/{lodash-ad27652f.js → lodash-17fdfebb.js} +23 -72
- package/dist/esm/{main-1450d277.js → main-e4a934b2.js} +78 -113
- package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
- package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-a7d5c5c7.js} +20 -20
- package/dist/esm/{slicedToArray-34468155.js → slicedToArray-7021e5df.js} +4 -4
- package/dist/esm/{smoothscroll-ab6e0238.js → smoothscroll-4b699764.js} +1 -1
- package/dist/esm/{stringify-8a4f19f7.js → stringify-008c8802.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-5212fee7.js → toConsumableArray-725434a0.js} +4 -4
- package/dist/esm/{typeof-64422756.js → typeof-08f2c380.js} +7 -7
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
- package/dist/esm/{visibility-sensor-082c757b.js → visibility-sensor-0baa4eea.js} +2 -2
- package/dist/esm/{web.dom.iterable-ca37144a.js → web.dom.iterable-8956f9a5.js} +3 -3
- package/package.json +2 -2
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import React, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
2
|
-
import { _ as _slicedToArray } from './slicedToArray-34468155.js';
|
|
3
|
-
import { Carousel, Table, Figure as Figure$1, Button, ProgressBar, Card, Row as Row$1, Col as Col$1 } from 'react-bootstrap';
|
|
4
|
-
import { i as imageUrlBuilder } from './index-3f5c03b2.js';
|
|
5
|
-
import { l as lib_3 } from './index-669ff425.js';
|
|
6
|
-
import Router, { useRouter } from 'next/router';
|
|
7
|
-
import { g as getYoutubeId } from './smoothscroll-ab6e0238.js';
|
|
8
|
-
import PropTypes from 'prop-types';
|
|
9
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
2
|
+
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-725434a0.js';
|
|
3
|
+
import { _ as _extends$1 } from './extends-cc5da797.js';
|
|
4
|
+
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-7ee3e0c1.js';
|
|
5
|
+
import { _ as _typeof } from './typeof-08f2c380.js';
|
|
6
|
+
import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
7
|
+
import { l as lib_3 } from './index-a9e53f80.js';
|
|
8
|
+
import PropTypes from 'prop-types';
|
|
9
|
+
import Row from 'react-bootstrap/Row';
|
|
10
|
+
import Col from 'react-bootstrap/Col';
|
|
11
|
+
import { m as moment } from './moment-e2f9b20c.js';
|
|
12
|
+
import Router, { useRouter } from 'next/router';
|
|
13
|
+
import { i as imageUrlBuilder } from './index-73819142.js';
|
|
14
|
+
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
15
|
+
import { d as main_16, b as main_35, m as main_36 } from './main-e4a934b2.js';
|
|
16
|
+
import { h as html_decode_1 } from './entities-7cc3bf45.js';
|
|
17
|
+
import { _ as _slicedToArray } from './slicedToArray-7021e5df.js';
|
|
12
18
|
import Segment from './Segment.js';
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { _ as _typeof$1 } from './typeof-64422756.js';
|
|
18
|
-
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-b43c695a.js';
|
|
19
|
+
import Beam from './Beam.js';
|
|
20
|
+
import DFPAdSlot from './AdSlot.js';
|
|
21
|
+
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
22
|
+
import { g as getYoutubeId } from './smoothscroll-4b699764.js';
|
|
19
23
|
import GroupDeck from './GroupDeck.js';
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import Pagination from 'react-bootstrap/Pagination';
|
|
24
|
+
import { Carousel, Table, Figure as Figure$1, Button, ProgressBar, Card, Row as Row$1, Col as Col$1 } from 'react-bootstrap';
|
|
25
|
+
import { d as IoIosArrowDropupCircle } from './index.esm-29e48d38.js';
|
|
23
26
|
import Button$1 from 'react-bootstrap/Button';
|
|
24
|
-
import {
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import Col from 'react-bootstrap/Col';
|
|
27
|
+
import { u as util } from './util-7700fc59.js';
|
|
28
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-83f53e4e.js';
|
|
29
|
+
import Pagination from 'react-bootstrap/Pagination';
|
|
28
30
|
import Head from 'next/head';
|
|
29
|
-
import
|
|
30
|
-
import { d as IoIosArrowDropupCircle } from './index.esm-3fdda599.js';
|
|
31
|
-
import Figure$2 from 'react-bootstrap/Figure';
|
|
31
|
+
import Figure$1$1 from 'react-bootstrap/Figure';
|
|
32
32
|
|
|
33
33
|
var urlFor = function urlFor(source, builder) {
|
|
34
34
|
return builder.image(source).auto('format');
|
|
@@ -69,20 +69,20 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
69
69
|
if (pageview) pageview(router.asPath);
|
|
70
70
|
}, [router]);
|
|
71
71
|
|
|
72
|
-
return
|
|
72
|
+
return React__default.createElement(
|
|
73
73
|
'div',
|
|
74
74
|
{ className: 'mt-3 mb-3' },
|
|
75
|
-
|
|
75
|
+
React__default.createElement(
|
|
76
76
|
Carousel,
|
|
77
77
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
78
78
|
return onChangeSlide(selectedIndex, router);
|
|
79
79
|
}, interval: null },
|
|
80
80
|
slides && slides.map(function (slide) {
|
|
81
|
-
return
|
|
81
|
+
return React__default.createElement(
|
|
82
82
|
Carousel.Item,
|
|
83
83
|
{ key: slide._key },
|
|
84
|
-
|
|
85
|
-
slide.caption &&
|
|
84
|
+
React__default.createElement('img', { src: slide.asset && urlFor(slide.asset, builder).url(), alt: slide.alt && slide.alt, style: { width: '100%' } }),
|
|
85
|
+
slide.caption && React__default.createElement(
|
|
86
86
|
'p',
|
|
87
87
|
{ className: 'p-2' },
|
|
88
88
|
slide.caption
|
|
@@ -93,18 +93,21 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
93
93
|
);
|
|
94
94
|
};
|
|
95
95
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
var isArray = Array.isArray;
|
|
97
|
+
var keyList = Object.keys;
|
|
98
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
99
99
|
|
|
100
100
|
var fastDeepEqual = function equal(a, b) {
|
|
101
101
|
if (a === b) return true;
|
|
102
102
|
|
|
103
103
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
104
|
-
|
|
104
|
+
var arrA = isArray(a)
|
|
105
|
+
, arrB = isArray(b)
|
|
106
|
+
, i
|
|
107
|
+
, length
|
|
108
|
+
, key;
|
|
105
109
|
|
|
106
|
-
|
|
107
|
-
if (Array.isArray(a)) {
|
|
110
|
+
if (arrA && arrB) {
|
|
108
111
|
length = a.length;
|
|
109
112
|
if (length != b.length) return false;
|
|
110
113
|
for (i = length; i-- !== 0;)
|
|
@@ -112,29 +115,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
112
115
|
return true;
|
|
113
116
|
}
|
|
114
117
|
|
|
118
|
+
if (arrA != arrB) return false;
|
|
115
119
|
|
|
120
|
+
var dateA = a instanceof Date
|
|
121
|
+
, dateB = b instanceof Date;
|
|
122
|
+
if (dateA != dateB) return false;
|
|
123
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
116
124
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
if (
|
|
125
|
+
var regexpA = a instanceof RegExp
|
|
126
|
+
, regexpB = b instanceof RegExp;
|
|
127
|
+
if (regexpA != regexpB) return false;
|
|
128
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
120
129
|
|
|
121
|
-
keys =
|
|
130
|
+
var keys = keyList(a);
|
|
122
131
|
length = keys.length;
|
|
123
|
-
|
|
132
|
+
|
|
133
|
+
if (length !== keyList(b).length)
|
|
134
|
+
return false;
|
|
124
135
|
|
|
125
136
|
for (i = length; i-- !== 0;)
|
|
126
|
-
if (!
|
|
137
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
127
138
|
|
|
128
139
|
for (i = length; i-- !== 0;) {
|
|
129
|
-
|
|
130
|
-
|
|
140
|
+
key = keys[i];
|
|
131
141
|
if (!equal(a[key], b[key])) return false;
|
|
132
142
|
}
|
|
133
143
|
|
|
134
144
|
return true;
|
|
135
145
|
}
|
|
136
146
|
|
|
137
|
-
// true if both NaN, false otherwise
|
|
138
147
|
return a!==a && b!==b;
|
|
139
148
|
};
|
|
140
149
|
|
|
@@ -672,14 +681,14 @@ function coerce(val) {
|
|
|
672
681
|
return val;
|
|
673
682
|
}
|
|
674
683
|
});
|
|
675
|
-
debug.coerce;
|
|
676
|
-
debug.disable;
|
|
677
|
-
debug.enable;
|
|
678
|
-
debug.enabled;
|
|
679
|
-
debug.humanize;
|
|
680
|
-
debug.names;
|
|
681
|
-
debug.skips;
|
|
682
|
-
debug.formatters;
|
|
684
|
+
var debug_1 = debug.coerce;
|
|
685
|
+
var debug_2 = debug.disable;
|
|
686
|
+
var debug_3 = debug.enable;
|
|
687
|
+
var debug_4 = debug.enabled;
|
|
688
|
+
var debug_5 = debug.humanize;
|
|
689
|
+
var debug_6 = debug.names;
|
|
690
|
+
var debug_7 = debug.skips;
|
|
691
|
+
var debug_8 = debug.formatters;
|
|
683
692
|
|
|
684
693
|
var browser = createCommonjsModule(function (module, exports) {
|
|
685
694
|
/**
|
|
@@ -868,13 +877,13 @@ function localstorage() {
|
|
|
868
877
|
} catch (e) {}
|
|
869
878
|
}
|
|
870
879
|
});
|
|
871
|
-
browser.log;
|
|
872
|
-
browser.formatArgs;
|
|
873
|
-
browser.save;
|
|
874
|
-
browser.load;
|
|
875
|
-
browser.useColors;
|
|
876
|
-
browser.storage;
|
|
877
|
-
browser.colors;
|
|
880
|
+
var browser_1 = browser.log;
|
|
881
|
+
var browser_2 = browser.formatArgs;
|
|
882
|
+
var browser_3 = browser.save;
|
|
883
|
+
var browser_4 = browser.load;
|
|
884
|
+
var browser_5 = browser.useColors;
|
|
885
|
+
var browser_6 = browser.storage;
|
|
886
|
+
var browser_7 = browser.colors;
|
|
878
887
|
|
|
879
888
|
// MIT lisence
|
|
880
889
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1149,14 +1158,14 @@ function init (debug) {
|
|
|
1149
1158
|
|
|
1150
1159
|
exports.enable(load());
|
|
1151
1160
|
});
|
|
1152
|
-
node.init;
|
|
1153
|
-
node.log;
|
|
1154
|
-
node.formatArgs;
|
|
1155
|
-
node.save;
|
|
1156
|
-
node.load;
|
|
1157
|
-
node.useColors;
|
|
1158
|
-
node.colors;
|
|
1159
|
-
node.inspectOpts;
|
|
1161
|
+
var node_1 = node.init;
|
|
1162
|
+
var node_2 = node.log;
|
|
1163
|
+
var node_3 = node.formatArgs;
|
|
1164
|
+
var node_4 = node.save;
|
|
1165
|
+
var node_5 = node.load;
|
|
1166
|
+
var node_6 = node.useColors;
|
|
1167
|
+
var node_7 = node.colors;
|
|
1168
|
+
var node_8 = node.inspectOpts;
|
|
1160
1169
|
|
|
1161
1170
|
var src = createCommonjsModule(function (module) {
|
|
1162
1171
|
/**
|
|
@@ -1557,239 +1566,199 @@ module.exports = exports['default'];
|
|
|
1557
1566
|
|
|
1558
1567
|
var youTubePlayer = unwrapExports(dist);
|
|
1559
1568
|
|
|
1560
|
-
function
|
|
1561
|
-
|
|
1562
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1569
|
+
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; }; }();
|
|
1563
1570
|
|
|
1564
|
-
function
|
|
1571
|
+
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; };
|
|
1565
1572
|
|
|
1566
|
-
function
|
|
1567
|
-
|
|
1568
|
-
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); }
|
|
1569
|
-
|
|
1570
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1571
|
-
|
|
1572
|
-
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); }; }
|
|
1573
|
-
|
|
1574
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1575
|
-
|
|
1576
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1577
|
-
|
|
1578
|
-
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; } }
|
|
1579
|
-
|
|
1580
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1573
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1581
1574
|
|
|
1582
|
-
function
|
|
1575
|
+
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; }
|
|
1583
1576
|
|
|
1584
|
-
function
|
|
1577
|
+
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; }
|
|
1585
1578
|
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
*
|
|
1589
|
-
*
|
|
1590
|
-
* @param {Object}
|
|
1591
|
-
* @param {Object} props
|
|
1579
|
+
/**
|
|
1580
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1581
|
+
*
|
|
1582
|
+
* @param {Object} prevProps
|
|
1583
|
+
* @param {Object} props
|
|
1592
1584
|
*/
|
|
1593
|
-
|
|
1594
1585
|
function shouldUpdateVideo(prevProps, props) {
|
|
1595
1586
|
// A changing video should always trigger an update
|
|
1596
1587
|
if (prevProps.videoId !== props.videoId) {
|
|
1597
1588
|
return true;
|
|
1598
|
-
}
|
|
1599
|
-
// update.
|
|
1600
|
-
|
|
1589
|
+
}
|
|
1601
1590
|
|
|
1591
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1592
|
+
// update.
|
|
1602
1593
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1603
1594
|
var vars = props.opts.playerVars || {};
|
|
1595
|
+
|
|
1604
1596
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1605
1597
|
}
|
|
1606
|
-
/**
|
|
1607
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
1608
|
-
* that require a player reset. The results can then be compared to see if a
|
|
1609
|
-
* player reset is necessary.
|
|
1610
|
-
*
|
|
1611
|
-
* @param {Object} opts
|
|
1612
|
-
*/
|
|
1613
|
-
|
|
1614
1598
|
|
|
1599
|
+
/**
|
|
1600
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
1601
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1602
|
+
* player reset is necessary.
|
|
1603
|
+
*
|
|
1604
|
+
* @param {Object} opts
|
|
1605
|
+
*/
|
|
1615
1606
|
function filterResetOptions(opts) {
|
|
1616
|
-
return
|
|
1617
|
-
playerVars:
|
|
1607
|
+
return _extends({}, opts, {
|
|
1608
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1618
1609
|
autoplay: 0,
|
|
1619
1610
|
start: 0,
|
|
1620
1611
|
end: 0
|
|
1621
|
-
}
|
|
1612
|
+
})
|
|
1622
1613
|
});
|
|
1623
1614
|
}
|
|
1624
|
-
/**
|
|
1625
|
-
* Check whether a `props` change should result in the player being reset.
|
|
1626
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
1627
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1628
|
-
* those.
|
|
1629
|
-
*
|
|
1630
|
-
* @param {Object} prevProps
|
|
1631
|
-
* @param {Object} props
|
|
1632
|
-
*/
|
|
1633
|
-
|
|
1634
1615
|
|
|
1616
|
+
/**
|
|
1617
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1618
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1619
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1620
|
+
* those.
|
|
1621
|
+
*
|
|
1622
|
+
* @param {Object} prevProps
|
|
1623
|
+
* @param {Object} props
|
|
1624
|
+
*/
|
|
1635
1625
|
function shouldResetPlayer(prevProps, props) {
|
|
1636
1626
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1637
1627
|
}
|
|
1638
|
-
/**
|
|
1639
|
-
* Check whether a props change should result in an id or className update.
|
|
1640
|
-
*
|
|
1641
|
-
* @param {Object} prevProps
|
|
1642
|
-
* @param {Object} props
|
|
1643
|
-
*/
|
|
1644
|
-
|
|
1645
1628
|
|
|
1629
|
+
/**
|
|
1630
|
+
* Check whether a props change should result in an id or className update.
|
|
1631
|
+
*
|
|
1632
|
+
* @param {Object} prevProps
|
|
1633
|
+
* @param {Object} props
|
|
1634
|
+
*/
|
|
1646
1635
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1647
1636
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1648
1637
|
}
|
|
1649
1638
|
|
|
1650
|
-
var YouTube =
|
|
1639
|
+
var YouTube = function (_React$Component) {
|
|
1651
1640
|
_inherits(YouTube, _React$Component);
|
|
1652
1641
|
|
|
1653
|
-
var _super = _createSuper(YouTube);
|
|
1654
|
-
|
|
1655
|
-
/**
|
|
1656
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1657
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1658
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1659
|
-
*/
|
|
1660
1642
|
function YouTube(props) {
|
|
1661
|
-
var _this;
|
|
1662
|
-
|
|
1663
1643
|
_classCallCheck(this, YouTube);
|
|
1664
1644
|
|
|
1665
|
-
_this =
|
|
1645
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1666
1646
|
|
|
1667
|
-
|
|
1647
|
+
_this.onPlayerReady = function (event) {
|
|
1668
1648
|
return _this.props.onReady(event);
|
|
1669
|
-
}
|
|
1649
|
+
};
|
|
1670
1650
|
|
|
1671
|
-
|
|
1651
|
+
_this.onPlayerError = function (event) {
|
|
1672
1652
|
return _this.props.onError(event);
|
|
1673
|
-
}
|
|
1653
|
+
};
|
|
1674
1654
|
|
|
1675
|
-
|
|
1655
|
+
_this.onPlayerStateChange = function (event) {
|
|
1676
1656
|
_this.props.onStateChange(event);
|
|
1677
|
-
|
|
1678
1657
|
switch (event.data) {
|
|
1658
|
+
|
|
1679
1659
|
case YouTube.PlayerState.ENDED:
|
|
1680
1660
|
_this.props.onEnd(event);
|
|
1681
|
-
|
|
1682
1661
|
break;
|
|
1683
1662
|
|
|
1684
1663
|
case YouTube.PlayerState.PLAYING:
|
|
1685
1664
|
_this.props.onPlay(event);
|
|
1686
|
-
|
|
1687
1665
|
break;
|
|
1688
1666
|
|
|
1689
1667
|
case YouTube.PlayerState.PAUSED:
|
|
1690
1668
|
_this.props.onPause(event);
|
|
1691
|
-
|
|
1692
1669
|
break;
|
|
1693
1670
|
}
|
|
1694
|
-
}
|
|
1671
|
+
};
|
|
1695
1672
|
|
|
1696
|
-
|
|
1673
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1697
1674
|
return _this.props.onPlaybackRateChange(event);
|
|
1698
|
-
}
|
|
1675
|
+
};
|
|
1699
1676
|
|
|
1700
|
-
|
|
1677
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1701
1678
|
return _this.props.onPlaybackQualityChange(event);
|
|
1702
|
-
}
|
|
1679
|
+
};
|
|
1703
1680
|
|
|
1704
|
-
|
|
1681
|
+
_this.createPlayer = function () {
|
|
1705
1682
|
// do not attempt to create a player server-side, it won't work
|
|
1706
|
-
if (typeof document === 'undefined') return;
|
|
1707
|
-
|
|
1708
|
-
var playerOpts =
|
|
1683
|
+
if (typeof document === 'undefined') return;
|
|
1684
|
+
// create player
|
|
1685
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1709
1686
|
// preload the `videoId` video if one is already given
|
|
1710
1687
|
videoId: _this.props.videoId
|
|
1711
1688
|
});
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1689
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
1690
|
+
// attach event handlers
|
|
1715
1691
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1716
|
-
|
|
1717
1692
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1718
|
-
|
|
1719
1693
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1720
|
-
|
|
1721
1694
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1722
|
-
|
|
1723
1695
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1724
|
-
}
|
|
1696
|
+
};
|
|
1725
1697
|
|
|
1726
|
-
|
|
1698
|
+
_this.resetPlayer = function () {
|
|
1727
1699
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1728
|
-
}
|
|
1700
|
+
};
|
|
1729
1701
|
|
|
1730
|
-
|
|
1702
|
+
_this.updatePlayer = function () {
|
|
1731
1703
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1732
1704
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1733
1705
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1734
1706
|
});
|
|
1735
|
-
}
|
|
1736
|
-
|
|
1737
|
-
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1738
|
-
return _this.internalPlayer;
|
|
1739
|
-
});
|
|
1707
|
+
};
|
|
1740
1708
|
|
|
1741
|
-
|
|
1709
|
+
_this.updateVideo = function () {
|
|
1742
1710
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1743
1711
|
_this.internalPlayer.stopVideo();
|
|
1744
|
-
|
|
1745
1712
|
return;
|
|
1746
|
-
}
|
|
1747
|
-
|
|
1713
|
+
}
|
|
1748
1714
|
|
|
1715
|
+
// set queueing options
|
|
1749
1716
|
var autoplay = false;
|
|
1750
1717
|
var opts = {
|
|
1751
1718
|
videoId: _this.props.videoId
|
|
1752
1719
|
};
|
|
1753
|
-
|
|
1754
1720
|
if ('playerVars' in _this.props.opts) {
|
|
1755
1721
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1756
|
-
|
|
1757
1722
|
if ('start' in _this.props.opts.playerVars) {
|
|
1758
1723
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1759
1724
|
}
|
|
1760
|
-
|
|
1761
1725
|
if ('end' in _this.props.opts.playerVars) {
|
|
1762
1726
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1763
1727
|
}
|
|
1764
|
-
}
|
|
1765
|
-
|
|
1728
|
+
}
|
|
1766
1729
|
|
|
1730
|
+
// if autoplay is enabled loadVideoById
|
|
1767
1731
|
if (autoplay) {
|
|
1768
1732
|
_this.internalPlayer.loadVideoById(opts);
|
|
1769
|
-
|
|
1770
1733
|
return;
|
|
1771
|
-
}
|
|
1772
|
-
|
|
1773
|
-
|
|
1734
|
+
}
|
|
1735
|
+
// default behaviour just cues the video
|
|
1774
1736
|
_this.internalPlayer.cueVideoById(opts);
|
|
1775
|
-
}
|
|
1737
|
+
};
|
|
1776
1738
|
|
|
1777
|
-
|
|
1739
|
+
_this.refContainer = function (container) {
|
|
1778
1740
|
_this.container = container;
|
|
1779
|
-
}
|
|
1741
|
+
};
|
|
1780
1742
|
|
|
1781
1743
|
_this.container = null;
|
|
1782
1744
|
_this.internalPlayer = null;
|
|
1783
1745
|
return _this;
|
|
1784
1746
|
}
|
|
1785
1747
|
|
|
1748
|
+
/**
|
|
1749
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1750
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1751
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1752
|
+
*/
|
|
1753
|
+
|
|
1754
|
+
|
|
1786
1755
|
_createClass(YouTube, [{
|
|
1787
|
-
key:
|
|
1756
|
+
key: 'componentDidMount',
|
|
1788
1757
|
value: function componentDidMount() {
|
|
1789
1758
|
this.createPlayer();
|
|
1790
1759
|
}
|
|
1791
1760
|
}, {
|
|
1792
|
-
key:
|
|
1761
|
+
key: 'componentDidUpdate',
|
|
1793
1762
|
value: function componentDidUpdate(prevProps) {
|
|
1794
1763
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1795
1764
|
this.updatePlayer();
|
|
@@ -1804,58 +1773,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1804
1773
|
}
|
|
1805
1774
|
}
|
|
1806
1775
|
}, {
|
|
1807
|
-
key:
|
|
1776
|
+
key: 'componentWillUnmount',
|
|
1808
1777
|
value: function componentWillUnmount() {
|
|
1809
|
-
/**
|
|
1810
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1811
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1812
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1813
|
-
* this method isn't quick enough to reset the container element.
|
|
1778
|
+
/**
|
|
1779
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
1780
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1781
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1782
|
+
* this method isn't quick enough to reset the container element.
|
|
1814
1783
|
*/
|
|
1815
1784
|
this.internalPlayer.destroy();
|
|
1816
1785
|
}
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
*
|
|
1820
|
-
*
|
|
1821
|
-
*
|
|
1786
|
+
|
|
1787
|
+
/**
|
|
1788
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1789
|
+
*
|
|
1790
|
+
* @param {Object} event
|
|
1791
|
+
* @param {Object} target - player object
|
|
1792
|
+
*/
|
|
1793
|
+
|
|
1794
|
+
|
|
1795
|
+
/**
|
|
1796
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1797
|
+
*
|
|
1798
|
+
* @param {Object} event
|
|
1799
|
+
* @param {Integer} data - error type
|
|
1800
|
+
* @param {Object} target - player object
|
|
1801
|
+
*/
|
|
1802
|
+
|
|
1803
|
+
|
|
1804
|
+
/**
|
|
1805
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1806
|
+
*
|
|
1807
|
+
* @param {Object} event
|
|
1808
|
+
* @param {Integer} data - status change type
|
|
1809
|
+
* @param {Object} target - actual YT player
|
|
1810
|
+
*/
|
|
1811
|
+
|
|
1812
|
+
|
|
1813
|
+
/**
|
|
1814
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1815
|
+
*
|
|
1816
|
+
* @param {Object} event
|
|
1817
|
+
* @param {Float} data - playback rate
|
|
1818
|
+
* @param {Object} target - actual YT player
|
|
1819
|
+
*/
|
|
1820
|
+
|
|
1821
|
+
|
|
1822
|
+
/**
|
|
1823
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1824
|
+
*
|
|
1825
|
+
* @param {Object} event
|
|
1826
|
+
* @param {String} data - playback quality
|
|
1827
|
+
* @param {Object} target - actual YT player
|
|
1828
|
+
*/
|
|
1829
|
+
|
|
1830
|
+
|
|
1831
|
+
/**
|
|
1832
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1833
|
+
*/
|
|
1834
|
+
|
|
1835
|
+
|
|
1836
|
+
/**
|
|
1837
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1838
|
+
*/
|
|
1839
|
+
|
|
1840
|
+
|
|
1841
|
+
/**
|
|
1842
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
1843
|
+
* React should update this automatically but since the Youtube Player API
|
|
1844
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1845
|
+
*/
|
|
1846
|
+
|
|
1847
|
+
|
|
1848
|
+
/**
|
|
1849
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
1850
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1851
|
+
* Youtube Player API methods to update the video.
|
|
1822
1852
|
*/
|
|
1823
1853
|
|
|
1824
1854
|
}, {
|
|
1825
|
-
key:
|
|
1855
|
+
key: 'render',
|
|
1826
1856
|
value: function render() {
|
|
1827
|
-
return
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
id: this.props.id,
|
|
1831
|
-
|
|
1832
|
-
ref: this.refContainer
|
|
1833
|
-
}));
|
|
1857
|
+
return React__default.createElement(
|
|
1858
|
+
'div',
|
|
1859
|
+
{ className: this.props.containerClassName },
|
|
1860
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
1861
|
+
);
|
|
1834
1862
|
}
|
|
1835
1863
|
}]);
|
|
1836
1864
|
|
|
1837
1865
|
return YouTube;
|
|
1838
|
-
}(
|
|
1839
|
-
|
|
1840
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
1841
|
-
UNSTARTED: -1,
|
|
1842
|
-
ENDED: 0,
|
|
1843
|
-
PLAYING: 1,
|
|
1844
|
-
PAUSED: 2,
|
|
1845
|
-
BUFFERING: 3,
|
|
1846
|
-
CUED: 5
|
|
1847
|
-
});
|
|
1866
|
+
}(React__default.Component);
|
|
1848
1867
|
|
|
1849
1868
|
YouTube.propTypes = {
|
|
1850
1869
|
videoId: PropTypes.string,
|
|
1870
|
+
|
|
1851
1871
|
// custom ID for player element
|
|
1852
1872
|
id: PropTypes.string,
|
|
1873
|
+
|
|
1853
1874
|
// custom class name for player element
|
|
1854
1875
|
className: PropTypes.string,
|
|
1855
1876
|
// custom class name for player container element
|
|
1856
1877
|
containerClassName: PropTypes.string,
|
|
1878
|
+
|
|
1857
1879
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1858
1880
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1881
|
+
|
|
1859
1882
|
// event subscriptions
|
|
1860
1883
|
onReady: PropTypes.func,
|
|
1861
1884
|
onError: PropTypes.func,
|
|
@@ -1867,7 +1890,6 @@ YouTube.propTypes = {
|
|
|
1867
1890
|
onPlaybackQualityChange: PropTypes.func
|
|
1868
1891
|
};
|
|
1869
1892
|
YouTube.defaultProps = {
|
|
1870
|
-
videoId: null,
|
|
1871
1893
|
id: null,
|
|
1872
1894
|
className: null,
|
|
1873
1895
|
opts: {},
|
|
@@ -1881,6 +1903,14 @@ YouTube.defaultProps = {
|
|
|
1881
1903
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1882
1904
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1883
1905
|
};
|
|
1906
|
+
YouTube.PlayerState = {
|
|
1907
|
+
UNSTARTED: -1,
|
|
1908
|
+
ENDED: 0,
|
|
1909
|
+
PLAYING: 1,
|
|
1910
|
+
PAUSED: 2,
|
|
1911
|
+
BUFFERING: 3,
|
|
1912
|
+
CUED: 5
|
|
1913
|
+
};
|
|
1884
1914
|
|
|
1885
1915
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1886
1916
|
var url = _ref.url;
|
|
@@ -1980,11 +2010,11 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1980
2010
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
1981
2011
|
};
|
|
1982
2012
|
|
|
1983
|
-
return
|
|
2013
|
+
return React__default.createElement(
|
|
1984
2014
|
'div',
|
|
1985
2015
|
{ id: 'fluid-video-container' },
|
|
1986
|
-
|
|
1987
|
-
|
|
2016
|
+
React__default.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
2017
|
+
React__default.createElement(
|
|
1988
2018
|
'style',
|
|
1989
2019
|
{ jsx: 'true' },
|
|
1990
2020
|
'\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 '
|
|
@@ -1997,20 +2027,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
1997
2027
|
content = _ref.content,
|
|
1998
2028
|
getSerializers = _ref.getSerializers;
|
|
1999
2029
|
|
|
2000
|
-
return
|
|
2030
|
+
return React__default.createElement(
|
|
2001
2031
|
'article',
|
|
2002
2032
|
{ className: 'sidebar' },
|
|
2003
|
-
|
|
2033
|
+
React__default.createElement(
|
|
2004
2034
|
'div',
|
|
2005
2035
|
null,
|
|
2006
|
-
|
|
2036
|
+
React__default.createElement(
|
|
2007
2037
|
'h3',
|
|
2008
2038
|
null,
|
|
2009
2039
|
caption
|
|
2010
2040
|
),
|
|
2011
|
-
|
|
2041
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2012
2042
|
),
|
|
2013
|
-
|
|
2043
|
+
React__default.createElement(
|
|
2014
2044
|
'style',
|
|
2015
2045
|
{ jsx: 'true' },
|
|
2016
2046
|
'\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 '
|
|
@@ -2021,18 +2051,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2021
2051
|
var TableShow = function TableShow(_ref) {
|
|
2022
2052
|
var rows = _ref.rows;
|
|
2023
2053
|
|
|
2024
|
-
return
|
|
2054
|
+
return React__default.createElement(
|
|
2025
2055
|
Table,
|
|
2026
2056
|
{ bordered: true, hover: true, responsive: true },
|
|
2027
|
-
|
|
2057
|
+
React__default.createElement(
|
|
2028
2058
|
'tbody',
|
|
2029
2059
|
null,
|
|
2030
2060
|
rows && rows.map(function (row) {
|
|
2031
|
-
return
|
|
2061
|
+
return React__default.createElement(
|
|
2032
2062
|
'tr',
|
|
2033
2063
|
{ key: row._key },
|
|
2034
2064
|
row.cells && row.cells.map(function (cell, index) {
|
|
2035
|
-
return cell &&
|
|
2065
|
+
return cell && React__default.createElement(
|
|
2036
2066
|
'td',
|
|
2037
2067
|
{ key: index },
|
|
2038
2068
|
cell
|
|
@@ -2135,18 +2165,18 @@ var Media = function Media(_ref) {
|
|
|
2135
2165
|
margin: imageMargin
|
|
2136
2166
|
};
|
|
2137
2167
|
|
|
2138
|
-
return
|
|
2168
|
+
return React__default.createElement(
|
|
2139
2169
|
Figure$1,
|
|
2140
2170
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2141
|
-
|
|
2171
|
+
React__default.createElement(
|
|
2142
2172
|
'a',
|
|
2143
2173
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2144
|
-
|
|
2174
|
+
React__default.createElement(
|
|
2145
2175
|
LazyLoad,
|
|
2146
2176
|
{ once: true },
|
|
2147
|
-
|
|
2177
|
+
React__default.createElement(Figure$1.Image, _extends$1({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt }))
|
|
2148
2178
|
),
|
|
2149
|
-
caption &&
|
|
2179
|
+
caption && React__default.createElement(
|
|
2150
2180
|
Figure$1.Caption,
|
|
2151
2181
|
{ className: 'media-caption' },
|
|
2152
2182
|
caption
|
|
@@ -2154,9 +2184,9 @@ var Media = function Media(_ref) {
|
|
|
2154
2184
|
)
|
|
2155
2185
|
);
|
|
2156
2186
|
} else if (caption && caption !== '') {
|
|
2157
|
-
return
|
|
2187
|
+
return React__default.createElement(
|
|
2158
2188
|
'a',
|
|
2159
|
-
_extends({}, uploadDoc.downloadMedia ? {
|
|
2189
|
+
_extends$1({}, uploadDoc.downloadMedia ? {
|
|
2160
2190
|
href: uploadDoc.asset.url + '?dl='
|
|
2161
2191
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2162
2192
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2171,10 +2201,10 @@ var Media = function Media(_ref) {
|
|
|
2171
2201
|
var IFrame = function IFrame(_ref) {
|
|
2172
2202
|
var url = _ref.url;
|
|
2173
2203
|
|
|
2174
|
-
return
|
|
2204
|
+
return React__default.createElement(
|
|
2175
2205
|
'div',
|
|
2176
2206
|
{ className: 'd-block text-center mb-3' },
|
|
2177
|
-
|
|
2207
|
+
React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2178
2208
|
);
|
|
2179
2209
|
};
|
|
2180
2210
|
|
|
@@ -2209,7 +2239,7 @@ var Video = function Video(_ref) {
|
|
|
2209
2239
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2210
2240
|
//console.log('success:', success.ref)
|
|
2211
2241
|
var player = success.ref;
|
|
2212
|
-
if (_typeof
|
|
2242
|
+
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2213
2243
|
player.ima3.settings.debug = true;
|
|
2214
2244
|
if (targeting.content_placement && targeting.document_url) {
|
|
2215
2245
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2307,44 +2337,44 @@ var Video = function Video(_ref) {
|
|
|
2307
2337
|
|
|
2308
2338
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2309
2339
|
if (videoID) {
|
|
2310
|
-
return
|
|
2340
|
+
return React__default.createElement(
|
|
2311
2341
|
'div',
|
|
2312
2342
|
null,
|
|
2313
|
-
|
|
2343
|
+
React__default.createElement(ReactPlayerLoader, {
|
|
2314
2344
|
onSuccess: onVideoSuccess,
|
|
2315
2345
|
accountId: accountIDs.brightcove.accountId,
|
|
2316
2346
|
videoId: videoID,
|
|
2317
2347
|
playerId: accountIDs.brightcove.playerId,
|
|
2318
2348
|
attrs: { className: 'brightcove', autoplay: 'muted' }
|
|
2319
2349
|
}),
|
|
2320
|
-
|
|
2350
|
+
React__default.createElement(
|
|
2321
2351
|
'style',
|
|
2322
2352
|
{ jsx: 'true' },
|
|
2323
2353
|
'\n .brightcove {\n position: relative;\n margin-bottom: 1rem;\n height: 100%;\n width: 100%;\n }\n .brightcove .video-js {\n height: 100%;\n width: 100%;\n position: relative;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n min-height: 411px;\n }\n '
|
|
2324
2354
|
)
|
|
2325
2355
|
);
|
|
2326
2356
|
} else if (playlistID) {
|
|
2327
|
-
return
|
|
2357
|
+
return React__default.createElement(
|
|
2328
2358
|
'div',
|
|
2329
2359
|
null,
|
|
2330
|
-
|
|
2360
|
+
React__default.createElement(ReactPlayerLoader, {
|
|
2331
2361
|
accountId: accountIDs.brightcove.accountId,
|
|
2332
2362
|
playlistId: playlistID,
|
|
2333
2363
|
playerId: accountIDs.brightcove.playerId,
|
|
2334
2364
|
onSuccess: onVideoSuccess,
|
|
2335
2365
|
attrs: { className: 'brightcove brightcove-playlist', autoplay: 'muted' }
|
|
2336
2366
|
}),
|
|
2337
|
-
|
|
2367
|
+
React__default.createElement(
|
|
2338
2368
|
'style',
|
|
2339
2369
|
{ jsx: 'true' },
|
|
2340
2370
|
'\n .brightcove {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n width: 100%;\n }\n .brightcove .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 '
|
|
2341
2371
|
)
|
|
2342
2372
|
);
|
|
2343
2373
|
} else if (experienceID) {
|
|
2344
|
-
return
|
|
2374
|
+
return React__default.createElement(
|
|
2345
2375
|
'div',
|
|
2346
2376
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2347
|
-
videoLoaded &&
|
|
2377
|
+
videoLoaded && React__default.createElement('div', { 'data-experience': experienceID })
|
|
2348
2378
|
);
|
|
2349
2379
|
}
|
|
2350
2380
|
return null;
|
|
@@ -2557,9 +2587,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2557
2587
|
});
|
|
2558
2588
|
|
|
2559
2589
|
unwrapExports(props);
|
|
2560
|
-
props.DEPRECATED_CONFIG_PROPS;
|
|
2561
|
-
props.defaultProps;
|
|
2562
|
-
props.propTypes;
|
|
2590
|
+
var props_1 = props.DEPRECATED_CONFIG_PROPS;
|
|
2591
|
+
var props_2 = props.defaultProps;
|
|
2592
|
+
var props_3 = props.propTypes;
|
|
2563
2593
|
|
|
2564
2594
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2565
2595
|
return isNonNullObject(value)
|
|
@@ -2724,17 +2754,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2724
2754
|
|
|
2725
2755
|
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; }
|
|
2726
2756
|
|
|
2727
|
-
function
|
|
2728
|
-
|
|
2729
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2730
|
-
|
|
2731
|
-
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."); }
|
|
2757
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2732
2758
|
|
|
2733
|
-
function
|
|
2759
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2734
2760
|
|
|
2735
|
-
function
|
|
2736
|
-
|
|
2737
|
-
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; }
|
|
2761
|
+
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; }
|
|
2738
2762
|
|
|
2739
2763
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2740
2764
|
|
|
@@ -2864,12 +2888,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
2864
2888
|
|
|
2865
2889
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
2866
2890
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
2867
|
-
|
|
2868
|
-
var
|
|
2869
|
-
|
|
2891
|
+
var _iteratorNormalCompletion = true;
|
|
2892
|
+
var _didIteratorError = false;
|
|
2893
|
+
var _iteratorError = undefined;
|
|
2870
2894
|
|
|
2871
2895
|
try {
|
|
2872
|
-
for (_iterator.
|
|
2896
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
2873
2897
|
var p = _step.value;
|
|
2874
2898
|
|
|
2875
2899
|
if (props$1[p]) {
|
|
@@ -2884,9 +2908,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
2884
2908
|
}
|
|
2885
2909
|
}
|
|
2886
2910
|
} catch (err) {
|
|
2887
|
-
|
|
2911
|
+
_didIteratorError = true;
|
|
2912
|
+
_iteratorError = err;
|
|
2888
2913
|
} finally {
|
|
2889
|
-
|
|
2914
|
+
try {
|
|
2915
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
2916
|
+
_iterator["return"]();
|
|
2917
|
+
}
|
|
2918
|
+
} finally {
|
|
2919
|
+
if (_didIteratorError) {
|
|
2920
|
+
throw _iteratorError;
|
|
2921
|
+
}
|
|
2922
|
+
}
|
|
2890
2923
|
}
|
|
2891
2924
|
|
|
2892
2925
|
return config;
|
|
@@ -2951,7 +2984,7 @@ function isEqual(a, b) {
|
|
|
2951
2984
|
return true;
|
|
2952
2985
|
}
|
|
2953
2986
|
|
|
2954
|
-
if ((0,
|
|
2987
|
+
if ((0, React__default.isValidElement)(a) && (0, React__default.isValidElement)(b)) {
|
|
2955
2988
|
return true;
|
|
2956
2989
|
}
|
|
2957
2990
|
|
|
@@ -2994,17 +3027,17 @@ function isMediaStream(url) {
|
|
|
2994
3027
|
});
|
|
2995
3028
|
|
|
2996
3029
|
unwrapExports(utils);
|
|
2997
|
-
utils.parseStartTime;
|
|
2998
|
-
utils.parseEndTime;
|
|
2999
|
-
utils.randomString;
|
|
3000
|
-
utils.queryString;
|
|
3001
|
-
utils.getSDK;
|
|
3002
|
-
utils.getConfig;
|
|
3003
|
-
utils.omit;
|
|
3004
|
-
utils.callPlayer;
|
|
3005
|
-
utils.isObject;
|
|
3006
|
-
utils.isEqual;
|
|
3007
|
-
utils.isMediaStream;
|
|
3030
|
+
var utils_1 = utils.parseStartTime;
|
|
3031
|
+
var utils_2 = utils.parseEndTime;
|
|
3032
|
+
var utils_3 = utils.randomString;
|
|
3033
|
+
var utils_4 = utils.queryString;
|
|
3034
|
+
var utils_5 = utils.getSDK;
|
|
3035
|
+
var utils_6 = utils.getConfig;
|
|
3036
|
+
var utils_7 = utils.omit;
|
|
3037
|
+
var utils_8 = utils.callPlayer;
|
|
3038
|
+
var utils_9 = utils.isObject;
|
|
3039
|
+
var utils_10 = utils.isEqual;
|
|
3040
|
+
var utils_11 = utils.isMediaStream;
|
|
3008
3041
|
|
|
3009
3042
|
var Player_1 = createCommonjsModule(function (module, exports) {
|
|
3010
3043
|
|
|
@@ -3013,7 +3046,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3013
3046
|
});
|
|
3014
3047
|
exports["default"] = void 0;
|
|
3015
3048
|
|
|
3016
|
-
var _react = _interopRequireWildcard(
|
|
3049
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3017
3050
|
|
|
3018
3051
|
|
|
3019
3052
|
|
|
@@ -3033,16 +3066,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3033
3066
|
|
|
3034
3067
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3035
3068
|
|
|
3036
|
-
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); }; }
|
|
3037
|
-
|
|
3038
3069
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3039
3070
|
|
|
3040
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3041
|
-
|
|
3042
|
-
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; } }
|
|
3043
|
-
|
|
3044
3071
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3045
3072
|
|
|
3073
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3074
|
+
|
|
3046
3075
|
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); }
|
|
3047
3076
|
|
|
3048
3077
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3051,12 +3080,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3051
3080
|
|
|
3052
3081
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3053
3082
|
|
|
3054
|
-
var Player =
|
|
3083
|
+
var Player =
|
|
3084
|
+
/*#__PURE__*/
|
|
3085
|
+
function (_Component) {
|
|
3055
3086
|
_inherits(Player, _Component);
|
|
3056
3087
|
|
|
3057
|
-
var _super = _createSuper(Player);
|
|
3058
|
-
|
|
3059
3088
|
function Player() {
|
|
3089
|
+
var _getPrototypeOf2;
|
|
3090
|
+
|
|
3060
3091
|
var _this;
|
|
3061
3092
|
|
|
3062
3093
|
_classCallCheck(this, Player);
|
|
@@ -3065,7 +3096,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3065
3096
|
_args[_key] = arguments[_key];
|
|
3066
3097
|
}
|
|
3067
3098
|
|
|
3068
|
-
_this =
|
|
3099
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3069
3100
|
|
|
3070
3101
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3071
3102
|
|
|
@@ -3390,7 +3421,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3390
3421
|
return null;
|
|
3391
3422
|
}
|
|
3392
3423
|
|
|
3393
|
-
return
|
|
3424
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3394
3425
|
ref: this.ref,
|
|
3395
3426
|
onReady: this.handleReady,
|
|
3396
3427
|
onPlay: this.handlePlay,
|
|
@@ -3423,7 +3454,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3423
3454
|
});
|
|
3424
3455
|
exports["default"] = createSinglePlayer;
|
|
3425
3456
|
|
|
3426
|
-
var _react = _interopRequireWildcard(
|
|
3457
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3427
3458
|
|
|
3428
3459
|
|
|
3429
3460
|
|
|
@@ -3451,16 +3482,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3451
3482
|
|
|
3452
3483
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3453
3484
|
|
|
3454
|
-
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); }; }
|
|
3455
|
-
|
|
3456
3485
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3457
3486
|
|
|
3458
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3459
|
-
|
|
3460
|
-
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; } }
|
|
3461
|
-
|
|
3462
3487
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3463
3488
|
|
|
3489
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3490
|
+
|
|
3464
3491
|
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); }
|
|
3465
3492
|
|
|
3466
3493
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3472,12 +3499,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3472
3499
|
function createSinglePlayer(activePlayer) {
|
|
3473
3500
|
var _class, _temp;
|
|
3474
3501
|
|
|
3475
|
-
return _temp = _class =
|
|
3502
|
+
return _temp = _class =
|
|
3503
|
+
/*#__PURE__*/
|
|
3504
|
+
function (_Component) {
|
|
3476
3505
|
_inherits(SinglePlayer, _Component);
|
|
3477
3506
|
|
|
3478
|
-
var _super = _createSuper(SinglePlayer);
|
|
3479
|
-
|
|
3480
3507
|
function SinglePlayer() {
|
|
3508
|
+
var _getPrototypeOf2;
|
|
3509
|
+
|
|
3481
3510
|
var _this;
|
|
3482
3511
|
|
|
3483
3512
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3486,7 +3515,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3486
3515
|
args[_key] = arguments[_key];
|
|
3487
3516
|
}
|
|
3488
3517
|
|
|
3489
|
-
_this =
|
|
3518
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3490
3519
|
|
|
3491
3520
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3492
3521
|
|
|
@@ -3554,12 +3583,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3554
3583
|
height = _this$props.height,
|
|
3555
3584
|
Wrapper = _this$props.wrapper;
|
|
3556
3585
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3557
|
-
return
|
|
3586
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3558
3587
|
style: _objectSpread({}, style, {
|
|
3559
3588
|
width: width,
|
|
3560
3589
|
height: height
|
|
3561
3590
|
})
|
|
3562
|
-
}, otherProps),
|
|
3591
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3563
3592
|
ref: this.ref,
|
|
3564
3593
|
activePlayer: activePlayer,
|
|
3565
3594
|
config: this.config
|
|
@@ -3581,7 +3610,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3581
3610
|
});
|
|
3582
3611
|
exports["default"] = exports.YouTube = void 0;
|
|
3583
3612
|
|
|
3584
|
-
var _react = _interopRequireWildcard(
|
|
3613
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3585
3614
|
|
|
3586
3615
|
|
|
3587
3616
|
|
|
@@ -3605,31 +3634,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3605
3634
|
|
|
3606
3635
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3607
3636
|
|
|
3608
|
-
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); }; }
|
|
3609
|
-
|
|
3610
3637
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3611
3638
|
|
|
3612
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3613
|
-
|
|
3614
|
-
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; } }
|
|
3615
|
-
|
|
3616
3639
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3617
3640
|
|
|
3641
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3642
|
+
|
|
3618
3643
|
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); }
|
|
3619
3644
|
|
|
3620
3645
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3621
3646
|
|
|
3622
3647
|
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; }
|
|
3623
3648
|
|
|
3624
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3625
|
-
|
|
3626
|
-
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."); }
|
|
3649
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3627
3650
|
|
|
3628
|
-
function
|
|
3651
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3629
3652
|
|
|
3630
|
-
function
|
|
3631
|
-
|
|
3632
|
-
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; }
|
|
3653
|
+
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; }
|
|
3633
3654
|
|
|
3634
3655
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3635
3656
|
|
|
@@ -3654,12 +3675,14 @@ function parsePlaylist(url) {
|
|
|
3654
3675
|
return {};
|
|
3655
3676
|
}
|
|
3656
3677
|
|
|
3657
|
-
var YouTube =
|
|
3678
|
+
var YouTube =
|
|
3679
|
+
/*#__PURE__*/
|
|
3680
|
+
function (_Component) {
|
|
3658
3681
|
_inherits(YouTube, _Component);
|
|
3659
3682
|
|
|
3660
|
-
var _super = _createSuper(YouTube);
|
|
3661
|
-
|
|
3662
3683
|
function YouTube() {
|
|
3684
|
+
var _getPrototypeOf2;
|
|
3685
|
+
|
|
3663
3686
|
var _this;
|
|
3664
3687
|
|
|
3665
3688
|
_classCallCheck(this, YouTube);
|
|
@@ -3668,7 +3691,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3668
3691
|
args[_key] = arguments[_key];
|
|
3669
3692
|
}
|
|
3670
3693
|
|
|
3671
|
-
_this =
|
|
3694
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3672
3695
|
|
|
3673
3696
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3674
3697
|
|
|
@@ -3856,9 +3879,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3856
3879
|
height: '100%',
|
|
3857
3880
|
display: display
|
|
3858
3881
|
};
|
|
3859
|
-
return
|
|
3882
|
+
return _react["default"].createElement("div", {
|
|
3860
3883
|
style: style
|
|
3861
|
-
},
|
|
3884
|
+
}, _react["default"].createElement("div", {
|
|
3862
3885
|
ref: this.ref
|
|
3863
3886
|
}));
|
|
3864
3887
|
}
|
|
@@ -3881,7 +3904,7 @@ exports["default"] = _default;
|
|
|
3881
3904
|
});
|
|
3882
3905
|
|
|
3883
3906
|
unwrapExports(YouTube_1);
|
|
3884
|
-
YouTube_1.YouTube;
|
|
3907
|
+
var YouTube_2 = YouTube_1.YouTube;
|
|
3885
3908
|
|
|
3886
3909
|
var SoundCloud_1 = createCommonjsModule(function (module, exports) {
|
|
3887
3910
|
|
|
@@ -3890,7 +3913,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3890
3913
|
});
|
|
3891
3914
|
exports["default"] = exports.SoundCloud = void 0;
|
|
3892
3915
|
|
|
3893
|
-
var _react = _interopRequireWildcard(
|
|
3916
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3894
3917
|
|
|
3895
3918
|
|
|
3896
3919
|
|
|
@@ -3914,16 +3937,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3914
3937
|
|
|
3915
3938
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3916
3939
|
|
|
3917
|
-
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); }; }
|
|
3918
|
-
|
|
3919
3940
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3920
3941
|
|
|
3921
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3922
|
-
|
|
3923
|
-
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; } }
|
|
3924
|
-
|
|
3925
3942
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3926
3943
|
|
|
3944
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3945
|
+
|
|
3927
3946
|
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); }
|
|
3928
3947
|
|
|
3929
3948
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3932,14 +3951,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3932
3951
|
|
|
3933
3952
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
3934
3953
|
var SDK_GLOBAL = 'SC';
|
|
3935
|
-
var MATCH_URL = /(
|
|
3954
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
3936
3955
|
|
|
3937
|
-
var SoundCloud =
|
|
3956
|
+
var SoundCloud =
|
|
3957
|
+
/*#__PURE__*/
|
|
3958
|
+
function (_Component) {
|
|
3938
3959
|
_inherits(SoundCloud, _Component);
|
|
3939
3960
|
|
|
3940
|
-
var _super = _createSuper(SoundCloud);
|
|
3941
|
-
|
|
3942
3961
|
function SoundCloud() {
|
|
3962
|
+
var _getPrototypeOf2;
|
|
3963
|
+
|
|
3943
3964
|
var _this;
|
|
3944
3965
|
|
|
3945
3966
|
_classCallCheck(this, SoundCloud);
|
|
@@ -3948,7 +3969,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
3948
3969
|
args[_key] = arguments[_key];
|
|
3949
3970
|
}
|
|
3950
3971
|
|
|
3951
|
-
_this =
|
|
3972
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3952
3973
|
|
|
3953
3974
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3954
3975
|
|
|
@@ -4069,7 +4090,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4069
4090
|
height: '100%',
|
|
4070
4091
|
display: display
|
|
4071
4092
|
};
|
|
4072
|
-
return
|
|
4093
|
+
return _react["default"].createElement("iframe", {
|
|
4073
4094
|
ref: this.ref,
|
|
4074
4095
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4075
4096
|
style: style,
|
|
@@ -4098,7 +4119,7 @@ exports["default"] = _default;
|
|
|
4098
4119
|
});
|
|
4099
4120
|
|
|
4100
4121
|
unwrapExports(SoundCloud_1);
|
|
4101
|
-
SoundCloud_1.SoundCloud;
|
|
4122
|
+
var SoundCloud_2 = SoundCloud_1.SoundCloud;
|
|
4102
4123
|
|
|
4103
4124
|
var Vimeo_1 = createCommonjsModule(function (module, exports) {
|
|
4104
4125
|
|
|
@@ -4107,7 +4128,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4107
4128
|
});
|
|
4108
4129
|
exports["default"] = exports.Vimeo = void 0;
|
|
4109
4130
|
|
|
4110
|
-
var _react = _interopRequireWildcard(
|
|
4131
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4111
4132
|
|
|
4112
4133
|
|
|
4113
4134
|
|
|
@@ -4131,16 +4152,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4131
4152
|
|
|
4132
4153
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4133
4154
|
|
|
4134
|
-
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); }; }
|
|
4135
|
-
|
|
4136
4155
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4137
4156
|
|
|
4138
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4139
|
-
|
|
4140
|
-
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; } }
|
|
4141
|
-
|
|
4142
4157
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4143
4158
|
|
|
4159
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4160
|
+
|
|
4144
4161
|
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); }
|
|
4145
4162
|
|
|
4146
4163
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4152,12 +4169,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4152
4169
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4153
4170
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4154
4171
|
|
|
4155
|
-
var Vimeo =
|
|
4172
|
+
var Vimeo =
|
|
4173
|
+
/*#__PURE__*/
|
|
4174
|
+
function (_Component) {
|
|
4156
4175
|
_inherits(Vimeo, _Component);
|
|
4157
4176
|
|
|
4158
|
-
var _super = _createSuper(Vimeo);
|
|
4159
|
-
|
|
4160
4177
|
function Vimeo() {
|
|
4178
|
+
var _getPrototypeOf2;
|
|
4179
|
+
|
|
4161
4180
|
var _this;
|
|
4162
4181
|
|
|
4163
4182
|
_classCallCheck(this, Vimeo);
|
|
@@ -4166,7 +4185,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4166
4185
|
args[_key] = arguments[_key];
|
|
4167
4186
|
}
|
|
4168
4187
|
|
|
4169
|
-
_this =
|
|
4188
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4170
4189
|
|
|
4171
4190
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4172
4191
|
|
|
@@ -4323,7 +4342,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4323
4342
|
overflow: 'hidden',
|
|
4324
4343
|
display: display
|
|
4325
4344
|
};
|
|
4326
|
-
return
|
|
4345
|
+
return _react["default"].createElement("div", {
|
|
4327
4346
|
key: this.props.url,
|
|
4328
4347
|
ref: this.ref,
|
|
4329
4348
|
style: style
|
|
@@ -4354,7 +4373,7 @@ exports["default"] = _default;
|
|
|
4354
4373
|
});
|
|
4355
4374
|
|
|
4356
4375
|
unwrapExports(Vimeo_1);
|
|
4357
|
-
Vimeo_1.Vimeo;
|
|
4376
|
+
var Vimeo_2 = Vimeo_1.Vimeo;
|
|
4358
4377
|
|
|
4359
4378
|
var Facebook_1 = createCommonjsModule(function (module, exports) {
|
|
4360
4379
|
|
|
@@ -4363,7 +4382,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4363
4382
|
});
|
|
4364
4383
|
exports["default"] = exports.Facebook = void 0;
|
|
4365
4384
|
|
|
4366
|
-
var _react = _interopRequireWildcard(
|
|
4385
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4367
4386
|
|
|
4368
4387
|
|
|
4369
4388
|
|
|
@@ -4383,16 +4402,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4383
4402
|
|
|
4384
4403
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4385
4404
|
|
|
4386
|
-
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); }; }
|
|
4387
|
-
|
|
4388
4405
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4389
4406
|
|
|
4390
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4391
|
-
|
|
4392
|
-
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; } }
|
|
4393
|
-
|
|
4394
4407
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4395
4408
|
|
|
4409
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4410
|
+
|
|
4396
4411
|
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); }
|
|
4397
4412
|
|
|
4398
4413
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4405,12 +4420,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4405
4420
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4406
4421
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4407
4422
|
|
|
4408
|
-
var Facebook =
|
|
4423
|
+
var Facebook =
|
|
4424
|
+
/*#__PURE__*/
|
|
4425
|
+
function (_Component) {
|
|
4409
4426
|
_inherits(Facebook, _Component);
|
|
4410
4427
|
|
|
4411
|
-
var _super = _createSuper(Facebook);
|
|
4412
|
-
|
|
4413
4428
|
function Facebook() {
|
|
4429
|
+
var _getPrototypeOf2;
|
|
4430
|
+
|
|
4414
4431
|
var _this;
|
|
4415
4432
|
|
|
4416
4433
|
_classCallCheck(this, Facebook);
|
|
@@ -4419,7 +4436,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4419
4436
|
args[_key] = arguments[_key];
|
|
4420
4437
|
}
|
|
4421
4438
|
|
|
4422
|
-
_this =
|
|
4439
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4423
4440
|
|
|
4424
4441
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4425
4442
|
|
|
@@ -4535,7 +4552,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4535
4552
|
width: '100%',
|
|
4536
4553
|
height: '100%'
|
|
4537
4554
|
};
|
|
4538
|
-
return
|
|
4555
|
+
return _react["default"].createElement("div", {
|
|
4539
4556
|
style: style,
|
|
4540
4557
|
id: this.playerID,
|
|
4541
4558
|
className: "fb-video",
|
|
@@ -4566,7 +4583,7 @@ exports["default"] = _default;
|
|
|
4566
4583
|
});
|
|
4567
4584
|
|
|
4568
4585
|
unwrapExports(Facebook_1);
|
|
4569
|
-
Facebook_1.Facebook;
|
|
4586
|
+
var Facebook_2 = Facebook_1.Facebook;
|
|
4570
4587
|
|
|
4571
4588
|
var Streamable_1 = createCommonjsModule(function (module, exports) {
|
|
4572
4589
|
|
|
@@ -4575,7 +4592,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4575
4592
|
});
|
|
4576
4593
|
exports["default"] = exports.Streamable = void 0;
|
|
4577
4594
|
|
|
4578
|
-
var _react = _interopRequireWildcard(
|
|
4595
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4579
4596
|
|
|
4580
4597
|
|
|
4581
4598
|
|
|
@@ -4595,16 +4612,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4595
4612
|
|
|
4596
4613
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4597
4614
|
|
|
4598
|
-
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); }; }
|
|
4599
|
-
|
|
4600
4615
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4601
4616
|
|
|
4602
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4603
|
-
|
|
4604
|
-
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; } }
|
|
4605
|
-
|
|
4606
4617
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4607
4618
|
|
|
4619
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4620
|
+
|
|
4608
4621
|
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); }
|
|
4609
4622
|
|
|
4610
4623
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4615,12 +4628,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4615
4628
|
var SDK_GLOBAL = 'playerjs';
|
|
4616
4629
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4617
4630
|
|
|
4618
|
-
var Streamable =
|
|
4631
|
+
var Streamable =
|
|
4632
|
+
/*#__PURE__*/
|
|
4633
|
+
function (_Component) {
|
|
4619
4634
|
_inherits(Streamable, _Component);
|
|
4620
4635
|
|
|
4621
|
-
var _super = _createSuper(Streamable);
|
|
4622
|
-
|
|
4623
4636
|
function Streamable() {
|
|
4637
|
+
var _getPrototypeOf2;
|
|
4638
|
+
|
|
4624
4639
|
var _this;
|
|
4625
4640
|
|
|
4626
4641
|
_classCallCheck(this, Streamable);
|
|
@@ -4629,7 +4644,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4629
4644
|
args[_key] = arguments[_key];
|
|
4630
4645
|
}
|
|
4631
4646
|
|
|
4632
|
-
_this =
|
|
4647
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4633
4648
|
|
|
4634
4649
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4635
4650
|
|
|
@@ -4749,7 +4764,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4749
4764
|
width: '100%',
|
|
4750
4765
|
height: '100%'
|
|
4751
4766
|
};
|
|
4752
|
-
return
|
|
4767
|
+
return _react["default"].createElement("iframe", {
|
|
4753
4768
|
ref: this.ref,
|
|
4754
4769
|
src: "https://streamable.com/o/".concat(id),
|
|
4755
4770
|
frameBorder: "0",
|
|
@@ -4777,7 +4792,7 @@ exports["default"] = _default;
|
|
|
4777
4792
|
});
|
|
4778
4793
|
|
|
4779
4794
|
unwrapExports(Streamable_1);
|
|
4780
|
-
Streamable_1.Streamable;
|
|
4795
|
+
var Streamable_2 = Streamable_1.Streamable;
|
|
4781
4796
|
|
|
4782
4797
|
var Wistia_1 = createCommonjsModule(function (module, exports) {
|
|
4783
4798
|
|
|
@@ -4786,7 +4801,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4786
4801
|
});
|
|
4787
4802
|
exports["default"] = exports.Wistia = void 0;
|
|
4788
4803
|
|
|
4789
|
-
var _react = _interopRequireWildcard(
|
|
4804
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4790
4805
|
|
|
4791
4806
|
|
|
4792
4807
|
|
|
@@ -4810,16 +4825,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4810
4825
|
|
|
4811
4826
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4812
4827
|
|
|
4813
|
-
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); }; }
|
|
4814
|
-
|
|
4815
4828
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4816
4829
|
|
|
4817
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4818
|
-
|
|
4819
|
-
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; } }
|
|
4820
|
-
|
|
4821
4830
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4822
4831
|
|
|
4832
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4833
|
+
|
|
4823
4834
|
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); }
|
|
4824
4835
|
|
|
4825
4836
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4830,48 +4841,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4830
4841
|
var SDK_GLOBAL = 'Wistia';
|
|
4831
4842
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4832
4843
|
|
|
4833
|
-
var Wistia =
|
|
4844
|
+
var Wistia =
|
|
4845
|
+
/*#__PURE__*/
|
|
4846
|
+
function (_Component) {
|
|
4834
4847
|
_inherits(Wistia, _Component);
|
|
4835
4848
|
|
|
4836
|
-
var _super = _createSuper(Wistia);
|
|
4837
|
-
|
|
4838
4849
|
function Wistia() {
|
|
4850
|
+
var _getPrototypeOf2;
|
|
4851
|
+
|
|
4839
4852
|
var _this;
|
|
4840
4853
|
|
|
4841
4854
|
_classCallCheck(this, Wistia);
|
|
4842
4855
|
|
|
4843
|
-
for (var _len = arguments.length,
|
|
4844
|
-
|
|
4856
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4857
|
+
args[_key] = arguments[_key];
|
|
4845
4858
|
}
|
|
4846
4859
|
|
|
4847
|
-
_this =
|
|
4860
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4848
4861
|
|
|
4849
4862
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4850
4863
|
|
|
4851
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4852
|
-
var _this$props;
|
|
4853
|
-
|
|
4854
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4855
|
-
});
|
|
4856
|
-
|
|
4857
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4858
|
-
var _this$props2;
|
|
4859
|
-
|
|
4860
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4861
|
-
});
|
|
4862
|
-
|
|
4863
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
4864
|
-
var _this$props3;
|
|
4865
|
-
|
|
4866
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
4867
|
-
});
|
|
4868
|
-
|
|
4869
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
4870
|
-
var _this$props4;
|
|
4871
|
-
|
|
4872
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
4873
|
-
});
|
|
4874
|
-
|
|
4875
4864
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
4876
4865
|
_this.callPlayer('mute');
|
|
4877
4866
|
});
|
|
@@ -4893,13 +4882,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4893
4882
|
value: function load(url) {
|
|
4894
4883
|
var _this2 = this;
|
|
4895
4884
|
|
|
4896
|
-
var _this$
|
|
4897
|
-
playing = _this$
|
|
4898
|
-
muted = _this$
|
|
4899
|
-
controls = _this$
|
|
4900
|
-
_onReady = _this$
|
|
4901
|
-
|
|
4902
|
-
|
|
4885
|
+
var _this$props = this.props,
|
|
4886
|
+
playing = _this$props.playing,
|
|
4887
|
+
muted = _this$props.muted,
|
|
4888
|
+
controls = _this$props.controls,
|
|
4889
|
+
_onReady = _this$props.onReady,
|
|
4890
|
+
onPlay = _this$props.onPlay,
|
|
4891
|
+
onPause = _this$props.onPause,
|
|
4892
|
+
onSeek = _this$props.onSeek,
|
|
4893
|
+
onEnded = _this$props.onEnded,
|
|
4894
|
+
config = _this$props.config,
|
|
4895
|
+
onError = _this$props.onError;
|
|
4903
4896
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
4904
4897
|
window._wq = window._wq || [];
|
|
4905
4898
|
|
|
@@ -4916,28 +4909,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4916
4909
|
|
|
4917
4910
|
_this2.unbind();
|
|
4918
4911
|
|
|
4919
|
-
_this2.player.bind('play',
|
|
4912
|
+
_this2.player.bind('play', onPlay);
|
|
4920
4913
|
|
|
4921
|
-
_this2.player.bind('pause',
|
|
4914
|
+
_this2.player.bind('pause', onPause);
|
|
4922
4915
|
|
|
4923
|
-
_this2.player.bind('seek',
|
|
4916
|
+
_this2.player.bind('seek', onSeek);
|
|
4924
4917
|
|
|
4925
|
-
_this2.player.bind('end',
|
|
4918
|
+
_this2.player.bind('end', onEnded);
|
|
4926
4919
|
|
|
4927
4920
|
_onReady();
|
|
4928
4921
|
}
|
|
4929
4922
|
});
|
|
4930
4923
|
}, onError);
|
|
4931
4924
|
}
|
|
4932
|
-
}, {
|
|
4933
|
-
key: "unbind",
|
|
4934
|
-
value: function unbind() {
|
|
4935
|
-
this.player.unbind('play', this.onPlay);
|
|
4936
|
-
this.player.unbind('pause', this.onPause);
|
|
4937
|
-
this.player.unbind('seek', this.onSeek);
|
|
4938
|
-
this.player.unbind('end', this.onEnded);
|
|
4939
|
-
} // Proxy methods to prevent listener leaks
|
|
4940
|
-
|
|
4941
4925
|
}, {
|
|
4942
4926
|
key: "play",
|
|
4943
4927
|
value: function play() {
|
|
@@ -4948,6 +4932,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4948
4932
|
value: function pause() {
|
|
4949
4933
|
this.callPlayer('pause');
|
|
4950
4934
|
}
|
|
4935
|
+
}, {
|
|
4936
|
+
key: "unbind",
|
|
4937
|
+
value: function unbind() {
|
|
4938
|
+
var _this$props2 = this.props,
|
|
4939
|
+
onPlay = _this$props2.onPlay,
|
|
4940
|
+
onPause = _this$props2.onPause,
|
|
4941
|
+
onSeek = _this$props2.onSeek,
|
|
4942
|
+
onEnded = _this$props2.onEnded;
|
|
4943
|
+
this.player.unbind('play', onPlay);
|
|
4944
|
+
this.player.unbind('pause', onPause);
|
|
4945
|
+
this.player.unbind('seek', onSeek);
|
|
4946
|
+
this.player.unbind('end', onEnded);
|
|
4947
|
+
}
|
|
4951
4948
|
}, {
|
|
4952
4949
|
key: "stop",
|
|
4953
4950
|
value: function stop() {
|
|
@@ -4993,7 +4990,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4993
4990
|
width: '100%',
|
|
4994
4991
|
height: '100%'
|
|
4995
4992
|
};
|
|
4996
|
-
return
|
|
4993
|
+
return _react["default"].createElement("div", {
|
|
4997
4994
|
key: id,
|
|
4998
4995
|
className: className,
|
|
4999
4996
|
style: style
|
|
@@ -5020,7 +5017,7 @@ exports["default"] = _default;
|
|
|
5020
5017
|
});
|
|
5021
5018
|
|
|
5022
5019
|
unwrapExports(Wistia_1);
|
|
5023
|
-
Wistia_1.Wistia;
|
|
5020
|
+
var Wistia_2 = Wistia_1.Wistia;
|
|
5024
5021
|
|
|
5025
5022
|
var Twitch_1 = createCommonjsModule(function (module, exports) {
|
|
5026
5023
|
|
|
@@ -5029,7 +5026,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5029
5026
|
});
|
|
5030
5027
|
exports["default"] = exports.Twitch = void 0;
|
|
5031
5028
|
|
|
5032
|
-
var _react = _interopRequireWildcard(
|
|
5029
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5033
5030
|
|
|
5034
5031
|
|
|
5035
5032
|
|
|
@@ -5053,16 +5050,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5053
5050
|
|
|
5054
5051
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5055
5052
|
|
|
5056
|
-
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); }; }
|
|
5057
|
-
|
|
5058
5053
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5059
5054
|
|
|
5060
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5061
|
-
|
|
5062
|
-
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; } }
|
|
5063
|
-
|
|
5064
5055
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5065
5056
|
|
|
5057
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5058
|
+
|
|
5066
5059
|
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); }
|
|
5067
5060
|
|
|
5068
5061
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5075,12 +5068,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5075
5068
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5076
5069
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5077
5070
|
|
|
5078
|
-
var Twitch =
|
|
5071
|
+
var Twitch =
|
|
5072
|
+
/*#__PURE__*/
|
|
5073
|
+
function (_Component) {
|
|
5079
5074
|
_inherits(Twitch, _Component);
|
|
5080
5075
|
|
|
5081
|
-
var _super = _createSuper(Twitch);
|
|
5082
|
-
|
|
5083
5076
|
function Twitch() {
|
|
5077
|
+
var _getPrototypeOf2;
|
|
5078
|
+
|
|
5084
5079
|
var _this;
|
|
5085
5080
|
|
|
5086
5081
|
_classCallCheck(this, Twitch);
|
|
@@ -5089,7 +5084,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5089
5084
|
args[_key] = arguments[_key];
|
|
5090
5085
|
}
|
|
5091
5086
|
|
|
5092
|
-
_this =
|
|
5087
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5093
5088
|
|
|
5094
5089
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5095
5090
|
|
|
@@ -5210,7 +5205,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5210
5205
|
width: '100%',
|
|
5211
5206
|
height: '100%'
|
|
5212
5207
|
};
|
|
5213
|
-
return
|
|
5208
|
+
return _react["default"].createElement("div", {
|
|
5214
5209
|
style: style,
|
|
5215
5210
|
id: this.playerID
|
|
5216
5211
|
});
|
|
@@ -5236,7 +5231,7 @@ exports["default"] = _default;
|
|
|
5236
5231
|
});
|
|
5237
5232
|
|
|
5238
5233
|
unwrapExports(Twitch_1);
|
|
5239
|
-
Twitch_1.Twitch;
|
|
5234
|
+
var Twitch_2 = Twitch_1.Twitch;
|
|
5240
5235
|
|
|
5241
5236
|
var DailyMotion_1 = createCommonjsModule(function (module, exports) {
|
|
5242
5237
|
|
|
@@ -5245,7 +5240,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5245
5240
|
});
|
|
5246
5241
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5247
5242
|
|
|
5248
|
-
var _react = _interopRequireWildcard(
|
|
5243
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5249
5244
|
|
|
5250
5245
|
|
|
5251
5246
|
|
|
@@ -5263,15 +5258,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5263
5258
|
|
|
5264
5259
|
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; }
|
|
5265
5260
|
|
|
5266
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5261
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5267
5262
|
|
|
5268
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
5263
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5269
5264
|
|
|
5270
|
-
function
|
|
5271
|
-
|
|
5272
|
-
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; }
|
|
5273
|
-
|
|
5274
|
-
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; }
|
|
5265
|
+
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; }
|
|
5275
5266
|
|
|
5276
5267
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5277
5268
|
|
|
@@ -5281,16 +5272,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5281
5272
|
|
|
5282
5273
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5283
5274
|
|
|
5284
|
-
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); }; }
|
|
5285
|
-
|
|
5286
5275
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5287
5276
|
|
|
5288
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5289
|
-
|
|
5290
|
-
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; } }
|
|
5291
|
-
|
|
5292
5277
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5293
5278
|
|
|
5279
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5280
|
+
|
|
5294
5281
|
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); }
|
|
5295
5282
|
|
|
5296
5283
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5302,12 +5289,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5302
5289
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5303
5290
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5304
5291
|
|
|
5305
|
-
var DailyMotion =
|
|
5292
|
+
var DailyMotion =
|
|
5293
|
+
/*#__PURE__*/
|
|
5294
|
+
function (_Component) {
|
|
5306
5295
|
_inherits(DailyMotion, _Component);
|
|
5307
5296
|
|
|
5308
|
-
var _super = _createSuper(DailyMotion);
|
|
5309
|
-
|
|
5310
5297
|
function DailyMotion() {
|
|
5298
|
+
var _getPrototypeOf2;
|
|
5299
|
+
|
|
5311
5300
|
var _this;
|
|
5312
5301
|
|
|
5313
5302
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5316,7 +5305,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5316
5305
|
args[_key] = arguments[_key];
|
|
5317
5306
|
}
|
|
5318
5307
|
|
|
5319
|
-
_this =
|
|
5308
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5320
5309
|
|
|
5321
5310
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5322
5311
|
|
|
@@ -5445,9 +5434,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5445
5434
|
height: '100%',
|
|
5446
5435
|
display: display
|
|
5447
5436
|
};
|
|
5448
|
-
return
|
|
5437
|
+
return _react["default"].createElement("div", {
|
|
5449
5438
|
style: style
|
|
5450
|
-
},
|
|
5439
|
+
}, _react["default"].createElement("div", {
|
|
5451
5440
|
ref: this.ref
|
|
5452
5441
|
}));
|
|
5453
5442
|
}
|
|
@@ -5472,7 +5461,7 @@ exports["default"] = _default;
|
|
|
5472
5461
|
});
|
|
5473
5462
|
|
|
5474
5463
|
unwrapExports(DailyMotion_1);
|
|
5475
|
-
DailyMotion_1.DailyMotion;
|
|
5464
|
+
var DailyMotion_2 = DailyMotion_1.DailyMotion;
|
|
5476
5465
|
|
|
5477
5466
|
var Mixcloud_1 = createCommonjsModule(function (module, exports) {
|
|
5478
5467
|
|
|
@@ -5481,7 +5470,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5481
5470
|
});
|
|
5482
5471
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5483
5472
|
|
|
5484
|
-
var _react = _interopRequireWildcard(
|
|
5473
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5485
5474
|
|
|
5486
5475
|
|
|
5487
5476
|
|
|
@@ -5505,16 +5494,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5505
5494
|
|
|
5506
5495
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5507
5496
|
|
|
5508
|
-
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); }; }
|
|
5509
|
-
|
|
5510
5497
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5511
5498
|
|
|
5512
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5513
|
-
|
|
5514
|
-
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; } }
|
|
5515
|
-
|
|
5516
5499
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5517
5500
|
|
|
5501
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5502
|
+
|
|
5518
5503
|
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); }
|
|
5519
5504
|
|
|
5520
5505
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5525,12 +5510,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5525
5510
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5526
5511
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5527
5512
|
|
|
5528
|
-
var Mixcloud =
|
|
5513
|
+
var Mixcloud =
|
|
5514
|
+
/*#__PURE__*/
|
|
5515
|
+
function (_Component) {
|
|
5529
5516
|
_inherits(Mixcloud, _Component);
|
|
5530
5517
|
|
|
5531
|
-
var _super = _createSuper(Mixcloud);
|
|
5532
|
-
|
|
5533
5518
|
function Mixcloud() {
|
|
5519
|
+
var _getPrototypeOf2;
|
|
5520
|
+
|
|
5534
5521
|
var _this;
|
|
5535
5522
|
|
|
5536
5523
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5539,7 +5526,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5539
5526
|
args[_key] = arguments[_key];
|
|
5540
5527
|
}
|
|
5541
5528
|
|
|
5542
|
-
_this =
|
|
5529
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5543
5530
|
|
|
5544
5531
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5545
5532
|
|
|
@@ -5642,7 +5629,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5642
5629
|
})); // We have to give the iframe a key here to prevent a
|
|
5643
5630
|
// weird dialog appearing when loading a new track
|
|
5644
5631
|
|
|
5645
|
-
return
|
|
5632
|
+
return _react["default"].createElement("iframe", {
|
|
5646
5633
|
key: id,
|
|
5647
5634
|
ref: this.ref,
|
|
5648
5635
|
style: style,
|
|
@@ -5671,7 +5658,7 @@ exports["default"] = _default;
|
|
|
5671
5658
|
});
|
|
5672
5659
|
|
|
5673
5660
|
unwrapExports(Mixcloud_1);
|
|
5674
|
-
Mixcloud_1.Mixcloud;
|
|
5661
|
+
var Mixcloud_2 = Mixcloud_1.Mixcloud;
|
|
5675
5662
|
|
|
5676
5663
|
var FilePlayer_1 = createCommonjsModule(function (module, exports) {
|
|
5677
5664
|
|
|
@@ -5680,7 +5667,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5680
5667
|
});
|
|
5681
5668
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5682
5669
|
|
|
5683
|
-
var _react = _interopRequireWildcard(
|
|
5670
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5684
5671
|
|
|
5685
5672
|
|
|
5686
5673
|
|
|
@@ -5702,33 +5689,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5702
5689
|
|
|
5703
5690
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5704
5691
|
|
|
5705
|
-
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); }; }
|
|
5706
|
-
|
|
5707
5692
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5708
5693
|
|
|
5709
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5710
|
-
|
|
5711
|
-
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; } }
|
|
5712
|
-
|
|
5713
5694
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5714
5695
|
|
|
5696
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5697
|
+
|
|
5715
5698
|
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); }
|
|
5716
5699
|
|
|
5717
5700
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5718
5701
|
|
|
5719
5702
|
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; }
|
|
5720
5703
|
|
|
5721
|
-
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; } } }; }
|
|
5722
|
-
|
|
5723
|
-
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); }
|
|
5724
|
-
|
|
5725
|
-
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; }
|
|
5726
|
-
|
|
5727
5704
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5728
5705
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5729
5706
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5730
5707
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5731
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
5708
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5732
5709
|
var HLS_GLOBAL = 'Hls';
|
|
5733
5710
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5734
5711
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5737,11 +5714,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5737
5714
|
|
|
5738
5715
|
function canPlay(url) {
|
|
5739
5716
|
if (url instanceof Array) {
|
|
5740
|
-
var
|
|
5741
|
-
|
|
5717
|
+
var _iteratorNormalCompletion = true;
|
|
5718
|
+
var _didIteratorError = false;
|
|
5719
|
+
var _iteratorError = undefined;
|
|
5742
5720
|
|
|
5743
5721
|
try {
|
|
5744
|
-
for (_iterator.
|
|
5722
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5745
5723
|
var item = _step.value;
|
|
5746
5724
|
|
|
5747
5725
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5753,9 +5731,18 @@ function canPlay(url) {
|
|
|
5753
5731
|
}
|
|
5754
5732
|
}
|
|
5755
5733
|
} catch (err) {
|
|
5756
|
-
|
|
5734
|
+
_didIteratorError = true;
|
|
5735
|
+
_iteratorError = err;
|
|
5757
5736
|
} finally {
|
|
5758
|
-
|
|
5737
|
+
try {
|
|
5738
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5739
|
+
_iterator["return"]();
|
|
5740
|
+
}
|
|
5741
|
+
} finally {
|
|
5742
|
+
if (_didIteratorError) {
|
|
5743
|
+
throw _iteratorError;
|
|
5744
|
+
}
|
|
5745
|
+
}
|
|
5759
5746
|
}
|
|
5760
5747
|
|
|
5761
5748
|
return false;
|
|
@@ -5779,12 +5766,14 @@ function canEnablePIP(url) {
|
|
|
5779
5766
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5780
5767
|
}
|
|
5781
5768
|
|
|
5782
|
-
var FilePlayer =
|
|
5769
|
+
var FilePlayer =
|
|
5770
|
+
/*#__PURE__*/
|
|
5771
|
+
function (_Component) {
|
|
5783
5772
|
_inherits(FilePlayer, _Component);
|
|
5784
5773
|
|
|
5785
|
-
var _super = _createSuper(FilePlayer);
|
|
5786
|
-
|
|
5787
5774
|
function FilePlayer() {
|
|
5775
|
+
var _getPrototypeOf2;
|
|
5776
|
+
|
|
5788
5777
|
var _this;
|
|
5789
5778
|
|
|
5790
5779
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5793,7 +5782,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5793
5782
|
_args[_key] = arguments[_key];
|
|
5794
5783
|
}
|
|
5795
5784
|
|
|
5796
|
-
_this =
|
|
5785
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5797
5786
|
|
|
5798
5787
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5799
5788
|
var _this$props;
|
|
@@ -5880,19 +5869,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5880
5869
|
|
|
5881
5870
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
5882
5871
|
if (typeof source === 'string') {
|
|
5883
|
-
return
|
|
5872
|
+
return _react["default"].createElement("source", {
|
|
5884
5873
|
key: index,
|
|
5885
5874
|
src: source
|
|
5886
5875
|
});
|
|
5887
5876
|
}
|
|
5888
5877
|
|
|
5889
|
-
return
|
|
5878
|
+
return _react["default"].createElement("source", _extends({
|
|
5890
5879
|
key: index
|
|
5891
5880
|
}, source));
|
|
5892
5881
|
});
|
|
5893
5882
|
|
|
5894
5883
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
5895
|
-
return
|
|
5884
|
+
return _react["default"].createElement("track", _extends({
|
|
5896
5885
|
key: index
|
|
5897
5886
|
}, track));
|
|
5898
5887
|
});
|
|
@@ -5930,10 +5919,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5930
5919
|
key: "componentWillUnmount",
|
|
5931
5920
|
value: function componentWillUnmount() {
|
|
5932
5921
|
this.removeListeners(this.player);
|
|
5933
|
-
|
|
5934
|
-
if (this.hls) {
|
|
5935
|
-
this.hls.destroy();
|
|
5936
|
-
}
|
|
5937
5922
|
}
|
|
5938
5923
|
}, {
|
|
5939
5924
|
key: "addListeners",
|
|
@@ -6064,6 +6049,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6064
6049
|
value: function stop() {
|
|
6065
6050
|
this.player.removeAttribute('src');
|
|
6066
6051
|
|
|
6052
|
+
if (this.hls) {
|
|
6053
|
+
this.hls.destroy();
|
|
6054
|
+
}
|
|
6055
|
+
|
|
6067
6056
|
if (this.dash) {
|
|
6068
6057
|
this.dash.reset();
|
|
6069
6058
|
}
|
|
@@ -6175,7 +6164,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6175
6164
|
width: width === 'auto' ? width : '100%',
|
|
6176
6165
|
height: height === 'auto' ? height : '100%'
|
|
6177
6166
|
};
|
|
6178
|
-
return
|
|
6167
|
+
return _react["default"].createElement(Element, _extends({
|
|
6179
6168
|
ref: this.ref,
|
|
6180
6169
|
src: this.getSource(url),
|
|
6181
6170
|
style: style,
|
|
@@ -6205,7 +6194,7 @@ exports["default"] = _default;
|
|
|
6205
6194
|
});
|
|
6206
6195
|
|
|
6207
6196
|
unwrapExports(FilePlayer_1);
|
|
6208
|
-
FilePlayer_1.FilePlayer;
|
|
6197
|
+
var FilePlayer_2 = FilePlayer_1.FilePlayer;
|
|
6209
6198
|
|
|
6210
6199
|
var players = createCommonjsModule(function (module, exports) {
|
|
6211
6200
|
|
|
@@ -6247,7 +6236,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6247
6236
|
});
|
|
6248
6237
|
exports["default"] = void 0;
|
|
6249
6238
|
|
|
6250
|
-
var _react = _interopRequireWildcard(
|
|
6239
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6251
6240
|
|
|
6252
6241
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6253
6242
|
|
|
@@ -6265,16 +6254,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6265
6254
|
|
|
6266
6255
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6267
6256
|
|
|
6268
|
-
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); }; }
|
|
6269
|
-
|
|
6270
6257
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6271
6258
|
|
|
6272
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6273
|
-
|
|
6274
|
-
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; } }
|
|
6275
|
-
|
|
6276
6259
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6277
6260
|
|
|
6261
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6262
|
+
|
|
6278
6263
|
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); }
|
|
6279
6264
|
|
|
6280
6265
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6283,12 +6268,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6283
6268
|
|
|
6284
6269
|
var ICON_SIZE = '64px';
|
|
6285
6270
|
|
|
6286
|
-
var Preview =
|
|
6271
|
+
var Preview =
|
|
6272
|
+
/*#__PURE__*/
|
|
6273
|
+
function (_Component) {
|
|
6287
6274
|
_inherits(Preview, _Component);
|
|
6288
6275
|
|
|
6289
|
-
var _super = _createSuper(Preview);
|
|
6290
|
-
|
|
6291
6276
|
function Preview() {
|
|
6277
|
+
var _getPrototypeOf2;
|
|
6278
|
+
|
|
6292
6279
|
var _this;
|
|
6293
6280
|
|
|
6294
6281
|
_classCallCheck(this, Preview);
|
|
@@ -6297,7 +6284,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6297
6284
|
args[_key] = arguments[_key];
|
|
6298
6285
|
}
|
|
6299
6286
|
|
|
6300
|
-
_this =
|
|
6287
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6301
6288
|
|
|
6302
6289
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6303
6290
|
|
|
@@ -6395,15 +6382,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6395
6382
|
}
|
|
6396
6383
|
};
|
|
6397
6384
|
|
|
6398
|
-
var defaultPlayIcon =
|
|
6385
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6399
6386
|
style: styles.shadow,
|
|
6400
6387
|
className: "react-player__shadow"
|
|
6401
|
-
},
|
|
6388
|
+
}, _react["default"].createElement("div", {
|
|
6402
6389
|
style: styles.playIcon,
|
|
6403
6390
|
className: "react-player__play-icon"
|
|
6404
6391
|
}));
|
|
6405
6392
|
|
|
6406
|
-
return
|
|
6393
|
+
return _react["default"].createElement("div", {
|
|
6407
6394
|
style: styles.preview,
|
|
6408
6395
|
className: "react-player__preview",
|
|
6409
6396
|
onClick: onClick
|
|
@@ -6426,7 +6413,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6426
6413
|
});
|
|
6427
6414
|
exports["default"] = renderPreloadPlayers;
|
|
6428
6415
|
|
|
6429
|
-
var _react = _interopRequireDefault(
|
|
6416
|
+
var _react = _interopRequireDefault(React__default);
|
|
6430
6417
|
|
|
6431
6418
|
var _Player = _interopRequireDefault(Player_1);
|
|
6432
6419
|
|
|
@@ -6440,12 +6427,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6440
6427
|
|
|
6441
6428
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6442
6429
|
|
|
6443
|
-
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; } } }; }
|
|
6444
|
-
|
|
6445
|
-
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); }
|
|
6446
|
-
|
|
6447
|
-
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; }
|
|
6448
|
-
|
|
6449
6430
|
var PRELOAD_PLAYERS = [{
|
|
6450
6431
|
Player: YouTube_1.YouTube,
|
|
6451
6432
|
configKey: 'youtube',
|
|
@@ -6466,16 +6447,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6466
6447
|
|
|
6467
6448
|
function renderPreloadPlayers(url, controls, config) {
|
|
6468
6449
|
var players = [];
|
|
6469
|
-
|
|
6470
|
-
var
|
|
6471
|
-
|
|
6450
|
+
var _iteratorNormalCompletion = true;
|
|
6451
|
+
var _didIteratorError = false;
|
|
6452
|
+
var _iteratorError = undefined;
|
|
6472
6453
|
|
|
6473
6454
|
try {
|
|
6474
|
-
for (_iterator.
|
|
6455
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6475
6456
|
var player = _step.value;
|
|
6476
6457
|
|
|
6477
6458
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6478
|
-
players.push(
|
|
6459
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6479
6460
|
key: player.Player.displayName,
|
|
6480
6461
|
activePlayer: player.Player,
|
|
6481
6462
|
url: player.url,
|
|
@@ -6487,9 +6468,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6487
6468
|
}
|
|
6488
6469
|
}
|
|
6489
6470
|
} catch (err) {
|
|
6490
|
-
|
|
6471
|
+
_didIteratorError = true;
|
|
6472
|
+
_iteratorError = err;
|
|
6491
6473
|
} finally {
|
|
6492
|
-
|
|
6474
|
+
try {
|
|
6475
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6476
|
+
_iterator["return"]();
|
|
6477
|
+
}
|
|
6478
|
+
} finally {
|
|
6479
|
+
if (_didIteratorError) {
|
|
6480
|
+
throw _iteratorError;
|
|
6481
|
+
}
|
|
6482
|
+
}
|
|
6493
6483
|
}
|
|
6494
6484
|
|
|
6495
6485
|
return players;
|
|
@@ -6565,7 +6555,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6565
6555
|
});
|
|
6566
6556
|
exports["default"] = void 0;
|
|
6567
6557
|
|
|
6568
|
-
var _react = _interopRequireWildcard(
|
|
6558
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6569
6559
|
|
|
6570
6560
|
|
|
6571
6561
|
|
|
@@ -6613,17 +6603,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6613
6603
|
|
|
6614
6604
|
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); }
|
|
6615
6605
|
|
|
6616
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6617
|
-
|
|
6618
|
-
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."); }
|
|
6619
|
-
|
|
6620
|
-
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); }
|
|
6606
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6621
6607
|
|
|
6622
|
-
function
|
|
6608
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6623
6609
|
|
|
6624
|
-
function
|
|
6610
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6625
6611
|
|
|
6626
|
-
function
|
|
6612
|
+
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; } }
|
|
6627
6613
|
|
|
6628
6614
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6629
6615
|
|
|
@@ -6631,16 +6617,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6631
6617
|
|
|
6632
6618
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6633
6619
|
|
|
6634
|
-
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); }; }
|
|
6635
|
-
|
|
6636
6620
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6637
6621
|
|
|
6638
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6639
|
-
|
|
6640
|
-
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; } }
|
|
6641
|
-
|
|
6642
6622
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6643
6623
|
|
|
6624
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6625
|
+
|
|
6644
6626
|
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); }
|
|
6645
6627
|
|
|
6646
6628
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6650,12 +6632,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6650
6632
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6651
6633
|
var customPlayers = [];
|
|
6652
6634
|
|
|
6653
|
-
var ReactPlayer =
|
|
6635
|
+
var ReactPlayer =
|
|
6636
|
+
/*#__PURE__*/
|
|
6637
|
+
function (_Component) {
|
|
6654
6638
|
_inherits(ReactPlayer, _Component);
|
|
6655
6639
|
|
|
6656
|
-
var _super = _createSuper(ReactPlayer);
|
|
6657
|
-
|
|
6658
6640
|
function ReactPlayer() {
|
|
6641
|
+
var _getPrototypeOf2;
|
|
6642
|
+
|
|
6659
6643
|
var _this;
|
|
6660
6644
|
|
|
6661
6645
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6664,7 +6648,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6664
6648
|
args[_key] = arguments[_key];
|
|
6665
6649
|
}
|
|
6666
6650
|
|
|
6667
|
-
_this =
|
|
6651
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6668
6652
|
|
|
6669
6653
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6670
6654
|
|
|
@@ -6775,7 +6759,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6775
6759
|
key: "renderActivePlayer",
|
|
6776
6760
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6777
6761
|
if (!url) return null;
|
|
6778
|
-
return
|
|
6762
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6779
6763
|
key: activePlayer.displayName,
|
|
6780
6764
|
ref: this.activePlayerRef,
|
|
6781
6765
|
config: this.config,
|
|
@@ -6812,14 +6796,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6812
6796
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6813
6797
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6814
6798
|
|
|
6815
|
-
var preview =
|
|
6799
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6816
6800
|
url: url,
|
|
6817
6801
|
light: light,
|
|
6818
6802
|
playIcon: playIcon,
|
|
6819
6803
|
onClick: this.handleClickPreview
|
|
6820
6804
|
});
|
|
6821
6805
|
|
|
6822
|
-
return
|
|
6806
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6823
6807
|
ref: this.wrapperRef,
|
|
6824
6808
|
style: _objectSpread({}, style, {
|
|
6825
6809
|
width: width,
|
|
@@ -6879,20 +6863,20 @@ var Audio = function Audio(_ref) {
|
|
|
6879
6863
|
var node = _ref.node;
|
|
6880
6864
|
|
|
6881
6865
|
if (node.uploadAudio) {
|
|
6882
|
-
return
|
|
6866
|
+
return React__default.createElement(
|
|
6883
6867
|
'div',
|
|
6884
6868
|
{ className: 'audio d-block text-center mb-3' },
|
|
6885
|
-
|
|
6869
|
+
React__default.createElement(
|
|
6886
6870
|
'audio',
|
|
6887
6871
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
6888
|
-
|
|
6889
|
-
|
|
6872
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
6873
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
6890
6874
|
'Your browser does not support the audio element.'
|
|
6891
6875
|
),
|
|
6892
|
-
node.caption &&
|
|
6876
|
+
node.caption && React__default.createElement(
|
|
6893
6877
|
'p',
|
|
6894
6878
|
{ style: { fontSize: '.9rem' } },
|
|
6895
|
-
|
|
6879
|
+
React__default.createElement(
|
|
6896
6880
|
'em',
|
|
6897
6881
|
null,
|
|
6898
6882
|
node.caption
|
|
@@ -6902,15 +6886,15 @@ var Audio = function Audio(_ref) {
|
|
|
6902
6886
|
} else if (node.audioFilePth) {
|
|
6903
6887
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
6904
6888
|
if (hostname === 'embeds.audioboom.com') {
|
|
6905
|
-
return
|
|
6889
|
+
return React__default.createElement(
|
|
6906
6890
|
'div',
|
|
6907
6891
|
null,
|
|
6908
|
-
|
|
6892
|
+
React__default.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
6909
6893
|
' ',
|
|
6910
|
-
node.caption &&
|
|
6894
|
+
node.caption && React__default.createElement(
|
|
6911
6895
|
'p',
|
|
6912
6896
|
{ style: { fontSize: '.9rem' } },
|
|
6913
|
-
|
|
6897
|
+
React__default.createElement(
|
|
6914
6898
|
'em',
|
|
6915
6899
|
null,
|
|
6916
6900
|
node.caption
|
|
@@ -6918,14 +6902,14 @@ var Audio = function Audio(_ref) {
|
|
|
6918
6902
|
)
|
|
6919
6903
|
);
|
|
6920
6904
|
}
|
|
6921
|
-
return
|
|
6905
|
+
return React__default.createElement(
|
|
6922
6906
|
'div',
|
|
6923
6907
|
{ className: 'audio' },
|
|
6924
|
-
|
|
6925
|
-
node.caption &&
|
|
6908
|
+
React__default.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
6909
|
+
node.caption && React__default.createElement(
|
|
6926
6910
|
'p',
|
|
6927
6911
|
{ style: { fontSize: '.9rem' } },
|
|
6928
|
-
|
|
6912
|
+
React__default.createElement(
|
|
6929
6913
|
'em',
|
|
6930
6914
|
null,
|
|
6931
6915
|
node.caption
|
|
@@ -7026,10 +7010,10 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
7026
7010
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
|
|
7027
7011
|
};
|
|
7028
7012
|
|
|
7029
|
-
return
|
|
7013
|
+
return React__default.createElement(
|
|
7030
7014
|
'div',
|
|
7031
7015
|
null,
|
|
7032
|
-
vidLoaded &&
|
|
7016
|
+
vidLoaded && React__default.createElement(
|
|
7033
7017
|
'video',
|
|
7034
7018
|
{
|
|
7035
7019
|
poster: thumbnail || '',
|
|
@@ -7047,7 +7031,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
7047
7031
|
onPlay: function onPlay(e) {
|
|
7048
7032
|
return handleOnPlay(e);
|
|
7049
7033
|
} },
|
|
7050
|
-
|
|
7034
|
+
React__default.createElement('source', { src: url, type: 'video/mp4' }),
|
|
7051
7035
|
'Your browser does not support the video tag.'
|
|
7052
7036
|
)
|
|
7053
7037
|
);
|
|
@@ -7317,13 +7301,13 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7317
7301
|
}
|
|
7318
7302
|
};
|
|
7319
7303
|
|
|
7320
|
-
return
|
|
7304
|
+
return React__default.createElement(
|
|
7321
7305
|
'div',
|
|
7322
7306
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7323
|
-
|
|
7307
|
+
React__default.createElement(
|
|
7324
7308
|
'div',
|
|
7325
7309
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7326
|
-
vidUrl && vidType == 'youtube' &&
|
|
7310
|
+
vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, {
|
|
7327
7311
|
className: 'fluid-iframe',
|
|
7328
7312
|
videoId: getYoutubeId(vidUrl),
|
|
7329
7313
|
opts: opts,
|
|
@@ -7334,10 +7318,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7334
7318
|
return handleOnEnd(e);
|
|
7335
7319
|
}
|
|
7336
7320
|
}),
|
|
7337
|
-
vidUrl && vidType == 'mp4' &&
|
|
7338
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7339
|
-
|
|
7340
|
-
series &&
|
|
7321
|
+
vidUrl && vidType == 'mp4' && React__default.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7322
|
+
vidUrl && vidType == 'brightcove' && React__default.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7323
|
+
React__default.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7324
|
+
series && React__default.createElement(
|
|
7341
7325
|
'div',
|
|
7342
7326
|
{
|
|
7343
7327
|
className: 'vid-series',
|
|
@@ -7347,10 +7331,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7347
7331
|
maxHeight: '100%',
|
|
7348
7332
|
paddingBottom: '0'
|
|
7349
7333
|
} },
|
|
7350
|
-
|
|
7334
|
+
React__default.createElement(
|
|
7351
7335
|
'p',
|
|
7352
7336
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7353
|
-
|
|
7337
|
+
React__default.createElement(
|
|
7354
7338
|
'b',
|
|
7355
7339
|
{ style: { fontSize: '1.25em' } },
|
|
7356
7340
|
'Now Playing:'
|
|
@@ -7358,36 +7342,36 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7358
7342
|
' ',
|
|
7359
7343
|
seriesData[series ? series - 1 : 0].title
|
|
7360
7344
|
),
|
|
7361
|
-
vidUrl &&
|
|
7345
|
+
vidUrl && React__default.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7362
7346
|
)
|
|
7363
7347
|
),
|
|
7364
|
-
|
|
7365
|
-
|
|
7348
|
+
React__default.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7349
|
+
React__default.createElement(
|
|
7366
7350
|
'div',
|
|
7367
7351
|
{ className: 'mt-2 mb-5' },
|
|
7368
|
-
series &&
|
|
7352
|
+
series && React__default.createElement(
|
|
7369
7353
|
'h3',
|
|
7370
7354
|
null,
|
|
7371
7355
|
'Episode ',
|
|
7372
7356
|
series
|
|
7373
7357
|
),
|
|
7374
|
-
Videos[series - 1] &&
|
|
7358
|
+
Videos[series - 1] && React__default.createElement(
|
|
7375
7359
|
'h2',
|
|
7376
7360
|
{ className: 'mb-3' },
|
|
7377
7361
|
Videos[series - 1].title
|
|
7378
7362
|
),
|
|
7379
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7363
|
+
Videos[series - 1] && Videos[series - 1].intro && React__default.createElement(
|
|
7380
7364
|
'p',
|
|
7381
7365
|
{ className: 'mb-3' },
|
|
7382
|
-
|
|
7366
|
+
React__default.createElement(
|
|
7383
7367
|
'em',
|
|
7384
7368
|
null,
|
|
7385
7369
|
Videos[series - 1].intro
|
|
7386
7370
|
)
|
|
7387
7371
|
),
|
|
7388
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
7372
|
+
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()))
|
|
7389
7373
|
),
|
|
7390
|
-
|
|
7374
|
+
React__default.createElement(
|
|
7391
7375
|
'style',
|
|
7392
7376
|
{ jsx: 'true' },
|
|
7393
7377
|
'\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\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7396,13 +7380,13 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7396
7380
|
};
|
|
7397
7381
|
|
|
7398
7382
|
var Poll = function Poll(_ref) {
|
|
7399
|
-
var node = _ref.node
|
|
7400
|
-
_ref.client
|
|
7401
|
-
_ref.pageview
|
|
7402
|
-
_ref.videoAccountIDs
|
|
7403
|
-
|
|
7404
|
-
_ref.showVotes
|
|
7405
|
-
|
|
7383
|
+
var node = _ref.node,
|
|
7384
|
+
client = _ref.client,
|
|
7385
|
+
pageview = _ref.pageview,
|
|
7386
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7387
|
+
onVote = _ref.onVote,
|
|
7388
|
+
_ref$showVotes = _ref.showVotes,
|
|
7389
|
+
getSerializers = _ref.getSerializers;
|
|
7406
7390
|
|
|
7407
7391
|
var _useState = useState(null),
|
|
7408
7392
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7440,54 +7424,54 @@ var Poll = function Poll(_ref) {
|
|
|
7440
7424
|
return acc;
|
|
7441
7425
|
}
|
|
7442
7426
|
}, 0);
|
|
7443
|
-
return
|
|
7444
|
-
|
|
7427
|
+
return React__default.createElement(
|
|
7428
|
+
React__default.Fragment,
|
|
7445
7429
|
null,
|
|
7446
|
-
question &&
|
|
7430
|
+
question && React__default.createElement(
|
|
7447
7431
|
'p',
|
|
7448
7432
|
{ className: 'font-weight-bold' },
|
|
7449
7433
|
question
|
|
7450
7434
|
),
|
|
7451
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7435
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7452
7436
|
'form',
|
|
7453
7437
|
{ onSubmit: function onSubmit(e) {
|
|
7454
7438
|
return onSubmitPoll(e);
|
|
7455
7439
|
} },
|
|
7456
7440
|
choices && choices.map(function (choice) {
|
|
7457
|
-
return
|
|
7441
|
+
return React__default.createElement(
|
|
7458
7442
|
'div',
|
|
7459
7443
|
{ key: choice._key },
|
|
7460
|
-
|
|
7444
|
+
React__default.createElement(
|
|
7461
7445
|
'label',
|
|
7462
7446
|
{ className: 'pl-2' },
|
|
7463
|
-
|
|
7447
|
+
React__default.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7464
7448
|
return setSelectedChoice(e.target.value);
|
|
7465
7449
|
} }),
|
|
7466
7450
|
' ' + choice.choiceText
|
|
7467
7451
|
)
|
|
7468
7452
|
);
|
|
7469
7453
|
}),
|
|
7470
|
-
|
|
7454
|
+
React__default.createElement(
|
|
7471
7455
|
Button,
|
|
7472
7456
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7473
7457
|
'Vote'
|
|
7474
7458
|
)
|
|
7475
7459
|
),
|
|
7476
|
-
|
|
7460
|
+
React__default.createElement(
|
|
7477
7461
|
'div',
|
|
7478
7462
|
{ className: 'progress-container' },
|
|
7479
7463
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7480
7464
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7481
|
-
return
|
|
7465
|
+
return React__default.createElement(
|
|
7482
7466
|
'div',
|
|
7483
7467
|
{ key: choice._key, className: 'mb-3' },
|
|
7484
|
-
|
|
7468
|
+
React__default.createElement(
|
|
7485
7469
|
'span',
|
|
7486
7470
|
null,
|
|
7487
7471
|
choice.choiceText
|
|
7488
7472
|
),
|
|
7489
|
-
|
|
7490
|
-
|
|
7473
|
+
React__default.createElement(ProgressBar, { now: percentage }),
|
|
7474
|
+
React__default.createElement(
|
|
7491
7475
|
'span',
|
|
7492
7476
|
{ className: 'float-right' },
|
|
7493
7477
|
percentage,
|
|
@@ -7498,14 +7482,14 @@ var Poll = function Poll(_ref) {
|
|
|
7498
7482
|
);
|
|
7499
7483
|
})
|
|
7500
7484
|
),
|
|
7501
|
-
showAnswer &&
|
|
7485
|
+
showAnswer && React__default.createElement(
|
|
7502
7486
|
'h4',
|
|
7503
7487
|
{ className: 'text-center small p-3' },
|
|
7504
7488
|
'Total Votes: ',
|
|
7505
7489
|
choicesTotalCount
|
|
7506
7490
|
),
|
|
7507
|
-
showAnswer && response &&
|
|
7508
|
-
|
|
7491
|
+
showAnswer && response && React__default.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7492
|
+
React__default.createElement(
|
|
7509
7493
|
'style',
|
|
7510
7494
|
{ jsx: 'true' },
|
|
7511
7495
|
'\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7513,7 +7497,7 @@ var Poll = function Poll(_ref) {
|
|
|
7513
7497
|
);
|
|
7514
7498
|
};
|
|
7515
7499
|
|
|
7516
|
-
var numberOfPaginations =
|
|
7500
|
+
var numberOfPaginations = main_35 ? 4 : 10;
|
|
7517
7501
|
|
|
7518
7502
|
var Quiz = function Quiz(_ref) {
|
|
7519
7503
|
var quizzes = _ref.quizzes,
|
|
@@ -7624,20 +7608,20 @@ var Quiz = function Quiz(_ref) {
|
|
|
7624
7608
|
};
|
|
7625
7609
|
|
|
7626
7610
|
var renderPagination = function renderPagination() {
|
|
7627
|
-
return
|
|
7611
|
+
return React__default.createElement(
|
|
7628
7612
|
Pagination,
|
|
7629
|
-
{ className: 'p-0 m-0', size:
|
|
7630
|
-
|
|
7613
|
+
{ className: 'p-0 m-0', size: main_35 && 'sm' },
|
|
7614
|
+
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7631
7615
|
return changePage('first');
|
|
7632
7616
|
}, disabled: currentPage === 1 }),
|
|
7633
|
-
|
|
7617
|
+
React__default.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7634
7618
|
return changePage('prev');
|
|
7635
7619
|
}, disabled: currentPage === 1 }),
|
|
7636
|
-
|
|
7620
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7637
7621
|
return renderNewPages('prev');
|
|
7638
7622
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7639
7623
|
pages.map(function (page) {
|
|
7640
|
-
return
|
|
7624
|
+
return React__default.createElement(
|
|
7641
7625
|
Pagination.Item,
|
|
7642
7626
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7643
7627
|
return changePage(page);
|
|
@@ -7645,41 +7629,41 @@ var Quiz = function Quiz(_ref) {
|
|
|
7645
7629
|
page
|
|
7646
7630
|
);
|
|
7647
7631
|
}),
|
|
7648
|
-
|
|
7632
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7649
7633
|
return renderNewPages('next');
|
|
7650
7634
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7651
|
-
|
|
7635
|
+
React__default.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7652
7636
|
return changePage('next');
|
|
7653
7637
|
}, disabled: currentPage === pageCount }),
|
|
7654
|
-
|
|
7638
|
+
React__default.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7655
7639
|
return changePage('last');
|
|
7656
7640
|
}, disabled: currentPage === pageCount })
|
|
7657
7641
|
);
|
|
7658
7642
|
};
|
|
7659
7643
|
|
|
7660
|
-
return
|
|
7661
|
-
|
|
7644
|
+
return React__default.createElement(
|
|
7645
|
+
React__default.Fragment,
|
|
7662
7646
|
null,
|
|
7663
|
-
quizzes[currentPage - 1] &&
|
|
7664
|
-
!showAnswer &&
|
|
7647
|
+
quizzes[currentPage - 1] && React__default.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
7648
|
+
!showAnswer && React__default.createElement(
|
|
7665
7649
|
Button$1,
|
|
7666
7650
|
{ onClick: function onClick() {
|
|
7667
7651
|
return setShowAnswer(true);
|
|
7668
7652
|
}, variant: 'info', block: true },
|
|
7669
7653
|
'Please click here for answer'
|
|
7670
7654
|
),
|
|
7671
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
7672
|
-
|
|
7655
|
+
quizzes[currentPage - 1] && showAnswer && React__default.createElement(
|
|
7656
|
+
React__default.Fragment,
|
|
7673
7657
|
null,
|
|
7674
|
-
|
|
7658
|
+
React__default.createElement(
|
|
7675
7659
|
'h4',
|
|
7676
7660
|
null,
|
|
7677
7661
|
'Answer:'
|
|
7678
7662
|
),
|
|
7679
|
-
|
|
7663
|
+
React__default.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
7680
7664
|
),
|
|
7681
|
-
|
|
7682
|
-
pageCount > 1 &&
|
|
7665
|
+
React__default.createElement('br', null),
|
|
7666
|
+
pageCount > 1 && React__default.createElement(
|
|
7683
7667
|
'div',
|
|
7684
7668
|
{ className: 'd-flex justify-content-center' },
|
|
7685
7669
|
renderPagination()
|
|
@@ -7690,10 +7674,10 @@ var Quiz = function Quiz(_ref) {
|
|
|
7690
7674
|
var Leads = function Leads(_ref) {
|
|
7691
7675
|
var url = _ref.url;
|
|
7692
7676
|
|
|
7693
|
-
return
|
|
7677
|
+
return React__default.createElement(
|
|
7694
7678
|
'div',
|
|
7695
7679
|
{ className: 'd-block text-center mb-3' },
|
|
7696
|
-
url &&
|
|
7680
|
+
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
7697
7681
|
);
|
|
7698
7682
|
};
|
|
7699
7683
|
|
|
@@ -7714,8 +7698,8 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
7714
7698
|
|
|
7715
7699
|
var _useState = useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
|
|
7716
7700
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7717
|
-
carouselIndex = _useState2[0]
|
|
7718
|
-
_useState2[1];
|
|
7701
|
+
carouselIndex = _useState2[0],
|
|
7702
|
+
setCarouselIndex = _useState2[1];
|
|
7719
7703
|
|
|
7720
7704
|
// useEffect(() => {
|
|
7721
7705
|
// let itemArr = router.asPath.split('?page=')
|
|
@@ -7741,42 +7725,42 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
7741
7725
|
}
|
|
7742
7726
|
};
|
|
7743
7727
|
|
|
7744
|
-
return
|
|
7728
|
+
return React__default.createElement(
|
|
7745
7729
|
'div',
|
|
7746
7730
|
{ ref: carouselRef, className: 'mt-3 mb-4' },
|
|
7747
|
-
|
|
7731
|
+
React__default.createElement(
|
|
7748
7732
|
Carousel,
|
|
7749
7733
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
7750
7734
|
slides && slides.map(function (slide) {
|
|
7751
7735
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
7752
|
-
return
|
|
7736
|
+
return React__default.createElement(
|
|
7753
7737
|
Carousel.Item,
|
|
7754
7738
|
{ key: slide._key },
|
|
7755
|
-
|
|
7739
|
+
React__default.createElement(
|
|
7756
7740
|
'a',
|
|
7757
7741
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
7758
|
-
|
|
7742
|
+
React__default.createElement(
|
|
7759
7743
|
LazyLoad,
|
|
7760
7744
|
null,
|
|
7761
|
-
|
|
7745
|
+
React__default.createElement('img', { src: urlFor$1(slide.slideshowImage, client).url(), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
7762
7746
|
)
|
|
7763
7747
|
),
|
|
7764
|
-
|
|
7748
|
+
React__default.createElement(
|
|
7765
7749
|
'div',
|
|
7766
7750
|
{ className: 'p-2' },
|
|
7767
|
-
slide.slideshowImage.caption &&
|
|
7751
|
+
slide.slideshowImage.caption && React__default.createElement(
|
|
7768
7752
|
'h3',
|
|
7769
7753
|
{ style: { padding: '0px' } },
|
|
7770
7754
|
slide.slideshowImage.caption
|
|
7771
7755
|
),
|
|
7772
|
-
slide.description &&
|
|
7756
|
+
slide.description && React__default.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
7773
7757
|
)
|
|
7774
7758
|
);
|
|
7775
7759
|
}
|
|
7776
7760
|
return null;
|
|
7777
7761
|
})
|
|
7778
7762
|
),
|
|
7779
|
-
|
|
7763
|
+
React__default.createElement(
|
|
7780
7764
|
'style',
|
|
7781
7765
|
{ jsx: 'true' },
|
|
7782
7766
|
'\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 '
|
|
@@ -7795,10 +7779,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
7795
7779
|
sizes = _props$node.sizes,
|
|
7796
7780
|
sizeMapping = _props$node.sizeMapping;
|
|
7797
7781
|
|
|
7798
|
-
return
|
|
7782
|
+
return React__default.createElement(
|
|
7799
7783
|
'div',
|
|
7800
7784
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
7801
|
-
|
|
7785
|
+
React__default.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
7802
7786
|
);
|
|
7803
7787
|
};
|
|
7804
7788
|
|
|
@@ -7819,15 +7803,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
7819
7803
|
|
|
7820
7804
|
var htmlContent = '\n <script needsegmentsupport="true" type="text/javascript" src="https://mjhlifesciences.formstack.com/forms/js.php/' + FormID + '"></script>\n <noscript><a href="https://mjhlifesciences.formstack.com/forms/' + FormID + '" title="Online Form">' + Caption + '</a></noscript>\n ';
|
|
7821
7805
|
|
|
7822
|
-
return
|
|
7806
|
+
return React__default.createElement(
|
|
7823
7807
|
'div',
|
|
7824
7808
|
{ ref: formstackRef },
|
|
7825
|
-
|
|
7809
|
+
React__default.createElement(
|
|
7826
7810
|
'h4',
|
|
7827
7811
|
{ className: 'formstack-caption' },
|
|
7828
7812
|
Caption
|
|
7829
7813
|
),
|
|
7830
|
-
|
|
7814
|
+
React__default.createElement('div', { dangerouslySetInnerHTML: createMarkup(htmlContent) })
|
|
7831
7815
|
);
|
|
7832
7816
|
};
|
|
7833
7817
|
|
|
@@ -7847,29 +7831,29 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
7847
7831
|
}
|
|
7848
7832
|
});
|
|
7849
7833
|
if (medias && medias.length > 0) {
|
|
7850
|
-
return
|
|
7834
|
+
return React__default.createElement(
|
|
7851
7835
|
'div',
|
|
7852
7836
|
{ className: 'multi-media-container' },
|
|
7853
|
-
|
|
7837
|
+
React__default.createElement(
|
|
7854
7838
|
Row,
|
|
7855
7839
|
{ noGutters: true },
|
|
7856
7840
|
medias.map(function (media) {
|
|
7857
|
-
return
|
|
7841
|
+
return React__default.createElement(
|
|
7858
7842
|
Col,
|
|
7859
7843
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
7860
|
-
|
|
7844
|
+
React__default.createElement(
|
|
7861
7845
|
'a',
|
|
7862
|
-
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
7846
|
+
_extends$1({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
7863
7847
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
7864
|
-
|
|
7848
|
+
React__default.createElement(
|
|
7865
7849
|
'div',
|
|
7866
7850
|
{ className: 'multi-media-image-container' },
|
|
7867
|
-
imageBox &&
|
|
7851
|
+
imageBox && React__default.createElement(
|
|
7868
7852
|
LazyLoad,
|
|
7869
7853
|
{ once: true },
|
|
7870
|
-
|
|
7854
|
+
React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor$2(media.poster, client).url(), alt: media.alt })
|
|
7871
7855
|
),
|
|
7872
|
-
media.caption &&
|
|
7856
|
+
media.caption && React__default.createElement(
|
|
7873
7857
|
'span',
|
|
7874
7858
|
{ className: 'multi-media-caption' },
|
|
7875
7859
|
media.caption
|
|
@@ -7879,7 +7863,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
7879
7863
|
);
|
|
7880
7864
|
})
|
|
7881
7865
|
),
|
|
7882
|
-
|
|
7866
|
+
React__default.createElement(
|
|
7883
7867
|
'style',
|
|
7884
7868
|
{ jsx: 'true' },
|
|
7885
7869
|
'\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 '
|
|
@@ -7895,34 +7879,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7895
7879
|
var profileImage = arguments[6];
|
|
7896
7880
|
|
|
7897
7881
|
if (authorName && authorURL) {
|
|
7898
|
-
return
|
|
7882
|
+
return React__default.createElement(
|
|
7899
7883
|
'span',
|
|
7900
7884
|
null,
|
|
7901
|
-
|
|
7885
|
+
React__default.createElement(
|
|
7902
7886
|
'a',
|
|
7903
7887
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7904
7888
|
authorName
|
|
7905
7889
|
),
|
|
7906
|
-
|
|
7890
|
+
React__default.createElement(
|
|
7907
7891
|
Card,
|
|
7908
7892
|
{ className: 'author-details-card-' + index },
|
|
7909
|
-
|
|
7893
|
+
React__default.createElement(
|
|
7910
7894
|
Row$1,
|
|
7911
7895
|
null,
|
|
7912
|
-
profileImage &&
|
|
7896
|
+
profileImage && React__default.createElement(
|
|
7913
7897
|
Col$1,
|
|
7914
7898
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7915
|
-
|
|
7899
|
+
React__default.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7916
7900
|
),
|
|
7917
|
-
|
|
7901
|
+
React__default.createElement(
|
|
7918
7902
|
Col$1,
|
|
7919
7903
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7920
|
-
|
|
7904
|
+
React__default.createElement(
|
|
7921
7905
|
'h5',
|
|
7922
7906
|
null,
|
|
7923
7907
|
authorName
|
|
7924
7908
|
),
|
|
7925
|
-
|
|
7909
|
+
React__default.createElement(
|
|
7926
7910
|
'p',
|
|
7927
7911
|
null,
|
|
7928
7912
|
biography
|
|
@@ -7930,7 +7914,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7930
7914
|
)
|
|
7931
7915
|
)
|
|
7932
7916
|
),
|
|
7933
|
-
|
|
7917
|
+
React__default.createElement(
|
|
7934
7918
|
'style',
|
|
7935
7919
|
{ jsx: 'true' },
|
|
7936
7920
|
'\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 '
|
|
@@ -7938,7 +7922,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7938
7922
|
length !== index + 1 && ' , '
|
|
7939
7923
|
);
|
|
7940
7924
|
} else if (authorName) {
|
|
7941
|
-
return
|
|
7925
|
+
return React__default.createElement(
|
|
7942
7926
|
'span',
|
|
7943
7927
|
{ key: index },
|
|
7944
7928
|
authorName,
|
|
@@ -7984,7 +7968,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
7984
7968
|
}
|
|
7985
7969
|
};
|
|
7986
7970
|
|
|
7987
|
-
_this.wraperRef =
|
|
7971
|
+
_this.wraperRef = React__default.createRef();
|
|
7988
7972
|
_this.visible = false;
|
|
7989
7973
|
return _this;
|
|
7990
7974
|
}
|
|
@@ -8012,7 +7996,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8012
7996
|
_props$id = _props.id,
|
|
8013
7997
|
id = _props$id === undefined ? '' : _props$id;
|
|
8014
7998
|
|
|
8015
|
-
return
|
|
7999
|
+
return React__default.createElement(
|
|
8016
8000
|
'div',
|
|
8017
8001
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8018
8002
|
this.props.children
|
|
@@ -8021,7 +8005,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8021
8005
|
}]);
|
|
8022
8006
|
|
|
8023
8007
|
return InscreenSensor;
|
|
8024
|
-
}(
|
|
8008
|
+
}(React__default.Component);
|
|
8025
8009
|
|
|
8026
8010
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8027
8011
|
var nodes = _ref.nodes,
|
|
@@ -8134,33 +8118,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8134
8118
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8135
8119
|
var showReading = show ? 'showReading' : '';
|
|
8136
8120
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8137
|
-
return
|
|
8121
|
+
return React__default.createElement(
|
|
8138
8122
|
'div',
|
|
8139
8123
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8140
|
-
|
|
8124
|
+
React__default.createElement(
|
|
8141
8125
|
'a',
|
|
8142
8126
|
{ onClick: function onClick(e) {
|
|
8143
8127
|
return articleCardClickHandler(e);
|
|
8144
8128
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8145
|
-
|
|
8129
|
+
React__default.createElement(
|
|
8146
8130
|
'div',
|
|
8147
8131
|
{ className: 'prevNext-thumbnail' },
|
|
8148
|
-
|
|
8149
|
-
|
|
8132
|
+
React__default.createElement('img', { src: urlFor(article.thumbnail.asset).url() }),
|
|
8133
|
+
React__default.createElement(
|
|
8150
8134
|
'div',
|
|
8151
8135
|
{ className: 'prevNext-reading ' + showReading },
|
|
8152
8136
|
articleLabel
|
|
8153
8137
|
)
|
|
8154
8138
|
),
|
|
8155
|
-
|
|
8139
|
+
React__default.createElement(
|
|
8156
8140
|
'div',
|
|
8157
8141
|
{ className: 'prevNext-summary' },
|
|
8158
|
-
|
|
8142
|
+
React__default.createElement(
|
|
8159
8143
|
'div',
|
|
8160
8144
|
{ className: 'prevNext-publishDate' },
|
|
8161
8145
|
moment(article.published).format('LL')
|
|
8162
8146
|
),
|
|
8163
|
-
|
|
8147
|
+
React__default.createElement(
|
|
8164
8148
|
'h2',
|
|
8165
8149
|
{ className: 'prevNext-title' },
|
|
8166
8150
|
article.title
|
|
@@ -8209,7 +8193,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8209
8193
|
|
|
8210
8194
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8211
8195
|
if (biography) {
|
|
8212
|
-
return
|
|
8196
|
+
return React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8213
8197
|
}
|
|
8214
8198
|
};
|
|
8215
8199
|
|
|
@@ -8295,7 +8279,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8295
8279
|
//console.log('useLayoutEffect')
|
|
8296
8280
|
if (!firstLoad) {
|
|
8297
8281
|
setUpArrowClicked(false);
|
|
8298
|
-
if (
|
|
8282
|
+
if (main_36) {
|
|
8299
8283
|
grabLoadedAds();
|
|
8300
8284
|
} else {
|
|
8301
8285
|
scrollToArticle();
|
|
@@ -8319,7 +8303,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8319
8303
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8320
8304
|
if (pageview) pageview(path);
|
|
8321
8305
|
|
|
8322
|
-
if (!
|
|
8306
|
+
if (!main_36) {
|
|
8323
8307
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8324
8308
|
if (window.googletag && googletag.pubadsReady) {
|
|
8325
8309
|
lib_3.refresh();
|
|
@@ -8327,7 +8311,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8327
8311
|
});
|
|
8328
8312
|
}
|
|
8329
8313
|
//Refresh leaderboard ad on mobile
|
|
8330
|
-
if (
|
|
8314
|
+
if (main_36) {
|
|
8331
8315
|
var leaderboardSlotId = '';
|
|
8332
8316
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8333
8317
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8367,38 +8351,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8367
8351
|
setSensorVisible(false);
|
|
8368
8352
|
};
|
|
8369
8353
|
|
|
8370
|
-
return
|
|
8371
|
-
|
|
8354
|
+
return React__default.createElement(
|
|
8355
|
+
React__default.Fragment,
|
|
8372
8356
|
null,
|
|
8373
|
-
|
|
8357
|
+
React__default.createElement(
|
|
8374
8358
|
'div',
|
|
8375
8359
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8376
|
-
|
|
8360
|
+
React__default.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8377
8361
|
return handleArrowClick();
|
|
8378
8362
|
} })
|
|
8379
8363
|
),
|
|
8380
|
-
|
|
8381
|
-
|
|
8364
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8365
|
+
React__default.createElement(
|
|
8382
8366
|
'div',
|
|
8383
8367
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8384
|
-
|
|
8368
|
+
React__default.createElement(
|
|
8385
8369
|
'h5',
|
|
8386
8370
|
{ className: 'objective-title' },
|
|
8387
8371
|
nodes.seriesTitle
|
|
8388
8372
|
),
|
|
8389
|
-
|
|
8373
|
+
React__default.createElement(
|
|
8390
8374
|
'div',
|
|
8391
8375
|
{ className: 'prevNextWrapper' },
|
|
8392
8376
|
PrevNextCards(false, -1)
|
|
8393
8377
|
)
|
|
8394
8378
|
),
|
|
8395
|
-
|
|
8396
|
-
|
|
8379
|
+
React__default.createElement('hr', { className: 'article-seperater' }),
|
|
8380
|
+
React__default.createElement(
|
|
8397
8381
|
'div',
|
|
8398
8382
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8399
|
-
|
|
8383
|
+
main_36 && Ads.map(function (ad, index) {
|
|
8400
8384
|
if (index === 0) {
|
|
8401
|
-
return
|
|
8385
|
+
return React__default.createElement(
|
|
8402
8386
|
'div',
|
|
8403
8387
|
{
|
|
8404
8388
|
key: 'addid-1',
|
|
@@ -8418,14 +8402,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8418
8402
|
}
|
|
8419
8403
|
})
|
|
8420
8404
|
),
|
|
8421
|
-
|
|
8405
|
+
React__default.createElement(
|
|
8422
8406
|
'div',
|
|
8423
8407
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8424
8408
|
Articles.map(function (article, index) {
|
|
8425
|
-
return
|
|
8409
|
+
return React__default.createElement(
|
|
8426
8410
|
'div',
|
|
8427
8411
|
{ key: article.title },
|
|
8428
|
-
|
|
8412
|
+
React__default.createElement(
|
|
8429
8413
|
InscreenSensor,
|
|
8430
8414
|
{
|
|
8431
8415
|
visible: sensorVisible,
|
|
@@ -8443,84 +8427,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8443
8427
|
}
|
|
8444
8428
|
}
|
|
8445
8429
|
} },
|
|
8446
|
-
|
|
8430
|
+
React__default.createElement(
|
|
8447
8431
|
Head,
|
|
8448
8432
|
null,
|
|
8449
|
-
currentTitle !== null &&
|
|
8433
|
+
currentTitle !== null && React__default.createElement(
|
|
8450
8434
|
'title',
|
|
8451
8435
|
{ key: 'title' },
|
|
8452
8436
|
currentTitle
|
|
8453
8437
|
),
|
|
8454
|
-
currentSummary !== null &&
|
|
8455
|
-
currentURL !== null &&
|
|
8456
|
-
currentTitle !== null &&
|
|
8457
|
-
currentThumbnail !== null &&
|
|
8458
|
-
currentSummary !== null &&
|
|
8459
|
-
currentTitle !== null &&
|
|
8460
|
-
currentThumbnail !== null &&
|
|
8461
|
-
currentSummary !== null &&
|
|
8438
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8439
|
+
currentURL !== null && React__default.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8440
|
+
currentTitle !== null && React__default.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8441
|
+
currentThumbnail !== null && React__default.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8442
|
+
currentSummary !== null && React__default.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8443
|
+
currentTitle !== null && React__default.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8444
|
+
currentThumbnail !== null && React__default.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8445
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8462
8446
|
),
|
|
8463
|
-
|
|
8447
|
+
React__default.createElement(
|
|
8464
8448
|
'article',
|
|
8465
8449
|
{ className: 'article-wrapper' },
|
|
8466
|
-
|
|
8450
|
+
React__default.createElement(
|
|
8467
8451
|
'div',
|
|
8468
8452
|
{ className: 'article-publishDate' },
|
|
8469
8453
|
moment(article.published).format('LL')
|
|
8470
8454
|
),
|
|
8471
|
-
|
|
8455
|
+
React__default.createElement(
|
|
8472
8456
|
'div',
|
|
8473
8457
|
{ className: 'author-details-wrapper' },
|
|
8474
8458
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8475
|
-
return
|
|
8459
|
+
return React__default.createElement(
|
|
8476
8460
|
'span',
|
|
8477
8461
|
{ key: index },
|
|
8478
8462
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor(client, authorDetail.profileImage).url())
|
|
8479
8463
|
);
|
|
8480
8464
|
})
|
|
8481
8465
|
),
|
|
8482
|
-
|
|
8466
|
+
React__default.createElement(
|
|
8483
8467
|
'h2',
|
|
8484
8468
|
{ className: 'article-title' },
|
|
8485
8469
|
article.title
|
|
8486
8470
|
),
|
|
8487
|
-
|
|
8471
|
+
React__default.createElement(
|
|
8488
8472
|
'div',
|
|
8489
8473
|
{ className: 'mt-2 mb-2' },
|
|
8490
|
-
|
|
8474
|
+
React__default.createElement(BlockContent, _extends$1({
|
|
8491
8475
|
serializers: getSerializers,
|
|
8492
8476
|
videoAccountIDs: accountIDs,
|
|
8493
8477
|
blocks: article.text,
|
|
8494
8478
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8495
8479
|
}, client.config())),
|
|
8496
|
-
|
|
8480
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' })
|
|
8497
8481
|
),
|
|
8498
|
-
Articles.length > 1 &&
|
|
8499
|
-
|
|
8482
|
+
Articles.length > 1 && React__default.createElement(
|
|
8483
|
+
React__default.Fragment,
|
|
8500
8484
|
null,
|
|
8501
|
-
|
|
8485
|
+
React__default.createElement(
|
|
8502
8486
|
'div',
|
|
8503
8487
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8504
|
-
|
|
8488
|
+
React__default.createElement(
|
|
8505
8489
|
'h5',
|
|
8506
8490
|
{ className: 'objective-title' },
|
|
8507
8491
|
nodes.seriesTitle
|
|
8508
8492
|
),
|
|
8509
|
-
|
|
8493
|
+
React__default.createElement(
|
|
8510
8494
|
'div',
|
|
8511
8495
|
{ className: 'prevNextWrapper' },
|
|
8512
8496
|
PrevNextCards(true, index)
|
|
8513
8497
|
)
|
|
8514
8498
|
),
|
|
8515
|
-
|
|
8499
|
+
React__default.createElement('hr', { className: 'article-seperater' })
|
|
8516
8500
|
)
|
|
8517
8501
|
),
|
|
8518
|
-
|
|
8502
|
+
React__default.createElement(
|
|
8519
8503
|
'div',
|
|
8520
8504
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8521
|
-
|
|
8505
|
+
main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8522
8506
|
if (innerIndex === 0) {
|
|
8523
|
-
return
|
|
8507
|
+
return React__default.createElement(
|
|
8524
8508
|
'div',
|
|
8525
8509
|
{
|
|
8526
8510
|
key: 'addid-' + (index + 2),
|
|
@@ -8543,7 +8527,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8543
8527
|
)
|
|
8544
8528
|
);
|
|
8545
8529
|
}),
|
|
8546
|
-
|
|
8530
|
+
React__default.createElement(
|
|
8547
8531
|
'style',
|
|
8548
8532
|
{ jsx: 'true' },
|
|
8549
8533
|
'\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 '
|
|
@@ -8573,11 +8557,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8573
8557
|
};
|
|
8574
8558
|
}, [handleClickOutside]);
|
|
8575
8559
|
|
|
8576
|
-
return
|
|
8560
|
+
return React__default.createElement(
|
|
8577
8561
|
'div',
|
|
8578
8562
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8579
|
-
|
|
8580
|
-
|
|
8563
|
+
React__default.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8564
|
+
React__default.createElement(
|
|
8581
8565
|
'style',
|
|
8582
8566
|
{ jsx: 'true' },
|
|
8583
8567
|
'\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 '
|
|
@@ -8671,13 +8655,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
8671
8655
|
|
|
8672
8656
|
var FigureCaption = useCallback(function () {
|
|
8673
8657
|
if (imgcaption && imgcaption.length > 0) {
|
|
8674
|
-
return
|
|
8658
|
+
return React__default.createElement(
|
|
8675
8659
|
'div',
|
|
8676
8660
|
{ className: 'figure-caption' },
|
|
8677
|
-
|
|
8661
|
+
React__default.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
8678
8662
|
);
|
|
8679
8663
|
} else if (caption) {
|
|
8680
|
-
return
|
|
8664
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
8681
8665
|
} else return null;
|
|
8682
8666
|
}, [caption, imgcaption]);
|
|
8683
8667
|
|
|
@@ -8689,21 +8673,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
8689
8673
|
margin: figureMargin
|
|
8690
8674
|
};
|
|
8691
8675
|
|
|
8692
|
-
return
|
|
8693
|
-
|
|
8676
|
+
return React__default.createElement(
|
|
8677
|
+
React__default.Fragment,
|
|
8694
8678
|
null,
|
|
8695
|
-
|
|
8696
|
-
Figure$
|
|
8679
|
+
React__default.createElement(
|
|
8680
|
+
Figure$1$1,
|
|
8697
8681
|
{ className: '' + class_name, style: figureStyle },
|
|
8698
|
-
link ?
|
|
8682
|
+
link ? React__default.createElement(
|
|
8699
8683
|
'a',
|
|
8700
8684
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
8701
|
-
|
|
8702
|
-
|
|
8703
|
-
) :
|
|
8704
|
-
|
|
8685
|
+
React__default.createElement(Figure$1$1.Image, { style: { maxWidth: '100%' }, className: 'figure-image', src: urlFor$3(node, client).url(), alt: alt && alt }),
|
|
8686
|
+
React__default.createElement(FigureCaption, null)
|
|
8687
|
+
) : React__default.createElement(
|
|
8688
|
+
React__default.Fragment,
|
|
8705
8689
|
null,
|
|
8706
|
-
|
|
8690
|
+
React__default.createElement(Figure$1$1.Image, {
|
|
8707
8691
|
style: { maxWidth: '100%', cursor: 'pointer', width: 'auto' },
|
|
8708
8692
|
className: 'figure-image',
|
|
8709
8693
|
src: urlFor$3(node, client).url(),
|
|
@@ -8713,9 +8697,9 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
8713
8697
|
setShowLightbox(true);
|
|
8714
8698
|
}
|
|
8715
8699
|
}),
|
|
8716
|
-
|
|
8700
|
+
React__default.createElement(FigureCaption, null)
|
|
8717
8701
|
),
|
|
8718
|
-
|
|
8702
|
+
React__default.createElement(LightBox, {
|
|
8719
8703
|
showLightbox: showLightbox,
|
|
8720
8704
|
lightboxImgSrc: lightboxImgSrc,
|
|
8721
8705
|
closeLightbox: function closeLightbox() {
|
|
@@ -8724,7 +8708,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
8724
8708
|
}
|
|
8725
8709
|
})
|
|
8726
8710
|
),
|
|
8727
|
-
|
|
8711
|
+
React__default.createElement(
|
|
8728
8712
|
'style',
|
|
8729
8713
|
{ jsx: 'true' },
|
|
8730
8714
|
'\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 '
|
|
@@ -8732,7 +8716,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
8732
8716
|
);
|
|
8733
8717
|
};
|
|
8734
8718
|
|
|
8735
|
-
var Figure =
|
|
8719
|
+
var Figure = React__default.memo(FigureComponent, compareProps);
|
|
8736
8720
|
|
|
8737
8721
|
var urlFor$4 = function urlFor(source, client) {
|
|
8738
8722
|
var builder = imageUrlBuilder(client);
|
|
@@ -8778,47 +8762,47 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
8778
8762
|
imgcaption = _ref.imgcaption;
|
|
8779
8763
|
|
|
8780
8764
|
if (imgcaption && imgcaption.length > 0) {
|
|
8781
|
-
return
|
|
8765
|
+
return React__default.createElement(
|
|
8782
8766
|
'div',
|
|
8783
8767
|
{ className: 'multi-figure-caption' },
|
|
8784
|
-
|
|
8768
|
+
React__default.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
8785
8769
|
);
|
|
8786
8770
|
} else if (caption) {
|
|
8787
|
-
return
|
|
8771
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
8788
8772
|
} else return null;
|
|
8789
8773
|
};
|
|
8790
8774
|
|
|
8791
8775
|
if (images && images.length > 0) {
|
|
8792
|
-
return
|
|
8776
|
+
return React__default.createElement(
|
|
8793
8777
|
'div',
|
|
8794
8778
|
{ className: 'multi-figure-container' },
|
|
8795
|
-
|
|
8779
|
+
React__default.createElement(
|
|
8796
8780
|
Row,
|
|
8797
8781
|
{ noGutters: true },
|
|
8798
8782
|
images.map(function (image, index) {
|
|
8799
|
-
return
|
|
8783
|
+
return React__default.createElement(
|
|
8800
8784
|
Col,
|
|
8801
8785
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
8802
|
-
image.link ?
|
|
8786
|
+
image.link ? React__default.createElement(
|
|
8803
8787
|
'a',
|
|
8804
|
-
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
8805
|
-
|
|
8788
|
+
_extends$1({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
8789
|
+
React__default.createElement(
|
|
8806
8790
|
'div',
|
|
8807
8791
|
{ className: 'multi-figure-image-container' },
|
|
8808
|
-
|
|
8792
|
+
React__default.createElement(
|
|
8809
8793
|
LazyLoad,
|
|
8810
8794
|
{ once: true },
|
|
8811
|
-
|
|
8795
|
+
React__default.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor$4(image.asset, client).url(), alt: image.alt })
|
|
8812
8796
|
),
|
|
8813
|
-
|
|
8797
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
8814
8798
|
)
|
|
8815
|
-
) :
|
|
8799
|
+
) : React__default.createElement(
|
|
8816
8800
|
'div',
|
|
8817
8801
|
{ className: 'multi-figure-image-container' },
|
|
8818
|
-
|
|
8802
|
+
React__default.createElement(
|
|
8819
8803
|
LazyLoad,
|
|
8820
8804
|
{ once: true },
|
|
8821
|
-
|
|
8805
|
+
React__default.createElement('img', {
|
|
8822
8806
|
'images-count': images.length,
|
|
8823
8807
|
className: 'multi-figure-image',
|
|
8824
8808
|
src: urlFor$4(image.asset, client).url(),
|
|
@@ -8829,17 +8813,17 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
8829
8813
|
}
|
|
8830
8814
|
})
|
|
8831
8815
|
),
|
|
8832
|
-
|
|
8816
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
8833
8817
|
)
|
|
8834
8818
|
);
|
|
8835
8819
|
})
|
|
8836
8820
|
),
|
|
8837
|
-
|
|
8821
|
+
React__default.createElement(
|
|
8838
8822
|
'div',
|
|
8839
8823
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
8840
|
-
|
|
8824
|
+
React__default.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
8841
8825
|
),
|
|
8842
|
-
|
|
8826
|
+
React__default.createElement(
|
|
8843
8827
|
'style',
|
|
8844
8828
|
{ jsx: 'true' },
|
|
8845
8829
|
'\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: cover;\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 height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n 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 height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n 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 '
|
|
@@ -8861,10 +8845,10 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
8861
8845
|
|
|
8862
8846
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
8863
8847
|
|
|
8864
|
-
return
|
|
8848
|
+
return React__default.createElement(
|
|
8865
8849
|
'div',
|
|
8866
8850
|
{ id: elementId },
|
|
8867
|
-
|
|
8851
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
8868
8852
|
);
|
|
8869
8853
|
};
|
|
8870
8854
|
|
|
@@ -8936,129 +8920,129 @@ var getSerializers = function getSerializers() {
|
|
|
8936
8920
|
var node = _ref.node;
|
|
8937
8921
|
var url = node.url;
|
|
8938
8922
|
|
|
8939
|
-
return
|
|
8923
|
+
return React__default.createElement(YouTubePlayer, { url: url });
|
|
8940
8924
|
},
|
|
8941
8925
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
8942
8926
|
var node = _ref2.node;
|
|
8943
8927
|
|
|
8944
|
-
return
|
|
8928
|
+
return React__default.createElement(YouTubeGallery, { nodes: node, accountIDs: videoAccountIDs || {}, client: client, getSerializers: getSerializers(client) });
|
|
8945
8929
|
},
|
|
8946
8930
|
articleSeries: function articleSeries(_ref3) {
|
|
8947
8931
|
var node = _ref3.node;
|
|
8948
8932
|
|
|
8949
|
-
return
|
|
8933
|
+
return React__default.createElement(ArticleSeries, { nodes: node, accountIDs: videoAccountIDs || {}, pageview: pageview, client: client, getSerializers: getSerializers.apply(undefined, props), Ads: Ads || null, rootArticle: article || null });
|
|
8950
8934
|
},
|
|
8951
8935
|
figure: function figure(_ref4) {
|
|
8952
8936
|
var node = _ref4.node;
|
|
8953
8937
|
|
|
8954
|
-
return
|
|
8938
|
+
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
8955
8939
|
},
|
|
8956
8940
|
multifigure: function multifigure(_ref5) {
|
|
8957
8941
|
var node = _ref5.node;
|
|
8958
8942
|
|
|
8959
|
-
return
|
|
8943
|
+
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
8960
8944
|
},
|
|
8961
8945
|
slideshow: function slideshow(_ref6) {
|
|
8962
8946
|
var node = _ref6.node;
|
|
8963
8947
|
var slides = node.slides;
|
|
8964
8948
|
|
|
8965
|
-
return
|
|
8949
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
8966
8950
|
},
|
|
8967
8951
|
sidebar: function sidebar(_ref7) {
|
|
8968
8952
|
var node = _ref7.node;
|
|
8969
8953
|
var caption = node.caption,
|
|
8970
8954
|
content = node.content;
|
|
8971
8955
|
|
|
8972
|
-
return
|
|
8956
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
8973
8957
|
},
|
|
8974
8958
|
datatable: function datatable(_ref8) {
|
|
8975
8959
|
var node = _ref8.node;
|
|
8976
8960
|
var table = node.table;
|
|
8977
8961
|
|
|
8978
|
-
return
|
|
8962
|
+
return React__default.createElement(TableShow, { rows: table.rows });
|
|
8979
8963
|
},
|
|
8980
8964
|
media: function media(_ref9) {
|
|
8981
8965
|
var node = _ref9.node;
|
|
8982
8966
|
|
|
8983
|
-
return
|
|
8967
|
+
return React__default.createElement(Media, { node: node, client: client });
|
|
8984
8968
|
},
|
|
8985
8969
|
iframe: function iframe(_ref10) {
|
|
8986
8970
|
var node = _ref10.node;
|
|
8987
8971
|
|
|
8988
|
-
return
|
|
8972
|
+
return React__default.createElement(IFrame, { url: node.url });
|
|
8989
8973
|
},
|
|
8990
8974
|
video: function video(_ref11) {
|
|
8991
8975
|
var node = _ref11.node;
|
|
8992
8976
|
|
|
8993
|
-
return
|
|
8977
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
8994
8978
|
},
|
|
8995
8979
|
audio: function audio(_ref12) {
|
|
8996
8980
|
var node = _ref12.node;
|
|
8997
8981
|
|
|
8998
|
-
return
|
|
8982
|
+
return React__default.createElement(Audio, { node: node });
|
|
8999
8983
|
},
|
|
9000
8984
|
poll: function poll(_ref13) {
|
|
9001
8985
|
var node = _ref13.node;
|
|
9002
8986
|
|
|
9003
|
-
return
|
|
8987
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9004
8988
|
},
|
|
9005
8989
|
quiz: function quiz(_ref14) {
|
|
9006
8990
|
var node = _ref14.node;
|
|
9007
8991
|
var quizzes = node.quizzes;
|
|
9008
8992
|
|
|
9009
|
-
return
|
|
8993
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9010
8994
|
},
|
|
9011
8995
|
leads: function leads(_ref15) {
|
|
9012
8996
|
var node = _ref15.node;
|
|
9013
8997
|
var leadID = node.leadID;
|
|
9014
8998
|
|
|
9015
8999
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9016
|
-
return
|
|
9000
|
+
return React__default.createElement(Leads, { url: url });
|
|
9017
9001
|
},
|
|
9018
9002
|
slideshows: function slideshows(_ref16) {
|
|
9019
9003
|
var node = _ref16.node;
|
|
9020
9004
|
|
|
9021
|
-
return
|
|
9005
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9022
9006
|
},
|
|
9023
9007
|
nativeAd: function nativeAd(_ref17) {
|
|
9024
9008
|
var node = _ref17.node;
|
|
9025
9009
|
|
|
9026
|
-
return
|
|
9010
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
9027
9011
|
},
|
|
9028
9012
|
html_anchor_links: function html_anchor_links(_ref18) {
|
|
9029
9013
|
var node = _ref18.node;
|
|
9030
9014
|
|
|
9031
|
-
return
|
|
9015
|
+
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9032
9016
|
},
|
|
9033
9017
|
hrtag: function hrtag() {
|
|
9034
|
-
return
|
|
9018
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9035
9019
|
},
|
|
9036
9020
|
brtag: function brtag() {
|
|
9037
|
-
return
|
|
9021
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
9038
9022
|
},
|
|
9039
9023
|
formstack: function formstack(_ref19) {
|
|
9040
9024
|
var node = _ref19.node;
|
|
9041
9025
|
var FormID = node.FormID,
|
|
9042
9026
|
Caption = node.Caption;
|
|
9043
9027
|
|
|
9044
|
-
return
|
|
9028
|
+
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption });
|
|
9045
9029
|
},
|
|
9046
9030
|
multimedia: function multimedia(_ref20) {
|
|
9047
9031
|
var node = _ref20.node;
|
|
9048
9032
|
|
|
9049
|
-
return
|
|
9033
|
+
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
9050
9034
|
}
|
|
9051
9035
|
},
|
|
9052
9036
|
marks: {
|
|
9053
9037
|
superscript: function superscript(props) {
|
|
9054
|
-
return
|
|
9038
|
+
return React__default.createElement(
|
|
9055
9039
|
'sup',
|
|
9056
9040
|
null,
|
|
9057
9041
|
props.children
|
|
9058
9042
|
);
|
|
9059
9043
|
},
|
|
9060
9044
|
subscript: function subscript(props) {
|
|
9061
|
-
return
|
|
9045
|
+
return React__default.createElement(
|
|
9062
9046
|
'sub',
|
|
9063
9047
|
null,
|
|
9064
9048
|
props.children
|
|
@@ -9074,7 +9058,7 @@ var getSerializers = function getSerializers() {
|
|
|
9074
9058
|
if (href && href.charAt(0) === '#') {
|
|
9075
9059
|
var elementId = href.slice(1);
|
|
9076
9060
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9077
|
-
return
|
|
9061
|
+
return React__default.createElement(
|
|
9078
9062
|
'a',
|
|
9079
9063
|
{ onClick: function onClick() {
|
|
9080
9064
|
return ScrollToElement(elementId);
|
|
@@ -9084,7 +9068,7 @@ var getSerializers = function getSerializers() {
|
|
|
9084
9068
|
}
|
|
9085
9069
|
|
|
9086
9070
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9087
|
-
return
|
|
9071
|
+
return React__default.createElement(
|
|
9088
9072
|
'a',
|
|
9089
9073
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
9090
9074
|
children
|
|
@@ -9092,7 +9076,7 @@ var getSerializers = function getSerializers() {
|
|
|
9092
9076
|
},
|
|
9093
9077
|
alignleft: function alignleft(_ref21) {
|
|
9094
9078
|
var children = _ref21.children;
|
|
9095
|
-
return
|
|
9079
|
+
return React__default.createElement(
|
|
9096
9080
|
'div',
|
|
9097
9081
|
{ style: { textAlign: 'left' } },
|
|
9098
9082
|
children
|
|
@@ -9100,7 +9084,7 @@ var getSerializers = function getSerializers() {
|
|
|
9100
9084
|
},
|
|
9101
9085
|
alignright: function alignright(_ref22) {
|
|
9102
9086
|
var children = _ref22.children;
|
|
9103
|
-
return
|
|
9087
|
+
return React__default.createElement(
|
|
9104
9088
|
'div',
|
|
9105
9089
|
{ style: { textAlign: 'right' } },
|
|
9106
9090
|
children
|
|
@@ -9108,7 +9092,7 @@ var getSerializers = function getSerializers() {
|
|
|
9108
9092
|
},
|
|
9109
9093
|
aligncenter: function aligncenter(_ref23) {
|
|
9110
9094
|
var children = _ref23.children;
|
|
9111
|
-
return
|
|
9095
|
+
return React__default.createElement(
|
|
9112
9096
|
'div',
|
|
9113
9097
|
{ style: { textAlign: 'center' } },
|
|
9114
9098
|
children
|
|
@@ -9116,7 +9100,7 @@ var getSerializers = function getSerializers() {
|
|
|
9116
9100
|
},
|
|
9117
9101
|
alignjustify: function alignjustify(_ref24) {
|
|
9118
9102
|
var children = _ref24.children;
|
|
9119
|
-
return
|
|
9103
|
+
return React__default.createElement(
|
|
9120
9104
|
'div',
|
|
9121
9105
|
{ style: { textAlign: 'justify' } },
|
|
9122
9106
|
children
|
|
@@ -9126,7 +9110,7 @@ var getSerializers = function getSerializers() {
|
|
|
9126
9110
|
var children = props.children,
|
|
9127
9111
|
color = props.mark.color;
|
|
9128
9112
|
|
|
9129
|
-
return
|
|
9113
|
+
return React__default.createElement(
|
|
9130
9114
|
'span',
|
|
9131
9115
|
{ style: { color: color ? color.hex : null } },
|
|
9132
9116
|
children
|