@mjhls/mjh-framework 1.0.775-beta.0 → 1.0.775
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-89761278.js → ADInfeed-d1eceaf2.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-853ddc3d.js → ADlgInfeed-24c693d8.js} +11 -10
- package/dist/cjs/AccordionPanel.js +31 -29
- package/dist/cjs/AdSlot.js +33 -32
- 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 +57 -56
- package/dist/cjs/ArticleSeriesLandingPage.js +39 -38
- package/dist/cjs/ArticleSeriesListing.js +61 -60
- package/dist/cjs/Auth.js +820 -334
- package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-5fa89df5.js} +14 -13
- package/dist/cjs/Beam.js +9 -9
- package/dist/cjs/{BlockContent-091a991f.js → BlockContent-eca358e4.js} +25 -24
- package/dist/cjs/Breadcrumbs.js +29 -27
- package/dist/cjs/CMEDeck.js +83 -83
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +36 -33
- 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 +91 -87
- package/dist/cjs/{Dfp-b807d8fa.js → Dfp-a17e00fa.js} +32 -31
- package/dist/cjs/EventsDeck.js +138 -131
- package/dist/cjs/ExternalResources.js +79 -78
- package/dist/cjs/Feature.js +27 -25
- package/dist/cjs/ForbesHero.js +41 -40
- package/dist/cjs/GridContent.js +182 -178
- 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 +71 -70
- 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 +41 -39
- 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 +135 -127
- 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 +80 -76
- 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 +37 -37
- package/dist/cjs/{SeriesSlider-f662f1f5.js → SeriesSlider-193a2958.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 +54 -53
- package/dist/cjs/TemplateNormal.js +74 -73
- 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 +76 -72
- 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 +78 -77
- package/dist/cjs/View.js +254 -251
- 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 +138 -76
- package/dist/cjs/getRootDocGroup.js +7 -7
- package/dist/cjs/getSerializers.js +44 -44
- package/dist/cjs/{getTargeting-9af0ef69.js → getTargeting-497b581d.js} +3 -3
- package/dist/cjs/getTargeting.js +7 -7
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-8bf6c863.js → index-0e4427c8.js} +12 -11
- package/dist/cjs/{index-3294d3bc.js → index-4d74ffd6.js} +40 -41
- package/dist/cjs/{index-87c74c59.js → index-654bd07a.js} +927 -904
- package/dist/cjs/{index-da796b8c.js → index-80f57cff.js} +17 -15
- package/dist/cjs/{index-be0c82be.js → index-d48b231c.js} +31 -25
- package/dist/cjs/{index.es-9110add6.js → index.es-f3e47207.js} +31 -12
- package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
- package/dist/cjs/{index.esm-66ffa47a.js → index.esm-3b9b8952.js} +4 -9
- package/dist/cjs/{index.esm-4d410430.js → index.esm-8123cf40.js} +20 -20
- package/dist/cjs/{index.esm-90433435.js → index.esm-974f47d9.js} +6 -15
- package/dist/cjs/index.js +164 -161
- 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-1e0d374f.js → ADInfeed-c12cd1ce.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-c089deab.js → ADlgInfeed-246a8787.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 +53 -53
- package/dist/esm/ArticleSeriesLandingPage.js +35 -35
- package/dist/esm/ArticleSeriesListing.js +55 -55
- package/dist/esm/Auth.js +799 -317
- package/dist/esm/{AuthorComponent-34b16174.js → AuthorComponent-c7ff069f.js} +11 -11
- package/dist/esm/Beam.js +9 -9
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-d8cd739c.js} +4 -4
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/CMEDeck.js +79 -79
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +27 -27
- 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 +65 -65
- package/dist/esm/{Dfp-ebc4b22f.js → Dfp-988dbcaa.js} +21 -21
- package/dist/esm/EventsDeck.js +84 -84
- package/dist/esm/ExternalResources.js +72 -72
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +34 -34
- package/dist/esm/GridContent.js +140 -140
- 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 +67 -67
- 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 +32 -32
- 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 +100 -100
- 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 +51 -51
- 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 +31 -31
- package/dist/esm/{SeriesSlider-9245785f.js → SeriesSlider-6a1081ff.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 +48 -48
- package/dist/esm/TemplateNormal.js +67 -67
- 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 +62 -62
- 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 +71 -71
- package/dist/esm/View.js +234 -235
- 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 +133 -71
- package/dist/esm/getRootDocGroup.js +7 -7
- package/dist/esm/getSerializers.js +44 -44
- package/dist/esm/{getTargeting-7211f12c.js → getTargeting-2d402d66.js} +2 -2
- package/dist/esm/getTargeting.js +7 -7
- package/dist/esm/{index-73819142.js → index-3f5c03b2.js} +31 -25
- package/dist/esm/{index-5f9f807a.js → index-752d1dae.js} +10 -10
- package/dist/esm/{index-a9e53f80.js → index-888f9253.js} +6 -6
- package/dist/esm/{index-b07fdf8a.js → index-928f03b5.js} +862 -846
- package/dist/esm/{index-ef6d5dcf.js → index-ccb770c7.js} +40 -41
- 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 +130 -130
- 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
|
|
|
@@ -2305,10 +2275,10 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2305
2275
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
|
|
2306
2276
|
};
|
|
2307
2277
|
|
|
2308
|
-
return
|
|
2278
|
+
return React.createElement(
|
|
2309
2279
|
'div',
|
|
2310
2280
|
null,
|
|
2311
|
-
vidLoaded &&
|
|
2281
|
+
vidLoaded && React.createElement(
|
|
2312
2282
|
'video',
|
|
2313
2283
|
{
|
|
2314
2284
|
poster: thumbnail || '',
|
|
@@ -2326,7 +2296,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2326
2296
|
onPlay: function onPlay(e) {
|
|
2327
2297
|
return handleOnPlay(e);
|
|
2328
2298
|
} },
|
|
2329
|
-
|
|
2299
|
+
React.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2330
2300
|
'Your browser does not support the video tag.'
|
|
2331
2301
|
)
|
|
2332
2302
|
);
|
|
@@ -2363,7 +2333,7 @@ var Video = function Video(_ref) {
|
|
|
2363
2333
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2364
2334
|
//console.log('success:', success.ref)
|
|
2365
2335
|
var player = success.ref;
|
|
2366
|
-
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2336
|
+
if (_typeof$1(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2367
2337
|
player.ima3.settings.debug = true;
|
|
2368
2338
|
if (targeting.content_placement && targeting.document_url) {
|
|
2369
2339
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2461,53 +2431,53 @@ var Video = function Video(_ref) {
|
|
|
2461
2431
|
|
|
2462
2432
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2463
2433
|
if (videoID) {
|
|
2464
|
-
return
|
|
2434
|
+
return React.createElement(
|
|
2465
2435
|
'div',
|
|
2466
2436
|
null,
|
|
2467
|
-
|
|
2437
|
+
React.createElement(ReactPlayerLoader, {
|
|
2468
2438
|
onSuccess: onVideoSuccess,
|
|
2469
2439
|
accountId: accountIDs.brightcove.accountId,
|
|
2470
2440
|
videoId: videoID,
|
|
2471
2441
|
playerId: accountIDs.brightcove.playerId,
|
|
2472
2442
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2473
2443
|
}),
|
|
2474
|
-
|
|
2444
|
+
React.createElement(
|
|
2475
2445
|
'style',
|
|
2476
2446
|
{ jsx: 'true' },
|
|
2477
2447
|
'\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 '
|
|
2478
2448
|
)
|
|
2479
2449
|
);
|
|
2480
2450
|
} else if (playlistID) {
|
|
2481
|
-
return
|
|
2451
|
+
return React.createElement(
|
|
2482
2452
|
'div',
|
|
2483
2453
|
null,
|
|
2484
|
-
|
|
2454
|
+
React.createElement(ReactPlayerLoader, {
|
|
2485
2455
|
accountId: accountIDs.brightcove.accountId,
|
|
2486
2456
|
playlistId: playlistID,
|
|
2487
2457
|
playerId: accountIDs.brightcove.playerId,
|
|
2488
2458
|
onSuccess: onVideoSuccess,
|
|
2489
2459
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2490
2460
|
}),
|
|
2491
|
-
|
|
2461
|
+
React.createElement(
|
|
2492
2462
|
'style',
|
|
2493
2463
|
{ jsx: 'true' },
|
|
2494
2464
|
'\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 '
|
|
2495
2465
|
)
|
|
2496
2466
|
);
|
|
2497
2467
|
} else if (experienceID) {
|
|
2498
|
-
return
|
|
2468
|
+
return React.createElement(
|
|
2499
2469
|
'div',
|
|
2500
2470
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2501
|
-
videoLoaded &&
|
|
2471
|
+
videoLoaded && React.createElement('div', { 'data-experience': experienceID })
|
|
2502
2472
|
);
|
|
2503
2473
|
}
|
|
2504
2474
|
return null;
|
|
2505
2475
|
}
|
|
2506
2476
|
if (source === 'mp4') {
|
|
2507
|
-
return
|
|
2477
|
+
return React.createElement(
|
|
2508
2478
|
'div',
|
|
2509
2479
|
null,
|
|
2510
|
-
|
|
2480
|
+
React.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2511
2481
|
);
|
|
2512
2482
|
}
|
|
2513
2483
|
|
|
@@ -2718,9 +2688,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2718
2688
|
});
|
|
2719
2689
|
|
|
2720
2690
|
unwrapExports(props);
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2691
|
+
props.DEPRECATED_CONFIG_PROPS;
|
|
2692
|
+
props.defaultProps;
|
|
2693
|
+
props.propTypes;
|
|
2724
2694
|
|
|
2725
2695
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2726
2696
|
return isNonNullObject(value)
|
|
@@ -2885,11 +2855,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2885
2855
|
|
|
2886
2856
|
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; }
|
|
2887
2857
|
|
|
2888
|
-
function
|
|
2858
|
+
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; } } }; }
|
|
2859
|
+
|
|
2860
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2889
2861
|
|
|
2890
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2862
|
+
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."); }
|
|
2891
2863
|
|
|
2892
|
-
function
|
|
2864
|
+
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); }
|
|
2865
|
+
|
|
2866
|
+
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; }
|
|
2867
|
+
|
|
2868
|
+
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; }
|
|
2893
2869
|
|
|
2894
2870
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2895
2871
|
|
|
@@ -3019,12 +2995,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
3019
2995
|
|
|
3020
2996
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3021
2997
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3022
|
-
|
|
3023
|
-
var
|
|
3024
|
-
|
|
2998
|
+
|
|
2999
|
+
var _iterator = _createForOfIteratorHelper(props.DEPRECATED_CONFIG_PROPS),
|
|
3000
|
+
_step;
|
|
3025
3001
|
|
|
3026
3002
|
try {
|
|
3027
|
-
for (
|
|
3003
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3028
3004
|
var p = _step.value;
|
|
3029
3005
|
|
|
3030
3006
|
if (props$1[p]) {
|
|
@@ -3039,18 +3015,9 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3039
3015
|
}
|
|
3040
3016
|
}
|
|
3041
3017
|
} catch (err) {
|
|
3042
|
-
|
|
3043
|
-
_iteratorError = err;
|
|
3018
|
+
_iterator.e(err);
|
|
3044
3019
|
} finally {
|
|
3045
|
-
|
|
3046
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3047
|
-
_iterator["return"]();
|
|
3048
|
-
}
|
|
3049
|
-
} finally {
|
|
3050
|
-
if (_didIteratorError) {
|
|
3051
|
-
throw _iteratorError;
|
|
3052
|
-
}
|
|
3053
|
-
}
|
|
3020
|
+
_iterator.f();
|
|
3054
3021
|
}
|
|
3055
3022
|
|
|
3056
3023
|
return config;
|
|
@@ -3115,7 +3082,7 @@ function isEqual(a, b) {
|
|
|
3115
3082
|
return true;
|
|
3116
3083
|
}
|
|
3117
3084
|
|
|
3118
|
-
if ((0,
|
|
3085
|
+
if ((0, React.isValidElement)(a) && (0, React.isValidElement)(b)) {
|
|
3119
3086
|
return true;
|
|
3120
3087
|
}
|
|
3121
3088
|
|
|
@@ -3158,17 +3125,17 @@ function isMediaStream(url) {
|
|
|
3158
3125
|
});
|
|
3159
3126
|
|
|
3160
3127
|
unwrapExports(utils);
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3128
|
+
utils.parseStartTime;
|
|
3129
|
+
utils.parseEndTime;
|
|
3130
|
+
utils.randomString;
|
|
3131
|
+
utils.queryString;
|
|
3132
|
+
utils.getSDK;
|
|
3133
|
+
utils.getConfig;
|
|
3134
|
+
utils.omit;
|
|
3135
|
+
utils.callPlayer;
|
|
3136
|
+
utils.isObject;
|
|
3137
|
+
utils.isEqual;
|
|
3138
|
+
utils.isMediaStream;
|
|
3172
3139
|
|
|
3173
3140
|
var Player_1 = createCommonjsModule(function (module, exports) {
|
|
3174
3141
|
|
|
@@ -3177,7 +3144,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3177
3144
|
});
|
|
3178
3145
|
exports["default"] = void 0;
|
|
3179
3146
|
|
|
3180
|
-
var _react = _interopRequireWildcard(
|
|
3147
|
+
var _react = _interopRequireWildcard(React);
|
|
3181
3148
|
|
|
3182
3149
|
|
|
3183
3150
|
|
|
@@ -3197,12 +3164,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3197
3164
|
|
|
3198
3165
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3199
3166
|
|
|
3200
|
-
function
|
|
3167
|
+
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); }; }
|
|
3201
3168
|
|
|
3202
|
-
function
|
|
3169
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3203
3170
|
|
|
3204
3171
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3205
3172
|
|
|
3173
|
+
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; } }
|
|
3174
|
+
|
|
3175
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3176
|
+
|
|
3206
3177
|
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); }
|
|
3207
3178
|
|
|
3208
3179
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3211,14 +3182,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3211
3182
|
|
|
3212
3183
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3213
3184
|
|
|
3214
|
-
var Player =
|
|
3215
|
-
/*#__PURE__*/
|
|
3216
|
-
function (_Component) {
|
|
3185
|
+
var Player = /*#__PURE__*/function (_Component) {
|
|
3217
3186
|
_inherits(Player, _Component);
|
|
3218
3187
|
|
|
3219
|
-
|
|
3220
|
-
var _getPrototypeOf2;
|
|
3188
|
+
var _super = _createSuper(Player);
|
|
3221
3189
|
|
|
3190
|
+
function Player() {
|
|
3222
3191
|
var _this;
|
|
3223
3192
|
|
|
3224
3193
|
_classCallCheck(this, Player);
|
|
@@ -3227,7 +3196,7 @@ function (_Component) {
|
|
|
3227
3196
|
_args[_key] = arguments[_key];
|
|
3228
3197
|
}
|
|
3229
3198
|
|
|
3230
|
-
_this =
|
|
3199
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
3231
3200
|
|
|
3232
3201
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3233
3202
|
|
|
@@ -3552,7 +3521,7 @@ function (_Component) {
|
|
|
3552
3521
|
return null;
|
|
3553
3522
|
}
|
|
3554
3523
|
|
|
3555
|
-
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3524
|
+
return /*#__PURE__*/_react["default"].createElement(Player, _extends({}, this.props, {
|
|
3556
3525
|
ref: this.ref,
|
|
3557
3526
|
onReady: this.handleReady,
|
|
3558
3527
|
onPlay: this.handlePlay,
|
|
@@ -3585,7 +3554,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3585
3554
|
});
|
|
3586
3555
|
exports["default"] = createSinglePlayer;
|
|
3587
3556
|
|
|
3588
|
-
var _react = _interopRequireWildcard(
|
|
3557
|
+
var _react = _interopRequireWildcard(React);
|
|
3589
3558
|
|
|
3590
3559
|
|
|
3591
3560
|
|
|
@@ -3613,12 +3582,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3613
3582
|
|
|
3614
3583
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3615
3584
|
|
|
3616
|
-
function
|
|
3585
|
+
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); }; }
|
|
3617
3586
|
|
|
3618
|
-
function
|
|
3587
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3619
3588
|
|
|
3620
3589
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3621
3590
|
|
|
3591
|
+
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; } }
|
|
3592
|
+
|
|
3593
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3594
|
+
|
|
3622
3595
|
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); }
|
|
3623
3596
|
|
|
3624
3597
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3630,14 +3603,12 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3630
3603
|
function createSinglePlayer(activePlayer) {
|
|
3631
3604
|
var _class, _temp;
|
|
3632
3605
|
|
|
3633
|
-
return _temp = _class =
|
|
3634
|
-
/*#__PURE__*/
|
|
3635
|
-
function (_Component) {
|
|
3606
|
+
return _temp = _class = /*#__PURE__*/function (_Component) {
|
|
3636
3607
|
_inherits(SinglePlayer, _Component);
|
|
3637
3608
|
|
|
3638
|
-
|
|
3639
|
-
var _getPrototypeOf2;
|
|
3609
|
+
var _super = _createSuper(SinglePlayer);
|
|
3640
3610
|
|
|
3611
|
+
function SinglePlayer() {
|
|
3641
3612
|
var _this;
|
|
3642
3613
|
|
|
3643
3614
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3646,7 +3617,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3646
3617
|
args[_key] = arguments[_key];
|
|
3647
3618
|
}
|
|
3648
3619
|
|
|
3649
|
-
_this =
|
|
3620
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3650
3621
|
|
|
3651
3622
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3652
3623
|
|
|
@@ -3714,12 +3685,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3714
3685
|
height = _this$props.height,
|
|
3715
3686
|
Wrapper = _this$props.wrapper;
|
|
3716
3687
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3717
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
3688
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
3718
3689
|
style: _objectSpread({}, style, {
|
|
3719
3690
|
width: width,
|
|
3720
3691
|
height: height
|
|
3721
3692
|
})
|
|
3722
|
-
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3693
|
+
}, otherProps), /*#__PURE__*/_react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3723
3694
|
ref: this.ref,
|
|
3724
3695
|
activePlayer: activePlayer,
|
|
3725
3696
|
config: this.config
|
|
@@ -3741,7 +3712,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3741
3712
|
});
|
|
3742
3713
|
exports["default"] = exports.YouTube = void 0;
|
|
3743
3714
|
|
|
3744
|
-
var _react = _interopRequireWildcard(
|
|
3715
|
+
var _react = _interopRequireWildcard(React);
|
|
3745
3716
|
|
|
3746
3717
|
|
|
3747
3718
|
|
|
@@ -3765,23 +3736,31 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3765
3736
|
|
|
3766
3737
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3767
3738
|
|
|
3768
|
-
function
|
|
3739
|
+
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); }; }
|
|
3769
3740
|
|
|
3770
|
-
function
|
|
3741
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3771
3742
|
|
|
3772
3743
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3773
3744
|
|
|
3745
|
+
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; } }
|
|
3746
|
+
|
|
3747
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3748
|
+
|
|
3774
3749
|
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); }
|
|
3775
3750
|
|
|
3776
3751
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3777
3752
|
|
|
3778
3753
|
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; }
|
|
3779
3754
|
|
|
3780
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3755
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3756
|
+
|
|
3757
|
+
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."); }
|
|
3781
3758
|
|
|
3782
|
-
function
|
|
3759
|
+
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); }
|
|
3783
3760
|
|
|
3784
|
-
function
|
|
3761
|
+
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; }
|
|
3762
|
+
|
|
3763
|
+
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; }
|
|
3785
3764
|
|
|
3786
3765
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3787
3766
|
|
|
@@ -3806,14 +3785,12 @@ function parsePlaylist(url) {
|
|
|
3806
3785
|
return {};
|
|
3807
3786
|
}
|
|
3808
3787
|
|
|
3809
|
-
var YouTube =
|
|
3810
|
-
/*#__PURE__*/
|
|
3811
|
-
function (_Component) {
|
|
3788
|
+
var YouTube = /*#__PURE__*/function (_Component) {
|
|
3812
3789
|
_inherits(YouTube, _Component);
|
|
3813
3790
|
|
|
3814
|
-
|
|
3815
|
-
var _getPrototypeOf2;
|
|
3791
|
+
var _super = _createSuper(YouTube);
|
|
3816
3792
|
|
|
3793
|
+
function YouTube() {
|
|
3817
3794
|
var _this;
|
|
3818
3795
|
|
|
3819
3796
|
_classCallCheck(this, YouTube);
|
|
@@ -3822,7 +3799,7 @@ function (_Component) {
|
|
|
3822
3799
|
args[_key] = arguments[_key];
|
|
3823
3800
|
}
|
|
3824
3801
|
|
|
3825
|
-
_this =
|
|
3802
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
3826
3803
|
|
|
3827
3804
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3828
3805
|
|
|
@@ -4010,9 +3987,9 @@ function (_Component) {
|
|
|
4010
3987
|
height: '100%',
|
|
4011
3988
|
display: display
|
|
4012
3989
|
};
|
|
4013
|
-
return _react["default"].createElement("div", {
|
|
3990
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4014
3991
|
style: style
|
|
4015
|
-
}, _react["default"].createElement("div", {
|
|
3992
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
4016
3993
|
ref: this.ref
|
|
4017
3994
|
}));
|
|
4018
3995
|
}
|
|
@@ -4035,7 +4012,7 @@ exports["default"] = _default;
|
|
|
4035
4012
|
});
|
|
4036
4013
|
|
|
4037
4014
|
unwrapExports(YouTube_1);
|
|
4038
|
-
|
|
4015
|
+
YouTube_1.YouTube;
|
|
4039
4016
|
|
|
4040
4017
|
var SoundCloud_1 = createCommonjsModule(function (module, exports) {
|
|
4041
4018
|
|
|
@@ -4044,7 +4021,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4044
4021
|
});
|
|
4045
4022
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4046
4023
|
|
|
4047
|
-
var _react = _interopRequireWildcard(
|
|
4024
|
+
var _react = _interopRequireWildcard(React);
|
|
4048
4025
|
|
|
4049
4026
|
|
|
4050
4027
|
|
|
@@ -4068,12 +4045,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4068
4045
|
|
|
4069
4046
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4070
4047
|
|
|
4071
|
-
function
|
|
4048
|
+
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); }; }
|
|
4072
4049
|
|
|
4073
|
-
function
|
|
4050
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4074
4051
|
|
|
4075
4052
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4076
4053
|
|
|
4054
|
+
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; } }
|
|
4055
|
+
|
|
4056
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4057
|
+
|
|
4077
4058
|
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); }
|
|
4078
4059
|
|
|
4079
4060
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4082,16 +4063,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4082
4063
|
|
|
4083
4064
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4084
4065
|
var SDK_GLOBAL = 'SC';
|
|
4085
|
-
var MATCH_URL = /(soundcloud\.com|snd\.sc)
|
|
4066
|
+
var MATCH_URL = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
|
|
4086
4067
|
|
|
4087
|
-
var SoundCloud =
|
|
4088
|
-
/*#__PURE__*/
|
|
4089
|
-
function (_Component) {
|
|
4068
|
+
var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
4090
4069
|
_inherits(SoundCloud, _Component);
|
|
4091
4070
|
|
|
4092
|
-
|
|
4093
|
-
var _getPrototypeOf2;
|
|
4071
|
+
var _super = _createSuper(SoundCloud);
|
|
4094
4072
|
|
|
4073
|
+
function SoundCloud() {
|
|
4095
4074
|
var _this;
|
|
4096
4075
|
|
|
4097
4076
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4100,7 +4079,7 @@ function (_Component) {
|
|
|
4100
4079
|
args[_key] = arguments[_key];
|
|
4101
4080
|
}
|
|
4102
4081
|
|
|
4103
|
-
_this =
|
|
4082
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4104
4083
|
|
|
4105
4084
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4106
4085
|
|
|
@@ -4221,7 +4200,7 @@ function (_Component) {
|
|
|
4221
4200
|
height: '100%',
|
|
4222
4201
|
display: display
|
|
4223
4202
|
};
|
|
4224
|
-
return _react["default"].createElement("iframe", {
|
|
4203
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4225
4204
|
ref: this.ref,
|
|
4226
4205
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4227
4206
|
style: style,
|
|
@@ -4250,7 +4229,7 @@ exports["default"] = _default;
|
|
|
4250
4229
|
});
|
|
4251
4230
|
|
|
4252
4231
|
unwrapExports(SoundCloud_1);
|
|
4253
|
-
|
|
4232
|
+
SoundCloud_1.SoundCloud;
|
|
4254
4233
|
|
|
4255
4234
|
var Vimeo_1 = createCommonjsModule(function (module, exports) {
|
|
4256
4235
|
|
|
@@ -4259,7 +4238,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4259
4238
|
});
|
|
4260
4239
|
exports["default"] = exports.Vimeo = void 0;
|
|
4261
4240
|
|
|
4262
|
-
var _react = _interopRequireWildcard(
|
|
4241
|
+
var _react = _interopRequireWildcard(React);
|
|
4263
4242
|
|
|
4264
4243
|
|
|
4265
4244
|
|
|
@@ -4283,12 +4262,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4283
4262
|
|
|
4284
4263
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4285
4264
|
|
|
4286
|
-
function
|
|
4265
|
+
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); }; }
|
|
4287
4266
|
|
|
4288
|
-
function
|
|
4267
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4289
4268
|
|
|
4290
4269
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4291
4270
|
|
|
4271
|
+
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; } }
|
|
4272
|
+
|
|
4273
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4274
|
+
|
|
4292
4275
|
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); }
|
|
4293
4276
|
|
|
4294
4277
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4300,14 +4283,12 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4300
4283
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4301
4284
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4302
4285
|
|
|
4303
|
-
var Vimeo =
|
|
4304
|
-
/*#__PURE__*/
|
|
4305
|
-
function (_Component) {
|
|
4286
|
+
var Vimeo = /*#__PURE__*/function (_Component) {
|
|
4306
4287
|
_inherits(Vimeo, _Component);
|
|
4307
4288
|
|
|
4308
|
-
|
|
4309
|
-
var _getPrototypeOf2;
|
|
4289
|
+
var _super = _createSuper(Vimeo);
|
|
4310
4290
|
|
|
4291
|
+
function Vimeo() {
|
|
4311
4292
|
var _this;
|
|
4312
4293
|
|
|
4313
4294
|
_classCallCheck(this, Vimeo);
|
|
@@ -4316,7 +4297,7 @@ function (_Component) {
|
|
|
4316
4297
|
args[_key] = arguments[_key];
|
|
4317
4298
|
}
|
|
4318
4299
|
|
|
4319
|
-
_this =
|
|
4300
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4320
4301
|
|
|
4321
4302
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4322
4303
|
|
|
@@ -4473,7 +4454,7 @@ function (_Component) {
|
|
|
4473
4454
|
overflow: 'hidden',
|
|
4474
4455
|
display: display
|
|
4475
4456
|
};
|
|
4476
|
-
return _react["default"].createElement("div", {
|
|
4457
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4477
4458
|
key: this.props.url,
|
|
4478
4459
|
ref: this.ref,
|
|
4479
4460
|
style: style
|
|
@@ -4504,7 +4485,7 @@ exports["default"] = _default;
|
|
|
4504
4485
|
});
|
|
4505
4486
|
|
|
4506
4487
|
unwrapExports(Vimeo_1);
|
|
4507
|
-
|
|
4488
|
+
Vimeo_1.Vimeo;
|
|
4508
4489
|
|
|
4509
4490
|
var Facebook_1 = createCommonjsModule(function (module, exports) {
|
|
4510
4491
|
|
|
@@ -4513,7 +4494,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4513
4494
|
});
|
|
4514
4495
|
exports["default"] = exports.Facebook = void 0;
|
|
4515
4496
|
|
|
4516
|
-
var _react = _interopRequireWildcard(
|
|
4497
|
+
var _react = _interopRequireWildcard(React);
|
|
4517
4498
|
|
|
4518
4499
|
|
|
4519
4500
|
|
|
@@ -4533,12 +4514,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4533
4514
|
|
|
4534
4515
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4535
4516
|
|
|
4536
|
-
function
|
|
4517
|
+
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); }; }
|
|
4537
4518
|
|
|
4538
|
-
function
|
|
4519
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4539
4520
|
|
|
4540
4521
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4541
4522
|
|
|
4523
|
+
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; } }
|
|
4524
|
+
|
|
4525
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4526
|
+
|
|
4542
4527
|
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); }
|
|
4543
4528
|
|
|
4544
4529
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4551,14 +4536,12 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4551
4536
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4552
4537
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4553
4538
|
|
|
4554
|
-
var Facebook =
|
|
4555
|
-
/*#__PURE__*/
|
|
4556
|
-
function (_Component) {
|
|
4539
|
+
var Facebook = /*#__PURE__*/function (_Component) {
|
|
4557
4540
|
_inherits(Facebook, _Component);
|
|
4558
4541
|
|
|
4559
|
-
|
|
4560
|
-
var _getPrototypeOf2;
|
|
4542
|
+
var _super = _createSuper(Facebook);
|
|
4561
4543
|
|
|
4544
|
+
function Facebook() {
|
|
4562
4545
|
var _this;
|
|
4563
4546
|
|
|
4564
4547
|
_classCallCheck(this, Facebook);
|
|
@@ -4567,7 +4550,7 @@ function (_Component) {
|
|
|
4567
4550
|
args[_key] = arguments[_key];
|
|
4568
4551
|
}
|
|
4569
4552
|
|
|
4570
|
-
_this =
|
|
4553
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4571
4554
|
|
|
4572
4555
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4573
4556
|
|
|
@@ -4683,7 +4666,7 @@ function (_Component) {
|
|
|
4683
4666
|
width: '100%',
|
|
4684
4667
|
height: '100%'
|
|
4685
4668
|
};
|
|
4686
|
-
return _react["default"].createElement("div", {
|
|
4669
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
4687
4670
|
style: style,
|
|
4688
4671
|
id: this.playerID,
|
|
4689
4672
|
className: "fb-video",
|
|
@@ -4714,7 +4697,7 @@ exports["default"] = _default;
|
|
|
4714
4697
|
});
|
|
4715
4698
|
|
|
4716
4699
|
unwrapExports(Facebook_1);
|
|
4717
|
-
|
|
4700
|
+
Facebook_1.Facebook;
|
|
4718
4701
|
|
|
4719
4702
|
var Streamable_1 = createCommonjsModule(function (module, exports) {
|
|
4720
4703
|
|
|
@@ -4723,7 +4706,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4723
4706
|
});
|
|
4724
4707
|
exports["default"] = exports.Streamable = void 0;
|
|
4725
4708
|
|
|
4726
|
-
var _react = _interopRequireWildcard(
|
|
4709
|
+
var _react = _interopRequireWildcard(React);
|
|
4727
4710
|
|
|
4728
4711
|
|
|
4729
4712
|
|
|
@@ -4743,12 +4726,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4743
4726
|
|
|
4744
4727
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4745
4728
|
|
|
4746
|
-
function
|
|
4729
|
+
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); }; }
|
|
4747
4730
|
|
|
4748
|
-
function
|
|
4731
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4749
4732
|
|
|
4750
4733
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4751
4734
|
|
|
4735
|
+
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; } }
|
|
4736
|
+
|
|
4737
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4738
|
+
|
|
4752
4739
|
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); }
|
|
4753
4740
|
|
|
4754
4741
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4759,14 +4746,12 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4759
4746
|
var SDK_GLOBAL = 'playerjs';
|
|
4760
4747
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4761
4748
|
|
|
4762
|
-
var Streamable =
|
|
4763
|
-
/*#__PURE__*/
|
|
4764
|
-
function (_Component) {
|
|
4749
|
+
var Streamable = /*#__PURE__*/function (_Component) {
|
|
4765
4750
|
_inherits(Streamable, _Component);
|
|
4766
4751
|
|
|
4767
|
-
|
|
4768
|
-
var _getPrototypeOf2;
|
|
4752
|
+
var _super = _createSuper(Streamable);
|
|
4769
4753
|
|
|
4754
|
+
function Streamable() {
|
|
4770
4755
|
var _this;
|
|
4771
4756
|
|
|
4772
4757
|
_classCallCheck(this, Streamable);
|
|
@@ -4775,7 +4760,7 @@ function (_Component) {
|
|
|
4775
4760
|
args[_key] = arguments[_key];
|
|
4776
4761
|
}
|
|
4777
4762
|
|
|
4778
|
-
_this =
|
|
4763
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
4779
4764
|
|
|
4780
4765
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4781
4766
|
|
|
@@ -4895,7 +4880,7 @@ function (_Component) {
|
|
|
4895
4880
|
width: '100%',
|
|
4896
4881
|
height: '100%'
|
|
4897
4882
|
};
|
|
4898
|
-
return _react["default"].createElement("iframe", {
|
|
4883
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
4899
4884
|
ref: this.ref,
|
|
4900
4885
|
src: "https://streamable.com/o/".concat(id),
|
|
4901
4886
|
frameBorder: "0",
|
|
@@ -4923,7 +4908,7 @@ exports["default"] = _default;
|
|
|
4923
4908
|
});
|
|
4924
4909
|
|
|
4925
4910
|
unwrapExports(Streamable_1);
|
|
4926
|
-
|
|
4911
|
+
Streamable_1.Streamable;
|
|
4927
4912
|
|
|
4928
4913
|
var Wistia_1 = createCommonjsModule(function (module, exports) {
|
|
4929
4914
|
|
|
@@ -4932,7 +4917,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4932
4917
|
});
|
|
4933
4918
|
exports["default"] = exports.Wistia = void 0;
|
|
4934
4919
|
|
|
4935
|
-
var _react = _interopRequireWildcard(
|
|
4920
|
+
var _react = _interopRequireWildcard(React);
|
|
4936
4921
|
|
|
4937
4922
|
|
|
4938
4923
|
|
|
@@ -4956,12 +4941,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4956
4941
|
|
|
4957
4942
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4958
4943
|
|
|
4959
|
-
function
|
|
4944
|
+
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); }; }
|
|
4960
4945
|
|
|
4961
|
-
function
|
|
4946
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4962
4947
|
|
|
4963
4948
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4964
4949
|
|
|
4950
|
+
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; } }
|
|
4951
|
+
|
|
4952
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4953
|
+
|
|
4965
4954
|
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); }
|
|
4966
4955
|
|
|
4967
4956
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4972,26 +4961,48 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4972
4961
|
var SDK_GLOBAL = 'Wistia';
|
|
4973
4962
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4974
4963
|
|
|
4975
|
-
var Wistia =
|
|
4976
|
-
/*#__PURE__*/
|
|
4977
|
-
function (_Component) {
|
|
4964
|
+
var Wistia = /*#__PURE__*/function (_Component) {
|
|
4978
4965
|
_inherits(Wistia, _Component);
|
|
4979
4966
|
|
|
4980
|
-
|
|
4981
|
-
var _getPrototypeOf2;
|
|
4967
|
+
var _super = _createSuper(Wistia);
|
|
4982
4968
|
|
|
4969
|
+
function Wistia() {
|
|
4983
4970
|
var _this;
|
|
4984
4971
|
|
|
4985
4972
|
_classCallCheck(this, Wistia);
|
|
4986
4973
|
|
|
4987
|
-
for (var _len = arguments.length,
|
|
4988
|
-
|
|
4974
|
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4975
|
+
_args[_key] = arguments[_key];
|
|
4989
4976
|
}
|
|
4990
4977
|
|
|
4991
|
-
_this =
|
|
4978
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
4992
4979
|
|
|
4993
4980
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4994
4981
|
|
|
4982
|
+
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4983
|
+
var _this$props;
|
|
4984
|
+
|
|
4985
|
+
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4986
|
+
});
|
|
4987
|
+
|
|
4988
|
+
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4989
|
+
var _this$props2;
|
|
4990
|
+
|
|
4991
|
+
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4992
|
+
});
|
|
4993
|
+
|
|
4994
|
+
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
4995
|
+
var _this$props3;
|
|
4996
|
+
|
|
4997
|
+
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
4998
|
+
});
|
|
4999
|
+
|
|
5000
|
+
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5001
|
+
var _this$props4;
|
|
5002
|
+
|
|
5003
|
+
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5004
|
+
});
|
|
5005
|
+
|
|
4995
5006
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
4996
5007
|
_this.callPlayer('mute');
|
|
4997
5008
|
});
|
|
@@ -5013,17 +5024,13 @@ function (_Component) {
|
|
|
5013
5024
|
value: function load(url) {
|
|
5014
5025
|
var _this2 = this;
|
|
5015
5026
|
|
|
5016
|
-
var _this$
|
|
5017
|
-
playing = _this$
|
|
5018
|
-
muted = _this$
|
|
5019
|
-
controls = _this$
|
|
5020
|
-
_onReady = _this$
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
onSeek = _this$props.onSeek,
|
|
5024
|
-
onEnded = _this$props.onEnded,
|
|
5025
|
-
config = _this$props.config,
|
|
5026
|
-
onError = _this$props.onError;
|
|
5027
|
+
var _this$props5 = this.props,
|
|
5028
|
+
playing = _this$props5.playing,
|
|
5029
|
+
muted = _this$props5.muted,
|
|
5030
|
+
controls = _this$props5.controls,
|
|
5031
|
+
_onReady = _this$props5.onReady,
|
|
5032
|
+
config = _this$props5.config,
|
|
5033
|
+
onError = _this$props5.onError;
|
|
5027
5034
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5028
5035
|
window._wq = window._wq || [];
|
|
5029
5036
|
|
|
@@ -5040,19 +5047,28 @@ function (_Component) {
|
|
|
5040
5047
|
|
|
5041
5048
|
_this2.unbind();
|
|
5042
5049
|
|
|
5043
|
-
_this2.player.bind('play', onPlay);
|
|
5050
|
+
_this2.player.bind('play', _this2.onPlay);
|
|
5044
5051
|
|
|
5045
|
-
_this2.player.bind('pause', onPause);
|
|
5052
|
+
_this2.player.bind('pause', _this2.onPause);
|
|
5046
5053
|
|
|
5047
|
-
_this2.player.bind('seek', onSeek);
|
|
5054
|
+
_this2.player.bind('seek', _this2.onSeek);
|
|
5048
5055
|
|
|
5049
|
-
_this2.player.bind('end', onEnded);
|
|
5056
|
+
_this2.player.bind('end', _this2.onEnded);
|
|
5050
5057
|
|
|
5051
5058
|
_onReady();
|
|
5052
5059
|
}
|
|
5053
5060
|
});
|
|
5054
5061
|
}, onError);
|
|
5055
5062
|
}
|
|
5063
|
+
}, {
|
|
5064
|
+
key: "unbind",
|
|
5065
|
+
value: function unbind() {
|
|
5066
|
+
this.player.unbind('play', this.onPlay);
|
|
5067
|
+
this.player.unbind('pause', this.onPause);
|
|
5068
|
+
this.player.unbind('seek', this.onSeek);
|
|
5069
|
+
this.player.unbind('end', this.onEnded);
|
|
5070
|
+
} // Proxy methods to prevent listener leaks
|
|
5071
|
+
|
|
5056
5072
|
}, {
|
|
5057
5073
|
key: "play",
|
|
5058
5074
|
value: function play() {
|
|
@@ -5063,19 +5079,6 @@ function (_Component) {
|
|
|
5063
5079
|
value: function pause() {
|
|
5064
5080
|
this.callPlayer('pause');
|
|
5065
5081
|
}
|
|
5066
|
-
}, {
|
|
5067
|
-
key: "unbind",
|
|
5068
|
-
value: function unbind() {
|
|
5069
|
-
var _this$props2 = this.props,
|
|
5070
|
-
onPlay = _this$props2.onPlay,
|
|
5071
|
-
onPause = _this$props2.onPause,
|
|
5072
|
-
onSeek = _this$props2.onSeek,
|
|
5073
|
-
onEnded = _this$props2.onEnded;
|
|
5074
|
-
this.player.unbind('play', onPlay);
|
|
5075
|
-
this.player.unbind('pause', onPause);
|
|
5076
|
-
this.player.unbind('seek', onSeek);
|
|
5077
|
-
this.player.unbind('end', onEnded);
|
|
5078
|
-
}
|
|
5079
5082
|
}, {
|
|
5080
5083
|
key: "stop",
|
|
5081
5084
|
value: function stop() {
|
|
@@ -5121,7 +5124,7 @@ function (_Component) {
|
|
|
5121
5124
|
width: '100%',
|
|
5122
5125
|
height: '100%'
|
|
5123
5126
|
};
|
|
5124
|
-
return _react["default"].createElement("div", {
|
|
5127
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5125
5128
|
key: id,
|
|
5126
5129
|
className: className,
|
|
5127
5130
|
style: style
|
|
@@ -5148,7 +5151,7 @@ exports["default"] = _default;
|
|
|
5148
5151
|
});
|
|
5149
5152
|
|
|
5150
5153
|
unwrapExports(Wistia_1);
|
|
5151
|
-
|
|
5154
|
+
Wistia_1.Wistia;
|
|
5152
5155
|
|
|
5153
5156
|
var Twitch_1 = createCommonjsModule(function (module, exports) {
|
|
5154
5157
|
|
|
@@ -5157,7 +5160,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5157
5160
|
});
|
|
5158
5161
|
exports["default"] = exports.Twitch = void 0;
|
|
5159
5162
|
|
|
5160
|
-
var _react = _interopRequireWildcard(
|
|
5163
|
+
var _react = _interopRequireWildcard(React);
|
|
5161
5164
|
|
|
5162
5165
|
|
|
5163
5166
|
|
|
@@ -5181,12 +5184,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5181
5184
|
|
|
5182
5185
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5183
5186
|
|
|
5184
|
-
function
|
|
5187
|
+
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); }; }
|
|
5185
5188
|
|
|
5186
|
-
function
|
|
5189
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5187
5190
|
|
|
5188
5191
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5189
5192
|
|
|
5193
|
+
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; } }
|
|
5194
|
+
|
|
5195
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5196
|
+
|
|
5190
5197
|
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); }
|
|
5191
5198
|
|
|
5192
5199
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5199,14 +5206,12 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5199
5206
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5200
5207
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5201
5208
|
|
|
5202
|
-
var Twitch =
|
|
5203
|
-
/*#__PURE__*/
|
|
5204
|
-
function (_Component) {
|
|
5209
|
+
var Twitch = /*#__PURE__*/function (_Component) {
|
|
5205
5210
|
_inherits(Twitch, _Component);
|
|
5206
5211
|
|
|
5207
|
-
|
|
5208
|
-
var _getPrototypeOf2;
|
|
5212
|
+
var _super = _createSuper(Twitch);
|
|
5209
5213
|
|
|
5214
|
+
function Twitch() {
|
|
5210
5215
|
var _this;
|
|
5211
5216
|
|
|
5212
5217
|
_classCallCheck(this, Twitch);
|
|
@@ -5215,7 +5220,7 @@ function (_Component) {
|
|
|
5215
5220
|
args[_key] = arguments[_key];
|
|
5216
5221
|
}
|
|
5217
5222
|
|
|
5218
|
-
_this =
|
|
5223
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5219
5224
|
|
|
5220
5225
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5221
5226
|
|
|
@@ -5336,7 +5341,7 @@ function (_Component) {
|
|
|
5336
5341
|
width: '100%',
|
|
5337
5342
|
height: '100%'
|
|
5338
5343
|
};
|
|
5339
|
-
return _react["default"].createElement("div", {
|
|
5344
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5340
5345
|
style: style,
|
|
5341
5346
|
id: this.playerID
|
|
5342
5347
|
});
|
|
@@ -5362,7 +5367,7 @@ exports["default"] = _default;
|
|
|
5362
5367
|
});
|
|
5363
5368
|
|
|
5364
5369
|
unwrapExports(Twitch_1);
|
|
5365
|
-
|
|
5370
|
+
Twitch_1.Twitch;
|
|
5366
5371
|
|
|
5367
5372
|
var DailyMotion_1 = createCommonjsModule(function (module, exports) {
|
|
5368
5373
|
|
|
@@ -5371,7 +5376,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5371
5376
|
});
|
|
5372
5377
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5373
5378
|
|
|
5374
|
-
var _react = _interopRequireWildcard(
|
|
5379
|
+
var _react = _interopRequireWildcard(React);
|
|
5375
5380
|
|
|
5376
5381
|
|
|
5377
5382
|
|
|
@@ -5389,11 +5394,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5389
5394
|
|
|
5390
5395
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
5391
5396
|
|
|
5392
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5397
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5398
|
+
|
|
5399
|
+
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."); }
|
|
5393
5400
|
|
|
5394
|
-
function
|
|
5401
|
+
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); }
|
|
5395
5402
|
|
|
5396
|
-
function
|
|
5403
|
+
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; }
|
|
5404
|
+
|
|
5405
|
+
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; }
|
|
5397
5406
|
|
|
5398
5407
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5399
5408
|
|
|
@@ -5403,12 +5412,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5403
5412
|
|
|
5404
5413
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5405
5414
|
|
|
5406
|
-
function
|
|
5415
|
+
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); }; }
|
|
5407
5416
|
|
|
5408
|
-
function
|
|
5417
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5409
5418
|
|
|
5410
5419
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5411
5420
|
|
|
5421
|
+
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; } }
|
|
5422
|
+
|
|
5423
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5424
|
+
|
|
5412
5425
|
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); }
|
|
5413
5426
|
|
|
5414
5427
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5420,14 +5433,12 @@ var SDK_GLOBAL = 'DM';
|
|
|
5420
5433
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5421
5434
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5422
5435
|
|
|
5423
|
-
var DailyMotion =
|
|
5424
|
-
/*#__PURE__*/
|
|
5425
|
-
function (_Component) {
|
|
5436
|
+
var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
5426
5437
|
_inherits(DailyMotion, _Component);
|
|
5427
5438
|
|
|
5428
|
-
|
|
5429
|
-
var _getPrototypeOf2;
|
|
5439
|
+
var _super = _createSuper(DailyMotion);
|
|
5430
5440
|
|
|
5441
|
+
function DailyMotion() {
|
|
5431
5442
|
var _this;
|
|
5432
5443
|
|
|
5433
5444
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5436,7 +5447,7 @@ function (_Component) {
|
|
|
5436
5447
|
args[_key] = arguments[_key];
|
|
5437
5448
|
}
|
|
5438
5449
|
|
|
5439
|
-
_this =
|
|
5450
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5440
5451
|
|
|
5441
5452
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5442
5453
|
|
|
@@ -5565,9 +5576,9 @@ function (_Component) {
|
|
|
5565
5576
|
height: '100%',
|
|
5566
5577
|
display: display
|
|
5567
5578
|
};
|
|
5568
|
-
return _react["default"].createElement("div", {
|
|
5579
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
5569
5580
|
style: style
|
|
5570
|
-
}, _react["default"].createElement("div", {
|
|
5581
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
5571
5582
|
ref: this.ref
|
|
5572
5583
|
}));
|
|
5573
5584
|
}
|
|
@@ -5592,7 +5603,7 @@ exports["default"] = _default;
|
|
|
5592
5603
|
});
|
|
5593
5604
|
|
|
5594
5605
|
unwrapExports(DailyMotion_1);
|
|
5595
|
-
|
|
5606
|
+
DailyMotion_1.DailyMotion;
|
|
5596
5607
|
|
|
5597
5608
|
var Mixcloud_1 = createCommonjsModule(function (module, exports) {
|
|
5598
5609
|
|
|
@@ -5601,7 +5612,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5601
5612
|
});
|
|
5602
5613
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5603
5614
|
|
|
5604
|
-
var _react = _interopRequireWildcard(
|
|
5615
|
+
var _react = _interopRequireWildcard(React);
|
|
5605
5616
|
|
|
5606
5617
|
|
|
5607
5618
|
|
|
@@ -5625,12 +5636,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5625
5636
|
|
|
5626
5637
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5627
5638
|
|
|
5628
|
-
function
|
|
5639
|
+
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); }; }
|
|
5629
5640
|
|
|
5630
|
-
function
|
|
5641
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5631
5642
|
|
|
5632
5643
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5633
5644
|
|
|
5645
|
+
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; } }
|
|
5646
|
+
|
|
5647
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5648
|
+
|
|
5634
5649
|
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); }
|
|
5635
5650
|
|
|
5636
5651
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5641,14 +5656,12 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5641
5656
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5642
5657
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5643
5658
|
|
|
5644
|
-
var Mixcloud =
|
|
5645
|
-
/*#__PURE__*/
|
|
5646
|
-
function (_Component) {
|
|
5659
|
+
var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
5647
5660
|
_inherits(Mixcloud, _Component);
|
|
5648
5661
|
|
|
5649
|
-
|
|
5650
|
-
var _getPrototypeOf2;
|
|
5662
|
+
var _super = _createSuper(Mixcloud);
|
|
5651
5663
|
|
|
5664
|
+
function Mixcloud() {
|
|
5652
5665
|
var _this;
|
|
5653
5666
|
|
|
5654
5667
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5657,7 +5670,7 @@ function (_Component) {
|
|
|
5657
5670
|
args[_key] = arguments[_key];
|
|
5658
5671
|
}
|
|
5659
5672
|
|
|
5660
|
-
_this =
|
|
5673
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5661
5674
|
|
|
5662
5675
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5663
5676
|
|
|
@@ -5760,7 +5773,7 @@ function (_Component) {
|
|
|
5760
5773
|
})); // We have to give the iframe a key here to prevent a
|
|
5761
5774
|
// weird dialog appearing when loading a new track
|
|
5762
5775
|
|
|
5763
|
-
return _react["default"].createElement("iframe", {
|
|
5776
|
+
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
|
5764
5777
|
key: id,
|
|
5765
5778
|
ref: this.ref,
|
|
5766
5779
|
style: style,
|
|
@@ -5789,7 +5802,7 @@ exports["default"] = _default;
|
|
|
5789
5802
|
});
|
|
5790
5803
|
|
|
5791
5804
|
unwrapExports(Mixcloud_1);
|
|
5792
|
-
|
|
5805
|
+
Mixcloud_1.Mixcloud;
|
|
5793
5806
|
|
|
5794
5807
|
var FilePlayer_1 = createCommonjsModule(function (module, exports) {
|
|
5795
5808
|
|
|
@@ -5798,7 +5811,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5798
5811
|
});
|
|
5799
5812
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5800
5813
|
|
|
5801
|
-
var _react = _interopRequireWildcard(
|
|
5814
|
+
var _react = _interopRequireWildcard(React);
|
|
5802
5815
|
|
|
5803
5816
|
|
|
5804
5817
|
|
|
@@ -5820,23 +5833,33 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5820
5833
|
|
|
5821
5834
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5822
5835
|
|
|
5823
|
-
function
|
|
5836
|
+
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); }; }
|
|
5824
5837
|
|
|
5825
|
-
function
|
|
5838
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5826
5839
|
|
|
5827
5840
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5828
5841
|
|
|
5842
|
+
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; } }
|
|
5843
|
+
|
|
5844
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5845
|
+
|
|
5829
5846
|
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); }
|
|
5830
5847
|
|
|
5831
5848
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5832
5849
|
|
|
5833
5850
|
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; }
|
|
5834
5851
|
|
|
5852
|
+
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; } } }; }
|
|
5853
|
+
|
|
5854
|
+
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); }
|
|
5855
|
+
|
|
5856
|
+
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; }
|
|
5857
|
+
|
|
5835
5858
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5836
5859
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5837
5860
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5838
5861
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5839
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5862
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js';
|
|
5840
5863
|
var HLS_GLOBAL = 'Hls';
|
|
5841
5864
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5842
5865
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5845,12 +5868,11 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5845
5868
|
|
|
5846
5869
|
function canPlay(url) {
|
|
5847
5870
|
if (url instanceof Array) {
|
|
5848
|
-
var
|
|
5849
|
-
|
|
5850
|
-
var _iteratorError = undefined;
|
|
5871
|
+
var _iterator = _createForOfIteratorHelper(url),
|
|
5872
|
+
_step;
|
|
5851
5873
|
|
|
5852
5874
|
try {
|
|
5853
|
-
for (
|
|
5875
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5854
5876
|
var item = _step.value;
|
|
5855
5877
|
|
|
5856
5878
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5862,18 +5884,9 @@ function canPlay(url) {
|
|
|
5862
5884
|
}
|
|
5863
5885
|
}
|
|
5864
5886
|
} catch (err) {
|
|
5865
|
-
|
|
5866
|
-
_iteratorError = err;
|
|
5887
|
+
_iterator.e(err);
|
|
5867
5888
|
} finally {
|
|
5868
|
-
|
|
5869
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5870
|
-
_iterator["return"]();
|
|
5871
|
-
}
|
|
5872
|
-
} finally {
|
|
5873
|
-
if (_didIteratorError) {
|
|
5874
|
-
throw _iteratorError;
|
|
5875
|
-
}
|
|
5876
|
-
}
|
|
5889
|
+
_iterator.f();
|
|
5877
5890
|
}
|
|
5878
5891
|
|
|
5879
5892
|
return false;
|
|
@@ -5897,14 +5910,12 @@ function canEnablePIP(url) {
|
|
|
5897
5910
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5898
5911
|
}
|
|
5899
5912
|
|
|
5900
|
-
var FilePlayer =
|
|
5901
|
-
/*#__PURE__*/
|
|
5902
|
-
function (_Component) {
|
|
5913
|
+
var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
5903
5914
|
_inherits(FilePlayer, _Component);
|
|
5904
5915
|
|
|
5905
|
-
|
|
5906
|
-
var _getPrototypeOf2;
|
|
5916
|
+
var _super = _createSuper(FilePlayer);
|
|
5907
5917
|
|
|
5918
|
+
function FilePlayer() {
|
|
5908
5919
|
var _this;
|
|
5909
5920
|
|
|
5910
5921
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5913,7 +5924,7 @@ function (_Component) {
|
|
|
5913
5924
|
_args[_key] = arguments[_key];
|
|
5914
5925
|
}
|
|
5915
5926
|
|
|
5916
|
-
_this =
|
|
5927
|
+
_this = _super.call.apply(_super, [this].concat(_args));
|
|
5917
5928
|
|
|
5918
5929
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5919
5930
|
var _this$props;
|
|
@@ -6000,19 +6011,19 @@ function (_Component) {
|
|
|
6000
6011
|
|
|
6001
6012
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6002
6013
|
if (typeof source === 'string') {
|
|
6003
|
-
return _react["default"].createElement("source", {
|
|
6014
|
+
return /*#__PURE__*/_react["default"].createElement("source", {
|
|
6004
6015
|
key: index,
|
|
6005
6016
|
src: source
|
|
6006
6017
|
});
|
|
6007
6018
|
}
|
|
6008
6019
|
|
|
6009
|
-
return _react["default"].createElement("source", _extends({
|
|
6020
|
+
return /*#__PURE__*/_react["default"].createElement("source", _extends({
|
|
6010
6021
|
key: index
|
|
6011
6022
|
}, source));
|
|
6012
6023
|
});
|
|
6013
6024
|
|
|
6014
6025
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6015
|
-
return _react["default"].createElement("track", _extends({
|
|
6026
|
+
return /*#__PURE__*/_react["default"].createElement("track", _extends({
|
|
6016
6027
|
key: index
|
|
6017
6028
|
}, track));
|
|
6018
6029
|
});
|
|
@@ -6050,6 +6061,10 @@ function (_Component) {
|
|
|
6050
6061
|
key: "componentWillUnmount",
|
|
6051
6062
|
value: function componentWillUnmount() {
|
|
6052
6063
|
this.removeListeners(this.player);
|
|
6064
|
+
|
|
6065
|
+
if (this.hls) {
|
|
6066
|
+
this.hls.destroy();
|
|
6067
|
+
}
|
|
6053
6068
|
}
|
|
6054
6069
|
}, {
|
|
6055
6070
|
key: "addListeners",
|
|
@@ -6180,10 +6195,6 @@ function (_Component) {
|
|
|
6180
6195
|
value: function stop() {
|
|
6181
6196
|
this.player.removeAttribute('src');
|
|
6182
6197
|
|
|
6183
|
-
if (this.hls) {
|
|
6184
|
-
this.hls.destroy();
|
|
6185
|
-
}
|
|
6186
|
-
|
|
6187
6198
|
if (this.dash) {
|
|
6188
6199
|
this.dash.reset();
|
|
6189
6200
|
}
|
|
@@ -6295,7 +6306,7 @@ function (_Component) {
|
|
|
6295
6306
|
width: width === 'auto' ? width : '100%',
|
|
6296
6307
|
height: height === 'auto' ? height : '100%'
|
|
6297
6308
|
};
|
|
6298
|
-
return _react["default"].createElement(Element, _extends({
|
|
6309
|
+
return /*#__PURE__*/_react["default"].createElement(Element, _extends({
|
|
6299
6310
|
ref: this.ref,
|
|
6300
6311
|
src: this.getSource(url),
|
|
6301
6312
|
style: style,
|
|
@@ -6325,7 +6336,7 @@ exports["default"] = _default;
|
|
|
6325
6336
|
});
|
|
6326
6337
|
|
|
6327
6338
|
unwrapExports(FilePlayer_1);
|
|
6328
|
-
|
|
6339
|
+
FilePlayer_1.FilePlayer;
|
|
6329
6340
|
|
|
6330
6341
|
var players = createCommonjsModule(function (module, exports) {
|
|
6331
6342
|
|
|
@@ -6367,7 +6378,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6367
6378
|
});
|
|
6368
6379
|
exports["default"] = void 0;
|
|
6369
6380
|
|
|
6370
|
-
var _react = _interopRequireWildcard(
|
|
6381
|
+
var _react = _interopRequireWildcard(React);
|
|
6371
6382
|
|
|
6372
6383
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6373
6384
|
|
|
@@ -6385,12 +6396,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6385
6396
|
|
|
6386
6397
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6387
6398
|
|
|
6388
|
-
function
|
|
6399
|
+
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); }; }
|
|
6389
6400
|
|
|
6390
|
-
function
|
|
6401
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6391
6402
|
|
|
6392
6403
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6393
6404
|
|
|
6405
|
+
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; } }
|
|
6406
|
+
|
|
6407
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6408
|
+
|
|
6394
6409
|
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); }
|
|
6395
6410
|
|
|
6396
6411
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6399,14 +6414,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6399
6414
|
|
|
6400
6415
|
var ICON_SIZE = '64px';
|
|
6401
6416
|
|
|
6402
|
-
var Preview =
|
|
6403
|
-
/*#__PURE__*/
|
|
6404
|
-
function (_Component) {
|
|
6417
|
+
var Preview = /*#__PURE__*/function (_Component) {
|
|
6405
6418
|
_inherits(Preview, _Component);
|
|
6406
6419
|
|
|
6407
|
-
|
|
6408
|
-
var _getPrototypeOf2;
|
|
6420
|
+
var _super = _createSuper(Preview);
|
|
6409
6421
|
|
|
6422
|
+
function Preview() {
|
|
6410
6423
|
var _this;
|
|
6411
6424
|
|
|
6412
6425
|
_classCallCheck(this, Preview);
|
|
@@ -6415,7 +6428,7 @@ function (_Component) {
|
|
|
6415
6428
|
args[_key] = arguments[_key];
|
|
6416
6429
|
}
|
|
6417
6430
|
|
|
6418
|
-
_this =
|
|
6431
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6419
6432
|
|
|
6420
6433
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6421
6434
|
|
|
@@ -6513,15 +6526,15 @@ function (_Component) {
|
|
|
6513
6526
|
}
|
|
6514
6527
|
};
|
|
6515
6528
|
|
|
6516
|
-
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6529
|
+
var defaultPlayIcon = /*#__PURE__*/_react["default"].createElement("div", {
|
|
6517
6530
|
style: styles.shadow,
|
|
6518
6531
|
className: "react-player__shadow"
|
|
6519
|
-
}, _react["default"].createElement("div", {
|
|
6532
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
6520
6533
|
style: styles.playIcon,
|
|
6521
6534
|
className: "react-player__play-icon"
|
|
6522
6535
|
}));
|
|
6523
6536
|
|
|
6524
|
-
return _react["default"].createElement("div", {
|
|
6537
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
6525
6538
|
style: styles.preview,
|
|
6526
6539
|
className: "react-player__preview",
|
|
6527
6540
|
onClick: onClick
|
|
@@ -6544,7 +6557,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6544
6557
|
});
|
|
6545
6558
|
exports["default"] = renderPreloadPlayers;
|
|
6546
6559
|
|
|
6547
|
-
var _react = _interopRequireDefault(
|
|
6560
|
+
var _react = _interopRequireDefault(React);
|
|
6548
6561
|
|
|
6549
6562
|
var _Player = _interopRequireDefault(Player_1);
|
|
6550
6563
|
|
|
@@ -6558,6 +6571,12 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6558
6571
|
|
|
6559
6572
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6560
6573
|
|
|
6574
|
+
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; } } }; }
|
|
6575
|
+
|
|
6576
|
+
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); }
|
|
6577
|
+
|
|
6578
|
+
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; }
|
|
6579
|
+
|
|
6561
6580
|
var PRELOAD_PLAYERS = [{
|
|
6562
6581
|
Player: YouTube_1.YouTube,
|
|
6563
6582
|
configKey: 'youtube',
|
|
@@ -6578,16 +6597,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6578
6597
|
|
|
6579
6598
|
function renderPreloadPlayers(url, controls, config) {
|
|
6580
6599
|
var players = [];
|
|
6581
|
-
|
|
6582
|
-
var
|
|
6583
|
-
|
|
6600
|
+
|
|
6601
|
+
var _iterator = _createForOfIteratorHelper(PRELOAD_PLAYERS),
|
|
6602
|
+
_step;
|
|
6584
6603
|
|
|
6585
6604
|
try {
|
|
6586
|
-
for (
|
|
6605
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6587
6606
|
var player = _step.value;
|
|
6588
6607
|
|
|
6589
6608
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6590
|
-
players.push(_react["default"].createElement(_Player["default"], {
|
|
6609
|
+
players.push( /*#__PURE__*/_react["default"].createElement(_Player["default"], {
|
|
6591
6610
|
key: player.Player.displayName,
|
|
6592
6611
|
activePlayer: player.Player,
|
|
6593
6612
|
url: player.url,
|
|
@@ -6599,18 +6618,9 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6599
6618
|
}
|
|
6600
6619
|
}
|
|
6601
6620
|
} catch (err) {
|
|
6602
|
-
|
|
6603
|
-
_iteratorError = err;
|
|
6621
|
+
_iterator.e(err);
|
|
6604
6622
|
} finally {
|
|
6605
|
-
|
|
6606
|
-
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6607
|
-
_iterator["return"]();
|
|
6608
|
-
}
|
|
6609
|
-
} finally {
|
|
6610
|
-
if (_didIteratorError) {
|
|
6611
|
-
throw _iteratorError;
|
|
6612
|
-
}
|
|
6613
|
-
}
|
|
6623
|
+
_iterator.f();
|
|
6614
6624
|
}
|
|
6615
6625
|
|
|
6616
6626
|
return players;
|
|
@@ -6686,7 +6696,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6686
6696
|
});
|
|
6687
6697
|
exports["default"] = void 0;
|
|
6688
6698
|
|
|
6689
|
-
var _react = _interopRequireWildcard(
|
|
6699
|
+
var _react = _interopRequireWildcard(React);
|
|
6690
6700
|
|
|
6691
6701
|
|
|
6692
6702
|
|
|
@@ -6734,13 +6744,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6734
6744
|
|
|
6735
6745
|
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); }
|
|
6736
6746
|
|
|
6737
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6747
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6748
|
+
|
|
6749
|
+
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."); }
|
|
6738
6750
|
|
|
6739
|
-
function
|
|
6751
|
+
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); }
|
|
6740
6752
|
|
|
6741
|
-
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter)
|
|
6753
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
6742
6754
|
|
|
6743
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr))
|
|
6755
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6756
|
+
|
|
6757
|
+
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; }
|
|
6744
6758
|
|
|
6745
6759
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6746
6760
|
|
|
@@ -6748,12 +6762,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6748
6762
|
|
|
6749
6763
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6750
6764
|
|
|
6751
|
-
function
|
|
6765
|
+
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); }; }
|
|
6752
6766
|
|
|
6753
|
-
function
|
|
6767
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6754
6768
|
|
|
6755
6769
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6756
6770
|
|
|
6771
|
+
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; } }
|
|
6772
|
+
|
|
6773
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6774
|
+
|
|
6757
6775
|
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); }
|
|
6758
6776
|
|
|
6759
6777
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6763,14 +6781,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6763
6781
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6764
6782
|
var customPlayers = [];
|
|
6765
6783
|
|
|
6766
|
-
var ReactPlayer =
|
|
6767
|
-
/*#__PURE__*/
|
|
6768
|
-
function (_Component) {
|
|
6784
|
+
var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
6769
6785
|
_inherits(ReactPlayer, _Component);
|
|
6770
6786
|
|
|
6771
|
-
|
|
6772
|
-
var _getPrototypeOf2;
|
|
6787
|
+
var _super = _createSuper(ReactPlayer);
|
|
6773
6788
|
|
|
6789
|
+
function ReactPlayer() {
|
|
6774
6790
|
var _this;
|
|
6775
6791
|
|
|
6776
6792
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6779,7 +6795,7 @@ function (_Component) {
|
|
|
6779
6795
|
args[_key] = arguments[_key];
|
|
6780
6796
|
}
|
|
6781
6797
|
|
|
6782
|
-
_this =
|
|
6798
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6783
6799
|
|
|
6784
6800
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6785
6801
|
|
|
@@ -6890,7 +6906,7 @@ function (_Component) {
|
|
|
6890
6906
|
key: "renderActivePlayer",
|
|
6891
6907
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6892
6908
|
if (!url) return null;
|
|
6893
|
-
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6909
|
+
return /*#__PURE__*/_react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6894
6910
|
key: activePlayer.displayName,
|
|
6895
6911
|
ref: this.activePlayerRef,
|
|
6896
6912
|
config: this.config,
|
|
@@ -6927,14 +6943,14 @@ function (_Component) {
|
|
|
6927
6943
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6928
6944
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6929
6945
|
|
|
6930
|
-
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6946
|
+
var preview = /*#__PURE__*/_react["default"].createElement(_Preview["default"], {
|
|
6931
6947
|
url: url,
|
|
6932
6948
|
light: light,
|
|
6933
6949
|
playIcon: playIcon,
|
|
6934
6950
|
onClick: this.handleClickPreview
|
|
6935
6951
|
});
|
|
6936
6952
|
|
|
6937
|
-
return _react["default"].createElement(Wrapper, _extends({
|
|
6953
|
+
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({
|
|
6938
6954
|
ref: this.wrapperRef,
|
|
6939
6955
|
style: _objectSpread({}, style, {
|
|
6940
6956
|
width: width,
|
|
@@ -6994,20 +7010,20 @@ var Audio = function Audio(_ref) {
|
|
|
6994
7010
|
var node = _ref.node;
|
|
6995
7011
|
|
|
6996
7012
|
if (node.uploadAudio) {
|
|
6997
|
-
return
|
|
7013
|
+
return React.createElement(
|
|
6998
7014
|
'div',
|
|
6999
7015
|
{ className: 'audio d-block text-center mb-3' },
|
|
7000
|
-
|
|
7016
|
+
React.createElement(
|
|
7001
7017
|
'audio',
|
|
7002
7018
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7003
|
-
|
|
7004
|
-
|
|
7019
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7020
|
+
React.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7005
7021
|
'Your browser does not support the audio element.'
|
|
7006
7022
|
),
|
|
7007
|
-
node.caption &&
|
|
7023
|
+
node.caption && React.createElement(
|
|
7008
7024
|
'p',
|
|
7009
7025
|
{ style: { fontSize: '.9rem' } },
|
|
7010
|
-
|
|
7026
|
+
React.createElement(
|
|
7011
7027
|
'em',
|
|
7012
7028
|
null,
|
|
7013
7029
|
node.caption
|
|
@@ -7017,15 +7033,15 @@ var Audio = function Audio(_ref) {
|
|
|
7017
7033
|
} else if (node.audioFilePth) {
|
|
7018
7034
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7019
7035
|
if (hostname === 'embeds.audioboom.com') {
|
|
7020
|
-
return
|
|
7036
|
+
return React.createElement(
|
|
7021
7037
|
'div',
|
|
7022
7038
|
null,
|
|
7023
|
-
|
|
7039
|
+
React.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7024
7040
|
' ',
|
|
7025
|
-
node.caption &&
|
|
7041
|
+
node.caption && React.createElement(
|
|
7026
7042
|
'p',
|
|
7027
7043
|
{ style: { fontSize: '.9rem' } },
|
|
7028
|
-
|
|
7044
|
+
React.createElement(
|
|
7029
7045
|
'em',
|
|
7030
7046
|
null,
|
|
7031
7047
|
node.caption
|
|
@@ -7033,14 +7049,14 @@ var Audio = function Audio(_ref) {
|
|
|
7033
7049
|
)
|
|
7034
7050
|
);
|
|
7035
7051
|
}
|
|
7036
|
-
return
|
|
7052
|
+
return React.createElement(
|
|
7037
7053
|
'div',
|
|
7038
7054
|
{ className: 'audio' },
|
|
7039
|
-
|
|
7040
|
-
node.caption &&
|
|
7055
|
+
React.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7056
|
+
node.caption && React.createElement(
|
|
7041
7057
|
'p',
|
|
7042
7058
|
{ style: { fontSize: '.9rem' } },
|
|
7043
|
-
|
|
7059
|
+
React.createElement(
|
|
7044
7060
|
'em',
|
|
7045
7061
|
null,
|
|
7046
7062
|
node.caption
|
|
@@ -7058,34 +7074,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7058
7074
|
var profileImage = arguments[6];
|
|
7059
7075
|
|
|
7060
7076
|
if (authorName && authorURL) {
|
|
7061
|
-
return
|
|
7077
|
+
return React.createElement(
|
|
7062
7078
|
'span',
|
|
7063
7079
|
null,
|
|
7064
|
-
|
|
7080
|
+
React.createElement(
|
|
7065
7081
|
'a',
|
|
7066
7082
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7067
7083
|
authorName
|
|
7068
7084
|
),
|
|
7069
|
-
|
|
7085
|
+
React.createElement(
|
|
7070
7086
|
Card,
|
|
7071
7087
|
{ className: 'author-details-card-' + index },
|
|
7072
|
-
|
|
7088
|
+
React.createElement(
|
|
7073
7089
|
Row,
|
|
7074
7090
|
null,
|
|
7075
|
-
profileImage &&
|
|
7091
|
+
profileImage && React.createElement(
|
|
7076
7092
|
Col,
|
|
7077
7093
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7078
|
-
|
|
7094
|
+
React.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7079
7095
|
),
|
|
7080
|
-
|
|
7096
|
+
React.createElement(
|
|
7081
7097
|
Col,
|
|
7082
7098
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7083
|
-
|
|
7099
|
+
React.createElement(
|
|
7084
7100
|
'div',
|
|
7085
7101
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7086
7102
|
authorName
|
|
7087
7103
|
),
|
|
7088
|
-
|
|
7104
|
+
React.createElement(
|
|
7089
7105
|
'p',
|
|
7090
7106
|
null,
|
|
7091
7107
|
biography
|
|
@@ -7093,7 +7109,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7093
7109
|
)
|
|
7094
7110
|
)
|
|
7095
7111
|
),
|
|
7096
|
-
|
|
7112
|
+
React.createElement(
|
|
7097
7113
|
'style',
|
|
7098
7114
|
{ jsx: 'true' },
|
|
7099
7115
|
'\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 '
|
|
@@ -7101,7 +7117,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7101
7117
|
length !== index + 1 && ' , '
|
|
7102
7118
|
);
|
|
7103
7119
|
} else if (authorName) {
|
|
7104
|
-
return
|
|
7120
|
+
return React.createElement(
|
|
7105
7121
|
'span',
|
|
7106
7122
|
{ key: index },
|
|
7107
7123
|
authorName,
|
|
@@ -7378,44 +7394,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7378
7394
|
}
|
|
7379
7395
|
};
|
|
7380
7396
|
|
|
7381
|
-
return
|
|
7397
|
+
return React.createElement(
|
|
7382
7398
|
'div',
|
|
7383
7399
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7384
|
-
|
|
7400
|
+
React.createElement(
|
|
7385
7401
|
'div',
|
|
7386
7402
|
{ className: 'mt-2 mb-5' },
|
|
7387
|
-
series &&
|
|
7403
|
+
series && React.createElement(
|
|
7388
7404
|
'div',
|
|
7389
7405
|
{ style: { fontSize: '0.9rem' } },
|
|
7390
7406
|
article.title,
|
|
7391
7407
|
' - Episode ',
|
|
7392
7408
|
series
|
|
7393
7409
|
),
|
|
7394
|
-
Videos[series - 1] &&
|
|
7410
|
+
Videos[series - 1] && React.createElement(
|
|
7395
7411
|
'h1',
|
|
7396
7412
|
{ className: 'mb-3' },
|
|
7397
7413
|
Videos[series - 1].title
|
|
7398
7414
|
),
|
|
7399
|
-
|
|
7415
|
+
React.createElement(
|
|
7400
7416
|
'div',
|
|
7401
7417
|
null,
|
|
7402
7418
|
moment(article.published).format('LL')
|
|
7403
7419
|
),
|
|
7404
|
-
|
|
7420
|
+
React.createElement(
|
|
7405
7421
|
'div',
|
|
7406
7422
|
{ className: 'mb-3' },
|
|
7407
7423
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7408
|
-
return
|
|
7424
|
+
return React.createElement(
|
|
7409
7425
|
'span',
|
|
7410
7426
|
{ key: index },
|
|
7411
7427
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor(client, authorDetail.profileImage).height(authorImgHeight).url())
|
|
7412
7428
|
);
|
|
7413
7429
|
})
|
|
7414
7430
|
),
|
|
7415
|
-
|
|
7431
|
+
React.createElement(
|
|
7416
7432
|
'p',
|
|
7417
7433
|
null,
|
|
7418
|
-
|
|
7434
|
+
React.createElement(SocialShare, {
|
|
7419
7435
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7420
7436
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7421
7437
|
shareVia: meta.shareVia,
|
|
@@ -7430,20 +7446,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7430
7446
|
hideFacebook: meta.hideFBShare
|
|
7431
7447
|
})
|
|
7432
7448
|
),
|
|
7433
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7449
|
+
Videos[series - 1] && Videos[series - 1].intro && React.createElement(
|
|
7434
7450
|
'p',
|
|
7435
7451
|
{ className: 'mb-3' },
|
|
7436
|
-
|
|
7452
|
+
React.createElement(
|
|
7437
7453
|
'em',
|
|
7438
7454
|
null,
|
|
7439
7455
|
Videos[series - 1].intro
|
|
7440
7456
|
)
|
|
7441
7457
|
)
|
|
7442
7458
|
),
|
|
7443
|
-
|
|
7459
|
+
React.createElement(
|
|
7444
7460
|
'div',
|
|
7445
7461
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7446
|
-
vidUrl && vidType == 'youtube' &&
|
|
7462
|
+
vidUrl && vidType == 'youtube' && React.createElement(YouTube, {
|
|
7447
7463
|
className: 'fluid-iframe',
|
|
7448
7464
|
videoId: getYoutubeId(vidUrl),
|
|
7449
7465
|
opts: opts,
|
|
@@ -7454,10 +7470,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7454
7470
|
return handleOnEnd(e);
|
|
7455
7471
|
}
|
|
7456
7472
|
}),
|
|
7457
|
-
vidUrl && vidType == 'mp4' &&
|
|
7458
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7459
|
-
|
|
7460
|
-
series &&
|
|
7473
|
+
vidUrl && vidType == 'mp4' && React.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7474
|
+
vidUrl && vidType == 'brightcove' && React.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7475
|
+
React.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7476
|
+
series && React.createElement(
|
|
7461
7477
|
'div',
|
|
7462
7478
|
{
|
|
7463
7479
|
className: 'vid-series',
|
|
@@ -7467,10 +7483,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7467
7483
|
maxHeight: '100%',
|
|
7468
7484
|
paddingBottom: '0'
|
|
7469
7485
|
} },
|
|
7470
|
-
|
|
7486
|
+
React.createElement(
|
|
7471
7487
|
'p',
|
|
7472
7488
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7473
|
-
|
|
7489
|
+
React.createElement(
|
|
7474
7490
|
'b',
|
|
7475
7491
|
{ style: { fontSize: '1.25em' } },
|
|
7476
7492
|
'Now Playing:'
|
|
@@ -7478,16 +7494,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7478
7494
|
' ',
|
|
7479
7495
|
seriesData[series ? series - 1 : 0].title
|
|
7480
7496
|
),
|
|
7481
|
-
vidUrl &&
|
|
7497
|
+
vidUrl && React.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7482
7498
|
)
|
|
7483
7499
|
),
|
|
7484
|
-
|
|
7485
|
-
|
|
7500
|
+
React.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7501
|
+
React.createElement(
|
|
7486
7502
|
'div',
|
|
7487
7503
|
{ className: 'vid-text' },
|
|
7488
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
7504
|
+
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()))
|
|
7489
7505
|
),
|
|
7490
|
-
|
|
7506
|
+
React.createElement(
|
|
7491
7507
|
'style',
|
|
7492
7508
|
{ jsx: 'true' },
|
|
7493
7509
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7496,13 +7512,13 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7496
7512
|
};
|
|
7497
7513
|
|
|
7498
7514
|
var Poll = function Poll(_ref) {
|
|
7499
|
-
var node = _ref.node
|
|
7500
|
-
|
|
7501
|
-
|
|
7502
|
-
|
|
7503
|
-
onVote = _ref.onVote
|
|
7504
|
-
_ref
|
|
7505
|
-
getSerializers = _ref.getSerializers;
|
|
7515
|
+
var node = _ref.node;
|
|
7516
|
+
_ref.client;
|
|
7517
|
+
_ref.pageview;
|
|
7518
|
+
_ref.videoAccountIDs;
|
|
7519
|
+
var onVote = _ref.onVote;
|
|
7520
|
+
_ref.showVotes;
|
|
7521
|
+
var getSerializers = _ref.getSerializers;
|
|
7506
7522
|
|
|
7507
7523
|
var _useState = useState(null),
|
|
7508
7524
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7540,67 +7556,67 @@ var Poll = function Poll(_ref) {
|
|
|
7540
7556
|
return acc;
|
|
7541
7557
|
}
|
|
7542
7558
|
}, 0);
|
|
7543
|
-
return
|
|
7544
|
-
|
|
7559
|
+
return React.createElement(
|
|
7560
|
+
React.Fragment,
|
|
7545
7561
|
null,
|
|
7546
|
-
question &&
|
|
7562
|
+
question && React.createElement(
|
|
7547
7563
|
'p',
|
|
7548
7564
|
{ className: 'font-weight-bold' },
|
|
7549
7565
|
question
|
|
7550
7566
|
),
|
|
7551
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7567
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7552
7568
|
'form',
|
|
7553
7569
|
{ onSubmit: function onSubmit(e) {
|
|
7554
7570
|
return onSubmitPoll(e);
|
|
7555
7571
|
} },
|
|
7556
7572
|
choices && choices.map(function (choice) {
|
|
7557
|
-
return
|
|
7573
|
+
return React.createElement(
|
|
7558
7574
|
'div',
|
|
7559
7575
|
{ key: choice._key },
|
|
7560
|
-
|
|
7576
|
+
React.createElement(
|
|
7561
7577
|
'label',
|
|
7562
7578
|
{ className: 'pl-2' },
|
|
7563
|
-
|
|
7579
|
+
React.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7564
7580
|
return setSelectedChoice(e.target.value);
|
|
7565
7581
|
} }),
|
|
7566
7582
|
' ' + choice.choiceText
|
|
7567
7583
|
)
|
|
7568
7584
|
);
|
|
7569
7585
|
}),
|
|
7570
|
-
|
|
7586
|
+
React.createElement(
|
|
7571
7587
|
Button,
|
|
7572
7588
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7573
7589
|
'Vote'
|
|
7574
7590
|
)
|
|
7575
7591
|
),
|
|
7576
|
-
|
|
7592
|
+
React.createElement(
|
|
7577
7593
|
'div',
|
|
7578
7594
|
{ className: 'progress-container' },
|
|
7579
7595
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7580
7596
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7581
|
-
return
|
|
7597
|
+
return React.createElement(
|
|
7582
7598
|
'div',
|
|
7583
7599
|
{ key: choice._key, className: 'mb-3' },
|
|
7584
|
-
|
|
7600
|
+
React.createElement(
|
|
7585
7601
|
'div',
|
|
7586
7602
|
{ className: 'correct-answer' },
|
|
7587
|
-
|
|
7603
|
+
React.createElement(
|
|
7588
7604
|
'div',
|
|
7589
7605
|
null,
|
|
7590
7606
|
choice.choiceText
|
|
7591
7607
|
),
|
|
7592
|
-
choice.choiceAnswer === true &&
|
|
7608
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7593
7609
|
'div',
|
|
7594
7610
|
null,
|
|
7595
|
-
|
|
7611
|
+
React.createElement(
|
|
7596
7612
|
'span',
|
|
7597
7613
|
{ style: { color: 'limegreen' } },
|
|
7598
7614
|
'Correct!'
|
|
7599
7615
|
)
|
|
7600
7616
|
)
|
|
7601
7617
|
),
|
|
7602
|
-
|
|
7603
|
-
|
|
7618
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7619
|
+
React.createElement(
|
|
7604
7620
|
'span',
|
|
7605
7621
|
{ className: 'float-right' },
|
|
7606
7622
|
percentage,
|
|
@@ -7611,14 +7627,14 @@ var Poll = function Poll(_ref) {
|
|
|
7611
7627
|
);
|
|
7612
7628
|
})
|
|
7613
7629
|
),
|
|
7614
|
-
showAnswer &&
|
|
7630
|
+
showAnswer && React.createElement(
|
|
7615
7631
|
'h4',
|
|
7616
7632
|
{ className: 'text-center small p-3' },
|
|
7617
7633
|
'Total Votes: ',
|
|
7618
7634
|
choicesTotalCount
|
|
7619
7635
|
),
|
|
7620
|
-
showAnswer && response &&
|
|
7621
|
-
|
|
7636
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7637
|
+
React.createElement(
|
|
7622
7638
|
'style',
|
|
7623
7639
|
{ jsx: 'true' },
|
|
7624
7640
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7645,13 +7661,13 @@ module.exports = { "default": values, __esModule: true };
|
|
|
7645
7661
|
var _Object$values = unwrapExports(values$1);
|
|
7646
7662
|
|
|
7647
7663
|
var Poll$1 = function Poll(_ref) {
|
|
7648
|
-
var node = _ref.node
|
|
7649
|
-
|
|
7650
|
-
|
|
7651
|
-
|
|
7652
|
-
onVote = _ref.onVote
|
|
7653
|
-
_ref
|
|
7654
|
-
getSerializers = _ref.getSerializers;
|
|
7664
|
+
var node = _ref.node;
|
|
7665
|
+
_ref.client;
|
|
7666
|
+
_ref.pageview;
|
|
7667
|
+
_ref.videoAccountIDs;
|
|
7668
|
+
var onVote = _ref.onVote;
|
|
7669
|
+
_ref.showVotes;
|
|
7670
|
+
var getSerializers = _ref.getSerializers;
|
|
7655
7671
|
|
|
7656
7672
|
var _useState = useState(null),
|
|
7657
7673
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7717,67 +7733,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7717
7733
|
return acc;
|
|
7718
7734
|
}
|
|
7719
7735
|
}, 0);
|
|
7720
|
-
return
|
|
7721
|
-
|
|
7736
|
+
return React.createElement(
|
|
7737
|
+
React.Fragment,
|
|
7722
7738
|
null,
|
|
7723
|
-
question &&
|
|
7739
|
+
question && React.createElement(
|
|
7724
7740
|
'p',
|
|
7725
7741
|
{ className: 'font-weight-bold' },
|
|
7726
7742
|
question
|
|
7727
7743
|
),
|
|
7728
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7744
|
+
!showAnswer && choices && choices.length > 0 && React.createElement(
|
|
7729
7745
|
'form',
|
|
7730
7746
|
{ onSubmit: function onSubmit(e) {
|
|
7731
7747
|
return onSubmitPoll(e);
|
|
7732
7748
|
} },
|
|
7733
7749
|
choices && choices.map(function (choice) {
|
|
7734
|
-
return
|
|
7750
|
+
return React.createElement(
|
|
7735
7751
|
'div',
|
|
7736
7752
|
{ key: choice._key },
|
|
7737
|
-
|
|
7753
|
+
React.createElement(
|
|
7738
7754
|
'label',
|
|
7739
7755
|
{ className: 'pl-2' },
|
|
7740
|
-
|
|
7756
|
+
React.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7741
7757
|
return setSelectedChoice(e.target.value);
|
|
7742
7758
|
} }),
|
|
7743
7759
|
' ' + choice.choiceText
|
|
7744
7760
|
)
|
|
7745
7761
|
);
|
|
7746
7762
|
}),
|
|
7747
|
-
|
|
7763
|
+
React.createElement(
|
|
7748
7764
|
Button,
|
|
7749
7765
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7750
7766
|
'Vote'
|
|
7751
7767
|
)
|
|
7752
7768
|
),
|
|
7753
|
-
|
|
7769
|
+
React.createElement(
|
|
7754
7770
|
'div',
|
|
7755
7771
|
{ className: 'progress-container' },
|
|
7756
7772
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7757
7773
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7758
|
-
return
|
|
7774
|
+
return React.createElement(
|
|
7759
7775
|
'div',
|
|
7760
7776
|
{ key: choice._key, className: 'mb-3' },
|
|
7761
|
-
|
|
7777
|
+
React.createElement(
|
|
7762
7778
|
'div',
|
|
7763
7779
|
{ className: 'correct-answer' },
|
|
7764
|
-
|
|
7780
|
+
React.createElement(
|
|
7765
7781
|
'div',
|
|
7766
7782
|
null,
|
|
7767
7783
|
choice.choiceText
|
|
7768
7784
|
),
|
|
7769
|
-
choice.choiceAnswer === true &&
|
|
7785
|
+
choice.choiceAnswer === true && React.createElement(
|
|
7770
7786
|
'div',
|
|
7771
7787
|
null,
|
|
7772
|
-
|
|
7788
|
+
React.createElement(
|
|
7773
7789
|
'span',
|
|
7774
7790
|
{ style: { color: 'limegreen' } },
|
|
7775
7791
|
'Correct!'
|
|
7776
7792
|
)
|
|
7777
7793
|
)
|
|
7778
7794
|
),
|
|
7779
|
-
|
|
7780
|
-
|
|
7795
|
+
React.createElement(ProgressBar, { now: percentage }),
|
|
7796
|
+
React.createElement(
|
|
7781
7797
|
'span',
|
|
7782
7798
|
{ className: 'float-right' },
|
|
7783
7799
|
percentage,
|
|
@@ -7788,14 +7804,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7788
7804
|
);
|
|
7789
7805
|
})
|
|
7790
7806
|
),
|
|
7791
|
-
showAnswer &&
|
|
7807
|
+
showAnswer && React.createElement(
|
|
7792
7808
|
'h4',
|
|
7793
7809
|
{ className: 'text-center small p-3' },
|
|
7794
7810
|
'Total Votes: ',
|
|
7795
7811
|
choicesTotalCount
|
|
7796
7812
|
),
|
|
7797
|
-
showAnswer && response &&
|
|
7798
|
-
|
|
7813
|
+
showAnswer && response && React.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7814
|
+
React.createElement(
|
|
7799
7815
|
'style',
|
|
7800
7816
|
{ jsx: 'true' },
|
|
7801
7817
|
'\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 '
|
|
@@ -7803,7 +7819,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7803
7819
|
);
|
|
7804
7820
|
};
|
|
7805
7821
|
|
|
7806
|
-
var numberOfPaginations =
|
|
7822
|
+
var numberOfPaginations = main_39 ? 4 : 10;
|
|
7807
7823
|
|
|
7808
7824
|
var Quiz = function Quiz(_ref) {
|
|
7809
7825
|
var quizzes = _ref.quizzes,
|
|
@@ -7921,20 +7937,20 @@ var Quiz = function Quiz(_ref) {
|
|
|
7921
7937
|
};
|
|
7922
7938
|
|
|
7923
7939
|
var renderPagination = function renderPagination() {
|
|
7924
|
-
return
|
|
7940
|
+
return React.createElement(
|
|
7925
7941
|
Pagination,
|
|
7926
|
-
{ className: 'p-0 m-0', size:
|
|
7927
|
-
|
|
7942
|
+
{ className: 'p-0 m-0', size: main_39 && 'sm' },
|
|
7943
|
+
React.createElement(Pagination.First, { onClick: function onClick() {
|
|
7928
7944
|
return changePage('first');
|
|
7929
7945
|
}, disabled: currentPage === 1 }),
|
|
7930
|
-
|
|
7946
|
+
React.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7931
7947
|
return changePage('prev');
|
|
7932
7948
|
}, disabled: currentPage === 1 }),
|
|
7933
|
-
|
|
7949
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7934
7950
|
return renderNewPages('prev');
|
|
7935
7951
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7936
7952
|
pages.map(function (page) {
|
|
7937
|
-
return
|
|
7953
|
+
return React.createElement(
|
|
7938
7954
|
Pagination.Item,
|
|
7939
7955
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7940
7956
|
return changePage(page);
|
|
@@ -7942,13 +7958,13 @@ var Quiz = function Quiz(_ref) {
|
|
|
7942
7958
|
page
|
|
7943
7959
|
);
|
|
7944
7960
|
}),
|
|
7945
|
-
|
|
7961
|
+
React.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7946
7962
|
return renderNewPages('next');
|
|
7947
7963
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7948
|
-
|
|
7964
|
+
React.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7949
7965
|
return changePage('next');
|
|
7950
7966
|
}, disabled: currentPage === pageCount }),
|
|
7951
|
-
|
|
7967
|
+
React.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7952
7968
|
return changePage('last');
|
|
7953
7969
|
}, disabled: currentPage === pageCount })
|
|
7954
7970
|
);
|
|
@@ -8031,51 +8047,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8031
8047
|
}
|
|
8032
8048
|
};
|
|
8033
8049
|
|
|
8034
|
-
return
|
|
8035
|
-
|
|
8050
|
+
return React.createElement(
|
|
8051
|
+
React.Fragment,
|
|
8036
8052
|
null,
|
|
8037
|
-
quizzes[currentPage - 1] &&
|
|
8038
|
-
|
|
8053
|
+
quizzes[currentPage - 1] && React.createElement(
|
|
8054
|
+
React.Fragment,
|
|
8039
8055
|
null,
|
|
8040
|
-
|
|
8041
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 &&
|
|
8056
|
+
React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8057
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React.createElement(
|
|
8042
8058
|
'form',
|
|
8043
8059
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8044
8060
|
return e.preventDefault();
|
|
8045
8061
|
} },
|
|
8046
8062
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8047
|
-
return
|
|
8063
|
+
return React.createElement(
|
|
8048
8064
|
'div',
|
|
8049
8065
|
{ key: answer._key },
|
|
8050
|
-
|
|
8066
|
+
React.createElement(
|
|
8051
8067
|
'label',
|
|
8052
8068
|
{ className: 'pl-2' },
|
|
8053
|
-
quizzes[currentPage - 1].multiAnswer ?
|
|
8069
|
+
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 }),
|
|
8054
8070
|
' ' + answer.answerText
|
|
8055
8071
|
)
|
|
8056
8072
|
);
|
|
8057
8073
|
})
|
|
8058
8074
|
)
|
|
8059
8075
|
),
|
|
8060
|
-
!showAnswer &&
|
|
8076
|
+
!showAnswer && React.createElement(
|
|
8061
8077
|
Button$1,
|
|
8062
8078
|
{ onClick: function onClick() {
|
|
8063
8079
|
return checkAnswers();
|
|
8064
8080
|
}, variant: 'info', block: true },
|
|
8065
8081
|
'Please click here for answer'
|
|
8066
8082
|
),
|
|
8067
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
8068
|
-
|
|
8083
|
+
quizzes[currentPage - 1] && showAnswer && React.createElement(
|
|
8084
|
+
React.Fragment,
|
|
8069
8085
|
null,
|
|
8070
|
-
|
|
8086
|
+
React.createElement(
|
|
8071
8087
|
'h4',
|
|
8072
8088
|
null,
|
|
8073
8089
|
'Answer:'
|
|
8074
8090
|
),
|
|
8075
|
-
quizzes[currentPage - 1].answer &&
|
|
8091
|
+
quizzes[currentPage - 1].answer && React.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8076
8092
|
),
|
|
8077
|
-
|
|
8078
|
-
pageCount > 1 &&
|
|
8093
|
+
React.createElement('br', null),
|
|
8094
|
+
pageCount > 1 && React.createElement(
|
|
8079
8095
|
'div',
|
|
8080
8096
|
{ className: 'd-flex justify-content-center' },
|
|
8081
8097
|
renderPagination()
|
|
@@ -8086,10 +8102,10 @@ var Quiz = function Quiz(_ref) {
|
|
|
8086
8102
|
var Leads = function Leads(_ref) {
|
|
8087
8103
|
var url = _ref.url;
|
|
8088
8104
|
|
|
8089
|
-
return
|
|
8105
|
+
return React.createElement(
|
|
8090
8106
|
'div',
|
|
8091
8107
|
{ className: 'd-block text-center mb-3' },
|
|
8092
|
-
url &&
|
|
8108
|
+
url && React.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8093
8109
|
);
|
|
8094
8110
|
};
|
|
8095
8111
|
|
|
@@ -8110,8 +8126,8 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8110
8126
|
|
|
8111
8127
|
var _useState = useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
|
|
8112
8128
|
_useState2 = _slicedToArray(_useState, 2),
|
|
8113
|
-
carouselIndex = _useState2[0]
|
|
8114
|
-
|
|
8129
|
+
carouselIndex = _useState2[0];
|
|
8130
|
+
_useState2[1];
|
|
8115
8131
|
|
|
8116
8132
|
// useEffect(() => {
|
|
8117
8133
|
// let itemArr = router.asPath.split('?page=')
|
|
@@ -8137,42 +8153,42 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8137
8153
|
}
|
|
8138
8154
|
};
|
|
8139
8155
|
|
|
8140
|
-
return
|
|
8156
|
+
return React.createElement(
|
|
8141
8157
|
'div',
|
|
8142
8158
|
{ ref: carouselRef, className: 'mt-3 mb-4' },
|
|
8143
|
-
|
|
8159
|
+
React.createElement(
|
|
8144
8160
|
Carousel,
|
|
8145
8161
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8146
8162
|
slides && slides.map(function (slide) {
|
|
8147
8163
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8148
|
-
return
|
|
8164
|
+
return React.createElement(
|
|
8149
8165
|
Carousel.Item,
|
|
8150
8166
|
{ key: slide._key },
|
|
8151
|
-
|
|
8167
|
+
React.createElement(
|
|
8152
8168
|
'a',
|
|
8153
8169
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8154
|
-
|
|
8170
|
+
React.createElement(
|
|
8155
8171
|
LazyLoad,
|
|
8156
8172
|
null,
|
|
8157
|
-
|
|
8173
|
+
React.createElement('img', { src: urlFor$1(slide.slideshowImage, client).url(), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
8158
8174
|
)
|
|
8159
8175
|
),
|
|
8160
|
-
|
|
8176
|
+
React.createElement(
|
|
8161
8177
|
'div',
|
|
8162
8178
|
{ className: 'p-2' },
|
|
8163
|
-
slide.slideshowImage.caption &&
|
|
8179
|
+
slide.slideshowImage.caption && React.createElement(
|
|
8164
8180
|
'h3',
|
|
8165
8181
|
{ style: { padding: '0px' } },
|
|
8166
8182
|
slide.slideshowImage.caption
|
|
8167
8183
|
),
|
|
8168
|
-
slide.description &&
|
|
8184
|
+
slide.description && React.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8169
8185
|
)
|
|
8170
8186
|
);
|
|
8171
8187
|
}
|
|
8172
8188
|
return null;
|
|
8173
8189
|
})
|
|
8174
8190
|
),
|
|
8175
|
-
|
|
8191
|
+
React.createElement(
|
|
8176
8192
|
'style',
|
|
8177
8193
|
{ jsx: 'true' },
|
|
8178
8194
|
'\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 '
|
|
@@ -8191,10 +8207,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8191
8207
|
sizes = _props$node.sizes,
|
|
8192
8208
|
sizeMapping = _props$node.sizeMapping;
|
|
8193
8209
|
|
|
8194
|
-
return
|
|
8210
|
+
return React.createElement(
|
|
8195
8211
|
'div',
|
|
8196
8212
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8197
|
-
|
|
8213
|
+
React.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8198
8214
|
);
|
|
8199
8215
|
};
|
|
8200
8216
|
|
|
@@ -8205,15 +8221,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8205
8221
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8206
8222
|
|
|
8207
8223
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8208
|
-
return
|
|
8224
|
+
return React.createElement(
|
|
8209
8225
|
'section',
|
|
8210
8226
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8211
|
-
Caption &&
|
|
8227
|
+
Caption && React.createElement(
|
|
8212
8228
|
'h4',
|
|
8213
8229
|
{ className: 'formstack-caption' },
|
|
8214
8230
|
Caption
|
|
8215
8231
|
),
|
|
8216
|
-
|
|
8232
|
+
React.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8217
8233
|
);
|
|
8218
8234
|
};
|
|
8219
8235
|
|
|
@@ -8233,29 +8249,29 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8233
8249
|
}
|
|
8234
8250
|
});
|
|
8235
8251
|
if (medias && medias.length > 0) {
|
|
8236
|
-
return
|
|
8252
|
+
return React.createElement(
|
|
8237
8253
|
'div',
|
|
8238
8254
|
{ className: 'multi-media-container' },
|
|
8239
|
-
|
|
8255
|
+
React.createElement(
|
|
8240
8256
|
Row$1,
|
|
8241
8257
|
{ noGutters: true },
|
|
8242
8258
|
medias.map(function (media) {
|
|
8243
|
-
return
|
|
8259
|
+
return React.createElement(
|
|
8244
8260
|
Col$1,
|
|
8245
8261
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8246
|
-
|
|
8262
|
+
React.createElement(
|
|
8247
8263
|
'a',
|
|
8248
|
-
_extends
|
|
8264
|
+
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8249
8265
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8250
|
-
|
|
8266
|
+
React.createElement(
|
|
8251
8267
|
'div',
|
|
8252
8268
|
{ className: 'multi-media-image-container' },
|
|
8253
|
-
imageBox &&
|
|
8269
|
+
imageBox && React.createElement(
|
|
8254
8270
|
LazyLoad,
|
|
8255
8271
|
{ once: true },
|
|
8256
|
-
|
|
8272
|
+
React.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor$2(media.poster, client).url(), alt: media.alt })
|
|
8257
8273
|
),
|
|
8258
|
-
media.caption &&
|
|
8274
|
+
media.caption && React.createElement(
|
|
8259
8275
|
'span',
|
|
8260
8276
|
{ className: 'multi-media-caption' },
|
|
8261
8277
|
media.caption
|
|
@@ -8265,7 +8281,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8265
8281
|
);
|
|
8266
8282
|
})
|
|
8267
8283
|
),
|
|
8268
|
-
|
|
8284
|
+
React.createElement(
|
|
8269
8285
|
'style',
|
|
8270
8286
|
{ jsx: 'true' },
|
|
8271
8287
|
'\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 '
|
|
@@ -8312,7 +8328,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8312
8328
|
}
|
|
8313
8329
|
};
|
|
8314
8330
|
|
|
8315
|
-
_this.wraperRef =
|
|
8331
|
+
_this.wraperRef = React.createRef();
|
|
8316
8332
|
_this.visible = false;
|
|
8317
8333
|
return _this;
|
|
8318
8334
|
}
|
|
@@ -8340,7 +8356,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8340
8356
|
_props$id = _props.id,
|
|
8341
8357
|
id = _props$id === undefined ? '' : _props$id;
|
|
8342
8358
|
|
|
8343
|
-
return
|
|
8359
|
+
return React.createElement(
|
|
8344
8360
|
'div',
|
|
8345
8361
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8346
8362
|
this.props.children
|
|
@@ -8349,7 +8365,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8349
8365
|
}]);
|
|
8350
8366
|
|
|
8351
8367
|
return InscreenSensor;
|
|
8352
|
-
}(
|
|
8368
|
+
}(React.Component);
|
|
8353
8369
|
|
|
8354
8370
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8355
8371
|
var nodes = _ref.nodes,
|
|
@@ -8462,33 +8478,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8462
8478
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8463
8479
|
var showReading = show ? 'showReading' : '';
|
|
8464
8480
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8465
|
-
return
|
|
8481
|
+
return React.createElement(
|
|
8466
8482
|
'div',
|
|
8467
8483
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8468
|
-
|
|
8484
|
+
React.createElement(
|
|
8469
8485
|
'a',
|
|
8470
8486
|
{ onClick: function onClick(e) {
|
|
8471
8487
|
return articleCardClickHandler(e);
|
|
8472
8488
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8473
|
-
|
|
8489
|
+
React.createElement(
|
|
8474
8490
|
'div',
|
|
8475
8491
|
{ className: 'prevNext-thumbnail' },
|
|
8476
|
-
|
|
8477
|
-
|
|
8492
|
+
React.createElement('img', { src: urlFor(article.thumbnail.asset).url() }),
|
|
8493
|
+
React.createElement(
|
|
8478
8494
|
'div',
|
|
8479
8495
|
{ className: 'prevNext-reading ' + showReading },
|
|
8480
8496
|
articleLabel
|
|
8481
8497
|
)
|
|
8482
8498
|
),
|
|
8483
|
-
|
|
8499
|
+
React.createElement(
|
|
8484
8500
|
'div',
|
|
8485
8501
|
{ className: 'prevNext-summary' },
|
|
8486
|
-
|
|
8502
|
+
React.createElement(
|
|
8487
8503
|
'div',
|
|
8488
8504
|
{ className: 'prevNext-publishDate' },
|
|
8489
8505
|
moment(article.published).format('LL')
|
|
8490
8506
|
),
|
|
8491
|
-
|
|
8507
|
+
React.createElement(
|
|
8492
8508
|
'h2',
|
|
8493
8509
|
{ className: 'prevNext-title' },
|
|
8494
8510
|
article.title
|
|
@@ -8537,7 +8553,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8537
8553
|
|
|
8538
8554
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8539
8555
|
if (biography) {
|
|
8540
|
-
return
|
|
8556
|
+
return React.createElement(BlockContent, _extends({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8541
8557
|
}
|
|
8542
8558
|
};
|
|
8543
8559
|
|
|
@@ -8623,7 +8639,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8623
8639
|
//console.log('useLayoutEffect')
|
|
8624
8640
|
if (!firstLoad) {
|
|
8625
8641
|
setUpArrowClicked(false);
|
|
8626
|
-
if (
|
|
8642
|
+
if (main_40) {
|
|
8627
8643
|
grabLoadedAds();
|
|
8628
8644
|
} else {
|
|
8629
8645
|
scrollToArticle();
|
|
@@ -8647,7 +8663,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8647
8663
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8648
8664
|
if (pageview) pageview(path);
|
|
8649
8665
|
|
|
8650
|
-
if (!
|
|
8666
|
+
if (!main_40) {
|
|
8651
8667
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8652
8668
|
if (window.googletag && googletag.pubadsReady) {
|
|
8653
8669
|
lib_3.refresh();
|
|
@@ -8655,7 +8671,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8655
8671
|
});
|
|
8656
8672
|
}
|
|
8657
8673
|
//Refresh leaderboard ad on mobile
|
|
8658
|
-
if (
|
|
8674
|
+
if (main_40) {
|
|
8659
8675
|
var leaderboardSlotId = '';
|
|
8660
8676
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8661
8677
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8695,38 +8711,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8695
8711
|
setSensorVisible(false);
|
|
8696
8712
|
};
|
|
8697
8713
|
|
|
8698
|
-
return
|
|
8699
|
-
|
|
8714
|
+
return React.createElement(
|
|
8715
|
+
React.Fragment,
|
|
8700
8716
|
null,
|
|
8701
|
-
|
|
8717
|
+
React.createElement(
|
|
8702
8718
|
'div',
|
|
8703
8719
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8704
|
-
|
|
8720
|
+
React.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8705
8721
|
return handleArrowClick();
|
|
8706
8722
|
} })
|
|
8707
8723
|
),
|
|
8708
|
-
|
|
8709
|
-
|
|
8724
|
+
React.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8725
|
+
React.createElement(
|
|
8710
8726
|
'div',
|
|
8711
8727
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8712
|
-
|
|
8728
|
+
React.createElement(
|
|
8713
8729
|
'h5',
|
|
8714
8730
|
{ className: 'objective-title' },
|
|
8715
8731
|
nodes.seriesTitle
|
|
8716
8732
|
),
|
|
8717
|
-
|
|
8733
|
+
React.createElement(
|
|
8718
8734
|
'div',
|
|
8719
8735
|
{ className: 'prevNextWrapper' },
|
|
8720
8736
|
PrevNextCards(false, -1)
|
|
8721
8737
|
)
|
|
8722
8738
|
),
|
|
8723
|
-
|
|
8724
|
-
|
|
8739
|
+
React.createElement('hr', { className: 'article-seperater' }),
|
|
8740
|
+
React.createElement(
|
|
8725
8741
|
'div',
|
|
8726
8742
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8727
|
-
|
|
8743
|
+
main_40 && Ads.map(function (ad, index) {
|
|
8728
8744
|
if (index === 0) {
|
|
8729
|
-
return
|
|
8745
|
+
return React.createElement(
|
|
8730
8746
|
'div',
|
|
8731
8747
|
{
|
|
8732
8748
|
key: 'addid-1',
|
|
@@ -8746,14 +8762,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8746
8762
|
}
|
|
8747
8763
|
})
|
|
8748
8764
|
),
|
|
8749
|
-
|
|
8765
|
+
React.createElement(
|
|
8750
8766
|
'div',
|
|
8751
8767
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8752
8768
|
Articles.map(function (article, index) {
|
|
8753
|
-
return
|
|
8769
|
+
return React.createElement(
|
|
8754
8770
|
'div',
|
|
8755
8771
|
{ key: article.title },
|
|
8756
|
-
|
|
8772
|
+
React.createElement(
|
|
8757
8773
|
InscreenSensor,
|
|
8758
8774
|
{
|
|
8759
8775
|
visible: sensorVisible,
|
|
@@ -8771,84 +8787,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8771
8787
|
}
|
|
8772
8788
|
}
|
|
8773
8789
|
} },
|
|
8774
|
-
|
|
8790
|
+
React.createElement(
|
|
8775
8791
|
Head,
|
|
8776
8792
|
null,
|
|
8777
|
-
currentTitle !== null &&
|
|
8793
|
+
currentTitle !== null && React.createElement(
|
|
8778
8794
|
'title',
|
|
8779
8795
|
{ key: 'title' },
|
|
8780
8796
|
currentTitle
|
|
8781
8797
|
),
|
|
8782
|
-
currentSummary !== null &&
|
|
8783
|
-
currentURL !== null &&
|
|
8784
|
-
currentTitle !== null &&
|
|
8785
|
-
currentThumbnail !== null &&
|
|
8786
|
-
currentSummary !== null &&
|
|
8787
|
-
currentTitle !== null &&
|
|
8788
|
-
currentThumbnail !== null &&
|
|
8789
|
-
currentSummary !== null &&
|
|
8798
|
+
currentSummary !== null && React.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8799
|
+
currentURL !== null && React.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8800
|
+
currentTitle !== null && React.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8801
|
+
currentThumbnail !== null && React.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8802
|
+
currentSummary !== null && React.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8803
|
+
currentTitle !== null && React.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8804
|
+
currentThumbnail !== null && React.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8805
|
+
currentSummary !== null && React.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8790
8806
|
),
|
|
8791
|
-
|
|
8807
|
+
React.createElement(
|
|
8792
8808
|
'article',
|
|
8793
8809
|
{ className: 'article-wrapper' },
|
|
8794
|
-
|
|
8810
|
+
React.createElement(
|
|
8795
8811
|
'div',
|
|
8796
8812
|
{ className: 'article-publishDate' },
|
|
8797
8813
|
moment(article.published).format('LL')
|
|
8798
8814
|
),
|
|
8799
|
-
|
|
8815
|
+
React.createElement(
|
|
8800
8816
|
'div',
|
|
8801
8817
|
{ className: 'author-details-wrapper' },
|
|
8802
8818
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8803
|
-
return
|
|
8819
|
+
return React.createElement(
|
|
8804
8820
|
'span',
|
|
8805
8821
|
{ key: index },
|
|
8806
8822
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor(client, authorDetail.profileImage).url())
|
|
8807
8823
|
);
|
|
8808
8824
|
})
|
|
8809
8825
|
),
|
|
8810
|
-
|
|
8826
|
+
React.createElement(
|
|
8811
8827
|
'h2',
|
|
8812
8828
|
{ className: 'article-title' },
|
|
8813
8829
|
article.title
|
|
8814
8830
|
),
|
|
8815
|
-
|
|
8831
|
+
React.createElement(
|
|
8816
8832
|
'div',
|
|
8817
8833
|
{ className: 'mt-2 mb-2' },
|
|
8818
|
-
|
|
8834
|
+
React.createElement(BlockContent, _extends({
|
|
8819
8835
|
serializers: getSerializers,
|
|
8820
8836
|
videoAccountIDs: accountIDs,
|
|
8821
8837
|
blocks: article.text,
|
|
8822
8838
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8823
8839
|
}, client.config())),
|
|
8824
|
-
|
|
8840
|
+
React.createElement('hr', { className: 'article-seperater my-4' })
|
|
8825
8841
|
),
|
|
8826
|
-
Articles.length > 1 &&
|
|
8827
|
-
|
|
8842
|
+
Articles.length > 1 && React.createElement(
|
|
8843
|
+
React.Fragment,
|
|
8828
8844
|
null,
|
|
8829
|
-
|
|
8845
|
+
React.createElement(
|
|
8830
8846
|
'div',
|
|
8831
8847
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8832
|
-
|
|
8848
|
+
React.createElement(
|
|
8833
8849
|
'h5',
|
|
8834
8850
|
{ className: 'objective-title' },
|
|
8835
8851
|
nodes.seriesTitle
|
|
8836
8852
|
),
|
|
8837
|
-
|
|
8853
|
+
React.createElement(
|
|
8838
8854
|
'div',
|
|
8839
8855
|
{ className: 'prevNextWrapper' },
|
|
8840
8856
|
PrevNextCards(true, index)
|
|
8841
8857
|
)
|
|
8842
8858
|
),
|
|
8843
|
-
|
|
8859
|
+
React.createElement('hr', { className: 'article-seperater' })
|
|
8844
8860
|
)
|
|
8845
8861
|
),
|
|
8846
|
-
|
|
8862
|
+
React.createElement(
|
|
8847
8863
|
'div',
|
|
8848
8864
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8849
|
-
|
|
8865
|
+
main_40 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8850
8866
|
if (innerIndex === 0) {
|
|
8851
|
-
return
|
|
8867
|
+
return React.createElement(
|
|
8852
8868
|
'div',
|
|
8853
8869
|
{
|
|
8854
8870
|
key: 'addid-' + (index + 2),
|
|
@@ -8871,7 +8887,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8871
8887
|
)
|
|
8872
8888
|
);
|
|
8873
8889
|
}),
|
|
8874
|
-
|
|
8890
|
+
React.createElement(
|
|
8875
8891
|
'style',
|
|
8876
8892
|
{ jsx: 'true' },
|
|
8877
8893
|
'\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 '
|
|
@@ -8901,11 +8917,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8901
8917
|
};
|
|
8902
8918
|
}, [handleClickOutside]);
|
|
8903
8919
|
|
|
8904
|
-
return
|
|
8920
|
+
return React.createElement(
|
|
8905
8921
|
'div',
|
|
8906
8922
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8907
|
-
|
|
8908
|
-
|
|
8923
|
+
React.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8924
|
+
React.createElement(
|
|
8909
8925
|
'style',
|
|
8910
8926
|
{ jsx: 'true' },
|
|
8911
8927
|
'\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 '
|
|
@@ -8999,13 +9015,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
8999
9015
|
|
|
9000
9016
|
var FigureCaption = useCallback(function () {
|
|
9001
9017
|
if (imgcaption && imgcaption.length > 0) {
|
|
9002
|
-
return
|
|
9018
|
+
return React.createElement(
|
|
9003
9019
|
'div',
|
|
9004
9020
|
{ className: 'figure-caption' },
|
|
9005
|
-
|
|
9021
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9006
9022
|
);
|
|
9007
9023
|
} else if (caption) {
|
|
9008
|
-
return
|
|
9024
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9009
9025
|
} else return null;
|
|
9010
9026
|
}, [caption, imgcaption]);
|
|
9011
9027
|
|
|
@@ -9017,21 +9033,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9017
9033
|
margin: figureMargin
|
|
9018
9034
|
};
|
|
9019
9035
|
|
|
9020
|
-
return
|
|
9021
|
-
|
|
9036
|
+
return React.createElement(
|
|
9037
|
+
React.Fragment,
|
|
9022
9038
|
null,
|
|
9023
|
-
|
|
9024
|
-
Figure$
|
|
9039
|
+
React.createElement(
|
|
9040
|
+
Figure$2,
|
|
9025
9041
|
{ className: '' + class_name, style: figureStyle },
|
|
9026
|
-
link ?
|
|
9042
|
+
link ? React.createElement(
|
|
9027
9043
|
'a',
|
|
9028
9044
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9029
|
-
|
|
9030
|
-
|
|
9031
|
-
) :
|
|
9032
|
-
|
|
9045
|
+
React.createElement(Figure$2.Image, { style: { maxWidth: '100%' }, className: 'figure-image', src: urlFor$3(node, client).url(), alt: alt && alt }),
|
|
9046
|
+
React.createElement(FigureCaption, null)
|
|
9047
|
+
) : React.createElement(
|
|
9048
|
+
React.Fragment,
|
|
9033
9049
|
null,
|
|
9034
|
-
|
|
9050
|
+
React.createElement(Figure$2.Image, {
|
|
9035
9051
|
style: { maxWidth: '100%', cursor: 'pointer', width: 'auto' },
|
|
9036
9052
|
className: 'figure-image',
|
|
9037
9053
|
src: urlFor$3(node, client).url(),
|
|
@@ -9041,9 +9057,9 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9041
9057
|
setShowLightbox(true);
|
|
9042
9058
|
}
|
|
9043
9059
|
}),
|
|
9044
|
-
|
|
9060
|
+
React.createElement(FigureCaption, null)
|
|
9045
9061
|
),
|
|
9046
|
-
|
|
9062
|
+
React.createElement(LightBox, {
|
|
9047
9063
|
showLightbox: showLightbox,
|
|
9048
9064
|
lightboxImgSrc: lightboxImgSrc,
|
|
9049
9065
|
closeLightbox: function closeLightbox() {
|
|
@@ -9052,7 +9068,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9052
9068
|
}
|
|
9053
9069
|
})
|
|
9054
9070
|
),
|
|
9055
|
-
|
|
9071
|
+
React.createElement(
|
|
9056
9072
|
'style',
|
|
9057
9073
|
{ jsx: 'true' },
|
|
9058
9074
|
'\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 '
|
|
@@ -9060,7 +9076,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9060
9076
|
);
|
|
9061
9077
|
};
|
|
9062
9078
|
|
|
9063
|
-
var Figure =
|
|
9079
|
+
var Figure = React.memo(FigureComponent, compareProps);
|
|
9064
9080
|
|
|
9065
9081
|
var urlFor$4 = function urlFor(source, client) {
|
|
9066
9082
|
var builder = imageUrlBuilder(client);
|
|
@@ -9106,47 +9122,47 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9106
9122
|
imgcaption = _ref.imgcaption;
|
|
9107
9123
|
|
|
9108
9124
|
if (imgcaption && imgcaption.length > 0) {
|
|
9109
|
-
return
|
|
9125
|
+
return React.createElement(
|
|
9110
9126
|
'div',
|
|
9111
9127
|
{ className: 'multi-figure-caption' },
|
|
9112
|
-
|
|
9128
|
+
React.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9113
9129
|
);
|
|
9114
9130
|
} else if (caption) {
|
|
9115
|
-
return
|
|
9131
|
+
return React.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9116
9132
|
} else return null;
|
|
9117
9133
|
};
|
|
9118
9134
|
|
|
9119
9135
|
if (images && images.length > 0) {
|
|
9120
|
-
return
|
|
9136
|
+
return React.createElement(
|
|
9121
9137
|
'div',
|
|
9122
9138
|
{ className: 'multi-figure-container' },
|
|
9123
|
-
|
|
9139
|
+
React.createElement(
|
|
9124
9140
|
Row$1,
|
|
9125
9141
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9126
9142
|
images.map(function (image, index) {
|
|
9127
|
-
return
|
|
9143
|
+
return React.createElement(
|
|
9128
9144
|
Col$1,
|
|
9129
9145
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9130
|
-
image.link ?
|
|
9146
|
+
image.link ? React.createElement(
|
|
9131
9147
|
'a',
|
|
9132
|
-
_extends
|
|
9133
|
-
|
|
9148
|
+
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9149
|
+
React.createElement(
|
|
9134
9150
|
'div',
|
|
9135
9151
|
{ className: 'multi-figure-image-container' },
|
|
9136
|
-
|
|
9152
|
+
React.createElement(
|
|
9137
9153
|
LazyLoad,
|
|
9138
9154
|
{ once: true },
|
|
9139
|
-
|
|
9155
|
+
React.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor$4(image.asset, client).url(), alt: image.alt })
|
|
9140
9156
|
),
|
|
9141
|
-
|
|
9157
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9142
9158
|
)
|
|
9143
|
-
) :
|
|
9159
|
+
) : React.createElement(
|
|
9144
9160
|
'div',
|
|
9145
9161
|
{ className: 'multi-figure-image-container' },
|
|
9146
|
-
|
|
9162
|
+
React.createElement(
|
|
9147
9163
|
LazyLoad,
|
|
9148
9164
|
{ once: true },
|
|
9149
|
-
|
|
9165
|
+
React.createElement('img', {
|
|
9150
9166
|
'images-count': images.length,
|
|
9151
9167
|
className: 'multi-figure-image',
|
|
9152
9168
|
src: urlFor$4(image.asset, client).url(),
|
|
@@ -9157,17 +9173,17 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9157
9173
|
}
|
|
9158
9174
|
})
|
|
9159
9175
|
),
|
|
9160
|
-
|
|
9176
|
+
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9161
9177
|
)
|
|
9162
9178
|
);
|
|
9163
9179
|
})
|
|
9164
9180
|
),
|
|
9165
|
-
|
|
9181
|
+
React.createElement(
|
|
9166
9182
|
'div',
|
|
9167
9183
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9168
|
-
|
|
9184
|
+
React.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9169
9185
|
),
|
|
9170
|
-
|
|
9186
|
+
React.createElement(
|
|
9171
9187
|
'style',
|
|
9172
9188
|
{ jsx: 'true' },
|
|
9173
9189
|
'\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 '
|
|
@@ -9189,10 +9205,10 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9189
9205
|
|
|
9190
9206
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
9191
9207
|
|
|
9192
|
-
return
|
|
9208
|
+
return React.createElement(
|
|
9193
9209
|
'div',
|
|
9194
9210
|
{ id: elementId },
|
|
9195
|
-
|
|
9211
|
+
React.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
9196
9212
|
);
|
|
9197
9213
|
};
|
|
9198
9214
|
|
|
@@ -9267,17 +9283,17 @@ var getSerializers = function getSerializers() {
|
|
|
9267
9283
|
var node = _ref.node;
|
|
9268
9284
|
var url = node.url;
|
|
9269
9285
|
|
|
9270
|
-
return
|
|
9286
|
+
return React.createElement(YouTubePlayer, { url: url });
|
|
9271
9287
|
},
|
|
9272
9288
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9273
9289
|
var node = _ref2.node;
|
|
9274
9290
|
|
|
9275
|
-
return
|
|
9291
|
+
return React.createElement(YouTubeGallery, { nodes: node, article: article, meta: meta, authorPrefix: authorPrefix, authorImgHeight: authorImgHeight, accountIDs: videoAccountIDs || {}, client: client, getSerializers: getSerializers(client) });
|
|
9276
9292
|
},
|
|
9277
9293
|
articleSeries: function articleSeries(_ref3) {
|
|
9278
9294
|
var node = _ref3.node;
|
|
9279
9295
|
|
|
9280
|
-
return
|
|
9296
|
+
return React.createElement(ArticleSeries, {
|
|
9281
9297
|
nodes: node,
|
|
9282
9298
|
accountIDs: videoAccountIDs || {},
|
|
9283
9299
|
pageview: pageview,
|
|
@@ -9290,61 +9306,61 @@ var getSerializers = function getSerializers() {
|
|
|
9290
9306
|
figure: function figure(_ref4) {
|
|
9291
9307
|
var node = _ref4.node;
|
|
9292
9308
|
|
|
9293
|
-
return
|
|
9309
|
+
return React.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9294
9310
|
},
|
|
9295
9311
|
multifigure: function multifigure(_ref5) {
|
|
9296
9312
|
var node = _ref5.node;
|
|
9297
9313
|
|
|
9298
|
-
return
|
|
9314
|
+
return React.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9299
9315
|
},
|
|
9300
9316
|
slideshow: function slideshow(_ref6) {
|
|
9301
9317
|
var node = _ref6.node;
|
|
9302
9318
|
var slides = node.slides;
|
|
9303
9319
|
|
|
9304
|
-
return
|
|
9320
|
+
return React.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9305
9321
|
},
|
|
9306
9322
|
sidebar: function sidebar(_ref7) {
|
|
9307
9323
|
var node = _ref7.node;
|
|
9308
9324
|
var caption = node.caption,
|
|
9309
9325
|
content = node.content;
|
|
9310
9326
|
|
|
9311
|
-
return
|
|
9327
|
+
return React.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9312
9328
|
},
|
|
9313
9329
|
datatable: function datatable(_ref8) {
|
|
9314
9330
|
var node = _ref8.node;
|
|
9315
9331
|
var table = node.table;
|
|
9316
9332
|
|
|
9317
|
-
return
|
|
9333
|
+
return React.createElement(TableShow, { rows: table.rows });
|
|
9318
9334
|
},
|
|
9319
9335
|
media: function media(_ref9) {
|
|
9320
9336
|
var node = _ref9.node;
|
|
9321
9337
|
|
|
9322
|
-
return
|
|
9338
|
+
return React.createElement(Media, { node: node, client: client });
|
|
9323
9339
|
},
|
|
9324
9340
|
iframe: function iframe(_ref10) {
|
|
9325
9341
|
var node = _ref10.node;
|
|
9326
9342
|
|
|
9327
|
-
return
|
|
9343
|
+
return React.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9328
9344
|
},
|
|
9329
9345
|
video: function video(_ref11) {
|
|
9330
9346
|
var node = _ref11.node;
|
|
9331
9347
|
|
|
9332
|
-
return
|
|
9348
|
+
return React.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9333
9349
|
},
|
|
9334
9350
|
audio: function audio(_ref12) {
|
|
9335
9351
|
var node = _ref12.node;
|
|
9336
9352
|
|
|
9337
|
-
return
|
|
9353
|
+
return React.createElement(Audio, { node: node });
|
|
9338
9354
|
},
|
|
9339
9355
|
poll: function poll(_ref13) {
|
|
9340
9356
|
var node = _ref13.node;
|
|
9341
9357
|
|
|
9342
|
-
return
|
|
9358
|
+
return React.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9343
9359
|
},
|
|
9344
9360
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9345
9361
|
var node = _ref14.node;
|
|
9346
9362
|
|
|
9347
|
-
return
|
|
9363
|
+
return React.createElement(Poll$1, {
|
|
9348
9364
|
node: node,
|
|
9349
9365
|
client: client,
|
|
9350
9366
|
pageview: pageview,
|
|
@@ -9358,35 +9374,35 @@ var getSerializers = function getSerializers() {
|
|
|
9358
9374
|
var node = _ref15.node;
|
|
9359
9375
|
var quizzes = node.quizzes;
|
|
9360
9376
|
|
|
9361
|
-
return
|
|
9377
|
+
return React.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9362
9378
|
},
|
|
9363
9379
|
leads: function leads(_ref16) {
|
|
9364
9380
|
var node = _ref16.node;
|
|
9365
9381
|
var leadID = node.leadID;
|
|
9366
9382
|
|
|
9367
9383
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9368
|
-
return
|
|
9384
|
+
return React.createElement(Leads, { url: url });
|
|
9369
9385
|
},
|
|
9370
9386
|
slideshows: function slideshows(_ref17) {
|
|
9371
9387
|
var node = _ref17.node;
|
|
9372
9388
|
|
|
9373
|
-
return
|
|
9389
|
+
return React.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9374
9390
|
},
|
|
9375
9391
|
nativeAd: function nativeAd(_ref18) {
|
|
9376
9392
|
var node = _ref18.node;
|
|
9377
9393
|
|
|
9378
|
-
return
|
|
9394
|
+
return React.createElement(NativeAd, { node: node });
|
|
9379
9395
|
},
|
|
9380
9396
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
9381
9397
|
var node = _ref19.node;
|
|
9382
9398
|
|
|
9383
|
-
return
|
|
9399
|
+
return React.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9384
9400
|
},
|
|
9385
9401
|
hrtag: function hrtag() {
|
|
9386
|
-
return
|
|
9402
|
+
return React.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9387
9403
|
},
|
|
9388
9404
|
brtag: function brtag() {
|
|
9389
|
-
return
|
|
9405
|
+
return React.createElement('br', { className: 'line-break' });
|
|
9390
9406
|
},
|
|
9391
9407
|
formstack: function formstack(_ref20) {
|
|
9392
9408
|
var node = _ref20.node;
|
|
@@ -9394,24 +9410,24 @@ var getSerializers = function getSerializers() {
|
|
|
9394
9410
|
Caption = node.Caption,
|
|
9395
9411
|
needSegmentSupport = node.needSegmentSupport;
|
|
9396
9412
|
|
|
9397
|
-
return
|
|
9413
|
+
return React.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
9398
9414
|
},
|
|
9399
9415
|
multimedia: function multimedia(_ref21) {
|
|
9400
9416
|
var node = _ref21.node;
|
|
9401
9417
|
|
|
9402
|
-
return
|
|
9418
|
+
return React.createElement(MultiMedia, { node: node, client: client });
|
|
9403
9419
|
}
|
|
9404
9420
|
},
|
|
9405
9421
|
marks: {
|
|
9406
9422
|
superscript: function superscript(props) {
|
|
9407
|
-
return
|
|
9423
|
+
return React.createElement(
|
|
9408
9424
|
'sup',
|
|
9409
9425
|
null,
|
|
9410
9426
|
props.children
|
|
9411
9427
|
);
|
|
9412
9428
|
},
|
|
9413
9429
|
subscript: function subscript(props) {
|
|
9414
|
-
return
|
|
9430
|
+
return React.createElement(
|
|
9415
9431
|
'sub',
|
|
9416
9432
|
null,
|
|
9417
9433
|
props.children
|
|
@@ -9427,7 +9443,7 @@ var getSerializers = function getSerializers() {
|
|
|
9427
9443
|
if (href && href.charAt(0) === '#') {
|
|
9428
9444
|
var elementId = href.slice(1);
|
|
9429
9445
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9430
|
-
return
|
|
9446
|
+
return React.createElement(
|
|
9431
9447
|
'a',
|
|
9432
9448
|
{ onClick: function onClick() {
|
|
9433
9449
|
return ScrollToElement(elementId);
|
|
@@ -9437,7 +9453,7 @@ var getSerializers = function getSerializers() {
|
|
|
9437
9453
|
}
|
|
9438
9454
|
|
|
9439
9455
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9440
|
-
return
|
|
9456
|
+
return React.createElement(
|
|
9441
9457
|
'a',
|
|
9442
9458
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
9443
9459
|
children
|
|
@@ -9445,7 +9461,7 @@ var getSerializers = function getSerializers() {
|
|
|
9445
9461
|
},
|
|
9446
9462
|
alignleft: function alignleft(_ref22) {
|
|
9447
9463
|
var children = _ref22.children;
|
|
9448
|
-
return
|
|
9464
|
+
return React.createElement(
|
|
9449
9465
|
'div',
|
|
9450
9466
|
{ style: { textAlign: 'left' } },
|
|
9451
9467
|
children
|
|
@@ -9453,7 +9469,7 @@ var getSerializers = function getSerializers() {
|
|
|
9453
9469
|
},
|
|
9454
9470
|
alignright: function alignright(_ref23) {
|
|
9455
9471
|
var children = _ref23.children;
|
|
9456
|
-
return
|
|
9472
|
+
return React.createElement(
|
|
9457
9473
|
'div',
|
|
9458
9474
|
{ style: { textAlign: 'right' } },
|
|
9459
9475
|
children
|
|
@@ -9461,7 +9477,7 @@ var getSerializers = function getSerializers() {
|
|
|
9461
9477
|
},
|
|
9462
9478
|
aligncenter: function aligncenter(_ref24) {
|
|
9463
9479
|
var children = _ref24.children;
|
|
9464
|
-
return
|
|
9480
|
+
return React.createElement(
|
|
9465
9481
|
'div',
|
|
9466
9482
|
{ style: { textAlign: 'center' } },
|
|
9467
9483
|
children
|
|
@@ -9469,7 +9485,7 @@ var getSerializers = function getSerializers() {
|
|
|
9469
9485
|
},
|
|
9470
9486
|
alignjustify: function alignjustify(_ref25) {
|
|
9471
9487
|
var children = _ref25.children;
|
|
9472
|
-
return
|
|
9488
|
+
return React.createElement(
|
|
9473
9489
|
'div',
|
|
9474
9490
|
{ style: { textAlign: 'justify' } },
|
|
9475
9491
|
children
|
|
@@ -9479,7 +9495,7 @@ var getSerializers = function getSerializers() {
|
|
|
9479
9495
|
var children = props.children,
|
|
9480
9496
|
color = props.mark.color;
|
|
9481
9497
|
|
|
9482
|
-
return
|
|
9498
|
+
return React.createElement(
|
|
9483
9499
|
'span',
|
|
9484
9500
|
{ style: { color: color ? color.hex : null } },
|
|
9485
9501
|
children
|