@mjhls/mjh-framework 1.0.733-beta.0 → 1.0.733
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/AD.js +10 -9
- package/dist/cjs/AD300x250.js +28 -27
- package/dist/cjs/AD300x250x600.js +28 -27
- package/dist/cjs/AD728x90.js +31 -30
- package/dist/cjs/ADFloatingFooter.js +30 -29
- package/dist/cjs/ADFooter.js +15 -14
- package/dist/cjs/ADGutter.js +30 -29
- package/dist/cjs/{ADInfeed-d1d7e784.js → ADInfeed-5fe7fd9d.js} +15 -13
- package/dist/cjs/ADSkyscraper.js +30 -29
- package/dist/cjs/ADSponsoredResources.js +30 -29
- package/dist/cjs/ADWebcast.js +30 -29
- package/dist/cjs/ADWelcome.js +34 -33
- package/dist/cjs/{ADlgInfeed-b6116a72.js → ADlgInfeed-a62d2f9b.js} +11 -10
- package/dist/cjs/AccordionPanel.js +31 -29
- package/dist/cjs/AdSlot.js +32 -31
- package/dist/cjs/AdSlotsProvider.js +17 -16
- package/dist/cjs/AlphabeticList.js +25 -24
- package/dist/cjs/ArticleCarousel.js +24 -23
- package/dist/cjs/ArticleProgramLandingPage.js +55 -54
- package/dist/cjs/ArticleSeriesLandingPage.js +39 -38
- package/dist/cjs/ArticleSeriesListing.js +60 -59
- package/dist/cjs/Auth.js +820 -334
- package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-5fa89df5.js} +14 -13
- package/dist/cjs/Beam.js +9 -9
- package/dist/cjs/{BlockContent-091a991f.js → BlockContent-eca358e4.js} +25 -24
- package/dist/cjs/Breadcrumbs.js +29 -27
- package/dist/cjs/CMEDeck.js +83 -83
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +35 -32
- package/dist/cjs/Column3.js +58 -55
- package/dist/cjs/ConferenceArticleCard.js +23 -22
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +98 -94
- package/dist/cjs/DeckQueue.js +90 -86
- package/dist/cjs/{Dfp-ce7ac168.js → Dfp-80146e98.js} +31 -30
- package/dist/cjs/EventsDeck.js +138 -131
- package/dist/cjs/ExternalResources.js +77 -76
- package/dist/cjs/Feature.js +27 -25
- package/dist/cjs/ForbesHero.js +41 -40
- package/dist/cjs/GridContent.js +181 -177
- package/dist/cjs/GridHero.js +43 -42
- package/dist/cjs/GroupDeck.js +59 -58
- package/dist/cjs/HamMagazine.js +135 -130
- package/dist/cjs/Header.js +13 -11
- package/dist/cjs/Hero.js +13 -12
- package/dist/cjs/HighlightenVideo.js +18 -17
- package/dist/cjs/HorizontalArticleListing.js +69 -68
- package/dist/cjs/HorizontalHero.js +26 -25
- package/dist/cjs/IssueContentDeck.js +77 -72
- package/dist/cjs/IssueDeck.js +75 -70
- package/dist/cjs/IssueLanding.js +41 -40
- package/dist/cjs/LeftNav.js +38 -36
- package/dist/cjs/MasterDeck.js +72 -71
- package/dist/cjs/NavDvm.js +80 -75
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +143 -138
- package/dist/cjs/NavNative.js +123 -115
- package/dist/cjs/NavNormal.js +53 -48
- package/dist/cjs/OncliveHero.js +20 -20
- package/dist/cjs/OncliveLargeHero.js +67 -66
- package/dist/cjs/PageFilter.js +15 -14
- package/dist/cjs/PartnerDetailListing.js +106 -105
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +21 -19
- package/dist/cjs/PubSection.js +38 -37
- package/dist/cjs/PubToc.js +17 -16
- package/dist/cjs/PublicationDeck.js +66 -61
- package/dist/cjs/PublicationLanding.js +78 -74
- package/dist/cjs/QueueDeckExpanded.js +292 -292
- package/dist/cjs/RecentNews.js +24 -23
- package/dist/cjs/RelatedContent.js +25 -24
- package/dist/cjs/RelatedTopicsDropdown.js +22 -19
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +22 -18
- package/dist/cjs/Segment.js +7 -7
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +36 -35
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-8dd468fd.js → SocialSearchComponent-45c54bed.js} +40 -36
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +62 -57
- package/dist/cjs/TaxonomyDescription.js +52 -51
- package/dist/cjs/TemplateNormal.js +73 -72
- package/dist/cjs/ThumbnailCard.js +22 -20
- package/dist/cjs/Ustream.js +27 -26
- package/dist/cjs/VerticalHero.js +18 -17
- package/dist/cjs/VideoProgramLandingPage.js +74 -70
- package/dist/cjs/VideoSeriesCard.js +32 -31
- package/dist/cjs/VideoSeriesFilter.js +19 -19
- package/dist/cjs/VideoSeriesLandingPage.js +47 -46
- package/dist/cjs/VideoSeriesListing.js +75 -74
- package/dist/cjs/View.js +240 -244
- package/dist/cjs/YahooHero.js +40 -39
- package/dist/cjs/YoutubeGroup.js +63 -62
- package/dist/cjs/{_is-array-754e012d.js → _is-array-63ae4740.js} +6 -6
- package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-2613ffa1.js} +2 -2
- package/dist/cjs/{_object-sap-5e74ba08.js → _object-sap-c5bd707d.js} +1 -1
- package/dist/cjs/{_object-to-array-5762f850.js → _object-to-array-bec5fcf2.js} +1 -1
- package/dist/cjs/{_set-species-f92c67c5.js → _set-species-a8cfdb84.js} +4 -4
- package/dist/cjs/{_to-object-329a650b.js → _to-object-821a2927.js} +4 -4
- package/dist/cjs/{asyncToGenerator-533d476a.js → asyncToGenerator-2edcb6ad.js} +8 -8
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-a195642e.js} +11 -9
- package/dist/cjs/{core.get-iterator-method-f62321d4.js → core.get-iterator-method-b4615fd3.js} +2 -2
- package/dist/cjs/{define-property-f4d12f4e.js → define-property-aff11f8a.js} +1 -1
- package/dist/cjs/{defineProperty-55548b25.js → defineProperty-d6fbb280.js} +1 -1
- package/dist/cjs/{entities-310b46ee.js → entities-3f9d0f2f.js} +1 -1
- package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-20d42c53.js} +2 -2
- package/dist/cjs/{extends-60837c34.js → extends-1e24fc8d.js} +1 -1
- package/dist/cjs/getRelatedArticle.js +140 -78
- package/dist/cjs/getSerializers.js +42 -42
- package/dist/cjs/{getTargeting-9af0ef69.js → getTargeting-497b581d.js} +3 -3
- package/dist/cjs/getTargeting.js +7 -7
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-8bf6c863.js → index-0e4427c8.js} +12 -11
- package/dist/cjs/{index-3294d3bc.js → index-4d74ffd6.js} +40 -41
- package/dist/cjs/{index-44b6f046.js → index-5260126b.js} +919 -896
- package/dist/cjs/{index-da796b8c.js → index-80f57cff.js} +17 -15
- package/dist/cjs/{index-be0c82be.js → index-d48b231c.js} +31 -25
- package/dist/cjs/{index.es-9110add6.js → index.es-f3e47207.js} +31 -12
- package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
- package/dist/cjs/{index.esm-66ffa47a.js → index.esm-3b9b8952.js} +4 -9
- package/dist/cjs/{index.esm-4d410430.js → index.esm-8123cf40.js} +20 -20
- package/dist/cjs/{index.esm-90433435.js → index.esm-974f47d9.js} +6 -15
- package/dist/cjs/index.js +159 -156
- package/dist/cjs/{inherits-c9f99d47.js → inherits-2eb23889.js} +5 -5
- package/dist/cjs/{keys-a586b7a0.js → keys-95c064c9.js} +2 -2
- package/dist/cjs/{lodash-fc2922d0.js → lodash-4ef21f0f.js} +72 -23
- package/dist/cjs/{main-02daeefe.js → main-dc082238.js} +116 -80
- package/dist/cjs/{moment-575fe24c.js → moment-aca40de1.js} +11 -9
- package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-af932527.js} +28 -27
- package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-db24842a.js} +4 -4
- package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
- package/dist/cjs/{stringify-7c5aff47.js → stringify-01cf47f7.js} +1 -1
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-cf0865fc.js} +4 -4
- package/dist/cjs/{typeof-725500bc.js → typeof-97065d40.js} +7 -7
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{util-f2c1b65b.js → util-6f784d85.js} +1 -1
- package/dist/cjs/{visibility-sensor-0c45a583.js → visibility-sensor-8b54af99.js} +7 -5
- package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-4480325a.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +24 -24
- package/dist/esm/AD300x250x600.js +24 -24
- package/dist/esm/AD728x90.js +27 -27
- package/dist/esm/ADFloatingFooter.js +26 -26
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +26 -26
- package/dist/esm/{ADInfeed-0299bf7e.js → ADInfeed-3a9eef39.js} +9 -9
- package/dist/esm/ADSkyscraper.js +26 -26
- package/dist/esm/ADSponsoredResources.js +26 -26
- package/dist/esm/ADWebcast.js +26 -26
- package/dist/esm/ADWelcome.js +30 -30
- package/dist/esm/{ADlgInfeed-7b627388.js → ADlgInfeed-8d63ff91.js} +8 -8
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +23 -23
- package/dist/esm/AdSlotsProvider.js +13 -13
- package/dist/esm/AlphabeticList.js +21 -21
- package/dist/esm/ArticleCarousel.js +20 -20
- package/dist/esm/ArticleProgramLandingPage.js +51 -51
- package/dist/esm/ArticleSeriesLandingPage.js +35 -35
- package/dist/esm/ArticleSeriesListing.js +54 -54
- package/dist/esm/Auth.js +799 -317
- package/dist/esm/{AuthorComponent-34b16174.js → AuthorComponent-c7ff069f.js} +11 -11
- package/dist/esm/Beam.js +9 -9
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-d8cd739c.js} +4 -4
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/CMEDeck.js +79 -79
- 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-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +76 -76
- package/dist/esm/DeckQueue.js +64 -64
- package/dist/esm/{Dfp-e9a07597.js → Dfp-8bfbd310.js} +20 -20
- package/dist/esm/EventsDeck.js +84 -84
- package/dist/esm/ExternalResources.js +70 -70
- 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 +46 -46
- 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/HorizontalArticleListing.js +65 -65
- 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-e27bd93b.js → NavFooter-c29526b7.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 +16 -17
- 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/PubSection.js +34 -34
- package/dist/esm/PubToc.js +13 -13
- 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-a2ae84d1.js → SocialSearchComponent-c3216d1a.js} +28 -28
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +41 -41
- package/dist/esm/TaxonomyDescription.js +46 -46
- 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/VideoProgramLandingPage.js +60 -60
- package/dist/esm/VideoSeriesCard.js +24 -24
- package/dist/esm/VideoSeriesFilter.js +16 -16
- package/dist/esm/VideoSeriesLandingPage.js +39 -39
- package/dist/esm/VideoSeriesListing.js +68 -68
- package/dist/esm/View.js +220 -228
- package/dist/esm/YahooHero.js +34 -34
- package/dist/esm/YoutubeGroup.js +46 -46
- package/dist/esm/{_is-array-58e95429.js → _is-array-674f71ec.js} +6 -6
- package/dist/esm/{_iter-detect-5d49a330.js → _iter-detect-48516cd3.js} +2 -2
- package/dist/esm/{_object-sap-964b6feb.js → _object-sap-fd3054d0.js} +1 -1
- package/dist/esm/{_object-to-array-7e804fce.js → _object-to-array-8f409e54.js} +1 -1
- package/dist/esm/{_set-species-3f8319f5.js → _set-species-494ed292.js} +4 -4
- package/dist/esm/{_to-object-a4107da3.js → _to-object-97770c52.js} +5 -5
- package/dist/esm/{asyncToGenerator-502f13b4.js → asyncToGenerator-2bd4099a.js} +8 -8
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-b43c695a.js} +7 -6
- package/dist/esm/{core.get-iterator-method-e1de7503.js → core.get-iterator-method-d1d5ed02.js} +2 -2
- package/dist/esm/{define-property-8af5f002.js → define-property-ec6d528d.js} +1 -1
- package/dist/esm/{defineProperty-94fd8bfc.js → defineProperty-ea516b15.js} +1 -1
- package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
- package/dist/esm/{es6.string.iterator-c990c18c.js → es6.string.iterator-aa6068a3.js} +3 -3
- package/dist/esm/{extends-eb69e8ac.js → extends-31d65aba.js} +1 -1
- package/dist/esm/getRelatedArticle.js +135 -73
- package/dist/esm/getSerializers.js +42 -42
- package/dist/esm/{getTargeting-7211f12c.js → getTargeting-2d402d66.js} +2 -2
- package/dist/esm/getTargeting.js +7 -7
- package/dist/esm/{index-73819142.js → index-3f5c03b2.js} +31 -25
- package/dist/esm/{index-5f9f807a.js → index-752d1dae.js} +10 -10
- package/dist/esm/{index-a9e53f80.js → index-888f9253.js} +6 -6
- package/dist/esm/{index-ef6d5dcf.js → index-ccb770c7.js} +40 -41
- package/dist/esm/{index-96904235.js → index-d6ad9248.js} +853 -837
- package/dist/esm/{index.es-29c1cef5.js → index.es-c6222053.js} +28 -10
- package/dist/esm/{index.esm-29e48d38.js → index.esm-3fdda599.js} +6 -15
- package/dist/esm/{index.esm-fd746768.js → index.esm-8016b507.js} +17 -18
- package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
- package/dist/esm/{index.esm-b08f4b04.js → index.esm-d6f88d94.js} +4 -9
- package/dist/esm/index.js +126 -126
- package/dist/esm/{inherits-fb9b6e8f.js → inherits-5906fbea.js} +5 -5
- package/dist/esm/{keys-8eda7a5c.js → keys-a0b0c7a4.js} +2 -2
- package/dist/esm/{lodash-17fdfebb.js → lodash-ad27652f.js} +72 -23
- package/dist/esm/{main-e4a934b2.js → main-1450d277.js} +113 -78
- package/dist/esm/{moment-e2f9b20c.js → moment-bc12cb97.js} +11 -9
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-91f9716f.js} +20 -20
- package/dist/esm/{slicedToArray-641f241f.js → slicedToArray-cdeaee08.js} +4 -4
- package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
- package/dist/esm/{stringify-4330ccdc.js → stringify-d4839bab.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-43aa614d.js → toConsumableArray-fa2dcda7.js} +4 -4
- package/dist/esm/{typeof-6435ba1c.js → typeof-e9cea9e8.js} +7 -7
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{util-7700fc59.js → util-3ab476bf.js} +1 -1
- package/dist/esm/{visibility-sensor-0baa4eea.js → visibility-sensor-082c757b.js} +2 -2
- package/dist/esm/{web.dom.iterable-4439f05a.js → web.dom.iterable-035980f3.js} +3 -3
- package/package.json +1 -1
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { _ as _typeof } from './typeof-6435ba1c.js';
|
|
7
|
-
import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
8
|
-
import { l as lib_3 } from './index-a9e53f80.js';
|
|
9
|
-
import PropTypes from 'prop-types';
|
|
10
|
-
import Row from 'react-bootstrap/Row';
|
|
11
|
-
import Col from 'react-bootstrap/Col';
|
|
12
|
-
import { m as moment } from './moment-e2f9b20c.js';
|
|
1
|
+
import React, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
2
|
+
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-cdeaee08.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-888f9253.js';
|
|
13
6
|
import Router, { useRouter } from 'next/router';
|
|
14
|
-
import { i as imageUrlBuilder } from './index-73819142.js';
|
|
15
|
-
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
16
|
-
import { d as main_16, b as main_35, m as main_36 } from './main-e4a934b2.js';
|
|
17
|
-
import { h as html_decode_1 } from './entities-7cc3bf45.js';
|
|
18
|
-
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-641f241f.js';
|
|
19
|
-
import Segment from './Segment.js';
|
|
20
|
-
import Beam from './Beam.js';
|
|
21
|
-
import DFPAdSlot from './AdSlot.js';
|
|
22
|
-
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
23
7
|
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
8
|
+
import PropTypes from 'prop-types';
|
|
9
|
+
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
10
|
+
import { u as util } from './util-3ab476bf.js';
|
|
11
|
+
import Beam from './Beam.js';
|
|
12
|
+
import Segment from './Segment.js';
|
|
13
|
+
import { d as main_16, b as main_39, m as main_40 } from './main-1450d277.js';
|
|
14
|
+
import { B as BlockContent } from './BlockContent-d8cd739c.js';
|
|
15
|
+
import { _ as _extends } from './extends-31d65aba.js';
|
|
16
|
+
import { L as LazyLoad } from './index-752d1dae.js';
|
|
17
|
+
import { _ as _typeof$1 } from './typeof-e9cea9e8.js';
|
|
18
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-b43c695a.js';
|
|
24
19
|
import GroupDeck from './GroupDeck.js';
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import { _ as _objectToArray } from './_object-to-array-7e804fce.js';
|
|
20
|
+
import { m as moment } from './moment-bc12cb97.js';
|
|
21
|
+
import { _ as _export, a as _core } from './_to-object-97770c52.js';
|
|
22
|
+
import { _ as _objectToArray } from './_object-to-array-8f409e54.js';
|
|
23
|
+
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-fa2dcda7.js';
|
|
30
24
|
import Pagination from 'react-bootstrap/Pagination';
|
|
31
25
|
import Button$1 from 'react-bootstrap/Button';
|
|
26
|
+
import { h as html_decode_1 } from './entities-932b50cf.js';
|
|
27
|
+
import DFPAdSlot from './AdSlot.js';
|
|
28
|
+
import Row from 'react-bootstrap/Row';
|
|
29
|
+
import Col from 'react-bootstrap/Col';
|
|
32
30
|
import Head from 'next/head';
|
|
33
|
-
import
|
|
31
|
+
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-5906fbea.js';
|
|
32
|
+
import { d as IoIosArrowDropupCircle } from './index.esm-3fdda599.js';
|
|
33
|
+
import Figure$2 from 'react-bootstrap/Figure';
|
|
34
34
|
|
|
35
35
|
var urlFor = function urlFor(source, builder) {
|
|
36
36
|
return builder.image(source).auto('format');
|
|
@@ -71,20 +71,20 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
71
71
|
if (pageview) pageview(router.asPath);
|
|
72
72
|
}, [router]);
|
|
73
73
|
|
|
74
|
-
return
|
|
74
|
+
return React.createElement(
|
|
75
75
|
'div',
|
|
76
76
|
{ className: 'mt-3 mb-3' },
|
|
77
|
-
|
|
77
|
+
React.createElement(
|
|
78
78
|
Carousel,
|
|
79
79
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
80
80
|
return onChangeSlide(selectedIndex, router);
|
|
81
81
|
}, interval: null },
|
|
82
82
|
slides && slides.map(function (slide) {
|
|
83
|
-
return
|
|
83
|
+
return React.createElement(
|
|
84
84
|
Carousel.Item,
|
|
85
85
|
{ key: slide._key },
|
|
86
|
-
|
|
87
|
-
slide.caption &&
|
|
86
|
+
React.createElement('img', { src: slide.asset && urlFor(slide.asset, builder).url(), alt: slide.alt && slide.alt, style: { width: '100%' } }),
|
|
87
|
+
slide.caption && React.createElement(
|
|
88
88
|
'p',
|
|
89
89
|
{ className: 'p-2' },
|
|
90
90
|
slide.caption
|
|
@@ -95,21 +95,18 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
95
95
|
);
|
|
96
96
|
};
|
|
97
97
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
98
|
+
// do not edit .js files directly - edit src/index.jst
|
|
99
|
+
|
|
100
|
+
|
|
101
101
|
|
|
102
102
|
var fastDeepEqual = function equal(a, b) {
|
|
103
103
|
if (a === b) return true;
|
|
104
104
|
|
|
105
105
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
106
|
-
|
|
107
|
-
, arrB = isArray(b)
|
|
108
|
-
, i
|
|
109
|
-
, length
|
|
110
|
-
, key;
|
|
106
|
+
if (a.constructor !== b.constructor) return false;
|
|
111
107
|
|
|
112
|
-
|
|
108
|
+
var length, i, keys;
|
|
109
|
+
if (Array.isArray(a)) {
|
|
113
110
|
length = a.length;
|
|
114
111
|
if (length != b.length) return false;
|
|
115
112
|
for (i = length; i-- !== 0;)
|
|
@@ -117,35 +114,29 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
117
114
|
return true;
|
|
118
115
|
}
|
|
119
116
|
|
|
120
|
-
if (arrA != arrB) return false;
|
|
121
117
|
|
|
122
|
-
var dateA = a instanceof Date
|
|
123
|
-
, dateB = b instanceof Date;
|
|
124
|
-
if (dateA != dateB) return false;
|
|
125
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
126
118
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
if (
|
|
130
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
119
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
120
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
121
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
131
122
|
|
|
132
|
-
|
|
123
|
+
keys = Object.keys(a);
|
|
133
124
|
length = keys.length;
|
|
134
|
-
|
|
135
|
-
if (length !== keyList(b).length)
|
|
136
|
-
return false;
|
|
125
|
+
if (length !== Object.keys(b).length) return false;
|
|
137
126
|
|
|
138
127
|
for (i = length; i-- !== 0;)
|
|
139
|
-
if (!
|
|
128
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
140
129
|
|
|
141
130
|
for (i = length; i-- !== 0;) {
|
|
142
|
-
key = keys[i];
|
|
131
|
+
var key = keys[i];
|
|
132
|
+
|
|
143
133
|
if (!equal(a[key], b[key])) return false;
|
|
144
134
|
}
|
|
145
135
|
|
|
146
136
|
return true;
|
|
147
137
|
}
|
|
148
138
|
|
|
139
|
+
// true if both NaN, false otherwise
|
|
149
140
|
return a!==a && b!==b;
|
|
150
141
|
};
|
|
151
142
|
|
|
@@ -683,14 +674,14 @@ function coerce(val) {
|
|
|
683
674
|
return val;
|
|
684
675
|
}
|
|
685
676
|
});
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
677
|
+
debug.coerce;
|
|
678
|
+
debug.disable;
|
|
679
|
+
debug.enable;
|
|
680
|
+
debug.enabled;
|
|
681
|
+
debug.humanize;
|
|
682
|
+
debug.names;
|
|
683
|
+
debug.skips;
|
|
684
|
+
debug.formatters;
|
|
694
685
|
|
|
695
686
|
var browser = createCommonjsModule(function (module, exports) {
|
|
696
687
|
/**
|
|
@@ -879,13 +870,13 @@ function localstorage() {
|
|
|
879
870
|
} catch (e) {}
|
|
880
871
|
}
|
|
881
872
|
});
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
873
|
+
browser.log;
|
|
874
|
+
browser.formatArgs;
|
|
875
|
+
browser.save;
|
|
876
|
+
browser.load;
|
|
877
|
+
browser.useColors;
|
|
878
|
+
browser.storage;
|
|
879
|
+
browser.colors;
|
|
889
880
|
|
|
890
881
|
// MIT lisence
|
|
891
882
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1160,14 +1151,14 @@ function init (debug) {
|
|
|
1160
1151
|
|
|
1161
1152
|
exports.enable(load());
|
|
1162
1153
|
});
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1154
|
+
node.init;
|
|
1155
|
+
node.log;
|
|
1156
|
+
node.formatArgs;
|
|
1157
|
+
node.save;
|
|
1158
|
+
node.load;
|
|
1159
|
+
node.useColors;
|
|
1160
|
+
node.colors;
|
|
1161
|
+
node.inspectOpts;
|
|
1171
1162
|
|
|
1172
1163
|
var src = createCommonjsModule(function (module) {
|
|
1173
1164
|
/**
|
|
@@ -1568,199 +1559,239 @@ module.exports = exports['default'];
|
|
|
1568
1559
|
|
|
1569
1560
|
var youTubePlayer = unwrapExports(dist);
|
|
1570
1561
|
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
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; };
|
|
1562
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
1574
1563
|
|
|
1575
1564
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1576
1565
|
|
|
1577
|
-
function
|
|
1566
|
+
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); } }
|
|
1578
1567
|
|
|
1579
|
-
function
|
|
1568
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1580
1569
|
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1570
|
+
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); }
|
|
1571
|
+
|
|
1572
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1573
|
+
|
|
1574
|
+
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); }; }
|
|
1575
|
+
|
|
1576
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1577
|
+
|
|
1578
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1579
|
+
|
|
1580
|
+
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; } }
|
|
1581
|
+
|
|
1582
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1583
|
+
|
|
1584
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
1585
|
+
|
|
1586
|
+
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; }
|
|
1587
|
+
|
|
1588
|
+
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; }
|
|
1589
|
+
/**
|
|
1590
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1591
|
+
*
|
|
1592
|
+
* @param {Object} prevProps
|
|
1593
|
+
* @param {Object} props
|
|
1586
1594
|
*/
|
|
1595
|
+
|
|
1587
1596
|
function shouldUpdateVideo(prevProps, props) {
|
|
1588
1597
|
// A changing video should always trigger an update
|
|
1589
1598
|
if (prevProps.videoId !== props.videoId) {
|
|
1590
1599
|
return true;
|
|
1591
|
-
}
|
|
1592
|
-
|
|
1593
|
-
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1600
|
+
} // Otherwise, a change in the start/end time playerVars also requires a player
|
|
1594
1601
|
// update.
|
|
1602
|
+
|
|
1603
|
+
|
|
1595
1604
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1596
1605
|
var vars = props.opts.playerVars || {};
|
|
1597
|
-
|
|
1598
1606
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1599
1607
|
}
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
*
|
|
1603
|
-
*
|
|
1604
|
-
*
|
|
1605
|
-
*
|
|
1606
|
-
* @param {Object} opts
|
|
1608
|
+
/**
|
|
1609
|
+
* Neutralize API options that only require a video update, leaving only options
|
|
1610
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1611
|
+
* player reset is necessary.
|
|
1612
|
+
*
|
|
1613
|
+
* @param {Object} opts
|
|
1607
1614
|
*/
|
|
1615
|
+
|
|
1616
|
+
|
|
1608
1617
|
function filterResetOptions(opts) {
|
|
1609
|
-
return
|
|
1610
|
-
playerVars:
|
|
1618
|
+
return _objectSpread(_objectSpread({}, opts), {}, {
|
|
1619
|
+
playerVars: _objectSpread({
|
|
1611
1620
|
autoplay: 0,
|
|
1612
1621
|
start: 0,
|
|
1613
1622
|
end: 0
|
|
1614
|
-
})
|
|
1623
|
+
}, opts.playerVars)
|
|
1615
1624
|
});
|
|
1616
1625
|
}
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
*
|
|
1620
|
-
*
|
|
1621
|
-
*
|
|
1622
|
-
*
|
|
1623
|
-
*
|
|
1624
|
-
* @param {Object}
|
|
1625
|
-
* @param {Object} props
|
|
1626
|
+
/**
|
|
1627
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1628
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1629
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1630
|
+
* those.
|
|
1631
|
+
*
|
|
1632
|
+
* @param {Object} prevProps
|
|
1633
|
+
* @param {Object} props
|
|
1626
1634
|
*/
|
|
1635
|
+
|
|
1636
|
+
|
|
1627
1637
|
function shouldResetPlayer(prevProps, props) {
|
|
1628
1638
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1629
1639
|
}
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
*
|
|
1633
|
-
*
|
|
1634
|
-
* @param {Object}
|
|
1635
|
-
* @param {Object} props
|
|
1640
|
+
/**
|
|
1641
|
+
* Check whether a props change should result in an id or className update.
|
|
1642
|
+
*
|
|
1643
|
+
* @param {Object} prevProps
|
|
1644
|
+
* @param {Object} props
|
|
1636
1645
|
*/
|
|
1646
|
+
|
|
1647
|
+
|
|
1637
1648
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1638
1649
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1639
1650
|
}
|
|
1640
1651
|
|
|
1641
|
-
var YouTube = function (_React$Component) {
|
|
1652
|
+
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
1642
1653
|
_inherits(YouTube, _React$Component);
|
|
1643
1654
|
|
|
1655
|
+
var _super = _createSuper(YouTube);
|
|
1656
|
+
|
|
1657
|
+
/**
|
|
1658
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1659
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1660
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1661
|
+
*/
|
|
1644
1662
|
function YouTube(props) {
|
|
1663
|
+
var _this;
|
|
1664
|
+
|
|
1645
1665
|
_classCallCheck(this, YouTube);
|
|
1646
1666
|
|
|
1647
|
-
|
|
1667
|
+
_this = _super.call(this, props);
|
|
1648
1668
|
|
|
1649
|
-
_this
|
|
1669
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
|
|
1650
1670
|
return _this.props.onReady(event);
|
|
1651
|
-
};
|
|
1671
|
+
});
|
|
1652
1672
|
|
|
1653
|
-
_this
|
|
1673
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
|
|
1654
1674
|
return _this.props.onError(event);
|
|
1655
|
-
};
|
|
1675
|
+
});
|
|
1656
1676
|
|
|
1657
|
-
_this
|
|
1677
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
|
|
1658
1678
|
_this.props.onStateChange(event);
|
|
1659
|
-
switch (event.data) {
|
|
1660
1679
|
|
|
1680
|
+
switch (event.data) {
|
|
1661
1681
|
case YouTube.PlayerState.ENDED:
|
|
1662
1682
|
_this.props.onEnd(event);
|
|
1683
|
+
|
|
1663
1684
|
break;
|
|
1664
1685
|
|
|
1665
1686
|
case YouTube.PlayerState.PLAYING:
|
|
1666
1687
|
_this.props.onPlay(event);
|
|
1688
|
+
|
|
1667
1689
|
break;
|
|
1668
1690
|
|
|
1669
1691
|
case YouTube.PlayerState.PAUSED:
|
|
1670
1692
|
_this.props.onPause(event);
|
|
1693
|
+
|
|
1671
1694
|
break;
|
|
1672
1695
|
}
|
|
1673
|
-
};
|
|
1696
|
+
});
|
|
1674
1697
|
|
|
1675
|
-
_this
|
|
1698
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
|
|
1676
1699
|
return _this.props.onPlaybackRateChange(event);
|
|
1677
|
-
};
|
|
1700
|
+
});
|
|
1678
1701
|
|
|
1679
|
-
_this
|
|
1702
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
|
|
1680
1703
|
return _this.props.onPlaybackQualityChange(event);
|
|
1681
|
-
};
|
|
1704
|
+
});
|
|
1682
1705
|
|
|
1683
|
-
_this
|
|
1706
|
+
_defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
|
|
1684
1707
|
// do not attempt to create a player server-side, it won't work
|
|
1685
|
-
if (typeof document === 'undefined') return;
|
|
1686
|
-
|
|
1687
|
-
var playerOpts =
|
|
1708
|
+
if (typeof document === 'undefined') return; // create player
|
|
1709
|
+
|
|
1710
|
+
var playerOpts = _objectSpread(_objectSpread({}, _this.props.opts), {}, {
|
|
1688
1711
|
// preload the `videoId` video if one is already given
|
|
1689
1712
|
videoId: _this.props.videoId
|
|
1690
1713
|
});
|
|
1691
|
-
|
|
1692
|
-
// attach event handlers
|
|
1714
|
+
|
|
1715
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
|
|
1716
|
+
|
|
1693
1717
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1718
|
+
|
|
1694
1719
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1720
|
+
|
|
1695
1721
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1722
|
+
|
|
1696
1723
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1724
|
+
|
|
1697
1725
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1698
|
-
};
|
|
1726
|
+
});
|
|
1699
1727
|
|
|
1700
|
-
_this
|
|
1728
|
+
_defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
|
|
1701
1729
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1702
|
-
};
|
|
1730
|
+
});
|
|
1703
1731
|
|
|
1704
|
-
_this
|
|
1732
|
+
_defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
|
|
1705
1733
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1706
1734
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1707
1735
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1708
1736
|
});
|
|
1709
|
-
};
|
|
1737
|
+
});
|
|
1738
|
+
|
|
1739
|
+
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1740
|
+
return _this.internalPlayer;
|
|
1741
|
+
});
|
|
1710
1742
|
|
|
1711
|
-
_this
|
|
1743
|
+
_defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
|
|
1712
1744
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1713
1745
|
_this.internalPlayer.stopVideo();
|
|
1746
|
+
|
|
1714
1747
|
return;
|
|
1715
|
-
}
|
|
1748
|
+
} // set queueing options
|
|
1749
|
+
|
|
1716
1750
|
|
|
1717
|
-
// set queueing options
|
|
1718
1751
|
var autoplay = false;
|
|
1719
1752
|
var opts = {
|
|
1720
1753
|
videoId: _this.props.videoId
|
|
1721
1754
|
};
|
|
1755
|
+
|
|
1722
1756
|
if ('playerVars' in _this.props.opts) {
|
|
1723
1757
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1758
|
+
|
|
1724
1759
|
if ('start' in _this.props.opts.playerVars) {
|
|
1725
1760
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1726
1761
|
}
|
|
1762
|
+
|
|
1727
1763
|
if ('end' in _this.props.opts.playerVars) {
|
|
1728
1764
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1729
1765
|
}
|
|
1730
|
-
}
|
|
1766
|
+
} // if autoplay is enabled loadVideoById
|
|
1767
|
+
|
|
1731
1768
|
|
|
1732
|
-
// if autoplay is enabled loadVideoById
|
|
1733
1769
|
if (autoplay) {
|
|
1734
1770
|
_this.internalPlayer.loadVideoById(opts);
|
|
1771
|
+
|
|
1735
1772
|
return;
|
|
1736
|
-
}
|
|
1737
|
-
|
|
1773
|
+
} // default behaviour just cues the video
|
|
1774
|
+
|
|
1775
|
+
|
|
1738
1776
|
_this.internalPlayer.cueVideoById(opts);
|
|
1739
|
-
};
|
|
1777
|
+
});
|
|
1740
1778
|
|
|
1741
|
-
_this
|
|
1779
|
+
_defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
|
|
1742
1780
|
_this.container = container;
|
|
1743
|
-
};
|
|
1781
|
+
});
|
|
1744
1782
|
|
|
1745
1783
|
_this.container = null;
|
|
1746
1784
|
_this.internalPlayer = null;
|
|
1747
1785
|
return _this;
|
|
1748
1786
|
}
|
|
1749
1787
|
|
|
1750
|
-
/**
|
|
1751
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1752
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1753
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1754
|
-
*/
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
1788
|
_createClass(YouTube, [{
|
|
1758
|
-
key:
|
|
1789
|
+
key: "componentDidMount",
|
|
1759
1790
|
value: function componentDidMount() {
|
|
1760
1791
|
this.createPlayer();
|
|
1761
1792
|
}
|
|
1762
1793
|
}, {
|
|
1763
|
-
key:
|
|
1794
|
+
key: "componentDidUpdate",
|
|
1764
1795
|
value: function componentDidUpdate(prevProps) {
|
|
1765
1796
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1766
1797
|
this.updatePlayer();
|
|
@@ -1775,112 +1806,58 @@ var YouTube = function (_React$Component) {
|
|
|
1775
1806
|
}
|
|
1776
1807
|
}
|
|
1777
1808
|
}, {
|
|
1778
|
-
key:
|
|
1809
|
+
key: "componentWillUnmount",
|
|
1779
1810
|
value: function componentWillUnmount() {
|
|
1780
|
-
/**
|
|
1781
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1782
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1783
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1784
|
-
* this method isn't quick enough to reset the container element.
|
|
1811
|
+
/**
|
|
1812
|
+
* Note: The `youtube-player` package that is used promisifies all YouTube
|
|
1813
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1814
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1815
|
+
* this method isn't quick enough to reset the container element.
|
|
1785
1816
|
*/
|
|
1786
1817
|
this.internalPlayer.destroy();
|
|
1787
1818
|
}
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
*
|
|
1791
|
-
*
|
|
1792
|
-
*
|
|
1793
|
-
* @param {Object} target - player object
|
|
1794
|
-
*/
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
/**
|
|
1798
|
-
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1799
|
-
*
|
|
1800
|
-
* @param {Object} event
|
|
1801
|
-
* @param {Integer} data - error type
|
|
1802
|
-
* @param {Object} target - player object
|
|
1803
|
-
*/
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
/**
|
|
1807
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1808
|
-
*
|
|
1809
|
-
* @param {Object} event
|
|
1810
|
-
* @param {Integer} data - status change type
|
|
1811
|
-
* @param {Object} target - actual YT player
|
|
1812
|
-
*/
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
/**
|
|
1816
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1817
|
-
*
|
|
1818
|
-
* @param {Object} event
|
|
1819
|
-
* @param {Float} data - playback rate
|
|
1820
|
-
* @param {Object} target - actual YT player
|
|
1821
|
-
*/
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
/**
|
|
1825
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1826
|
-
*
|
|
1827
|
-
* @param {Object} event
|
|
1828
|
-
* @param {String} data - playback quality
|
|
1829
|
-
* @param {Object} target - actual YT player
|
|
1830
|
-
*/
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
/**
|
|
1834
|
-
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1835
|
-
*/
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
/**
|
|
1839
|
-
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1840
|
-
*/
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
/**
|
|
1844
|
-
* Method to update the id and class of the Youtube Player iframe.
|
|
1845
|
-
* React should update this automatically but since the Youtube Player API
|
|
1846
|
-
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1847
|
-
*/
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
/**
|
|
1851
|
-
* Call Youtube Player API methods to update the currently playing video.
|
|
1852
|
-
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1853
|
-
* Youtube Player API methods to update the video.
|
|
1819
|
+
/**
|
|
1820
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1821
|
+
*
|
|
1822
|
+
* @param {Object} event
|
|
1823
|
+
* @param {Object} target - player object
|
|
1854
1824
|
*/
|
|
1855
1825
|
|
|
1856
1826
|
}, {
|
|
1857
|
-
key:
|
|
1827
|
+
key: "render",
|
|
1858
1828
|
value: function render() {
|
|
1859
|
-
return
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1829
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1830
|
+
className: this.props.containerClassName
|
|
1831
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1832
|
+
id: this.props.id,
|
|
1833
|
+
className: this.props.className,
|
|
1834
|
+
ref: this.refContainer
|
|
1835
|
+
}));
|
|
1864
1836
|
}
|
|
1865
1837
|
}]);
|
|
1866
1838
|
|
|
1867
1839
|
return YouTube;
|
|
1868
|
-
}(
|
|
1840
|
+
}(React.Component);
|
|
1841
|
+
|
|
1842
|
+
_defineProperty(YouTube, "PlayerState", {
|
|
1843
|
+
UNSTARTED: -1,
|
|
1844
|
+
ENDED: 0,
|
|
1845
|
+
PLAYING: 1,
|
|
1846
|
+
PAUSED: 2,
|
|
1847
|
+
BUFFERING: 3,
|
|
1848
|
+
CUED: 5
|
|
1849
|
+
});
|
|
1869
1850
|
|
|
1870
1851
|
YouTube.propTypes = {
|
|
1871
1852
|
videoId: PropTypes.string,
|
|
1872
|
-
|
|
1873
1853
|
// custom ID for player element
|
|
1874
1854
|
id: PropTypes.string,
|
|
1875
|
-
|
|
1876
1855
|
// custom class name for player element
|
|
1877
1856
|
className: PropTypes.string,
|
|
1878
1857
|
// custom class name for player container element
|
|
1879
1858
|
containerClassName: PropTypes.string,
|
|
1880
|
-
|
|
1881
1859
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1882
1860
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1883
|
-
|
|
1884
1861
|
// event subscriptions
|
|
1885
1862
|
onReady: PropTypes.func,
|
|
1886
1863
|
onError: PropTypes.func,
|
|
@@ -1892,6 +1869,7 @@ YouTube.propTypes = {
|
|
|
1892
1869
|
onPlaybackQualityChange: PropTypes.func
|
|
1893
1870
|
};
|
|
1894
1871
|
YouTube.defaultProps = {
|
|
1872
|
+
videoId: null,
|
|
1895
1873
|
id: null,
|
|
1896
1874
|
className: null,
|
|
1897
1875
|
opts: {},
|
|
@@ -1905,14 +1883,6 @@ YouTube.defaultProps = {
|
|
|
1905
1883
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1906
1884
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1907
1885
|
};
|
|
1908
|
-
YouTube.PlayerState = {
|
|
1909
|
-
UNSTARTED: -1,
|
|
1910
|
-
ENDED: 0,
|
|
1911
|
-
PLAYING: 1,
|
|
1912
|
-
PAUSED: 2,
|
|
1913
|
-
BUFFERING: 3,
|
|
1914
|
-
CUED: 5
|
|
1915
|
-
};
|
|
1916
1886
|
|
|
1917
1887
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1918
1888
|
var url = _ref.url;
|
|
@@ -2012,11 +1982,11 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
2012
1982
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
2013
1983
|
};
|
|
2014
1984
|
|
|
2015
|
-
return
|
|
1985
|
+
return React.createElement(
|
|
2016
1986
|
'div',
|
|
2017
1987
|
{ id: 'fluid-video-container' },
|
|
2018
|
-
|
|
2019
|
-
|
|
1988
|
+
React.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
1989
|
+
React.createElement(
|
|
2020
1990
|
'style',
|
|
2021
1991
|
{ jsx: 'true' },
|
|
2022
1992
|
'\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 '
|
|
@@ -2029,20 +1999,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2029
1999
|
content = _ref.content,
|
|
2030
2000
|
getSerializers = _ref.getSerializers;
|
|
2031
2001
|
|
|
2032
|
-
return
|
|
2002
|
+
return React.createElement(
|
|
2033
2003
|
'article',
|
|
2034
2004
|
{ className: 'sidebar' },
|
|
2035
|
-
|
|
2005
|
+
React.createElement(
|
|
2036
2006
|
'div',
|
|
2037
2007
|
null,
|
|
2038
|
-
|
|
2008
|
+
React.createElement(
|
|
2039
2009
|
'h3',
|
|
2040
2010
|
null,
|
|
2041
2011
|
caption
|
|
2042
2012
|
),
|
|
2043
|
-
|
|
2013
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2044
2014
|
),
|
|
2045
|
-
|
|
2015
|
+
React.createElement(
|
|
2046
2016
|
'style',
|
|
2047
2017
|
{ jsx: 'true' },
|
|
2048
2018
|
'\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 '
|
|
@@ -2053,18 +2023,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2053
2023
|
var TableShow = function TableShow(_ref) {
|
|
2054
2024
|
var rows = _ref.rows;
|
|
2055
2025
|
|
|
2056
|
-
return
|
|
2026
|
+
return React.createElement(
|
|
2057
2027
|
Table,
|
|
2058
2028
|
{ bordered: true, hover: true, responsive: true },
|
|
2059
|
-
|
|
2029
|
+
React.createElement(
|
|
2060
2030
|
'tbody',
|
|
2061
2031
|
null,
|
|
2062
2032
|
rows && rows.map(function (row) {
|
|
2063
|
-
return
|
|
2033
|
+
return React.createElement(
|
|
2064
2034
|
'tr',
|
|
2065
2035
|
{ key: row._key },
|
|
2066
2036
|
row.cells && row.cells.map(function (cell, index) {
|
|
2067
|
-
return cell &&
|
|
2037
|
+
return cell && React.createElement(
|
|
2068
2038
|
'td',
|
|
2069
2039
|
{ key: index },
|
|
2070
2040
|
cell
|
|
@@ -2167,18 +2137,18 @@ var Media = function Media(_ref) {
|
|
|
2167
2137
|
margin: imageMargin
|
|
2168
2138
|
};
|
|
2169
2139
|
|
|
2170
|
-
return
|
|
2140
|
+
return React.createElement(
|
|
2171
2141
|
Figure$1,
|
|
2172
2142
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2173
|
-
|
|
2143
|
+
React.createElement(
|
|
2174
2144
|
'a',
|
|
2175
2145
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2176
|
-
|
|
2146
|
+
React.createElement(
|
|
2177
2147
|
LazyLoad,
|
|
2178
2148
|
{ once: true },
|
|
2179
|
-
|
|
2149
|
+
React.createElement(Figure$1.Image, _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt }))
|
|
2180
2150
|
),
|
|
2181
|
-
caption &&
|
|
2151
|
+
caption && React.createElement(
|
|
2182
2152
|
Figure$1.Caption,
|
|
2183
2153
|
{ className: 'media-caption' },
|
|
2184
2154
|
caption
|
|
@@ -2186,9 +2156,9 @@ var Media = function Media(_ref) {
|
|
|
2186
2156
|
)
|
|
2187
2157
|
);
|
|
2188
2158
|
} else if (caption && caption !== '') {
|
|
2189
|
-
return
|
|
2159
|
+
return React.createElement(
|
|
2190
2160
|
'a',
|
|
2191
|
-
_extends
|
|
2161
|
+
_extends({}, uploadDoc.downloadMedia ? {
|
|
2192
2162
|
href: uploadDoc.asset.url + '?dl='
|
|
2193
2163
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2194
2164
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2206,10 +2176,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2206
2176
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2207
2177
|
|
|
2208
2178
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2209
|
-
return
|
|
2179
|
+
return React.createElement(
|
|
2210
2180
|
'div',
|
|
2211
2181
|
{ className: 'd-block text-center mb-3' },
|
|
2212
|
-
|
|
2182
|
+
React.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2213
2183
|
);
|
|
2214
2184
|
};
|
|
2215
2185
|
|
|
@@ -2244,7 +2214,7 @@ var Video = function Video(_ref) {
|
|
|
2244
2214
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2245
2215
|
//console.log('success:', success.ref)
|
|
2246
2216
|
var player = success.ref;
|
|
2247
|
-
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2217
|
+
if (_typeof$1(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2248
2218
|
player.ima3.settings.debug = true;
|
|
2249
2219
|
if (targeting.content_placement && targeting.document_url) {
|
|
2250
2220
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2342,44 +2312,44 @@ var Video = function Video(_ref) {
|
|
|
2342
2312
|
|
|
2343
2313
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2344
2314
|
if (videoID) {
|
|
2345
|
-
return
|
|
2315
|
+
return React.createElement(
|
|
2346
2316
|
'div',
|
|
2347
2317
|
null,
|
|
2348
|
-
|
|
2318
|
+
React.createElement(ReactPlayerLoader, {
|
|
2349
2319
|
onSuccess: onVideoSuccess,
|
|
2350
2320
|
accountId: accountIDs.brightcove.accountId,
|
|
2351
2321
|
videoId: videoID,
|
|
2352
2322
|
playerId: accountIDs.brightcove.playerId,
|
|
2353
2323
|
attrs: { className: 'brightcove', autoplay: 'muted' }
|
|
2354
2324
|
}),
|
|
2355
|
-
|
|
2325
|
+
React.createElement(
|
|
2356
2326
|
'style',
|
|
2357
2327
|
{ jsx: 'true' },
|
|
2358
2328
|
'\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 '
|
|
2359
2329
|
)
|
|
2360
2330
|
);
|
|
2361
2331
|
} else if (playlistID) {
|
|
2362
|
-
return
|
|
2332
|
+
return React.createElement(
|
|
2363
2333
|
'div',
|
|
2364
2334
|
null,
|
|
2365
|
-
|
|
2335
|
+
React.createElement(ReactPlayerLoader, {
|
|
2366
2336
|
accountId: accountIDs.brightcove.accountId,
|
|
2367
2337
|
playlistId: playlistID,
|
|
2368
2338
|
playerId: accountIDs.brightcove.playerId,
|
|
2369
2339
|
onSuccess: onVideoSuccess,
|
|
2370
2340
|
attrs: { className: 'brightcove brightcove-playlist', autoplay: 'muted' }
|
|
2371
2341
|
}),
|
|
2372
|
-
|
|
2342
|
+
React.createElement(
|
|
2373
2343
|
'style',
|
|
2374
2344
|
{ jsx: 'true' },
|
|
2375
2345
|
'\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 '
|
|
2376
2346
|
)
|
|
2377
2347
|
);
|
|
2378
2348
|
} else if (experienceID) {
|
|
2379
|
-
return
|
|
2349
|
+
return React.createElement(
|
|
2380
2350
|
'div',
|
|
2381
2351
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2382
|
-
videoLoaded &&
|
|
2352
|
+
videoLoaded && React.createElement('div', { 'data-experience': experienceID })
|
|
2383
2353
|
);
|
|
2384
2354
|
}
|
|
2385
2355
|
return null;
|
|
@@ -2592,9 +2562,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2592
2562
|
});
|
|
2593
2563
|
|
|
2594
2564
|
unwrapExports(props);
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2565
|
+
props.DEPRECATED_CONFIG_PROPS;
|
|
2566
|
+
props.defaultProps;
|
|
2567
|
+
props.propTypes;
|
|
2598
2568
|
|
|
2599
2569
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2600
2570
|
return isNonNullObject(value)
|
|
@@ -2759,11 +2729,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2759
2729
|
|
|
2760
2730
|
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; }
|
|
2761
2731
|
|
|
2762
|
-
function
|
|
2732
|
+
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(_e2) { throw _e2; }, 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(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
2733
|
+
|
|
2734
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2735
|
+
|
|
2736
|
+
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."); }
|
|
2763
2737
|
|
|
2764
|
-
function
|
|
2738
|
+
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); }
|
|
2765
2739
|
|
|
2766
|
-
function
|
|
2740
|
+
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; }
|
|
2741
|
+
|
|
2742
|
+
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; }
|
|
2767
2743
|
|
|
2768
2744
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2769
2745
|
|
|
@@ -2893,12 +2869,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
2893
2869
|
|
|
2894
2870
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
2895
2871
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
2896
|
-
|
|
2897
|
-
var
|
|
2898
|
-
|
|
2872
|
+
|
|
2873
|
+
var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
|
|
2874
|
+
_step;
|
|
2899
2875
|
|
|
2900
2876
|
try {
|
|
2901
|
-
for (
|
|
2877
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
2902
2878
|
var p = _step.value;
|
|
2903
2879
|
|
|
2904
2880
|
if (props$1[p]) {
|
|
@@ -2913,18 +2889,9 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
2913
2889
|
}
|
|
2914
2890
|
}
|
|
2915
2891
|
} catch (err) {
|
|
2916
|
-
|
|
2917
|
-
_iteratorError = err;
|
|
2892
|
+
_iterator.e(err);
|
|
2918
2893
|
} finally {
|
|
2919
|
-
|
|
2920
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
2921
|
-
_iterator["return"]();
|
|
2922
|
-
}
|
|
2923
|
-
} finally {
|
|
2924
|
-
if (_didIteratorError) {
|
|
2925
|
-
throw _iteratorError;
|
|
2926
|
-
}
|
|
2927
|
-
}
|
|
2894
|
+
_iterator.f();
|
|
2928
2895
|
}
|
|
2929
2896
|
|
|
2930
2897
|
return config;
|
|
@@ -2989,7 +2956,7 @@ function isEqual(a, b) {
|
|
|
2989
2956
|
return true;
|
|
2990
2957
|
}
|
|
2991
2958
|
|
|
2992
|
-
if ((0,
|
|
2959
|
+
if ((0, React.isValidElement)(a) && (0, React.isValidElement)(b)) {
|
|
2993
2960
|
return true;
|
|
2994
2961
|
}
|
|
2995
2962
|
|
|
@@ -3032,17 +2999,17 @@ function isMediaStream(url) {
|
|
|
3032
2999
|
});
|
|
3033
3000
|
|
|
3034
3001
|
unwrapExports(utils);
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3002
|
+
utils.parseStartTime;
|
|
3003
|
+
utils.parseEndTime;
|
|
3004
|
+
utils.randomString;
|
|
3005
|
+
utils.queryString;
|
|
3006
|
+
utils.getSDK;
|
|
3007
|
+
utils.getConfig;
|
|
3008
|
+
utils.omit;
|
|
3009
|
+
utils.callPlayer;
|
|
3010
|
+
utils.isObject;
|
|
3011
|
+
utils.isEqual;
|
|
3012
|
+
utils.isMediaStream;
|
|
3046
3013
|
|
|
3047
3014
|
var Player_1 = createCommonjsModule(function (module, exports) {
|
|
3048
3015
|
|
|
@@ -3051,7 +3018,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3051
3018
|
});
|
|
3052
3019
|
exports["default"] = void 0;
|
|
3053
3020
|
|
|
3054
|
-
var _react = _interopRequireWildcard(
|
|
3021
|
+
var _react = _interopRequireWildcard(React);
|
|
3055
3022
|
|
|
3056
3023
|
|
|
3057
3024
|
|
|
@@ -3071,12 +3038,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3071
3038
|
|
|
3072
3039
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3073
3040
|
|
|
3074
|
-
function
|
|
3041
|
+
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); }; }
|
|
3075
3042
|
|
|
3076
|
-
function
|
|
3043
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3077
3044
|
|
|
3078
3045
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3079
3046
|
|
|
3047
|
+
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; } }
|
|
3048
|
+
|
|
3049
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3050
|
+
|
|
3080
3051
|
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); }
|
|
3081
3052
|
|
|
3082
3053
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3085,14 +3056,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3085
3056
|
|
|
3086
3057
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3087
3058
|
|
|
3088
|
-
var Player =
|
|
3089
|
-
/*#__PURE__*/
|
|
3090
|
-
function (_Component) {
|
|
3059
|
+
var Player = /*#__PURE__*/function (_Component) {
|
|
3091
3060
|
_inherits(Player, _Component);
|
|
3092
3061
|
|
|
3093
|
-
|
|
3094
|
-
var _getPrototypeOf2;
|
|
3062
|
+
var _super = _createSuper(Player);
|
|
3095
3063
|
|
|
3064
|
+
function Player() {
|
|
3096
3065
|
var _this;
|
|
3097
3066
|
|
|
3098
3067
|
_classCallCheck(this, Player);
|
|
@@ -3101,7 +3070,7 @@ function (_Component) {
|
|
|
3101
3070
|
_args[_key] = arguments[_key];
|
|
3102
3071
|
}
|
|
3103
3072
|
|
|
3104
|
-
_this =
|
|
3073
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
3105
3074
|
|
|
3106
3075
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3107
3076
|
|
|
@@ -3426,7 +3395,7 @@ function (_Component) {
|
|
|
3426
3395
|
return null;
|
|
3427
3396
|
}
|
|
3428
3397
|
|
|
3429
|
-
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3398
|
+
return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
|
|
3430
3399
|
ref: this.ref,
|
|
3431
3400
|
onReady: this.handleReady,
|
|
3432
3401
|
onPlay: this.handlePlay,
|
|
@@ -3459,7 +3428,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3459
3428
|
});
|
|
3460
3429
|
exports["default"] = createSinglePlayer;
|
|
3461
3430
|
|
|
3462
|
-
var _react = _interopRequireWildcard(
|
|
3431
|
+
var _react = _interopRequireWildcard(React);
|
|
3463
3432
|
|
|
3464
3433
|
|
|
3465
3434
|
|
|
@@ -3487,12 +3456,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3487
3456
|
|
|
3488
3457
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3489
3458
|
|
|
3490
|
-
function
|
|
3459
|
+
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); }; }
|
|
3491
3460
|
|
|
3492
|
-
function
|
|
3461
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3493
3462
|
|
|
3494
3463
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3495
3464
|
|
|
3465
|
+
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; } }
|
|
3466
|
+
|
|
3467
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3468
|
+
|
|
3496
3469
|
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); }
|
|
3497
3470
|
|
|
3498
3471
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3504,14 +3477,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3504
3477
|
function createSinglePlayer(activePlayer) {
|
|
3505
3478
|
var _class, _temp;
|
|
3506
3479
|
|
|
3507
|
-
return _temp = _class =
|
|
3508
|
-
/*#__PURE__*/
|
|
3509
|
-
function (_Component) {
|
|
3480
|
+
return _temp = _class = /*#__PURE__*/function (_Component) {
|
|
3510
3481
|
_inherits(SinglePlayer, _Component);
|
|
3511
3482
|
|
|
3512
|
-
|
|
3513
|
-
var _getPrototypeOf2;
|
|
3483
|
+
var _super = _createSuper(SinglePlayer);
|
|
3514
3484
|
|
|
3485
|
+
function SinglePlayer() {
|
|
3515
3486
|
var _this;
|
|
3516
3487
|
|
|
3517
3488
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3520,7 +3491,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3520
3491
|
args[_key] = arguments[_key];
|
|
3521
3492
|
}
|
|
3522
3493
|
|
|
3523
|
-
_this =
|
|
3494
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3524
3495
|
|
|
3525
3496
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3526
3497
|
|
|
@@ -3588,12 +3559,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3588
3559
|
height = _this$props.height,
|
|
3589
3560
|
Wrapper = _this$props.wrapper;
|
|
3590
3561
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3591
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
3562
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
3592
3563
|
style: _objectSpread({}, style, {
|
|
3593
3564
|
width: width,
|
|
3594
3565
|
height: height
|
|
3595
3566
|
})
|
|
3596
|
-
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3567
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3597
3568
|
ref: this.ref,
|
|
3598
3569
|
activePlayer: activePlayer,
|
|
3599
3570
|
config: this.config
|
|
@@ -3615,7 +3586,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3615
3586
|
});
|
|
3616
3587
|
exports["default"] = exports.YouTube = void 0;
|
|
3617
3588
|
|
|
3618
|
-
var _react = _interopRequireWildcard(
|
|
3589
|
+
var _react = _interopRequireWildcard(React);
|
|
3619
3590
|
|
|
3620
3591
|
|
|
3621
3592
|
|
|
@@ -3639,23 +3610,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3639
3610
|
|
|
3640
3611
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3641
3612
|
|
|
3642
|
-
function
|
|
3613
|
+
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); }; }
|
|
3643
3614
|
|
|
3644
|
-
function
|
|
3615
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3645
3616
|
|
|
3646
3617
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3647
3618
|
|
|
3619
|
+
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; } }
|
|
3620
|
+
|
|
3621
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3622
|
+
|
|
3648
3623
|
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); }
|
|
3649
3624
|
|
|
3650
3625
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3651
3626
|
|
|
3652
3627
|
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; }
|
|
3653
3628
|
|
|
3654
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3629
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3630
|
+
|
|
3631
|
+
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."); }
|
|
3632
|
+
|
|
3633
|
+
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); }
|
|
3655
3634
|
|
|
3656
|
-
function
|
|
3635
|
+
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; }
|
|
3657
3636
|
|
|
3658
|
-
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr)
|
|
3637
|
+
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; }
|
|
3659
3638
|
|
|
3660
3639
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3661
3640
|
|
|
@@ -3680,14 +3659,12 @@ function parsePlaylist(url) {
|
|
|
3680
3659
|
return {};
|
|
3681
3660
|
}
|
|
3682
3661
|
|
|
3683
|
-
var YouTube =
|
|
3684
|
-
/*#__PURE__*/
|
|
3685
|
-
function (_Component) {
|
|
3662
|
+
var YouTube = /*#__PURE__*/function (_Component) {
|
|
3686
3663
|
_inherits(YouTube, _Component);
|
|
3687
3664
|
|
|
3688
|
-
|
|
3689
|
-
var _getPrototypeOf2;
|
|
3665
|
+
var _super = _createSuper(YouTube);
|
|
3690
3666
|
|
|
3667
|
+
function YouTube() {
|
|
3691
3668
|
var _this;
|
|
3692
3669
|
|
|
3693
3670
|
_classCallCheck(this, YouTube);
|
|
@@ -3696,7 +3673,7 @@ function (_Component) {
|
|
|
3696
3673
|
args[_key] = arguments[_key];
|
|
3697
3674
|
}
|
|
3698
3675
|
|
|
3699
|
-
_this =
|
|
3676
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3700
3677
|
|
|
3701
3678
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3702
3679
|
|
|
@@ -3884,9 +3861,9 @@ function (_Component) {
|
|
|
3884
3861
|
height: '100%',
|
|
3885
3862
|
display: display
|
|
3886
3863
|
};
|
|
3887
|
-
return _react["default"].createElement("div", {
|
|
3864
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
3888
3865
|
style: style
|
|
3889
|
-
}, _react["default"].createElement("div", {
|
|
3866
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
3890
3867
|
ref: this.ref
|
|
3891
3868
|
}));
|
|
3892
3869
|
}
|
|
@@ -3909,7 +3886,7 @@ exports["default"] = _default;
|
|
|
3909
3886
|
});
|
|
3910
3887
|
|
|
3911
3888
|
unwrapExports(YouTube_1);
|
|
3912
|
-
|
|
3889
|
+
YouTube_1.YouTube;
|
|
3913
3890
|
|
|
3914
3891
|
var SoundCloud_1 = createCommonjsModule(function (module, exports) {
|
|
3915
3892
|
|
|
@@ -3918,7 +3895,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3918
3895
|
});
|
|
3919
3896
|
exports["default"] = exports.SoundCloud = void 0;
|
|
3920
3897
|
|
|
3921
|
-
var _react = _interopRequireWildcard(
|
|
3898
|
+
var _react = _interopRequireWildcard(React);
|
|
3922
3899
|
|
|
3923
3900
|
|
|
3924
3901
|
|
|
@@ -3942,12 +3919,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3942
3919
|
|
|
3943
3920
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3944
3921
|
|
|
3945
|
-
function
|
|
3922
|
+
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); }; }
|
|
3946
3923
|
|
|
3947
|
-
function
|
|
3924
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3948
3925
|
|
|
3949
3926
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3950
3927
|
|
|
3928
|
+
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; } }
|
|
3929
|
+
|
|
3930
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3931
|
+
|
|
3951
3932
|
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); }
|
|
3952
3933
|
|
|
3953
3934
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3956,16 +3937,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3956
3937
|
|
|
3957
3938
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
3958
3939
|
var SDK_GLOBAL = 'SC';
|
|
3959
|
-
var MATCH_URL = /(soundcloud\.com|snd\.sc)
|
|
3940
|
+
var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
3960
3941
|
|
|
3961
|
-
var SoundCloud =
|
|
3962
|
-
/*#__PURE__*/
|
|
3963
|
-
function (_Component) {
|
|
3942
|
+
var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
3964
3943
|
_inherits(SoundCloud, _Component);
|
|
3965
3944
|
|
|
3966
|
-
|
|
3967
|
-
var _getPrototypeOf2;
|
|
3945
|
+
var _super = _createSuper(SoundCloud);
|
|
3968
3946
|
|
|
3947
|
+
function SoundCloud() {
|
|
3969
3948
|
var _this;
|
|
3970
3949
|
|
|
3971
3950
|
_classCallCheck(this, SoundCloud);
|
|
@@ -3974,7 +3953,7 @@ function (_Component) {
|
|
|
3974
3953
|
args[_key] = arguments[_key];
|
|
3975
3954
|
}
|
|
3976
3955
|
|
|
3977
|
-
_this =
|
|
3956
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3978
3957
|
|
|
3979
3958
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3980
3959
|
|
|
@@ -4095,7 +4074,7 @@ function (_Component) {
|
|
|
4095
4074
|
height: '100%',
|
|
4096
4075
|
display: display
|
|
4097
4076
|
};
|
|
4098
|
-
return _react["default"].createElement("iframe", {
|
|
4077
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4099
4078
|
ref: this.ref,
|
|
4100
4079
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4101
4080
|
style: style,
|
|
@@ -4124,7 +4103,7 @@ exports["default"] = _default;
|
|
|
4124
4103
|
});
|
|
4125
4104
|
|
|
4126
4105
|
unwrapExports(SoundCloud_1);
|
|
4127
|
-
|
|
4106
|
+
SoundCloud_1.SoundCloud;
|
|
4128
4107
|
|
|
4129
4108
|
var Vimeo_1 = createCommonjsModule(function (module, exports) {
|
|
4130
4109
|
|
|
@@ -4133,7 +4112,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4133
4112
|
});
|
|
4134
4113
|
exports["default"] = exports.Vimeo = void 0;
|
|
4135
4114
|
|
|
4136
|
-
var _react = _interopRequireWildcard(
|
|
4115
|
+
var _react = _interopRequireWildcard(React);
|
|
4137
4116
|
|
|
4138
4117
|
|
|
4139
4118
|
|
|
@@ -4157,12 +4136,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4157
4136
|
|
|
4158
4137
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4159
4138
|
|
|
4160
|
-
function
|
|
4139
|
+
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); }; }
|
|
4161
4140
|
|
|
4162
|
-
function
|
|
4141
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4163
4142
|
|
|
4164
4143
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4165
4144
|
|
|
4145
|
+
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; } }
|
|
4146
|
+
|
|
4147
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4148
|
+
|
|
4166
4149
|
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); }
|
|
4167
4150
|
|
|
4168
4151
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4174,14 +4157,12 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4174
4157
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4175
4158
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4176
4159
|
|
|
4177
|
-
var Vimeo =
|
|
4178
|
-
/*#__PURE__*/
|
|
4179
|
-
function (_Component) {
|
|
4160
|
+
var Vimeo = /*#__PURE__*/function (_Component) {
|
|
4180
4161
|
_inherits(Vimeo, _Component);
|
|
4181
4162
|
|
|
4182
|
-
|
|
4183
|
-
var _getPrototypeOf2;
|
|
4163
|
+
var _super = _createSuper(Vimeo);
|
|
4184
4164
|
|
|
4165
|
+
function Vimeo() {
|
|
4185
4166
|
var _this;
|
|
4186
4167
|
|
|
4187
4168
|
_classCallCheck(this, Vimeo);
|
|
@@ -4190,7 +4171,7 @@ function (_Component) {
|
|
|
4190
4171
|
args[_key] = arguments[_key];
|
|
4191
4172
|
}
|
|
4192
4173
|
|
|
4193
|
-
_this =
|
|
4174
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4194
4175
|
|
|
4195
4176
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4196
4177
|
|
|
@@ -4347,7 +4328,7 @@ function (_Component) {
|
|
|
4347
4328
|
overflow: 'hidden',
|
|
4348
4329
|
display: display
|
|
4349
4330
|
};
|
|
4350
|
-
return _react["default"].createElement("div", {
|
|
4331
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4351
4332
|
key: this.props.url,
|
|
4352
4333
|
ref: this.ref,
|
|
4353
4334
|
style: style
|
|
@@ -4378,7 +4359,7 @@ exports["default"] = _default;
|
|
|
4378
4359
|
});
|
|
4379
4360
|
|
|
4380
4361
|
unwrapExports(Vimeo_1);
|
|
4381
|
-
|
|
4362
|
+
Vimeo_1.Vimeo;
|
|
4382
4363
|
|
|
4383
4364
|
var Facebook_1 = createCommonjsModule(function (module, exports) {
|
|
4384
4365
|
|
|
@@ -4387,7 +4368,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4387
4368
|
});
|
|
4388
4369
|
exports["default"] = exports.Facebook = void 0;
|
|
4389
4370
|
|
|
4390
|
-
var _react = _interopRequireWildcard(
|
|
4371
|
+
var _react = _interopRequireWildcard(React);
|
|
4391
4372
|
|
|
4392
4373
|
|
|
4393
4374
|
|
|
@@ -4407,12 +4388,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4407
4388
|
|
|
4408
4389
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4409
4390
|
|
|
4410
|
-
function
|
|
4391
|
+
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); }; }
|
|
4411
4392
|
|
|
4412
|
-
function
|
|
4393
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4413
4394
|
|
|
4414
4395
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4415
4396
|
|
|
4397
|
+
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; } }
|
|
4398
|
+
|
|
4399
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4400
|
+
|
|
4416
4401
|
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); }
|
|
4417
4402
|
|
|
4418
4403
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4425,14 +4410,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4425
4410
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4426
4411
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4427
4412
|
|
|
4428
|
-
var Facebook =
|
|
4429
|
-
/*#__PURE__*/
|
|
4430
|
-
function (_Component) {
|
|
4413
|
+
var Facebook = /*#__PURE__*/function (_Component) {
|
|
4431
4414
|
_inherits(Facebook, _Component);
|
|
4432
4415
|
|
|
4433
|
-
|
|
4434
|
-
var _getPrototypeOf2;
|
|
4416
|
+
var _super = _createSuper(Facebook);
|
|
4435
4417
|
|
|
4418
|
+
function Facebook() {
|
|
4436
4419
|
var _this;
|
|
4437
4420
|
|
|
4438
4421
|
_classCallCheck(this, Facebook);
|
|
@@ -4441,7 +4424,7 @@ function (_Component) {
|
|
|
4441
4424
|
args[_key] = arguments[_key];
|
|
4442
4425
|
}
|
|
4443
4426
|
|
|
4444
|
-
_this =
|
|
4427
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4445
4428
|
|
|
4446
4429
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4447
4430
|
|
|
@@ -4557,7 +4540,7 @@ function (_Component) {
|
|
|
4557
4540
|
width: '100%',
|
|
4558
4541
|
height: '100%'
|
|
4559
4542
|
};
|
|
4560
|
-
return _react["default"].createElement("div", {
|
|
4543
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4561
4544
|
style: style,
|
|
4562
4545
|
id: this.playerID,
|
|
4563
4546
|
className: "fb-video",
|
|
@@ -4588,7 +4571,7 @@ exports["default"] = _default;
|
|
|
4588
4571
|
});
|
|
4589
4572
|
|
|
4590
4573
|
unwrapExports(Facebook_1);
|
|
4591
|
-
|
|
4574
|
+
Facebook_1.Facebook;
|
|
4592
4575
|
|
|
4593
4576
|
var Streamable_1 = createCommonjsModule(function (module, exports) {
|
|
4594
4577
|
|
|
@@ -4597,7 +4580,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4597
4580
|
});
|
|
4598
4581
|
exports["default"] = exports.Streamable = void 0;
|
|
4599
4582
|
|
|
4600
|
-
var _react = _interopRequireWildcard(
|
|
4583
|
+
var _react = _interopRequireWildcard(React);
|
|
4601
4584
|
|
|
4602
4585
|
|
|
4603
4586
|
|
|
@@ -4617,12 +4600,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4617
4600
|
|
|
4618
4601
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4619
4602
|
|
|
4620
|
-
function
|
|
4603
|
+
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); }; }
|
|
4621
4604
|
|
|
4622
|
-
function
|
|
4605
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4623
4606
|
|
|
4624
4607
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4625
4608
|
|
|
4609
|
+
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; } }
|
|
4610
|
+
|
|
4611
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4612
|
+
|
|
4626
4613
|
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); }
|
|
4627
4614
|
|
|
4628
4615
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4633,14 +4620,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4633
4620
|
var SDK_GLOBAL = 'playerjs';
|
|
4634
4621
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4635
4622
|
|
|
4636
|
-
var Streamable =
|
|
4637
|
-
/*#__PURE__*/
|
|
4638
|
-
function (_Component) {
|
|
4623
|
+
var Streamable = /*#__PURE__*/function (_Component) {
|
|
4639
4624
|
_inherits(Streamable, _Component);
|
|
4640
4625
|
|
|
4641
|
-
|
|
4642
|
-
var _getPrototypeOf2;
|
|
4626
|
+
var _super = _createSuper(Streamable);
|
|
4643
4627
|
|
|
4628
|
+
function Streamable() {
|
|
4644
4629
|
var _this;
|
|
4645
4630
|
|
|
4646
4631
|
_classCallCheck(this, Streamable);
|
|
@@ -4649,7 +4634,7 @@ function (_Component) {
|
|
|
4649
4634
|
args[_key] = arguments[_key];
|
|
4650
4635
|
}
|
|
4651
4636
|
|
|
4652
|
-
_this =
|
|
4637
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4653
4638
|
|
|
4654
4639
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4655
4640
|
|
|
@@ -4769,7 +4754,7 @@ function (_Component) {
|
|
|
4769
4754
|
width: '100%',
|
|
4770
4755
|
height: '100%'
|
|
4771
4756
|
};
|
|
4772
|
-
return _react["default"].createElement("iframe", {
|
|
4757
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4773
4758
|
ref: this.ref,
|
|
4774
4759
|
src: "https://streamable.com/o/".concat(id),
|
|
4775
4760
|
frameBorder: "0",
|
|
@@ -4797,7 +4782,7 @@ exports["default"] = _default;
|
|
|
4797
4782
|
});
|
|
4798
4783
|
|
|
4799
4784
|
unwrapExports(Streamable_1);
|
|
4800
|
-
|
|
4785
|
+
Streamable_1.Streamable;
|
|
4801
4786
|
|
|
4802
4787
|
var Wistia_1 = createCommonjsModule(function (module, exports) {
|
|
4803
4788
|
|
|
@@ -4806,7 +4791,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4806
4791
|
});
|
|
4807
4792
|
exports["default"] = exports.Wistia = void 0;
|
|
4808
4793
|
|
|
4809
|
-
var _react = _interopRequireWildcard(
|
|
4794
|
+
var _react = _interopRequireWildcard(React);
|
|
4810
4795
|
|
|
4811
4796
|
|
|
4812
4797
|
|
|
@@ -4830,12 +4815,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4830
4815
|
|
|
4831
4816
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4832
4817
|
|
|
4833
|
-
function
|
|
4818
|
+
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); }; }
|
|
4834
4819
|
|
|
4835
|
-
function
|
|
4820
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4836
4821
|
|
|
4837
4822
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4838
4823
|
|
|
4824
|
+
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; } }
|
|
4825
|
+
|
|
4826
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4827
|
+
|
|
4839
4828
|
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); }
|
|
4840
4829
|
|
|
4841
4830
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4846,26 +4835,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4846
4835
|
var SDK_GLOBAL = 'Wistia';
|
|
4847
4836
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4848
4837
|
|
|
4849
|
-
var Wistia =
|
|
4850
|
-
/*#__PURE__*/
|
|
4851
|
-
function (_Component) {
|
|
4838
|
+
var Wistia = /*#__PURE__*/function (_Component) {
|
|
4852
4839
|
_inherits(Wistia, _Component);
|
|
4853
4840
|
|
|
4854
|
-
|
|
4855
|
-
var _getPrototypeOf2;
|
|
4841
|
+
var _super = _createSuper(Wistia);
|
|
4856
4842
|
|
|
4843
|
+
function Wistia() {
|
|
4857
4844
|
var _this;
|
|
4858
4845
|
|
|
4859
4846
|
_classCallCheck(this, Wistia);
|
|
4860
4847
|
|
|
4861
|
-
for (var _len = arguments.length,
|
|
4862
|
-
|
|
4848
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4849
|
+
_args[_key] = arguments[_key];
|
|
4863
4850
|
}
|
|
4864
4851
|
|
|
4865
|
-
_this =
|
|
4852
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
4866
4853
|
|
|
4867
4854
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4868
4855
|
|
|
4856
|
+
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4857
|
+
var _this$props;
|
|
4858
|
+
|
|
4859
|
+
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4860
|
+
});
|
|
4861
|
+
|
|
4862
|
+
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4863
|
+
var _this$props2;
|
|
4864
|
+
|
|
4865
|
+
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4866
|
+
});
|
|
4867
|
+
|
|
4868
|
+
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
4869
|
+
var _this$props3;
|
|
4870
|
+
|
|
4871
|
+
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
4872
|
+
});
|
|
4873
|
+
|
|
4874
|
+
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
4875
|
+
var _this$props4;
|
|
4876
|
+
|
|
4877
|
+
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
4878
|
+
});
|
|
4879
|
+
|
|
4869
4880
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
4870
4881
|
_this.callPlayer('mute');
|
|
4871
4882
|
});
|
|
@@ -4887,17 +4898,13 @@ function (_Component) {
|
|
|
4887
4898
|
value: function load(url) {
|
|
4888
4899
|
var _this2 = this;
|
|
4889
4900
|
|
|
4890
|
-
var _this$
|
|
4891
|
-
playing = _this$
|
|
4892
|
-
muted = _this$
|
|
4893
|
-
controls = _this$
|
|
4894
|
-
_onReady = _this$
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
onSeek = _this$props.onSeek,
|
|
4898
|
-
onEnded = _this$props.onEnded,
|
|
4899
|
-
config = _this$props.config,
|
|
4900
|
-
onError = _this$props.onError;
|
|
4901
|
+
var _this$props5 = this.props,
|
|
4902
|
+
playing = _this$props5.playing,
|
|
4903
|
+
muted = _this$props5.muted,
|
|
4904
|
+
controls = _this$props5.controls,
|
|
4905
|
+
_onReady = _this$props5.onReady,
|
|
4906
|
+
config = _this$props5.config,
|
|
4907
|
+
onError = _this$props5.onError;
|
|
4901
4908
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
4902
4909
|
window._wq = window._wq || [];
|
|
4903
4910
|
|
|
@@ -4914,19 +4921,28 @@ function (_Component) {
|
|
|
4914
4921
|
|
|
4915
4922
|
_this2.unbind();
|
|
4916
4923
|
|
|
4917
|
-
_this2.player.bind('play', onPlay);
|
|
4924
|
+
_this2.player.bind('play', _this2.onPlay);
|
|
4918
4925
|
|
|
4919
|
-
_this2.player.bind('pause', onPause);
|
|
4926
|
+
_this2.player.bind('pause', _this2.onPause);
|
|
4920
4927
|
|
|
4921
|
-
_this2.player.bind('seek', onSeek);
|
|
4928
|
+
_this2.player.bind('seek', _this2.onSeek);
|
|
4922
4929
|
|
|
4923
|
-
_this2.player.bind('end', onEnded);
|
|
4930
|
+
_this2.player.bind('end', _this2.onEnded);
|
|
4924
4931
|
|
|
4925
4932
|
_onReady();
|
|
4926
4933
|
}
|
|
4927
4934
|
});
|
|
4928
4935
|
}, onError);
|
|
4929
4936
|
}
|
|
4937
|
+
}, {
|
|
4938
|
+
key: "unbind",
|
|
4939
|
+
value: function unbind() {
|
|
4940
|
+
this.player.unbind('play', this.onPlay);
|
|
4941
|
+
this.player.unbind('pause', this.onPause);
|
|
4942
|
+
this.player.unbind('seek', this.onSeek);
|
|
4943
|
+
this.player.unbind('end', this.onEnded);
|
|
4944
|
+
} // Proxy methods to prevent listener leaks
|
|
4945
|
+
|
|
4930
4946
|
}, {
|
|
4931
4947
|
key: "play",
|
|
4932
4948
|
value: function play() {
|
|
@@ -4937,19 +4953,6 @@ function (_Component) {
|
|
|
4937
4953
|
value: function pause() {
|
|
4938
4954
|
this.callPlayer('pause');
|
|
4939
4955
|
}
|
|
4940
|
-
}, {
|
|
4941
|
-
key: "unbind",
|
|
4942
|
-
value: function unbind() {
|
|
4943
|
-
var _this$props2 = this.props,
|
|
4944
|
-
onPlay = _this$props2.onPlay,
|
|
4945
|
-
onPause = _this$props2.onPause,
|
|
4946
|
-
onSeek = _this$props2.onSeek,
|
|
4947
|
-
onEnded = _this$props2.onEnded;
|
|
4948
|
-
this.player.unbind('play', onPlay);
|
|
4949
|
-
this.player.unbind('pause', onPause);
|
|
4950
|
-
this.player.unbind('seek', onSeek);
|
|
4951
|
-
this.player.unbind('end', onEnded);
|
|
4952
|
-
}
|
|
4953
4956
|
}, {
|
|
4954
4957
|
key: "stop",
|
|
4955
4958
|
value: function stop() {
|
|
@@ -4995,7 +4998,7 @@ function (_Component) {
|
|
|
4995
4998
|
width: '100%',
|
|
4996
4999
|
height: '100%'
|
|
4997
5000
|
};
|
|
4998
|
-
return _react["default"].createElement("div", {
|
|
5001
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4999
5002
|
key: id,
|
|
5000
5003
|
className: className,
|
|
5001
5004
|
style: style
|
|
@@ -5022,7 +5025,7 @@ exports["default"] = _default;
|
|
|
5022
5025
|
});
|
|
5023
5026
|
|
|
5024
5027
|
unwrapExports(Wistia_1);
|
|
5025
|
-
|
|
5028
|
+
Wistia_1.Wistia;
|
|
5026
5029
|
|
|
5027
5030
|
var Twitch_1 = createCommonjsModule(function (module, exports) {
|
|
5028
5031
|
|
|
@@ -5031,7 +5034,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5031
5034
|
});
|
|
5032
5035
|
exports["default"] = exports.Twitch = void 0;
|
|
5033
5036
|
|
|
5034
|
-
var _react = _interopRequireWildcard(
|
|
5037
|
+
var _react = _interopRequireWildcard(React);
|
|
5035
5038
|
|
|
5036
5039
|
|
|
5037
5040
|
|
|
@@ -5055,12 +5058,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5055
5058
|
|
|
5056
5059
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5057
5060
|
|
|
5058
|
-
function
|
|
5061
|
+
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); }; }
|
|
5059
5062
|
|
|
5060
|
-
function
|
|
5063
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5061
5064
|
|
|
5062
5065
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5063
5066
|
|
|
5067
|
+
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; } }
|
|
5068
|
+
|
|
5069
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5070
|
+
|
|
5064
5071
|
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); }
|
|
5065
5072
|
|
|
5066
5073
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5073,14 +5080,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5073
5080
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5074
5081
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5075
5082
|
|
|
5076
|
-
var Twitch =
|
|
5077
|
-
/*#__PURE__*/
|
|
5078
|
-
function (_Component) {
|
|
5083
|
+
var Twitch = /*#__PURE__*/function (_Component) {
|
|
5079
5084
|
_inherits(Twitch, _Component);
|
|
5080
5085
|
|
|
5081
|
-
|
|
5082
|
-
var _getPrototypeOf2;
|
|
5086
|
+
var _super = _createSuper(Twitch);
|
|
5083
5087
|
|
|
5088
|
+
function Twitch() {
|
|
5084
5089
|
var _this;
|
|
5085
5090
|
|
|
5086
5091
|
_classCallCheck(this, Twitch);
|
|
@@ -5089,7 +5094,7 @@ function (_Component) {
|
|
|
5089
5094
|
args[_key] = arguments[_key];
|
|
5090
5095
|
}
|
|
5091
5096
|
|
|
5092
|
-
_this =
|
|
5097
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5093
5098
|
|
|
5094
5099
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5095
5100
|
|
|
@@ -5210,7 +5215,7 @@ function (_Component) {
|
|
|
5210
5215
|
width: '100%',
|
|
5211
5216
|
height: '100%'
|
|
5212
5217
|
};
|
|
5213
|
-
return _react["default"].createElement("div", {
|
|
5218
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5214
5219
|
style: style,
|
|
5215
5220
|
id: this.playerID
|
|
5216
5221
|
});
|
|
@@ -5236,7 +5241,7 @@ exports["default"] = _default;
|
|
|
5236
5241
|
});
|
|
5237
5242
|
|
|
5238
5243
|
unwrapExports(Twitch_1);
|
|
5239
|
-
|
|
5244
|
+
Twitch_1.Twitch;
|
|
5240
5245
|
|
|
5241
5246
|
var DailyMotion_1 = createCommonjsModule(function (module, exports) {
|
|
5242
5247
|
|
|
@@ -5245,7 +5250,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5245
5250
|
});
|
|
5246
5251
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5247
5252
|
|
|
5248
|
-
var _react = _interopRequireWildcard(
|
|
5253
|
+
var _react = _interopRequireWildcard(React);
|
|
5249
5254
|
|
|
5250
5255
|
|
|
5251
5256
|
|
|
@@ -5263,11 +5268,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5263
5268
|
|
|
5264
5269
|
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
5270
|
|
|
5266
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5271
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5272
|
+
|
|
5273
|
+
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."); }
|
|
5267
5274
|
|
|
5268
|
-
function
|
|
5275
|
+
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); }
|
|
5269
5276
|
|
|
5270
|
-
function
|
|
5277
|
+
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; }
|
|
5278
|
+
|
|
5279
|
+
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; }
|
|
5271
5280
|
|
|
5272
5281
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5273
5282
|
|
|
@@ -5277,12 +5286,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5277
5286
|
|
|
5278
5287
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5279
5288
|
|
|
5280
|
-
function
|
|
5289
|
+
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); }; }
|
|
5281
5290
|
|
|
5282
|
-
function
|
|
5291
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5283
5292
|
|
|
5284
5293
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5285
5294
|
|
|
5295
|
+
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; } }
|
|
5296
|
+
|
|
5297
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5298
|
+
|
|
5286
5299
|
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); }
|
|
5287
5300
|
|
|
5288
5301
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5294,14 +5307,12 @@ var SDK_GLOBAL = 'DM';
|
|
|
5294
5307
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5295
5308
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5296
5309
|
|
|
5297
|
-
var DailyMotion =
|
|
5298
|
-
/*#__PURE__*/
|
|
5299
|
-
function (_Component) {
|
|
5310
|
+
var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
5300
5311
|
_inherits(DailyMotion, _Component);
|
|
5301
5312
|
|
|
5302
|
-
|
|
5303
|
-
var _getPrototypeOf2;
|
|
5313
|
+
var _super = _createSuper(DailyMotion);
|
|
5304
5314
|
|
|
5315
|
+
function DailyMotion() {
|
|
5305
5316
|
var _this;
|
|
5306
5317
|
|
|
5307
5318
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5310,7 +5321,7 @@ function (_Component) {
|
|
|
5310
5321
|
args[_key] = arguments[_key];
|
|
5311
5322
|
}
|
|
5312
5323
|
|
|
5313
|
-
_this =
|
|
5324
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5314
5325
|
|
|
5315
5326
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5316
5327
|
|
|
@@ -5439,9 +5450,9 @@ function (_Component) {
|
|
|
5439
5450
|
height: '100%',
|
|
5440
5451
|
display: display
|
|
5441
5452
|
};
|
|
5442
|
-
return _react["default"].createElement("div", {
|
|
5453
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5443
5454
|
style: style
|
|
5444
|
-
}, _react["default"].createElement("div", {
|
|
5455
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
5445
5456
|
ref: this.ref
|
|
5446
5457
|
}));
|
|
5447
5458
|
}
|
|
@@ -5466,7 +5477,7 @@ exports["default"] = _default;
|
|
|
5466
5477
|
});
|
|
5467
5478
|
|
|
5468
5479
|
unwrapExports(DailyMotion_1);
|
|
5469
|
-
|
|
5480
|
+
DailyMotion_1.DailyMotion;
|
|
5470
5481
|
|
|
5471
5482
|
var Mixcloud_1 = createCommonjsModule(function (module, exports) {
|
|
5472
5483
|
|
|
@@ -5475,7 +5486,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5475
5486
|
});
|
|
5476
5487
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5477
5488
|
|
|
5478
|
-
var _react = _interopRequireWildcard(
|
|
5489
|
+
var _react = _interopRequireWildcard(React);
|
|
5479
5490
|
|
|
5480
5491
|
|
|
5481
5492
|
|
|
@@ -5499,12 +5510,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5499
5510
|
|
|
5500
5511
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5501
5512
|
|
|
5502
|
-
function
|
|
5513
|
+
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); }; }
|
|
5503
5514
|
|
|
5504
|
-
function
|
|
5515
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5505
5516
|
|
|
5506
5517
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5507
5518
|
|
|
5519
|
+
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; } }
|
|
5520
|
+
|
|
5521
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5522
|
+
|
|
5508
5523
|
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); }
|
|
5509
5524
|
|
|
5510
5525
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5515,14 +5530,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5515
5530
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5516
5531
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5517
5532
|
|
|
5518
|
-
var Mixcloud =
|
|
5519
|
-
/*#__PURE__*/
|
|
5520
|
-
function (_Component) {
|
|
5533
|
+
var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
5521
5534
|
_inherits(Mixcloud, _Component);
|
|
5522
5535
|
|
|
5523
|
-
|
|
5524
|
-
var _getPrototypeOf2;
|
|
5536
|
+
var _super = _createSuper(Mixcloud);
|
|
5525
5537
|
|
|
5538
|
+
function Mixcloud() {
|
|
5526
5539
|
var _this;
|
|
5527
5540
|
|
|
5528
5541
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5531,7 +5544,7 @@ function (_Component) {
|
|
|
5531
5544
|
args[_key] = arguments[_key];
|
|
5532
5545
|
}
|
|
5533
5546
|
|
|
5534
|
-
_this =
|
|
5547
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5535
5548
|
|
|
5536
5549
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5537
5550
|
|
|
@@ -5634,7 +5647,7 @@ function (_Component) {
|
|
|
5634
5647
|
})); // We have to give the iframe a key here to prevent a
|
|
5635
5648
|
// weird dialog appearing when loading a new track
|
|
5636
5649
|
|
|
5637
|
-
return _react["default"].createElement("iframe", {
|
|
5650
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
5638
5651
|
key: id,
|
|
5639
5652
|
ref: this.ref,
|
|
5640
5653
|
style: style,
|
|
@@ -5663,7 +5676,7 @@ exports["default"] = _default;
|
|
|
5663
5676
|
});
|
|
5664
5677
|
|
|
5665
5678
|
unwrapExports(Mixcloud_1);
|
|
5666
|
-
|
|
5679
|
+
Mixcloud_1.Mixcloud;
|
|
5667
5680
|
|
|
5668
5681
|
var FilePlayer_1 = createCommonjsModule(function (module, exports) {
|
|
5669
5682
|
|
|
@@ -5672,7 +5685,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5672
5685
|
});
|
|
5673
5686
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5674
5687
|
|
|
5675
|
-
var _react = _interopRequireWildcard(
|
|
5688
|
+
var _react = _interopRequireWildcard(React);
|
|
5676
5689
|
|
|
5677
5690
|
|
|
5678
5691
|
|
|
@@ -5694,23 +5707,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5694
5707
|
|
|
5695
5708
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5696
5709
|
|
|
5697
|
-
function
|
|
5710
|
+
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); }; }
|
|
5698
5711
|
|
|
5699
|
-
function
|
|
5712
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5700
5713
|
|
|
5701
5714
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5702
5715
|
|
|
5716
|
+
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; } }
|
|
5717
|
+
|
|
5718
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5719
|
+
|
|
5703
5720
|
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); }
|
|
5704
5721
|
|
|
5705
5722
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5706
5723
|
|
|
5707
5724
|
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; }
|
|
5708
5725
|
|
|
5726
|
+
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; } } }; }
|
|
5727
|
+
|
|
5728
|
+
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); }
|
|
5729
|
+
|
|
5730
|
+
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; }
|
|
5731
|
+
|
|
5709
5732
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5710
5733
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5711
5734
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5712
5735
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5713
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5736
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
|
|
5714
5737
|
var HLS_GLOBAL = 'Hls';
|
|
5715
5738
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5716
5739
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5719,12 +5742,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5719
5742
|
|
|
5720
5743
|
function canPlay(url) {
|
|
5721
5744
|
if (url instanceof Array) {
|
|
5722
|
-
var
|
|
5723
|
-
|
|
5724
|
-
var _iteratorError = undefined;
|
|
5745
|
+
var _iterator = _createForOfIteratorHelper(url),
|
|
5746
|
+
_step;
|
|
5725
5747
|
|
|
5726
5748
|
try {
|
|
5727
|
-
for (
|
|
5749
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5728
5750
|
var item = _step.value;
|
|
5729
5751
|
|
|
5730
5752
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5736,18 +5758,9 @@ function canPlay(url) {
|
|
|
5736
5758
|
}
|
|
5737
5759
|
}
|
|
5738
5760
|
} catch (err) {
|
|
5739
|
-
|
|
5740
|
-
_iteratorError = err;
|
|
5761
|
+
_iterator.e(err);
|
|
5741
5762
|
} finally {
|
|
5742
|
-
|
|
5743
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5744
|
-
_iterator["return"]();
|
|
5745
|
-
}
|
|
5746
|
-
} finally {
|
|
5747
|
-
if (_didIteratorError) {
|
|
5748
|
-
throw _iteratorError;
|
|
5749
|
-
}
|
|
5750
|
-
}
|
|
5763
|
+
_iterator.f();
|
|
5751
5764
|
}
|
|
5752
5765
|
|
|
5753
5766
|
return false;
|
|
@@ -5771,14 +5784,12 @@ function canEnablePIP(url) {
|
|
|
5771
5784
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5772
5785
|
}
|
|
5773
5786
|
|
|
5774
|
-
var FilePlayer =
|
|
5775
|
-
/*#__PURE__*/
|
|
5776
|
-
function (_Component) {
|
|
5787
|
+
var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
5777
5788
|
_inherits(FilePlayer, _Component);
|
|
5778
5789
|
|
|
5779
|
-
|
|
5780
|
-
var _getPrototypeOf2;
|
|
5790
|
+
var _super = _createSuper(FilePlayer);
|
|
5781
5791
|
|
|
5792
|
+
function FilePlayer() {
|
|
5782
5793
|
var _this;
|
|
5783
5794
|
|
|
5784
5795
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5787,7 +5798,7 @@ function (_Component) {
|
|
|
5787
5798
|
_args[_key] = arguments[_key];
|
|
5788
5799
|
}
|
|
5789
5800
|
|
|
5790
|
-
_this =
|
|
5801
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5791
5802
|
|
|
5792
5803
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5793
5804
|
var _this$props;
|
|
@@ -5874,19 +5885,19 @@ function (_Component) {
|
|
|
5874
5885
|
|
|
5875
5886
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
5876
5887
|
if (typeof source === 'string') {
|
|
5877
|
-
return _react["default"].createElement("source", {
|
|
5888
|
+
return /*#__PURE__*/_react["default"].createElement("source", {
|
|
5878
5889
|
key: index,
|
|
5879
5890
|
src: source
|
|
5880
5891
|
});
|
|
5881
5892
|
}
|
|
5882
5893
|
|
|
5883
|
-
return _react["default"].createElement("source", _extends({
|
|
5894
|
+
return /*#__PURE__*/_react["default"].createElement("source", _extends({
|
|
5884
5895
|
key: index
|
|
5885
5896
|
}, source));
|
|
5886
5897
|
});
|
|
5887
5898
|
|
|
5888
5899
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
5889
|
-
return _react["default"].createElement("track", _extends({
|
|
5900
|
+
return /*#__PURE__*/_react["default"].createElement("track", _extends({
|
|
5890
5901
|
key: index
|
|
5891
5902
|
}, track));
|
|
5892
5903
|
});
|
|
@@ -5924,6 +5935,10 @@ function (_Component) {
|
|
|
5924
5935
|
key: "componentWillUnmount",
|
|
5925
5936
|
value: function componentWillUnmount() {
|
|
5926
5937
|
this.removeListeners(this.player);
|
|
5938
|
+
|
|
5939
|
+
if (this.hls) {
|
|
5940
|
+
this.hls.destroy();
|
|
5941
|
+
}
|
|
5927
5942
|
}
|
|
5928
5943
|
}, {
|
|
5929
5944
|
key: "addListeners",
|
|
@@ -6054,10 +6069,6 @@ function (_Component) {
|
|
|
6054
6069
|
value: function stop() {
|
|
6055
6070
|
this.player.removeAttribute('src');
|
|
6056
6071
|
|
|
6057
|
-
if (this.hls) {
|
|
6058
|
-
this.hls.destroy();
|
|
6059
|
-
}
|
|
6060
|
-
|
|
6061
6072
|
if (this.dash) {
|
|
6062
6073
|
this.dash.reset();
|
|
6063
6074
|
}
|
|
@@ -6169,7 +6180,7 @@ function (_Component) {
|
|
|
6169
6180
|
width: width === 'auto' ? width : '100%',
|
|
6170
6181
|
height: height === 'auto' ? height : '100%'
|
|
6171
6182
|
};
|
|
6172
|
-
return _react["default"].createElement(Element, _extends({
|
|
6183
|
+
return /*#__PURE__*/_react["default"].createElement(Element, _extends({
|
|
6173
6184
|
ref: this.ref,
|
|
6174
6185
|
src: this.getSource(url),
|
|
6175
6186
|
style: style,
|
|
@@ -6199,7 +6210,7 @@ exports["default"] = _default;
|
|
|
6199
6210
|
});
|
|
6200
6211
|
|
|
6201
6212
|
unwrapExports(FilePlayer_1);
|
|
6202
|
-
|
|
6213
|
+
FilePlayer_1.FilePlayer;
|
|
6203
6214
|
|
|
6204
6215
|
var players = createCommonjsModule(function (module, exports) {
|
|
6205
6216
|
|
|
@@ -6241,7 +6252,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6241
6252
|
});
|
|
6242
6253
|
exports["default"] = void 0;
|
|
6243
6254
|
|
|
6244
|
-
var _react = _interopRequireWildcard(
|
|
6255
|
+
var _react = _interopRequireWildcard(React);
|
|
6245
6256
|
|
|
6246
6257
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6247
6258
|
|
|
@@ -6259,12 +6270,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6259
6270
|
|
|
6260
6271
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6261
6272
|
|
|
6262
|
-
function
|
|
6273
|
+
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); }; }
|
|
6263
6274
|
|
|
6264
|
-
function
|
|
6275
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6265
6276
|
|
|
6266
6277
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6267
6278
|
|
|
6279
|
+
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; } }
|
|
6280
|
+
|
|
6281
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6282
|
+
|
|
6268
6283
|
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); }
|
|
6269
6284
|
|
|
6270
6285
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6273,14 +6288,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6273
6288
|
|
|
6274
6289
|
var ICON_SIZE = '64px';
|
|
6275
6290
|
|
|
6276
|
-
var Preview =
|
|
6277
|
-
/*#__PURE__*/
|
|
6278
|
-
function (_Component) {
|
|
6291
|
+
var Preview = /*#__PURE__*/function (_Component) {
|
|
6279
6292
|
_inherits(Preview, _Component);
|
|
6280
6293
|
|
|
6281
|
-
|
|
6282
|
-
var _getPrototypeOf2;
|
|
6294
|
+
var _super = _createSuper(Preview);
|
|
6283
6295
|
|
|
6296
|
+
function Preview() {
|
|
6284
6297
|
var _this;
|
|
6285
6298
|
|
|
6286
6299
|
_classCallCheck(this, Preview);
|
|
@@ -6289,7 +6302,7 @@ function (_Component) {
|
|
|
6289
6302
|
args[_key] = arguments[_key];
|
|
6290
6303
|
}
|
|
6291
6304
|
|
|
6292
|
-
_this =
|
|
6305
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6293
6306
|
|
|
6294
6307
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6295
6308
|
|
|
@@ -6387,15 +6400,15 @@ function (_Component) {
|
|
|
6387
6400
|
}
|
|
6388
6401
|
};
|
|
6389
6402
|
|
|
6390
|
-
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6403
|
+
var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
|
|
6391
6404
|
style: styles.shadow,
|
|
6392
6405
|
className: "react-player__shadow"
|
|
6393
|
-
}, _react["default"].createElement("div", {
|
|
6406
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
6394
6407
|
style: styles.playIcon,
|
|
6395
6408
|
className: "react-player__play-icon"
|
|
6396
6409
|
}));
|
|
6397
6410
|
|
|
6398
|
-
return _react["default"].createElement("div", {
|
|
6411
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
6399
6412
|
style: styles.preview,
|
|
6400
6413
|
className: "react-player__preview",
|
|
6401
6414
|
onClick: onClick
|
|
@@ -6418,7 +6431,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6418
6431
|
});
|
|
6419
6432
|
exports["default"] = renderPreloadPlayers;
|
|
6420
6433
|
|
|
6421
|
-
var _react = _interopRequireDefault(
|
|
6434
|
+
var _react = _interopRequireDefault(React);
|
|
6422
6435
|
|
|
6423
6436
|
var _Player = _interopRequireDefault(Player_1);
|
|
6424
6437
|
|
|
@@ -6432,6 +6445,12 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6432
6445
|
|
|
6433
6446
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6434
6447
|
|
|
6448
|
+
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; } } }; }
|
|
6449
|
+
|
|
6450
|
+
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); }
|
|
6451
|
+
|
|
6452
|
+
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; }
|
|
6453
|
+
|
|
6435
6454
|
var PRELOAD_PLAYERS = [{
|
|
6436
6455
|
Player: YouTube_1.YouTube,
|
|
6437
6456
|
configKey: 'youtube',
|
|
@@ -6452,16 +6471,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6452
6471
|
|
|
6453
6472
|
function renderPreloadPlayers(url, controls, config) {
|
|
6454
6473
|
var players = [];
|
|
6455
|
-
|
|
6456
|
-
var
|
|
6457
|
-
|
|
6474
|
+
|
|
6475
|
+
var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
|
|
6476
|
+
_step;
|
|
6458
6477
|
|
|
6459
6478
|
try {
|
|
6460
|
-
for (
|
|
6479
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6461
6480
|
var player = _step.value;
|
|
6462
6481
|
|
|
6463
6482
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6464
|
-
players.push(_react["default"].createElement(_Player["default"], {
|
|
6483
|
+
players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
|
|
6465
6484
|
key: player.Player.displayName,
|
|
6466
6485
|
activePlayer: player.Player,
|
|
6467
6486
|
url: player.url,
|
|
@@ -6473,18 +6492,9 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6473
6492
|
}
|
|
6474
6493
|
}
|
|
6475
6494
|
} catch (err) {
|
|
6476
|
-
|
|
6477
|
-
_iteratorError = err;
|
|
6495
|
+
_iterator.e(err);
|
|
6478
6496
|
} finally {
|
|
6479
|
-
|
|
6480
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6481
|
-
_iterator["return"]();
|
|
6482
|
-
}
|
|
6483
|
-
} finally {
|
|
6484
|
-
if (_didIteratorError) {
|
|
6485
|
-
throw _iteratorError;
|
|
6486
|
-
}
|
|
6487
|
-
}
|
|
6497
|
+
_iterator.f();
|
|
6488
6498
|
}
|
|
6489
6499
|
|
|
6490
6500
|
return players;
|
|
@@ -6560,7 +6570,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6560
6570
|
});
|
|
6561
6571
|
exports["default"] = void 0;
|
|
6562
6572
|
|
|
6563
|
-
var _react = _interopRequireWildcard(
|
|
6573
|
+
var _react = _interopRequireWildcard(React);
|
|
6564
6574
|
|
|
6565
6575
|
|
|
6566
6576
|
|
|
@@ -6608,13 +6618,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6608
6618
|
|
|
6609
6619
|
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); }
|
|
6610
6620
|
|
|
6611
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6621
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6622
|
+
|
|
6623
|
+
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."); }
|
|
6612
6624
|
|
|
6613
|
-
function
|
|
6625
|
+
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); }
|
|
6614
6626
|
|
|
6615
|
-
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter)
|
|
6627
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
6616
6628
|
|
|
6617
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr))
|
|
6629
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6630
|
+
|
|
6631
|
+
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; }
|
|
6618
6632
|
|
|
6619
6633
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6620
6634
|
|
|
@@ -6622,12 +6636,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6622
6636
|
|
|
6623
6637
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6624
6638
|
|
|
6625
|
-
function
|
|
6639
|
+
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); }; }
|
|
6626
6640
|
|
|
6627
|
-
function
|
|
6641
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6628
6642
|
|
|
6629
6643
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6630
6644
|
|
|
6645
|
+
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; } }
|
|
6646
|
+
|
|
6647
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6648
|
+
|
|
6631
6649
|
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); }
|
|
6632
6650
|
|
|
6633
6651
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6637,14 +6655,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6637
6655
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6638
6656
|
var customPlayers = [];
|
|
6639
6657
|
|
|
6640
|
-
var ReactPlayer =
|
|
6641
|
-
/*#__PURE__*/
|
|
6642
|
-
function (_Component) {
|
|
6658
|
+
var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
6643
6659
|
_inherits(ReactPlayer, _Component);
|
|
6644
6660
|
|
|
6645
|
-
|
|
6646
|
-
var _getPrototypeOf2;
|
|
6661
|
+
var _super = _createSuper(ReactPlayer);
|
|
6647
6662
|
|
|
6663
|
+
function ReactPlayer() {
|
|
6648
6664
|
var _this;
|
|
6649
6665
|
|
|
6650
6666
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6653,7 +6669,7 @@ function (_Component) {
|
|
|
6653
6669
|
args[_key] = arguments[_key];
|
|
6654
6670
|
}
|
|
6655
6671
|
|
|
6656
|
-
_this =
|
|
6672
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6657
6673
|
|
|
6658
6674
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6659
6675
|
|
|
@@ -6764,7 +6780,7 @@ function (_Component) {
|
|
|
6764
6780
|
key: "renderActivePlayer",
|
|
6765
6781
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6766
6782
|
if (!url) return null;
|
|
6767
|
-
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6783
|
+
return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6768
6784
|
key: activePlayer.displayName,
|
|
6769
6785
|
ref: this.activePlayerRef,
|
|
6770
6786
|
config: this.config,
|
|
@@ -6801,14 +6817,14 @@ function (_Component) {
|
|
|
6801
6817
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6802
6818
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6803
6819
|
|
|
6804
|
-
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6820
|
+
var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
|
|
6805
6821
|
url: url,
|
|
6806
6822
|
light: light,
|
|
6807
6823
|
playIcon: playIcon,
|
|
6808
6824
|
onClick: this.handleClickPreview
|
|
6809
6825
|
});
|
|
6810
6826
|
|
|
6811
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
6827
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
6812
6828
|
ref: this.wrapperRef,
|
|
6813
6829
|
style: _objectSpread({}, style, {
|
|
6814
6830
|
width: width,
|
|
@@ -6868,20 +6884,20 @@ var Audio = function Audio(_ref) {
|
|
|
6868
6884
|
var node = _ref.node;
|
|
6869
6885
|
|
|
6870
6886
|
if (node.uploadAudio) {
|
|
6871
|
-
return
|
|
6887
|
+
return React.createElement(
|
|
6872
6888
|
'div',
|
|
6873
6889
|
{ className: 'audio d-block text-center mb-3' },
|
|
6874
|
-
|
|
6890
|
+
React.createElement(
|
|
6875
6891
|
'audio',
|
|
6876
6892
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
6877
|
-
|
|
6878
|
-
|
|
6893
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
6894
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
6879
6895
|
'Your browser does not support the audio element.'
|
|
6880
6896
|
),
|
|
6881
|
-
node.caption &&
|
|
6897
|
+
node.caption && React.createElement(
|
|
6882
6898
|
'p',
|
|
6883
6899
|
{ style: { fontSize: '.9rem' } },
|
|
6884
|
-
|
|
6900
|
+
React.createElement(
|
|
6885
6901
|
'em',
|
|
6886
6902
|
null,
|
|
6887
6903
|
node.caption
|
|
@@ -6891,15 +6907,15 @@ var Audio = function Audio(_ref) {
|
|
|
6891
6907
|
} else if (node.audioFilePth) {
|
|
6892
6908
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
6893
6909
|
if (hostname === 'embeds.audioboom.com') {
|
|
6894
|
-
return
|
|
6910
|
+
return React.createElement(
|
|
6895
6911
|
'div',
|
|
6896
6912
|
null,
|
|
6897
|
-
|
|
6913
|
+
React.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
6898
6914
|
' ',
|
|
6899
|
-
node.caption &&
|
|
6915
|
+
node.caption && React.createElement(
|
|
6900
6916
|
'p',
|
|
6901
6917
|
{ style: { fontSize: '.9rem' } },
|
|
6902
|
-
|
|
6918
|
+
React.createElement(
|
|
6903
6919
|
'em',
|
|
6904
6920
|
null,
|
|
6905
6921
|
node.caption
|
|
@@ -6907,14 +6923,14 @@ var Audio = function Audio(_ref) {
|
|
|
6907
6923
|
)
|
|
6908
6924
|
);
|
|
6909
6925
|
}
|
|
6910
|
-
return
|
|
6926
|
+
return React.createElement(
|
|
6911
6927
|
'div',
|
|
6912
6928
|
{ className: 'audio' },
|
|
6913
|
-
|
|
6914
|
-
node.caption &&
|
|
6929
|
+
React.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
6930
|
+
node.caption && React.createElement(
|
|
6915
6931
|
'p',
|
|
6916
6932
|
{ style: { fontSize: '.9rem' } },
|
|
6917
|
-
|
|
6933
|
+
React.createElement(
|
|
6918
6934
|
'em',
|
|
6919
6935
|
null,
|
|
6920
6936
|
node.caption
|
|
@@ -7015,10 +7031,10 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
7015
7031
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
|
|
7016
7032
|
};
|
|
7017
7033
|
|
|
7018
|
-
return
|
|
7034
|
+
return React.createElement(
|
|
7019
7035
|
'div',
|
|
7020
7036
|
null,
|
|
7021
|
-
vidLoaded &&
|
|
7037
|
+
vidLoaded && React.createElement(
|
|
7022
7038
|
'video',
|
|
7023
7039
|
{
|
|
7024
7040
|
poster: thumbnail || '',
|
|
@@ -7036,7 +7052,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
7036
7052
|
onPlay: function onPlay(e) {
|
|
7037
7053
|
return handleOnPlay(e);
|
|
7038
7054
|
} },
|
|
7039
|
-
|
|
7055
|
+
React.createElement('source', { src: url, type: 'video/mp4' }),
|
|
7040
7056
|
'Your browser does not support the video tag.'
|
|
7041
7057
|
)
|
|
7042
7058
|
);
|
|
@@ -7306,13 +7322,13 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7306
7322
|
}
|
|
7307
7323
|
};
|
|
7308
7324
|
|
|
7309
|
-
return
|
|
7325
|
+
return React.createElement(
|
|
7310
7326
|
'div',
|
|
7311
7327
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7312
|
-
|
|
7328
|
+
React.createElement(
|
|
7313
7329
|
'div',
|
|
7314
7330
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7315
|
-
vidUrl && vidType == 'youtube' &&
|
|
7331
|
+
vidUrl && vidType == 'youtube' && React.createElement(YouTube, {
|
|
7316
7332
|
className: 'fluid-iframe',
|
|
7317
7333
|
videoId: getYoutubeId(vidUrl),
|
|
7318
7334
|
opts: opts,
|
|
@@ -7323,10 +7339,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7323
7339
|
return handleOnEnd(e);
|
|
7324
7340
|
}
|
|
7325
7341
|
}),
|
|
7326
|
-
vidUrl && vidType == 'mp4' &&
|
|
7327
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7328
|
-
|
|
7329
|
-
series &&
|
|
7342
|
+
vidUrl && vidType == 'mp4' && React.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7343
|
+
vidUrl && vidType == 'brightcove' && React.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7344
|
+
React.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7345
|
+
series && React.createElement(
|
|
7330
7346
|
'div',
|
|
7331
7347
|
{
|
|
7332
7348
|
className: 'vid-series',
|
|
@@ -7336,10 +7352,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7336
7352
|
maxHeight: '100%',
|
|
7337
7353
|
paddingBottom: '0'
|
|
7338
7354
|
} },
|
|
7339
|
-
|
|
7355
|
+
React.createElement(
|
|
7340
7356
|
'p',
|
|
7341
7357
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7342
|
-
|
|
7358
|
+
React.createElement(
|
|
7343
7359
|
'b',
|
|
7344
7360
|
{ style: { fontSize: '1.25em' } },
|
|
7345
7361
|
'Now Playing:'
|
|
@@ -7347,36 +7363,36 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7347
7363
|
' ',
|
|
7348
7364
|
seriesData[series ? series - 1 : 0].title
|
|
7349
7365
|
),
|
|
7350
|
-
vidUrl &&
|
|
7366
|
+
vidUrl && React.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7351
7367
|
)
|
|
7352
7368
|
),
|
|
7353
|
-
|
|
7354
|
-
|
|
7369
|
+
React.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7370
|
+
React.createElement(
|
|
7355
7371
|
'div',
|
|
7356
7372
|
{ className: 'mt-2 mb-5' },
|
|
7357
|
-
series &&
|
|
7373
|
+
series && React.createElement(
|
|
7358
7374
|
'h3',
|
|
7359
7375
|
null,
|
|
7360
7376
|
'Episode ',
|
|
7361
7377
|
series
|
|
7362
7378
|
),
|
|
7363
|
-
Videos[series - 1] &&
|
|
7379
|
+
Videos[series - 1] && React.createElement(
|
|
7364
7380
|
'h2',
|
|
7365
7381
|
{ className: 'mb-3' },
|
|
7366
7382
|
Videos[series - 1].title
|
|
7367
7383
|
),
|
|
7368
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7384
|
+
Videos[series - 1] && Videos[series - 1].intro && React.createElement(
|
|
7369
7385
|
'p',
|
|
7370
7386
|
{ className: 'mb-3' },
|
|
7371
|
-
|
|
7387
|
+
React.createElement(
|
|
7372
7388
|
'em',
|
|
7373
7389
|
null,
|
|
7374
7390
|
Videos[series - 1].intro
|
|
7375
7391
|
)
|
|
7376
7392
|
),
|
|
7377
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
7393
|
+
Videos[series - 1] && Videos[series - 1].text && React.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7378
7394
|
),
|
|
7379
|
-
|
|
7395
|
+
React.createElement(
|
|
7380
7396
|
'style',
|
|
7381
7397
|
{ jsx: 'true' },
|
|
7382
7398
|
'\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 '
|
|
@@ -7385,13 +7401,13 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7385
7401
|
};
|
|
7386
7402
|
|
|
7387
7403
|
var Poll = function Poll(_ref) {
|
|
7388
|
-
var node = _ref.node
|
|
7389
|
-
|
|
7390
|
-
|
|
7391
|
-
|
|
7392
|
-
onVote = _ref.onVote
|
|
7393
|
-
_ref
|
|
7394
|
-
getSerializers = _ref.getSerializers;
|
|
7404
|
+
var node = _ref.node;
|
|
7405
|
+
_ref.client;
|
|
7406
|
+
_ref.pageview;
|
|
7407
|
+
_ref.videoAccountIDs;
|
|
7408
|
+
var onVote = _ref.onVote;
|
|
7409
|
+
_ref.showVotes;
|
|
7410
|
+
var getSerializers = _ref.getSerializers;
|
|
7395
7411
|
|
|
7396
7412
|
var _useState = useState(null),
|
|
7397
7413
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7429,67 +7445,67 @@ var Poll = function Poll(_ref) {
|
|
|
7429
7445
|
return acc;
|
|
7430
7446
|
}
|
|
7431
7447
|
}, 0);
|
|
7432
|
-
return
|
|
7433
|
-
|
|
7448
|
+
return React.createElement(
|
|
7449
|
+
React.Fragment,
|
|
7434
7450
|
null,
|
|
7435
|
-
question &&
|
|
7451
|
+
question && React.createElement(
|
|
7436
7452
|
'p',
|
|
7437
7453
|
{ className: 'font-weight-bold' },
|
|
7438
7454
|
question
|
|
7439
7455
|
),
|
|
7440
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7456
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7441
7457
|
'form',
|
|
7442
7458
|
{ onSubmit: function onSubmit(e) {
|
|
7443
7459
|
return onSubmitPoll(e);
|
|
7444
7460
|
} },
|
|
7445
7461
|
choices && choices.map(function (choice) {
|
|
7446
|
-
return
|
|
7462
|
+
return React.createElement(
|
|
7447
7463
|
'div',
|
|
7448
7464
|
{ key: choice._key },
|
|
7449
|
-
|
|
7465
|
+
React.createElement(
|
|
7450
7466
|
'label',
|
|
7451
7467
|
{ className: 'pl-2' },
|
|
7452
|
-
|
|
7468
|
+
React.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7453
7469
|
return setSelectedChoice(e.target.value);
|
|
7454
7470
|
} }),
|
|
7455
7471
|
' ' + choice.choiceText
|
|
7456
7472
|
)
|
|
7457
7473
|
);
|
|
7458
7474
|
}),
|
|
7459
|
-
|
|
7475
|
+
React.createElement(
|
|
7460
7476
|
Button,
|
|
7461
7477
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7462
7478
|
'Vote'
|
|
7463
7479
|
)
|
|
7464
7480
|
),
|
|
7465
|
-
|
|
7481
|
+
React.createElement(
|
|
7466
7482
|
'div',
|
|
7467
7483
|
{ className: 'progress-container' },
|
|
7468
7484
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7469
7485
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7470
|
-
return
|
|
7486
|
+
return React.createElement(
|
|
7471
7487
|
'div',
|
|
7472
7488
|
{ key: choice._key, className: 'mb-3' },
|
|
7473
|
-
|
|
7489
|
+
React.createElement(
|
|
7474
7490
|
'div',
|
|
7475
7491
|
{ className: 'correct-answer' },
|
|
7476
|
-
|
|
7492
|
+
React.createElement(
|
|
7477
7493
|
'div',
|
|
7478
7494
|
null,
|
|
7479
7495
|
choice.choiceText
|
|
7480
7496
|
),
|
|
7481
|
-
choice.choiceAnswer === true &&
|
|
7497
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7482
7498
|
'div',
|
|
7483
7499
|
null,
|
|
7484
|
-
|
|
7500
|
+
React.createElement(
|
|
7485
7501
|
'span',
|
|
7486
7502
|
{ style: { color: 'limegreen' } },
|
|
7487
7503
|
'Correct!'
|
|
7488
7504
|
)
|
|
7489
7505
|
)
|
|
7490
7506
|
),
|
|
7491
|
-
|
|
7492
|
-
|
|
7507
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7508
|
+
React.createElement(
|
|
7493
7509
|
'span',
|
|
7494
7510
|
{ className: 'float-right' },
|
|
7495
7511
|
percentage,
|
|
@@ -7500,14 +7516,14 @@ var Poll = function Poll(_ref) {
|
|
|
7500
7516
|
);
|
|
7501
7517
|
})
|
|
7502
7518
|
),
|
|
7503
|
-
showAnswer &&
|
|
7519
|
+
showAnswer && React.createElement(
|
|
7504
7520
|
'h4',
|
|
7505
7521
|
{ className: 'text-center small p-3' },
|
|
7506
7522
|
'Total Votes: ',
|
|
7507
7523
|
choicesTotalCount
|
|
7508
7524
|
),
|
|
7509
|
-
showAnswer && response &&
|
|
7510
|
-
|
|
7525
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7526
|
+
React.createElement(
|
|
7511
7527
|
'style',
|
|
7512
7528
|
{ jsx: 'true' },
|
|
7513
7529
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7534,13 +7550,13 @@ module.exports = { "default": values, __esModule: true };
|
|
|
7534
7550
|
var _Object$values = unwrapExports(values$1);
|
|
7535
7551
|
|
|
7536
7552
|
var Poll$1 = function Poll(_ref) {
|
|
7537
|
-
var node = _ref.node
|
|
7538
|
-
|
|
7539
|
-
|
|
7540
|
-
|
|
7541
|
-
onVote = _ref.onVote
|
|
7542
|
-
_ref
|
|
7543
|
-
getSerializers = _ref.getSerializers;
|
|
7553
|
+
var node = _ref.node;
|
|
7554
|
+
_ref.client;
|
|
7555
|
+
_ref.pageview;
|
|
7556
|
+
_ref.videoAccountIDs;
|
|
7557
|
+
var onVote = _ref.onVote;
|
|
7558
|
+
_ref.showVotes;
|
|
7559
|
+
var getSerializers = _ref.getSerializers;
|
|
7544
7560
|
|
|
7545
7561
|
var _useState = useState(null),
|
|
7546
7562
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7606,67 +7622,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7606
7622
|
return acc;
|
|
7607
7623
|
}
|
|
7608
7624
|
}, 0);
|
|
7609
|
-
return
|
|
7610
|
-
|
|
7625
|
+
return React.createElement(
|
|
7626
|
+
React.Fragment,
|
|
7611
7627
|
null,
|
|
7612
|
-
question &&
|
|
7628
|
+
question && React.createElement(
|
|
7613
7629
|
'p',
|
|
7614
7630
|
{ className: 'font-weight-bold' },
|
|
7615
7631
|
question
|
|
7616
7632
|
),
|
|
7617
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7633
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7618
7634
|
'form',
|
|
7619
7635
|
{ onSubmit: function onSubmit(e) {
|
|
7620
7636
|
return onSubmitPoll(e);
|
|
7621
7637
|
} },
|
|
7622
7638
|
choices && choices.map(function (choice) {
|
|
7623
|
-
return
|
|
7639
|
+
return React.createElement(
|
|
7624
7640
|
'div',
|
|
7625
7641
|
{ key: choice._key },
|
|
7626
|
-
|
|
7642
|
+
React.createElement(
|
|
7627
7643
|
'label',
|
|
7628
7644
|
{ className: 'pl-2' },
|
|
7629
|
-
|
|
7645
|
+
React.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7630
7646
|
return setSelectedChoice(e.target.value);
|
|
7631
7647
|
} }),
|
|
7632
7648
|
' ' + choice.choiceText
|
|
7633
7649
|
)
|
|
7634
7650
|
);
|
|
7635
7651
|
}),
|
|
7636
|
-
|
|
7652
|
+
React.createElement(
|
|
7637
7653
|
Button,
|
|
7638
7654
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7639
7655
|
'Vote'
|
|
7640
7656
|
)
|
|
7641
7657
|
),
|
|
7642
|
-
|
|
7658
|
+
React.createElement(
|
|
7643
7659
|
'div',
|
|
7644
7660
|
{ className: 'progress-container' },
|
|
7645
7661
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7646
7662
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7647
|
-
return
|
|
7663
|
+
return React.createElement(
|
|
7648
7664
|
'div',
|
|
7649
7665
|
{ key: choice._key, className: 'mb-3' },
|
|
7650
|
-
|
|
7666
|
+
React.createElement(
|
|
7651
7667
|
'div',
|
|
7652
7668
|
{ className: 'correct-answer' },
|
|
7653
|
-
|
|
7669
|
+
React.createElement(
|
|
7654
7670
|
'div',
|
|
7655
7671
|
null,
|
|
7656
7672
|
choice.choiceText
|
|
7657
7673
|
),
|
|
7658
|
-
choice.choiceAnswer === true &&
|
|
7674
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7659
7675
|
'div',
|
|
7660
7676
|
null,
|
|
7661
|
-
|
|
7677
|
+
React.createElement(
|
|
7662
7678
|
'span',
|
|
7663
7679
|
{ style: { color: 'limegreen' } },
|
|
7664
7680
|
'Correct!'
|
|
7665
7681
|
)
|
|
7666
7682
|
)
|
|
7667
7683
|
),
|
|
7668
|
-
|
|
7669
|
-
|
|
7684
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7685
|
+
React.createElement(
|
|
7670
7686
|
'span',
|
|
7671
7687
|
{ className: 'float-right' },
|
|
7672
7688
|
percentage,
|
|
@@ -7677,14 +7693,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7677
7693
|
);
|
|
7678
7694
|
})
|
|
7679
7695
|
),
|
|
7680
|
-
showAnswer &&
|
|
7696
|
+
showAnswer && React.createElement(
|
|
7681
7697
|
'h4',
|
|
7682
7698
|
{ className: 'text-center small p-3' },
|
|
7683
7699
|
'Total Votes: ',
|
|
7684
7700
|
choicesTotalCount
|
|
7685
7701
|
),
|
|
7686
|
-
showAnswer && response &&
|
|
7687
|
-
|
|
7702
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7703
|
+
React.createElement(
|
|
7688
7704
|
'style',
|
|
7689
7705
|
{ jsx: 'true' },
|
|
7690
7706
|
'\n .correct-answer {\n width: 100%;\n display: flex;\n justify-content: space-between;\n padding: 0 0.5rem;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7692,7 +7708,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7692
7708
|
);
|
|
7693
7709
|
};
|
|
7694
7710
|
|
|
7695
|
-
var numberOfPaginations =
|
|
7711
|
+
var numberOfPaginations = main_39 ? 4 : 10;
|
|
7696
7712
|
|
|
7697
7713
|
var Quiz = function Quiz(_ref) {
|
|
7698
7714
|
var quizzes = _ref.quizzes,
|
|
@@ -7810,20 +7826,20 @@ var Quiz = function Quiz(_ref) {
|
|
|
7810
7826
|
};
|
|
7811
7827
|
|
|
7812
7828
|
var renderPagination = function renderPagination() {
|
|
7813
|
-
return
|
|
7829
|
+
return React.createElement(
|
|
7814
7830
|
Pagination,
|
|
7815
|
-
{ className: 'p-0 m-0', size:
|
|
7816
|
-
|
|
7831
|
+
{ className: 'p-0 m-0', size: main_39 && 'sm' },
|
|
7832
|
+
React.createElement(Pagination.First, { onClick: function onClick() {
|
|
7817
7833
|
return changePage('first');
|
|
7818
7834
|
}, disabled: currentPage === 1 }),
|
|
7819
|
-
|
|
7835
|
+
React.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7820
7836
|
return changePage('prev');
|
|
7821
7837
|
}, disabled: currentPage === 1 }),
|
|
7822
|
-
|
|
7838
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7823
7839
|
return renderNewPages('prev');
|
|
7824
7840
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7825
7841
|
pages.map(function (page) {
|
|
7826
|
-
return
|
|
7842
|
+
return React.createElement(
|
|
7827
7843
|
Pagination.Item,
|
|
7828
7844
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7829
7845
|
return changePage(page);
|
|
@@ -7831,13 +7847,13 @@ var Quiz = function Quiz(_ref) {
|
|
|
7831
7847
|
page
|
|
7832
7848
|
);
|
|
7833
7849
|
}),
|
|
7834
|
-
|
|
7850
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7835
7851
|
return renderNewPages('next');
|
|
7836
7852
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7837
|
-
|
|
7853
|
+
React.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7838
7854
|
return changePage('next');
|
|
7839
7855
|
}, disabled: currentPage === pageCount }),
|
|
7840
|
-
|
|
7856
|
+
React.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7841
7857
|
return changePage('last');
|
|
7842
7858
|
}, disabled: currentPage === pageCount })
|
|
7843
7859
|
);
|
|
@@ -7920,51 +7936,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
7920
7936
|
}
|
|
7921
7937
|
};
|
|
7922
7938
|
|
|
7923
|
-
return
|
|
7924
|
-
|
|
7939
|
+
return React.createElement(
|
|
7940
|
+
React.Fragment,
|
|
7925
7941
|
null,
|
|
7926
|
-
quizzes[currentPage - 1] &&
|
|
7927
|
-
|
|
7942
|
+
quizzes[currentPage - 1] && React.createElement(
|
|
7943
|
+
React.Fragment,
|
|
7928
7944
|
null,
|
|
7929
|
-
|
|
7930
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 &&
|
|
7945
|
+
React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
7946
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React.createElement(
|
|
7931
7947
|
'form',
|
|
7932
7948
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
7933
7949
|
return e.preventDefault();
|
|
7934
7950
|
} },
|
|
7935
7951
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
7936
|
-
return
|
|
7952
|
+
return React.createElement(
|
|
7937
7953
|
'div',
|
|
7938
7954
|
{ key: answer._key },
|
|
7939
|
-
|
|
7955
|
+
React.createElement(
|
|
7940
7956
|
'label',
|
|
7941
7957
|
{ className: 'pl-2' },
|
|
7942
|
-
quizzes[currentPage - 1].multiAnswer ?
|
|
7958
|
+
quizzes[currentPage - 1].multiAnswer ? React.createElement('input', { type: 'checkbox', id: 'male', disabled: isDisabled, name: answer._type, value: answer._key }) : React.createElement('input', { type: 'radio', id: 'male', name: answer._type, value: answer._key }),
|
|
7943
7959
|
' ' + answer.answerText
|
|
7944
7960
|
)
|
|
7945
7961
|
);
|
|
7946
7962
|
})
|
|
7947
7963
|
)
|
|
7948
7964
|
),
|
|
7949
|
-
!showAnswer &&
|
|
7965
|
+
!showAnswer && React.createElement(
|
|
7950
7966
|
Button$1,
|
|
7951
7967
|
{ onClick: function onClick() {
|
|
7952
7968
|
return checkAnswers();
|
|
7953
7969
|
}, variant: 'info', block: true },
|
|
7954
7970
|
'Please click here for answer'
|
|
7955
7971
|
),
|
|
7956
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
7957
|
-
|
|
7972
|
+
quizzes[currentPage - 1] && showAnswer && React.createElement(
|
|
7973
|
+
React.Fragment,
|
|
7958
7974
|
null,
|
|
7959
|
-
|
|
7975
|
+
React.createElement(
|
|
7960
7976
|
'h4',
|
|
7961
7977
|
null,
|
|
7962
7978
|
'Answer:'
|
|
7963
7979
|
),
|
|
7964
|
-
quizzes[currentPage - 1].answer &&
|
|
7980
|
+
quizzes[currentPage - 1].answer && React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
7965
7981
|
),
|
|
7966
|
-
|
|
7967
|
-
pageCount > 1 &&
|
|
7982
|
+
React.createElement('br', null),
|
|
7983
|
+
pageCount > 1 && React.createElement(
|
|
7968
7984
|
'div',
|
|
7969
7985
|
{ className: 'd-flex justify-content-center' },
|
|
7970
7986
|
renderPagination()
|
|
@@ -7975,10 +7991,10 @@ var Quiz = function Quiz(_ref) {
|
|
|
7975
7991
|
var Leads = function Leads(_ref) {
|
|
7976
7992
|
var url = _ref.url;
|
|
7977
7993
|
|
|
7978
|
-
return
|
|
7994
|
+
return React.createElement(
|
|
7979
7995
|
'div',
|
|
7980
7996
|
{ className: 'd-block text-center mb-3' },
|
|
7981
|
-
url &&
|
|
7997
|
+
url && React.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
7982
7998
|
);
|
|
7983
7999
|
};
|
|
7984
8000
|
|
|
@@ -7999,8 +8015,8 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
7999
8015
|
|
|
8000
8016
|
var _useState = useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
|
|
8001
8017
|
_useState2 = _slicedToArray(_useState, 2),
|
|
8002
|
-
carouselIndex = _useState2[0]
|
|
8003
|
-
|
|
8018
|
+
carouselIndex = _useState2[0];
|
|
8019
|
+
_useState2[1];
|
|
8004
8020
|
|
|
8005
8021
|
// useEffect(() => {
|
|
8006
8022
|
// let itemArr = router.asPath.split('?page=')
|
|
@@ -8026,42 +8042,42 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8026
8042
|
}
|
|
8027
8043
|
};
|
|
8028
8044
|
|
|
8029
|
-
return
|
|
8045
|
+
return React.createElement(
|
|
8030
8046
|
'div',
|
|
8031
8047
|
{ ref: carouselRef, className: 'mt-3 mb-4' },
|
|
8032
|
-
|
|
8048
|
+
React.createElement(
|
|
8033
8049
|
Carousel,
|
|
8034
8050
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8035
8051
|
slides && slides.map(function (slide) {
|
|
8036
8052
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8037
|
-
return
|
|
8053
|
+
return React.createElement(
|
|
8038
8054
|
Carousel.Item,
|
|
8039
8055
|
{ key: slide._key },
|
|
8040
|
-
|
|
8056
|
+
React.createElement(
|
|
8041
8057
|
'a',
|
|
8042
8058
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8043
|
-
|
|
8059
|
+
React.createElement(
|
|
8044
8060
|
LazyLoad,
|
|
8045
8061
|
null,
|
|
8046
|
-
|
|
8062
|
+
React.createElement('img', { src: urlFor$1(slide.slideshowImage, client).url(), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
8047
8063
|
)
|
|
8048
8064
|
),
|
|
8049
|
-
|
|
8065
|
+
React.createElement(
|
|
8050
8066
|
'div',
|
|
8051
8067
|
{ className: 'p-2' },
|
|
8052
|
-
slide.slideshowImage.caption &&
|
|
8068
|
+
slide.slideshowImage.caption && React.createElement(
|
|
8053
8069
|
'h3',
|
|
8054
8070
|
{ style: { padding: '0px' } },
|
|
8055
8071
|
slide.slideshowImage.caption
|
|
8056
8072
|
),
|
|
8057
|
-
slide.description &&
|
|
8073
|
+
slide.description && React.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8058
8074
|
)
|
|
8059
8075
|
);
|
|
8060
8076
|
}
|
|
8061
8077
|
return null;
|
|
8062
8078
|
})
|
|
8063
8079
|
),
|
|
8064
|
-
|
|
8080
|
+
React.createElement(
|
|
8065
8081
|
'style',
|
|
8066
8082
|
{ jsx: 'true' },
|
|
8067
8083
|
'\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 '
|
|
@@ -8080,10 +8096,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8080
8096
|
sizes = _props$node.sizes,
|
|
8081
8097
|
sizeMapping = _props$node.sizeMapping;
|
|
8082
8098
|
|
|
8083
|
-
return
|
|
8099
|
+
return React.createElement(
|
|
8084
8100
|
'div',
|
|
8085
8101
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8086
|
-
|
|
8102
|
+
React.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8087
8103
|
);
|
|
8088
8104
|
};
|
|
8089
8105
|
|
|
@@ -8108,15 +8124,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8108
8124
|
|
|
8109
8125
|
var htmlContent = '\n <script 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 ';
|
|
8110
8126
|
|
|
8111
|
-
return
|
|
8127
|
+
return React.createElement(
|
|
8112
8128
|
'div',
|
|
8113
8129
|
{ ref: formstackRef },
|
|
8114
|
-
|
|
8130
|
+
React.createElement(
|
|
8115
8131
|
'h4',
|
|
8116
8132
|
{ className: 'formstack-caption' },
|
|
8117
8133
|
Caption
|
|
8118
8134
|
),
|
|
8119
|
-
|
|
8135
|
+
React.createElement('div', { dangerouslySetInnerHTML: createMarkup(htmlContent) })
|
|
8120
8136
|
);
|
|
8121
8137
|
};
|
|
8122
8138
|
|
|
@@ -8136,29 +8152,29 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8136
8152
|
}
|
|
8137
8153
|
});
|
|
8138
8154
|
if (medias && medias.length > 0) {
|
|
8139
|
-
return
|
|
8155
|
+
return React.createElement(
|
|
8140
8156
|
'div',
|
|
8141
8157
|
{ className: 'multi-media-container' },
|
|
8142
|
-
|
|
8158
|
+
React.createElement(
|
|
8143
8159
|
Row,
|
|
8144
8160
|
{ noGutters: true },
|
|
8145
8161
|
medias.map(function (media) {
|
|
8146
|
-
return
|
|
8162
|
+
return React.createElement(
|
|
8147
8163
|
Col,
|
|
8148
8164
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8149
|
-
|
|
8165
|
+
React.createElement(
|
|
8150
8166
|
'a',
|
|
8151
|
-
_extends
|
|
8167
|
+
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8152
8168
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8153
|
-
|
|
8169
|
+
React.createElement(
|
|
8154
8170
|
'div',
|
|
8155
8171
|
{ className: 'multi-media-image-container' },
|
|
8156
|
-
imageBox &&
|
|
8172
|
+
imageBox && React.createElement(
|
|
8157
8173
|
LazyLoad,
|
|
8158
8174
|
{ once: true },
|
|
8159
|
-
|
|
8175
|
+
React.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor$2(media.poster, client).url(), alt: media.alt })
|
|
8160
8176
|
),
|
|
8161
|
-
media.caption &&
|
|
8177
|
+
media.caption && React.createElement(
|
|
8162
8178
|
'span',
|
|
8163
8179
|
{ className: 'multi-media-caption' },
|
|
8164
8180
|
media.caption
|
|
@@ -8168,7 +8184,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8168
8184
|
);
|
|
8169
8185
|
})
|
|
8170
8186
|
),
|
|
8171
|
-
|
|
8187
|
+
React.createElement(
|
|
8172
8188
|
'style',
|
|
8173
8189
|
{ jsx: 'true' },
|
|
8174
8190
|
'\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 '
|
|
@@ -8184,34 +8200,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
8184
8200
|
var profileImage = arguments[6];
|
|
8185
8201
|
|
|
8186
8202
|
if (authorName && authorURL) {
|
|
8187
|
-
return
|
|
8203
|
+
return React.createElement(
|
|
8188
8204
|
'span',
|
|
8189
8205
|
null,
|
|
8190
|
-
|
|
8206
|
+
React.createElement(
|
|
8191
8207
|
'a',
|
|
8192
8208
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
8193
8209
|
authorName
|
|
8194
8210
|
),
|
|
8195
|
-
|
|
8211
|
+
React.createElement(
|
|
8196
8212
|
Card,
|
|
8197
8213
|
{ className: 'author-details-card-' + index },
|
|
8198
|
-
|
|
8214
|
+
React.createElement(
|
|
8199
8215
|
Row$1,
|
|
8200
8216
|
null,
|
|
8201
|
-
profileImage &&
|
|
8217
|
+
profileImage && React.createElement(
|
|
8202
8218
|
Col$1,
|
|
8203
8219
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
8204
|
-
|
|
8220
|
+
React.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
8205
8221
|
),
|
|
8206
|
-
|
|
8222
|
+
React.createElement(
|
|
8207
8223
|
Col$1,
|
|
8208
8224
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
8209
|
-
|
|
8225
|
+
React.createElement(
|
|
8210
8226
|
'h5',
|
|
8211
8227
|
null,
|
|
8212
8228
|
authorName
|
|
8213
8229
|
),
|
|
8214
|
-
|
|
8230
|
+
React.createElement(
|
|
8215
8231
|
'p',
|
|
8216
8232
|
null,
|
|
8217
8233
|
biography
|
|
@@ -8219,7 +8235,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
8219
8235
|
)
|
|
8220
8236
|
)
|
|
8221
8237
|
),
|
|
8222
|
-
|
|
8238
|
+
React.createElement(
|
|
8223
8239
|
'style',
|
|
8224
8240
|
{ jsx: 'true' },
|
|
8225
8241
|
'\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 '
|
|
@@ -8227,7 +8243,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
8227
8243
|
length !== index + 1 && ' , '
|
|
8228
8244
|
);
|
|
8229
8245
|
} else if (authorName) {
|
|
8230
|
-
return
|
|
8246
|
+
return React.createElement(
|
|
8231
8247
|
'span',
|
|
8232
8248
|
{ key: index },
|
|
8233
8249
|
authorName,
|
|
@@ -8273,7 +8289,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8273
8289
|
}
|
|
8274
8290
|
};
|
|
8275
8291
|
|
|
8276
|
-
_this.wraperRef =
|
|
8292
|
+
_this.wraperRef = React.createRef();
|
|
8277
8293
|
_this.visible = false;
|
|
8278
8294
|
return _this;
|
|
8279
8295
|
}
|
|
@@ -8301,7 +8317,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8301
8317
|
_props$id = _props.id,
|
|
8302
8318
|
id = _props$id === undefined ? '' : _props$id;
|
|
8303
8319
|
|
|
8304
|
-
return
|
|
8320
|
+
return React.createElement(
|
|
8305
8321
|
'div',
|
|
8306
8322
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8307
8323
|
this.props.children
|
|
@@ -8310,7 +8326,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8310
8326
|
}]);
|
|
8311
8327
|
|
|
8312
8328
|
return InscreenSensor;
|
|
8313
|
-
}(
|
|
8329
|
+
}(React.Component);
|
|
8314
8330
|
|
|
8315
8331
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8316
8332
|
var nodes = _ref.nodes,
|
|
@@ -8423,33 +8439,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8423
8439
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8424
8440
|
var showReading = show ? 'showReading' : '';
|
|
8425
8441
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8426
|
-
return
|
|
8442
|
+
return React.createElement(
|
|
8427
8443
|
'div',
|
|
8428
8444
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8429
|
-
|
|
8445
|
+
React.createElement(
|
|
8430
8446
|
'a',
|
|
8431
8447
|
{ onClick: function onClick(e) {
|
|
8432
8448
|
return articleCardClickHandler(e);
|
|
8433
8449
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8434
|
-
|
|
8450
|
+
React.createElement(
|
|
8435
8451
|
'div',
|
|
8436
8452
|
{ className: 'prevNext-thumbnail' },
|
|
8437
|
-
|
|
8438
|
-
|
|
8453
|
+
React.createElement('img', { src: urlFor(article.thumbnail.asset).url() }),
|
|
8454
|
+
React.createElement(
|
|
8439
8455
|
'div',
|
|
8440
8456
|
{ className: 'prevNext-reading ' + showReading },
|
|
8441
8457
|
articleLabel
|
|
8442
8458
|
)
|
|
8443
8459
|
),
|
|
8444
|
-
|
|
8460
|
+
React.createElement(
|
|
8445
8461
|
'div',
|
|
8446
8462
|
{ className: 'prevNext-summary' },
|
|
8447
|
-
|
|
8463
|
+
React.createElement(
|
|
8448
8464
|
'div',
|
|
8449
8465
|
{ className: 'prevNext-publishDate' },
|
|
8450
8466
|
moment(article.published).format('LL')
|
|
8451
8467
|
),
|
|
8452
|
-
|
|
8468
|
+
React.createElement(
|
|
8453
8469
|
'h2',
|
|
8454
8470
|
{ className: 'prevNext-title' },
|
|
8455
8471
|
article.title
|
|
@@ -8498,7 +8514,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8498
8514
|
|
|
8499
8515
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8500
8516
|
if (biography) {
|
|
8501
|
-
return
|
|
8517
|
+
return React.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8502
8518
|
}
|
|
8503
8519
|
};
|
|
8504
8520
|
|
|
@@ -8584,7 +8600,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8584
8600
|
//console.log('useLayoutEffect')
|
|
8585
8601
|
if (!firstLoad) {
|
|
8586
8602
|
setUpArrowClicked(false);
|
|
8587
|
-
if (
|
|
8603
|
+
if (main_40) {
|
|
8588
8604
|
grabLoadedAds();
|
|
8589
8605
|
} else {
|
|
8590
8606
|
scrollToArticle();
|
|
@@ -8608,7 +8624,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8608
8624
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8609
8625
|
if (pageview) pageview(path);
|
|
8610
8626
|
|
|
8611
|
-
if (!
|
|
8627
|
+
if (!main_40) {
|
|
8612
8628
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8613
8629
|
if (window.googletag && googletag.pubadsReady) {
|
|
8614
8630
|
lib_3.refresh();
|
|
@@ -8616,7 +8632,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8616
8632
|
});
|
|
8617
8633
|
}
|
|
8618
8634
|
//Refresh leaderboard ad on mobile
|
|
8619
|
-
if (
|
|
8635
|
+
if (main_40) {
|
|
8620
8636
|
var leaderboardSlotId = '';
|
|
8621
8637
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8622
8638
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8656,38 +8672,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8656
8672
|
setSensorVisible(false);
|
|
8657
8673
|
};
|
|
8658
8674
|
|
|
8659
|
-
return
|
|
8660
|
-
|
|
8675
|
+
return React.createElement(
|
|
8676
|
+
React.Fragment,
|
|
8661
8677
|
null,
|
|
8662
|
-
|
|
8678
|
+
React.createElement(
|
|
8663
8679
|
'div',
|
|
8664
8680
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8665
|
-
|
|
8681
|
+
React.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8666
8682
|
return handleArrowClick();
|
|
8667
8683
|
} })
|
|
8668
8684
|
),
|
|
8669
|
-
|
|
8670
|
-
|
|
8685
|
+
React.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8686
|
+
React.createElement(
|
|
8671
8687
|
'div',
|
|
8672
8688
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8673
|
-
|
|
8689
|
+
React.createElement(
|
|
8674
8690
|
'h5',
|
|
8675
8691
|
{ className: 'objective-title' },
|
|
8676
8692
|
nodes.seriesTitle
|
|
8677
8693
|
),
|
|
8678
|
-
|
|
8694
|
+
React.createElement(
|
|
8679
8695
|
'div',
|
|
8680
8696
|
{ className: 'prevNextWrapper' },
|
|
8681
8697
|
PrevNextCards(false, -1)
|
|
8682
8698
|
)
|
|
8683
8699
|
),
|
|
8684
|
-
|
|
8685
|
-
|
|
8700
|
+
React.createElement('hr', { className: 'article-seperater' }),
|
|
8701
|
+
React.createElement(
|
|
8686
8702
|
'div',
|
|
8687
8703
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8688
|
-
|
|
8704
|
+
main_40 && Ads.map(function (ad, index) {
|
|
8689
8705
|
if (index === 0) {
|
|
8690
|
-
return
|
|
8706
|
+
return React.createElement(
|
|
8691
8707
|
'div',
|
|
8692
8708
|
{
|
|
8693
8709
|
key: 'addid-1',
|
|
@@ -8707,14 +8723,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8707
8723
|
}
|
|
8708
8724
|
})
|
|
8709
8725
|
),
|
|
8710
|
-
|
|
8726
|
+
React.createElement(
|
|
8711
8727
|
'div',
|
|
8712
8728
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8713
8729
|
Articles.map(function (article, index) {
|
|
8714
|
-
return
|
|
8730
|
+
return React.createElement(
|
|
8715
8731
|
'div',
|
|
8716
8732
|
{ key: article.title },
|
|
8717
|
-
|
|
8733
|
+
React.createElement(
|
|
8718
8734
|
InscreenSensor,
|
|
8719
8735
|
{
|
|
8720
8736
|
visible: sensorVisible,
|
|
@@ -8732,84 +8748,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8732
8748
|
}
|
|
8733
8749
|
}
|
|
8734
8750
|
} },
|
|
8735
|
-
|
|
8751
|
+
React.createElement(
|
|
8736
8752
|
Head,
|
|
8737
8753
|
null,
|
|
8738
|
-
currentTitle !== null &&
|
|
8754
|
+
currentTitle !== null && React.createElement(
|
|
8739
8755
|
'title',
|
|
8740
8756
|
{ key: 'title' },
|
|
8741
8757
|
currentTitle
|
|
8742
8758
|
),
|
|
8743
|
-
currentSummary !== null &&
|
|
8744
|
-
currentURL !== null &&
|
|
8745
|
-
currentTitle !== null &&
|
|
8746
|
-
currentThumbnail !== null &&
|
|
8747
|
-
currentSummary !== null &&
|
|
8748
|
-
currentTitle !== null &&
|
|
8749
|
-
currentThumbnail !== null &&
|
|
8750
|
-
currentSummary !== null &&
|
|
8759
|
+
currentSummary !== null && React.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8760
|
+
currentURL !== null && React.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8761
|
+
currentTitle !== null && React.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8762
|
+
currentThumbnail !== null && React.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8763
|
+
currentSummary !== null && React.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8764
|
+
currentTitle !== null && React.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8765
|
+
currentThumbnail !== null && React.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8766
|
+
currentSummary !== null && React.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8751
8767
|
),
|
|
8752
|
-
|
|
8768
|
+
React.createElement(
|
|
8753
8769
|
'article',
|
|
8754
8770
|
{ className: 'article-wrapper' },
|
|
8755
|
-
|
|
8771
|
+
React.createElement(
|
|
8756
8772
|
'div',
|
|
8757
8773
|
{ className: 'article-publishDate' },
|
|
8758
8774
|
moment(article.published).format('LL')
|
|
8759
8775
|
),
|
|
8760
|
-
|
|
8776
|
+
React.createElement(
|
|
8761
8777
|
'div',
|
|
8762
8778
|
{ className: 'author-details-wrapper' },
|
|
8763
8779
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8764
|
-
return
|
|
8780
|
+
return React.createElement(
|
|
8765
8781
|
'span',
|
|
8766
8782
|
{ key: index },
|
|
8767
8783
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor(client, authorDetail.profileImage).url())
|
|
8768
8784
|
);
|
|
8769
8785
|
})
|
|
8770
8786
|
),
|
|
8771
|
-
|
|
8787
|
+
React.createElement(
|
|
8772
8788
|
'h2',
|
|
8773
8789
|
{ className: 'article-title' },
|
|
8774
8790
|
article.title
|
|
8775
8791
|
),
|
|
8776
|
-
|
|
8792
|
+
React.createElement(
|
|
8777
8793
|
'div',
|
|
8778
8794
|
{ className: 'mt-2 mb-2' },
|
|
8779
|
-
|
|
8795
|
+
React.createElement(BlockContent, _extends({
|
|
8780
8796
|
serializers: getSerializers,
|
|
8781
8797
|
videoAccountIDs: accountIDs,
|
|
8782
8798
|
blocks: article.text,
|
|
8783
8799
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8784
8800
|
}, client.config())),
|
|
8785
|
-
|
|
8801
|
+
React.createElement('hr', { className: 'article-seperater my-4' })
|
|
8786
8802
|
),
|
|
8787
|
-
Articles.length > 1 &&
|
|
8788
|
-
|
|
8803
|
+
Articles.length > 1 && React.createElement(
|
|
8804
|
+
React.Fragment,
|
|
8789
8805
|
null,
|
|
8790
|
-
|
|
8806
|
+
React.createElement(
|
|
8791
8807
|
'div',
|
|
8792
8808
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8793
|
-
|
|
8809
|
+
React.createElement(
|
|
8794
8810
|
'h5',
|
|
8795
8811
|
{ className: 'objective-title' },
|
|
8796
8812
|
nodes.seriesTitle
|
|
8797
8813
|
),
|
|
8798
|
-
|
|
8814
|
+
React.createElement(
|
|
8799
8815
|
'div',
|
|
8800
8816
|
{ className: 'prevNextWrapper' },
|
|
8801
8817
|
PrevNextCards(true, index)
|
|
8802
8818
|
)
|
|
8803
8819
|
),
|
|
8804
|
-
|
|
8820
|
+
React.createElement('hr', { className: 'article-seperater' })
|
|
8805
8821
|
)
|
|
8806
8822
|
),
|
|
8807
|
-
|
|
8823
|
+
React.createElement(
|
|
8808
8824
|
'div',
|
|
8809
8825
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8810
|
-
|
|
8826
|
+
main_40 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8811
8827
|
if (innerIndex === 0) {
|
|
8812
|
-
return
|
|
8828
|
+
return React.createElement(
|
|
8813
8829
|
'div',
|
|
8814
8830
|
{
|
|
8815
8831
|
key: 'addid-' + (index + 2),
|
|
@@ -8832,7 +8848,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8832
8848
|
)
|
|
8833
8849
|
);
|
|
8834
8850
|
}),
|
|
8835
|
-
|
|
8851
|
+
React.createElement(
|
|
8836
8852
|
'style',
|
|
8837
8853
|
{ jsx: 'true' },
|
|
8838
8854
|
'\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 '
|
|
@@ -8862,11 +8878,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8862
8878
|
};
|
|
8863
8879
|
}, [handleClickOutside]);
|
|
8864
8880
|
|
|
8865
|
-
return
|
|
8881
|
+
return React.createElement(
|
|
8866
8882
|
'div',
|
|
8867
8883
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8868
|
-
|
|
8869
|
-
|
|
8884
|
+
React.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8885
|
+
React.createElement(
|
|
8870
8886
|
'style',
|
|
8871
8887
|
{ jsx: 'true' },
|
|
8872
8888
|
'\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 '
|
|
@@ -8960,13 +8976,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
8960
8976
|
|
|
8961
8977
|
var FigureCaption = useCallback(function () {
|
|
8962
8978
|
if (imgcaption && imgcaption.length > 0) {
|
|
8963
|
-
return
|
|
8979
|
+
return React.createElement(
|
|
8964
8980
|
'div',
|
|
8965
8981
|
{ className: 'figure-caption' },
|
|
8966
|
-
|
|
8982
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
8967
8983
|
);
|
|
8968
8984
|
} else if (caption) {
|
|
8969
|
-
return
|
|
8985
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
8970
8986
|
} else return null;
|
|
8971
8987
|
}, [caption, imgcaption]);
|
|
8972
8988
|
|
|
@@ -8978,21 +8994,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
8978
8994
|
margin: figureMargin
|
|
8979
8995
|
};
|
|
8980
8996
|
|
|
8981
|
-
return
|
|
8982
|
-
|
|
8997
|
+
return React.createElement(
|
|
8998
|
+
React.Fragment,
|
|
8983
8999
|
null,
|
|
8984
|
-
|
|
8985
|
-
Figure$
|
|
9000
|
+
React.createElement(
|
|
9001
|
+
Figure$2,
|
|
8986
9002
|
{ className: '' + class_name, style: figureStyle },
|
|
8987
|
-
link ?
|
|
9003
|
+
link ? React.createElement(
|
|
8988
9004
|
'a',
|
|
8989
9005
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
8990
|
-
|
|
8991
|
-
|
|
8992
|
-
) :
|
|
8993
|
-
|
|
9006
|
+
React.createElement(Figure$2.Image, { style: { maxWidth: '100%' }, className: 'figure-image', src: urlFor$3(node, client).url(), alt: alt && alt }),
|
|
9007
|
+
React.createElement(FigureCaption, null)
|
|
9008
|
+
) : React.createElement(
|
|
9009
|
+
React.Fragment,
|
|
8994
9010
|
null,
|
|
8995
|
-
|
|
9011
|
+
React.createElement(Figure$2.Image, {
|
|
8996
9012
|
style: { maxWidth: '100%', cursor: 'pointer', width: 'auto' },
|
|
8997
9013
|
className: 'figure-image',
|
|
8998
9014
|
src: urlFor$3(node, client).url(),
|
|
@@ -9002,9 +9018,9 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9002
9018
|
setShowLightbox(true);
|
|
9003
9019
|
}
|
|
9004
9020
|
}),
|
|
9005
|
-
|
|
9021
|
+
React.createElement(FigureCaption, null)
|
|
9006
9022
|
),
|
|
9007
|
-
|
|
9023
|
+
React.createElement(LightBox, {
|
|
9008
9024
|
showLightbox: showLightbox,
|
|
9009
9025
|
lightboxImgSrc: lightboxImgSrc,
|
|
9010
9026
|
closeLightbox: function closeLightbox() {
|
|
@@ -9013,7 +9029,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9013
9029
|
}
|
|
9014
9030
|
})
|
|
9015
9031
|
),
|
|
9016
|
-
|
|
9032
|
+
React.createElement(
|
|
9017
9033
|
'style',
|
|
9018
9034
|
{ jsx: 'true' },
|
|
9019
9035
|
'\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 '
|
|
@@ -9021,7 +9037,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9021
9037
|
);
|
|
9022
9038
|
};
|
|
9023
9039
|
|
|
9024
|
-
var Figure =
|
|
9040
|
+
var Figure = React.memo(FigureComponent, compareProps);
|
|
9025
9041
|
|
|
9026
9042
|
var urlFor$4 = function urlFor(source, client) {
|
|
9027
9043
|
var builder = imageUrlBuilder(client);
|
|
@@ -9067,47 +9083,47 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9067
9083
|
imgcaption = _ref.imgcaption;
|
|
9068
9084
|
|
|
9069
9085
|
if (imgcaption && imgcaption.length > 0) {
|
|
9070
|
-
return
|
|
9086
|
+
return React.createElement(
|
|
9071
9087
|
'div',
|
|
9072
9088
|
{ className: 'multi-figure-caption' },
|
|
9073
|
-
|
|
9089
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9074
9090
|
);
|
|
9075
9091
|
} else if (caption) {
|
|
9076
|
-
return
|
|
9092
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9077
9093
|
} else return null;
|
|
9078
9094
|
};
|
|
9079
9095
|
|
|
9080
9096
|
if (images && images.length > 0) {
|
|
9081
|
-
return
|
|
9097
|
+
return React.createElement(
|
|
9082
9098
|
'div',
|
|
9083
9099
|
{ className: 'multi-figure-container' },
|
|
9084
|
-
|
|
9100
|
+
React.createElement(
|
|
9085
9101
|
Row,
|
|
9086
9102
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9087
9103
|
images.map(function (image, index) {
|
|
9088
|
-
return
|
|
9104
|
+
return React.createElement(
|
|
9089
9105
|
Col,
|
|
9090
9106
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9091
|
-
image.link ?
|
|
9107
|
+
image.link ? React.createElement(
|
|
9092
9108
|
'a',
|
|
9093
|
-
_extends
|
|
9094
|
-
|
|
9109
|
+
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9110
|
+
React.createElement(
|
|
9095
9111
|
'div',
|
|
9096
9112
|
{ className: 'multi-figure-image-container' },
|
|
9097
|
-
|
|
9113
|
+
React.createElement(
|
|
9098
9114
|
LazyLoad,
|
|
9099
9115
|
{ once: true },
|
|
9100
|
-
|
|
9116
|
+
React.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor$4(image.asset, client).url(), alt: image.alt })
|
|
9101
9117
|
),
|
|
9102
|
-
|
|
9118
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9103
9119
|
)
|
|
9104
|
-
) :
|
|
9120
|
+
) : React.createElement(
|
|
9105
9121
|
'div',
|
|
9106
9122
|
{ className: 'multi-figure-image-container' },
|
|
9107
|
-
|
|
9123
|
+
React.createElement(
|
|
9108
9124
|
LazyLoad,
|
|
9109
9125
|
{ once: true },
|
|
9110
|
-
|
|
9126
|
+
React.createElement('img', {
|
|
9111
9127
|
'images-count': images.length,
|
|
9112
9128
|
className: 'multi-figure-image',
|
|
9113
9129
|
src: urlFor$4(image.asset, client).url(),
|
|
@@ -9118,17 +9134,17 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9118
9134
|
}
|
|
9119
9135
|
})
|
|
9120
9136
|
),
|
|
9121
|
-
|
|
9137
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9122
9138
|
)
|
|
9123
9139
|
);
|
|
9124
9140
|
})
|
|
9125
9141
|
),
|
|
9126
|
-
|
|
9142
|
+
React.createElement(
|
|
9127
9143
|
'div',
|
|
9128
9144
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9129
|
-
|
|
9145
|
+
React.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9130
9146
|
),
|
|
9131
|
-
|
|
9147
|
+
React.createElement(
|
|
9132
9148
|
'style',
|
|
9133
9149
|
{ jsx: 'true' },
|
|
9134
9150
|
'\n .multi-figure-caption,\n .multi-figure-caption h1,\n .multi-figure-caption h2,\n .multi-figure-caption h3,\n .multi-figure-caption h4,\n .multi-figure-caption h5,\n .multi-figure-caption h6,\n .multi-figure-caption p,\n .multi-figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n\n .multi-figure-container {\n margin-bottom: 1rem;\n }\n .multi-figure-image {\n width: 100%;\n height: auto;\n object-fit: contain;\n }\n .multi-figure-image-container {\n padding-right: 0.5rem;\n }\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-figure-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 200px;\n }\n .multi-figure-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 300px;\n }\n }\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
|
|
@@ -9150,10 +9166,10 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9150
9166
|
|
|
9151
9167
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
9152
9168
|
|
|
9153
|
-
return
|
|
9169
|
+
return React.createElement(
|
|
9154
9170
|
'div',
|
|
9155
9171
|
{ id: elementId },
|
|
9156
|
-
|
|
9172
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
9157
9173
|
);
|
|
9158
9174
|
};
|
|
9159
9175
|
|
|
@@ -9225,17 +9241,17 @@ var getSerializers = function getSerializers() {
|
|
|
9225
9241
|
var node = _ref.node;
|
|
9226
9242
|
var url = node.url;
|
|
9227
9243
|
|
|
9228
|
-
return
|
|
9244
|
+
return React.createElement(YouTubePlayer, { url: url });
|
|
9229
9245
|
},
|
|
9230
9246
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9231
9247
|
var node = _ref2.node;
|
|
9232
9248
|
|
|
9233
|
-
return
|
|
9249
|
+
return React.createElement(YouTubeGallery, { nodes: node, accountIDs: videoAccountIDs || {}, client: client, getSerializers: getSerializers(client) });
|
|
9234
9250
|
},
|
|
9235
9251
|
articleSeries: function articleSeries(_ref3) {
|
|
9236
9252
|
var node = _ref3.node;
|
|
9237
9253
|
|
|
9238
|
-
return
|
|
9254
|
+
return React.createElement(ArticleSeries, {
|
|
9239
9255
|
nodes: node,
|
|
9240
9256
|
accountIDs: videoAccountIDs || {},
|
|
9241
9257
|
pageview: pageview,
|
|
@@ -9248,61 +9264,61 @@ var getSerializers = function getSerializers() {
|
|
|
9248
9264
|
figure: function figure(_ref4) {
|
|
9249
9265
|
var node = _ref4.node;
|
|
9250
9266
|
|
|
9251
|
-
return
|
|
9267
|
+
return React.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9252
9268
|
},
|
|
9253
9269
|
multifigure: function multifigure(_ref5) {
|
|
9254
9270
|
var node = _ref5.node;
|
|
9255
9271
|
|
|
9256
|
-
return
|
|
9272
|
+
return React.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9257
9273
|
},
|
|
9258
9274
|
slideshow: function slideshow(_ref6) {
|
|
9259
9275
|
var node = _ref6.node;
|
|
9260
9276
|
var slides = node.slides;
|
|
9261
9277
|
|
|
9262
|
-
return
|
|
9278
|
+
return React.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9263
9279
|
},
|
|
9264
9280
|
sidebar: function sidebar(_ref7) {
|
|
9265
9281
|
var node = _ref7.node;
|
|
9266
9282
|
var caption = node.caption,
|
|
9267
9283
|
content = node.content;
|
|
9268
9284
|
|
|
9269
|
-
return
|
|
9285
|
+
return React.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9270
9286
|
},
|
|
9271
9287
|
datatable: function datatable(_ref8) {
|
|
9272
9288
|
var node = _ref8.node;
|
|
9273
9289
|
var table = node.table;
|
|
9274
9290
|
|
|
9275
|
-
return
|
|
9291
|
+
return React.createElement(TableShow, { rows: table.rows });
|
|
9276
9292
|
},
|
|
9277
9293
|
media: function media(_ref9) {
|
|
9278
9294
|
var node = _ref9.node;
|
|
9279
9295
|
|
|
9280
|
-
return
|
|
9296
|
+
return React.createElement(Media, { node: node, client: client });
|
|
9281
9297
|
},
|
|
9282
9298
|
iframe: function iframe(_ref10) {
|
|
9283
9299
|
var node = _ref10.node;
|
|
9284
9300
|
|
|
9285
|
-
return
|
|
9301
|
+
return React.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9286
9302
|
},
|
|
9287
9303
|
video: function video(_ref11) {
|
|
9288
9304
|
var node = _ref11.node;
|
|
9289
9305
|
|
|
9290
|
-
return
|
|
9306
|
+
return React.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9291
9307
|
},
|
|
9292
9308
|
audio: function audio(_ref12) {
|
|
9293
9309
|
var node = _ref12.node;
|
|
9294
9310
|
|
|
9295
|
-
return
|
|
9311
|
+
return React.createElement(Audio, { node: node });
|
|
9296
9312
|
},
|
|
9297
9313
|
poll: function poll(_ref13) {
|
|
9298
9314
|
var node = _ref13.node;
|
|
9299
9315
|
|
|
9300
|
-
return
|
|
9316
|
+
return React.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9301
9317
|
},
|
|
9302
9318
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9303
9319
|
var node = _ref14.node;
|
|
9304
9320
|
|
|
9305
|
-
return
|
|
9321
|
+
return React.createElement(Poll$1, {
|
|
9306
9322
|
node: node,
|
|
9307
9323
|
client: client,
|
|
9308
9324
|
pageview: pageview,
|
|
@@ -9316,35 +9332,35 @@ var getSerializers = function getSerializers() {
|
|
|
9316
9332
|
var node = _ref15.node;
|
|
9317
9333
|
var quizzes = node.quizzes;
|
|
9318
9334
|
|
|
9319
|
-
return
|
|
9335
|
+
return React.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9320
9336
|
},
|
|
9321
9337
|
leads: function leads(_ref16) {
|
|
9322
9338
|
var node = _ref16.node;
|
|
9323
9339
|
var leadID = node.leadID;
|
|
9324
9340
|
|
|
9325
9341
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9326
|
-
return
|
|
9342
|
+
return React.createElement(Leads, { url: url });
|
|
9327
9343
|
},
|
|
9328
9344
|
slideshows: function slideshows(_ref17) {
|
|
9329
9345
|
var node = _ref17.node;
|
|
9330
9346
|
|
|
9331
|
-
return
|
|
9347
|
+
return React.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9332
9348
|
},
|
|
9333
9349
|
nativeAd: function nativeAd(_ref18) {
|
|
9334
9350
|
var node = _ref18.node;
|
|
9335
9351
|
|
|
9336
|
-
return
|
|
9352
|
+
return React.createElement(NativeAd, { node: node });
|
|
9337
9353
|
},
|
|
9338
9354
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
9339
9355
|
var node = _ref19.node;
|
|
9340
9356
|
|
|
9341
|
-
return
|
|
9357
|
+
return React.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9342
9358
|
},
|
|
9343
9359
|
hrtag: function hrtag() {
|
|
9344
|
-
return
|
|
9360
|
+
return React.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9345
9361
|
},
|
|
9346
9362
|
brtag: function brtag() {
|
|
9347
|
-
return
|
|
9363
|
+
return React.createElement('br', { className: 'line-break' });
|
|
9348
9364
|
},
|
|
9349
9365
|
formstack: function formstack(_ref20) {
|
|
9350
9366
|
var node = _ref20.node;
|
|
@@ -9352,24 +9368,24 @@ var getSerializers = function getSerializers() {
|
|
|
9352
9368
|
Caption = node.Caption,
|
|
9353
9369
|
needSegmentSupport = node.needSegmentSupport;
|
|
9354
9370
|
|
|
9355
|
-
return
|
|
9371
|
+
return React.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
9356
9372
|
},
|
|
9357
9373
|
multimedia: function multimedia(_ref21) {
|
|
9358
9374
|
var node = _ref21.node;
|
|
9359
9375
|
|
|
9360
|
-
return
|
|
9376
|
+
return React.createElement(MultiMedia, { node: node, client: client });
|
|
9361
9377
|
}
|
|
9362
9378
|
},
|
|
9363
9379
|
marks: {
|
|
9364
9380
|
superscript: function superscript(props) {
|
|
9365
|
-
return
|
|
9381
|
+
return React.createElement(
|
|
9366
9382
|
'sup',
|
|
9367
9383
|
null,
|
|
9368
9384
|
props.children
|
|
9369
9385
|
);
|
|
9370
9386
|
},
|
|
9371
9387
|
subscript: function subscript(props) {
|
|
9372
|
-
return
|
|
9388
|
+
return React.createElement(
|
|
9373
9389
|
'sub',
|
|
9374
9390
|
null,
|
|
9375
9391
|
props.children
|
|
@@ -9385,7 +9401,7 @@ var getSerializers = function getSerializers() {
|
|
|
9385
9401
|
if (href && href.charAt(0) === '#') {
|
|
9386
9402
|
var elementId = href.slice(1);
|
|
9387
9403
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9388
|
-
return
|
|
9404
|
+
return React.createElement(
|
|
9389
9405
|
'a',
|
|
9390
9406
|
{ onClick: function onClick() {
|
|
9391
9407
|
return ScrollToElement(elementId);
|
|
@@ -9395,7 +9411,7 @@ var getSerializers = function getSerializers() {
|
|
|
9395
9411
|
}
|
|
9396
9412
|
|
|
9397
9413
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9398
|
-
return
|
|
9414
|
+
return React.createElement(
|
|
9399
9415
|
'a',
|
|
9400
9416
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
9401
9417
|
children
|
|
@@ -9403,7 +9419,7 @@ var getSerializers = function getSerializers() {
|
|
|
9403
9419
|
},
|
|
9404
9420
|
alignleft: function alignleft(_ref22) {
|
|
9405
9421
|
var children = _ref22.children;
|
|
9406
|
-
return
|
|
9422
|
+
return React.createElement(
|
|
9407
9423
|
'div',
|
|
9408
9424
|
{ style: { textAlign: 'left' } },
|
|
9409
9425
|
children
|
|
@@ -9411,7 +9427,7 @@ var getSerializers = function getSerializers() {
|
|
|
9411
9427
|
},
|
|
9412
9428
|
alignright: function alignright(_ref23) {
|
|
9413
9429
|
var children = _ref23.children;
|
|
9414
|
-
return
|
|
9430
|
+
return React.createElement(
|
|
9415
9431
|
'div',
|
|
9416
9432
|
{ style: { textAlign: 'right' } },
|
|
9417
9433
|
children
|
|
@@ -9419,7 +9435,7 @@ var getSerializers = function getSerializers() {
|
|
|
9419
9435
|
},
|
|
9420
9436
|
aligncenter: function aligncenter(_ref24) {
|
|
9421
9437
|
var children = _ref24.children;
|
|
9422
|
-
return
|
|
9438
|
+
return React.createElement(
|
|
9423
9439
|
'div',
|
|
9424
9440
|
{ style: { textAlign: 'center' } },
|
|
9425
9441
|
children
|
|
@@ -9427,7 +9443,7 @@ var getSerializers = function getSerializers() {
|
|
|
9427
9443
|
},
|
|
9428
9444
|
alignjustify: function alignjustify(_ref25) {
|
|
9429
9445
|
var children = _ref25.children;
|
|
9430
|
-
return
|
|
9446
|
+
return React.createElement(
|
|
9431
9447
|
'div',
|
|
9432
9448
|
{ style: { textAlign: 'justify' } },
|
|
9433
9449
|
children
|
|
@@ -9437,7 +9453,7 @@ var getSerializers = function getSerializers() {
|
|
|
9437
9453
|
var children = props.children,
|
|
9438
9454
|
color = props.mark.color;
|
|
9439
9455
|
|
|
9440
|
-
return
|
|
9456
|
+
return React.createElement(
|
|
9441
9457
|
'span',
|
|
9442
9458
|
{ style: { color: color ? color.hex : null } },
|
|
9443
9459
|
children
|