@mjhls/mjh-framework 1.0.770-beta.0 → 1.0.770
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-547e399f.js → ADInfeed-32dc37f4.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 +31 -30
- package/dist/cjs/{ADlgInfeed-84cd6750.js → ADlgInfeed-a8dc2b08.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 +56 -55
- package/dist/cjs/ArticleSeriesLandingPage.js +39 -38
- package/dist/cjs/ArticleSeriesListing.js +60 -59
- package/dist/cjs/Auth.js +821 -335
- 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 +24 -23
- 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 +78 -77
- 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 +136 -131
- 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 +70 -69
- 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 +71 -70
- package/dist/cjs/MediaSeriesLanding.js +39 -37
- 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 +107 -106
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +21 -19
- package/dist/cjs/PubSection.js +40 -39
- package/dist/cjs/PubToc.js +17 -16
- package/dist/cjs/PublicationDeck.js +66 -61
- package/dist/cjs/PublicationLanding.js +83 -83
- 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/SeriesListingDeck.js +39 -38
- package/dist/cjs/{SeriesSlider-0a4b30a7.js → SeriesSlider-8b500128.js} +38 -37
- 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 +53 -52
- 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 +75 -71
- 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 +77 -76
- package/dist/cjs/View.js +255 -252
- 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/getQuery.js +1 -1
- package/dist/cjs/getRelatedArticle.js +424 -13
- package/dist/cjs/getRootDocGroup.js +7 -7
- package/dist/cjs/getSerializers.js +43 -43
- 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-4ec63018.js → index-33d0daca.js} +925 -902
- package/dist/cjs/{index-3294d3bc.js → index-4d74ffd6.js} +40 -41
- package/dist/cjs/{index-da796b8c.js → index-80f57cff.js} +17 -15
- package/dist/cjs/index-bd6c9f56.js +211 -0
- 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 +162 -160
- 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-892282a8.js → ADInfeed-6315ccfc.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 +27 -27
- package/dist/esm/{ADlgInfeed-4cc9ead9.js → ADlgInfeed-4e05a45c.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 +52 -52
- package/dist/esm/ArticleSeriesLandingPage.js +35 -35
- package/dist/esm/ArticleSeriesListing.js +54 -54
- package/dist/esm/Auth.js +804 -322
- 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 +19 -19
- 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 +71 -71
- 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 +105 -105
- 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 +66 -66
- 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 +64 -64
- package/dist/esm/MediaSeriesLanding.js +30 -30
- 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 +102 -102
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PubSection.js +36 -36
- package/dist/esm/PubToc.js +13 -13
- package/dist/esm/PublicationDeck.js +38 -38
- package/dist/esm/PublicationLanding.js +55 -59
- 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/SeriesListingDeck.js +33 -33
- package/dist/esm/{SeriesSlider-f629bded.js → SeriesSlider-00ad2992.js} +27 -27
- 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 +47 -47
- 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 +61 -61
- 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 +70 -70
- package/dist/esm/View.js +235 -236
- 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/getQuery.js +1 -1
- package/dist/esm/getRelatedArticle.js +424 -13
- package/dist/esm/getRootDocGroup.js +7 -7
- package/dist/esm/getSerializers.js +43 -43
- 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-c6e49ea4.js → index-47730283.js} +860 -844
- 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-db3bb315.js +207 -0
- 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 +128 -129
- 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,37 +1,37 @@
|
|
|
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$1 from 'react-bootstrap/Row';
|
|
11
|
-
import Col$1 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, Card, Row, Col, Button, ProgressBar } 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 { d as IoIosArrowDropupCircle } from './index.esm-29e48d38.js';
|
|
27
|
-
import { u as util } from './util-7700fc59.js';
|
|
28
|
-
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-83f53e4e.js';
|
|
29
|
-
import Head from 'next/head';
|
|
20
|
+
import { m as moment } from './moment-bc12cb97.js';
|
|
30
21
|
import SocialShare from './SocialShare.js';
|
|
31
|
-
import { _ as
|
|
22
|
+
import { _ as _export, a as _core } from './_to-object-97770c52.js';
|
|
23
|
+
import { _ as _objectToArray } from './_object-to-array-8f409e54.js';
|
|
24
|
+
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-fa2dcda7.js';
|
|
32
25
|
import Pagination from 'react-bootstrap/Pagination';
|
|
33
26
|
import Button$1 from 'react-bootstrap/Button';
|
|
34
|
-
import
|
|
27
|
+
import { h as html_decode_1 } from './entities-932b50cf.js';
|
|
28
|
+
import DFPAdSlot from './AdSlot.js';
|
|
29
|
+
import Row$1 from 'react-bootstrap/Row';
|
|
30
|
+
import Col$1 from 'react-bootstrap/Col';
|
|
31
|
+
import Head from 'next/head';
|
|
32
|
+
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-5906fbea.js';
|
|
33
|
+
import { d as IoIosArrowDropupCircle } from './index.esm-3fdda599.js';
|
|
34
|
+
import Figure$2 from 'react-bootstrap/Figure';
|
|
35
35
|
|
|
36
36
|
var urlFor = function urlFor(source, builder) {
|
|
37
37
|
return builder.image(source).auto('format');
|
|
@@ -72,20 +72,20 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
72
72
|
if (pageview) pageview(router.asPath);
|
|
73
73
|
}, [router]);
|
|
74
74
|
|
|
75
|
-
return
|
|
75
|
+
return React.createElement(
|
|
76
76
|
'div',
|
|
77
77
|
{ className: 'mt-3 mb-3' },
|
|
78
|
-
|
|
78
|
+
React.createElement(
|
|
79
79
|
Carousel,
|
|
80
80
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
81
81
|
return onChangeSlide(selectedIndex, router);
|
|
82
82
|
}, interval: null },
|
|
83
83
|
slides && slides.map(function (slide) {
|
|
84
|
-
return
|
|
84
|
+
return React.createElement(
|
|
85
85
|
Carousel.Item,
|
|
86
86
|
{ key: slide._key },
|
|
87
|
-
|
|
88
|
-
slide.caption &&
|
|
87
|
+
React.createElement('img', { src: slide.asset && urlFor(slide.asset, builder).url(), alt: slide.alt && slide.alt, style: { width: '100%' } }),
|
|
88
|
+
slide.caption && React.createElement(
|
|
89
89
|
'p',
|
|
90
90
|
{ className: 'p-2' },
|
|
91
91
|
slide.caption
|
|
@@ -96,21 +96,18 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
96
96
|
);
|
|
97
97
|
};
|
|
98
98
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
// do not edit .js files directly - edit src/index.jst
|
|
100
|
+
|
|
101
|
+
|
|
102
102
|
|
|
103
103
|
var fastDeepEqual = function equal(a, b) {
|
|
104
104
|
if (a === b) return true;
|
|
105
105
|
|
|
106
106
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
107
|
-
|
|
108
|
-
, arrB = isArray(b)
|
|
109
|
-
, i
|
|
110
|
-
, length
|
|
111
|
-
, key;
|
|
107
|
+
if (a.constructor !== b.constructor) return false;
|
|
112
108
|
|
|
113
|
-
|
|
109
|
+
var length, i, keys;
|
|
110
|
+
if (Array.isArray(a)) {
|
|
114
111
|
length = a.length;
|
|
115
112
|
if (length != b.length) return false;
|
|
116
113
|
for (i = length; i-- !== 0;)
|
|
@@ -118,35 +115,29 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
118
115
|
return true;
|
|
119
116
|
}
|
|
120
117
|
|
|
121
|
-
if (arrA != arrB) return false;
|
|
122
118
|
|
|
123
|
-
var dateA = a instanceof Date
|
|
124
|
-
, dateB = b instanceof Date;
|
|
125
|
-
if (dateA != dateB) return false;
|
|
126
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
127
119
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
if (
|
|
131
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
120
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
121
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
122
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
132
123
|
|
|
133
|
-
|
|
124
|
+
keys = Object.keys(a);
|
|
134
125
|
length = keys.length;
|
|
135
|
-
|
|
136
|
-
if (length !== keyList(b).length)
|
|
137
|
-
return false;
|
|
126
|
+
if (length !== Object.keys(b).length) return false;
|
|
138
127
|
|
|
139
128
|
for (i = length; i-- !== 0;)
|
|
140
|
-
if (!
|
|
129
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
141
130
|
|
|
142
131
|
for (i = length; i-- !== 0;) {
|
|
143
|
-
key = keys[i];
|
|
132
|
+
var key = keys[i];
|
|
133
|
+
|
|
144
134
|
if (!equal(a[key], b[key])) return false;
|
|
145
135
|
}
|
|
146
136
|
|
|
147
137
|
return true;
|
|
148
138
|
}
|
|
149
139
|
|
|
140
|
+
// true if both NaN, false otherwise
|
|
150
141
|
return a!==a && b!==b;
|
|
151
142
|
};
|
|
152
143
|
|
|
@@ -684,14 +675,14 @@ function coerce(val) {
|
|
|
684
675
|
return val;
|
|
685
676
|
}
|
|
686
677
|
});
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
678
|
+
debug.coerce;
|
|
679
|
+
debug.disable;
|
|
680
|
+
debug.enable;
|
|
681
|
+
debug.enabled;
|
|
682
|
+
debug.humanize;
|
|
683
|
+
debug.names;
|
|
684
|
+
debug.skips;
|
|
685
|
+
debug.formatters;
|
|
695
686
|
|
|
696
687
|
var browser = createCommonjsModule(function (module, exports) {
|
|
697
688
|
/**
|
|
@@ -880,13 +871,13 @@ function localstorage() {
|
|
|
880
871
|
} catch (e) {}
|
|
881
872
|
}
|
|
882
873
|
});
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
874
|
+
browser.log;
|
|
875
|
+
browser.formatArgs;
|
|
876
|
+
browser.save;
|
|
877
|
+
browser.load;
|
|
878
|
+
browser.useColors;
|
|
879
|
+
browser.storage;
|
|
880
|
+
browser.colors;
|
|
890
881
|
|
|
891
882
|
// MIT lisence
|
|
892
883
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1161,14 +1152,14 @@ function init (debug) {
|
|
|
1161
1152
|
|
|
1162
1153
|
exports.enable(load());
|
|
1163
1154
|
});
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1155
|
+
node.init;
|
|
1156
|
+
node.log;
|
|
1157
|
+
node.formatArgs;
|
|
1158
|
+
node.save;
|
|
1159
|
+
node.load;
|
|
1160
|
+
node.useColors;
|
|
1161
|
+
node.colors;
|
|
1162
|
+
node.inspectOpts;
|
|
1172
1163
|
|
|
1173
1164
|
var src = createCommonjsModule(function (module) {
|
|
1174
1165
|
/**
|
|
@@ -1569,199 +1560,239 @@ module.exports = exports['default'];
|
|
|
1569
1560
|
|
|
1570
1561
|
var youTubePlayer = unwrapExports(dist);
|
|
1571
1562
|
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
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; };
|
|
1563
|
+
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); }
|
|
1575
1564
|
|
|
1576
1565
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1577
1566
|
|
|
1578
|
-
function
|
|
1567
|
+
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); } }
|
|
1579
1568
|
|
|
1580
|
-
function
|
|
1569
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1570
|
+
|
|
1571
|
+
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); }
|
|
1572
|
+
|
|
1573
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1574
|
+
|
|
1575
|
+
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); }; }
|
|
1576
|
+
|
|
1577
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1578
|
+
|
|
1579
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1580
|
+
|
|
1581
|
+
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; } }
|
|
1582
|
+
|
|
1583
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1581
1584
|
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1585
|
+
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; }
|
|
1586
|
+
|
|
1587
|
+
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; }
|
|
1588
|
+
|
|
1589
|
+
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; }
|
|
1590
|
+
/**
|
|
1591
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1592
|
+
*
|
|
1593
|
+
* @param {Object} prevProps
|
|
1594
|
+
* @param {Object} props
|
|
1587
1595
|
*/
|
|
1596
|
+
|
|
1588
1597
|
function shouldUpdateVideo(prevProps, props) {
|
|
1589
1598
|
// A changing video should always trigger an update
|
|
1590
1599
|
if (prevProps.videoId !== props.videoId) {
|
|
1591
1600
|
return true;
|
|
1592
|
-
}
|
|
1593
|
-
|
|
1594
|
-
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1601
|
+
} // Otherwise, a change in the start/end time playerVars also requires a player
|
|
1595
1602
|
// update.
|
|
1603
|
+
|
|
1604
|
+
|
|
1596
1605
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1597
1606
|
var vars = props.opts.playerVars || {};
|
|
1598
|
-
|
|
1599
1607
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1600
1608
|
}
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
*
|
|
1604
|
-
*
|
|
1605
|
-
*
|
|
1606
|
-
*
|
|
1607
|
-
* @param {Object} opts
|
|
1609
|
+
/**
|
|
1610
|
+
* Neutralize API options that only require a video update, leaving only options
|
|
1611
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1612
|
+
* player reset is necessary.
|
|
1613
|
+
*
|
|
1614
|
+
* @param {Object} opts
|
|
1608
1615
|
*/
|
|
1616
|
+
|
|
1617
|
+
|
|
1609
1618
|
function filterResetOptions(opts) {
|
|
1610
|
-
return
|
|
1611
|
-
playerVars:
|
|
1619
|
+
return _objectSpread(_objectSpread({}, opts), {}, {
|
|
1620
|
+
playerVars: _objectSpread({
|
|
1612
1621
|
autoplay: 0,
|
|
1613
1622
|
start: 0,
|
|
1614
1623
|
end: 0
|
|
1615
|
-
})
|
|
1624
|
+
}, opts.playerVars)
|
|
1616
1625
|
});
|
|
1617
1626
|
}
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
*
|
|
1621
|
-
*
|
|
1622
|
-
*
|
|
1623
|
-
*
|
|
1624
|
-
*
|
|
1625
|
-
* @param {Object}
|
|
1626
|
-
* @param {Object} props
|
|
1627
|
+
/**
|
|
1628
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1629
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1630
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1631
|
+
* those.
|
|
1632
|
+
*
|
|
1633
|
+
* @param {Object} prevProps
|
|
1634
|
+
* @param {Object} props
|
|
1627
1635
|
*/
|
|
1636
|
+
|
|
1637
|
+
|
|
1628
1638
|
function shouldResetPlayer(prevProps, props) {
|
|
1629
1639
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1630
1640
|
}
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
*
|
|
1634
|
-
*
|
|
1635
|
-
* @param {Object}
|
|
1636
|
-
* @param {Object} props
|
|
1641
|
+
/**
|
|
1642
|
+
* Check whether a props change should result in an id or className update.
|
|
1643
|
+
*
|
|
1644
|
+
* @param {Object} prevProps
|
|
1645
|
+
* @param {Object} props
|
|
1637
1646
|
*/
|
|
1647
|
+
|
|
1648
|
+
|
|
1638
1649
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1639
1650
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1640
1651
|
}
|
|
1641
1652
|
|
|
1642
|
-
var YouTube = function (_React$Component) {
|
|
1653
|
+
var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
1643
1654
|
_inherits(YouTube, _React$Component);
|
|
1644
1655
|
|
|
1656
|
+
var _super = _createSuper(YouTube);
|
|
1657
|
+
|
|
1658
|
+
/**
|
|
1659
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1660
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1661
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1662
|
+
*/
|
|
1645
1663
|
function YouTube(props) {
|
|
1664
|
+
var _this;
|
|
1665
|
+
|
|
1646
1666
|
_classCallCheck(this, YouTube);
|
|
1647
1667
|
|
|
1648
|
-
|
|
1668
|
+
_this = _super.call(this, props);
|
|
1649
1669
|
|
|
1650
|
-
_this
|
|
1670
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerReady", function (event) {
|
|
1651
1671
|
return _this.props.onReady(event);
|
|
1652
|
-
};
|
|
1672
|
+
});
|
|
1653
1673
|
|
|
1654
|
-
_this
|
|
1674
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerError", function (event) {
|
|
1655
1675
|
return _this.props.onError(event);
|
|
1656
|
-
};
|
|
1676
|
+
});
|
|
1657
1677
|
|
|
1658
|
-
_this
|
|
1678
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerStateChange", function (event) {
|
|
1659
1679
|
_this.props.onStateChange(event);
|
|
1660
|
-
switch (event.data) {
|
|
1661
1680
|
|
|
1681
|
+
switch (event.data) {
|
|
1662
1682
|
case YouTube.PlayerState.ENDED:
|
|
1663
1683
|
_this.props.onEnd(event);
|
|
1684
|
+
|
|
1664
1685
|
break;
|
|
1665
1686
|
|
|
1666
1687
|
case YouTube.PlayerState.PLAYING:
|
|
1667
1688
|
_this.props.onPlay(event);
|
|
1689
|
+
|
|
1668
1690
|
break;
|
|
1669
1691
|
|
|
1670
1692
|
case YouTube.PlayerState.PAUSED:
|
|
1671
1693
|
_this.props.onPause(event);
|
|
1694
|
+
|
|
1672
1695
|
break;
|
|
1673
1696
|
}
|
|
1674
|
-
};
|
|
1697
|
+
});
|
|
1675
1698
|
|
|
1676
|
-
_this
|
|
1699
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackRateChange", function (event) {
|
|
1677
1700
|
return _this.props.onPlaybackRateChange(event);
|
|
1678
|
-
};
|
|
1701
|
+
});
|
|
1679
1702
|
|
|
1680
|
-
_this
|
|
1703
|
+
_defineProperty(_assertThisInitialized(_this), "onPlayerPlaybackQualityChange", function (event) {
|
|
1681
1704
|
return _this.props.onPlaybackQualityChange(event);
|
|
1682
|
-
};
|
|
1705
|
+
});
|
|
1683
1706
|
|
|
1684
|
-
_this
|
|
1707
|
+
_defineProperty(_assertThisInitialized(_this), "createPlayer", function () {
|
|
1685
1708
|
// do not attempt to create a player server-side, it won't work
|
|
1686
|
-
if (typeof document === 'undefined') return;
|
|
1687
|
-
|
|
1688
|
-
var playerOpts =
|
|
1709
|
+
if (typeof document === 'undefined') return; // create player
|
|
1710
|
+
|
|
1711
|
+
var playerOpts = _objectSpread(_objectSpread({}, _this.props.opts), {}, {
|
|
1689
1712
|
// preload the `videoId` video if one is already given
|
|
1690
1713
|
videoId: _this.props.videoId
|
|
1691
1714
|
});
|
|
1692
|
-
|
|
1693
|
-
// attach event handlers
|
|
1715
|
+
|
|
1716
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts); // attach event handlers
|
|
1717
|
+
|
|
1694
1718
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1719
|
+
|
|
1695
1720
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1721
|
+
|
|
1696
1722
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1723
|
+
|
|
1697
1724
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1725
|
+
|
|
1698
1726
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1699
|
-
};
|
|
1727
|
+
});
|
|
1700
1728
|
|
|
1701
|
-
_this
|
|
1729
|
+
_defineProperty(_assertThisInitialized(_this), "resetPlayer", function () {
|
|
1702
1730
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1703
|
-
};
|
|
1731
|
+
});
|
|
1704
1732
|
|
|
1705
|
-
_this
|
|
1733
|
+
_defineProperty(_assertThisInitialized(_this), "updatePlayer", function () {
|
|
1706
1734
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1707
1735
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1708
1736
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1709
1737
|
});
|
|
1710
|
-
};
|
|
1738
|
+
});
|
|
1711
1739
|
|
|
1712
|
-
_this
|
|
1740
|
+
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1741
|
+
return _this.internalPlayer;
|
|
1742
|
+
});
|
|
1743
|
+
|
|
1744
|
+
_defineProperty(_assertThisInitialized(_this), "updateVideo", function () {
|
|
1713
1745
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1714
1746
|
_this.internalPlayer.stopVideo();
|
|
1747
|
+
|
|
1715
1748
|
return;
|
|
1716
|
-
}
|
|
1749
|
+
} // set queueing options
|
|
1750
|
+
|
|
1717
1751
|
|
|
1718
|
-
// set queueing options
|
|
1719
1752
|
var autoplay = false;
|
|
1720
1753
|
var opts = {
|
|
1721
1754
|
videoId: _this.props.videoId
|
|
1722
1755
|
};
|
|
1756
|
+
|
|
1723
1757
|
if ('playerVars' in _this.props.opts) {
|
|
1724
1758
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1759
|
+
|
|
1725
1760
|
if ('start' in _this.props.opts.playerVars) {
|
|
1726
1761
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1727
1762
|
}
|
|
1763
|
+
|
|
1728
1764
|
if ('end' in _this.props.opts.playerVars) {
|
|
1729
1765
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1730
1766
|
}
|
|
1731
|
-
}
|
|
1767
|
+
} // if autoplay is enabled loadVideoById
|
|
1768
|
+
|
|
1732
1769
|
|
|
1733
|
-
// if autoplay is enabled loadVideoById
|
|
1734
1770
|
if (autoplay) {
|
|
1735
1771
|
_this.internalPlayer.loadVideoById(opts);
|
|
1772
|
+
|
|
1736
1773
|
return;
|
|
1737
|
-
}
|
|
1738
|
-
|
|
1774
|
+
} // default behaviour just cues the video
|
|
1775
|
+
|
|
1776
|
+
|
|
1739
1777
|
_this.internalPlayer.cueVideoById(opts);
|
|
1740
|
-
};
|
|
1778
|
+
});
|
|
1741
1779
|
|
|
1742
|
-
_this
|
|
1780
|
+
_defineProperty(_assertThisInitialized(_this), "refContainer", function (container) {
|
|
1743
1781
|
_this.container = container;
|
|
1744
|
-
};
|
|
1782
|
+
});
|
|
1745
1783
|
|
|
1746
1784
|
_this.container = null;
|
|
1747
1785
|
_this.internalPlayer = null;
|
|
1748
1786
|
return _this;
|
|
1749
1787
|
}
|
|
1750
1788
|
|
|
1751
|
-
/**
|
|
1752
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1753
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1754
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1755
|
-
*/
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
1789
|
_createClass(YouTube, [{
|
|
1759
|
-
key:
|
|
1790
|
+
key: "componentDidMount",
|
|
1760
1791
|
value: function componentDidMount() {
|
|
1761
1792
|
this.createPlayer();
|
|
1762
1793
|
}
|
|
1763
1794
|
}, {
|
|
1764
|
-
key:
|
|
1795
|
+
key: "componentDidUpdate",
|
|
1765
1796
|
value: function componentDidUpdate(prevProps) {
|
|
1766
1797
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1767
1798
|
this.updatePlayer();
|
|
@@ -1776,112 +1807,58 @@ var YouTube = function (_React$Component) {
|
|
|
1776
1807
|
}
|
|
1777
1808
|
}
|
|
1778
1809
|
}, {
|
|
1779
|
-
key:
|
|
1810
|
+
key: "componentWillUnmount",
|
|
1780
1811
|
value: function componentWillUnmount() {
|
|
1781
|
-
/**
|
|
1782
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1783
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1784
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1785
|
-
* this method isn't quick enough to reset the container element.
|
|
1812
|
+
/**
|
|
1813
|
+
* Note: The `youtube-player` package that is used promisifies all YouTube
|
|
1814
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1815
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1816
|
+
* this method isn't quick enough to reset the container element.
|
|
1786
1817
|
*/
|
|
1787
1818
|
this.internalPlayer.destroy();
|
|
1788
1819
|
}
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
*
|
|
1792
|
-
*
|
|
1793
|
-
*
|
|
1794
|
-
* @param {Object} target - player object
|
|
1795
|
-
*/
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
/**
|
|
1799
|
-
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1800
|
-
*
|
|
1801
|
-
* @param {Object} event
|
|
1802
|
-
* @param {Integer} data - error type
|
|
1803
|
-
* @param {Object} target - player object
|
|
1804
|
-
*/
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
/**
|
|
1808
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1809
|
-
*
|
|
1810
|
-
* @param {Object} event
|
|
1811
|
-
* @param {Integer} data - status change type
|
|
1812
|
-
* @param {Object} target - actual YT player
|
|
1813
|
-
*/
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
/**
|
|
1817
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1818
|
-
*
|
|
1819
|
-
* @param {Object} event
|
|
1820
|
-
* @param {Float} data - playback rate
|
|
1821
|
-
* @param {Object} target - actual YT player
|
|
1822
|
-
*/
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
/**
|
|
1826
|
-
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1827
|
-
*
|
|
1828
|
-
* @param {Object} event
|
|
1829
|
-
* @param {String} data - playback quality
|
|
1830
|
-
* @param {Object} target - actual YT player
|
|
1831
|
-
*/
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
/**
|
|
1835
|
-
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1836
|
-
*/
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
/**
|
|
1840
|
-
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1841
|
-
*/
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
/**
|
|
1845
|
-
* Method to update the id and class of the Youtube Player iframe.
|
|
1846
|
-
* React should update this automatically but since the Youtube Player API
|
|
1847
|
-
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1848
|
-
*/
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
/**
|
|
1852
|
-
* Call Youtube Player API methods to update the currently playing video.
|
|
1853
|
-
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1854
|
-
* Youtube Player API methods to update the video.
|
|
1820
|
+
/**
|
|
1821
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1822
|
+
*
|
|
1823
|
+
* @param {Object} event
|
|
1824
|
+
* @param {Object} target - player object
|
|
1855
1825
|
*/
|
|
1856
1826
|
|
|
1857
1827
|
}, {
|
|
1858
|
-
key:
|
|
1828
|
+
key: "render",
|
|
1859
1829
|
value: function render() {
|
|
1860
|
-
return
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1830
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1831
|
+
className: this.props.containerClassName
|
|
1832
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1833
|
+
id: this.props.id,
|
|
1834
|
+
className: this.props.className,
|
|
1835
|
+
ref: this.refContainer
|
|
1836
|
+
}));
|
|
1865
1837
|
}
|
|
1866
1838
|
}]);
|
|
1867
1839
|
|
|
1868
1840
|
return YouTube;
|
|
1869
|
-
}(
|
|
1841
|
+
}(React.Component);
|
|
1842
|
+
|
|
1843
|
+
_defineProperty(YouTube, "PlayerState", {
|
|
1844
|
+
UNSTARTED: -1,
|
|
1845
|
+
ENDED: 0,
|
|
1846
|
+
PLAYING: 1,
|
|
1847
|
+
PAUSED: 2,
|
|
1848
|
+
BUFFERING: 3,
|
|
1849
|
+
CUED: 5
|
|
1850
|
+
});
|
|
1870
1851
|
|
|
1871
1852
|
YouTube.propTypes = {
|
|
1872
1853
|
videoId: PropTypes.string,
|
|
1873
|
-
|
|
1874
1854
|
// custom ID for player element
|
|
1875
1855
|
id: PropTypes.string,
|
|
1876
|
-
|
|
1877
1856
|
// custom class name for player element
|
|
1878
1857
|
className: PropTypes.string,
|
|
1879
1858
|
// custom class name for player container element
|
|
1880
1859
|
containerClassName: PropTypes.string,
|
|
1881
|
-
|
|
1882
1860
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1883
1861
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1884
|
-
|
|
1885
1862
|
// event subscriptions
|
|
1886
1863
|
onReady: PropTypes.func,
|
|
1887
1864
|
onError: PropTypes.func,
|
|
@@ -1893,6 +1870,7 @@ YouTube.propTypes = {
|
|
|
1893
1870
|
onPlaybackQualityChange: PropTypes.func
|
|
1894
1871
|
};
|
|
1895
1872
|
YouTube.defaultProps = {
|
|
1873
|
+
videoId: null,
|
|
1896
1874
|
id: null,
|
|
1897
1875
|
className: null,
|
|
1898
1876
|
opts: {},
|
|
@@ -1906,14 +1884,6 @@ YouTube.defaultProps = {
|
|
|
1906
1884
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1907
1885
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1908
1886
|
};
|
|
1909
|
-
YouTube.PlayerState = {
|
|
1910
|
-
UNSTARTED: -1,
|
|
1911
|
-
ENDED: 0,
|
|
1912
|
-
PLAYING: 1,
|
|
1913
|
-
PAUSED: 2,
|
|
1914
|
-
BUFFERING: 3,
|
|
1915
|
-
CUED: 5
|
|
1916
|
-
};
|
|
1917
1887
|
|
|
1918
1888
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1919
1889
|
var url = _ref.url;
|
|
@@ -2013,11 +1983,11 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
2013
1983
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
2014
1984
|
};
|
|
2015
1985
|
|
|
2016
|
-
return
|
|
1986
|
+
return React.createElement(
|
|
2017
1987
|
'div',
|
|
2018
1988
|
{ id: 'fluid-video-container' },
|
|
2019
|
-
|
|
2020
|
-
|
|
1989
|
+
React.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
1990
|
+
React.createElement(
|
|
2021
1991
|
'style',
|
|
2022
1992
|
{ jsx: 'true' },
|
|
2023
1993
|
'\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 '
|
|
@@ -2030,20 +2000,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2030
2000
|
content = _ref.content,
|
|
2031
2001
|
getSerializers = _ref.getSerializers;
|
|
2032
2002
|
|
|
2033
|
-
return
|
|
2003
|
+
return React.createElement(
|
|
2034
2004
|
'article',
|
|
2035
2005
|
{ className: 'sidebar' },
|
|
2036
|
-
|
|
2006
|
+
React.createElement(
|
|
2037
2007
|
'div',
|
|
2038
2008
|
null,
|
|
2039
|
-
|
|
2009
|
+
React.createElement(
|
|
2040
2010
|
'h3',
|
|
2041
2011
|
null,
|
|
2042
2012
|
caption
|
|
2043
2013
|
),
|
|
2044
|
-
|
|
2014
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2045
2015
|
),
|
|
2046
|
-
|
|
2016
|
+
React.createElement(
|
|
2047
2017
|
'style',
|
|
2048
2018
|
{ jsx: 'true' },
|
|
2049
2019
|
'\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 '
|
|
@@ -2054,18 +2024,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2054
2024
|
var TableShow = function TableShow(_ref) {
|
|
2055
2025
|
var rows = _ref.rows;
|
|
2056
2026
|
|
|
2057
|
-
return
|
|
2027
|
+
return React.createElement(
|
|
2058
2028
|
Table,
|
|
2059
2029
|
{ bordered: true, hover: true, responsive: true },
|
|
2060
|
-
|
|
2030
|
+
React.createElement(
|
|
2061
2031
|
'tbody',
|
|
2062
2032
|
null,
|
|
2063
2033
|
rows && rows.map(function (row) {
|
|
2064
|
-
return
|
|
2034
|
+
return React.createElement(
|
|
2065
2035
|
'tr',
|
|
2066
2036
|
{ key: row._key },
|
|
2067
2037
|
row.cells && row.cells.map(function (cell, index) {
|
|
2068
|
-
return cell &&
|
|
2038
|
+
return cell && React.createElement(
|
|
2069
2039
|
'td',
|
|
2070
2040
|
{ key: index },
|
|
2071
2041
|
cell
|
|
@@ -2168,18 +2138,18 @@ var Media = function Media(_ref) {
|
|
|
2168
2138
|
margin: imageMargin
|
|
2169
2139
|
};
|
|
2170
2140
|
|
|
2171
|
-
return
|
|
2141
|
+
return React.createElement(
|
|
2172
2142
|
Figure$1,
|
|
2173
2143
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2174
|
-
|
|
2144
|
+
React.createElement(
|
|
2175
2145
|
'a',
|
|
2176
2146
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2177
|
-
|
|
2147
|
+
React.createElement(
|
|
2178
2148
|
LazyLoad,
|
|
2179
2149
|
{ once: true },
|
|
2180
|
-
|
|
2150
|
+
React.createElement(Figure$1.Image, _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt }))
|
|
2181
2151
|
),
|
|
2182
|
-
caption &&
|
|
2152
|
+
caption && React.createElement(
|
|
2183
2153
|
Figure$1.Caption,
|
|
2184
2154
|
{ className: 'media-caption' },
|
|
2185
2155
|
caption
|
|
@@ -2187,9 +2157,9 @@ var Media = function Media(_ref) {
|
|
|
2187
2157
|
)
|
|
2188
2158
|
);
|
|
2189
2159
|
} else if (caption && caption !== '') {
|
|
2190
|
-
return
|
|
2160
|
+
return React.createElement(
|
|
2191
2161
|
'a',
|
|
2192
|
-
_extends
|
|
2162
|
+
_extends({}, uploadDoc.downloadMedia ? {
|
|
2193
2163
|
href: uploadDoc.asset.url + '?dl='
|
|
2194
2164
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2195
2165
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2207,10 +2177,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2207
2177
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2208
2178
|
|
|
2209
2179
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2210
|
-
return
|
|
2180
|
+
return React.createElement(
|
|
2211
2181
|
'div',
|
|
2212
2182
|
{ className: 'd-block text-center mb-3' },
|
|
2213
|
-
|
|
2183
|
+
React.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2214
2184
|
);
|
|
2215
2185
|
};
|
|
2216
2186
|
|
|
@@ -2245,7 +2215,7 @@ var Video = function Video(_ref) {
|
|
|
2245
2215
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2246
2216
|
//console.log('success:', success.ref)
|
|
2247
2217
|
var player = success.ref;
|
|
2248
|
-
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2218
|
+
if (_typeof$1(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2249
2219
|
player.ima3.settings.debug = true;
|
|
2250
2220
|
if (targeting.content_placement && targeting.document_url) {
|
|
2251
2221
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2343,44 +2313,44 @@ var Video = function Video(_ref) {
|
|
|
2343
2313
|
|
|
2344
2314
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2345
2315
|
if (videoID) {
|
|
2346
|
-
return
|
|
2316
|
+
return React.createElement(
|
|
2347
2317
|
'div',
|
|
2348
2318
|
null,
|
|
2349
|
-
|
|
2319
|
+
React.createElement(ReactPlayerLoader, {
|
|
2350
2320
|
onSuccess: onVideoSuccess,
|
|
2351
2321
|
accountId: accountIDs.brightcove.accountId,
|
|
2352
2322
|
videoId: videoID,
|
|
2353
2323
|
playerId: accountIDs.brightcove.playerId,
|
|
2354
2324
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2355
2325
|
}),
|
|
2356
|
-
|
|
2326
|
+
React.createElement(
|
|
2357
2327
|
'style',
|
|
2358
2328
|
{ jsx: 'true' },
|
|
2359
2329
|
'\n .brightcove-fluid {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n width: 100%;\n margin-bottom: 1rem;\n }\n .brightcove-fluid .video-js {\n height: 100%;\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n '
|
|
2360
2330
|
)
|
|
2361
2331
|
);
|
|
2362
2332
|
} else if (playlistID) {
|
|
2363
|
-
return
|
|
2333
|
+
return React.createElement(
|
|
2364
2334
|
'div',
|
|
2365
2335
|
null,
|
|
2366
|
-
|
|
2336
|
+
React.createElement(ReactPlayerLoader, {
|
|
2367
2337
|
accountId: accountIDs.brightcove.accountId,
|
|
2368
2338
|
playlistId: playlistID,
|
|
2369
2339
|
playerId: accountIDs.brightcove.playerId,
|
|
2370
2340
|
onSuccess: onVideoSuccess,
|
|
2371
2341
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2372
2342
|
}),
|
|
2373
|
-
|
|
2343
|
+
React.createElement(
|
|
2374
2344
|
'style',
|
|
2375
2345
|
{ jsx: 'true' },
|
|
2376
2346
|
'\n .brightcove-fluid {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n width: 100%;\n margin-bottom: 1rem;\n }\n .brightcove-fluid .video-js {\n height: 100%;\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n '
|
|
2377
2347
|
)
|
|
2378
2348
|
);
|
|
2379
2349
|
} else if (experienceID) {
|
|
2380
|
-
return
|
|
2350
|
+
return React.createElement(
|
|
2381
2351
|
'div',
|
|
2382
2352
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2383
|
-
videoLoaded &&
|
|
2353
|
+
videoLoaded && React.createElement('div', { 'data-experience': experienceID })
|
|
2384
2354
|
);
|
|
2385
2355
|
}
|
|
2386
2356
|
return null;
|
|
@@ -2593,9 +2563,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2593
2563
|
});
|
|
2594
2564
|
|
|
2595
2565
|
unwrapExports(props);
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2566
|
+
props.DEPRECATED_CONFIG_PROPS;
|
|
2567
|
+
props.defaultProps;
|
|
2568
|
+
props.propTypes;
|
|
2599
2569
|
|
|
2600
2570
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2601
2571
|
return isNonNullObject(value)
|
|
@@ -2760,11 +2730,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2760
2730
|
|
|
2761
2731
|
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; }
|
|
2762
2732
|
|
|
2763
|
-
function
|
|
2733
|
+
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; } } }; }
|
|
2734
|
+
|
|
2735
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2764
2736
|
|
|
2765
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2737
|
+
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."); }
|
|
2766
2738
|
|
|
2767
|
-
function
|
|
2739
|
+
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); }
|
|
2740
|
+
|
|
2741
|
+
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; }
|
|
2742
|
+
|
|
2743
|
+
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; }
|
|
2768
2744
|
|
|
2769
2745
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2770
2746
|
|
|
@@ -2894,12 +2870,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
2894
2870
|
|
|
2895
2871
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
2896
2872
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
2897
|
-
|
|
2898
|
-
var
|
|
2899
|
-
|
|
2873
|
+
|
|
2874
|
+
var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
|
|
2875
|
+
_step;
|
|
2900
2876
|
|
|
2901
2877
|
try {
|
|
2902
|
-
for (
|
|
2878
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
2903
2879
|
var p = _step.value;
|
|
2904
2880
|
|
|
2905
2881
|
if (props$1[p]) {
|
|
@@ -2914,18 +2890,9 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
2914
2890
|
}
|
|
2915
2891
|
}
|
|
2916
2892
|
} catch (err) {
|
|
2917
|
-
|
|
2918
|
-
_iteratorError = err;
|
|
2893
|
+
_iterator.e(err);
|
|
2919
2894
|
} finally {
|
|
2920
|
-
|
|
2921
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
2922
|
-
_iterator["return"]();
|
|
2923
|
-
}
|
|
2924
|
-
} finally {
|
|
2925
|
-
if (_didIteratorError) {
|
|
2926
|
-
throw _iteratorError;
|
|
2927
|
-
}
|
|
2928
|
-
}
|
|
2895
|
+
_iterator.f();
|
|
2929
2896
|
}
|
|
2930
2897
|
|
|
2931
2898
|
return config;
|
|
@@ -2990,7 +2957,7 @@ function isEqual(a, b) {
|
|
|
2990
2957
|
return true;
|
|
2991
2958
|
}
|
|
2992
2959
|
|
|
2993
|
-
if ((0,
|
|
2960
|
+
if ((0, React.isValidElement)(a) && (0, React.isValidElement)(b)) {
|
|
2994
2961
|
return true;
|
|
2995
2962
|
}
|
|
2996
2963
|
|
|
@@ -3033,17 +3000,17 @@ function isMediaStream(url) {
|
|
|
3033
3000
|
});
|
|
3034
3001
|
|
|
3035
3002
|
unwrapExports(utils);
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3003
|
+
utils.parseStartTime;
|
|
3004
|
+
utils.parseEndTime;
|
|
3005
|
+
utils.randomString;
|
|
3006
|
+
utils.queryString;
|
|
3007
|
+
utils.getSDK;
|
|
3008
|
+
utils.getConfig;
|
|
3009
|
+
utils.omit;
|
|
3010
|
+
utils.callPlayer;
|
|
3011
|
+
utils.isObject;
|
|
3012
|
+
utils.isEqual;
|
|
3013
|
+
utils.isMediaStream;
|
|
3047
3014
|
|
|
3048
3015
|
var Player_1 = createCommonjsModule(function (module, exports) {
|
|
3049
3016
|
|
|
@@ -3052,7 +3019,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3052
3019
|
});
|
|
3053
3020
|
exports["default"] = void 0;
|
|
3054
3021
|
|
|
3055
|
-
var _react = _interopRequireWildcard(
|
|
3022
|
+
var _react = _interopRequireWildcard(React);
|
|
3056
3023
|
|
|
3057
3024
|
|
|
3058
3025
|
|
|
@@ -3072,12 +3039,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3072
3039
|
|
|
3073
3040
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3074
3041
|
|
|
3075
|
-
function
|
|
3042
|
+
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); }; }
|
|
3076
3043
|
|
|
3077
|
-
function
|
|
3044
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3078
3045
|
|
|
3079
3046
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3080
3047
|
|
|
3048
|
+
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; } }
|
|
3049
|
+
|
|
3050
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3051
|
+
|
|
3081
3052
|
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); }
|
|
3082
3053
|
|
|
3083
3054
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3086,14 +3057,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3086
3057
|
|
|
3087
3058
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3088
3059
|
|
|
3089
|
-
var Player =
|
|
3090
|
-
/*#__PURE__*/
|
|
3091
|
-
function (_Component) {
|
|
3060
|
+
var Player = /*#__PURE__*/function (_Component) {
|
|
3092
3061
|
_inherits(Player, _Component);
|
|
3093
3062
|
|
|
3094
|
-
|
|
3095
|
-
var _getPrototypeOf2;
|
|
3063
|
+
var _super = _createSuper(Player);
|
|
3096
3064
|
|
|
3065
|
+
function Player() {
|
|
3097
3066
|
var _this;
|
|
3098
3067
|
|
|
3099
3068
|
_classCallCheck(this, Player);
|
|
@@ -3102,7 +3071,7 @@ function (_Component) {
|
|
|
3102
3071
|
_args[_key] = arguments[_key];
|
|
3103
3072
|
}
|
|
3104
3073
|
|
|
3105
|
-
_this =
|
|
3074
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
3106
3075
|
|
|
3107
3076
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3108
3077
|
|
|
@@ -3427,7 +3396,7 @@ function (_Component) {
|
|
|
3427
3396
|
return null;
|
|
3428
3397
|
}
|
|
3429
3398
|
|
|
3430
|
-
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3399
|
+
return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
|
|
3431
3400
|
ref: this.ref,
|
|
3432
3401
|
onReady: this.handleReady,
|
|
3433
3402
|
onPlay: this.handlePlay,
|
|
@@ -3460,7 +3429,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3460
3429
|
});
|
|
3461
3430
|
exports["default"] = createSinglePlayer;
|
|
3462
3431
|
|
|
3463
|
-
var _react = _interopRequireWildcard(
|
|
3432
|
+
var _react = _interopRequireWildcard(React);
|
|
3464
3433
|
|
|
3465
3434
|
|
|
3466
3435
|
|
|
@@ -3488,12 +3457,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3488
3457
|
|
|
3489
3458
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3490
3459
|
|
|
3491
|
-
function
|
|
3460
|
+
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); }; }
|
|
3492
3461
|
|
|
3493
|
-
function
|
|
3462
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3494
3463
|
|
|
3495
3464
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3496
3465
|
|
|
3466
|
+
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; } }
|
|
3467
|
+
|
|
3468
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3469
|
+
|
|
3497
3470
|
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); }
|
|
3498
3471
|
|
|
3499
3472
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3505,14 +3478,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3505
3478
|
function createSinglePlayer(activePlayer) {
|
|
3506
3479
|
var _class, _temp;
|
|
3507
3480
|
|
|
3508
|
-
return _temp = _class =
|
|
3509
|
-
/*#__PURE__*/
|
|
3510
|
-
function (_Component) {
|
|
3481
|
+
return _temp = _class = /*#__PURE__*/function (_Component) {
|
|
3511
3482
|
_inherits(SinglePlayer, _Component);
|
|
3512
3483
|
|
|
3513
|
-
|
|
3514
|
-
var _getPrototypeOf2;
|
|
3484
|
+
var _super = _createSuper(SinglePlayer);
|
|
3515
3485
|
|
|
3486
|
+
function SinglePlayer() {
|
|
3516
3487
|
var _this;
|
|
3517
3488
|
|
|
3518
3489
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3521,7 +3492,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3521
3492
|
args[_key] = arguments[_key];
|
|
3522
3493
|
}
|
|
3523
3494
|
|
|
3524
|
-
_this =
|
|
3495
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3525
3496
|
|
|
3526
3497
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3527
3498
|
|
|
@@ -3589,12 +3560,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3589
3560
|
height = _this$props.height,
|
|
3590
3561
|
Wrapper = _this$props.wrapper;
|
|
3591
3562
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3592
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
3563
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
3593
3564
|
style: _objectSpread({}, style, {
|
|
3594
3565
|
width: width,
|
|
3595
3566
|
height: height
|
|
3596
3567
|
})
|
|
3597
|
-
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3568
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3598
3569
|
ref: this.ref,
|
|
3599
3570
|
activePlayer: activePlayer,
|
|
3600
3571
|
config: this.config
|
|
@@ -3616,7 +3587,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3616
3587
|
});
|
|
3617
3588
|
exports["default"] = exports.YouTube = void 0;
|
|
3618
3589
|
|
|
3619
|
-
var _react = _interopRequireWildcard(
|
|
3590
|
+
var _react = _interopRequireWildcard(React);
|
|
3620
3591
|
|
|
3621
3592
|
|
|
3622
3593
|
|
|
@@ -3640,23 +3611,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3640
3611
|
|
|
3641
3612
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3642
3613
|
|
|
3643
|
-
function
|
|
3614
|
+
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); }; }
|
|
3644
3615
|
|
|
3645
|
-
function
|
|
3616
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3646
3617
|
|
|
3647
3618
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3648
3619
|
|
|
3620
|
+
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; } }
|
|
3621
|
+
|
|
3622
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3623
|
+
|
|
3649
3624
|
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); }
|
|
3650
3625
|
|
|
3651
3626
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3652
3627
|
|
|
3653
3628
|
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; }
|
|
3654
3629
|
|
|
3655
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3630
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3631
|
+
|
|
3632
|
+
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."); }
|
|
3656
3633
|
|
|
3657
|
-
function
|
|
3634
|
+
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); }
|
|
3658
3635
|
|
|
3659
|
-
function
|
|
3636
|
+
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; }
|
|
3637
|
+
|
|
3638
|
+
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; }
|
|
3660
3639
|
|
|
3661
3640
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3662
3641
|
|
|
@@ -3681,14 +3660,12 @@ function parsePlaylist(url) {
|
|
|
3681
3660
|
return {};
|
|
3682
3661
|
}
|
|
3683
3662
|
|
|
3684
|
-
var YouTube =
|
|
3685
|
-
/*#__PURE__*/
|
|
3686
|
-
function (_Component) {
|
|
3663
|
+
var YouTube = /*#__PURE__*/function (_Component) {
|
|
3687
3664
|
_inherits(YouTube, _Component);
|
|
3688
3665
|
|
|
3689
|
-
|
|
3690
|
-
var _getPrototypeOf2;
|
|
3666
|
+
var _super = _createSuper(YouTube);
|
|
3691
3667
|
|
|
3668
|
+
function YouTube() {
|
|
3692
3669
|
var _this;
|
|
3693
3670
|
|
|
3694
3671
|
_classCallCheck(this, YouTube);
|
|
@@ -3697,7 +3674,7 @@ function (_Component) {
|
|
|
3697
3674
|
args[_key] = arguments[_key];
|
|
3698
3675
|
}
|
|
3699
3676
|
|
|
3700
|
-
_this =
|
|
3677
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3701
3678
|
|
|
3702
3679
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3703
3680
|
|
|
@@ -3885,9 +3862,9 @@ function (_Component) {
|
|
|
3885
3862
|
height: '100%',
|
|
3886
3863
|
display: display
|
|
3887
3864
|
};
|
|
3888
|
-
return _react["default"].createElement("div", {
|
|
3865
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
3889
3866
|
style: style
|
|
3890
|
-
}, _react["default"].createElement("div", {
|
|
3867
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
3891
3868
|
ref: this.ref
|
|
3892
3869
|
}));
|
|
3893
3870
|
}
|
|
@@ -3910,7 +3887,7 @@ exports["default"] = _default;
|
|
|
3910
3887
|
});
|
|
3911
3888
|
|
|
3912
3889
|
unwrapExports(YouTube_1);
|
|
3913
|
-
|
|
3890
|
+
YouTube_1.YouTube;
|
|
3914
3891
|
|
|
3915
3892
|
var SoundCloud_1 = createCommonjsModule(function (module, exports) {
|
|
3916
3893
|
|
|
@@ -3919,7 +3896,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3919
3896
|
});
|
|
3920
3897
|
exports["default"] = exports.SoundCloud = void 0;
|
|
3921
3898
|
|
|
3922
|
-
var _react = _interopRequireWildcard(
|
|
3899
|
+
var _react = _interopRequireWildcard(React);
|
|
3923
3900
|
|
|
3924
3901
|
|
|
3925
3902
|
|
|
@@ -3943,12 +3920,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3943
3920
|
|
|
3944
3921
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3945
3922
|
|
|
3946
|
-
function
|
|
3923
|
+
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); }; }
|
|
3947
3924
|
|
|
3948
|
-
function
|
|
3925
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3949
3926
|
|
|
3950
3927
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3951
3928
|
|
|
3929
|
+
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; } }
|
|
3930
|
+
|
|
3931
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3932
|
+
|
|
3952
3933
|
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); }
|
|
3953
3934
|
|
|
3954
3935
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3957,16 +3938,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3957
3938
|
|
|
3958
3939
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
3959
3940
|
var SDK_GLOBAL = 'SC';
|
|
3960
|
-
var MATCH_URL = /(soundcloud\.com|snd\.sc)
|
|
3941
|
+
var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
3961
3942
|
|
|
3962
|
-
var SoundCloud =
|
|
3963
|
-
/*#__PURE__*/
|
|
3964
|
-
function (_Component) {
|
|
3943
|
+
var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
3965
3944
|
_inherits(SoundCloud, _Component);
|
|
3966
3945
|
|
|
3967
|
-
|
|
3968
|
-
var _getPrototypeOf2;
|
|
3946
|
+
var _super = _createSuper(SoundCloud);
|
|
3969
3947
|
|
|
3948
|
+
function SoundCloud() {
|
|
3970
3949
|
var _this;
|
|
3971
3950
|
|
|
3972
3951
|
_classCallCheck(this, SoundCloud);
|
|
@@ -3975,7 +3954,7 @@ function (_Component) {
|
|
|
3975
3954
|
args[_key] = arguments[_key];
|
|
3976
3955
|
}
|
|
3977
3956
|
|
|
3978
|
-
_this =
|
|
3957
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3979
3958
|
|
|
3980
3959
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3981
3960
|
|
|
@@ -4096,7 +4075,7 @@ function (_Component) {
|
|
|
4096
4075
|
height: '100%',
|
|
4097
4076
|
display: display
|
|
4098
4077
|
};
|
|
4099
|
-
return _react["default"].createElement("iframe", {
|
|
4078
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4100
4079
|
ref: this.ref,
|
|
4101
4080
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4102
4081
|
style: style,
|
|
@@ -4125,7 +4104,7 @@ exports["default"] = _default;
|
|
|
4125
4104
|
});
|
|
4126
4105
|
|
|
4127
4106
|
unwrapExports(SoundCloud_1);
|
|
4128
|
-
|
|
4107
|
+
SoundCloud_1.SoundCloud;
|
|
4129
4108
|
|
|
4130
4109
|
var Vimeo_1 = createCommonjsModule(function (module, exports) {
|
|
4131
4110
|
|
|
@@ -4134,7 +4113,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4134
4113
|
});
|
|
4135
4114
|
exports["default"] = exports.Vimeo = void 0;
|
|
4136
4115
|
|
|
4137
|
-
var _react = _interopRequireWildcard(
|
|
4116
|
+
var _react = _interopRequireWildcard(React);
|
|
4138
4117
|
|
|
4139
4118
|
|
|
4140
4119
|
|
|
@@ -4158,12 +4137,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4158
4137
|
|
|
4159
4138
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4160
4139
|
|
|
4161
|
-
function
|
|
4140
|
+
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); }; }
|
|
4162
4141
|
|
|
4163
|
-
function
|
|
4142
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4164
4143
|
|
|
4165
4144
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4166
4145
|
|
|
4146
|
+
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; } }
|
|
4147
|
+
|
|
4148
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4149
|
+
|
|
4167
4150
|
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); }
|
|
4168
4151
|
|
|
4169
4152
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4175,14 +4158,12 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4175
4158
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4176
4159
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4177
4160
|
|
|
4178
|
-
var Vimeo =
|
|
4179
|
-
/*#__PURE__*/
|
|
4180
|
-
function (_Component) {
|
|
4161
|
+
var Vimeo = /*#__PURE__*/function (_Component) {
|
|
4181
4162
|
_inherits(Vimeo, _Component);
|
|
4182
4163
|
|
|
4183
|
-
|
|
4184
|
-
var _getPrototypeOf2;
|
|
4164
|
+
var _super = _createSuper(Vimeo);
|
|
4185
4165
|
|
|
4166
|
+
function Vimeo() {
|
|
4186
4167
|
var _this;
|
|
4187
4168
|
|
|
4188
4169
|
_classCallCheck(this, Vimeo);
|
|
@@ -4191,7 +4172,7 @@ function (_Component) {
|
|
|
4191
4172
|
args[_key] = arguments[_key];
|
|
4192
4173
|
}
|
|
4193
4174
|
|
|
4194
|
-
_this =
|
|
4175
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4195
4176
|
|
|
4196
4177
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4197
4178
|
|
|
@@ -4348,7 +4329,7 @@ function (_Component) {
|
|
|
4348
4329
|
overflow: 'hidden',
|
|
4349
4330
|
display: display
|
|
4350
4331
|
};
|
|
4351
|
-
return _react["default"].createElement("div", {
|
|
4332
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4352
4333
|
key: this.props.url,
|
|
4353
4334
|
ref: this.ref,
|
|
4354
4335
|
style: style
|
|
@@ -4379,7 +4360,7 @@ exports["default"] = _default;
|
|
|
4379
4360
|
});
|
|
4380
4361
|
|
|
4381
4362
|
unwrapExports(Vimeo_1);
|
|
4382
|
-
|
|
4363
|
+
Vimeo_1.Vimeo;
|
|
4383
4364
|
|
|
4384
4365
|
var Facebook_1 = createCommonjsModule(function (module, exports) {
|
|
4385
4366
|
|
|
@@ -4388,7 +4369,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4388
4369
|
});
|
|
4389
4370
|
exports["default"] = exports.Facebook = void 0;
|
|
4390
4371
|
|
|
4391
|
-
var _react = _interopRequireWildcard(
|
|
4372
|
+
var _react = _interopRequireWildcard(React);
|
|
4392
4373
|
|
|
4393
4374
|
|
|
4394
4375
|
|
|
@@ -4408,12 +4389,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4408
4389
|
|
|
4409
4390
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4410
4391
|
|
|
4411
|
-
function
|
|
4392
|
+
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); }; }
|
|
4412
4393
|
|
|
4413
|
-
function
|
|
4394
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4414
4395
|
|
|
4415
4396
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4416
4397
|
|
|
4398
|
+
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; } }
|
|
4399
|
+
|
|
4400
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4401
|
+
|
|
4417
4402
|
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); }
|
|
4418
4403
|
|
|
4419
4404
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4426,14 +4411,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4426
4411
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4427
4412
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4428
4413
|
|
|
4429
|
-
var Facebook =
|
|
4430
|
-
/*#__PURE__*/
|
|
4431
|
-
function (_Component) {
|
|
4414
|
+
var Facebook = /*#__PURE__*/function (_Component) {
|
|
4432
4415
|
_inherits(Facebook, _Component);
|
|
4433
4416
|
|
|
4434
|
-
|
|
4435
|
-
var _getPrototypeOf2;
|
|
4417
|
+
var _super = _createSuper(Facebook);
|
|
4436
4418
|
|
|
4419
|
+
function Facebook() {
|
|
4437
4420
|
var _this;
|
|
4438
4421
|
|
|
4439
4422
|
_classCallCheck(this, Facebook);
|
|
@@ -4442,7 +4425,7 @@ function (_Component) {
|
|
|
4442
4425
|
args[_key] = arguments[_key];
|
|
4443
4426
|
}
|
|
4444
4427
|
|
|
4445
|
-
_this =
|
|
4428
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4446
4429
|
|
|
4447
4430
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4448
4431
|
|
|
@@ -4558,7 +4541,7 @@ function (_Component) {
|
|
|
4558
4541
|
width: '100%',
|
|
4559
4542
|
height: '100%'
|
|
4560
4543
|
};
|
|
4561
|
-
return _react["default"].createElement("div", {
|
|
4544
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4562
4545
|
style: style,
|
|
4563
4546
|
id: this.playerID,
|
|
4564
4547
|
className: "fb-video",
|
|
@@ -4589,7 +4572,7 @@ exports["default"] = _default;
|
|
|
4589
4572
|
});
|
|
4590
4573
|
|
|
4591
4574
|
unwrapExports(Facebook_1);
|
|
4592
|
-
|
|
4575
|
+
Facebook_1.Facebook;
|
|
4593
4576
|
|
|
4594
4577
|
var Streamable_1 = createCommonjsModule(function (module, exports) {
|
|
4595
4578
|
|
|
@@ -4598,7 +4581,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4598
4581
|
});
|
|
4599
4582
|
exports["default"] = exports.Streamable = void 0;
|
|
4600
4583
|
|
|
4601
|
-
var _react = _interopRequireWildcard(
|
|
4584
|
+
var _react = _interopRequireWildcard(React);
|
|
4602
4585
|
|
|
4603
4586
|
|
|
4604
4587
|
|
|
@@ -4618,12 +4601,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4618
4601
|
|
|
4619
4602
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4620
4603
|
|
|
4621
|
-
function
|
|
4604
|
+
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); }; }
|
|
4622
4605
|
|
|
4623
|
-
function
|
|
4606
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4624
4607
|
|
|
4625
4608
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4626
4609
|
|
|
4610
|
+
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; } }
|
|
4611
|
+
|
|
4612
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4613
|
+
|
|
4627
4614
|
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); }
|
|
4628
4615
|
|
|
4629
4616
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4634,14 +4621,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4634
4621
|
var SDK_GLOBAL = 'playerjs';
|
|
4635
4622
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4636
4623
|
|
|
4637
|
-
var Streamable =
|
|
4638
|
-
/*#__PURE__*/
|
|
4639
|
-
function (_Component) {
|
|
4624
|
+
var Streamable = /*#__PURE__*/function (_Component) {
|
|
4640
4625
|
_inherits(Streamable, _Component);
|
|
4641
4626
|
|
|
4642
|
-
|
|
4643
|
-
var _getPrototypeOf2;
|
|
4627
|
+
var _super = _createSuper(Streamable);
|
|
4644
4628
|
|
|
4629
|
+
function Streamable() {
|
|
4645
4630
|
var _this;
|
|
4646
4631
|
|
|
4647
4632
|
_classCallCheck(this, Streamable);
|
|
@@ -4650,7 +4635,7 @@ function (_Component) {
|
|
|
4650
4635
|
args[_key] = arguments[_key];
|
|
4651
4636
|
}
|
|
4652
4637
|
|
|
4653
|
-
_this =
|
|
4638
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4654
4639
|
|
|
4655
4640
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4656
4641
|
|
|
@@ -4770,7 +4755,7 @@ function (_Component) {
|
|
|
4770
4755
|
width: '100%',
|
|
4771
4756
|
height: '100%'
|
|
4772
4757
|
};
|
|
4773
|
-
return _react["default"].createElement("iframe", {
|
|
4758
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4774
4759
|
ref: this.ref,
|
|
4775
4760
|
src: "https://streamable.com/o/".concat(id),
|
|
4776
4761
|
frameBorder: "0",
|
|
@@ -4798,7 +4783,7 @@ exports["default"] = _default;
|
|
|
4798
4783
|
});
|
|
4799
4784
|
|
|
4800
4785
|
unwrapExports(Streamable_1);
|
|
4801
|
-
|
|
4786
|
+
Streamable_1.Streamable;
|
|
4802
4787
|
|
|
4803
4788
|
var Wistia_1 = createCommonjsModule(function (module, exports) {
|
|
4804
4789
|
|
|
@@ -4807,7 +4792,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4807
4792
|
});
|
|
4808
4793
|
exports["default"] = exports.Wistia = void 0;
|
|
4809
4794
|
|
|
4810
|
-
var _react = _interopRequireWildcard(
|
|
4795
|
+
var _react = _interopRequireWildcard(React);
|
|
4811
4796
|
|
|
4812
4797
|
|
|
4813
4798
|
|
|
@@ -4831,12 +4816,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4831
4816
|
|
|
4832
4817
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4833
4818
|
|
|
4834
|
-
function
|
|
4819
|
+
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); }; }
|
|
4835
4820
|
|
|
4836
|
-
function
|
|
4821
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4837
4822
|
|
|
4838
4823
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4839
4824
|
|
|
4825
|
+
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; } }
|
|
4826
|
+
|
|
4827
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4828
|
+
|
|
4840
4829
|
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); }
|
|
4841
4830
|
|
|
4842
4831
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4847,26 +4836,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4847
4836
|
var SDK_GLOBAL = 'Wistia';
|
|
4848
4837
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4849
4838
|
|
|
4850
|
-
var Wistia =
|
|
4851
|
-
/*#__PURE__*/
|
|
4852
|
-
function (_Component) {
|
|
4839
|
+
var Wistia = /*#__PURE__*/function (_Component) {
|
|
4853
4840
|
_inherits(Wistia, _Component);
|
|
4854
4841
|
|
|
4855
|
-
|
|
4856
|
-
var _getPrototypeOf2;
|
|
4842
|
+
var _super = _createSuper(Wistia);
|
|
4857
4843
|
|
|
4844
|
+
function Wistia() {
|
|
4858
4845
|
var _this;
|
|
4859
4846
|
|
|
4860
4847
|
_classCallCheck(this, Wistia);
|
|
4861
4848
|
|
|
4862
|
-
for (var _len = arguments.length,
|
|
4863
|
-
|
|
4849
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4850
|
+
_args[_key] = arguments[_key];
|
|
4864
4851
|
}
|
|
4865
4852
|
|
|
4866
|
-
_this =
|
|
4853
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
4867
4854
|
|
|
4868
4855
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4869
4856
|
|
|
4857
|
+
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4858
|
+
var _this$props;
|
|
4859
|
+
|
|
4860
|
+
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4861
|
+
});
|
|
4862
|
+
|
|
4863
|
+
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4864
|
+
var _this$props2;
|
|
4865
|
+
|
|
4866
|
+
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4867
|
+
});
|
|
4868
|
+
|
|
4869
|
+
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
4870
|
+
var _this$props3;
|
|
4871
|
+
|
|
4872
|
+
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
4873
|
+
});
|
|
4874
|
+
|
|
4875
|
+
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
4876
|
+
var _this$props4;
|
|
4877
|
+
|
|
4878
|
+
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
4879
|
+
});
|
|
4880
|
+
|
|
4870
4881
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
4871
4882
|
_this.callPlayer('mute');
|
|
4872
4883
|
});
|
|
@@ -4888,17 +4899,13 @@ function (_Component) {
|
|
|
4888
4899
|
value: function load(url) {
|
|
4889
4900
|
var _this2 = this;
|
|
4890
4901
|
|
|
4891
|
-
var _this$
|
|
4892
|
-
playing = _this$
|
|
4893
|
-
muted = _this$
|
|
4894
|
-
controls = _this$
|
|
4895
|
-
_onReady = _this$
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
onSeek = _this$props.onSeek,
|
|
4899
|
-
onEnded = _this$props.onEnded,
|
|
4900
|
-
config = _this$props.config,
|
|
4901
|
-
onError = _this$props.onError;
|
|
4902
|
+
var _this$props5 = this.props,
|
|
4903
|
+
playing = _this$props5.playing,
|
|
4904
|
+
muted = _this$props5.muted,
|
|
4905
|
+
controls = _this$props5.controls,
|
|
4906
|
+
_onReady = _this$props5.onReady,
|
|
4907
|
+
config = _this$props5.config,
|
|
4908
|
+
onError = _this$props5.onError;
|
|
4902
4909
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
4903
4910
|
window._wq = window._wq || [];
|
|
4904
4911
|
|
|
@@ -4915,19 +4922,28 @@ function (_Component) {
|
|
|
4915
4922
|
|
|
4916
4923
|
_this2.unbind();
|
|
4917
4924
|
|
|
4918
|
-
_this2.player.bind('play', onPlay);
|
|
4925
|
+
_this2.player.bind('play', _this2.onPlay);
|
|
4919
4926
|
|
|
4920
|
-
_this2.player.bind('pause', onPause);
|
|
4927
|
+
_this2.player.bind('pause', _this2.onPause);
|
|
4921
4928
|
|
|
4922
|
-
_this2.player.bind('seek', onSeek);
|
|
4929
|
+
_this2.player.bind('seek', _this2.onSeek);
|
|
4923
4930
|
|
|
4924
|
-
_this2.player.bind('end', onEnded);
|
|
4931
|
+
_this2.player.bind('end', _this2.onEnded);
|
|
4925
4932
|
|
|
4926
4933
|
_onReady();
|
|
4927
4934
|
}
|
|
4928
4935
|
});
|
|
4929
4936
|
}, onError);
|
|
4930
4937
|
}
|
|
4938
|
+
}, {
|
|
4939
|
+
key: "unbind",
|
|
4940
|
+
value: function unbind() {
|
|
4941
|
+
this.player.unbind('play', this.onPlay);
|
|
4942
|
+
this.player.unbind('pause', this.onPause);
|
|
4943
|
+
this.player.unbind('seek', this.onSeek);
|
|
4944
|
+
this.player.unbind('end', this.onEnded);
|
|
4945
|
+
} // Proxy methods to prevent listener leaks
|
|
4946
|
+
|
|
4931
4947
|
}, {
|
|
4932
4948
|
key: "play",
|
|
4933
4949
|
value: function play() {
|
|
@@ -4938,19 +4954,6 @@ function (_Component) {
|
|
|
4938
4954
|
value: function pause() {
|
|
4939
4955
|
this.callPlayer('pause');
|
|
4940
4956
|
}
|
|
4941
|
-
}, {
|
|
4942
|
-
key: "unbind",
|
|
4943
|
-
value: function unbind() {
|
|
4944
|
-
var _this$props2 = this.props,
|
|
4945
|
-
onPlay = _this$props2.onPlay,
|
|
4946
|
-
onPause = _this$props2.onPause,
|
|
4947
|
-
onSeek = _this$props2.onSeek,
|
|
4948
|
-
onEnded = _this$props2.onEnded;
|
|
4949
|
-
this.player.unbind('play', onPlay);
|
|
4950
|
-
this.player.unbind('pause', onPause);
|
|
4951
|
-
this.player.unbind('seek', onSeek);
|
|
4952
|
-
this.player.unbind('end', onEnded);
|
|
4953
|
-
}
|
|
4954
4957
|
}, {
|
|
4955
4958
|
key: "stop",
|
|
4956
4959
|
value: function stop() {
|
|
@@ -4996,7 +4999,7 @@ function (_Component) {
|
|
|
4996
4999
|
width: '100%',
|
|
4997
5000
|
height: '100%'
|
|
4998
5001
|
};
|
|
4999
|
-
return _react["default"].createElement("div", {
|
|
5002
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5000
5003
|
key: id,
|
|
5001
5004
|
className: className,
|
|
5002
5005
|
style: style
|
|
@@ -5023,7 +5026,7 @@ exports["default"] = _default;
|
|
|
5023
5026
|
});
|
|
5024
5027
|
|
|
5025
5028
|
unwrapExports(Wistia_1);
|
|
5026
|
-
|
|
5029
|
+
Wistia_1.Wistia;
|
|
5027
5030
|
|
|
5028
5031
|
var Twitch_1 = createCommonjsModule(function (module, exports) {
|
|
5029
5032
|
|
|
@@ -5032,7 +5035,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5032
5035
|
});
|
|
5033
5036
|
exports["default"] = exports.Twitch = void 0;
|
|
5034
5037
|
|
|
5035
|
-
var _react = _interopRequireWildcard(
|
|
5038
|
+
var _react = _interopRequireWildcard(React);
|
|
5036
5039
|
|
|
5037
5040
|
|
|
5038
5041
|
|
|
@@ -5056,12 +5059,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5056
5059
|
|
|
5057
5060
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5058
5061
|
|
|
5059
|
-
function
|
|
5062
|
+
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); }; }
|
|
5060
5063
|
|
|
5061
|
-
function
|
|
5064
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5062
5065
|
|
|
5063
5066
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5064
5067
|
|
|
5068
|
+
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; } }
|
|
5069
|
+
|
|
5070
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5071
|
+
|
|
5065
5072
|
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); }
|
|
5066
5073
|
|
|
5067
5074
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5074,14 +5081,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5074
5081
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5075
5082
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5076
5083
|
|
|
5077
|
-
var Twitch =
|
|
5078
|
-
/*#__PURE__*/
|
|
5079
|
-
function (_Component) {
|
|
5084
|
+
var Twitch = /*#__PURE__*/function (_Component) {
|
|
5080
5085
|
_inherits(Twitch, _Component);
|
|
5081
5086
|
|
|
5082
|
-
|
|
5083
|
-
var _getPrototypeOf2;
|
|
5087
|
+
var _super = _createSuper(Twitch);
|
|
5084
5088
|
|
|
5089
|
+
function Twitch() {
|
|
5085
5090
|
var _this;
|
|
5086
5091
|
|
|
5087
5092
|
_classCallCheck(this, Twitch);
|
|
@@ -5090,7 +5095,7 @@ function (_Component) {
|
|
|
5090
5095
|
args[_key] = arguments[_key];
|
|
5091
5096
|
}
|
|
5092
5097
|
|
|
5093
|
-
_this =
|
|
5098
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5094
5099
|
|
|
5095
5100
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5096
5101
|
|
|
@@ -5211,7 +5216,7 @@ function (_Component) {
|
|
|
5211
5216
|
width: '100%',
|
|
5212
5217
|
height: '100%'
|
|
5213
5218
|
};
|
|
5214
|
-
return _react["default"].createElement("div", {
|
|
5219
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5215
5220
|
style: style,
|
|
5216
5221
|
id: this.playerID
|
|
5217
5222
|
});
|
|
@@ -5237,7 +5242,7 @@ exports["default"] = _default;
|
|
|
5237
5242
|
});
|
|
5238
5243
|
|
|
5239
5244
|
unwrapExports(Twitch_1);
|
|
5240
|
-
|
|
5245
|
+
Twitch_1.Twitch;
|
|
5241
5246
|
|
|
5242
5247
|
var DailyMotion_1 = createCommonjsModule(function (module, exports) {
|
|
5243
5248
|
|
|
@@ -5246,7 +5251,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5246
5251
|
});
|
|
5247
5252
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5248
5253
|
|
|
5249
|
-
var _react = _interopRequireWildcard(
|
|
5254
|
+
var _react = _interopRequireWildcard(React);
|
|
5250
5255
|
|
|
5251
5256
|
|
|
5252
5257
|
|
|
@@ -5264,11 +5269,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5264
5269
|
|
|
5265
5270
|
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; }
|
|
5266
5271
|
|
|
5267
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5272
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5273
|
+
|
|
5274
|
+
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."); }
|
|
5268
5275
|
|
|
5269
|
-
function
|
|
5276
|
+
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); }
|
|
5270
5277
|
|
|
5271
|
-
function
|
|
5278
|
+
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; }
|
|
5279
|
+
|
|
5280
|
+
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; }
|
|
5272
5281
|
|
|
5273
5282
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5274
5283
|
|
|
@@ -5278,12 +5287,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5278
5287
|
|
|
5279
5288
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5280
5289
|
|
|
5281
|
-
function
|
|
5290
|
+
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); }; }
|
|
5282
5291
|
|
|
5283
|
-
function
|
|
5292
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5284
5293
|
|
|
5285
5294
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5286
5295
|
|
|
5296
|
+
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; } }
|
|
5297
|
+
|
|
5298
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5299
|
+
|
|
5287
5300
|
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); }
|
|
5288
5301
|
|
|
5289
5302
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5295,14 +5308,12 @@ var SDK_GLOBAL = 'DM';
|
|
|
5295
5308
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5296
5309
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5297
5310
|
|
|
5298
|
-
var DailyMotion =
|
|
5299
|
-
/*#__PURE__*/
|
|
5300
|
-
function (_Component) {
|
|
5311
|
+
var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
5301
5312
|
_inherits(DailyMotion, _Component);
|
|
5302
5313
|
|
|
5303
|
-
|
|
5304
|
-
var _getPrototypeOf2;
|
|
5314
|
+
var _super = _createSuper(DailyMotion);
|
|
5305
5315
|
|
|
5316
|
+
function DailyMotion() {
|
|
5306
5317
|
var _this;
|
|
5307
5318
|
|
|
5308
5319
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5311,7 +5322,7 @@ function (_Component) {
|
|
|
5311
5322
|
args[_key] = arguments[_key];
|
|
5312
5323
|
}
|
|
5313
5324
|
|
|
5314
|
-
_this =
|
|
5325
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5315
5326
|
|
|
5316
5327
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5317
5328
|
|
|
@@ -5440,9 +5451,9 @@ function (_Component) {
|
|
|
5440
5451
|
height: '100%',
|
|
5441
5452
|
display: display
|
|
5442
5453
|
};
|
|
5443
|
-
return _react["default"].createElement("div", {
|
|
5454
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5444
5455
|
style: style
|
|
5445
|
-
}, _react["default"].createElement("div", {
|
|
5456
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
5446
5457
|
ref: this.ref
|
|
5447
5458
|
}));
|
|
5448
5459
|
}
|
|
@@ -5467,7 +5478,7 @@ exports["default"] = _default;
|
|
|
5467
5478
|
});
|
|
5468
5479
|
|
|
5469
5480
|
unwrapExports(DailyMotion_1);
|
|
5470
|
-
|
|
5481
|
+
DailyMotion_1.DailyMotion;
|
|
5471
5482
|
|
|
5472
5483
|
var Mixcloud_1 = createCommonjsModule(function (module, exports) {
|
|
5473
5484
|
|
|
@@ -5476,7 +5487,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5476
5487
|
});
|
|
5477
5488
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5478
5489
|
|
|
5479
|
-
var _react = _interopRequireWildcard(
|
|
5490
|
+
var _react = _interopRequireWildcard(React);
|
|
5480
5491
|
|
|
5481
5492
|
|
|
5482
5493
|
|
|
@@ -5500,12 +5511,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5500
5511
|
|
|
5501
5512
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5502
5513
|
|
|
5503
|
-
function
|
|
5514
|
+
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); }; }
|
|
5504
5515
|
|
|
5505
|
-
function
|
|
5516
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5506
5517
|
|
|
5507
5518
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5508
5519
|
|
|
5520
|
+
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; } }
|
|
5521
|
+
|
|
5522
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5523
|
+
|
|
5509
5524
|
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); }
|
|
5510
5525
|
|
|
5511
5526
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5516,14 +5531,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5516
5531
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5517
5532
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5518
5533
|
|
|
5519
|
-
var Mixcloud =
|
|
5520
|
-
/*#__PURE__*/
|
|
5521
|
-
function (_Component) {
|
|
5534
|
+
var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
5522
5535
|
_inherits(Mixcloud, _Component);
|
|
5523
5536
|
|
|
5524
|
-
|
|
5525
|
-
var _getPrototypeOf2;
|
|
5537
|
+
var _super = _createSuper(Mixcloud);
|
|
5526
5538
|
|
|
5539
|
+
function Mixcloud() {
|
|
5527
5540
|
var _this;
|
|
5528
5541
|
|
|
5529
5542
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5532,7 +5545,7 @@ function (_Component) {
|
|
|
5532
5545
|
args[_key] = arguments[_key];
|
|
5533
5546
|
}
|
|
5534
5547
|
|
|
5535
|
-
_this =
|
|
5548
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5536
5549
|
|
|
5537
5550
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5538
5551
|
|
|
@@ -5635,7 +5648,7 @@ function (_Component) {
|
|
|
5635
5648
|
})); // We have to give the iframe a key here to prevent a
|
|
5636
5649
|
// weird dialog appearing when loading a new track
|
|
5637
5650
|
|
|
5638
|
-
return _react["default"].createElement("iframe", {
|
|
5651
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
5639
5652
|
key: id,
|
|
5640
5653
|
ref: this.ref,
|
|
5641
5654
|
style: style,
|
|
@@ -5664,7 +5677,7 @@ exports["default"] = _default;
|
|
|
5664
5677
|
});
|
|
5665
5678
|
|
|
5666
5679
|
unwrapExports(Mixcloud_1);
|
|
5667
|
-
|
|
5680
|
+
Mixcloud_1.Mixcloud;
|
|
5668
5681
|
|
|
5669
5682
|
var FilePlayer_1 = createCommonjsModule(function (module, exports) {
|
|
5670
5683
|
|
|
@@ -5673,7 +5686,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5673
5686
|
});
|
|
5674
5687
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5675
5688
|
|
|
5676
|
-
var _react = _interopRequireWildcard(
|
|
5689
|
+
var _react = _interopRequireWildcard(React);
|
|
5677
5690
|
|
|
5678
5691
|
|
|
5679
5692
|
|
|
@@ -5695,23 +5708,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5695
5708
|
|
|
5696
5709
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5697
5710
|
|
|
5698
|
-
function
|
|
5711
|
+
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); }; }
|
|
5699
5712
|
|
|
5700
|
-
function
|
|
5713
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5701
5714
|
|
|
5702
5715
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5703
5716
|
|
|
5717
|
+
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; } }
|
|
5718
|
+
|
|
5719
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5720
|
+
|
|
5704
5721
|
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); }
|
|
5705
5722
|
|
|
5706
5723
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5707
5724
|
|
|
5708
5725
|
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; }
|
|
5709
5726
|
|
|
5727
|
+
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; } } }; }
|
|
5728
|
+
|
|
5729
|
+
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); }
|
|
5730
|
+
|
|
5731
|
+
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; }
|
|
5732
|
+
|
|
5710
5733
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5711
5734
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5712
5735
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5713
5736
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5714
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5737
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
|
|
5715
5738
|
var HLS_GLOBAL = 'Hls';
|
|
5716
5739
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5717
5740
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5720,12 +5743,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5720
5743
|
|
|
5721
5744
|
function canPlay(url) {
|
|
5722
5745
|
if (url instanceof Array) {
|
|
5723
|
-
var
|
|
5724
|
-
|
|
5725
|
-
var _iteratorError = undefined;
|
|
5746
|
+
var _iterator = _createForOfIteratorHelper(url),
|
|
5747
|
+
_step;
|
|
5726
5748
|
|
|
5727
5749
|
try {
|
|
5728
|
-
for (
|
|
5750
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5729
5751
|
var item = _step.value;
|
|
5730
5752
|
|
|
5731
5753
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5737,18 +5759,9 @@ function canPlay(url) {
|
|
|
5737
5759
|
}
|
|
5738
5760
|
}
|
|
5739
5761
|
} catch (err) {
|
|
5740
|
-
|
|
5741
|
-
_iteratorError = err;
|
|
5762
|
+
_iterator.e(err);
|
|
5742
5763
|
} finally {
|
|
5743
|
-
|
|
5744
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5745
|
-
_iterator["return"]();
|
|
5746
|
-
}
|
|
5747
|
-
} finally {
|
|
5748
|
-
if (_didIteratorError) {
|
|
5749
|
-
throw _iteratorError;
|
|
5750
|
-
}
|
|
5751
|
-
}
|
|
5764
|
+
_iterator.f();
|
|
5752
5765
|
}
|
|
5753
5766
|
|
|
5754
5767
|
return false;
|
|
@@ -5772,14 +5785,12 @@ function canEnablePIP(url) {
|
|
|
5772
5785
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5773
5786
|
}
|
|
5774
5787
|
|
|
5775
|
-
var FilePlayer =
|
|
5776
|
-
/*#__PURE__*/
|
|
5777
|
-
function (_Component) {
|
|
5788
|
+
var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
5778
5789
|
_inherits(FilePlayer, _Component);
|
|
5779
5790
|
|
|
5780
|
-
|
|
5781
|
-
var _getPrototypeOf2;
|
|
5791
|
+
var _super = _createSuper(FilePlayer);
|
|
5782
5792
|
|
|
5793
|
+
function FilePlayer() {
|
|
5783
5794
|
var _this;
|
|
5784
5795
|
|
|
5785
5796
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5788,7 +5799,7 @@ function (_Component) {
|
|
|
5788
5799
|
_args[_key] = arguments[_key];
|
|
5789
5800
|
}
|
|
5790
5801
|
|
|
5791
|
-
_this =
|
|
5802
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5792
5803
|
|
|
5793
5804
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5794
5805
|
var _this$props;
|
|
@@ -5875,19 +5886,19 @@ function (_Component) {
|
|
|
5875
5886
|
|
|
5876
5887
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
5877
5888
|
if (typeof source === 'string') {
|
|
5878
|
-
return _react["default"].createElement("source", {
|
|
5889
|
+
return /*#__PURE__*/_react["default"].createElement("source", {
|
|
5879
5890
|
key: index,
|
|
5880
5891
|
src: source
|
|
5881
5892
|
});
|
|
5882
5893
|
}
|
|
5883
5894
|
|
|
5884
|
-
return _react["default"].createElement("source", _extends({
|
|
5895
|
+
return /*#__PURE__*/_react["default"].createElement("source", _extends({
|
|
5885
5896
|
key: index
|
|
5886
5897
|
}, source));
|
|
5887
5898
|
});
|
|
5888
5899
|
|
|
5889
5900
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
5890
|
-
return _react["default"].createElement("track", _extends({
|
|
5901
|
+
return /*#__PURE__*/_react["default"].createElement("track", _extends({
|
|
5891
5902
|
key: index
|
|
5892
5903
|
}, track));
|
|
5893
5904
|
});
|
|
@@ -5925,6 +5936,10 @@ function (_Component) {
|
|
|
5925
5936
|
key: "componentWillUnmount",
|
|
5926
5937
|
value: function componentWillUnmount() {
|
|
5927
5938
|
this.removeListeners(this.player);
|
|
5939
|
+
|
|
5940
|
+
if (this.hls) {
|
|
5941
|
+
this.hls.destroy();
|
|
5942
|
+
}
|
|
5928
5943
|
}
|
|
5929
5944
|
}, {
|
|
5930
5945
|
key: "addListeners",
|
|
@@ -6055,10 +6070,6 @@ function (_Component) {
|
|
|
6055
6070
|
value: function stop() {
|
|
6056
6071
|
this.player.removeAttribute('src');
|
|
6057
6072
|
|
|
6058
|
-
if (this.hls) {
|
|
6059
|
-
this.hls.destroy();
|
|
6060
|
-
}
|
|
6061
|
-
|
|
6062
6073
|
if (this.dash) {
|
|
6063
6074
|
this.dash.reset();
|
|
6064
6075
|
}
|
|
@@ -6170,7 +6181,7 @@ function (_Component) {
|
|
|
6170
6181
|
width: width === 'auto' ? width : '100%',
|
|
6171
6182
|
height: height === 'auto' ? height : '100%'
|
|
6172
6183
|
};
|
|
6173
|
-
return _react["default"].createElement(Element, _extends({
|
|
6184
|
+
return /*#__PURE__*/_react["default"].createElement(Element, _extends({
|
|
6174
6185
|
ref: this.ref,
|
|
6175
6186
|
src: this.getSource(url),
|
|
6176
6187
|
style: style,
|
|
@@ -6200,7 +6211,7 @@ exports["default"] = _default;
|
|
|
6200
6211
|
});
|
|
6201
6212
|
|
|
6202
6213
|
unwrapExports(FilePlayer_1);
|
|
6203
|
-
|
|
6214
|
+
FilePlayer_1.FilePlayer;
|
|
6204
6215
|
|
|
6205
6216
|
var players = createCommonjsModule(function (module, exports) {
|
|
6206
6217
|
|
|
@@ -6242,7 +6253,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6242
6253
|
});
|
|
6243
6254
|
exports["default"] = void 0;
|
|
6244
6255
|
|
|
6245
|
-
var _react = _interopRequireWildcard(
|
|
6256
|
+
var _react = _interopRequireWildcard(React);
|
|
6246
6257
|
|
|
6247
6258
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6248
6259
|
|
|
@@ -6260,12 +6271,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6260
6271
|
|
|
6261
6272
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6262
6273
|
|
|
6263
|
-
function
|
|
6274
|
+
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); }; }
|
|
6264
6275
|
|
|
6265
|
-
function
|
|
6276
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6266
6277
|
|
|
6267
6278
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6268
6279
|
|
|
6280
|
+
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; } }
|
|
6281
|
+
|
|
6282
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6283
|
+
|
|
6269
6284
|
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); }
|
|
6270
6285
|
|
|
6271
6286
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6274,14 +6289,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6274
6289
|
|
|
6275
6290
|
var ICON_SIZE = '64px';
|
|
6276
6291
|
|
|
6277
|
-
var Preview =
|
|
6278
|
-
/*#__PURE__*/
|
|
6279
|
-
function (_Component) {
|
|
6292
|
+
var Preview = /*#__PURE__*/function (_Component) {
|
|
6280
6293
|
_inherits(Preview, _Component);
|
|
6281
6294
|
|
|
6282
|
-
|
|
6283
|
-
var _getPrototypeOf2;
|
|
6295
|
+
var _super = _createSuper(Preview);
|
|
6284
6296
|
|
|
6297
|
+
function Preview() {
|
|
6285
6298
|
var _this;
|
|
6286
6299
|
|
|
6287
6300
|
_classCallCheck(this, Preview);
|
|
@@ -6290,7 +6303,7 @@ function (_Component) {
|
|
|
6290
6303
|
args[_key] = arguments[_key];
|
|
6291
6304
|
}
|
|
6292
6305
|
|
|
6293
|
-
_this =
|
|
6306
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6294
6307
|
|
|
6295
6308
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6296
6309
|
|
|
@@ -6388,15 +6401,15 @@ function (_Component) {
|
|
|
6388
6401
|
}
|
|
6389
6402
|
};
|
|
6390
6403
|
|
|
6391
|
-
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6404
|
+
var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
|
|
6392
6405
|
style: styles.shadow,
|
|
6393
6406
|
className: "react-player__shadow"
|
|
6394
|
-
}, _react["default"].createElement("div", {
|
|
6407
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
6395
6408
|
style: styles.playIcon,
|
|
6396
6409
|
className: "react-player__play-icon"
|
|
6397
6410
|
}));
|
|
6398
6411
|
|
|
6399
|
-
return _react["default"].createElement("div", {
|
|
6412
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
6400
6413
|
style: styles.preview,
|
|
6401
6414
|
className: "react-player__preview",
|
|
6402
6415
|
onClick: onClick
|
|
@@ -6419,7 +6432,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6419
6432
|
});
|
|
6420
6433
|
exports["default"] = renderPreloadPlayers;
|
|
6421
6434
|
|
|
6422
|
-
var _react = _interopRequireDefault(
|
|
6435
|
+
var _react = _interopRequireDefault(React);
|
|
6423
6436
|
|
|
6424
6437
|
var _Player = _interopRequireDefault(Player_1);
|
|
6425
6438
|
|
|
@@ -6433,6 +6446,12 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6433
6446
|
|
|
6434
6447
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6435
6448
|
|
|
6449
|
+
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; } } }; }
|
|
6450
|
+
|
|
6451
|
+
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); }
|
|
6452
|
+
|
|
6453
|
+
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; }
|
|
6454
|
+
|
|
6436
6455
|
var PRELOAD_PLAYERS = [{
|
|
6437
6456
|
Player: YouTube_1.YouTube,
|
|
6438
6457
|
configKey: 'youtube',
|
|
@@ -6453,16 +6472,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6453
6472
|
|
|
6454
6473
|
function renderPreloadPlayers(url, controls, config) {
|
|
6455
6474
|
var players = [];
|
|
6456
|
-
|
|
6457
|
-
var
|
|
6458
|
-
|
|
6475
|
+
|
|
6476
|
+
var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
|
|
6477
|
+
_step;
|
|
6459
6478
|
|
|
6460
6479
|
try {
|
|
6461
|
-
for (
|
|
6480
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6462
6481
|
var player = _step.value;
|
|
6463
6482
|
|
|
6464
6483
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6465
|
-
players.push(_react["default"].createElement(_Player["default"], {
|
|
6484
|
+
players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
|
|
6466
6485
|
key: player.Player.displayName,
|
|
6467
6486
|
activePlayer: player.Player,
|
|
6468
6487
|
url: player.url,
|
|
@@ -6474,18 +6493,9 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6474
6493
|
}
|
|
6475
6494
|
}
|
|
6476
6495
|
} catch (err) {
|
|
6477
|
-
|
|
6478
|
-
_iteratorError = err;
|
|
6496
|
+
_iterator.e(err);
|
|
6479
6497
|
} finally {
|
|
6480
|
-
|
|
6481
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6482
|
-
_iterator["return"]();
|
|
6483
|
-
}
|
|
6484
|
-
} finally {
|
|
6485
|
-
if (_didIteratorError) {
|
|
6486
|
-
throw _iteratorError;
|
|
6487
|
-
}
|
|
6488
|
-
}
|
|
6498
|
+
_iterator.f();
|
|
6489
6499
|
}
|
|
6490
6500
|
|
|
6491
6501
|
return players;
|
|
@@ -6561,7 +6571,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6561
6571
|
});
|
|
6562
6572
|
exports["default"] = void 0;
|
|
6563
6573
|
|
|
6564
|
-
var _react = _interopRequireWildcard(
|
|
6574
|
+
var _react = _interopRequireWildcard(React);
|
|
6565
6575
|
|
|
6566
6576
|
|
|
6567
6577
|
|
|
@@ -6609,13 +6619,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6609
6619
|
|
|
6610
6620
|
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); }
|
|
6611
6621
|
|
|
6612
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6622
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6623
|
+
|
|
6624
|
+
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."); }
|
|
6613
6625
|
|
|
6614
|
-
function
|
|
6626
|
+
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); }
|
|
6615
6627
|
|
|
6616
|
-
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter)
|
|
6628
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
6617
6629
|
|
|
6618
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr))
|
|
6630
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6631
|
+
|
|
6632
|
+
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; }
|
|
6619
6633
|
|
|
6620
6634
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6621
6635
|
|
|
@@ -6623,12 +6637,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6623
6637
|
|
|
6624
6638
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6625
6639
|
|
|
6626
|
-
function
|
|
6640
|
+
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); }; }
|
|
6627
6641
|
|
|
6628
|
-
function
|
|
6642
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6629
6643
|
|
|
6630
6644
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6631
6645
|
|
|
6646
|
+
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; } }
|
|
6647
|
+
|
|
6648
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6649
|
+
|
|
6632
6650
|
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); }
|
|
6633
6651
|
|
|
6634
6652
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6638,14 +6656,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6638
6656
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6639
6657
|
var customPlayers = [];
|
|
6640
6658
|
|
|
6641
|
-
var ReactPlayer =
|
|
6642
|
-
/*#__PURE__*/
|
|
6643
|
-
function (_Component) {
|
|
6659
|
+
var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
6644
6660
|
_inherits(ReactPlayer, _Component);
|
|
6645
6661
|
|
|
6646
|
-
|
|
6647
|
-
var _getPrototypeOf2;
|
|
6662
|
+
var _super = _createSuper(ReactPlayer);
|
|
6648
6663
|
|
|
6664
|
+
function ReactPlayer() {
|
|
6649
6665
|
var _this;
|
|
6650
6666
|
|
|
6651
6667
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6654,7 +6670,7 @@ function (_Component) {
|
|
|
6654
6670
|
args[_key] = arguments[_key];
|
|
6655
6671
|
}
|
|
6656
6672
|
|
|
6657
|
-
_this =
|
|
6673
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6658
6674
|
|
|
6659
6675
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6660
6676
|
|
|
@@ -6765,7 +6781,7 @@ function (_Component) {
|
|
|
6765
6781
|
key: "renderActivePlayer",
|
|
6766
6782
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6767
6783
|
if (!url) return null;
|
|
6768
|
-
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6784
|
+
return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6769
6785
|
key: activePlayer.displayName,
|
|
6770
6786
|
ref: this.activePlayerRef,
|
|
6771
6787
|
config: this.config,
|
|
@@ -6802,14 +6818,14 @@ function (_Component) {
|
|
|
6802
6818
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6803
6819
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6804
6820
|
|
|
6805
|
-
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6821
|
+
var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
|
|
6806
6822
|
url: url,
|
|
6807
6823
|
light: light,
|
|
6808
6824
|
playIcon: playIcon,
|
|
6809
6825
|
onClick: this.handleClickPreview
|
|
6810
6826
|
});
|
|
6811
6827
|
|
|
6812
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
6828
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
6813
6829
|
ref: this.wrapperRef,
|
|
6814
6830
|
style: _objectSpread({}, style, {
|
|
6815
6831
|
width: width,
|
|
@@ -6869,20 +6885,20 @@ var Audio = function Audio(_ref) {
|
|
|
6869
6885
|
var node = _ref.node;
|
|
6870
6886
|
|
|
6871
6887
|
if (node.uploadAudio) {
|
|
6872
|
-
return
|
|
6888
|
+
return React.createElement(
|
|
6873
6889
|
'div',
|
|
6874
6890
|
{ className: 'audio d-block text-center mb-3' },
|
|
6875
|
-
|
|
6891
|
+
React.createElement(
|
|
6876
6892
|
'audio',
|
|
6877
6893
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
6878
|
-
|
|
6879
|
-
|
|
6894
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
6895
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
6880
6896
|
'Your browser does not support the audio element.'
|
|
6881
6897
|
),
|
|
6882
|
-
node.caption &&
|
|
6898
|
+
node.caption && React.createElement(
|
|
6883
6899
|
'p',
|
|
6884
6900
|
{ style: { fontSize: '.9rem' } },
|
|
6885
|
-
|
|
6901
|
+
React.createElement(
|
|
6886
6902
|
'em',
|
|
6887
6903
|
null,
|
|
6888
6904
|
node.caption
|
|
@@ -6892,15 +6908,15 @@ var Audio = function Audio(_ref) {
|
|
|
6892
6908
|
} else if (node.audioFilePth) {
|
|
6893
6909
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
6894
6910
|
if (hostname === 'embeds.audioboom.com') {
|
|
6895
|
-
return
|
|
6911
|
+
return React.createElement(
|
|
6896
6912
|
'div',
|
|
6897
6913
|
null,
|
|
6898
|
-
|
|
6914
|
+
React.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
6899
6915
|
' ',
|
|
6900
|
-
node.caption &&
|
|
6916
|
+
node.caption && React.createElement(
|
|
6901
6917
|
'p',
|
|
6902
6918
|
{ style: { fontSize: '.9rem' } },
|
|
6903
|
-
|
|
6919
|
+
React.createElement(
|
|
6904
6920
|
'em',
|
|
6905
6921
|
null,
|
|
6906
6922
|
node.caption
|
|
@@ -6908,14 +6924,14 @@ var Audio = function Audio(_ref) {
|
|
|
6908
6924
|
)
|
|
6909
6925
|
);
|
|
6910
6926
|
}
|
|
6911
|
-
return
|
|
6927
|
+
return React.createElement(
|
|
6912
6928
|
'div',
|
|
6913
6929
|
{ className: 'audio' },
|
|
6914
|
-
|
|
6915
|
-
node.caption &&
|
|
6930
|
+
React.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
6931
|
+
node.caption && React.createElement(
|
|
6916
6932
|
'p',
|
|
6917
6933
|
{ style: { fontSize: '.9rem' } },
|
|
6918
|
-
|
|
6934
|
+
React.createElement(
|
|
6919
6935
|
'em',
|
|
6920
6936
|
null,
|
|
6921
6937
|
node.caption
|
|
@@ -7016,10 +7032,10 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
7016
7032
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
|
|
7017
7033
|
};
|
|
7018
7034
|
|
|
7019
|
-
return
|
|
7035
|
+
return React.createElement(
|
|
7020
7036
|
'div',
|
|
7021
7037
|
null,
|
|
7022
|
-
vidLoaded &&
|
|
7038
|
+
vidLoaded && React.createElement(
|
|
7023
7039
|
'video',
|
|
7024
7040
|
{
|
|
7025
7041
|
poster: thumbnail || '',
|
|
@@ -7037,7 +7053,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
7037
7053
|
onPlay: function onPlay(e) {
|
|
7038
7054
|
return handleOnPlay(e);
|
|
7039
7055
|
} },
|
|
7040
|
-
|
|
7056
|
+
React.createElement('source', { src: url, type: 'video/mp4' }),
|
|
7041
7057
|
'Your browser does not support the video tag.'
|
|
7042
7058
|
)
|
|
7043
7059
|
);
|
|
@@ -7049,34 +7065,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7049
7065
|
var profileImage = arguments[6];
|
|
7050
7066
|
|
|
7051
7067
|
if (authorName && authorURL) {
|
|
7052
|
-
return
|
|
7068
|
+
return React.createElement(
|
|
7053
7069
|
'span',
|
|
7054
7070
|
null,
|
|
7055
|
-
|
|
7071
|
+
React.createElement(
|
|
7056
7072
|
'a',
|
|
7057
7073
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7058
7074
|
authorName
|
|
7059
7075
|
),
|
|
7060
|
-
|
|
7076
|
+
React.createElement(
|
|
7061
7077
|
Card,
|
|
7062
7078
|
{ className: 'author-details-card-' + index },
|
|
7063
|
-
|
|
7079
|
+
React.createElement(
|
|
7064
7080
|
Row,
|
|
7065
7081
|
null,
|
|
7066
|
-
profileImage &&
|
|
7082
|
+
profileImage && React.createElement(
|
|
7067
7083
|
Col,
|
|
7068
7084
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7069
|
-
|
|
7085
|
+
React.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7070
7086
|
),
|
|
7071
|
-
|
|
7087
|
+
React.createElement(
|
|
7072
7088
|
Col,
|
|
7073
7089
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7074
|
-
|
|
7090
|
+
React.createElement(
|
|
7075
7091
|
'div',
|
|
7076
7092
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7077
7093
|
authorName
|
|
7078
7094
|
),
|
|
7079
|
-
|
|
7095
|
+
React.createElement(
|
|
7080
7096
|
'p',
|
|
7081
7097
|
null,
|
|
7082
7098
|
biography
|
|
@@ -7084,7 +7100,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7084
7100
|
)
|
|
7085
7101
|
)
|
|
7086
7102
|
),
|
|
7087
|
-
|
|
7103
|
+
React.createElement(
|
|
7088
7104
|
'style',
|
|
7089
7105
|
{ jsx: 'true' },
|
|
7090
7106
|
'\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 '
|
|
@@ -7092,7 +7108,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7092
7108
|
length !== index + 1 && ' , '
|
|
7093
7109
|
);
|
|
7094
7110
|
} else if (authorName) {
|
|
7095
|
-
return
|
|
7111
|
+
return React.createElement(
|
|
7096
7112
|
'span',
|
|
7097
7113
|
{ key: index },
|
|
7098
7114
|
authorName,
|
|
@@ -7369,44 +7385,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7369
7385
|
}
|
|
7370
7386
|
};
|
|
7371
7387
|
|
|
7372
|
-
return
|
|
7388
|
+
return React.createElement(
|
|
7373
7389
|
'div',
|
|
7374
7390
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7375
|
-
|
|
7391
|
+
React.createElement(
|
|
7376
7392
|
'div',
|
|
7377
7393
|
{ className: 'mt-2 mb-5' },
|
|
7378
|
-
series &&
|
|
7394
|
+
series && React.createElement(
|
|
7379
7395
|
'div',
|
|
7380
7396
|
{ style: { fontSize: '0.9rem' } },
|
|
7381
7397
|
article.title,
|
|
7382
7398
|
' - Episode ',
|
|
7383
7399
|
series
|
|
7384
7400
|
),
|
|
7385
|
-
Videos[series - 1] &&
|
|
7401
|
+
Videos[series - 1] && React.createElement(
|
|
7386
7402
|
'h1',
|
|
7387
7403
|
{ className: 'mb-3' },
|
|
7388
7404
|
Videos[series - 1].title
|
|
7389
7405
|
),
|
|
7390
|
-
|
|
7406
|
+
React.createElement(
|
|
7391
7407
|
'div',
|
|
7392
7408
|
null,
|
|
7393
7409
|
moment(article.published).format('LL')
|
|
7394
7410
|
),
|
|
7395
|
-
|
|
7411
|
+
React.createElement(
|
|
7396
7412
|
'div',
|
|
7397
7413
|
{ className: 'mb-3' },
|
|
7398
7414
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7399
|
-
return
|
|
7415
|
+
return React.createElement(
|
|
7400
7416
|
'span',
|
|
7401
7417
|
{ key: index },
|
|
7402
7418
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor(client, authorDetail.profileImage).height(authorImgHeight).url())
|
|
7403
7419
|
);
|
|
7404
7420
|
})
|
|
7405
7421
|
),
|
|
7406
|
-
|
|
7422
|
+
React.createElement(
|
|
7407
7423
|
'p',
|
|
7408
7424
|
null,
|
|
7409
|
-
|
|
7425
|
+
React.createElement(SocialShare, {
|
|
7410
7426
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7411
7427
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7412
7428
|
shareVia: meta.shareVia,
|
|
@@ -7421,20 +7437,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7421
7437
|
hideFacebook: meta.hideFBShare
|
|
7422
7438
|
})
|
|
7423
7439
|
),
|
|
7424
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7440
|
+
Videos[series - 1] && Videos[series - 1].intro && React.createElement(
|
|
7425
7441
|
'p',
|
|
7426
7442
|
{ className: 'mb-3' },
|
|
7427
|
-
|
|
7443
|
+
React.createElement(
|
|
7428
7444
|
'em',
|
|
7429
7445
|
null,
|
|
7430
7446
|
Videos[series - 1].intro
|
|
7431
7447
|
)
|
|
7432
7448
|
)
|
|
7433
7449
|
),
|
|
7434
|
-
|
|
7450
|
+
React.createElement(
|
|
7435
7451
|
'div',
|
|
7436
7452
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7437
|
-
vidUrl && vidType == 'youtube' &&
|
|
7453
|
+
vidUrl && vidType == 'youtube' && React.createElement(YouTube, {
|
|
7438
7454
|
className: 'fluid-iframe',
|
|
7439
7455
|
videoId: getYoutubeId(vidUrl),
|
|
7440
7456
|
opts: opts,
|
|
@@ -7445,10 +7461,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7445
7461
|
return handleOnEnd(e);
|
|
7446
7462
|
}
|
|
7447
7463
|
}),
|
|
7448
|
-
vidUrl && vidType == 'mp4' &&
|
|
7449
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7450
|
-
|
|
7451
|
-
series &&
|
|
7464
|
+
vidUrl && vidType == 'mp4' && React.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7465
|
+
vidUrl && vidType == 'brightcove' && React.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7466
|
+
React.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7467
|
+
series && React.createElement(
|
|
7452
7468
|
'div',
|
|
7453
7469
|
{
|
|
7454
7470
|
className: 'vid-series',
|
|
@@ -7458,10 +7474,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7458
7474
|
maxHeight: '100%',
|
|
7459
7475
|
paddingBottom: '0'
|
|
7460
7476
|
} },
|
|
7461
|
-
|
|
7477
|
+
React.createElement(
|
|
7462
7478
|
'p',
|
|
7463
7479
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7464
|
-
|
|
7480
|
+
React.createElement(
|
|
7465
7481
|
'b',
|
|
7466
7482
|
{ style: { fontSize: '1.25em' } },
|
|
7467
7483
|
'Now Playing:'
|
|
@@ -7469,16 +7485,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7469
7485
|
' ',
|
|
7470
7486
|
seriesData[series ? series - 1 : 0].title
|
|
7471
7487
|
),
|
|
7472
|
-
vidUrl &&
|
|
7488
|
+
vidUrl && React.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7473
7489
|
)
|
|
7474
7490
|
),
|
|
7475
|
-
|
|
7476
|
-
|
|
7491
|
+
React.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7492
|
+
React.createElement(
|
|
7477
7493
|
'div',
|
|
7478
7494
|
{ className: 'vid-text' },
|
|
7479
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
7495
|
+
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()))
|
|
7480
7496
|
),
|
|
7481
|
-
|
|
7497
|
+
React.createElement(
|
|
7482
7498
|
'style',
|
|
7483
7499
|
{ jsx: 'true' },
|
|
7484
7500
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7487,13 +7503,13 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7487
7503
|
};
|
|
7488
7504
|
|
|
7489
7505
|
var Poll = function Poll(_ref) {
|
|
7490
|
-
var node = _ref.node
|
|
7491
|
-
|
|
7492
|
-
|
|
7493
|
-
|
|
7494
|
-
onVote = _ref.onVote
|
|
7495
|
-
_ref
|
|
7496
|
-
getSerializers = _ref.getSerializers;
|
|
7506
|
+
var node = _ref.node;
|
|
7507
|
+
_ref.client;
|
|
7508
|
+
_ref.pageview;
|
|
7509
|
+
_ref.videoAccountIDs;
|
|
7510
|
+
var onVote = _ref.onVote;
|
|
7511
|
+
_ref.showVotes;
|
|
7512
|
+
var getSerializers = _ref.getSerializers;
|
|
7497
7513
|
|
|
7498
7514
|
var _useState = useState(null),
|
|
7499
7515
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7531,67 +7547,67 @@ var Poll = function Poll(_ref) {
|
|
|
7531
7547
|
return acc;
|
|
7532
7548
|
}
|
|
7533
7549
|
}, 0);
|
|
7534
|
-
return
|
|
7535
|
-
|
|
7550
|
+
return React.createElement(
|
|
7551
|
+
React.Fragment,
|
|
7536
7552
|
null,
|
|
7537
|
-
question &&
|
|
7553
|
+
question && React.createElement(
|
|
7538
7554
|
'p',
|
|
7539
7555
|
{ className: 'font-weight-bold' },
|
|
7540
7556
|
question
|
|
7541
7557
|
),
|
|
7542
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7558
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7543
7559
|
'form',
|
|
7544
7560
|
{ onSubmit: function onSubmit(e) {
|
|
7545
7561
|
return onSubmitPoll(e);
|
|
7546
7562
|
} },
|
|
7547
7563
|
choices && choices.map(function (choice) {
|
|
7548
|
-
return
|
|
7564
|
+
return React.createElement(
|
|
7549
7565
|
'div',
|
|
7550
7566
|
{ key: choice._key },
|
|
7551
|
-
|
|
7567
|
+
React.createElement(
|
|
7552
7568
|
'label',
|
|
7553
7569
|
{ className: 'pl-2' },
|
|
7554
|
-
|
|
7570
|
+
React.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7555
7571
|
return setSelectedChoice(e.target.value);
|
|
7556
7572
|
} }),
|
|
7557
7573
|
' ' + choice.choiceText
|
|
7558
7574
|
)
|
|
7559
7575
|
);
|
|
7560
7576
|
}),
|
|
7561
|
-
|
|
7577
|
+
React.createElement(
|
|
7562
7578
|
Button,
|
|
7563
7579
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7564
7580
|
'Vote'
|
|
7565
7581
|
)
|
|
7566
7582
|
),
|
|
7567
|
-
|
|
7583
|
+
React.createElement(
|
|
7568
7584
|
'div',
|
|
7569
7585
|
{ className: 'progress-container' },
|
|
7570
7586
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7571
7587
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7572
|
-
return
|
|
7588
|
+
return React.createElement(
|
|
7573
7589
|
'div',
|
|
7574
7590
|
{ key: choice._key, className: 'mb-3' },
|
|
7575
|
-
|
|
7591
|
+
React.createElement(
|
|
7576
7592
|
'div',
|
|
7577
7593
|
{ className: 'correct-answer' },
|
|
7578
|
-
|
|
7594
|
+
React.createElement(
|
|
7579
7595
|
'div',
|
|
7580
7596
|
null,
|
|
7581
7597
|
choice.choiceText
|
|
7582
7598
|
),
|
|
7583
|
-
choice.choiceAnswer === true &&
|
|
7599
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7584
7600
|
'div',
|
|
7585
7601
|
null,
|
|
7586
|
-
|
|
7602
|
+
React.createElement(
|
|
7587
7603
|
'span',
|
|
7588
7604
|
{ style: { color: 'limegreen' } },
|
|
7589
7605
|
'Correct!'
|
|
7590
7606
|
)
|
|
7591
7607
|
)
|
|
7592
7608
|
),
|
|
7593
|
-
|
|
7594
|
-
|
|
7609
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7610
|
+
React.createElement(
|
|
7595
7611
|
'span',
|
|
7596
7612
|
{ className: 'float-right' },
|
|
7597
7613
|
percentage,
|
|
@@ -7602,14 +7618,14 @@ var Poll = function Poll(_ref) {
|
|
|
7602
7618
|
);
|
|
7603
7619
|
})
|
|
7604
7620
|
),
|
|
7605
|
-
showAnswer &&
|
|
7621
|
+
showAnswer && React.createElement(
|
|
7606
7622
|
'h4',
|
|
7607
7623
|
{ className: 'text-center small p-3' },
|
|
7608
7624
|
'Total Votes: ',
|
|
7609
7625
|
choicesTotalCount
|
|
7610
7626
|
),
|
|
7611
|
-
showAnswer && response &&
|
|
7612
|
-
|
|
7627
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7628
|
+
React.createElement(
|
|
7613
7629
|
'style',
|
|
7614
7630
|
{ jsx: 'true' },
|
|
7615
7631
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7636,13 +7652,13 @@ module.exports = { "default": values, __esModule: true };
|
|
|
7636
7652
|
var _Object$values = unwrapExports(values$1);
|
|
7637
7653
|
|
|
7638
7654
|
var Poll$1 = function Poll(_ref) {
|
|
7639
|
-
var node = _ref.node
|
|
7640
|
-
|
|
7641
|
-
|
|
7642
|
-
|
|
7643
|
-
onVote = _ref.onVote
|
|
7644
|
-
_ref
|
|
7645
|
-
getSerializers = _ref.getSerializers;
|
|
7655
|
+
var node = _ref.node;
|
|
7656
|
+
_ref.client;
|
|
7657
|
+
_ref.pageview;
|
|
7658
|
+
_ref.videoAccountIDs;
|
|
7659
|
+
var onVote = _ref.onVote;
|
|
7660
|
+
_ref.showVotes;
|
|
7661
|
+
var getSerializers = _ref.getSerializers;
|
|
7646
7662
|
|
|
7647
7663
|
var _useState = useState(null),
|
|
7648
7664
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7708,67 +7724,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7708
7724
|
return acc;
|
|
7709
7725
|
}
|
|
7710
7726
|
}, 0);
|
|
7711
|
-
return
|
|
7712
|
-
|
|
7727
|
+
return React.createElement(
|
|
7728
|
+
React.Fragment,
|
|
7713
7729
|
null,
|
|
7714
|
-
question &&
|
|
7730
|
+
question && React.createElement(
|
|
7715
7731
|
'p',
|
|
7716
7732
|
{ className: 'font-weight-bold' },
|
|
7717
7733
|
question
|
|
7718
7734
|
),
|
|
7719
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7735
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7720
7736
|
'form',
|
|
7721
7737
|
{ onSubmit: function onSubmit(e) {
|
|
7722
7738
|
return onSubmitPoll(e);
|
|
7723
7739
|
} },
|
|
7724
7740
|
choices && choices.map(function (choice) {
|
|
7725
|
-
return
|
|
7741
|
+
return React.createElement(
|
|
7726
7742
|
'div',
|
|
7727
7743
|
{ key: choice._key },
|
|
7728
|
-
|
|
7744
|
+
React.createElement(
|
|
7729
7745
|
'label',
|
|
7730
7746
|
{ className: 'pl-2' },
|
|
7731
|
-
|
|
7747
|
+
React.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7732
7748
|
return setSelectedChoice(e.target.value);
|
|
7733
7749
|
} }),
|
|
7734
7750
|
' ' + choice.choiceText
|
|
7735
7751
|
)
|
|
7736
7752
|
);
|
|
7737
7753
|
}),
|
|
7738
|
-
|
|
7754
|
+
React.createElement(
|
|
7739
7755
|
Button,
|
|
7740
7756
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7741
7757
|
'Vote'
|
|
7742
7758
|
)
|
|
7743
7759
|
),
|
|
7744
|
-
|
|
7760
|
+
React.createElement(
|
|
7745
7761
|
'div',
|
|
7746
7762
|
{ className: 'progress-container' },
|
|
7747
7763
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7748
7764
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7749
|
-
return
|
|
7765
|
+
return React.createElement(
|
|
7750
7766
|
'div',
|
|
7751
7767
|
{ key: choice._key, className: 'mb-3' },
|
|
7752
|
-
|
|
7768
|
+
React.createElement(
|
|
7753
7769
|
'div',
|
|
7754
7770
|
{ className: 'correct-answer' },
|
|
7755
|
-
|
|
7771
|
+
React.createElement(
|
|
7756
7772
|
'div',
|
|
7757
7773
|
null,
|
|
7758
7774
|
choice.choiceText
|
|
7759
7775
|
),
|
|
7760
|
-
choice.choiceAnswer === true &&
|
|
7776
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7761
7777
|
'div',
|
|
7762
7778
|
null,
|
|
7763
|
-
|
|
7779
|
+
React.createElement(
|
|
7764
7780
|
'span',
|
|
7765
7781
|
{ style: { color: 'limegreen' } },
|
|
7766
7782
|
'Correct!'
|
|
7767
7783
|
)
|
|
7768
7784
|
)
|
|
7769
7785
|
),
|
|
7770
|
-
|
|
7771
|
-
|
|
7786
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7787
|
+
React.createElement(
|
|
7772
7788
|
'span',
|
|
7773
7789
|
{ className: 'float-right' },
|
|
7774
7790
|
percentage,
|
|
@@ -7779,14 +7795,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7779
7795
|
);
|
|
7780
7796
|
})
|
|
7781
7797
|
),
|
|
7782
|
-
showAnswer &&
|
|
7798
|
+
showAnswer && React.createElement(
|
|
7783
7799
|
'h4',
|
|
7784
7800
|
{ className: 'text-center small p-3' },
|
|
7785
7801
|
'Total Votes: ',
|
|
7786
7802
|
choicesTotalCount
|
|
7787
7803
|
),
|
|
7788
|
-
showAnswer && response &&
|
|
7789
|
-
|
|
7804
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7805
|
+
React.createElement(
|
|
7790
7806
|
'style',
|
|
7791
7807
|
{ jsx: 'true' },
|
|
7792
7808
|
'\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 '
|
|
@@ -7794,7 +7810,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7794
7810
|
);
|
|
7795
7811
|
};
|
|
7796
7812
|
|
|
7797
|
-
var numberOfPaginations =
|
|
7813
|
+
var numberOfPaginations = main_39 ? 4 : 10;
|
|
7798
7814
|
|
|
7799
7815
|
var Quiz = function Quiz(_ref) {
|
|
7800
7816
|
var quizzes = _ref.quizzes,
|
|
@@ -7912,20 +7928,20 @@ var Quiz = function Quiz(_ref) {
|
|
|
7912
7928
|
};
|
|
7913
7929
|
|
|
7914
7930
|
var renderPagination = function renderPagination() {
|
|
7915
|
-
return
|
|
7931
|
+
return React.createElement(
|
|
7916
7932
|
Pagination,
|
|
7917
|
-
{ className: 'p-0 m-0', size:
|
|
7918
|
-
|
|
7933
|
+
{ className: 'p-0 m-0', size: main_39 && 'sm' },
|
|
7934
|
+
React.createElement(Pagination.First, { onClick: function onClick() {
|
|
7919
7935
|
return changePage('first');
|
|
7920
7936
|
}, disabled: currentPage === 1 }),
|
|
7921
|
-
|
|
7937
|
+
React.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7922
7938
|
return changePage('prev');
|
|
7923
7939
|
}, disabled: currentPage === 1 }),
|
|
7924
|
-
|
|
7940
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7925
7941
|
return renderNewPages('prev');
|
|
7926
7942
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7927
7943
|
pages.map(function (page) {
|
|
7928
|
-
return
|
|
7944
|
+
return React.createElement(
|
|
7929
7945
|
Pagination.Item,
|
|
7930
7946
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7931
7947
|
return changePage(page);
|
|
@@ -7933,13 +7949,13 @@ var Quiz = function Quiz(_ref) {
|
|
|
7933
7949
|
page
|
|
7934
7950
|
);
|
|
7935
7951
|
}),
|
|
7936
|
-
|
|
7952
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7937
7953
|
return renderNewPages('next');
|
|
7938
7954
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7939
|
-
|
|
7955
|
+
React.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7940
7956
|
return changePage('next');
|
|
7941
7957
|
}, disabled: currentPage === pageCount }),
|
|
7942
|
-
|
|
7958
|
+
React.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7943
7959
|
return changePage('last');
|
|
7944
7960
|
}, disabled: currentPage === pageCount })
|
|
7945
7961
|
);
|
|
@@ -8022,51 +8038,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8022
8038
|
}
|
|
8023
8039
|
};
|
|
8024
8040
|
|
|
8025
|
-
return
|
|
8026
|
-
|
|
8041
|
+
return React.createElement(
|
|
8042
|
+
React.Fragment,
|
|
8027
8043
|
null,
|
|
8028
|
-
quizzes[currentPage - 1] &&
|
|
8029
|
-
|
|
8044
|
+
quizzes[currentPage - 1] && React.createElement(
|
|
8045
|
+
React.Fragment,
|
|
8030
8046
|
null,
|
|
8031
|
-
|
|
8032
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 &&
|
|
8047
|
+
React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8048
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React.createElement(
|
|
8033
8049
|
'form',
|
|
8034
8050
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8035
8051
|
return e.preventDefault();
|
|
8036
8052
|
} },
|
|
8037
8053
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8038
|
-
return
|
|
8054
|
+
return React.createElement(
|
|
8039
8055
|
'div',
|
|
8040
8056
|
{ key: answer._key },
|
|
8041
|
-
|
|
8057
|
+
React.createElement(
|
|
8042
8058
|
'label',
|
|
8043
8059
|
{ className: 'pl-2' },
|
|
8044
|
-
quizzes[currentPage - 1].multiAnswer ?
|
|
8060
|
+
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 }),
|
|
8045
8061
|
' ' + answer.answerText
|
|
8046
8062
|
)
|
|
8047
8063
|
);
|
|
8048
8064
|
})
|
|
8049
8065
|
)
|
|
8050
8066
|
),
|
|
8051
|
-
!showAnswer &&
|
|
8067
|
+
!showAnswer && React.createElement(
|
|
8052
8068
|
Button$1,
|
|
8053
8069
|
{ onClick: function onClick() {
|
|
8054
8070
|
return checkAnswers();
|
|
8055
8071
|
}, variant: 'info', block: true },
|
|
8056
8072
|
'Please click here for answer'
|
|
8057
8073
|
),
|
|
8058
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
8059
|
-
|
|
8074
|
+
quizzes[currentPage - 1] && showAnswer && React.createElement(
|
|
8075
|
+
React.Fragment,
|
|
8060
8076
|
null,
|
|
8061
|
-
|
|
8077
|
+
React.createElement(
|
|
8062
8078
|
'h4',
|
|
8063
8079
|
null,
|
|
8064
8080
|
'Answer:'
|
|
8065
8081
|
),
|
|
8066
|
-
quizzes[currentPage - 1].answer &&
|
|
8082
|
+
quizzes[currentPage - 1].answer && React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8067
8083
|
),
|
|
8068
|
-
|
|
8069
|
-
pageCount > 1 &&
|
|
8084
|
+
React.createElement('br', null),
|
|
8085
|
+
pageCount > 1 && React.createElement(
|
|
8070
8086
|
'div',
|
|
8071
8087
|
{ className: 'd-flex justify-content-center' },
|
|
8072
8088
|
renderPagination()
|
|
@@ -8077,10 +8093,10 @@ var Quiz = function Quiz(_ref) {
|
|
|
8077
8093
|
var Leads = function Leads(_ref) {
|
|
8078
8094
|
var url = _ref.url;
|
|
8079
8095
|
|
|
8080
|
-
return
|
|
8096
|
+
return React.createElement(
|
|
8081
8097
|
'div',
|
|
8082
8098
|
{ className: 'd-block text-center mb-3' },
|
|
8083
|
-
url &&
|
|
8099
|
+
url && React.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8084
8100
|
);
|
|
8085
8101
|
};
|
|
8086
8102
|
|
|
@@ -8101,8 +8117,8 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8101
8117
|
|
|
8102
8118
|
var _useState = useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
|
|
8103
8119
|
_useState2 = _slicedToArray(_useState, 2),
|
|
8104
|
-
carouselIndex = _useState2[0]
|
|
8105
|
-
|
|
8120
|
+
carouselIndex = _useState2[0];
|
|
8121
|
+
_useState2[1];
|
|
8106
8122
|
|
|
8107
8123
|
// useEffect(() => {
|
|
8108
8124
|
// let itemArr = router.asPath.split('?page=')
|
|
@@ -8128,42 +8144,42 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8128
8144
|
}
|
|
8129
8145
|
};
|
|
8130
8146
|
|
|
8131
|
-
return
|
|
8147
|
+
return React.createElement(
|
|
8132
8148
|
'div',
|
|
8133
8149
|
{ ref: carouselRef, className: 'mt-3 mb-4' },
|
|
8134
|
-
|
|
8150
|
+
React.createElement(
|
|
8135
8151
|
Carousel,
|
|
8136
8152
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8137
8153
|
slides && slides.map(function (slide) {
|
|
8138
8154
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8139
|
-
return
|
|
8155
|
+
return React.createElement(
|
|
8140
8156
|
Carousel.Item,
|
|
8141
8157
|
{ key: slide._key },
|
|
8142
|
-
|
|
8158
|
+
React.createElement(
|
|
8143
8159
|
'a',
|
|
8144
8160
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8145
|
-
|
|
8161
|
+
React.createElement(
|
|
8146
8162
|
LazyLoad,
|
|
8147
8163
|
null,
|
|
8148
|
-
|
|
8164
|
+
React.createElement('img', { src: urlFor$1(slide.slideshowImage, client).url(), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
8149
8165
|
)
|
|
8150
8166
|
),
|
|
8151
|
-
|
|
8167
|
+
React.createElement(
|
|
8152
8168
|
'div',
|
|
8153
8169
|
{ className: 'p-2' },
|
|
8154
|
-
slide.slideshowImage.caption &&
|
|
8170
|
+
slide.slideshowImage.caption && React.createElement(
|
|
8155
8171
|
'h3',
|
|
8156
8172
|
{ style: { padding: '0px' } },
|
|
8157
8173
|
slide.slideshowImage.caption
|
|
8158
8174
|
),
|
|
8159
|
-
slide.description &&
|
|
8175
|
+
slide.description && React.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8160
8176
|
)
|
|
8161
8177
|
);
|
|
8162
8178
|
}
|
|
8163
8179
|
return null;
|
|
8164
8180
|
})
|
|
8165
8181
|
),
|
|
8166
|
-
|
|
8182
|
+
React.createElement(
|
|
8167
8183
|
'style',
|
|
8168
8184
|
{ jsx: 'true' },
|
|
8169
8185
|
'\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 '
|
|
@@ -8182,10 +8198,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8182
8198
|
sizes = _props$node.sizes,
|
|
8183
8199
|
sizeMapping = _props$node.sizeMapping;
|
|
8184
8200
|
|
|
8185
|
-
return
|
|
8201
|
+
return React.createElement(
|
|
8186
8202
|
'div',
|
|
8187
8203
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8188
|
-
|
|
8204
|
+
React.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8189
8205
|
);
|
|
8190
8206
|
};
|
|
8191
8207
|
|
|
@@ -8196,15 +8212,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8196
8212
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8197
8213
|
|
|
8198
8214
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8199
|
-
return
|
|
8215
|
+
return React.createElement(
|
|
8200
8216
|
'section',
|
|
8201
8217
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8202
|
-
Caption &&
|
|
8218
|
+
Caption && React.createElement(
|
|
8203
8219
|
'h4',
|
|
8204
8220
|
{ className: 'formstack-caption' },
|
|
8205
8221
|
Caption
|
|
8206
8222
|
),
|
|
8207
|
-
|
|
8223
|
+
React.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8208
8224
|
);
|
|
8209
8225
|
};
|
|
8210
8226
|
|
|
@@ -8224,29 +8240,29 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8224
8240
|
}
|
|
8225
8241
|
});
|
|
8226
8242
|
if (medias && medias.length > 0) {
|
|
8227
|
-
return
|
|
8243
|
+
return React.createElement(
|
|
8228
8244
|
'div',
|
|
8229
8245
|
{ className: 'multi-media-container' },
|
|
8230
|
-
|
|
8246
|
+
React.createElement(
|
|
8231
8247
|
Row$1,
|
|
8232
8248
|
{ noGutters: true },
|
|
8233
8249
|
medias.map(function (media) {
|
|
8234
|
-
return
|
|
8250
|
+
return React.createElement(
|
|
8235
8251
|
Col$1,
|
|
8236
8252
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8237
|
-
|
|
8253
|
+
React.createElement(
|
|
8238
8254
|
'a',
|
|
8239
|
-
_extends
|
|
8255
|
+
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8240
8256
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8241
|
-
|
|
8257
|
+
React.createElement(
|
|
8242
8258
|
'div',
|
|
8243
8259
|
{ className: 'multi-media-image-container' },
|
|
8244
|
-
imageBox &&
|
|
8260
|
+
imageBox && React.createElement(
|
|
8245
8261
|
LazyLoad,
|
|
8246
8262
|
{ once: true },
|
|
8247
|
-
|
|
8263
|
+
React.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor$2(media.poster, client).url(), alt: media.alt })
|
|
8248
8264
|
),
|
|
8249
|
-
media.caption &&
|
|
8265
|
+
media.caption && React.createElement(
|
|
8250
8266
|
'span',
|
|
8251
8267
|
{ className: 'multi-media-caption' },
|
|
8252
8268
|
media.caption
|
|
@@ -8256,7 +8272,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8256
8272
|
);
|
|
8257
8273
|
})
|
|
8258
8274
|
),
|
|
8259
|
-
|
|
8275
|
+
React.createElement(
|
|
8260
8276
|
'style',
|
|
8261
8277
|
{ jsx: 'true' },
|
|
8262
8278
|
'\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 '
|
|
@@ -8303,7 +8319,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8303
8319
|
}
|
|
8304
8320
|
};
|
|
8305
8321
|
|
|
8306
|
-
_this.wraperRef =
|
|
8322
|
+
_this.wraperRef = React.createRef();
|
|
8307
8323
|
_this.visible = false;
|
|
8308
8324
|
return _this;
|
|
8309
8325
|
}
|
|
@@ -8331,7 +8347,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8331
8347
|
_props$id = _props.id,
|
|
8332
8348
|
id = _props$id === undefined ? '' : _props$id;
|
|
8333
8349
|
|
|
8334
|
-
return
|
|
8350
|
+
return React.createElement(
|
|
8335
8351
|
'div',
|
|
8336
8352
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8337
8353
|
this.props.children
|
|
@@ -8340,7 +8356,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8340
8356
|
}]);
|
|
8341
8357
|
|
|
8342
8358
|
return InscreenSensor;
|
|
8343
|
-
}(
|
|
8359
|
+
}(React.Component);
|
|
8344
8360
|
|
|
8345
8361
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8346
8362
|
var nodes = _ref.nodes,
|
|
@@ -8453,33 +8469,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8453
8469
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8454
8470
|
var showReading = show ? 'showReading' : '';
|
|
8455
8471
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8456
|
-
return
|
|
8472
|
+
return React.createElement(
|
|
8457
8473
|
'div',
|
|
8458
8474
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8459
|
-
|
|
8475
|
+
React.createElement(
|
|
8460
8476
|
'a',
|
|
8461
8477
|
{ onClick: function onClick(e) {
|
|
8462
8478
|
return articleCardClickHandler(e);
|
|
8463
8479
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8464
|
-
|
|
8480
|
+
React.createElement(
|
|
8465
8481
|
'div',
|
|
8466
8482
|
{ className: 'prevNext-thumbnail' },
|
|
8467
|
-
|
|
8468
|
-
|
|
8483
|
+
React.createElement('img', { src: urlFor(article.thumbnail.asset).url() }),
|
|
8484
|
+
React.createElement(
|
|
8469
8485
|
'div',
|
|
8470
8486
|
{ className: 'prevNext-reading ' + showReading },
|
|
8471
8487
|
articleLabel
|
|
8472
8488
|
)
|
|
8473
8489
|
),
|
|
8474
|
-
|
|
8490
|
+
React.createElement(
|
|
8475
8491
|
'div',
|
|
8476
8492
|
{ className: 'prevNext-summary' },
|
|
8477
|
-
|
|
8493
|
+
React.createElement(
|
|
8478
8494
|
'div',
|
|
8479
8495
|
{ className: 'prevNext-publishDate' },
|
|
8480
8496
|
moment(article.published).format('LL')
|
|
8481
8497
|
),
|
|
8482
|
-
|
|
8498
|
+
React.createElement(
|
|
8483
8499
|
'h2',
|
|
8484
8500
|
{ className: 'prevNext-title' },
|
|
8485
8501
|
article.title
|
|
@@ -8528,7 +8544,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8528
8544
|
|
|
8529
8545
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8530
8546
|
if (biography) {
|
|
8531
|
-
return
|
|
8547
|
+
return React.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8532
8548
|
}
|
|
8533
8549
|
};
|
|
8534
8550
|
|
|
@@ -8614,7 +8630,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8614
8630
|
//console.log('useLayoutEffect')
|
|
8615
8631
|
if (!firstLoad) {
|
|
8616
8632
|
setUpArrowClicked(false);
|
|
8617
|
-
if (
|
|
8633
|
+
if (main_40) {
|
|
8618
8634
|
grabLoadedAds();
|
|
8619
8635
|
} else {
|
|
8620
8636
|
scrollToArticle();
|
|
@@ -8638,7 +8654,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8638
8654
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8639
8655
|
if (pageview) pageview(path);
|
|
8640
8656
|
|
|
8641
|
-
if (!
|
|
8657
|
+
if (!main_40) {
|
|
8642
8658
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8643
8659
|
if (window.googletag && googletag.pubadsReady) {
|
|
8644
8660
|
lib_3.refresh();
|
|
@@ -8646,7 +8662,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8646
8662
|
});
|
|
8647
8663
|
}
|
|
8648
8664
|
//Refresh leaderboard ad on mobile
|
|
8649
|
-
if (
|
|
8665
|
+
if (main_40) {
|
|
8650
8666
|
var leaderboardSlotId = '';
|
|
8651
8667
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8652
8668
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8686,38 +8702,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8686
8702
|
setSensorVisible(false);
|
|
8687
8703
|
};
|
|
8688
8704
|
|
|
8689
|
-
return
|
|
8690
|
-
|
|
8705
|
+
return React.createElement(
|
|
8706
|
+
React.Fragment,
|
|
8691
8707
|
null,
|
|
8692
|
-
|
|
8708
|
+
React.createElement(
|
|
8693
8709
|
'div',
|
|
8694
8710
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8695
|
-
|
|
8711
|
+
React.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8696
8712
|
return handleArrowClick();
|
|
8697
8713
|
} })
|
|
8698
8714
|
),
|
|
8699
|
-
|
|
8700
|
-
|
|
8715
|
+
React.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8716
|
+
React.createElement(
|
|
8701
8717
|
'div',
|
|
8702
8718
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8703
|
-
|
|
8719
|
+
React.createElement(
|
|
8704
8720
|
'h5',
|
|
8705
8721
|
{ className: 'objective-title' },
|
|
8706
8722
|
nodes.seriesTitle
|
|
8707
8723
|
),
|
|
8708
|
-
|
|
8724
|
+
React.createElement(
|
|
8709
8725
|
'div',
|
|
8710
8726
|
{ className: 'prevNextWrapper' },
|
|
8711
8727
|
PrevNextCards(false, -1)
|
|
8712
8728
|
)
|
|
8713
8729
|
),
|
|
8714
|
-
|
|
8715
|
-
|
|
8730
|
+
React.createElement('hr', { className: 'article-seperater' }),
|
|
8731
|
+
React.createElement(
|
|
8716
8732
|
'div',
|
|
8717
8733
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8718
|
-
|
|
8734
|
+
main_40 && Ads.map(function (ad, index) {
|
|
8719
8735
|
if (index === 0) {
|
|
8720
|
-
return
|
|
8736
|
+
return React.createElement(
|
|
8721
8737
|
'div',
|
|
8722
8738
|
{
|
|
8723
8739
|
key: 'addid-1',
|
|
@@ -8737,14 +8753,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8737
8753
|
}
|
|
8738
8754
|
})
|
|
8739
8755
|
),
|
|
8740
|
-
|
|
8756
|
+
React.createElement(
|
|
8741
8757
|
'div',
|
|
8742
8758
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8743
8759
|
Articles.map(function (article, index) {
|
|
8744
|
-
return
|
|
8760
|
+
return React.createElement(
|
|
8745
8761
|
'div',
|
|
8746
8762
|
{ key: article.title },
|
|
8747
|
-
|
|
8763
|
+
React.createElement(
|
|
8748
8764
|
InscreenSensor,
|
|
8749
8765
|
{
|
|
8750
8766
|
visible: sensorVisible,
|
|
@@ -8762,84 +8778,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8762
8778
|
}
|
|
8763
8779
|
}
|
|
8764
8780
|
} },
|
|
8765
|
-
|
|
8781
|
+
React.createElement(
|
|
8766
8782
|
Head,
|
|
8767
8783
|
null,
|
|
8768
|
-
currentTitle !== null &&
|
|
8784
|
+
currentTitle !== null && React.createElement(
|
|
8769
8785
|
'title',
|
|
8770
8786
|
{ key: 'title' },
|
|
8771
8787
|
currentTitle
|
|
8772
8788
|
),
|
|
8773
|
-
currentSummary !== null &&
|
|
8774
|
-
currentURL !== null &&
|
|
8775
|
-
currentTitle !== null &&
|
|
8776
|
-
currentThumbnail !== null &&
|
|
8777
|
-
currentSummary !== null &&
|
|
8778
|
-
currentTitle !== null &&
|
|
8779
|
-
currentThumbnail !== null &&
|
|
8780
|
-
currentSummary !== null &&
|
|
8789
|
+
currentSummary !== null && React.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8790
|
+
currentURL !== null && React.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8791
|
+
currentTitle !== null && React.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8792
|
+
currentThumbnail !== null && React.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8793
|
+
currentSummary !== null && React.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8794
|
+
currentTitle !== null && React.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8795
|
+
currentThumbnail !== null && React.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8796
|
+
currentSummary !== null && React.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8781
8797
|
),
|
|
8782
|
-
|
|
8798
|
+
React.createElement(
|
|
8783
8799
|
'article',
|
|
8784
8800
|
{ className: 'article-wrapper' },
|
|
8785
|
-
|
|
8801
|
+
React.createElement(
|
|
8786
8802
|
'div',
|
|
8787
8803
|
{ className: 'article-publishDate' },
|
|
8788
8804
|
moment(article.published).format('LL')
|
|
8789
8805
|
),
|
|
8790
|
-
|
|
8806
|
+
React.createElement(
|
|
8791
8807
|
'div',
|
|
8792
8808
|
{ className: 'author-details-wrapper' },
|
|
8793
8809
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8794
|
-
return
|
|
8810
|
+
return React.createElement(
|
|
8795
8811
|
'span',
|
|
8796
8812
|
{ key: index },
|
|
8797
8813
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor(client, authorDetail.profileImage).url())
|
|
8798
8814
|
);
|
|
8799
8815
|
})
|
|
8800
8816
|
),
|
|
8801
|
-
|
|
8817
|
+
React.createElement(
|
|
8802
8818
|
'h2',
|
|
8803
8819
|
{ className: 'article-title' },
|
|
8804
8820
|
article.title
|
|
8805
8821
|
),
|
|
8806
|
-
|
|
8822
|
+
React.createElement(
|
|
8807
8823
|
'div',
|
|
8808
8824
|
{ className: 'mt-2 mb-2' },
|
|
8809
|
-
|
|
8825
|
+
React.createElement(BlockContent, _extends({
|
|
8810
8826
|
serializers: getSerializers,
|
|
8811
8827
|
videoAccountIDs: accountIDs,
|
|
8812
8828
|
blocks: article.text,
|
|
8813
8829
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8814
8830
|
}, client.config())),
|
|
8815
|
-
|
|
8831
|
+
React.createElement('hr', { className: 'article-seperater my-4' })
|
|
8816
8832
|
),
|
|
8817
|
-
Articles.length > 1 &&
|
|
8818
|
-
|
|
8833
|
+
Articles.length > 1 && React.createElement(
|
|
8834
|
+
React.Fragment,
|
|
8819
8835
|
null,
|
|
8820
|
-
|
|
8836
|
+
React.createElement(
|
|
8821
8837
|
'div',
|
|
8822
8838
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8823
|
-
|
|
8839
|
+
React.createElement(
|
|
8824
8840
|
'h5',
|
|
8825
8841
|
{ className: 'objective-title' },
|
|
8826
8842
|
nodes.seriesTitle
|
|
8827
8843
|
),
|
|
8828
|
-
|
|
8844
|
+
React.createElement(
|
|
8829
8845
|
'div',
|
|
8830
8846
|
{ className: 'prevNextWrapper' },
|
|
8831
8847
|
PrevNextCards(true, index)
|
|
8832
8848
|
)
|
|
8833
8849
|
),
|
|
8834
|
-
|
|
8850
|
+
React.createElement('hr', { className: 'article-seperater' })
|
|
8835
8851
|
)
|
|
8836
8852
|
),
|
|
8837
|
-
|
|
8853
|
+
React.createElement(
|
|
8838
8854
|
'div',
|
|
8839
8855
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8840
|
-
|
|
8856
|
+
main_40 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8841
8857
|
if (innerIndex === 0) {
|
|
8842
|
-
return
|
|
8858
|
+
return React.createElement(
|
|
8843
8859
|
'div',
|
|
8844
8860
|
{
|
|
8845
8861
|
key: 'addid-' + (index + 2),
|
|
@@ -8862,7 +8878,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8862
8878
|
)
|
|
8863
8879
|
);
|
|
8864
8880
|
}),
|
|
8865
|
-
|
|
8881
|
+
React.createElement(
|
|
8866
8882
|
'style',
|
|
8867
8883
|
{ jsx: 'true' },
|
|
8868
8884
|
'\n .scrollToTopArrow {\n position: fixed;\n top: 150px;\n display: flex;\n justify-content: center;\n width: ' + contentWidth + 'px;\n opacity: 1;\n z-index: 99999999999;\n visibility: hidden;\n }\n .scrollToTopArrow > svg {\n min-height: 50px;\n min-width: 50px;\n max-height: 50px;\n max-width: 50px;\n }\n .block-content > div p {\n padding: 0;\n }\n\n h2.article-title {\n padding: 0;\n font-weight: 500;\n }\n h4.article-title {\n padding: 0;\n font-weight: 500;\n }\n h4.prevNext-title {\n padding: 0;\n font-size: 1rem;\n font-weight: 500;\n }\n .article-wrapper {\n border: 1px solid #252525;\n border-radius: 5px;\n padding: 1rem 1rem 0 1rem;\n margin-bottom: 1rem;\n }\n .prevNext-reading {\n margin-top: -10px;\n width: 75%;\n text-align: center;\n background: white;\n border: 1px solid #252525;\n align-self: center;\n display: none;\n }\n .showReading {\n display: block;\n }\n .author-details-wrapper a {\n color: #252525;\n }\n .objective-prevNext-Wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n .objective-title {\n padding: 0 !important;\n }\n .prevNext-thumbnail {\n display: flex;\n flex-direction: column;\n min-width: 225px;\n max-width: 225px;\n overflow: hidden;\n align-items: center;\n object-fit: contain;\n border-radius: 15px;\n }\n .prevNext-thumbnail img {\n height: 125px;\n object-fit: contain;\n border-radius: 15px;\n }\n .prevNext-summary {\n text-align: center;\n }\n .prevNext-publishDate {\n font-size: 0.75rem;\n margin-top: 0.5rem;\n }\n .prevNext-title {\n padding: 0 !important;\n line-height: 1 !important;\n font-weight: 500;\n }\n .prevNextWrapper {\n display: flex;\n flex-direction: row;\n justify-content: space-evenly;\n flex-wrap: wrap;\n }\n .prevNextWrapper a {\n display: flex;\n flex-direction: column;\n color: #252525;\n align-items: center;\n }\n .prevNextCards {\n max-width: 250px;\n margin-bottom: 1rem;\n }\n @media only screen and (max-width: 568px) {\n .prevNextWrapper {\n flex-direction: column;\n align-items: center;\n }\n .prevNextCards {\n margin-bottom: 2rem;\n }\n }\n @media only screen and (max-width: 568px) {\n }\n '
|
|
@@ -8892,11 +8908,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8892
8908
|
};
|
|
8893
8909
|
}, [handleClickOutside]);
|
|
8894
8910
|
|
|
8895
|
-
return
|
|
8911
|
+
return React.createElement(
|
|
8896
8912
|
'div',
|
|
8897
8913
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8898
|
-
|
|
8899
|
-
|
|
8914
|
+
React.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8915
|
+
React.createElement(
|
|
8900
8916
|
'style',
|
|
8901
8917
|
{ jsx: 'true' },
|
|
8902
8918
|
'\n /*Eliminates padding, centers the thumbnail */\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
|
|
@@ -8990,13 +9006,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
8990
9006
|
|
|
8991
9007
|
var FigureCaption = useCallback(function () {
|
|
8992
9008
|
if (imgcaption && imgcaption.length > 0) {
|
|
8993
|
-
return
|
|
9009
|
+
return React.createElement(
|
|
8994
9010
|
'div',
|
|
8995
9011
|
{ className: 'figure-caption' },
|
|
8996
|
-
|
|
9012
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
8997
9013
|
);
|
|
8998
9014
|
} else if (caption) {
|
|
8999
|
-
return
|
|
9015
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9000
9016
|
} else return null;
|
|
9001
9017
|
}, [caption, imgcaption]);
|
|
9002
9018
|
|
|
@@ -9008,21 +9024,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9008
9024
|
margin: figureMargin
|
|
9009
9025
|
};
|
|
9010
9026
|
|
|
9011
|
-
return
|
|
9012
|
-
|
|
9027
|
+
return React.createElement(
|
|
9028
|
+
React.Fragment,
|
|
9013
9029
|
null,
|
|
9014
|
-
|
|
9015
|
-
Figure$
|
|
9030
|
+
React.createElement(
|
|
9031
|
+
Figure$2,
|
|
9016
9032
|
{ className: '' + class_name, style: figureStyle },
|
|
9017
|
-
link ?
|
|
9033
|
+
link ? React.createElement(
|
|
9018
9034
|
'a',
|
|
9019
9035
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9020
|
-
|
|
9021
|
-
|
|
9022
|
-
) :
|
|
9023
|
-
|
|
9036
|
+
React.createElement(Figure$2.Image, { style: { maxWidth: '100%' }, className: 'figure-image', src: urlFor$3(node, client).url(), alt: alt && alt }),
|
|
9037
|
+
React.createElement(FigureCaption, null)
|
|
9038
|
+
) : React.createElement(
|
|
9039
|
+
React.Fragment,
|
|
9024
9040
|
null,
|
|
9025
|
-
|
|
9041
|
+
React.createElement(Figure$2.Image, {
|
|
9026
9042
|
style: { maxWidth: '100%', cursor: 'pointer', width: 'auto' },
|
|
9027
9043
|
className: 'figure-image',
|
|
9028
9044
|
src: urlFor$3(node, client).url(),
|
|
@@ -9032,9 +9048,9 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9032
9048
|
setShowLightbox(true);
|
|
9033
9049
|
}
|
|
9034
9050
|
}),
|
|
9035
|
-
|
|
9051
|
+
React.createElement(FigureCaption, null)
|
|
9036
9052
|
),
|
|
9037
|
-
|
|
9053
|
+
React.createElement(LightBox, {
|
|
9038
9054
|
showLightbox: showLightbox,
|
|
9039
9055
|
lightboxImgSrc: lightboxImgSrc,
|
|
9040
9056
|
closeLightbox: function closeLightbox() {
|
|
@@ -9043,7 +9059,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9043
9059
|
}
|
|
9044
9060
|
})
|
|
9045
9061
|
),
|
|
9046
|
-
|
|
9062
|
+
React.createElement(
|
|
9047
9063
|
'style',
|
|
9048
9064
|
{ jsx: 'true' },
|
|
9049
9065
|
'\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 '
|
|
@@ -9051,7 +9067,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9051
9067
|
);
|
|
9052
9068
|
};
|
|
9053
9069
|
|
|
9054
|
-
var Figure =
|
|
9070
|
+
var Figure = React.memo(FigureComponent, compareProps);
|
|
9055
9071
|
|
|
9056
9072
|
var urlFor$4 = function urlFor(source, client) {
|
|
9057
9073
|
var builder = imageUrlBuilder(client);
|
|
@@ -9097,47 +9113,47 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9097
9113
|
imgcaption = _ref.imgcaption;
|
|
9098
9114
|
|
|
9099
9115
|
if (imgcaption && imgcaption.length > 0) {
|
|
9100
|
-
return
|
|
9116
|
+
return React.createElement(
|
|
9101
9117
|
'div',
|
|
9102
9118
|
{ className: 'multi-figure-caption' },
|
|
9103
|
-
|
|
9119
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9104
9120
|
);
|
|
9105
9121
|
} else if (caption) {
|
|
9106
|
-
return
|
|
9122
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9107
9123
|
} else return null;
|
|
9108
9124
|
};
|
|
9109
9125
|
|
|
9110
9126
|
if (images && images.length > 0) {
|
|
9111
|
-
return
|
|
9127
|
+
return React.createElement(
|
|
9112
9128
|
'div',
|
|
9113
9129
|
{ className: 'multi-figure-container' },
|
|
9114
|
-
|
|
9130
|
+
React.createElement(
|
|
9115
9131
|
Row$1,
|
|
9116
9132
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9117
9133
|
images.map(function (image, index) {
|
|
9118
|
-
return
|
|
9134
|
+
return React.createElement(
|
|
9119
9135
|
Col$1,
|
|
9120
9136
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9121
|
-
image.link ?
|
|
9137
|
+
image.link ? React.createElement(
|
|
9122
9138
|
'a',
|
|
9123
|
-
_extends
|
|
9124
|
-
|
|
9139
|
+
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9140
|
+
React.createElement(
|
|
9125
9141
|
'div',
|
|
9126
9142
|
{ className: 'multi-figure-image-container' },
|
|
9127
|
-
|
|
9143
|
+
React.createElement(
|
|
9128
9144
|
LazyLoad,
|
|
9129
9145
|
{ once: true },
|
|
9130
|
-
|
|
9146
|
+
React.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor$4(image.asset, client).url(), alt: image.alt })
|
|
9131
9147
|
),
|
|
9132
|
-
|
|
9148
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9133
9149
|
)
|
|
9134
|
-
) :
|
|
9150
|
+
) : React.createElement(
|
|
9135
9151
|
'div',
|
|
9136
9152
|
{ className: 'multi-figure-image-container' },
|
|
9137
|
-
|
|
9153
|
+
React.createElement(
|
|
9138
9154
|
LazyLoad,
|
|
9139
9155
|
{ once: true },
|
|
9140
|
-
|
|
9156
|
+
React.createElement('img', {
|
|
9141
9157
|
'images-count': images.length,
|
|
9142
9158
|
className: 'multi-figure-image',
|
|
9143
9159
|
src: urlFor$4(image.asset, client).url(),
|
|
@@ -9148,17 +9164,17 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9148
9164
|
}
|
|
9149
9165
|
})
|
|
9150
9166
|
),
|
|
9151
|
-
|
|
9167
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9152
9168
|
)
|
|
9153
9169
|
);
|
|
9154
9170
|
})
|
|
9155
9171
|
),
|
|
9156
|
-
|
|
9172
|
+
React.createElement(
|
|
9157
9173
|
'div',
|
|
9158
9174
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9159
|
-
|
|
9175
|
+
React.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9160
9176
|
),
|
|
9161
|
-
|
|
9177
|
+
React.createElement(
|
|
9162
9178
|
'style',
|
|
9163
9179
|
{ jsx: 'true' },
|
|
9164
9180
|
'\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 '
|
|
@@ -9180,10 +9196,10 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9180
9196
|
|
|
9181
9197
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
9182
9198
|
|
|
9183
|
-
return
|
|
9199
|
+
return React.createElement(
|
|
9184
9200
|
'div',
|
|
9185
9201
|
{ id: elementId },
|
|
9186
|
-
|
|
9202
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
9187
9203
|
);
|
|
9188
9204
|
};
|
|
9189
9205
|
|
|
@@ -9258,17 +9274,17 @@ var getSerializers = function getSerializers() {
|
|
|
9258
9274
|
var node = _ref.node;
|
|
9259
9275
|
var url = node.url;
|
|
9260
9276
|
|
|
9261
|
-
return
|
|
9277
|
+
return React.createElement(YouTubePlayer, { url: url });
|
|
9262
9278
|
},
|
|
9263
9279
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9264
9280
|
var node = _ref2.node;
|
|
9265
9281
|
|
|
9266
|
-
return
|
|
9282
|
+
return React.createElement(YouTubeGallery, { nodes: node, article: article, meta: meta, authorPrefix: authorPrefix, authorImgHeight: authorImgHeight, accountIDs: videoAccountIDs || {}, client: client, getSerializers: getSerializers(client) });
|
|
9267
9283
|
},
|
|
9268
9284
|
articleSeries: function articleSeries(_ref3) {
|
|
9269
9285
|
var node = _ref3.node;
|
|
9270
9286
|
|
|
9271
|
-
return
|
|
9287
|
+
return React.createElement(ArticleSeries, {
|
|
9272
9288
|
nodes: node,
|
|
9273
9289
|
accountIDs: videoAccountIDs || {},
|
|
9274
9290
|
pageview: pageview,
|
|
@@ -9281,61 +9297,61 @@ var getSerializers = function getSerializers() {
|
|
|
9281
9297
|
figure: function figure(_ref4) {
|
|
9282
9298
|
var node = _ref4.node;
|
|
9283
9299
|
|
|
9284
|
-
return
|
|
9300
|
+
return React.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9285
9301
|
},
|
|
9286
9302
|
multifigure: function multifigure(_ref5) {
|
|
9287
9303
|
var node = _ref5.node;
|
|
9288
9304
|
|
|
9289
|
-
return
|
|
9305
|
+
return React.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9290
9306
|
},
|
|
9291
9307
|
slideshow: function slideshow(_ref6) {
|
|
9292
9308
|
var node = _ref6.node;
|
|
9293
9309
|
var slides = node.slides;
|
|
9294
9310
|
|
|
9295
|
-
return
|
|
9311
|
+
return React.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9296
9312
|
},
|
|
9297
9313
|
sidebar: function sidebar(_ref7) {
|
|
9298
9314
|
var node = _ref7.node;
|
|
9299
9315
|
var caption = node.caption,
|
|
9300
9316
|
content = node.content;
|
|
9301
9317
|
|
|
9302
|
-
return
|
|
9318
|
+
return React.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9303
9319
|
},
|
|
9304
9320
|
datatable: function datatable(_ref8) {
|
|
9305
9321
|
var node = _ref8.node;
|
|
9306
9322
|
var table = node.table;
|
|
9307
9323
|
|
|
9308
|
-
return
|
|
9324
|
+
return React.createElement(TableShow, { rows: table.rows });
|
|
9309
9325
|
},
|
|
9310
9326
|
media: function media(_ref9) {
|
|
9311
9327
|
var node = _ref9.node;
|
|
9312
9328
|
|
|
9313
|
-
return
|
|
9329
|
+
return React.createElement(Media, { node: node, client: client });
|
|
9314
9330
|
},
|
|
9315
9331
|
iframe: function iframe(_ref10) {
|
|
9316
9332
|
var node = _ref10.node;
|
|
9317
9333
|
|
|
9318
|
-
return
|
|
9334
|
+
return React.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9319
9335
|
},
|
|
9320
9336
|
video: function video(_ref11) {
|
|
9321
9337
|
var node = _ref11.node;
|
|
9322
9338
|
|
|
9323
|
-
return
|
|
9339
|
+
return React.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9324
9340
|
},
|
|
9325
9341
|
audio: function audio(_ref12) {
|
|
9326
9342
|
var node = _ref12.node;
|
|
9327
9343
|
|
|
9328
|
-
return
|
|
9344
|
+
return React.createElement(Audio, { node: node });
|
|
9329
9345
|
},
|
|
9330
9346
|
poll: function poll(_ref13) {
|
|
9331
9347
|
var node = _ref13.node;
|
|
9332
9348
|
|
|
9333
|
-
return
|
|
9349
|
+
return React.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9334
9350
|
},
|
|
9335
9351
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9336
9352
|
var node = _ref14.node;
|
|
9337
9353
|
|
|
9338
|
-
return
|
|
9354
|
+
return React.createElement(Poll$1, {
|
|
9339
9355
|
node: node,
|
|
9340
9356
|
client: client,
|
|
9341
9357
|
pageview: pageview,
|
|
@@ -9349,35 +9365,35 @@ var getSerializers = function getSerializers() {
|
|
|
9349
9365
|
var node = _ref15.node;
|
|
9350
9366
|
var quizzes = node.quizzes;
|
|
9351
9367
|
|
|
9352
|
-
return
|
|
9368
|
+
return React.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9353
9369
|
},
|
|
9354
9370
|
leads: function leads(_ref16) {
|
|
9355
9371
|
var node = _ref16.node;
|
|
9356
9372
|
var leadID = node.leadID;
|
|
9357
9373
|
|
|
9358
9374
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9359
|
-
return
|
|
9375
|
+
return React.createElement(Leads, { url: url });
|
|
9360
9376
|
},
|
|
9361
9377
|
slideshows: function slideshows(_ref17) {
|
|
9362
9378
|
var node = _ref17.node;
|
|
9363
9379
|
|
|
9364
|
-
return
|
|
9380
|
+
return React.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9365
9381
|
},
|
|
9366
9382
|
nativeAd: function nativeAd(_ref18) {
|
|
9367
9383
|
var node = _ref18.node;
|
|
9368
9384
|
|
|
9369
|
-
return
|
|
9385
|
+
return React.createElement(NativeAd, { node: node });
|
|
9370
9386
|
},
|
|
9371
9387
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
9372
9388
|
var node = _ref19.node;
|
|
9373
9389
|
|
|
9374
|
-
return
|
|
9390
|
+
return React.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9375
9391
|
},
|
|
9376
9392
|
hrtag: function hrtag() {
|
|
9377
|
-
return
|
|
9393
|
+
return React.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9378
9394
|
},
|
|
9379
9395
|
brtag: function brtag() {
|
|
9380
|
-
return
|
|
9396
|
+
return React.createElement('br', { className: 'line-break' });
|
|
9381
9397
|
},
|
|
9382
9398
|
formstack: function formstack(_ref20) {
|
|
9383
9399
|
var node = _ref20.node;
|
|
@@ -9385,24 +9401,24 @@ var getSerializers = function getSerializers() {
|
|
|
9385
9401
|
Caption = node.Caption,
|
|
9386
9402
|
needSegmentSupport = node.needSegmentSupport;
|
|
9387
9403
|
|
|
9388
|
-
return
|
|
9404
|
+
return React.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
9389
9405
|
},
|
|
9390
9406
|
multimedia: function multimedia(_ref21) {
|
|
9391
9407
|
var node = _ref21.node;
|
|
9392
9408
|
|
|
9393
|
-
return
|
|
9409
|
+
return React.createElement(MultiMedia, { node: node, client: client });
|
|
9394
9410
|
}
|
|
9395
9411
|
},
|
|
9396
9412
|
marks: {
|
|
9397
9413
|
superscript: function superscript(props) {
|
|
9398
|
-
return
|
|
9414
|
+
return React.createElement(
|
|
9399
9415
|
'sup',
|
|
9400
9416
|
null,
|
|
9401
9417
|
props.children
|
|
9402
9418
|
);
|
|
9403
9419
|
},
|
|
9404
9420
|
subscript: function subscript(props) {
|
|
9405
|
-
return
|
|
9421
|
+
return React.createElement(
|
|
9406
9422
|
'sub',
|
|
9407
9423
|
null,
|
|
9408
9424
|
props.children
|
|
@@ -9418,7 +9434,7 @@ var getSerializers = function getSerializers() {
|
|
|
9418
9434
|
if (href && href.charAt(0) === '#') {
|
|
9419
9435
|
var elementId = href.slice(1);
|
|
9420
9436
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9421
|
-
return
|
|
9437
|
+
return React.createElement(
|
|
9422
9438
|
'a',
|
|
9423
9439
|
{ onClick: function onClick() {
|
|
9424
9440
|
return ScrollToElement(elementId);
|
|
@@ -9428,7 +9444,7 @@ var getSerializers = function getSerializers() {
|
|
|
9428
9444
|
}
|
|
9429
9445
|
|
|
9430
9446
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9431
|
-
return
|
|
9447
|
+
return React.createElement(
|
|
9432
9448
|
'a',
|
|
9433
9449
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
9434
9450
|
children
|
|
@@ -9436,7 +9452,7 @@ var getSerializers = function getSerializers() {
|
|
|
9436
9452
|
},
|
|
9437
9453
|
alignleft: function alignleft(_ref22) {
|
|
9438
9454
|
var children = _ref22.children;
|
|
9439
|
-
return
|
|
9455
|
+
return React.createElement(
|
|
9440
9456
|
'div',
|
|
9441
9457
|
{ style: { textAlign: 'left' } },
|
|
9442
9458
|
children
|
|
@@ -9444,7 +9460,7 @@ var getSerializers = function getSerializers() {
|
|
|
9444
9460
|
},
|
|
9445
9461
|
alignright: function alignright(_ref23) {
|
|
9446
9462
|
var children = _ref23.children;
|
|
9447
|
-
return
|
|
9463
|
+
return React.createElement(
|
|
9448
9464
|
'div',
|
|
9449
9465
|
{ style: { textAlign: 'right' } },
|
|
9450
9466
|
children
|
|
@@ -9452,7 +9468,7 @@ var getSerializers = function getSerializers() {
|
|
|
9452
9468
|
},
|
|
9453
9469
|
aligncenter: function aligncenter(_ref24) {
|
|
9454
9470
|
var children = _ref24.children;
|
|
9455
|
-
return
|
|
9471
|
+
return React.createElement(
|
|
9456
9472
|
'div',
|
|
9457
9473
|
{ style: { textAlign: 'center' } },
|
|
9458
9474
|
children
|
|
@@ -9460,7 +9476,7 @@ var getSerializers = function getSerializers() {
|
|
|
9460
9476
|
},
|
|
9461
9477
|
alignjustify: function alignjustify(_ref25) {
|
|
9462
9478
|
var children = _ref25.children;
|
|
9463
|
-
return
|
|
9479
|
+
return React.createElement(
|
|
9464
9480
|
'div',
|
|
9465
9481
|
{ style: { textAlign: 'justify' } },
|
|
9466
9482
|
children
|
|
@@ -9470,7 +9486,7 @@ var getSerializers = function getSerializers() {
|
|
|
9470
9486
|
var children = props.children,
|
|
9471
9487
|
color = props.mark.color;
|
|
9472
9488
|
|
|
9473
|
-
return
|
|
9489
|
+
return React.createElement(
|
|
9474
9490
|
'span',
|
|
9475
9491
|
{ style: { color: color ? color.hex : null } },
|
|
9476
9492
|
children
|