@mjhls/mjh-framework 1.0.777 → 1.0.779-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +26 -28
- package/dist/cjs/AD300x250x600.js +26 -28
- package/dist/cjs/AD728x90.js +29 -31
- package/dist/cjs/ADFloatingFooter.js +28 -30
- package/dist/cjs/ADFooter.js +14 -15
- package/dist/cjs/ADGutter.js +28 -30
- package/dist/cjs/{ADInfeed-d1eceaf2.js → ADInfeed-5b042ade.js} +13 -15
- package/dist/cjs/ADSkyscraper.js +28 -30
- package/dist/cjs/ADSponsoredResources.js +28 -30
- package/dist/cjs/ADWebcast.js +28 -30
- package/dist/cjs/ADWelcome.js +29 -31
- package/dist/cjs/{ADlgInfeed-24c693d8.js → ADlgInfeed-e92b6f9f.js} +10 -11
- package/dist/cjs/AccordionPanel.js +29 -31
- package/dist/cjs/AdSlot.js +31 -33
- package/dist/cjs/AdSlotsProvider.js +15 -17
- package/dist/cjs/AlphabeticList.js +24 -25
- package/dist/cjs/ArticleCarousel.js +23 -24
- package/dist/cjs/ArticleProgramLandingPage.js +55 -57
- package/dist/cjs/ArticleSeriesLandingPage.js +37 -39
- package/dist/cjs/ArticleSeriesListing.js +60 -61
- package/dist/cjs/Auth.js +333 -820
- package/dist/cjs/{AuthorComponent-5fa89df5.js → AuthorComponent-bb831b74.js} +13 -14
- package/dist/cjs/Beam.js +8 -9
- package/dist/cjs/{BlockContent-eca358e4.js → BlockContent-091a991f.js} +24 -25
- package/dist/cjs/Breadcrumbs.js +27 -29
- package/dist/cjs/CMEDeck.js +82 -83
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +32 -36
- package/dist/cjs/Column3.js +54 -58
- package/dist/cjs/ConferenceArticleCard.js +23 -24
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +93 -98
- package/dist/cjs/DeckQueue.js +87 -91
- package/dist/cjs/{Dfp-a17e00fa.js → Dfp-b807d8fa.js} +31 -32
- package/dist/cjs/EventsDeck.js +131 -138
- package/dist/cjs/ExternalResources.js +77 -79
- package/dist/cjs/Feature.js +25 -27
- package/dist/cjs/ForbesHero.js +40 -41
- package/dist/cjs/GridContent.js +177 -182
- package/dist/cjs/GridHero.js +42 -43
- package/dist/cjs/GroupDeck.js +58 -59
- package/dist/cjs/HamMagazine.js +130 -136
- package/dist/cjs/Header.js +11 -13
- package/dist/cjs/Hero.js +12 -13
- package/dist/cjs/HighlightenVideo.js +17 -18
- package/dist/cjs/HorizontalArticleListing.js +69 -71
- package/dist/cjs/HorizontalHero.js +25 -26
- package/dist/cjs/IssueContentDeck.js +72 -77
- package/dist/cjs/IssueDeck.js +70 -75
- package/dist/cjs/IssueLanding.js +39 -41
- package/dist/cjs/LeftNav.js +35 -38
- package/dist/cjs/MasterDeck.js +69 -71
- package/dist/cjs/MediaSeriesLanding.js +38 -41
- package/dist/cjs/NavDvm.js +74 -80
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +137 -143
- package/dist/cjs/NavNative.js +126 -135
- package/dist/cjs/NavNormal.js +47 -53
- package/dist/cjs/OncliveHero.js +20 -20
- package/dist/cjs/OncliveLargeHero.js +66 -67
- package/dist/cjs/PageFilter.js +14 -15
- package/dist/cjs/PartnerDetailListing.js +105 -107
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +19 -21
- package/dist/cjs/PubSection.js +38 -40
- package/dist/cjs/PubToc.js +15 -17
- package/dist/cjs/PublicationDeck.js +61 -66
- package/dist/cjs/PublicationLanding.js +175 -105
- package/dist/cjs/QueueDeckExpanded.js +291 -292
- package/dist/cjs/RecentNews.js +23 -24
- package/dist/cjs/RelatedContent.js +24 -25
- package/dist/cjs/RelatedTopicsDropdown.js +19 -22
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +18 -22
- package/dist/cjs/Segment.js +6 -7
- package/dist/cjs/SeriesListingDeck.js +37 -37
- package/dist/cjs/{SeriesSlider-193a2958.js → SeriesSlider-f662f1f5.js} +37 -38
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +34 -36
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-45c54bed.js → SocialSearchComponent-8dd468fd.js} +36 -40
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +57 -62
- package/dist/cjs/TaxonomyDescription.js +52 -54
- package/dist/cjs/TemplateNormal.js +72 -74
- package/dist/cjs/ThumbnailCard.js +20 -22
- package/dist/cjs/Ustream.js +26 -27
- package/dist/cjs/VerticalHero.js +17 -18
- package/dist/cjs/VideoProgramLandingPage.js +71 -76
- package/dist/cjs/VideoSeriesCard.js +31 -32
- package/dist/cjs/VideoSeriesFilter.js +18 -19
- package/dist/cjs/VideoSeriesLandingPage.js +45 -47
- package/dist/cjs/VideoSeriesListing.js +77 -78
- package/dist/cjs/View.js +266 -269
- package/dist/cjs/YahooHero.js +39 -40
- package/dist/cjs/YoutubeGroup.js +62 -63
- package/dist/cjs/{_is-array-63ae4740.js → _is-array-754e012d.js} +6 -6
- package/dist/cjs/{_iter-detect-2613ffa1.js → _iter-detect-60b2f026.js} +2 -2
- package/dist/cjs/{_object-sap-c5bd707d.js → _object-sap-5e74ba08.js} +1 -1
- package/dist/cjs/{_object-to-array-bec5fcf2.js → _object-to-array-5762f850.js} +1 -1
- package/dist/cjs/{_to-object-821a2927.js → _to-object-329a650b.js} +4 -4
- package/dist/cjs/{asyncToGenerator-2edcb6ad.js → asyncToGenerator-140e5f89.js} +61 -13
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
- package/dist/cjs/{core.get-iterator-method-b4615fd3.js → core.get-iterator-method-f62321d4.js} +2 -2
- package/dist/cjs/{define-property-aff11f8a.js → define-property-f4d12f4e.js} +1 -1
- package/dist/cjs/{defineProperty-d6fbb280.js → defineProperty-55548b25.js} +1 -1
- package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
- package/dist/cjs/{es6.string.iterator-20d42c53.js → es6.string.iterator-cc0bbaa4.js} +2 -2
- package/dist/cjs/{extends-1e24fc8d.js → extends-60837c34.js} +1 -1
- package/dist/cjs/getQuery.js +1 -1
- package/dist/cjs/getRelatedArticle.js +75 -138
- package/dist/cjs/getRootDocGroup.js +6 -7
- package/dist/cjs/getSerializers.js +43 -44
- package/dist/cjs/{getTargeting-497b581d.js → getTargeting-9af0ef69.js} +3 -3
- package/dist/cjs/getTargeting.js +7 -7
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-4d74ffd6.js → index-3294d3bc.js} +41 -40
- package/dist/cjs/{index-1846058a.js → index-76417d82.js} +991 -941
- package/dist/cjs/{index-0e4427c8.js → index-8bf6c863.js} +11 -12
- package/dist/cjs/{index-d48b231c.js → index-be0c82be.js} +25 -31
- package/dist/cjs/{index-80f57cff.js → index-da796b8c.js} +15 -17
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-8123cf40.js → index.esm-4d410430.js} +20 -20
- package/dist/cjs/{index.esm-3b9b8952.js → index.esm-66ffa47a.js} +9 -4
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +160 -164
- package/dist/cjs/{inherits-2eb23889.js → inherits-c9f99d47.js} +5 -5
- package/dist/cjs/{keys-95c064c9.js → keys-a586b7a0.js} +2 -2
- package/dist/cjs/{lodash-4ef21f0f.js → lodash-fc2922d0.js} +23 -72
- package/dist/cjs/{main-dc082238.js → main-02daeefe.js} +80 -116
- package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
- package/dist/cjs/{slicedToArray-db24842a.js → slicedToArray-8f385299.js} +4 -4
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/{stringify-01cf47f7.js → stringify-7c5aff47.js} +1 -1
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-cf0865fc.js → toConsumableArray-9a3476fe.js} +4 -4
- package/dist/cjs/{typeof-97065d40.js → typeof-725500bc.js} +7 -7
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
- package/dist/cjs/{visibility-sensor-8b54af99.js → visibility-sensor-0c45a583.js} +5 -7
- package/dist/cjs/{web.dom.iterable-4480325a.js → web.dom.iterable-a0e279c1.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +23 -24
- package/dist/esm/AD300x250x600.js +23 -24
- package/dist/esm/AD728x90.js +26 -27
- package/dist/esm/ADFloatingFooter.js +25 -26
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +25 -26
- package/dist/esm/{ADInfeed-c12cd1ce.js → ADInfeed-eb7bdd41.js} +9 -9
- package/dist/esm/ADSkyscraper.js +25 -26
- package/dist/esm/ADSponsoredResources.js +25 -26
- package/dist/esm/ADWebcast.js +25 -26
- package/dist/esm/ADWelcome.js +26 -27
- package/dist/esm/{ADlgInfeed-246a8787.js → ADlgInfeed-f2ac31d1.js} +8 -8
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +22 -23
- package/dist/esm/AdSlotsProvider.js +12 -13
- package/dist/esm/AlphabeticList.js +21 -21
- package/dist/esm/ArticleCarousel.js +20 -20
- package/dist/esm/ArticleProgramLandingPage.js +52 -53
- package/dist/esm/ArticleSeriesLandingPage.js +34 -35
- package/dist/esm/ArticleSeriesListing.js +55 -55
- package/dist/esm/Auth.js +316 -799
- package/dist/esm/{AuthorComponent-c7ff069f.js → AuthorComponent-34b16174.js} +11 -11
- package/dist/esm/Beam.js +8 -9
- package/dist/esm/{BlockContent-d8cd739c.js → BlockContent-e9b4ddcf.js} +4 -4
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/CMEDeck.js +78 -79
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +26 -27
- package/dist/esm/Column3.js +47 -48
- package/dist/esm/ConferenceArticleCard.js +19 -19
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +75 -76
- package/dist/esm/DeckQueue.js +65 -65
- package/dist/esm/{Dfp-988dbcaa.js → Dfp-ebc4b22f.js} +21 -21
- package/dist/esm/EventsDeck.js +84 -84
- package/dist/esm/ExternalResources.js +71 -72
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +34 -34
- package/dist/esm/GridContent.js +139 -140
- package/dist/esm/GridHero.js +36 -36
- package/dist/esm/GroupDeck.js +46 -46
- package/dist/esm/HamMagazine.js +104 -105
- package/dist/esm/Header.js +7 -7
- package/dist/esm/Hero.js +9 -9
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +66 -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 +36 -37
- package/dist/esm/LeftNav.js +31 -32
- package/dist/esm/MasterDeck.js +63 -64
- package/dist/esm/MediaSeriesLanding.js +31 -32
- package/dist/esm/NavDvm.js +56 -57
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +113 -114
- package/dist/esm/NavNative.js +99 -100
- package/dist/esm/NavNormal.js +35 -36
- package/dist/esm/OncliveHero.js +17 -16
- package/dist/esm/OncliveLargeHero.js +59 -59
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +101 -102
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PubSection.js +35 -36
- package/dist/esm/PubToc.js +12 -13
- package/dist/esm/PublicationDeck.js +38 -38
- package/dist/esm/PublicationLanding.js +139 -65
- package/dist/esm/QueueDeckExpanded.js +271 -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 +6 -7
- package/dist/esm/SeriesListingDeck.js +31 -31
- package/dist/esm/{SeriesSlider-6a1081ff.js → SeriesSlider-9245785f.js} +27 -27
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +30 -31
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-c3216d1a.js → SocialSearchComponent-a2ae84d1.js} +28 -28
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +41 -41
- package/dist/esm/TaxonomyDescription.js +47 -48
- package/dist/esm/TemplateNormal.js +66 -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 +61 -62
- package/dist/esm/VideoSeriesCard.js +24 -24
- package/dist/esm/VideoSeriesFilter.js +15 -16
- package/dist/esm/VideoSeriesLandingPage.js +38 -39
- package/dist/esm/VideoSeriesListing.js +71 -71
- package/dist/esm/View.js +250 -249
- package/dist/esm/YahooHero.js +34 -34
- package/dist/esm/YoutubeGroup.js +46 -46
- package/dist/esm/{_is-array-674f71ec.js → _is-array-58e95429.js} +6 -6
- package/dist/esm/{_iter-detect-48516cd3.js → _iter-detect-5d49a330.js} +2 -2
- package/dist/esm/{_object-sap-fd3054d0.js → _object-sap-964b6feb.js} +1 -1
- package/dist/esm/{_object-to-array-8f409e54.js → _object-to-array-7e804fce.js} +1 -1
- package/dist/esm/{_to-object-97770c52.js → _to-object-a4107da3.js} +5 -5
- package/dist/esm/{asyncToGenerator-2bd4099a.js → asyncToGenerator-fc1c2e29.js} +53 -9
- package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/{core.get-iterator-method-d1d5ed02.js → core.get-iterator-method-e1de7503.js} +2 -2
- package/dist/esm/{define-property-ec6d528d.js → define-property-8af5f002.js} +1 -1
- package/dist/esm/{defineProperty-ea516b15.js → defineProperty-94fd8bfc.js} +1 -1
- package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
- package/dist/esm/{es6.string.iterator-aa6068a3.js → es6.string.iterator-c990c18c.js} +3 -3
- package/dist/esm/{extends-31d65aba.js → extends-eb69e8ac.js} +1 -1
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getRelatedArticle.js +70 -133
- package/dist/esm/getRootDocGroup.js +6 -7
- package/dist/esm/getSerializers.js +43 -44
- package/dist/esm/{getTargeting-2d402d66.js → getTargeting-7211f12c.js} +2 -2
- package/dist/esm/getTargeting.js +7 -7
- package/dist/esm/{index-752d1dae.js → index-5f9f807a.js} +10 -10
- package/dist/esm/{index-3f5c03b2.js → index-73819142.js} +25 -31
- package/dist/esm/{index-888f9253.js → index-a9e53f80.js} +6 -6
- package/dist/esm/{index-f9cda735.js → index-c1374f98.js} +933 -876
- package/dist/esm/{index-ccb770c7.js → index-ef6d5dcf.js} +41 -40
- package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
- package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
- package/dist/esm/{index.esm-d6f88d94.js → index.esm-b08f4b04.js} +9 -4
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-8016b507.js → index.esm-fd746768.js} +18 -17
- package/dist/esm/index.js +129 -130
- package/dist/esm/{inherits-5906fbea.js → inherits-fb9b6e8f.js} +5 -5
- package/dist/esm/{keys-a0b0c7a4.js → keys-8eda7a5c.js} +2 -2
- package/dist/esm/{lodash-ad27652f.js → lodash-17fdfebb.js} +23 -72
- package/dist/esm/{main-1450d277.js → main-e4a934b2.js} +78 -113
- package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
- package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-a7d5c5c7.js} +20 -20
- package/dist/esm/{slicedToArray-cdeaee08.js → slicedToArray-641f241f.js} +4 -4
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/{stringify-d4839bab.js → stringify-4330ccdc.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-fa2dcda7.js → toConsumableArray-43aa614d.js} +4 -4
- package/dist/esm/{typeof-e9cea9e8.js → typeof-6435ba1c.js} +7 -7
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
- package/dist/esm/{visibility-sensor-082c757b.js → visibility-sensor-0baa4eea.js} +2 -2
- package/dist/esm/{web.dom.iterable-035980f3.js → web.dom.iterable-4439f05a.js} +3 -3
- package/package.json +3 -3
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/_set-species-a8cfdb84.js +0 -57
- package/dist/esm/_set-species-494ed292.js +0 -52
|
@@ -1,37 +1,37 @@
|
|
|
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';
|
|
6
|
-
import Router, { useRouter } from 'next/router';
|
|
7
|
-
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
8
|
-
import PropTypes from 'prop-types';
|
|
9
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
2
|
+
import { _ as _export, a as _core } from './_to-object-a4107da3.js';
|
|
3
|
+
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
|
|
4
|
+
import { _ as _extends$1 } from './extends-eb69e8ac.js';
|
|
5
|
+
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-fb9b6e8f.js';
|
|
6
|
+
import { _ as _typeof } from './typeof-6435ba1c.js';
|
|
7
|
+
import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
8
|
+
import { l as lib_3 } from './index-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';
|
|
13
|
+
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';
|
|
12
19
|
import Segment from './Segment.js';
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { _ as _typeof$1 } from './typeof-e9cea9e8.js';
|
|
18
|
-
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-b43c695a.js';
|
|
20
|
+
import Beam from './Beam.js';
|
|
21
|
+
import DFPAdSlot from './AdSlot.js';
|
|
22
|
+
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
23
|
+
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
19
24
|
import GroupDeck from './GroupDeck.js';
|
|
20
|
-
import {
|
|
25
|
+
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
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';
|
|
21
30
|
import SocialShare from './SocialShare.js';
|
|
22
|
-
import { _ as
|
|
23
|
-
import { _ as _objectToArray } from './_object-to-array-8f409e54.js';
|
|
24
|
-
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-fa2dcda7.js';
|
|
31
|
+
import { _ as _objectToArray } from './_object-to-array-7e804fce.js';
|
|
25
32
|
import Pagination from 'react-bootstrap/Pagination';
|
|
26
33
|
import Button$1 from 'react-bootstrap/Button';
|
|
27
|
-
import
|
|
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';
|
|
34
|
+
import Figure$1$1 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__default.createElement(
|
|
76
76
|
'div',
|
|
77
77
|
{ className: 'mt-3 mb-3' },
|
|
78
|
-
|
|
78
|
+
React__default.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__default.createElement(
|
|
85
85
|
Carousel.Item,
|
|
86
86
|
{ key: slide._key },
|
|
87
|
-
|
|
88
|
-
slide.caption &&
|
|
87
|
+
React__default.createElement('img', { src: slide.asset && urlFor(slide.asset, builder).url(), alt: slide.alt && slide.alt, style: { width: '100%' } }),
|
|
88
|
+
slide.caption && React__default.createElement(
|
|
89
89
|
'p',
|
|
90
90
|
{ className: 'p-2' },
|
|
91
91
|
slide.caption
|
|
@@ -96,18 +96,21 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
96
96
|
);
|
|
97
97
|
};
|
|
98
98
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
var isArray = Array.isArray;
|
|
100
|
+
var keyList = Object.keys;
|
|
101
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
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
|
-
|
|
107
|
+
var arrA = isArray(a)
|
|
108
|
+
, arrB = isArray(b)
|
|
109
|
+
, i
|
|
110
|
+
, length
|
|
111
|
+
, key;
|
|
108
112
|
|
|
109
|
-
|
|
110
|
-
if (Array.isArray(a)) {
|
|
113
|
+
if (arrA && arrB) {
|
|
111
114
|
length = a.length;
|
|
112
115
|
if (length != b.length) return false;
|
|
113
116
|
for (i = length; i-- !== 0;)
|
|
@@ -115,29 +118,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
115
118
|
return true;
|
|
116
119
|
}
|
|
117
120
|
|
|
121
|
+
if (arrA != arrB) return false;
|
|
118
122
|
|
|
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();
|
|
119
127
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
if (
|
|
128
|
+
var regexpA = a instanceof RegExp
|
|
129
|
+
, regexpB = b instanceof RegExp;
|
|
130
|
+
if (regexpA != regexpB) return false;
|
|
131
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
123
132
|
|
|
124
|
-
keys =
|
|
133
|
+
var keys = keyList(a);
|
|
125
134
|
length = keys.length;
|
|
126
|
-
|
|
135
|
+
|
|
136
|
+
if (length !== keyList(b).length)
|
|
137
|
+
return false;
|
|
127
138
|
|
|
128
139
|
for (i = length; i-- !== 0;)
|
|
129
|
-
if (!
|
|
140
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
130
141
|
|
|
131
142
|
for (i = length; i-- !== 0;) {
|
|
132
|
-
|
|
133
|
-
|
|
143
|
+
key = keys[i];
|
|
134
144
|
if (!equal(a[key], b[key])) return false;
|
|
135
145
|
}
|
|
136
146
|
|
|
137
147
|
return true;
|
|
138
148
|
}
|
|
139
149
|
|
|
140
|
-
// true if both NaN, false otherwise
|
|
141
150
|
return a!==a && b!==b;
|
|
142
151
|
};
|
|
143
152
|
|
|
@@ -675,14 +684,14 @@ function coerce(val) {
|
|
|
675
684
|
return val;
|
|
676
685
|
}
|
|
677
686
|
});
|
|
678
|
-
debug.coerce;
|
|
679
|
-
debug.disable;
|
|
680
|
-
debug.enable;
|
|
681
|
-
debug.enabled;
|
|
682
|
-
debug.humanize;
|
|
683
|
-
debug.names;
|
|
684
|
-
debug.skips;
|
|
685
|
-
debug.formatters;
|
|
687
|
+
var debug_1 = debug.coerce;
|
|
688
|
+
var debug_2 = debug.disable;
|
|
689
|
+
var debug_3 = debug.enable;
|
|
690
|
+
var debug_4 = debug.enabled;
|
|
691
|
+
var debug_5 = debug.humanize;
|
|
692
|
+
var debug_6 = debug.names;
|
|
693
|
+
var debug_7 = debug.skips;
|
|
694
|
+
var debug_8 = debug.formatters;
|
|
686
695
|
|
|
687
696
|
var browser = createCommonjsModule(function (module, exports) {
|
|
688
697
|
/**
|
|
@@ -871,13 +880,13 @@ function localstorage() {
|
|
|
871
880
|
} catch (e) {}
|
|
872
881
|
}
|
|
873
882
|
});
|
|
874
|
-
browser.log;
|
|
875
|
-
browser.formatArgs;
|
|
876
|
-
browser.save;
|
|
877
|
-
browser.load;
|
|
878
|
-
browser.useColors;
|
|
879
|
-
browser.storage;
|
|
880
|
-
browser.colors;
|
|
883
|
+
var browser_1 = browser.log;
|
|
884
|
+
var browser_2 = browser.formatArgs;
|
|
885
|
+
var browser_3 = browser.save;
|
|
886
|
+
var browser_4 = browser.load;
|
|
887
|
+
var browser_5 = browser.useColors;
|
|
888
|
+
var browser_6 = browser.storage;
|
|
889
|
+
var browser_7 = browser.colors;
|
|
881
890
|
|
|
882
891
|
// MIT lisence
|
|
883
892
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1152,14 +1161,14 @@ function init (debug) {
|
|
|
1152
1161
|
|
|
1153
1162
|
exports.enable(load());
|
|
1154
1163
|
});
|
|
1155
|
-
node.init;
|
|
1156
|
-
node.log;
|
|
1157
|
-
node.formatArgs;
|
|
1158
|
-
node.save;
|
|
1159
|
-
node.load;
|
|
1160
|
-
node.useColors;
|
|
1161
|
-
node.colors;
|
|
1162
|
-
node.inspectOpts;
|
|
1164
|
+
var node_1 = node.init;
|
|
1165
|
+
var node_2 = node.log;
|
|
1166
|
+
var node_3 = node.formatArgs;
|
|
1167
|
+
var node_4 = node.save;
|
|
1168
|
+
var node_5 = node.load;
|
|
1169
|
+
var node_6 = node.useColors;
|
|
1170
|
+
var node_7 = node.colors;
|
|
1171
|
+
var node_8 = node.inspectOpts;
|
|
1163
1172
|
|
|
1164
1173
|
var src = createCommonjsModule(function (module) {
|
|
1165
1174
|
/**
|
|
@@ -1560,239 +1569,199 @@ module.exports = exports['default'];
|
|
|
1560
1569
|
|
|
1561
1570
|
var youTubePlayer = unwrapExports(dist);
|
|
1562
1571
|
|
|
1563
|
-
function
|
|
1564
|
-
|
|
1565
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1566
|
-
|
|
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); } }
|
|
1568
|
-
|
|
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); }; }
|
|
1572
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
1576
1573
|
|
|
1577
|
-
function
|
|
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; } }
|
|
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; };
|
|
1582
1575
|
|
|
1583
|
-
function
|
|
1576
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1584
1577
|
|
|
1585
|
-
function
|
|
1578
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
1586
1579
|
|
|
1587
|
-
function
|
|
1580
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
1588
1581
|
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
*
|
|
1592
|
-
*
|
|
1593
|
-
* @param {Object}
|
|
1594
|
-
* @param {Object} props
|
|
1582
|
+
/**
|
|
1583
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1584
|
+
*
|
|
1585
|
+
* @param {Object} prevProps
|
|
1586
|
+
* @param {Object} props
|
|
1595
1587
|
*/
|
|
1596
|
-
|
|
1597
1588
|
function shouldUpdateVideo(prevProps, props) {
|
|
1598
1589
|
// A changing video should always trigger an update
|
|
1599
1590
|
if (prevProps.videoId !== props.videoId) {
|
|
1600
1591
|
return true;
|
|
1601
|
-
}
|
|
1602
|
-
// update.
|
|
1603
|
-
|
|
1592
|
+
}
|
|
1604
1593
|
|
|
1594
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1595
|
+
// update.
|
|
1605
1596
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1606
1597
|
var vars = props.opts.playerVars || {};
|
|
1598
|
+
|
|
1607
1599
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1608
1600
|
}
|
|
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
|
|
1615
|
-
*/
|
|
1616
|
-
|
|
1617
1601
|
|
|
1602
|
+
/**
|
|
1603
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
1604
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1605
|
+
* player reset is necessary.
|
|
1606
|
+
*
|
|
1607
|
+
* @param {Object} opts
|
|
1608
|
+
*/
|
|
1618
1609
|
function filterResetOptions(opts) {
|
|
1619
|
-
return
|
|
1620
|
-
playerVars:
|
|
1610
|
+
return _extends({}, opts, {
|
|
1611
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1621
1612
|
autoplay: 0,
|
|
1622
1613
|
start: 0,
|
|
1623
1614
|
end: 0
|
|
1624
|
-
}
|
|
1615
|
+
})
|
|
1625
1616
|
});
|
|
1626
1617
|
}
|
|
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
|
|
1635
|
-
*/
|
|
1636
|
-
|
|
1637
1618
|
|
|
1619
|
+
/**
|
|
1620
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1621
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1622
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1623
|
+
* those.
|
|
1624
|
+
*
|
|
1625
|
+
* @param {Object} prevProps
|
|
1626
|
+
* @param {Object} props
|
|
1627
|
+
*/
|
|
1638
1628
|
function shouldResetPlayer(prevProps, props) {
|
|
1639
1629
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1640
1630
|
}
|
|
1641
|
-
/**
|
|
1642
|
-
* Check whether a props change should result in an id or className update.
|
|
1643
|
-
*
|
|
1644
|
-
* @param {Object} prevProps
|
|
1645
|
-
* @param {Object} props
|
|
1646
|
-
*/
|
|
1647
|
-
|
|
1648
1631
|
|
|
1632
|
+
/**
|
|
1633
|
+
* Check whether a props change should result in an id or className update.
|
|
1634
|
+
*
|
|
1635
|
+
* @param {Object} prevProps
|
|
1636
|
+
* @param {Object} props
|
|
1637
|
+
*/
|
|
1649
1638
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1650
1639
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1651
1640
|
}
|
|
1652
1641
|
|
|
1653
|
-
var YouTube =
|
|
1642
|
+
var YouTube = function (_React$Component) {
|
|
1654
1643
|
_inherits(YouTube, _React$Component);
|
|
1655
1644
|
|
|
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
|
-
*/
|
|
1663
1645
|
function YouTube(props) {
|
|
1664
|
-
var _this;
|
|
1665
|
-
|
|
1666
1646
|
_classCallCheck(this, YouTube);
|
|
1667
1647
|
|
|
1668
|
-
_this =
|
|
1648
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1669
1649
|
|
|
1670
|
-
|
|
1650
|
+
_this.onPlayerReady = function (event) {
|
|
1671
1651
|
return _this.props.onReady(event);
|
|
1672
|
-
}
|
|
1652
|
+
};
|
|
1673
1653
|
|
|
1674
|
-
|
|
1654
|
+
_this.onPlayerError = function (event) {
|
|
1675
1655
|
return _this.props.onError(event);
|
|
1676
|
-
}
|
|
1656
|
+
};
|
|
1677
1657
|
|
|
1678
|
-
|
|
1658
|
+
_this.onPlayerStateChange = function (event) {
|
|
1679
1659
|
_this.props.onStateChange(event);
|
|
1680
|
-
|
|
1681
1660
|
switch (event.data) {
|
|
1661
|
+
|
|
1682
1662
|
case YouTube.PlayerState.ENDED:
|
|
1683
1663
|
_this.props.onEnd(event);
|
|
1684
|
-
|
|
1685
1664
|
break;
|
|
1686
1665
|
|
|
1687
1666
|
case YouTube.PlayerState.PLAYING:
|
|
1688
1667
|
_this.props.onPlay(event);
|
|
1689
|
-
|
|
1690
1668
|
break;
|
|
1691
1669
|
|
|
1692
1670
|
case YouTube.PlayerState.PAUSED:
|
|
1693
1671
|
_this.props.onPause(event);
|
|
1694
|
-
|
|
1695
1672
|
break;
|
|
1696
1673
|
}
|
|
1697
|
-
}
|
|
1674
|
+
};
|
|
1698
1675
|
|
|
1699
|
-
|
|
1676
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1700
1677
|
return _this.props.onPlaybackRateChange(event);
|
|
1701
|
-
}
|
|
1678
|
+
};
|
|
1702
1679
|
|
|
1703
|
-
|
|
1680
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1704
1681
|
return _this.props.onPlaybackQualityChange(event);
|
|
1705
|
-
}
|
|
1682
|
+
};
|
|
1706
1683
|
|
|
1707
|
-
|
|
1684
|
+
_this.createPlayer = function () {
|
|
1708
1685
|
// do not attempt to create a player server-side, it won't work
|
|
1709
|
-
if (typeof document === 'undefined') return;
|
|
1710
|
-
|
|
1711
|
-
var playerOpts =
|
|
1686
|
+
if (typeof document === 'undefined') return;
|
|
1687
|
+
// create player
|
|
1688
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1712
1689
|
// preload the `videoId` video if one is already given
|
|
1713
1690
|
videoId: _this.props.videoId
|
|
1714
1691
|
});
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1692
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
1693
|
+
// attach event handlers
|
|
1718
1694
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1719
|
-
|
|
1720
1695
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1721
|
-
|
|
1722
1696
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1723
|
-
|
|
1724
1697
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1725
|
-
|
|
1726
1698
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1727
|
-
}
|
|
1699
|
+
};
|
|
1728
1700
|
|
|
1729
|
-
|
|
1701
|
+
_this.resetPlayer = function () {
|
|
1730
1702
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1731
|
-
}
|
|
1703
|
+
};
|
|
1732
1704
|
|
|
1733
|
-
|
|
1705
|
+
_this.updatePlayer = function () {
|
|
1734
1706
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1735
1707
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1736
1708
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1737
1709
|
});
|
|
1738
|
-
}
|
|
1739
|
-
|
|
1740
|
-
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1741
|
-
return _this.internalPlayer;
|
|
1742
|
-
});
|
|
1710
|
+
};
|
|
1743
1711
|
|
|
1744
|
-
|
|
1712
|
+
_this.updateVideo = function () {
|
|
1745
1713
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1746
1714
|
_this.internalPlayer.stopVideo();
|
|
1747
|
-
|
|
1748
1715
|
return;
|
|
1749
|
-
}
|
|
1750
|
-
|
|
1716
|
+
}
|
|
1751
1717
|
|
|
1718
|
+
// set queueing options
|
|
1752
1719
|
var autoplay = false;
|
|
1753
1720
|
var opts = {
|
|
1754
1721
|
videoId: _this.props.videoId
|
|
1755
1722
|
};
|
|
1756
|
-
|
|
1757
1723
|
if ('playerVars' in _this.props.opts) {
|
|
1758
1724
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1759
|
-
|
|
1760
1725
|
if ('start' in _this.props.opts.playerVars) {
|
|
1761
1726
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1762
1727
|
}
|
|
1763
|
-
|
|
1764
1728
|
if ('end' in _this.props.opts.playerVars) {
|
|
1765
1729
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1766
1730
|
}
|
|
1767
|
-
}
|
|
1768
|
-
|
|
1731
|
+
}
|
|
1769
1732
|
|
|
1733
|
+
// if autoplay is enabled loadVideoById
|
|
1770
1734
|
if (autoplay) {
|
|
1771
1735
|
_this.internalPlayer.loadVideoById(opts);
|
|
1772
|
-
|
|
1773
1736
|
return;
|
|
1774
|
-
}
|
|
1775
|
-
|
|
1776
|
-
|
|
1737
|
+
}
|
|
1738
|
+
// default behaviour just cues the video
|
|
1777
1739
|
_this.internalPlayer.cueVideoById(opts);
|
|
1778
|
-
}
|
|
1740
|
+
};
|
|
1779
1741
|
|
|
1780
|
-
|
|
1742
|
+
_this.refContainer = function (container) {
|
|
1781
1743
|
_this.container = container;
|
|
1782
|
-
}
|
|
1744
|
+
};
|
|
1783
1745
|
|
|
1784
1746
|
_this.container = null;
|
|
1785
1747
|
_this.internalPlayer = null;
|
|
1786
1748
|
return _this;
|
|
1787
1749
|
}
|
|
1788
1750
|
|
|
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
|
+
|
|
1789
1758
|
_createClass(YouTube, [{
|
|
1790
|
-
key:
|
|
1759
|
+
key: 'componentDidMount',
|
|
1791
1760
|
value: function componentDidMount() {
|
|
1792
1761
|
this.createPlayer();
|
|
1793
1762
|
}
|
|
1794
1763
|
}, {
|
|
1795
|
-
key:
|
|
1764
|
+
key: 'componentDidUpdate',
|
|
1796
1765
|
value: function componentDidUpdate(prevProps) {
|
|
1797
1766
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1798
1767
|
this.updatePlayer();
|
|
@@ -1807,58 +1776,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1807
1776
|
}
|
|
1808
1777
|
}
|
|
1809
1778
|
}, {
|
|
1810
|
-
key:
|
|
1779
|
+
key: 'componentWillUnmount',
|
|
1811
1780
|
value: function componentWillUnmount() {
|
|
1812
|
-
/**
|
|
1813
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
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.
|
|
1781
|
+
/**
|
|
1782
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
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.
|
|
1817
1786
|
*/
|
|
1818
1787
|
this.internalPlayer.destroy();
|
|
1819
1788
|
}
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
*
|
|
1823
|
-
*
|
|
1824
|
-
*
|
|
1789
|
+
|
|
1790
|
+
/**
|
|
1791
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1792
|
+
*
|
|
1793
|
+
* @param {Object} event
|
|
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.
|
|
1825
1855
|
*/
|
|
1826
1856
|
|
|
1827
1857
|
}, {
|
|
1828
|
-
key:
|
|
1858
|
+
key: 'render',
|
|
1829
1859
|
value: function render() {
|
|
1830
|
-
return
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
id: this.props.id,
|
|
1834
|
-
|
|
1835
|
-
ref: this.refContainer
|
|
1836
|
-
}));
|
|
1860
|
+
return React__default.createElement(
|
|
1861
|
+
'div',
|
|
1862
|
+
{ className: this.props.containerClassName },
|
|
1863
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
1864
|
+
);
|
|
1837
1865
|
}
|
|
1838
1866
|
}]);
|
|
1839
1867
|
|
|
1840
1868
|
return YouTube;
|
|
1841
|
-
}(
|
|
1842
|
-
|
|
1843
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
1844
|
-
UNSTARTED: -1,
|
|
1845
|
-
ENDED: 0,
|
|
1846
|
-
PLAYING: 1,
|
|
1847
|
-
PAUSED: 2,
|
|
1848
|
-
BUFFERING: 3,
|
|
1849
|
-
CUED: 5
|
|
1850
|
-
});
|
|
1869
|
+
}(React__default.Component);
|
|
1851
1870
|
|
|
1852
1871
|
YouTube.propTypes = {
|
|
1853
1872
|
videoId: PropTypes.string,
|
|
1873
|
+
|
|
1854
1874
|
// custom ID for player element
|
|
1855
1875
|
id: PropTypes.string,
|
|
1876
|
+
|
|
1856
1877
|
// custom class name for player element
|
|
1857
1878
|
className: PropTypes.string,
|
|
1858
1879
|
// custom class name for player container element
|
|
1859
1880
|
containerClassName: PropTypes.string,
|
|
1881
|
+
|
|
1860
1882
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1861
1883
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1884
|
+
|
|
1862
1885
|
// event subscriptions
|
|
1863
1886
|
onReady: PropTypes.func,
|
|
1864
1887
|
onError: PropTypes.func,
|
|
@@ -1870,7 +1893,6 @@ YouTube.propTypes = {
|
|
|
1870
1893
|
onPlaybackQualityChange: PropTypes.func
|
|
1871
1894
|
};
|
|
1872
1895
|
YouTube.defaultProps = {
|
|
1873
|
-
videoId: null,
|
|
1874
1896
|
id: null,
|
|
1875
1897
|
className: null,
|
|
1876
1898
|
opts: {},
|
|
@@ -1884,9 +1906,18 @@ YouTube.defaultProps = {
|
|
|
1884
1906
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1885
1907
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1886
1908
|
};
|
|
1909
|
+
YouTube.PlayerState = {
|
|
1910
|
+
UNSTARTED: -1,
|
|
1911
|
+
ENDED: 0,
|
|
1912
|
+
PLAYING: 1,
|
|
1913
|
+
PAUSED: 2,
|
|
1914
|
+
BUFFERING: 3,
|
|
1915
|
+
CUED: 5
|
|
1916
|
+
};
|
|
1887
1917
|
|
|
1888
1918
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1889
|
-
var url = _ref.url
|
|
1919
|
+
var url = _ref.url,
|
|
1920
|
+
autoplay = _ref.autoplay;
|
|
1890
1921
|
|
|
1891
1922
|
var id = getYoutubeId(url);
|
|
1892
1923
|
|
|
@@ -1910,7 +1941,8 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1910
1941
|
var opts = {
|
|
1911
1942
|
width: '100%',
|
|
1912
1943
|
playerVars: {
|
|
1913
|
-
rel: 0
|
|
1944
|
+
rel: 0,
|
|
1945
|
+
autoplay: autoplay
|
|
1914
1946
|
}
|
|
1915
1947
|
};
|
|
1916
1948
|
|
|
@@ -1983,11 +2015,11 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1983
2015
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
1984
2016
|
};
|
|
1985
2017
|
|
|
1986
|
-
return
|
|
2018
|
+
return React__default.createElement(
|
|
1987
2019
|
'div',
|
|
1988
2020
|
{ id: 'fluid-video-container' },
|
|
1989
|
-
|
|
1990
|
-
|
|
2021
|
+
React__default.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
2022
|
+
React__default.createElement(
|
|
1991
2023
|
'style',
|
|
1992
2024
|
{ jsx: 'true' },
|
|
1993
2025
|
'\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 '
|
|
@@ -2000,20 +2032,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2000
2032
|
content = _ref.content,
|
|
2001
2033
|
getSerializers = _ref.getSerializers;
|
|
2002
2034
|
|
|
2003
|
-
return
|
|
2035
|
+
return React__default.createElement(
|
|
2004
2036
|
'article',
|
|
2005
2037
|
{ className: 'sidebar' },
|
|
2006
|
-
|
|
2038
|
+
React__default.createElement(
|
|
2007
2039
|
'div',
|
|
2008
2040
|
null,
|
|
2009
|
-
|
|
2041
|
+
React__default.createElement(
|
|
2010
2042
|
'h3',
|
|
2011
2043
|
null,
|
|
2012
2044
|
caption
|
|
2013
2045
|
),
|
|
2014
|
-
|
|
2046
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2015
2047
|
),
|
|
2016
|
-
|
|
2048
|
+
React__default.createElement(
|
|
2017
2049
|
'style',
|
|
2018
2050
|
{ jsx: 'true' },
|
|
2019
2051
|
'\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 '
|
|
@@ -2024,18 +2056,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2024
2056
|
var TableShow = function TableShow(_ref) {
|
|
2025
2057
|
var rows = _ref.rows;
|
|
2026
2058
|
|
|
2027
|
-
return
|
|
2059
|
+
return React__default.createElement(
|
|
2028
2060
|
Table,
|
|
2029
2061
|
{ bordered: true, hover: true, responsive: true },
|
|
2030
|
-
|
|
2062
|
+
React__default.createElement(
|
|
2031
2063
|
'tbody',
|
|
2032
2064
|
null,
|
|
2033
2065
|
rows && rows.map(function (row) {
|
|
2034
|
-
return
|
|
2066
|
+
return React__default.createElement(
|
|
2035
2067
|
'tr',
|
|
2036
2068
|
{ key: row._key },
|
|
2037
2069
|
row.cells && row.cells.map(function (cell, index) {
|
|
2038
|
-
return cell &&
|
|
2070
|
+
return cell && React__default.createElement(
|
|
2039
2071
|
'td',
|
|
2040
2072
|
{ key: index },
|
|
2041
2073
|
cell
|
|
@@ -2138,18 +2170,18 @@ var Media = function Media(_ref) {
|
|
|
2138
2170
|
margin: imageMargin
|
|
2139
2171
|
};
|
|
2140
2172
|
|
|
2141
|
-
return
|
|
2173
|
+
return React__default.createElement(
|
|
2142
2174
|
Figure$1,
|
|
2143
2175
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2144
|
-
|
|
2176
|
+
React__default.createElement(
|
|
2145
2177
|
'a',
|
|
2146
2178
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2147
|
-
|
|
2179
|
+
React__default.createElement(
|
|
2148
2180
|
LazyLoad,
|
|
2149
2181
|
{ once: true },
|
|
2150
|
-
|
|
2182
|
+
React__default.createElement(Figure$1.Image, _extends$1({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt }))
|
|
2151
2183
|
),
|
|
2152
|
-
caption &&
|
|
2184
|
+
caption && React__default.createElement(
|
|
2153
2185
|
Figure$1.Caption,
|
|
2154
2186
|
{ className: 'media-caption' },
|
|
2155
2187
|
caption
|
|
@@ -2157,9 +2189,9 @@ var Media = function Media(_ref) {
|
|
|
2157
2189
|
)
|
|
2158
2190
|
);
|
|
2159
2191
|
} else if (caption && caption !== '') {
|
|
2160
|
-
return
|
|
2192
|
+
return React__default.createElement(
|
|
2161
2193
|
'a',
|
|
2162
|
-
_extends({}, uploadDoc.downloadMedia ? {
|
|
2194
|
+
_extends$1({}, uploadDoc.downloadMedia ? {
|
|
2163
2195
|
href: uploadDoc.asset.url + '?dl='
|
|
2164
2196
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2165
2197
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2177,10 +2209,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2177
2209
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2178
2210
|
|
|
2179
2211
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2180
|
-
return
|
|
2212
|
+
return React__default.createElement(
|
|
2181
2213
|
'div',
|
|
2182
2214
|
{ className: 'd-block text-center mb-3' },
|
|
2183
|
-
|
|
2215
|
+
React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2184
2216
|
);
|
|
2185
2217
|
};
|
|
2186
2218
|
|
|
@@ -2275,10 +2307,10 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2275
2307
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
|
|
2276
2308
|
};
|
|
2277
2309
|
|
|
2278
|
-
return
|
|
2310
|
+
return React__default.createElement(
|
|
2279
2311
|
'div',
|
|
2280
2312
|
null,
|
|
2281
|
-
vidLoaded &&
|
|
2313
|
+
vidLoaded && React__default.createElement(
|
|
2282
2314
|
'video',
|
|
2283
2315
|
{
|
|
2284
2316
|
poster: thumbnail || '',
|
|
@@ -2296,7 +2328,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2296
2328
|
onPlay: function onPlay(e) {
|
|
2297
2329
|
return handleOnPlay(e);
|
|
2298
2330
|
} },
|
|
2299
|
-
|
|
2331
|
+
React__default.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2300
2332
|
'Your browser does not support the video tag.'
|
|
2301
2333
|
)
|
|
2302
2334
|
);
|
|
@@ -2333,7 +2365,7 @@ var Video = function Video(_ref) {
|
|
|
2333
2365
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2334
2366
|
//console.log('success:', success.ref)
|
|
2335
2367
|
var player = success.ref;
|
|
2336
|
-
if (_typeof
|
|
2368
|
+
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2337
2369
|
player.ima3.settings.debug = true;
|
|
2338
2370
|
if (targeting.content_placement && targeting.document_url) {
|
|
2339
2371
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2431,53 +2463,53 @@ var Video = function Video(_ref) {
|
|
|
2431
2463
|
|
|
2432
2464
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2433
2465
|
if (videoID) {
|
|
2434
|
-
return
|
|
2466
|
+
return React__default.createElement(
|
|
2435
2467
|
'div',
|
|
2436
2468
|
null,
|
|
2437
|
-
|
|
2469
|
+
React__default.createElement(ReactPlayerLoader, {
|
|
2438
2470
|
onSuccess: onVideoSuccess,
|
|
2439
2471
|
accountId: accountIDs.brightcove.accountId,
|
|
2440
2472
|
videoId: videoID,
|
|
2441
2473
|
playerId: accountIDs.brightcove.playerId,
|
|
2442
2474
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2443
2475
|
}),
|
|
2444
|
-
|
|
2476
|
+
React__default.createElement(
|
|
2445
2477
|
'style',
|
|
2446
2478
|
{ jsx: 'true' },
|
|
2447
2479
|
'\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 '
|
|
2448
2480
|
)
|
|
2449
2481
|
);
|
|
2450
2482
|
} else if (playlistID) {
|
|
2451
|
-
return
|
|
2483
|
+
return React__default.createElement(
|
|
2452
2484
|
'div',
|
|
2453
2485
|
null,
|
|
2454
|
-
|
|
2486
|
+
React__default.createElement(ReactPlayerLoader, {
|
|
2455
2487
|
accountId: accountIDs.brightcove.accountId,
|
|
2456
2488
|
playlistId: playlistID,
|
|
2457
2489
|
playerId: accountIDs.brightcove.playerId,
|
|
2458
2490
|
onSuccess: onVideoSuccess,
|
|
2459
2491
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2460
2492
|
}),
|
|
2461
|
-
|
|
2493
|
+
React__default.createElement(
|
|
2462
2494
|
'style',
|
|
2463
2495
|
{ jsx: 'true' },
|
|
2464
2496
|
'\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 '
|
|
2465
2497
|
)
|
|
2466
2498
|
);
|
|
2467
2499
|
} else if (experienceID) {
|
|
2468
|
-
return
|
|
2500
|
+
return React__default.createElement(
|
|
2469
2501
|
'div',
|
|
2470
2502
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2471
|
-
videoLoaded &&
|
|
2503
|
+
videoLoaded && React__default.createElement('div', { 'data-experience': experienceID })
|
|
2472
2504
|
);
|
|
2473
2505
|
}
|
|
2474
2506
|
return null;
|
|
2475
2507
|
}
|
|
2476
2508
|
if (source === 'mp4') {
|
|
2477
|
-
return
|
|
2509
|
+
return React__default.createElement(
|
|
2478
2510
|
'div',
|
|
2479
2511
|
null,
|
|
2480
|
-
|
|
2512
|
+
React__default.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2481
2513
|
);
|
|
2482
2514
|
}
|
|
2483
2515
|
|
|
@@ -2688,9 +2720,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2688
2720
|
});
|
|
2689
2721
|
|
|
2690
2722
|
unwrapExports(props);
|
|
2691
|
-
props.DEPRECATED_CONFIG_PROPS;
|
|
2692
|
-
props.defaultProps;
|
|
2693
|
-
props.propTypes;
|
|
2723
|
+
var props_1 = props.DEPRECATED_CONFIG_PROPS;
|
|
2724
|
+
var props_2 = props.defaultProps;
|
|
2725
|
+
var props_3 = props.propTypes;
|
|
2694
2726
|
|
|
2695
2727
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2696
2728
|
return isNonNullObject(value)
|
|
@@ -2855,17 +2887,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2855
2887
|
|
|
2856
2888
|
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; }
|
|
2857
2889
|
|
|
2858
|
-
function
|
|
2859
|
-
|
|
2860
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2861
|
-
|
|
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."); }
|
|
2890
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2863
2891
|
|
|
2864
|
-
function
|
|
2892
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2865
2893
|
|
|
2866
|
-
function
|
|
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; }
|
|
2894
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
2869
2895
|
|
|
2870
2896
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2871
2897
|
|
|
@@ -2995,12 +3021,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
2995
3021
|
|
|
2996
3022
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
2997
3023
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
2998
|
-
|
|
2999
|
-
var
|
|
3000
|
-
|
|
3024
|
+
var _iteratorNormalCompletion = true;
|
|
3025
|
+
var _didIteratorError = false;
|
|
3026
|
+
var _iteratorError = undefined;
|
|
3001
3027
|
|
|
3002
3028
|
try {
|
|
3003
|
-
for (_iterator.
|
|
3029
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
3004
3030
|
var p = _step.value;
|
|
3005
3031
|
|
|
3006
3032
|
if (props$1[p]) {
|
|
@@ -3015,9 +3041,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3015
3041
|
}
|
|
3016
3042
|
}
|
|
3017
3043
|
} catch (err) {
|
|
3018
|
-
|
|
3044
|
+
_didIteratorError = true;
|
|
3045
|
+
_iteratorError = err;
|
|
3019
3046
|
} finally {
|
|
3020
|
-
|
|
3047
|
+
try {
|
|
3048
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3049
|
+
_iterator["return"]();
|
|
3050
|
+
}
|
|
3051
|
+
} finally {
|
|
3052
|
+
if (_didIteratorError) {
|
|
3053
|
+
throw _iteratorError;
|
|
3054
|
+
}
|
|
3055
|
+
}
|
|
3021
3056
|
}
|
|
3022
3057
|
|
|
3023
3058
|
return config;
|
|
@@ -3082,7 +3117,7 @@ function isEqual(a, b) {
|
|
|
3082
3117
|
return true;
|
|
3083
3118
|
}
|
|
3084
3119
|
|
|
3085
|
-
if ((0,
|
|
3120
|
+
if ((0, React__default.isValidElement)(a) && (0, React__default.isValidElement)(b)) {
|
|
3086
3121
|
return true;
|
|
3087
3122
|
}
|
|
3088
3123
|
|
|
@@ -3125,17 +3160,17 @@ function isMediaStream(url) {
|
|
|
3125
3160
|
});
|
|
3126
3161
|
|
|
3127
3162
|
unwrapExports(utils);
|
|
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;
|
|
3163
|
+
var utils_1 = utils.parseStartTime;
|
|
3164
|
+
var utils_2 = utils.parseEndTime;
|
|
3165
|
+
var utils_3 = utils.randomString;
|
|
3166
|
+
var utils_4 = utils.queryString;
|
|
3167
|
+
var utils_5 = utils.getSDK;
|
|
3168
|
+
var utils_6 = utils.getConfig;
|
|
3169
|
+
var utils_7 = utils.omit;
|
|
3170
|
+
var utils_8 = utils.callPlayer;
|
|
3171
|
+
var utils_9 = utils.isObject;
|
|
3172
|
+
var utils_10 = utils.isEqual;
|
|
3173
|
+
var utils_11 = utils.isMediaStream;
|
|
3139
3174
|
|
|
3140
3175
|
var Player_1 = createCommonjsModule(function (module, exports) {
|
|
3141
3176
|
|
|
@@ -3144,7 +3179,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3144
3179
|
});
|
|
3145
3180
|
exports["default"] = void 0;
|
|
3146
3181
|
|
|
3147
|
-
var _react = _interopRequireWildcard(
|
|
3182
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3148
3183
|
|
|
3149
3184
|
|
|
3150
3185
|
|
|
@@ -3164,16 +3199,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3164
3199
|
|
|
3165
3200
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3166
3201
|
|
|
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); }; }
|
|
3168
|
-
|
|
3169
3202
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3170
3203
|
|
|
3171
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
3204
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3176
3205
|
|
|
3206
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3207
|
+
|
|
3177
3208
|
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); }
|
|
3178
3209
|
|
|
3179
3210
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3182,12 +3213,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3182
3213
|
|
|
3183
3214
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3184
3215
|
|
|
3185
|
-
var Player =
|
|
3216
|
+
var Player =
|
|
3217
|
+
/*#__PURE__*/
|
|
3218
|
+
function (_Component) {
|
|
3186
3219
|
_inherits(Player, _Component);
|
|
3187
3220
|
|
|
3188
|
-
var _super = _createSuper(Player);
|
|
3189
|
-
|
|
3190
3221
|
function Player() {
|
|
3222
|
+
var _getPrototypeOf2;
|
|
3223
|
+
|
|
3191
3224
|
var _this;
|
|
3192
3225
|
|
|
3193
3226
|
_classCallCheck(this, Player);
|
|
@@ -3196,7 +3229,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3196
3229
|
_args[_key] = arguments[_key];
|
|
3197
3230
|
}
|
|
3198
3231
|
|
|
3199
|
-
_this =
|
|
3232
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3200
3233
|
|
|
3201
3234
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3202
3235
|
|
|
@@ -3521,7 +3554,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3521
3554
|
return null;
|
|
3522
3555
|
}
|
|
3523
3556
|
|
|
3524
|
-
return
|
|
3557
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3525
3558
|
ref: this.ref,
|
|
3526
3559
|
onReady: this.handleReady,
|
|
3527
3560
|
onPlay: this.handlePlay,
|
|
@@ -3554,7 +3587,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3554
3587
|
});
|
|
3555
3588
|
exports["default"] = createSinglePlayer;
|
|
3556
3589
|
|
|
3557
|
-
var _react = _interopRequireWildcard(
|
|
3590
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3558
3591
|
|
|
3559
3592
|
|
|
3560
3593
|
|
|
@@ -3582,16 +3615,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3582
3615
|
|
|
3583
3616
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3584
3617
|
|
|
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); }; }
|
|
3586
|
-
|
|
3587
3618
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3588
3619
|
|
|
3589
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
3620
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3594
3621
|
|
|
3622
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3623
|
+
|
|
3595
3624
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
3596
3625
|
|
|
3597
3626
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3603,12 +3632,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3603
3632
|
function createSinglePlayer(activePlayer) {
|
|
3604
3633
|
var _class, _temp;
|
|
3605
3634
|
|
|
3606
|
-
return _temp = _class =
|
|
3635
|
+
return _temp = _class =
|
|
3636
|
+
/*#__PURE__*/
|
|
3637
|
+
function (_Component) {
|
|
3607
3638
|
_inherits(SinglePlayer, _Component);
|
|
3608
3639
|
|
|
3609
|
-
var _super = _createSuper(SinglePlayer);
|
|
3610
|
-
|
|
3611
3640
|
function SinglePlayer() {
|
|
3641
|
+
var _getPrototypeOf2;
|
|
3642
|
+
|
|
3612
3643
|
var _this;
|
|
3613
3644
|
|
|
3614
3645
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3617,7 +3648,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3617
3648
|
args[_key] = arguments[_key];
|
|
3618
3649
|
}
|
|
3619
3650
|
|
|
3620
|
-
_this =
|
|
3651
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3621
3652
|
|
|
3622
3653
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3623
3654
|
|
|
@@ -3685,12 +3716,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3685
3716
|
height = _this$props.height,
|
|
3686
3717
|
Wrapper = _this$props.wrapper;
|
|
3687
3718
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3688
|
-
return
|
|
3719
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3689
3720
|
style: _objectSpread({}, style, {
|
|
3690
3721
|
width: width,
|
|
3691
3722
|
height: height
|
|
3692
3723
|
})
|
|
3693
|
-
}, otherProps),
|
|
3724
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3694
3725
|
ref: this.ref,
|
|
3695
3726
|
activePlayer: activePlayer,
|
|
3696
3727
|
config: this.config
|
|
@@ -3712,7 +3743,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3712
3743
|
});
|
|
3713
3744
|
exports["default"] = exports.YouTube = void 0;
|
|
3714
3745
|
|
|
3715
|
-
var _react = _interopRequireWildcard(
|
|
3746
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3716
3747
|
|
|
3717
3748
|
|
|
3718
3749
|
|
|
@@ -3736,31 +3767,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3736
3767
|
|
|
3737
3768
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3738
3769
|
|
|
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); }; }
|
|
3740
|
-
|
|
3741
3770
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3742
3771
|
|
|
3743
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
3772
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3748
3773
|
|
|
3774
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3775
|
+
|
|
3749
3776
|
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); }
|
|
3750
3777
|
|
|
3751
3778
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3752
3779
|
|
|
3753
3780
|
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; }
|
|
3754
3781
|
|
|
3755
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
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."); }
|
|
3758
|
-
|
|
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); }
|
|
3782
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3760
3783
|
|
|
3761
|
-
function
|
|
3784
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3762
3785
|
|
|
3763
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
3786
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
3764
3787
|
|
|
3765
3788
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3766
3789
|
|
|
@@ -3785,12 +3808,14 @@ function parsePlaylist(url) {
|
|
|
3785
3808
|
return {};
|
|
3786
3809
|
}
|
|
3787
3810
|
|
|
3788
|
-
var YouTube =
|
|
3811
|
+
var YouTube =
|
|
3812
|
+
/*#__PURE__*/
|
|
3813
|
+
function (_Component) {
|
|
3789
3814
|
_inherits(YouTube, _Component);
|
|
3790
3815
|
|
|
3791
|
-
var _super = _createSuper(YouTube);
|
|
3792
|
-
|
|
3793
3816
|
function YouTube() {
|
|
3817
|
+
var _getPrototypeOf2;
|
|
3818
|
+
|
|
3794
3819
|
var _this;
|
|
3795
3820
|
|
|
3796
3821
|
_classCallCheck(this, YouTube);
|
|
@@ -3799,7 +3824,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3799
3824
|
args[_key] = arguments[_key];
|
|
3800
3825
|
}
|
|
3801
3826
|
|
|
3802
|
-
_this =
|
|
3827
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3803
3828
|
|
|
3804
3829
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3805
3830
|
|
|
@@ -3987,9 +4012,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3987
4012
|
height: '100%',
|
|
3988
4013
|
display: display
|
|
3989
4014
|
};
|
|
3990
|
-
return
|
|
4015
|
+
return _react["default"].createElement("div", {
|
|
3991
4016
|
style: style
|
|
3992
|
-
},
|
|
4017
|
+
}, _react["default"].createElement("div", {
|
|
3993
4018
|
ref: this.ref
|
|
3994
4019
|
}));
|
|
3995
4020
|
}
|
|
@@ -4012,7 +4037,7 @@ exports["default"] = _default;
|
|
|
4012
4037
|
});
|
|
4013
4038
|
|
|
4014
4039
|
unwrapExports(YouTube_1);
|
|
4015
|
-
YouTube_1.YouTube;
|
|
4040
|
+
var YouTube_2 = YouTube_1.YouTube;
|
|
4016
4041
|
|
|
4017
4042
|
var SoundCloud_1 = createCommonjsModule(function (module, exports) {
|
|
4018
4043
|
|
|
@@ -4021,7 +4046,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4021
4046
|
});
|
|
4022
4047
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4023
4048
|
|
|
4024
|
-
var _react = _interopRequireWildcard(
|
|
4049
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4025
4050
|
|
|
4026
4051
|
|
|
4027
4052
|
|
|
@@ -4045,16 +4070,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4045
4070
|
|
|
4046
4071
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4047
4072
|
|
|
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); }; }
|
|
4049
|
-
|
|
4050
4073
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4051
4074
|
|
|
4052
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
4075
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4057
4076
|
|
|
4077
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4078
|
+
|
|
4058
4079
|
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); }
|
|
4059
4080
|
|
|
4060
4081
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4063,14 +4084,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4063
4084
|
|
|
4064
4085
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4065
4086
|
var SDK_GLOBAL = 'SC';
|
|
4066
|
-
var MATCH_URL = /(
|
|
4087
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
4067
4088
|
|
|
4068
|
-
var SoundCloud =
|
|
4089
|
+
var SoundCloud =
|
|
4090
|
+
/*#__PURE__*/
|
|
4091
|
+
function (_Component) {
|
|
4069
4092
|
_inherits(SoundCloud, _Component);
|
|
4070
4093
|
|
|
4071
|
-
var _super = _createSuper(SoundCloud);
|
|
4072
|
-
|
|
4073
4094
|
function SoundCloud() {
|
|
4095
|
+
var _getPrototypeOf2;
|
|
4096
|
+
|
|
4074
4097
|
var _this;
|
|
4075
4098
|
|
|
4076
4099
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4079,7 +4102,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4079
4102
|
args[_key] = arguments[_key];
|
|
4080
4103
|
}
|
|
4081
4104
|
|
|
4082
|
-
_this =
|
|
4105
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4083
4106
|
|
|
4084
4107
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4085
4108
|
|
|
@@ -4200,7 +4223,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4200
4223
|
height: '100%',
|
|
4201
4224
|
display: display
|
|
4202
4225
|
};
|
|
4203
|
-
return
|
|
4226
|
+
return _react["default"].createElement("iframe", {
|
|
4204
4227
|
ref: this.ref,
|
|
4205
4228
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4206
4229
|
style: style,
|
|
@@ -4229,7 +4252,7 @@ exports["default"] = _default;
|
|
|
4229
4252
|
});
|
|
4230
4253
|
|
|
4231
4254
|
unwrapExports(SoundCloud_1);
|
|
4232
|
-
SoundCloud_1.SoundCloud;
|
|
4255
|
+
var SoundCloud_2 = SoundCloud_1.SoundCloud;
|
|
4233
4256
|
|
|
4234
4257
|
var Vimeo_1 = createCommonjsModule(function (module, exports) {
|
|
4235
4258
|
|
|
@@ -4238,7 +4261,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4238
4261
|
});
|
|
4239
4262
|
exports["default"] = exports.Vimeo = void 0;
|
|
4240
4263
|
|
|
4241
|
-
var _react = _interopRequireWildcard(
|
|
4264
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4242
4265
|
|
|
4243
4266
|
|
|
4244
4267
|
|
|
@@ -4262,16 +4285,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4262
4285
|
|
|
4263
4286
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4264
4287
|
|
|
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); }; }
|
|
4266
|
-
|
|
4267
4288
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4268
4289
|
|
|
4269
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
4290
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4274
4291
|
|
|
4292
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4293
|
+
|
|
4275
4294
|
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); }
|
|
4276
4295
|
|
|
4277
4296
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4283,12 +4302,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4283
4302
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4284
4303
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4285
4304
|
|
|
4286
|
-
var Vimeo =
|
|
4305
|
+
var Vimeo =
|
|
4306
|
+
/*#__PURE__*/
|
|
4307
|
+
function (_Component) {
|
|
4287
4308
|
_inherits(Vimeo, _Component);
|
|
4288
4309
|
|
|
4289
|
-
var _super = _createSuper(Vimeo);
|
|
4290
|
-
|
|
4291
4310
|
function Vimeo() {
|
|
4311
|
+
var _getPrototypeOf2;
|
|
4312
|
+
|
|
4292
4313
|
var _this;
|
|
4293
4314
|
|
|
4294
4315
|
_classCallCheck(this, Vimeo);
|
|
@@ -4297,7 +4318,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4297
4318
|
args[_key] = arguments[_key];
|
|
4298
4319
|
}
|
|
4299
4320
|
|
|
4300
|
-
_this =
|
|
4321
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4301
4322
|
|
|
4302
4323
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4303
4324
|
|
|
@@ -4454,7 +4475,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4454
4475
|
overflow: 'hidden',
|
|
4455
4476
|
display: display
|
|
4456
4477
|
};
|
|
4457
|
-
return
|
|
4478
|
+
return _react["default"].createElement("div", {
|
|
4458
4479
|
key: this.props.url,
|
|
4459
4480
|
ref: this.ref,
|
|
4460
4481
|
style: style
|
|
@@ -4485,7 +4506,7 @@ exports["default"] = _default;
|
|
|
4485
4506
|
});
|
|
4486
4507
|
|
|
4487
4508
|
unwrapExports(Vimeo_1);
|
|
4488
|
-
Vimeo_1.Vimeo;
|
|
4509
|
+
var Vimeo_2 = Vimeo_1.Vimeo;
|
|
4489
4510
|
|
|
4490
4511
|
var Facebook_1 = createCommonjsModule(function (module, exports) {
|
|
4491
4512
|
|
|
@@ -4494,7 +4515,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4494
4515
|
});
|
|
4495
4516
|
exports["default"] = exports.Facebook = void 0;
|
|
4496
4517
|
|
|
4497
|
-
var _react = _interopRequireWildcard(
|
|
4518
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4498
4519
|
|
|
4499
4520
|
|
|
4500
4521
|
|
|
@@ -4514,16 +4535,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4514
4535
|
|
|
4515
4536
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4516
4537
|
|
|
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); }; }
|
|
4518
|
-
|
|
4519
4538
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4520
4539
|
|
|
4521
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
4540
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4526
4541
|
|
|
4542
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4543
|
+
|
|
4527
4544
|
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); }
|
|
4528
4545
|
|
|
4529
4546
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4536,12 +4553,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4536
4553
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4537
4554
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4538
4555
|
|
|
4539
|
-
var Facebook =
|
|
4556
|
+
var Facebook =
|
|
4557
|
+
/*#__PURE__*/
|
|
4558
|
+
function (_Component) {
|
|
4540
4559
|
_inherits(Facebook, _Component);
|
|
4541
4560
|
|
|
4542
|
-
var _super = _createSuper(Facebook);
|
|
4543
|
-
|
|
4544
4561
|
function Facebook() {
|
|
4562
|
+
var _getPrototypeOf2;
|
|
4563
|
+
|
|
4545
4564
|
var _this;
|
|
4546
4565
|
|
|
4547
4566
|
_classCallCheck(this, Facebook);
|
|
@@ -4550,7 +4569,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4550
4569
|
args[_key] = arguments[_key];
|
|
4551
4570
|
}
|
|
4552
4571
|
|
|
4553
|
-
_this =
|
|
4572
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4554
4573
|
|
|
4555
4574
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4556
4575
|
|
|
@@ -4666,7 +4685,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4666
4685
|
width: '100%',
|
|
4667
4686
|
height: '100%'
|
|
4668
4687
|
};
|
|
4669
|
-
return
|
|
4688
|
+
return _react["default"].createElement("div", {
|
|
4670
4689
|
style: style,
|
|
4671
4690
|
id: this.playerID,
|
|
4672
4691
|
className: "fb-video",
|
|
@@ -4697,7 +4716,7 @@ exports["default"] = _default;
|
|
|
4697
4716
|
});
|
|
4698
4717
|
|
|
4699
4718
|
unwrapExports(Facebook_1);
|
|
4700
|
-
Facebook_1.Facebook;
|
|
4719
|
+
var Facebook_2 = Facebook_1.Facebook;
|
|
4701
4720
|
|
|
4702
4721
|
var Streamable_1 = createCommonjsModule(function (module, exports) {
|
|
4703
4722
|
|
|
@@ -4706,7 +4725,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4706
4725
|
});
|
|
4707
4726
|
exports["default"] = exports.Streamable = void 0;
|
|
4708
4727
|
|
|
4709
|
-
var _react = _interopRequireWildcard(
|
|
4728
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4710
4729
|
|
|
4711
4730
|
|
|
4712
4731
|
|
|
@@ -4726,16 +4745,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4726
4745
|
|
|
4727
4746
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4728
4747
|
|
|
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); }; }
|
|
4730
|
-
|
|
4731
4748
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4732
4749
|
|
|
4733
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
4750
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4738
4751
|
|
|
4752
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4753
|
+
|
|
4739
4754
|
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); }
|
|
4740
4755
|
|
|
4741
4756
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4746,12 +4761,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4746
4761
|
var SDK_GLOBAL = 'playerjs';
|
|
4747
4762
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4748
4763
|
|
|
4749
|
-
var Streamable =
|
|
4764
|
+
var Streamable =
|
|
4765
|
+
/*#__PURE__*/
|
|
4766
|
+
function (_Component) {
|
|
4750
4767
|
_inherits(Streamable, _Component);
|
|
4751
4768
|
|
|
4752
|
-
var _super = _createSuper(Streamable);
|
|
4753
|
-
|
|
4754
4769
|
function Streamable() {
|
|
4770
|
+
var _getPrototypeOf2;
|
|
4771
|
+
|
|
4755
4772
|
var _this;
|
|
4756
4773
|
|
|
4757
4774
|
_classCallCheck(this, Streamable);
|
|
@@ -4760,7 +4777,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4760
4777
|
args[_key] = arguments[_key];
|
|
4761
4778
|
}
|
|
4762
4779
|
|
|
4763
|
-
_this =
|
|
4780
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4764
4781
|
|
|
4765
4782
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4766
4783
|
|
|
@@ -4880,7 +4897,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4880
4897
|
width: '100%',
|
|
4881
4898
|
height: '100%'
|
|
4882
4899
|
};
|
|
4883
|
-
return
|
|
4900
|
+
return _react["default"].createElement("iframe", {
|
|
4884
4901
|
ref: this.ref,
|
|
4885
4902
|
src: "https://streamable.com/o/".concat(id),
|
|
4886
4903
|
frameBorder: "0",
|
|
@@ -4908,7 +4925,7 @@ exports["default"] = _default;
|
|
|
4908
4925
|
});
|
|
4909
4926
|
|
|
4910
4927
|
unwrapExports(Streamable_1);
|
|
4911
|
-
Streamable_1.Streamable;
|
|
4928
|
+
var Streamable_2 = Streamable_1.Streamable;
|
|
4912
4929
|
|
|
4913
4930
|
var Wistia_1 = createCommonjsModule(function (module, exports) {
|
|
4914
4931
|
|
|
@@ -4917,7 +4934,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4917
4934
|
});
|
|
4918
4935
|
exports["default"] = exports.Wistia = void 0;
|
|
4919
4936
|
|
|
4920
|
-
var _react = _interopRequireWildcard(
|
|
4937
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4921
4938
|
|
|
4922
4939
|
|
|
4923
4940
|
|
|
@@ -4941,16 +4958,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4941
4958
|
|
|
4942
4959
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4943
4960
|
|
|
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); }; }
|
|
4945
|
-
|
|
4946
4961
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4947
4962
|
|
|
4948
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
4963
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4953
4964
|
|
|
4965
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4966
|
+
|
|
4954
4967
|
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); }
|
|
4955
4968
|
|
|
4956
4969
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4961,48 +4974,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4961
4974
|
var SDK_GLOBAL = 'Wistia';
|
|
4962
4975
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4963
4976
|
|
|
4964
|
-
var Wistia =
|
|
4977
|
+
var Wistia =
|
|
4978
|
+
/*#__PURE__*/
|
|
4979
|
+
function (_Component) {
|
|
4965
4980
|
_inherits(Wistia, _Component);
|
|
4966
4981
|
|
|
4967
|
-
var _super = _createSuper(Wistia);
|
|
4968
|
-
|
|
4969
4982
|
function Wistia() {
|
|
4983
|
+
var _getPrototypeOf2;
|
|
4984
|
+
|
|
4970
4985
|
var _this;
|
|
4971
4986
|
|
|
4972
4987
|
_classCallCheck(this, Wistia);
|
|
4973
4988
|
|
|
4974
|
-
for (var _len = arguments.length,
|
|
4975
|
-
|
|
4989
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4990
|
+
args[_key] = arguments[_key];
|
|
4976
4991
|
}
|
|
4977
4992
|
|
|
4978
|
-
_this =
|
|
4993
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4979
4994
|
|
|
4980
4995
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4981
4996
|
|
|
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
|
-
|
|
5006
4997
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5007
4998
|
_this.callPlayer('mute');
|
|
5008
4999
|
});
|
|
@@ -5024,13 +5015,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5024
5015
|
value: function load(url) {
|
|
5025
5016
|
var _this2 = this;
|
|
5026
5017
|
|
|
5027
|
-
var _this$
|
|
5028
|
-
playing = _this$
|
|
5029
|
-
muted = _this$
|
|
5030
|
-
controls = _this$
|
|
5031
|
-
_onReady = _this$
|
|
5032
|
-
|
|
5033
|
-
|
|
5018
|
+
var _this$props = this.props,
|
|
5019
|
+
playing = _this$props.playing,
|
|
5020
|
+
muted = _this$props.muted,
|
|
5021
|
+
controls = _this$props.controls,
|
|
5022
|
+
_onReady = _this$props.onReady,
|
|
5023
|
+
onPlay = _this$props.onPlay,
|
|
5024
|
+
onPause = _this$props.onPause,
|
|
5025
|
+
onSeek = _this$props.onSeek,
|
|
5026
|
+
onEnded = _this$props.onEnded,
|
|
5027
|
+
config = _this$props.config,
|
|
5028
|
+
onError = _this$props.onError;
|
|
5034
5029
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5035
5030
|
window._wq = window._wq || [];
|
|
5036
5031
|
|
|
@@ -5047,28 +5042,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5047
5042
|
|
|
5048
5043
|
_this2.unbind();
|
|
5049
5044
|
|
|
5050
|
-
_this2.player.bind('play',
|
|
5045
|
+
_this2.player.bind('play', onPlay);
|
|
5051
5046
|
|
|
5052
|
-
_this2.player.bind('pause',
|
|
5047
|
+
_this2.player.bind('pause', onPause);
|
|
5053
5048
|
|
|
5054
|
-
_this2.player.bind('seek',
|
|
5049
|
+
_this2.player.bind('seek', onSeek);
|
|
5055
5050
|
|
|
5056
|
-
_this2.player.bind('end',
|
|
5051
|
+
_this2.player.bind('end', onEnded);
|
|
5057
5052
|
|
|
5058
5053
|
_onReady();
|
|
5059
5054
|
}
|
|
5060
5055
|
});
|
|
5061
5056
|
}, onError);
|
|
5062
5057
|
}
|
|
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
|
-
|
|
5072
5058
|
}, {
|
|
5073
5059
|
key: "play",
|
|
5074
5060
|
value: function play() {
|
|
@@ -5079,6 +5065,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5079
5065
|
value: function pause() {
|
|
5080
5066
|
this.callPlayer('pause');
|
|
5081
5067
|
}
|
|
5068
|
+
}, {
|
|
5069
|
+
key: "unbind",
|
|
5070
|
+
value: function unbind() {
|
|
5071
|
+
var _this$props2 = this.props,
|
|
5072
|
+
onPlay = _this$props2.onPlay,
|
|
5073
|
+
onPause = _this$props2.onPause,
|
|
5074
|
+
onSeek = _this$props2.onSeek,
|
|
5075
|
+
onEnded = _this$props2.onEnded;
|
|
5076
|
+
this.player.unbind('play', onPlay);
|
|
5077
|
+
this.player.unbind('pause', onPause);
|
|
5078
|
+
this.player.unbind('seek', onSeek);
|
|
5079
|
+
this.player.unbind('end', onEnded);
|
|
5080
|
+
}
|
|
5082
5081
|
}, {
|
|
5083
5082
|
key: "stop",
|
|
5084
5083
|
value: function stop() {
|
|
@@ -5124,7 +5123,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5124
5123
|
width: '100%',
|
|
5125
5124
|
height: '100%'
|
|
5126
5125
|
};
|
|
5127
|
-
return
|
|
5126
|
+
return _react["default"].createElement("div", {
|
|
5128
5127
|
key: id,
|
|
5129
5128
|
className: className,
|
|
5130
5129
|
style: style
|
|
@@ -5151,7 +5150,7 @@ exports["default"] = _default;
|
|
|
5151
5150
|
});
|
|
5152
5151
|
|
|
5153
5152
|
unwrapExports(Wistia_1);
|
|
5154
|
-
Wistia_1.Wistia;
|
|
5153
|
+
var Wistia_2 = Wistia_1.Wistia;
|
|
5155
5154
|
|
|
5156
5155
|
var Twitch_1 = createCommonjsModule(function (module, exports) {
|
|
5157
5156
|
|
|
@@ -5160,7 +5159,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5160
5159
|
});
|
|
5161
5160
|
exports["default"] = exports.Twitch = void 0;
|
|
5162
5161
|
|
|
5163
|
-
var _react = _interopRequireWildcard(
|
|
5162
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5164
5163
|
|
|
5165
5164
|
|
|
5166
5165
|
|
|
@@ -5184,16 +5183,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5184
5183
|
|
|
5185
5184
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5186
5185
|
|
|
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); }; }
|
|
5188
|
-
|
|
5189
5186
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5190
5187
|
|
|
5191
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
5188
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5196
5189
|
|
|
5190
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5191
|
+
|
|
5197
5192
|
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); }
|
|
5198
5193
|
|
|
5199
5194
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5206,12 +5201,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5206
5201
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5207
5202
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5208
5203
|
|
|
5209
|
-
var Twitch =
|
|
5204
|
+
var Twitch =
|
|
5205
|
+
/*#__PURE__*/
|
|
5206
|
+
function (_Component) {
|
|
5210
5207
|
_inherits(Twitch, _Component);
|
|
5211
5208
|
|
|
5212
|
-
var _super = _createSuper(Twitch);
|
|
5213
|
-
|
|
5214
5209
|
function Twitch() {
|
|
5210
|
+
var _getPrototypeOf2;
|
|
5211
|
+
|
|
5215
5212
|
var _this;
|
|
5216
5213
|
|
|
5217
5214
|
_classCallCheck(this, Twitch);
|
|
@@ -5220,7 +5217,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5220
5217
|
args[_key] = arguments[_key];
|
|
5221
5218
|
}
|
|
5222
5219
|
|
|
5223
|
-
_this =
|
|
5220
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5224
5221
|
|
|
5225
5222
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5226
5223
|
|
|
@@ -5341,7 +5338,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5341
5338
|
width: '100%',
|
|
5342
5339
|
height: '100%'
|
|
5343
5340
|
};
|
|
5344
|
-
return
|
|
5341
|
+
return _react["default"].createElement("div", {
|
|
5345
5342
|
style: style,
|
|
5346
5343
|
id: this.playerID
|
|
5347
5344
|
});
|
|
@@ -5367,7 +5364,7 @@ exports["default"] = _default;
|
|
|
5367
5364
|
});
|
|
5368
5365
|
|
|
5369
5366
|
unwrapExports(Twitch_1);
|
|
5370
|
-
Twitch_1.Twitch;
|
|
5367
|
+
var Twitch_2 = Twitch_1.Twitch;
|
|
5371
5368
|
|
|
5372
5369
|
var DailyMotion_1 = createCommonjsModule(function (module, exports) {
|
|
5373
5370
|
|
|
@@ -5376,7 +5373,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5376
5373
|
});
|
|
5377
5374
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5378
5375
|
|
|
5379
|
-
var _react = _interopRequireWildcard(
|
|
5376
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5380
5377
|
|
|
5381
5378
|
|
|
5382
5379
|
|
|
@@ -5394,15 +5391,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5394
5391
|
|
|
5395
5392
|
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; }
|
|
5396
5393
|
|
|
5397
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5394
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5398
5395
|
|
|
5399
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
5396
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5400
5397
|
|
|
5401
|
-
function
|
|
5402
|
-
|
|
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; }
|
|
5398
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
5406
5399
|
|
|
5407
5400
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5408
5401
|
|
|
@@ -5412,16 +5405,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5412
5405
|
|
|
5413
5406
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5414
5407
|
|
|
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); }; }
|
|
5416
|
-
|
|
5417
5408
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5418
5409
|
|
|
5419
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
5410
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5424
5411
|
|
|
5412
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5413
|
+
|
|
5425
5414
|
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); }
|
|
5426
5415
|
|
|
5427
5416
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5433,12 +5422,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5433
5422
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5434
5423
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5435
5424
|
|
|
5436
|
-
var DailyMotion =
|
|
5425
|
+
var DailyMotion =
|
|
5426
|
+
/*#__PURE__*/
|
|
5427
|
+
function (_Component) {
|
|
5437
5428
|
_inherits(DailyMotion, _Component);
|
|
5438
5429
|
|
|
5439
|
-
var _super = _createSuper(DailyMotion);
|
|
5440
|
-
|
|
5441
5430
|
function DailyMotion() {
|
|
5431
|
+
var _getPrototypeOf2;
|
|
5432
|
+
|
|
5442
5433
|
var _this;
|
|
5443
5434
|
|
|
5444
5435
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5447,7 +5438,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5447
5438
|
args[_key] = arguments[_key];
|
|
5448
5439
|
}
|
|
5449
5440
|
|
|
5450
|
-
_this =
|
|
5441
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5451
5442
|
|
|
5452
5443
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5453
5444
|
|
|
@@ -5576,9 +5567,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5576
5567
|
height: '100%',
|
|
5577
5568
|
display: display
|
|
5578
5569
|
};
|
|
5579
|
-
return
|
|
5570
|
+
return _react["default"].createElement("div", {
|
|
5580
5571
|
style: style
|
|
5581
|
-
},
|
|
5572
|
+
}, _react["default"].createElement("div", {
|
|
5582
5573
|
ref: this.ref
|
|
5583
5574
|
}));
|
|
5584
5575
|
}
|
|
@@ -5603,7 +5594,7 @@ exports["default"] = _default;
|
|
|
5603
5594
|
});
|
|
5604
5595
|
|
|
5605
5596
|
unwrapExports(DailyMotion_1);
|
|
5606
|
-
DailyMotion_1.DailyMotion;
|
|
5597
|
+
var DailyMotion_2 = DailyMotion_1.DailyMotion;
|
|
5607
5598
|
|
|
5608
5599
|
var Mixcloud_1 = createCommonjsModule(function (module, exports) {
|
|
5609
5600
|
|
|
@@ -5612,7 +5603,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5612
5603
|
});
|
|
5613
5604
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5614
5605
|
|
|
5615
|
-
var _react = _interopRequireWildcard(
|
|
5606
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5616
5607
|
|
|
5617
5608
|
|
|
5618
5609
|
|
|
@@ -5636,16 +5627,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5636
5627
|
|
|
5637
5628
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5638
5629
|
|
|
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); }; }
|
|
5640
|
-
|
|
5641
5630
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5642
5631
|
|
|
5643
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
5632
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5648
5633
|
|
|
5634
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5635
|
+
|
|
5649
5636
|
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); }
|
|
5650
5637
|
|
|
5651
5638
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5656,12 +5643,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5656
5643
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5657
5644
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5658
5645
|
|
|
5659
|
-
var Mixcloud =
|
|
5646
|
+
var Mixcloud =
|
|
5647
|
+
/*#__PURE__*/
|
|
5648
|
+
function (_Component) {
|
|
5660
5649
|
_inherits(Mixcloud, _Component);
|
|
5661
5650
|
|
|
5662
|
-
var _super = _createSuper(Mixcloud);
|
|
5663
|
-
|
|
5664
5651
|
function Mixcloud() {
|
|
5652
|
+
var _getPrototypeOf2;
|
|
5653
|
+
|
|
5665
5654
|
var _this;
|
|
5666
5655
|
|
|
5667
5656
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5670,7 +5659,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5670
5659
|
args[_key] = arguments[_key];
|
|
5671
5660
|
}
|
|
5672
5661
|
|
|
5673
|
-
_this =
|
|
5662
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5674
5663
|
|
|
5675
5664
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5676
5665
|
|
|
@@ -5773,7 +5762,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5773
5762
|
})); // We have to give the iframe a key here to prevent a
|
|
5774
5763
|
// weird dialog appearing when loading a new track
|
|
5775
5764
|
|
|
5776
|
-
return
|
|
5765
|
+
return _react["default"].createElement("iframe", {
|
|
5777
5766
|
key: id,
|
|
5778
5767
|
ref: this.ref,
|
|
5779
5768
|
style: style,
|
|
@@ -5802,7 +5791,7 @@ exports["default"] = _default;
|
|
|
5802
5791
|
});
|
|
5803
5792
|
|
|
5804
5793
|
unwrapExports(Mixcloud_1);
|
|
5805
|
-
Mixcloud_1.Mixcloud;
|
|
5794
|
+
var Mixcloud_2 = Mixcloud_1.Mixcloud;
|
|
5806
5795
|
|
|
5807
5796
|
var FilePlayer_1 = createCommonjsModule(function (module, exports) {
|
|
5808
5797
|
|
|
@@ -5811,7 +5800,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5811
5800
|
});
|
|
5812
5801
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5813
5802
|
|
|
5814
|
-
var _react = _interopRequireWildcard(
|
|
5803
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5815
5804
|
|
|
5816
5805
|
|
|
5817
5806
|
|
|
@@ -5833,33 +5822,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5833
5822
|
|
|
5834
5823
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5835
5824
|
|
|
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); }; }
|
|
5837
|
-
|
|
5838
5825
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5839
5826
|
|
|
5840
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
5827
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5845
5828
|
|
|
5829
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5830
|
+
|
|
5846
5831
|
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); }
|
|
5847
5832
|
|
|
5848
5833
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5849
5834
|
|
|
5850
5835
|
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; }
|
|
5851
5836
|
|
|
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
|
-
|
|
5858
5837
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5859
5838
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5860
5839
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5861
5840
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5862
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
5841
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5863
5842
|
var HLS_GLOBAL = 'Hls';
|
|
5864
5843
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5865
5844
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5868,11 +5847,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5868
5847
|
|
|
5869
5848
|
function canPlay(url) {
|
|
5870
5849
|
if (url instanceof Array) {
|
|
5871
|
-
var
|
|
5872
|
-
|
|
5850
|
+
var _iteratorNormalCompletion = true;
|
|
5851
|
+
var _didIteratorError = false;
|
|
5852
|
+
var _iteratorError = undefined;
|
|
5873
5853
|
|
|
5874
5854
|
try {
|
|
5875
|
-
for (_iterator.
|
|
5855
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5876
5856
|
var item = _step.value;
|
|
5877
5857
|
|
|
5878
5858
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5884,9 +5864,18 @@ function canPlay(url) {
|
|
|
5884
5864
|
}
|
|
5885
5865
|
}
|
|
5886
5866
|
} catch (err) {
|
|
5887
|
-
|
|
5867
|
+
_didIteratorError = true;
|
|
5868
|
+
_iteratorError = err;
|
|
5888
5869
|
} finally {
|
|
5889
|
-
|
|
5870
|
+
try {
|
|
5871
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5872
|
+
_iterator["return"]();
|
|
5873
|
+
}
|
|
5874
|
+
} finally {
|
|
5875
|
+
if (_didIteratorError) {
|
|
5876
|
+
throw _iteratorError;
|
|
5877
|
+
}
|
|
5878
|
+
}
|
|
5890
5879
|
}
|
|
5891
5880
|
|
|
5892
5881
|
return false;
|
|
@@ -5910,12 +5899,14 @@ function canEnablePIP(url) {
|
|
|
5910
5899
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5911
5900
|
}
|
|
5912
5901
|
|
|
5913
|
-
var FilePlayer =
|
|
5902
|
+
var FilePlayer =
|
|
5903
|
+
/*#__PURE__*/
|
|
5904
|
+
function (_Component) {
|
|
5914
5905
|
_inherits(FilePlayer, _Component);
|
|
5915
5906
|
|
|
5916
|
-
var _super = _createSuper(FilePlayer);
|
|
5917
|
-
|
|
5918
5907
|
function FilePlayer() {
|
|
5908
|
+
var _getPrototypeOf2;
|
|
5909
|
+
|
|
5919
5910
|
var _this;
|
|
5920
5911
|
|
|
5921
5912
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5924,7 +5915,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5924
5915
|
_args[_key] = arguments[_key];
|
|
5925
5916
|
}
|
|
5926
5917
|
|
|
5927
|
-
_this =
|
|
5918
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5928
5919
|
|
|
5929
5920
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5930
5921
|
var _this$props;
|
|
@@ -6011,19 +6002,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6011
6002
|
|
|
6012
6003
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6013
6004
|
if (typeof source === 'string') {
|
|
6014
|
-
return
|
|
6005
|
+
return _react["default"].createElement("source", {
|
|
6015
6006
|
key: index,
|
|
6016
6007
|
src: source
|
|
6017
6008
|
});
|
|
6018
6009
|
}
|
|
6019
6010
|
|
|
6020
|
-
return
|
|
6011
|
+
return _react["default"].createElement("source", _extends({
|
|
6021
6012
|
key: index
|
|
6022
6013
|
}, source));
|
|
6023
6014
|
});
|
|
6024
6015
|
|
|
6025
6016
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6026
|
-
return
|
|
6017
|
+
return _react["default"].createElement("track", _extends({
|
|
6027
6018
|
key: index
|
|
6028
6019
|
}, track));
|
|
6029
6020
|
});
|
|
@@ -6061,10 +6052,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6061
6052
|
key: "componentWillUnmount",
|
|
6062
6053
|
value: function componentWillUnmount() {
|
|
6063
6054
|
this.removeListeners(this.player);
|
|
6064
|
-
|
|
6065
|
-
if (this.hls) {
|
|
6066
|
-
this.hls.destroy();
|
|
6067
|
-
}
|
|
6068
6055
|
}
|
|
6069
6056
|
}, {
|
|
6070
6057
|
key: "addListeners",
|
|
@@ -6195,6 +6182,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6195
6182
|
value: function stop() {
|
|
6196
6183
|
this.player.removeAttribute('src');
|
|
6197
6184
|
|
|
6185
|
+
if (this.hls) {
|
|
6186
|
+
this.hls.destroy();
|
|
6187
|
+
}
|
|
6188
|
+
|
|
6198
6189
|
if (this.dash) {
|
|
6199
6190
|
this.dash.reset();
|
|
6200
6191
|
}
|
|
@@ -6306,7 +6297,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6306
6297
|
width: width === 'auto' ? width : '100%',
|
|
6307
6298
|
height: height === 'auto' ? height : '100%'
|
|
6308
6299
|
};
|
|
6309
|
-
return
|
|
6300
|
+
return _react["default"].createElement(Element, _extends({
|
|
6310
6301
|
ref: this.ref,
|
|
6311
6302
|
src: this.getSource(url),
|
|
6312
6303
|
style: style,
|
|
@@ -6336,7 +6327,7 @@ exports["default"] = _default;
|
|
|
6336
6327
|
});
|
|
6337
6328
|
|
|
6338
6329
|
unwrapExports(FilePlayer_1);
|
|
6339
|
-
FilePlayer_1.FilePlayer;
|
|
6330
|
+
var FilePlayer_2 = FilePlayer_1.FilePlayer;
|
|
6340
6331
|
|
|
6341
6332
|
var players = createCommonjsModule(function (module, exports) {
|
|
6342
6333
|
|
|
@@ -6378,7 +6369,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6378
6369
|
});
|
|
6379
6370
|
exports["default"] = void 0;
|
|
6380
6371
|
|
|
6381
|
-
var _react = _interopRequireWildcard(
|
|
6372
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6382
6373
|
|
|
6383
6374
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6384
6375
|
|
|
@@ -6396,16 +6387,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6396
6387
|
|
|
6397
6388
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6398
6389
|
|
|
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); }; }
|
|
6400
|
-
|
|
6401
6390
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6402
6391
|
|
|
6403
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
6392
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6408
6393
|
|
|
6394
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6395
|
+
|
|
6409
6396
|
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); }
|
|
6410
6397
|
|
|
6411
6398
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6414,12 +6401,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6414
6401
|
|
|
6415
6402
|
var ICON_SIZE = '64px';
|
|
6416
6403
|
|
|
6417
|
-
var Preview =
|
|
6404
|
+
var Preview =
|
|
6405
|
+
/*#__PURE__*/
|
|
6406
|
+
function (_Component) {
|
|
6418
6407
|
_inherits(Preview, _Component);
|
|
6419
6408
|
|
|
6420
|
-
var _super = _createSuper(Preview);
|
|
6421
|
-
|
|
6422
6409
|
function Preview() {
|
|
6410
|
+
var _getPrototypeOf2;
|
|
6411
|
+
|
|
6423
6412
|
var _this;
|
|
6424
6413
|
|
|
6425
6414
|
_classCallCheck(this, Preview);
|
|
@@ -6428,7 +6417,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6428
6417
|
args[_key] = arguments[_key];
|
|
6429
6418
|
}
|
|
6430
6419
|
|
|
6431
|
-
_this =
|
|
6420
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6432
6421
|
|
|
6433
6422
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6434
6423
|
|
|
@@ -6526,15 +6515,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6526
6515
|
}
|
|
6527
6516
|
};
|
|
6528
6517
|
|
|
6529
|
-
var defaultPlayIcon =
|
|
6518
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6530
6519
|
style: styles.shadow,
|
|
6531
6520
|
className: "react-player__shadow"
|
|
6532
|
-
},
|
|
6521
|
+
}, _react["default"].createElement("div", {
|
|
6533
6522
|
style: styles.playIcon,
|
|
6534
6523
|
className: "react-player__play-icon"
|
|
6535
6524
|
}));
|
|
6536
6525
|
|
|
6537
|
-
return
|
|
6526
|
+
return _react["default"].createElement("div", {
|
|
6538
6527
|
style: styles.preview,
|
|
6539
6528
|
className: "react-player__preview",
|
|
6540
6529
|
onClick: onClick
|
|
@@ -6557,7 +6546,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6557
6546
|
});
|
|
6558
6547
|
exports["default"] = renderPreloadPlayers;
|
|
6559
6548
|
|
|
6560
|
-
var _react = _interopRequireDefault(
|
|
6549
|
+
var _react = _interopRequireDefault(React__default);
|
|
6561
6550
|
|
|
6562
6551
|
var _Player = _interopRequireDefault(Player_1);
|
|
6563
6552
|
|
|
@@ -6571,12 +6560,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6571
6560
|
|
|
6572
6561
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6573
6562
|
|
|
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
|
-
|
|
6580
6563
|
var PRELOAD_PLAYERS = [{
|
|
6581
6564
|
Player: YouTube_1.YouTube,
|
|
6582
6565
|
configKey: 'youtube',
|
|
@@ -6597,16 +6580,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6597
6580
|
|
|
6598
6581
|
function renderPreloadPlayers(url, controls, config) {
|
|
6599
6582
|
var players = [];
|
|
6600
|
-
|
|
6601
|
-
var
|
|
6602
|
-
|
|
6583
|
+
var _iteratorNormalCompletion = true;
|
|
6584
|
+
var _didIteratorError = false;
|
|
6585
|
+
var _iteratorError = undefined;
|
|
6603
6586
|
|
|
6604
6587
|
try {
|
|
6605
|
-
for (_iterator.
|
|
6588
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6606
6589
|
var player = _step.value;
|
|
6607
6590
|
|
|
6608
6591
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6609
|
-
players.push(
|
|
6592
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6610
6593
|
key: player.Player.displayName,
|
|
6611
6594
|
activePlayer: player.Player,
|
|
6612
6595
|
url: player.url,
|
|
@@ -6618,9 +6601,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6618
6601
|
}
|
|
6619
6602
|
}
|
|
6620
6603
|
} catch (err) {
|
|
6621
|
-
|
|
6604
|
+
_didIteratorError = true;
|
|
6605
|
+
_iteratorError = err;
|
|
6622
6606
|
} finally {
|
|
6623
|
-
|
|
6607
|
+
try {
|
|
6608
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6609
|
+
_iterator["return"]();
|
|
6610
|
+
}
|
|
6611
|
+
} finally {
|
|
6612
|
+
if (_didIteratorError) {
|
|
6613
|
+
throw _iteratorError;
|
|
6614
|
+
}
|
|
6615
|
+
}
|
|
6624
6616
|
}
|
|
6625
6617
|
|
|
6626
6618
|
return players;
|
|
@@ -6696,7 +6688,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6696
6688
|
});
|
|
6697
6689
|
exports["default"] = void 0;
|
|
6698
6690
|
|
|
6699
|
-
var _react = _interopRequireWildcard(
|
|
6691
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6700
6692
|
|
|
6701
6693
|
|
|
6702
6694
|
|
|
@@ -6744,17 +6736,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6744
6736
|
|
|
6745
6737
|
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); }
|
|
6746
6738
|
|
|
6747
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
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."); }
|
|
6739
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6750
6740
|
|
|
6751
|
-
function
|
|
6741
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6752
6742
|
|
|
6753
|
-
function _iterableToArray(iter) { if (
|
|
6743
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6754
6744
|
|
|
6755
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(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; }
|
|
6745
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
|
|
6758
6746
|
|
|
6759
6747
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6760
6748
|
|
|
@@ -6762,16 +6750,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6762
6750
|
|
|
6763
6751
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6764
6752
|
|
|
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); }; }
|
|
6766
|
-
|
|
6767
6753
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6768
6754
|
|
|
6769
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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
6755
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6774
6756
|
|
|
6757
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6758
|
+
|
|
6775
6759
|
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); }
|
|
6776
6760
|
|
|
6777
6761
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6781,12 +6765,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6781
6765
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6782
6766
|
var customPlayers = [];
|
|
6783
6767
|
|
|
6784
|
-
var ReactPlayer =
|
|
6768
|
+
var ReactPlayer =
|
|
6769
|
+
/*#__PURE__*/
|
|
6770
|
+
function (_Component) {
|
|
6785
6771
|
_inherits(ReactPlayer, _Component);
|
|
6786
6772
|
|
|
6787
|
-
var _super = _createSuper(ReactPlayer);
|
|
6788
|
-
|
|
6789
6773
|
function ReactPlayer() {
|
|
6774
|
+
var _getPrototypeOf2;
|
|
6775
|
+
|
|
6790
6776
|
var _this;
|
|
6791
6777
|
|
|
6792
6778
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6795,7 +6781,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6795
6781
|
args[_key] = arguments[_key];
|
|
6796
6782
|
}
|
|
6797
6783
|
|
|
6798
|
-
_this =
|
|
6784
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6799
6785
|
|
|
6800
6786
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6801
6787
|
|
|
@@ -6906,7 +6892,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6906
6892
|
key: "renderActivePlayer",
|
|
6907
6893
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6908
6894
|
if (!url) return null;
|
|
6909
|
-
return
|
|
6895
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6910
6896
|
key: activePlayer.displayName,
|
|
6911
6897
|
ref: this.activePlayerRef,
|
|
6912
6898
|
config: this.config,
|
|
@@ -6943,14 +6929,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6943
6929
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6944
6930
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6945
6931
|
|
|
6946
|
-
var preview =
|
|
6932
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6947
6933
|
url: url,
|
|
6948
6934
|
light: light,
|
|
6949
6935
|
playIcon: playIcon,
|
|
6950
6936
|
onClick: this.handleClickPreview
|
|
6951
6937
|
});
|
|
6952
6938
|
|
|
6953
|
-
return
|
|
6939
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6954
6940
|
ref: this.wrapperRef,
|
|
6955
6941
|
style: _objectSpread({}, style, {
|
|
6956
6942
|
width: width,
|
|
@@ -7010,20 +6996,20 @@ var Audio = function Audio(_ref) {
|
|
|
7010
6996
|
var node = _ref.node;
|
|
7011
6997
|
|
|
7012
6998
|
if (node.uploadAudio) {
|
|
7013
|
-
return
|
|
6999
|
+
return React__default.createElement(
|
|
7014
7000
|
'div',
|
|
7015
7001
|
{ className: 'audio d-block text-center mb-3' },
|
|
7016
|
-
|
|
7002
|
+
React__default.createElement(
|
|
7017
7003
|
'audio',
|
|
7018
7004
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7019
|
-
|
|
7020
|
-
|
|
7005
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7006
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7021
7007
|
'Your browser does not support the audio element.'
|
|
7022
7008
|
),
|
|
7023
|
-
node.caption &&
|
|
7009
|
+
node.caption && React__default.createElement(
|
|
7024
7010
|
'p',
|
|
7025
7011
|
{ style: { fontSize: '.9rem' } },
|
|
7026
|
-
|
|
7012
|
+
React__default.createElement(
|
|
7027
7013
|
'em',
|
|
7028
7014
|
null,
|
|
7029
7015
|
node.caption
|
|
@@ -7033,15 +7019,15 @@ var Audio = function Audio(_ref) {
|
|
|
7033
7019
|
} else if (node.audioFilePth) {
|
|
7034
7020
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7035
7021
|
if (hostname === 'embeds.audioboom.com') {
|
|
7036
|
-
return
|
|
7022
|
+
return React__default.createElement(
|
|
7037
7023
|
'div',
|
|
7038
7024
|
null,
|
|
7039
|
-
|
|
7025
|
+
React__default.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7040
7026
|
' ',
|
|
7041
|
-
node.caption &&
|
|
7027
|
+
node.caption && React__default.createElement(
|
|
7042
7028
|
'p',
|
|
7043
7029
|
{ style: { fontSize: '.9rem' } },
|
|
7044
|
-
|
|
7030
|
+
React__default.createElement(
|
|
7045
7031
|
'em',
|
|
7046
7032
|
null,
|
|
7047
7033
|
node.caption
|
|
@@ -7049,14 +7035,14 @@ var Audio = function Audio(_ref) {
|
|
|
7049
7035
|
)
|
|
7050
7036
|
);
|
|
7051
7037
|
}
|
|
7052
|
-
return
|
|
7038
|
+
return React__default.createElement(
|
|
7053
7039
|
'div',
|
|
7054
7040
|
{ className: 'audio' },
|
|
7055
|
-
|
|
7056
|
-
node.caption &&
|
|
7041
|
+
React__default.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7042
|
+
node.caption && React__default.createElement(
|
|
7057
7043
|
'p',
|
|
7058
7044
|
{ style: { fontSize: '.9rem' } },
|
|
7059
|
-
|
|
7045
|
+
React__default.createElement(
|
|
7060
7046
|
'em',
|
|
7061
7047
|
null,
|
|
7062
7048
|
node.caption
|
|
@@ -7074,34 +7060,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7074
7060
|
var profileImage = arguments[6];
|
|
7075
7061
|
|
|
7076
7062
|
if (authorName && authorURL) {
|
|
7077
|
-
return
|
|
7063
|
+
return React__default.createElement(
|
|
7078
7064
|
'span',
|
|
7079
7065
|
null,
|
|
7080
|
-
|
|
7066
|
+
React__default.createElement(
|
|
7081
7067
|
'a',
|
|
7082
7068
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7083
7069
|
authorName
|
|
7084
7070
|
),
|
|
7085
|
-
|
|
7071
|
+
React__default.createElement(
|
|
7086
7072
|
Card,
|
|
7087
7073
|
{ className: 'author-details-card-' + index },
|
|
7088
|
-
|
|
7074
|
+
React__default.createElement(
|
|
7089
7075
|
Row,
|
|
7090
7076
|
null,
|
|
7091
|
-
profileImage &&
|
|
7077
|
+
profileImage && React__default.createElement(
|
|
7092
7078
|
Col,
|
|
7093
7079
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7094
|
-
|
|
7080
|
+
React__default.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7095
7081
|
),
|
|
7096
|
-
|
|
7082
|
+
React__default.createElement(
|
|
7097
7083
|
Col,
|
|
7098
7084
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7099
|
-
|
|
7085
|
+
React__default.createElement(
|
|
7100
7086
|
'div',
|
|
7101
7087
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7102
7088
|
authorName
|
|
7103
7089
|
),
|
|
7104
|
-
|
|
7090
|
+
React__default.createElement(
|
|
7105
7091
|
'p',
|
|
7106
7092
|
null,
|
|
7107
7093
|
biography
|
|
@@ -7109,7 +7095,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7109
7095
|
)
|
|
7110
7096
|
)
|
|
7111
7097
|
),
|
|
7112
|
-
|
|
7098
|
+
React__default.createElement(
|
|
7113
7099
|
'style',
|
|
7114
7100
|
{ jsx: 'true' },
|
|
7115
7101
|
'\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 '
|
|
@@ -7117,7 +7103,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7117
7103
|
length !== index + 1 && ' , '
|
|
7118
7104
|
);
|
|
7119
7105
|
} else if (authorName) {
|
|
7120
|
-
return
|
|
7106
|
+
return React__default.createElement(
|
|
7121
7107
|
'span',
|
|
7122
7108
|
{ key: index },
|
|
7123
7109
|
authorName,
|
|
@@ -7394,44 +7380,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7394
7380
|
}
|
|
7395
7381
|
};
|
|
7396
7382
|
|
|
7397
|
-
return
|
|
7383
|
+
return React__default.createElement(
|
|
7398
7384
|
'div',
|
|
7399
7385
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7400
|
-
|
|
7386
|
+
React__default.createElement(
|
|
7401
7387
|
'div',
|
|
7402
7388
|
{ className: 'mt-2 mb-5' },
|
|
7403
|
-
series &&
|
|
7389
|
+
series && React__default.createElement(
|
|
7404
7390
|
'div',
|
|
7405
7391
|
{ style: { fontSize: '0.9rem' } },
|
|
7406
7392
|
article.title,
|
|
7407
7393
|
' - Episode ',
|
|
7408
7394
|
series
|
|
7409
7395
|
),
|
|
7410
|
-
Videos[series - 1] &&
|
|
7396
|
+
Videos[series - 1] && React__default.createElement(
|
|
7411
7397
|
'h1',
|
|
7412
7398
|
{ className: 'mb-3' },
|
|
7413
7399
|
Videos[series - 1].title
|
|
7414
7400
|
),
|
|
7415
|
-
|
|
7401
|
+
React__default.createElement(
|
|
7416
7402
|
'div',
|
|
7417
7403
|
null,
|
|
7418
7404
|
moment(article.published).format('LL')
|
|
7419
7405
|
),
|
|
7420
|
-
|
|
7406
|
+
React__default.createElement(
|
|
7421
7407
|
'div',
|
|
7422
7408
|
{ className: 'mb-3' },
|
|
7423
7409
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7424
|
-
return
|
|
7410
|
+
return React__default.createElement(
|
|
7425
7411
|
'span',
|
|
7426
7412
|
{ key: index },
|
|
7427
7413
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor(client, authorDetail.profileImage).height(authorImgHeight).url())
|
|
7428
7414
|
);
|
|
7429
7415
|
})
|
|
7430
7416
|
),
|
|
7431
|
-
|
|
7417
|
+
React__default.createElement(
|
|
7432
7418
|
'p',
|
|
7433
7419
|
null,
|
|
7434
|
-
|
|
7420
|
+
React__default.createElement(SocialShare, {
|
|
7435
7421
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7436
7422
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7437
7423
|
shareVia: meta.shareVia,
|
|
@@ -7446,20 +7432,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7446
7432
|
hideFacebook: meta.hideFBShare
|
|
7447
7433
|
})
|
|
7448
7434
|
),
|
|
7449
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7435
|
+
Videos[series - 1] && Videos[series - 1].intro && React__default.createElement(
|
|
7450
7436
|
'p',
|
|
7451
7437
|
{ className: 'mb-3' },
|
|
7452
|
-
|
|
7438
|
+
React__default.createElement(
|
|
7453
7439
|
'em',
|
|
7454
7440
|
null,
|
|
7455
7441
|
Videos[series - 1].intro
|
|
7456
7442
|
)
|
|
7457
7443
|
)
|
|
7458
7444
|
),
|
|
7459
|
-
|
|
7445
|
+
React__default.createElement(
|
|
7460
7446
|
'div',
|
|
7461
7447
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7462
|
-
vidUrl && vidType == 'youtube' &&
|
|
7448
|
+
vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, {
|
|
7463
7449
|
className: 'fluid-iframe',
|
|
7464
7450
|
videoId: getYoutubeId(vidUrl),
|
|
7465
7451
|
opts: opts,
|
|
@@ -7470,10 +7456,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7470
7456
|
return handleOnEnd(e);
|
|
7471
7457
|
}
|
|
7472
7458
|
}),
|
|
7473
|
-
vidUrl && vidType == 'mp4' &&
|
|
7474
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7475
|
-
|
|
7476
|
-
series &&
|
|
7459
|
+
vidUrl && vidType == 'mp4' && React__default.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7460
|
+
vidUrl && vidType == 'brightcove' && React__default.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7461
|
+
React__default.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7462
|
+
series && React__default.createElement(
|
|
7477
7463
|
'div',
|
|
7478
7464
|
{
|
|
7479
7465
|
className: 'vid-series',
|
|
@@ -7483,10 +7469,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7483
7469
|
maxHeight: '100%',
|
|
7484
7470
|
paddingBottom: '0'
|
|
7485
7471
|
} },
|
|
7486
|
-
|
|
7472
|
+
React__default.createElement(
|
|
7487
7473
|
'p',
|
|
7488
7474
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7489
|
-
|
|
7475
|
+
React__default.createElement(
|
|
7490
7476
|
'b',
|
|
7491
7477
|
{ style: { fontSize: '1.25em' } },
|
|
7492
7478
|
'Now Playing:'
|
|
@@ -7494,16 +7480,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7494
7480
|
' ',
|
|
7495
7481
|
seriesData[series ? series - 1 : 0].title
|
|
7496
7482
|
),
|
|
7497
|
-
vidUrl &&
|
|
7483
|
+
vidUrl && React__default.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7498
7484
|
)
|
|
7499
7485
|
),
|
|
7500
|
-
|
|
7501
|
-
|
|
7486
|
+
React__default.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7487
|
+
React__default.createElement(
|
|
7502
7488
|
'div',
|
|
7503
7489
|
{ className: 'vid-text' },
|
|
7504
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
7490
|
+
Videos[series - 1] && Videos[series - 1].text && React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: Videos[series - 1].text, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
7505
7491
|
),
|
|
7506
|
-
|
|
7492
|
+
React__default.createElement(
|
|
7507
7493
|
'style',
|
|
7508
7494
|
{ jsx: 'true' },
|
|
7509
7495
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7512,13 +7498,13 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7512
7498
|
};
|
|
7513
7499
|
|
|
7514
7500
|
var Poll = function Poll(_ref) {
|
|
7515
|
-
var node = _ref.node
|
|
7516
|
-
_ref.client
|
|
7517
|
-
_ref.pageview
|
|
7518
|
-
_ref.videoAccountIDs
|
|
7519
|
-
|
|
7520
|
-
_ref.showVotes
|
|
7521
|
-
|
|
7501
|
+
var node = _ref.node,
|
|
7502
|
+
client = _ref.client,
|
|
7503
|
+
pageview = _ref.pageview,
|
|
7504
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7505
|
+
onVote = _ref.onVote,
|
|
7506
|
+
_ref$showVotes = _ref.showVotes,
|
|
7507
|
+
getSerializers = _ref.getSerializers;
|
|
7522
7508
|
|
|
7523
7509
|
var _useState = useState(null),
|
|
7524
7510
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7556,67 +7542,67 @@ var Poll = function Poll(_ref) {
|
|
|
7556
7542
|
return acc;
|
|
7557
7543
|
}
|
|
7558
7544
|
}, 0);
|
|
7559
|
-
return
|
|
7560
|
-
|
|
7545
|
+
return React__default.createElement(
|
|
7546
|
+
React__default.Fragment,
|
|
7561
7547
|
null,
|
|
7562
|
-
question &&
|
|
7548
|
+
question && React__default.createElement(
|
|
7563
7549
|
'p',
|
|
7564
7550
|
{ className: 'font-weight-bold' },
|
|
7565
7551
|
question
|
|
7566
7552
|
),
|
|
7567
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7553
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7568
7554
|
'form',
|
|
7569
7555
|
{ onSubmit: function onSubmit(e) {
|
|
7570
7556
|
return onSubmitPoll(e);
|
|
7571
7557
|
} },
|
|
7572
7558
|
choices && choices.map(function (choice) {
|
|
7573
|
-
return
|
|
7559
|
+
return React__default.createElement(
|
|
7574
7560
|
'div',
|
|
7575
7561
|
{ key: choice._key },
|
|
7576
|
-
|
|
7562
|
+
React__default.createElement(
|
|
7577
7563
|
'label',
|
|
7578
7564
|
{ className: 'pl-2' },
|
|
7579
|
-
|
|
7565
|
+
React__default.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7580
7566
|
return setSelectedChoice(e.target.value);
|
|
7581
7567
|
} }),
|
|
7582
7568
|
' ' + choice.choiceText
|
|
7583
7569
|
)
|
|
7584
7570
|
);
|
|
7585
7571
|
}),
|
|
7586
|
-
|
|
7572
|
+
React__default.createElement(
|
|
7587
7573
|
Button,
|
|
7588
7574
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7589
7575
|
'Vote'
|
|
7590
7576
|
)
|
|
7591
7577
|
),
|
|
7592
|
-
|
|
7578
|
+
React__default.createElement(
|
|
7593
7579
|
'div',
|
|
7594
7580
|
{ className: 'progress-container' },
|
|
7595
7581
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7596
7582
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7597
|
-
return
|
|
7583
|
+
return React__default.createElement(
|
|
7598
7584
|
'div',
|
|
7599
7585
|
{ key: choice._key, className: 'mb-3' },
|
|
7600
|
-
|
|
7586
|
+
React__default.createElement(
|
|
7601
7587
|
'div',
|
|
7602
7588
|
{ className: 'correct-answer' },
|
|
7603
|
-
|
|
7589
|
+
React__default.createElement(
|
|
7604
7590
|
'div',
|
|
7605
7591
|
null,
|
|
7606
7592
|
choice.choiceText
|
|
7607
7593
|
),
|
|
7608
|
-
choice.choiceAnswer === true &&
|
|
7594
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7609
7595
|
'div',
|
|
7610
7596
|
null,
|
|
7611
|
-
|
|
7597
|
+
React__default.createElement(
|
|
7612
7598
|
'span',
|
|
7613
7599
|
{ style: { color: 'limegreen' } },
|
|
7614
7600
|
'Correct!'
|
|
7615
7601
|
)
|
|
7616
7602
|
)
|
|
7617
7603
|
),
|
|
7618
|
-
|
|
7619
|
-
|
|
7604
|
+
React__default.createElement(ProgressBar, { now: percentage }),
|
|
7605
|
+
React__default.createElement(
|
|
7620
7606
|
'span',
|
|
7621
7607
|
{ className: 'float-right' },
|
|
7622
7608
|
percentage,
|
|
@@ -7627,14 +7613,14 @@ var Poll = function Poll(_ref) {
|
|
|
7627
7613
|
);
|
|
7628
7614
|
})
|
|
7629
7615
|
),
|
|
7630
|
-
showAnswer &&
|
|
7616
|
+
showAnswer && React__default.createElement(
|
|
7631
7617
|
'h4',
|
|
7632
7618
|
{ className: 'text-center small p-3' },
|
|
7633
7619
|
'Total Votes: ',
|
|
7634
7620
|
choicesTotalCount
|
|
7635
7621
|
),
|
|
7636
|
-
showAnswer && response &&
|
|
7637
|
-
|
|
7622
|
+
showAnswer && response && React__default.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7623
|
+
React__default.createElement(
|
|
7638
7624
|
'style',
|
|
7639
7625
|
{ jsx: 'true' },
|
|
7640
7626
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7661,13 +7647,13 @@ module.exports = { "default": values, __esModule: true };
|
|
|
7661
7647
|
var _Object$values = unwrapExports(values$1);
|
|
7662
7648
|
|
|
7663
7649
|
var Poll$1 = function Poll(_ref) {
|
|
7664
|
-
var node = _ref.node
|
|
7665
|
-
_ref.client
|
|
7666
|
-
_ref.pageview
|
|
7667
|
-
_ref.videoAccountIDs
|
|
7668
|
-
|
|
7669
|
-
_ref.showVotes
|
|
7670
|
-
|
|
7650
|
+
var node = _ref.node,
|
|
7651
|
+
client = _ref.client,
|
|
7652
|
+
pageview = _ref.pageview,
|
|
7653
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7654
|
+
onVote = _ref.onVote,
|
|
7655
|
+
_ref$showVotes = _ref.showVotes,
|
|
7656
|
+
getSerializers = _ref.getSerializers;
|
|
7671
7657
|
|
|
7672
7658
|
var _useState = useState(null),
|
|
7673
7659
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7733,67 +7719,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7733
7719
|
return acc;
|
|
7734
7720
|
}
|
|
7735
7721
|
}, 0);
|
|
7736
|
-
return
|
|
7737
|
-
|
|
7722
|
+
return React__default.createElement(
|
|
7723
|
+
React__default.Fragment,
|
|
7738
7724
|
null,
|
|
7739
|
-
question &&
|
|
7725
|
+
question && React__default.createElement(
|
|
7740
7726
|
'p',
|
|
7741
7727
|
{ className: 'font-weight-bold' },
|
|
7742
7728
|
question
|
|
7743
7729
|
),
|
|
7744
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7730
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7745
7731
|
'form',
|
|
7746
7732
|
{ onSubmit: function onSubmit(e) {
|
|
7747
7733
|
return onSubmitPoll(e);
|
|
7748
7734
|
} },
|
|
7749
7735
|
choices && choices.map(function (choice) {
|
|
7750
|
-
return
|
|
7736
|
+
return React__default.createElement(
|
|
7751
7737
|
'div',
|
|
7752
7738
|
{ key: choice._key },
|
|
7753
|
-
|
|
7739
|
+
React__default.createElement(
|
|
7754
7740
|
'label',
|
|
7755
7741
|
{ className: 'pl-2' },
|
|
7756
|
-
|
|
7742
|
+
React__default.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7757
7743
|
return setSelectedChoice(e.target.value);
|
|
7758
7744
|
} }),
|
|
7759
7745
|
' ' + choice.choiceText
|
|
7760
7746
|
)
|
|
7761
7747
|
);
|
|
7762
7748
|
}),
|
|
7763
|
-
|
|
7749
|
+
React__default.createElement(
|
|
7764
7750
|
Button,
|
|
7765
7751
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7766
7752
|
'Vote'
|
|
7767
7753
|
)
|
|
7768
7754
|
),
|
|
7769
|
-
|
|
7755
|
+
React__default.createElement(
|
|
7770
7756
|
'div',
|
|
7771
7757
|
{ className: 'progress-container' },
|
|
7772
7758
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7773
7759
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7774
|
-
return
|
|
7760
|
+
return React__default.createElement(
|
|
7775
7761
|
'div',
|
|
7776
7762
|
{ key: choice._key, className: 'mb-3' },
|
|
7777
|
-
|
|
7763
|
+
React__default.createElement(
|
|
7778
7764
|
'div',
|
|
7779
7765
|
{ className: 'correct-answer' },
|
|
7780
|
-
|
|
7766
|
+
React__default.createElement(
|
|
7781
7767
|
'div',
|
|
7782
7768
|
null,
|
|
7783
7769
|
choice.choiceText
|
|
7784
7770
|
),
|
|
7785
|
-
choice.choiceAnswer === true &&
|
|
7771
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7786
7772
|
'div',
|
|
7787
7773
|
null,
|
|
7788
|
-
|
|
7774
|
+
React__default.createElement(
|
|
7789
7775
|
'span',
|
|
7790
7776
|
{ style: { color: 'limegreen' } },
|
|
7791
7777
|
'Correct!'
|
|
7792
7778
|
)
|
|
7793
7779
|
)
|
|
7794
7780
|
),
|
|
7795
|
-
|
|
7796
|
-
|
|
7781
|
+
React__default.createElement(ProgressBar, { now: percentage }),
|
|
7782
|
+
React__default.createElement(
|
|
7797
7783
|
'span',
|
|
7798
7784
|
{ className: 'float-right' },
|
|
7799
7785
|
percentage,
|
|
@@ -7804,14 +7790,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7804
7790
|
);
|
|
7805
7791
|
})
|
|
7806
7792
|
),
|
|
7807
|
-
showAnswer &&
|
|
7793
|
+
showAnswer && React__default.createElement(
|
|
7808
7794
|
'h4',
|
|
7809
7795
|
{ className: 'text-center small p-3' },
|
|
7810
7796
|
'Total Votes: ',
|
|
7811
7797
|
choicesTotalCount
|
|
7812
7798
|
),
|
|
7813
|
-
showAnswer && response &&
|
|
7814
|
-
|
|
7799
|
+
showAnswer && response && React__default.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7800
|
+
React__default.createElement(
|
|
7815
7801
|
'style',
|
|
7816
7802
|
{ jsx: 'true' },
|
|
7817
7803
|
'\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 '
|
|
@@ -7819,7 +7805,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7819
7805
|
);
|
|
7820
7806
|
};
|
|
7821
7807
|
|
|
7822
|
-
var numberOfPaginations =
|
|
7808
|
+
var numberOfPaginations = main_35 ? 4 : 10;
|
|
7823
7809
|
|
|
7824
7810
|
var Quiz = function Quiz(_ref) {
|
|
7825
7811
|
var quizzes = _ref.quizzes,
|
|
@@ -7937,20 +7923,20 @@ var Quiz = function Quiz(_ref) {
|
|
|
7937
7923
|
};
|
|
7938
7924
|
|
|
7939
7925
|
var renderPagination = function renderPagination() {
|
|
7940
|
-
return
|
|
7926
|
+
return React__default.createElement(
|
|
7941
7927
|
Pagination,
|
|
7942
|
-
{ className: 'p-0 m-0', size:
|
|
7943
|
-
|
|
7928
|
+
{ className: 'p-0 m-0', size: main_35 && 'sm' },
|
|
7929
|
+
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7944
7930
|
return changePage('first');
|
|
7945
7931
|
}, disabled: currentPage === 1 }),
|
|
7946
|
-
|
|
7932
|
+
React__default.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7947
7933
|
return changePage('prev');
|
|
7948
7934
|
}, disabled: currentPage === 1 }),
|
|
7949
|
-
|
|
7935
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7950
7936
|
return renderNewPages('prev');
|
|
7951
7937
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7952
7938
|
pages.map(function (page) {
|
|
7953
|
-
return
|
|
7939
|
+
return React__default.createElement(
|
|
7954
7940
|
Pagination.Item,
|
|
7955
7941
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7956
7942
|
return changePage(page);
|
|
@@ -7958,13 +7944,13 @@ var Quiz = function Quiz(_ref) {
|
|
|
7958
7944
|
page
|
|
7959
7945
|
);
|
|
7960
7946
|
}),
|
|
7961
|
-
|
|
7947
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7962
7948
|
return renderNewPages('next');
|
|
7963
7949
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7964
|
-
|
|
7950
|
+
React__default.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7965
7951
|
return changePage('next');
|
|
7966
7952
|
}, disabled: currentPage === pageCount }),
|
|
7967
|
-
|
|
7953
|
+
React__default.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7968
7954
|
return changePage('last');
|
|
7969
7955
|
}, disabled: currentPage === pageCount })
|
|
7970
7956
|
);
|
|
@@ -8047,51 +8033,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8047
8033
|
}
|
|
8048
8034
|
};
|
|
8049
8035
|
|
|
8050
|
-
return
|
|
8051
|
-
|
|
8036
|
+
return React__default.createElement(
|
|
8037
|
+
React__default.Fragment,
|
|
8052
8038
|
null,
|
|
8053
|
-
quizzes[currentPage - 1] &&
|
|
8054
|
-
|
|
8039
|
+
quizzes[currentPage - 1] && React__default.createElement(
|
|
8040
|
+
React__default.Fragment,
|
|
8055
8041
|
null,
|
|
8056
|
-
|
|
8057
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 &&
|
|
8042
|
+
React__default.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8043
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default.createElement(
|
|
8058
8044
|
'form',
|
|
8059
8045
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8060
8046
|
return e.preventDefault();
|
|
8061
8047
|
} },
|
|
8062
8048
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8063
|
-
return
|
|
8049
|
+
return React__default.createElement(
|
|
8064
8050
|
'div',
|
|
8065
8051
|
{ key: answer._key },
|
|
8066
|
-
|
|
8052
|
+
React__default.createElement(
|
|
8067
8053
|
'label',
|
|
8068
8054
|
{ className: 'pl-2' },
|
|
8069
|
-
quizzes[currentPage - 1].multiAnswer ?
|
|
8055
|
+
quizzes[currentPage - 1].multiAnswer ? React__default.createElement('input', { type: 'checkbox', id: 'male', disabled: isDisabled, name: answer._type, value: answer._key }) : React__default.createElement('input', { type: 'radio', id: 'male', name: answer._type, value: answer._key }),
|
|
8070
8056
|
' ' + answer.answerText
|
|
8071
8057
|
)
|
|
8072
8058
|
);
|
|
8073
8059
|
})
|
|
8074
8060
|
)
|
|
8075
8061
|
),
|
|
8076
|
-
!showAnswer &&
|
|
8062
|
+
!showAnswer && React__default.createElement(
|
|
8077
8063
|
Button$1,
|
|
8078
8064
|
{ onClick: function onClick() {
|
|
8079
8065
|
return checkAnswers();
|
|
8080
8066
|
}, variant: 'info', block: true },
|
|
8081
8067
|
'Please click here for answer'
|
|
8082
8068
|
),
|
|
8083
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
8084
|
-
|
|
8069
|
+
quizzes[currentPage - 1] && showAnswer && React__default.createElement(
|
|
8070
|
+
React__default.Fragment,
|
|
8085
8071
|
null,
|
|
8086
|
-
|
|
8072
|
+
React__default.createElement(
|
|
8087
8073
|
'h4',
|
|
8088
8074
|
null,
|
|
8089
8075
|
'Answer:'
|
|
8090
8076
|
),
|
|
8091
|
-
quizzes[currentPage - 1].answer &&
|
|
8077
|
+
quizzes[currentPage - 1].answer && React__default.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8092
8078
|
),
|
|
8093
|
-
|
|
8094
|
-
pageCount > 1 &&
|
|
8079
|
+
React__default.createElement('br', null),
|
|
8080
|
+
pageCount > 1 && React__default.createElement(
|
|
8095
8081
|
'div',
|
|
8096
8082
|
{ className: 'd-flex justify-content-center' },
|
|
8097
8083
|
renderPagination()
|
|
@@ -8102,10 +8088,10 @@ var Quiz = function Quiz(_ref) {
|
|
|
8102
8088
|
var Leads = function Leads(_ref) {
|
|
8103
8089
|
var url = _ref.url;
|
|
8104
8090
|
|
|
8105
|
-
return
|
|
8091
|
+
return React__default.createElement(
|
|
8106
8092
|
'div',
|
|
8107
8093
|
{ className: 'd-block text-center mb-3' },
|
|
8108
|
-
url &&
|
|
8094
|
+
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8109
8095
|
);
|
|
8110
8096
|
};
|
|
8111
8097
|
|
|
@@ -8126,8 +8112,8 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8126
8112
|
|
|
8127
8113
|
var _useState = useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
|
|
8128
8114
|
_useState2 = _slicedToArray(_useState, 2),
|
|
8129
|
-
carouselIndex = _useState2[0]
|
|
8130
|
-
_useState2[1];
|
|
8115
|
+
carouselIndex = _useState2[0],
|
|
8116
|
+
setCarouselIndex = _useState2[1];
|
|
8131
8117
|
|
|
8132
8118
|
// useEffect(() => {
|
|
8133
8119
|
// let itemArr = router.asPath.split('?page=')
|
|
@@ -8153,42 +8139,42 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8153
8139
|
}
|
|
8154
8140
|
};
|
|
8155
8141
|
|
|
8156
|
-
return
|
|
8142
|
+
return React__default.createElement(
|
|
8157
8143
|
'div',
|
|
8158
8144
|
{ ref: carouselRef, className: 'mt-3 mb-4' },
|
|
8159
|
-
|
|
8145
|
+
React__default.createElement(
|
|
8160
8146
|
Carousel,
|
|
8161
8147
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8162
8148
|
slides && slides.map(function (slide) {
|
|
8163
8149
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8164
|
-
return
|
|
8150
|
+
return React__default.createElement(
|
|
8165
8151
|
Carousel.Item,
|
|
8166
8152
|
{ key: slide._key },
|
|
8167
|
-
|
|
8153
|
+
React__default.createElement(
|
|
8168
8154
|
'a',
|
|
8169
8155
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8170
|
-
|
|
8156
|
+
React__default.createElement(
|
|
8171
8157
|
LazyLoad,
|
|
8172
8158
|
null,
|
|
8173
|
-
|
|
8159
|
+
React__default.createElement('img', { src: urlFor$1(slide.slideshowImage, client).url(), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
8174
8160
|
)
|
|
8175
8161
|
),
|
|
8176
|
-
|
|
8162
|
+
React__default.createElement(
|
|
8177
8163
|
'div',
|
|
8178
8164
|
{ className: 'p-2' },
|
|
8179
|
-
slide.slideshowImage.caption &&
|
|
8165
|
+
slide.slideshowImage.caption && React__default.createElement(
|
|
8180
8166
|
'h3',
|
|
8181
8167
|
{ style: { padding: '0px' } },
|
|
8182
8168
|
slide.slideshowImage.caption
|
|
8183
8169
|
),
|
|
8184
|
-
slide.description &&
|
|
8170
|
+
slide.description && React__default.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8185
8171
|
)
|
|
8186
8172
|
);
|
|
8187
8173
|
}
|
|
8188
8174
|
return null;
|
|
8189
8175
|
})
|
|
8190
8176
|
),
|
|
8191
|
-
|
|
8177
|
+
React__default.createElement(
|
|
8192
8178
|
'style',
|
|
8193
8179
|
{ jsx: 'true' },
|
|
8194
8180
|
'\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 '
|
|
@@ -8207,10 +8193,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8207
8193
|
sizes = _props$node.sizes,
|
|
8208
8194
|
sizeMapping = _props$node.sizeMapping;
|
|
8209
8195
|
|
|
8210
|
-
return
|
|
8196
|
+
return React__default.createElement(
|
|
8211
8197
|
'div',
|
|
8212
8198
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8213
|
-
|
|
8199
|
+
React__default.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8214
8200
|
);
|
|
8215
8201
|
};
|
|
8216
8202
|
|
|
@@ -8221,15 +8207,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8221
8207
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8222
8208
|
|
|
8223
8209
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8224
|
-
return
|
|
8210
|
+
return React__default.createElement(
|
|
8225
8211
|
'section',
|
|
8226
8212
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8227
|
-
Caption &&
|
|
8213
|
+
Caption && React__default.createElement(
|
|
8228
8214
|
'h4',
|
|
8229
8215
|
{ className: 'formstack-caption' },
|
|
8230
8216
|
Caption
|
|
8231
8217
|
),
|
|
8232
|
-
|
|
8218
|
+
React__default.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8233
8219
|
);
|
|
8234
8220
|
};
|
|
8235
8221
|
|
|
@@ -8249,29 +8235,29 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8249
8235
|
}
|
|
8250
8236
|
});
|
|
8251
8237
|
if (medias && medias.length > 0) {
|
|
8252
|
-
return
|
|
8238
|
+
return React__default.createElement(
|
|
8253
8239
|
'div',
|
|
8254
8240
|
{ className: 'multi-media-container' },
|
|
8255
|
-
|
|
8241
|
+
React__default.createElement(
|
|
8256
8242
|
Row$1,
|
|
8257
8243
|
{ noGutters: true },
|
|
8258
8244
|
medias.map(function (media) {
|
|
8259
|
-
return
|
|
8245
|
+
return React__default.createElement(
|
|
8260
8246
|
Col$1,
|
|
8261
8247
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8262
|
-
|
|
8248
|
+
React__default.createElement(
|
|
8263
8249
|
'a',
|
|
8264
|
-
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8250
|
+
_extends$1({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8265
8251
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8266
|
-
|
|
8252
|
+
React__default.createElement(
|
|
8267
8253
|
'div',
|
|
8268
8254
|
{ className: 'multi-media-image-container' },
|
|
8269
|
-
imageBox &&
|
|
8255
|
+
imageBox && React__default.createElement(
|
|
8270
8256
|
LazyLoad,
|
|
8271
8257
|
{ once: true },
|
|
8272
|
-
|
|
8258
|
+
React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor$2(media.poster, client).url(), alt: media.alt })
|
|
8273
8259
|
),
|
|
8274
|
-
media.caption &&
|
|
8260
|
+
media.caption && React__default.createElement(
|
|
8275
8261
|
'span',
|
|
8276
8262
|
{ className: 'multi-media-caption' },
|
|
8277
8263
|
media.caption
|
|
@@ -8281,7 +8267,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8281
8267
|
);
|
|
8282
8268
|
})
|
|
8283
8269
|
),
|
|
8284
|
-
|
|
8270
|
+
React__default.createElement(
|
|
8285
8271
|
'style',
|
|
8286
8272
|
{ jsx: 'true' },
|
|
8287
8273
|
'\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 '
|
|
@@ -8328,7 +8314,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8328
8314
|
}
|
|
8329
8315
|
};
|
|
8330
8316
|
|
|
8331
|
-
_this.wraperRef =
|
|
8317
|
+
_this.wraperRef = React__default.createRef();
|
|
8332
8318
|
_this.visible = false;
|
|
8333
8319
|
return _this;
|
|
8334
8320
|
}
|
|
@@ -8356,7 +8342,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8356
8342
|
_props$id = _props.id,
|
|
8357
8343
|
id = _props$id === undefined ? '' : _props$id;
|
|
8358
8344
|
|
|
8359
|
-
return
|
|
8345
|
+
return React__default.createElement(
|
|
8360
8346
|
'div',
|
|
8361
8347
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8362
8348
|
this.props.children
|
|
@@ -8365,7 +8351,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8365
8351
|
}]);
|
|
8366
8352
|
|
|
8367
8353
|
return InscreenSensor;
|
|
8368
|
-
}(
|
|
8354
|
+
}(React__default.Component);
|
|
8369
8355
|
|
|
8370
8356
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8371
8357
|
var nodes = _ref.nodes,
|
|
@@ -8478,33 +8464,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8478
8464
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8479
8465
|
var showReading = show ? 'showReading' : '';
|
|
8480
8466
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8481
|
-
return
|
|
8467
|
+
return React__default.createElement(
|
|
8482
8468
|
'div',
|
|
8483
8469
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8484
|
-
|
|
8470
|
+
React__default.createElement(
|
|
8485
8471
|
'a',
|
|
8486
8472
|
{ onClick: function onClick(e) {
|
|
8487
8473
|
return articleCardClickHandler(e);
|
|
8488
8474
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8489
|
-
|
|
8475
|
+
React__default.createElement(
|
|
8490
8476
|
'div',
|
|
8491
8477
|
{ className: 'prevNext-thumbnail' },
|
|
8492
|
-
|
|
8493
|
-
|
|
8478
|
+
React__default.createElement('img', { src: urlFor(article.thumbnail.asset).url() }),
|
|
8479
|
+
React__default.createElement(
|
|
8494
8480
|
'div',
|
|
8495
8481
|
{ className: 'prevNext-reading ' + showReading },
|
|
8496
8482
|
articleLabel
|
|
8497
8483
|
)
|
|
8498
8484
|
),
|
|
8499
|
-
|
|
8485
|
+
React__default.createElement(
|
|
8500
8486
|
'div',
|
|
8501
8487
|
{ className: 'prevNext-summary' },
|
|
8502
|
-
|
|
8488
|
+
React__default.createElement(
|
|
8503
8489
|
'div',
|
|
8504
8490
|
{ className: 'prevNext-publishDate' },
|
|
8505
8491
|
moment(article.published).format('LL')
|
|
8506
8492
|
),
|
|
8507
|
-
|
|
8493
|
+
React__default.createElement(
|
|
8508
8494
|
'h2',
|
|
8509
8495
|
{ className: 'prevNext-title' },
|
|
8510
8496
|
article.title
|
|
@@ -8553,7 +8539,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8553
8539
|
|
|
8554
8540
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8555
8541
|
if (biography) {
|
|
8556
|
-
return
|
|
8542
|
+
return React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8557
8543
|
}
|
|
8558
8544
|
};
|
|
8559
8545
|
|
|
@@ -8639,7 +8625,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8639
8625
|
//console.log('useLayoutEffect')
|
|
8640
8626
|
if (!firstLoad) {
|
|
8641
8627
|
setUpArrowClicked(false);
|
|
8642
|
-
if (
|
|
8628
|
+
if (main_36) {
|
|
8643
8629
|
grabLoadedAds();
|
|
8644
8630
|
} else {
|
|
8645
8631
|
scrollToArticle();
|
|
@@ -8663,7 +8649,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8663
8649
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8664
8650
|
if (pageview) pageview(path);
|
|
8665
8651
|
|
|
8666
|
-
if (!
|
|
8652
|
+
if (!main_36) {
|
|
8667
8653
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8668
8654
|
if (window.googletag && googletag.pubadsReady) {
|
|
8669
8655
|
lib_3.refresh();
|
|
@@ -8671,7 +8657,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8671
8657
|
});
|
|
8672
8658
|
}
|
|
8673
8659
|
//Refresh leaderboard ad on mobile
|
|
8674
|
-
if (
|
|
8660
|
+
if (main_36) {
|
|
8675
8661
|
var leaderboardSlotId = '';
|
|
8676
8662
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8677
8663
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8711,38 +8697,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8711
8697
|
setSensorVisible(false);
|
|
8712
8698
|
};
|
|
8713
8699
|
|
|
8714
|
-
return
|
|
8715
|
-
|
|
8700
|
+
return React__default.createElement(
|
|
8701
|
+
React__default.Fragment,
|
|
8716
8702
|
null,
|
|
8717
|
-
|
|
8703
|
+
React__default.createElement(
|
|
8718
8704
|
'div',
|
|
8719
8705
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8720
|
-
|
|
8706
|
+
React__default.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8721
8707
|
return handleArrowClick();
|
|
8722
8708
|
} })
|
|
8723
8709
|
),
|
|
8724
|
-
|
|
8725
|
-
|
|
8710
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8711
|
+
React__default.createElement(
|
|
8726
8712
|
'div',
|
|
8727
8713
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8728
|
-
|
|
8714
|
+
React__default.createElement(
|
|
8729
8715
|
'h5',
|
|
8730
8716
|
{ className: 'objective-title' },
|
|
8731
8717
|
nodes.seriesTitle
|
|
8732
8718
|
),
|
|
8733
|
-
|
|
8719
|
+
React__default.createElement(
|
|
8734
8720
|
'div',
|
|
8735
8721
|
{ className: 'prevNextWrapper' },
|
|
8736
8722
|
PrevNextCards(false, -1)
|
|
8737
8723
|
)
|
|
8738
8724
|
),
|
|
8739
|
-
|
|
8740
|
-
|
|
8725
|
+
React__default.createElement('hr', { className: 'article-seperater' }),
|
|
8726
|
+
React__default.createElement(
|
|
8741
8727
|
'div',
|
|
8742
8728
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8743
|
-
|
|
8729
|
+
main_36 && Ads.map(function (ad, index) {
|
|
8744
8730
|
if (index === 0) {
|
|
8745
|
-
return
|
|
8731
|
+
return React__default.createElement(
|
|
8746
8732
|
'div',
|
|
8747
8733
|
{
|
|
8748
8734
|
key: 'addid-1',
|
|
@@ -8762,14 +8748,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8762
8748
|
}
|
|
8763
8749
|
})
|
|
8764
8750
|
),
|
|
8765
|
-
|
|
8751
|
+
React__default.createElement(
|
|
8766
8752
|
'div',
|
|
8767
8753
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8768
8754
|
Articles.map(function (article, index) {
|
|
8769
|
-
return
|
|
8755
|
+
return React__default.createElement(
|
|
8770
8756
|
'div',
|
|
8771
8757
|
{ key: article.title },
|
|
8772
|
-
|
|
8758
|
+
React__default.createElement(
|
|
8773
8759
|
InscreenSensor,
|
|
8774
8760
|
{
|
|
8775
8761
|
visible: sensorVisible,
|
|
@@ -8787,84 +8773,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8787
8773
|
}
|
|
8788
8774
|
}
|
|
8789
8775
|
} },
|
|
8790
|
-
|
|
8776
|
+
React__default.createElement(
|
|
8791
8777
|
Head,
|
|
8792
8778
|
null,
|
|
8793
|
-
currentTitle !== null &&
|
|
8779
|
+
currentTitle !== null && React__default.createElement(
|
|
8794
8780
|
'title',
|
|
8795
8781
|
{ key: 'title' },
|
|
8796
8782
|
currentTitle
|
|
8797
8783
|
),
|
|
8798
|
-
currentSummary !== null &&
|
|
8799
|
-
currentURL !== null &&
|
|
8800
|
-
currentTitle !== null &&
|
|
8801
|
-
currentThumbnail !== null &&
|
|
8802
|
-
currentSummary !== null &&
|
|
8803
|
-
currentTitle !== null &&
|
|
8804
|
-
currentThumbnail !== null &&
|
|
8805
|
-
currentSummary !== null &&
|
|
8784
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8785
|
+
currentURL !== null && React__default.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8786
|
+
currentTitle !== null && React__default.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8787
|
+
currentThumbnail !== null && React__default.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8788
|
+
currentSummary !== null && React__default.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8789
|
+
currentTitle !== null && React__default.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8790
|
+
currentThumbnail !== null && React__default.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8791
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8806
8792
|
),
|
|
8807
|
-
|
|
8793
|
+
React__default.createElement(
|
|
8808
8794
|
'article',
|
|
8809
8795
|
{ className: 'article-wrapper' },
|
|
8810
|
-
|
|
8796
|
+
React__default.createElement(
|
|
8811
8797
|
'div',
|
|
8812
8798
|
{ className: 'article-publishDate' },
|
|
8813
8799
|
moment(article.published).format('LL')
|
|
8814
8800
|
),
|
|
8815
|
-
|
|
8801
|
+
React__default.createElement(
|
|
8816
8802
|
'div',
|
|
8817
8803
|
{ className: 'author-details-wrapper' },
|
|
8818
8804
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8819
|
-
return
|
|
8805
|
+
return React__default.createElement(
|
|
8820
8806
|
'span',
|
|
8821
8807
|
{ key: index },
|
|
8822
8808
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor(client, authorDetail.profileImage).url())
|
|
8823
8809
|
);
|
|
8824
8810
|
})
|
|
8825
8811
|
),
|
|
8826
|
-
|
|
8812
|
+
React__default.createElement(
|
|
8827
8813
|
'h2',
|
|
8828
8814
|
{ className: 'article-title' },
|
|
8829
8815
|
article.title
|
|
8830
8816
|
),
|
|
8831
|
-
|
|
8817
|
+
React__default.createElement(
|
|
8832
8818
|
'div',
|
|
8833
8819
|
{ className: 'mt-2 mb-2' },
|
|
8834
|
-
|
|
8820
|
+
React__default.createElement(BlockContent, _extends$1({
|
|
8835
8821
|
serializers: getSerializers,
|
|
8836
8822
|
videoAccountIDs: accountIDs,
|
|
8837
8823
|
blocks: article.text,
|
|
8838
8824
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8839
8825
|
}, client.config())),
|
|
8840
|
-
|
|
8826
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' })
|
|
8841
8827
|
),
|
|
8842
|
-
Articles.length > 1 &&
|
|
8843
|
-
|
|
8828
|
+
Articles.length > 1 && React__default.createElement(
|
|
8829
|
+
React__default.Fragment,
|
|
8844
8830
|
null,
|
|
8845
|
-
|
|
8831
|
+
React__default.createElement(
|
|
8846
8832
|
'div',
|
|
8847
8833
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8848
|
-
|
|
8834
|
+
React__default.createElement(
|
|
8849
8835
|
'h5',
|
|
8850
8836
|
{ className: 'objective-title' },
|
|
8851
8837
|
nodes.seriesTitle
|
|
8852
8838
|
),
|
|
8853
|
-
|
|
8839
|
+
React__default.createElement(
|
|
8854
8840
|
'div',
|
|
8855
8841
|
{ className: 'prevNextWrapper' },
|
|
8856
8842
|
PrevNextCards(true, index)
|
|
8857
8843
|
)
|
|
8858
8844
|
),
|
|
8859
|
-
|
|
8845
|
+
React__default.createElement('hr', { className: 'article-seperater' })
|
|
8860
8846
|
)
|
|
8861
8847
|
),
|
|
8862
|
-
|
|
8848
|
+
React__default.createElement(
|
|
8863
8849
|
'div',
|
|
8864
8850
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8865
|
-
|
|
8851
|
+
main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8866
8852
|
if (innerIndex === 0) {
|
|
8867
|
-
return
|
|
8853
|
+
return React__default.createElement(
|
|
8868
8854
|
'div',
|
|
8869
8855
|
{
|
|
8870
8856
|
key: 'addid-' + (index + 2),
|
|
@@ -8887,7 +8873,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8887
8873
|
)
|
|
8888
8874
|
);
|
|
8889
8875
|
}),
|
|
8890
|
-
|
|
8876
|
+
React__default.createElement(
|
|
8891
8877
|
'style',
|
|
8892
8878
|
{ jsx: 'true' },
|
|
8893
8879
|
'\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 '
|
|
@@ -8917,11 +8903,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8917
8903
|
};
|
|
8918
8904
|
}, [handleClickOutside]);
|
|
8919
8905
|
|
|
8920
|
-
return
|
|
8906
|
+
return React__default.createElement(
|
|
8921
8907
|
'div',
|
|
8922
8908
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8923
|
-
|
|
8924
|
-
|
|
8909
|
+
React__default.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8910
|
+
React__default.createElement(
|
|
8925
8911
|
'style',
|
|
8926
8912
|
{ jsx: 'true' },
|
|
8927
8913
|
'\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 '
|
|
@@ -9015,13 +9001,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9015
9001
|
|
|
9016
9002
|
var FigureCaption = useCallback(function () {
|
|
9017
9003
|
if (imgcaption && imgcaption.length > 0) {
|
|
9018
|
-
return
|
|
9004
|
+
return React__default.createElement(
|
|
9019
9005
|
'div',
|
|
9020
9006
|
{ className: 'figure-caption' },
|
|
9021
|
-
|
|
9007
|
+
React__default.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9022
9008
|
);
|
|
9023
9009
|
} else if (caption) {
|
|
9024
|
-
return
|
|
9010
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9025
9011
|
} else return null;
|
|
9026
9012
|
}, [caption, imgcaption]);
|
|
9027
9013
|
|
|
@@ -9033,21 +9019,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9033
9019
|
margin: figureMargin
|
|
9034
9020
|
};
|
|
9035
9021
|
|
|
9036
|
-
return
|
|
9037
|
-
|
|
9022
|
+
return React__default.createElement(
|
|
9023
|
+
React__default.Fragment,
|
|
9038
9024
|
null,
|
|
9039
|
-
|
|
9040
|
-
Figure$
|
|
9025
|
+
React__default.createElement(
|
|
9026
|
+
Figure$1$1,
|
|
9041
9027
|
{ className: '' + class_name, style: figureStyle },
|
|
9042
|
-
link ?
|
|
9028
|
+
link ? React__default.createElement(
|
|
9043
9029
|
'a',
|
|
9044
9030
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9045
|
-
|
|
9046
|
-
|
|
9047
|
-
) :
|
|
9048
|
-
|
|
9031
|
+
React__default.createElement(Figure$1$1.Image, { style: { maxWidth: '100%' }, className: 'figure-image', src: urlFor$3(node, client).url(), alt: alt && alt }),
|
|
9032
|
+
React__default.createElement(FigureCaption, null)
|
|
9033
|
+
) : React__default.createElement(
|
|
9034
|
+
React__default.Fragment,
|
|
9049
9035
|
null,
|
|
9050
|
-
|
|
9036
|
+
React__default.createElement(Figure$1$1.Image, {
|
|
9051
9037
|
style: { maxWidth: '100%', cursor: 'pointer', width: 'auto' },
|
|
9052
9038
|
className: 'figure-image',
|
|
9053
9039
|
src: urlFor$3(node, client).url(),
|
|
@@ -9057,9 +9043,9 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9057
9043
|
setShowLightbox(true);
|
|
9058
9044
|
}
|
|
9059
9045
|
}),
|
|
9060
|
-
|
|
9046
|
+
React__default.createElement(FigureCaption, null)
|
|
9061
9047
|
),
|
|
9062
|
-
|
|
9048
|
+
React__default.createElement(LightBox, {
|
|
9063
9049
|
showLightbox: showLightbox,
|
|
9064
9050
|
lightboxImgSrc: lightboxImgSrc,
|
|
9065
9051
|
closeLightbox: function closeLightbox() {
|
|
@@ -9068,7 +9054,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9068
9054
|
}
|
|
9069
9055
|
})
|
|
9070
9056
|
),
|
|
9071
|
-
|
|
9057
|
+
React__default.createElement(
|
|
9072
9058
|
'style',
|
|
9073
9059
|
{ jsx: 'true' },
|
|
9074
9060
|
'\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 '
|
|
@@ -9076,7 +9062,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9076
9062
|
);
|
|
9077
9063
|
};
|
|
9078
9064
|
|
|
9079
|
-
var Figure =
|
|
9065
|
+
var Figure = React__default.memo(FigureComponent, compareProps);
|
|
9080
9066
|
|
|
9081
9067
|
var urlFor$4 = function urlFor(source, client) {
|
|
9082
9068
|
var builder = imageUrlBuilder(client);
|
|
@@ -9122,47 +9108,47 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9122
9108
|
imgcaption = _ref.imgcaption;
|
|
9123
9109
|
|
|
9124
9110
|
if (imgcaption && imgcaption.length > 0) {
|
|
9125
|
-
return
|
|
9111
|
+
return React__default.createElement(
|
|
9126
9112
|
'div',
|
|
9127
9113
|
{ className: 'multi-figure-caption' },
|
|
9128
|
-
|
|
9114
|
+
React__default.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9129
9115
|
);
|
|
9130
9116
|
} else if (caption) {
|
|
9131
|
-
return
|
|
9117
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9132
9118
|
} else return null;
|
|
9133
9119
|
};
|
|
9134
9120
|
|
|
9135
9121
|
if (images && images.length > 0) {
|
|
9136
|
-
return
|
|
9122
|
+
return React__default.createElement(
|
|
9137
9123
|
'div',
|
|
9138
9124
|
{ className: 'multi-figure-container' },
|
|
9139
|
-
|
|
9125
|
+
React__default.createElement(
|
|
9140
9126
|
Row$1,
|
|
9141
9127
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9142
9128
|
images.map(function (image, index) {
|
|
9143
|
-
return
|
|
9129
|
+
return React__default.createElement(
|
|
9144
9130
|
Col$1,
|
|
9145
9131
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9146
|
-
image.link ?
|
|
9132
|
+
image.link ? React__default.createElement(
|
|
9147
9133
|
'a',
|
|
9148
|
-
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9149
|
-
|
|
9134
|
+
_extends$1({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9135
|
+
React__default.createElement(
|
|
9150
9136
|
'div',
|
|
9151
9137
|
{ className: 'multi-figure-image-container' },
|
|
9152
|
-
|
|
9138
|
+
React__default.createElement(
|
|
9153
9139
|
LazyLoad,
|
|
9154
9140
|
{ once: true },
|
|
9155
|
-
|
|
9141
|
+
React__default.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor$4(image.asset, client).url(), alt: image.alt })
|
|
9156
9142
|
),
|
|
9157
|
-
|
|
9143
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9158
9144
|
)
|
|
9159
|
-
) :
|
|
9145
|
+
) : React__default.createElement(
|
|
9160
9146
|
'div',
|
|
9161
9147
|
{ className: 'multi-figure-image-container' },
|
|
9162
|
-
|
|
9148
|
+
React__default.createElement(
|
|
9163
9149
|
LazyLoad,
|
|
9164
9150
|
{ once: true },
|
|
9165
|
-
|
|
9151
|
+
React__default.createElement('img', {
|
|
9166
9152
|
'images-count': images.length,
|
|
9167
9153
|
className: 'multi-figure-image',
|
|
9168
9154
|
src: urlFor$4(image.asset, client).url(),
|
|
@@ -9173,17 +9159,17 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9173
9159
|
}
|
|
9174
9160
|
})
|
|
9175
9161
|
),
|
|
9176
|
-
|
|
9162
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9177
9163
|
)
|
|
9178
9164
|
);
|
|
9179
9165
|
})
|
|
9180
9166
|
),
|
|
9181
|
-
|
|
9167
|
+
React__default.createElement(
|
|
9182
9168
|
'div',
|
|
9183
9169
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9184
|
-
|
|
9170
|
+
React__default.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9185
9171
|
),
|
|
9186
|
-
|
|
9172
|
+
React__default.createElement(
|
|
9187
9173
|
'style',
|
|
9188
9174
|
{ jsx: 'true' },
|
|
9189
9175
|
'\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 '
|
|
@@ -9205,10 +9191,68 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9205
9191
|
|
|
9206
9192
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
9207
9193
|
|
|
9208
|
-
return
|
|
9194
|
+
return React__default.createElement(
|
|
9209
9195
|
'div',
|
|
9210
9196
|
{ id: elementId },
|
|
9211
|
-
|
|
9197
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
9198
|
+
);
|
|
9199
|
+
};
|
|
9200
|
+
|
|
9201
|
+
var BlockTable = function BlockTable(props) {
|
|
9202
|
+
var _props$node = props.node,
|
|
9203
|
+
rows = _props$node.rows,
|
|
9204
|
+
_props$node$showBorde = _props$node.showBorders,
|
|
9205
|
+
showBorders = _props$node$showBorde === undefined ? true : _props$node$showBorde,
|
|
9206
|
+
borderColor = _props$node.borderColor,
|
|
9207
|
+
_props$node$borderWid = _props$node.borderWidth,
|
|
9208
|
+
borderWidth = _props$node$borderWid === undefined ? 1 : _props$node$borderWid,
|
|
9209
|
+
_props$node$minTableW = _props$node.minTableWidth,
|
|
9210
|
+
minTableWidth = _props$node$minTableW === undefined ? 500 : _props$node$minTableW,
|
|
9211
|
+
getSerializers = props.getSerializers,
|
|
9212
|
+
client = props.client;
|
|
9213
|
+
|
|
9214
|
+
var _borderColor = borderColor ? borderColor.hex : '#000000';
|
|
9215
|
+
var holder = useRef();
|
|
9216
|
+
useEffect(function () {
|
|
9217
|
+
var handleResize = function handleResize() {
|
|
9218
|
+
var holderWidth = holder.current.offsetWidth;
|
|
9219
|
+
if (holderWidth < minTableWidth) {
|
|
9220
|
+
holder.current.style.overflow = 'scroll';
|
|
9221
|
+
} else {
|
|
9222
|
+
holder.current.style.overflow = 'hidden';
|
|
9223
|
+
}
|
|
9224
|
+
};
|
|
9225
|
+
handleResize();
|
|
9226
|
+
window.addEventListener('resize', handleResize);
|
|
9227
|
+
return function () {
|
|
9228
|
+
return window.removeEventListener('resize', handleResize);
|
|
9229
|
+
};
|
|
9230
|
+
}, []);
|
|
9231
|
+
return React__default.createElement(
|
|
9232
|
+
'div',
|
|
9233
|
+
{ className: 'blockTableHolder', ref: holder },
|
|
9234
|
+
React__default.createElement(
|
|
9235
|
+
'div',
|
|
9236
|
+
{ className: 'blockTable' },
|
|
9237
|
+
rows && rows.map(function (row) {
|
|
9238
|
+
return React__default.createElement(
|
|
9239
|
+
'div',
|
|
9240
|
+
{ className: 'blockTableRow' },
|
|
9241
|
+
row.cells && row.cells.map(function (cell) {
|
|
9242
|
+
return React__default.createElement(
|
|
9243
|
+
'div',
|
|
9244
|
+
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9245
|
+
React__default.createElement(BlockContent, _extends$1({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9246
|
+
);
|
|
9247
|
+
})
|
|
9248
|
+
);
|
|
9249
|
+
})
|
|
9250
|
+
),
|
|
9251
|
+
React__default.createElement(
|
|
9252
|
+
'style',
|
|
9253
|
+
{ jsx: true },
|
|
9254
|
+
'\n .blockTableRow {\n display: flex;\n ' + (showBorders && 'border-top: ' + borderWidth + 'px solid ' + _borderColor) + ';\n }\n .blockTable {\n min-width: ' + minTableWidth + 'px;\n }\n .blockTableRow:last-of-type {\n ' + (showBorders && 'border-bottom: ' + borderWidth + 'px solid ' + _borderColor) + ';\n }\n .blockTableCell {\n padding: 0.5rem;\n ' + (showBorders && 'border-left: ' + borderWidth + 'px solid ' + _borderColor) + ';\n }\n .blockTableCell > div {\n width: 100%;\n }\n .blockTableCell > div p {\n margin: 0;\n }\n .blockTableCell > div figure {\n margin: 0 !important;\n }\n .blockTableCell > div figure img {\n margin: 0 !important;\n }\n .blockTableCell:last-of-type {\n ' + (showBorders && 'border-right: ' + borderWidth + 'px solid ' + _borderColor) + ';\n }\n @media only screen and (max-width: 800px) {\n .blockTableCell {\n padding: 0.25rem;\n }\n }\n '
|
|
9255
|
+
)
|
|
9212
9256
|
);
|
|
9213
9257
|
};
|
|
9214
9258
|
|
|
@@ -9261,10 +9305,9 @@ var getSerializers = function getSerializers() {
|
|
|
9261
9305
|
showVotes = props[4],
|
|
9262
9306
|
drupalLeadSettings = props[5],
|
|
9263
9307
|
currentPage = props[6],
|
|
9264
|
-
|
|
9265
|
-
|
|
9266
|
-
_props$
|
|
9267
|
-
contextualADFlag = _props$2 === undefined ? false : _props$2,
|
|
9308
|
+
autoplay = props[7],
|
|
9309
|
+
_props$ = props[8],
|
|
9310
|
+
contextualADFlag = _props$ === undefined ? false : _props$,
|
|
9268
9311
|
articleId = props[9],
|
|
9269
9312
|
Ads = props[10],
|
|
9270
9313
|
targeting = props[11],
|
|
@@ -9273,6 +9316,7 @@ var getSerializers = function getSerializers() {
|
|
|
9273
9316
|
authorPrefix = props[14],
|
|
9274
9317
|
authorImgHeight = props[15];
|
|
9275
9318
|
|
|
9319
|
+
|
|
9276
9320
|
return {
|
|
9277
9321
|
types: {
|
|
9278
9322
|
block: function block(props) {
|
|
@@ -9283,17 +9327,26 @@ var getSerializers = function getSerializers() {
|
|
|
9283
9327
|
var node = _ref.node;
|
|
9284
9328
|
var url = node.url;
|
|
9285
9329
|
|
|
9286
|
-
return
|
|
9330
|
+
return React__default.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9287
9331
|
},
|
|
9288
9332
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9289
9333
|
var node = _ref2.node;
|
|
9290
9334
|
|
|
9291
|
-
return
|
|
9335
|
+
return React__default.createElement(YouTubeGallery, {
|
|
9336
|
+
nodes: node,
|
|
9337
|
+
article: article,
|
|
9338
|
+
meta: meta,
|
|
9339
|
+
authorPrefix: authorPrefix,
|
|
9340
|
+
authorImgHeight: authorImgHeight,
|
|
9341
|
+
accountIDs: videoAccountIDs || {},
|
|
9342
|
+
client: client,
|
|
9343
|
+
getSerializers: getSerializers(client)
|
|
9344
|
+
});
|
|
9292
9345
|
},
|
|
9293
9346
|
articleSeries: function articleSeries(_ref3) {
|
|
9294
9347
|
var node = _ref3.node;
|
|
9295
9348
|
|
|
9296
|
-
return
|
|
9349
|
+
return React__default.createElement(ArticleSeries, {
|
|
9297
9350
|
nodes: node,
|
|
9298
9351
|
accountIDs: videoAccountIDs || {},
|
|
9299
9352
|
pageview: pageview,
|
|
@@ -9306,61 +9359,61 @@ var getSerializers = function getSerializers() {
|
|
|
9306
9359
|
figure: function figure(_ref4) {
|
|
9307
9360
|
var node = _ref4.node;
|
|
9308
9361
|
|
|
9309
|
-
return
|
|
9362
|
+
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9310
9363
|
},
|
|
9311
9364
|
multifigure: function multifigure(_ref5) {
|
|
9312
9365
|
var node = _ref5.node;
|
|
9313
9366
|
|
|
9314
|
-
return
|
|
9367
|
+
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9315
9368
|
},
|
|
9316
9369
|
slideshow: function slideshow(_ref6) {
|
|
9317
9370
|
var node = _ref6.node;
|
|
9318
9371
|
var slides = node.slides;
|
|
9319
9372
|
|
|
9320
|
-
return
|
|
9373
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9321
9374
|
},
|
|
9322
9375
|
sidebar: function sidebar(_ref7) {
|
|
9323
9376
|
var node = _ref7.node;
|
|
9324
9377
|
var caption = node.caption,
|
|
9325
9378
|
content = node.content;
|
|
9326
9379
|
|
|
9327
|
-
return
|
|
9380
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9328
9381
|
},
|
|
9329
9382
|
datatable: function datatable(_ref8) {
|
|
9330
9383
|
var node = _ref8.node;
|
|
9331
9384
|
var table = node.table;
|
|
9332
9385
|
|
|
9333
|
-
return
|
|
9386
|
+
return React__default.createElement(TableShow, { rows: table.rows });
|
|
9334
9387
|
},
|
|
9335
9388
|
media: function media(_ref9) {
|
|
9336
9389
|
var node = _ref9.node;
|
|
9337
9390
|
|
|
9338
|
-
return
|
|
9391
|
+
return React__default.createElement(Media, { node: node, client: client });
|
|
9339
9392
|
},
|
|
9340
9393
|
iframe: function iframe(_ref10) {
|
|
9341
9394
|
var node = _ref10.node;
|
|
9342
9395
|
|
|
9343
|
-
return
|
|
9396
|
+
return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9344
9397
|
},
|
|
9345
9398
|
video: function video(_ref11) {
|
|
9346
9399
|
var node = _ref11.node;
|
|
9347
9400
|
|
|
9348
|
-
return
|
|
9401
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9349
9402
|
},
|
|
9350
9403
|
audio: function audio(_ref12) {
|
|
9351
9404
|
var node = _ref12.node;
|
|
9352
9405
|
|
|
9353
|
-
return
|
|
9406
|
+
return React__default.createElement(Audio, { node: node });
|
|
9354
9407
|
},
|
|
9355
9408
|
poll: function poll(_ref13) {
|
|
9356
9409
|
var node = _ref13.node;
|
|
9357
9410
|
|
|
9358
|
-
return
|
|
9411
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9359
9412
|
},
|
|
9360
9413
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9361
9414
|
var node = _ref14.node;
|
|
9362
9415
|
|
|
9363
|
-
return
|
|
9416
|
+
return React__default.createElement(Poll$1, {
|
|
9364
9417
|
node: node,
|
|
9365
9418
|
client: client,
|
|
9366
9419
|
pageview: pageview,
|
|
@@ -9374,35 +9427,35 @@ var getSerializers = function getSerializers() {
|
|
|
9374
9427
|
var node = _ref15.node;
|
|
9375
9428
|
var quizzes = node.quizzes;
|
|
9376
9429
|
|
|
9377
|
-
return
|
|
9430
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9378
9431
|
},
|
|
9379
9432
|
leads: function leads(_ref16) {
|
|
9380
9433
|
var node = _ref16.node;
|
|
9381
9434
|
var leadID = node.leadID;
|
|
9382
9435
|
|
|
9383
9436
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9384
|
-
return
|
|
9437
|
+
return React__default.createElement(Leads, { url: url });
|
|
9385
9438
|
},
|
|
9386
9439
|
slideshows: function slideshows(_ref17) {
|
|
9387
9440
|
var node = _ref17.node;
|
|
9388
9441
|
|
|
9389
|
-
return
|
|
9442
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9390
9443
|
},
|
|
9391
9444
|
nativeAd: function nativeAd(_ref18) {
|
|
9392
9445
|
var node = _ref18.node;
|
|
9393
9446
|
|
|
9394
|
-
return
|
|
9447
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
9395
9448
|
},
|
|
9396
9449
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
9397
9450
|
var node = _ref19.node;
|
|
9398
9451
|
|
|
9399
|
-
return
|
|
9452
|
+
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9400
9453
|
},
|
|
9401
9454
|
hrtag: function hrtag() {
|
|
9402
|
-
return
|
|
9455
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9403
9456
|
},
|
|
9404
9457
|
brtag: function brtag() {
|
|
9405
|
-
return
|
|
9458
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
9406
9459
|
},
|
|
9407
9460
|
formstack: function formstack(_ref20) {
|
|
9408
9461
|
var node = _ref20.node;
|
|
@@ -9410,24 +9463,28 @@ var getSerializers = function getSerializers() {
|
|
|
9410
9463
|
Caption = node.Caption,
|
|
9411
9464
|
needSegmentSupport = node.needSegmentSupport;
|
|
9412
9465
|
|
|
9413
|
-
return
|
|
9466
|
+
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
9414
9467
|
},
|
|
9415
9468
|
multimedia: function multimedia(_ref21) {
|
|
9416
9469
|
var node = _ref21.node;
|
|
9417
9470
|
|
|
9418
|
-
return
|
|
9471
|
+
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
9472
|
+
},
|
|
9473
|
+
blockTable: function blockTable(_ref22) {
|
|
9474
|
+
var node = _ref22.node;
|
|
9475
|
+
return React__default.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9419
9476
|
}
|
|
9420
9477
|
},
|
|
9421
9478
|
marks: {
|
|
9422
9479
|
superscript: function superscript(props) {
|
|
9423
|
-
return
|
|
9480
|
+
return React__default.createElement(
|
|
9424
9481
|
'sup',
|
|
9425
9482
|
null,
|
|
9426
9483
|
props.children
|
|
9427
9484
|
);
|
|
9428
9485
|
},
|
|
9429
9486
|
subscript: function subscript(props) {
|
|
9430
|
-
return
|
|
9487
|
+
return React__default.createElement(
|
|
9431
9488
|
'sub',
|
|
9432
9489
|
null,
|
|
9433
9490
|
props.children
|
|
@@ -9443,7 +9500,7 @@ var getSerializers = function getSerializers() {
|
|
|
9443
9500
|
if (href && href.charAt(0) === '#') {
|
|
9444
9501
|
var elementId = href.slice(1);
|
|
9445
9502
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9446
|
-
return
|
|
9503
|
+
return React__default.createElement(
|
|
9447
9504
|
'a',
|
|
9448
9505
|
{ onClick: function onClick() {
|
|
9449
9506
|
return ScrollToElement(elementId);
|
|
@@ -9453,39 +9510,39 @@ var getSerializers = function getSerializers() {
|
|
|
9453
9510
|
}
|
|
9454
9511
|
|
|
9455
9512
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9456
|
-
return
|
|
9513
|
+
return React__default.createElement(
|
|
9457
9514
|
'a',
|
|
9458
9515
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
9459
9516
|
children
|
|
9460
9517
|
);
|
|
9461
9518
|
},
|
|
9462
|
-
alignleft: function alignleft(
|
|
9463
|
-
var children =
|
|
9464
|
-
return
|
|
9519
|
+
alignleft: function alignleft(_ref23) {
|
|
9520
|
+
var children = _ref23.children;
|
|
9521
|
+
return React__default.createElement(
|
|
9465
9522
|
'div',
|
|
9466
9523
|
{ style: { textAlign: 'left' } },
|
|
9467
9524
|
children
|
|
9468
9525
|
);
|
|
9469
9526
|
},
|
|
9470
|
-
alignright: function alignright(
|
|
9471
|
-
var children =
|
|
9472
|
-
return
|
|
9527
|
+
alignright: function alignright(_ref24) {
|
|
9528
|
+
var children = _ref24.children;
|
|
9529
|
+
return React__default.createElement(
|
|
9473
9530
|
'div',
|
|
9474
9531
|
{ style: { textAlign: 'right' } },
|
|
9475
9532
|
children
|
|
9476
9533
|
);
|
|
9477
9534
|
},
|
|
9478
|
-
aligncenter: function aligncenter(
|
|
9479
|
-
var children =
|
|
9480
|
-
return
|
|
9535
|
+
aligncenter: function aligncenter(_ref25) {
|
|
9536
|
+
var children = _ref25.children;
|
|
9537
|
+
return React__default.createElement(
|
|
9481
9538
|
'div',
|
|
9482
9539
|
{ style: { textAlign: 'center' } },
|
|
9483
9540
|
children
|
|
9484
9541
|
);
|
|
9485
9542
|
},
|
|
9486
|
-
alignjustify: function alignjustify(
|
|
9487
|
-
var children =
|
|
9488
|
-
return
|
|
9543
|
+
alignjustify: function alignjustify(_ref26) {
|
|
9544
|
+
var children = _ref26.children;
|
|
9545
|
+
return React__default.createElement(
|
|
9489
9546
|
'div',
|
|
9490
9547
|
{ style: { textAlign: 'justify' } },
|
|
9491
9548
|
children
|
|
@@ -9495,7 +9552,7 @@ var getSerializers = function getSerializers() {
|
|
|
9495
9552
|
var children = props.children,
|
|
9496
9553
|
color = props.mark.color;
|
|
9497
9554
|
|
|
9498
|
-
return
|
|
9555
|
+
return React__default.createElement(
|
|
9499
9556
|
'span',
|
|
9500
9557
|
{ style: { color: color ? color.hex : null } },
|
|
9501
9558
|
children
|