@mjhls/mjh-framework 1.0.784 → 1.0.785-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 -27
- package/dist/cjs/AD300x250x600.js +26 -27
- package/dist/cjs/AD728x90.js +29 -30
- package/dist/cjs/ADFloatingFooter.js +28 -29
- package/dist/cjs/ADFooter.js +14 -15
- package/dist/cjs/ADGutter.js +28 -29
- package/dist/cjs/{ADInfeed-1e53d7db.js → ADInfeed-bb09e44c.js} +13 -15
- package/dist/cjs/ADSkyscraper.js +28 -29
- package/dist/cjs/ADSponsoredResources.js +28 -29
- package/dist/cjs/ADWebcast.js +28 -29
- package/dist/cjs/ADWelcome.js +29 -30
- package/dist/cjs/{ADlgInfeed-2494fd17.js → ADlgInfeed-fa91dbda.js} +10 -11
- package/dist/cjs/AccordionPanel.js +29 -31
- package/dist/cjs/AdSlot.js +31 -32
- package/dist/cjs/AdSlotsProvider.js +15 -16
- package/dist/cjs/AlphabeticList.js +24 -25
- package/dist/cjs/ArticleCarousel.js +23 -24
- package/dist/cjs/ArticleProgramLandingPage.js +55 -56
- package/dist/cjs/ArticleSeriesLandingPage.js +37 -38
- package/dist/cjs/ArticleSeriesListing.js +60 -61
- package/dist/cjs/Auth.js +333 -819
- package/dist/cjs/{AuthorComponent-5fa89df5.js → AuthorComponent-bb831b74.js} +13 -14
- package/dist/cjs/Beam.js +8 -8
- package/dist/cjs/{BlockContent-eca358e4.js → BlockContent-091a991f.js} +24 -25
- package/dist/cjs/Breadcrumbs.js +27 -29
- package/dist/cjs/CMEDeck.js +82 -82
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +32 -35
- package/dist/cjs/Column3.js +54 -57
- package/dist/cjs/ConferenceArticleCard.js +23 -24
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +93 -97
- 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 +78 -79
- package/dist/cjs/Feature.js +25 -27
- package/dist/cjs/ForbesHero.js +40 -41
- package/dist/cjs/GridContent.js +177 -181
- package/dist/cjs/GridHero.js +42 -43
- package/dist/cjs/GroupDeck.js +58 -59
- package/dist/cjs/HamMagazine.js +130 -135
- package/dist/cjs/Header.js +14 -14
- package/dist/cjs/Hero.js +12 -13
- package/dist/cjs/HighlightenVideo.js +17 -18
- package/dist/cjs/HorizontalArticleListing.js +69 -70
- 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 -40
- package/dist/cjs/LeftNav.js +35 -37
- package/dist/cjs/MasterDeck.js +69 -70
- package/dist/cjs/MediaSeriesLanding.js +38 -40
- package/dist/cjs/NavDvm.js +74 -79
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +137 -142
- package/dist/cjs/NavNative.js +126 -134
- package/dist/cjs/NavNormal.js +47 -52
- package/dist/cjs/OncliveHero.js +20 -20
- package/dist/cjs/OncliveLargeHero.js +66 -67
- package/dist/cjs/PageFilter.js +14 -15
- package/dist/cjs/PartnerDetailListing.js +105 -106
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +19 -21
- package/dist/cjs/PubSection.js +38 -39
- package/dist/cjs/PubToc.js +15 -16
- package/dist/cjs/PublicationDeck.js +61 -66
- package/dist/cjs/PublicationLanding.js +79 -83
- package/dist/cjs/QueueDeckExpanded.js +291 -291
- 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 -6
- 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 -35
- 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 -53
- package/dist/cjs/TemplateNormal.js +72 -73
- package/dist/cjs/ThumbnailCard.js +20 -22
- package/dist/cjs/Ustream.js +26 -27
- package/dist/cjs/VerticalHero.js +17 -18
- package/dist/cjs/VideoProgramLandingPage.js +71 -75
- package/dist/cjs/VideoSeriesCard.js +31 -32
- package/dist/cjs/VideoSeriesFilter.js +18 -18
- package/dist/cjs/VideoSeriesLandingPage.js +45 -46
- package/dist/cjs/VideoSeriesListing.js +77 -78
- package/dist/cjs/View.js +256 -259
- 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-b6a175bf.js → asyncToGenerator-140e5f89.js} +7 -7
- 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-0a918631.js} +2 -1
- package/dist/cjs/getRelatedArticle.js +75 -137
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +43 -43
- package/dist/cjs/{getTargeting-497b581d.js → getTargeting-67f12cd7.js} +3 -3
- package/dist/cjs/getTargeting.js +7 -7
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-2a34c7db.js → index-00d36f50.js} +1208 -944
- package/dist/cjs/{index-4d74ffd6.js → index-3294d3bc.js} +41 -40
- 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 -163
- package/dist/cjs/{inherits-2eb23889.js → inherits-452ff02c.js} +8 -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 -23
- package/dist/esm/AD300x250x600.js +23 -23
- package/dist/esm/AD728x90.js +26 -26
- package/dist/esm/ADFloatingFooter.js +25 -25
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +25 -25
- package/dist/esm/{ADInfeed-94817c40.js → ADInfeed-0b552b0a.js} +9 -9
- package/dist/esm/ADSkyscraper.js +25 -25
- package/dist/esm/ADSponsoredResources.js +25 -25
- package/dist/esm/ADWebcast.js +25 -25
- package/dist/esm/ADWelcome.js +26 -26
- package/dist/esm/{ADlgInfeed-6124ee3c.js → ADlgInfeed-49f41f83.js} +8 -8
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +22 -22
- package/dist/esm/AdSlotsProvider.js +12 -12
- package/dist/esm/AlphabeticList.js +21 -21
- package/dist/esm/ArticleCarousel.js +20 -20
- package/dist/esm/ArticleProgramLandingPage.js +52 -52
- package/dist/esm/ArticleSeriesLandingPage.js +34 -34
- package/dist/esm/ArticleSeriesListing.js +55 -55
- package/dist/esm/Auth.js +316 -798
- package/dist/esm/{AuthorComponent-c7ff069f.js → AuthorComponent-34b16174.js} +11 -11
- package/dist/esm/Beam.js +8 -8
- package/dist/esm/{BlockContent-d8cd739c.js → BlockContent-e9b4ddcf.js} +4 -4
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/CMEDeck.js +78 -78
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +26 -26
- package/dist/esm/Column3.js +47 -47
- package/dist/esm/ConferenceArticleCard.js +19 -19
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +75 -75
- 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 -71
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +34 -34
- package/dist/esm/GridContent.js +139 -139
- package/dist/esm/GridHero.js +36 -36
- package/dist/esm/GroupDeck.js +46 -46
- package/dist/esm/HamMagazine.js +104 -104
- package/dist/esm/Header.js +10 -8
- package/dist/esm/Hero.js +9 -9
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +66 -66
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +49 -49
- package/dist/esm/IssueDeck.js +46 -46
- package/dist/esm/IssueLanding.js +36 -36
- package/dist/esm/LeftNav.js +31 -31
- package/dist/esm/MasterDeck.js +63 -63
- package/dist/esm/MediaSeriesLanding.js +31 -31
- package/dist/esm/NavDvm.js +56 -56
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +113 -113
- package/dist/esm/NavNative.js +99 -99
- package/dist/esm/NavNormal.js +35 -35
- package/dist/esm/OncliveHero.js +17 -16
- package/dist/esm/OncliveLargeHero.js +59 -59
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +101 -101
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PubSection.js +35 -35
- package/dist/esm/PubToc.js +12 -12
- package/dist/esm/PublicationDeck.js +38 -38
- package/dist/esm/PublicationLanding.js +54 -54
- package/dist/esm/QueueDeckExpanded.js +271 -271
- 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 -6
- 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 -30
- 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 -47
- package/dist/esm/TemplateNormal.js +66 -66
- package/dist/esm/ThumbnailCard.js +13 -13
- package/dist/esm/Ustream.js +23 -23
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoProgramLandingPage.js +61 -61
- package/dist/esm/VideoSeriesCard.js +24 -24
- package/dist/esm/VideoSeriesFilter.js +15 -15
- package/dist/esm/VideoSeriesLandingPage.js +38 -38
- package/dist/esm/VideoSeriesListing.js +71 -71
- package/dist/esm/View.js +240 -239
- 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-585841c0.js → asyncToGenerator-fc1c2e29.js} +7 -7
- 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-6f2fcc99.js} +2 -2
- package/dist/esm/getRelatedArticle.js +70 -132
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +43 -43
- package/dist/esm/{getTargeting-2d402d66.js → getTargeting-ed6ebf43.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-f42d71f0.js → index-728dd91f.js} +1151 -880
- 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-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 -129
- package/dist/esm/{inherits-5906fbea.js → inherits-cf8dde54.js} +6 -6
- 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 +2 -1
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
|
@@ -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, b as _extends$2 } from './extends-6f2fcc99.js';
|
|
5
|
+
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-cf8dde54.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); }; }
|
|
1576
|
-
|
|
1577
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1578
|
-
|
|
1579
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
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; }; }();
|
|
1580
1573
|
|
|
1581
|
-
function
|
|
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,6 +1906,14 @@ 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
1919
|
var url = _ref.url,
|
|
@@ -1985,11 +2015,11 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1985
2015
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
1986
2016
|
};
|
|
1987
2017
|
|
|
1988
|
-
return
|
|
2018
|
+
return React__default.createElement(
|
|
1989
2019
|
'div',
|
|
1990
2020
|
{ id: 'fluid-video-container' },
|
|
1991
|
-
|
|
1992
|
-
|
|
2021
|
+
React__default.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
2022
|
+
React__default.createElement(
|
|
1993
2023
|
'style',
|
|
1994
2024
|
{ jsx: 'true' },
|
|
1995
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 '
|
|
@@ -2002,20 +2032,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2002
2032
|
content = _ref.content,
|
|
2003
2033
|
getSerializers = _ref.getSerializers;
|
|
2004
2034
|
|
|
2005
|
-
return
|
|
2035
|
+
return React__default.createElement(
|
|
2006
2036
|
'article',
|
|
2007
2037
|
{ className: 'sidebar' },
|
|
2008
|
-
|
|
2038
|
+
React__default.createElement(
|
|
2009
2039
|
'div',
|
|
2010
2040
|
null,
|
|
2011
|
-
|
|
2041
|
+
React__default.createElement(
|
|
2012
2042
|
'h3',
|
|
2013
2043
|
null,
|
|
2014
2044
|
caption
|
|
2015
2045
|
),
|
|
2016
|
-
|
|
2046
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2017
2047
|
),
|
|
2018
|
-
|
|
2048
|
+
React__default.createElement(
|
|
2019
2049
|
'style',
|
|
2020
2050
|
{ jsx: 'true' },
|
|
2021
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 '
|
|
@@ -2026,18 +2056,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2026
2056
|
var TableShow = function TableShow(_ref) {
|
|
2027
2057
|
var rows = _ref.rows;
|
|
2028
2058
|
|
|
2029
|
-
return
|
|
2059
|
+
return React__default.createElement(
|
|
2030
2060
|
Table,
|
|
2031
2061
|
{ bordered: true, hover: true, responsive: true },
|
|
2032
|
-
|
|
2062
|
+
React__default.createElement(
|
|
2033
2063
|
'tbody',
|
|
2034
2064
|
null,
|
|
2035
2065
|
rows && rows.map(function (row) {
|
|
2036
|
-
return
|
|
2066
|
+
return React__default.createElement(
|
|
2037
2067
|
'tr',
|
|
2038
2068
|
{ key: row._key },
|
|
2039
2069
|
row.cells && row.cells.map(function (cell, index) {
|
|
2040
|
-
return cell &&
|
|
2070
|
+
return cell && React__default.createElement(
|
|
2041
2071
|
'td',
|
|
2042
2072
|
{ key: index },
|
|
2043
2073
|
cell
|
|
@@ -2140,18 +2170,18 @@ var Media = function Media(_ref) {
|
|
|
2140
2170
|
margin: imageMargin
|
|
2141
2171
|
};
|
|
2142
2172
|
|
|
2143
|
-
return
|
|
2173
|
+
return React__default.createElement(
|
|
2144
2174
|
Figure$1,
|
|
2145
2175
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2146
|
-
|
|
2176
|
+
React__default.createElement(
|
|
2147
2177
|
'a',
|
|
2148
2178
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2149
|
-
|
|
2179
|
+
React__default.createElement(
|
|
2150
2180
|
LazyLoad,
|
|
2151
2181
|
{ once: true },
|
|
2152
|
-
|
|
2182
|
+
React__default.createElement(Figure$1.Image, _extends$1({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt }))
|
|
2153
2183
|
),
|
|
2154
|
-
caption &&
|
|
2184
|
+
caption && React__default.createElement(
|
|
2155
2185
|
Figure$1.Caption,
|
|
2156
2186
|
{ className: 'media-caption' },
|
|
2157
2187
|
caption
|
|
@@ -2159,9 +2189,9 @@ var Media = function Media(_ref) {
|
|
|
2159
2189
|
)
|
|
2160
2190
|
);
|
|
2161
2191
|
} else if (caption && caption !== '') {
|
|
2162
|
-
return
|
|
2192
|
+
return React__default.createElement(
|
|
2163
2193
|
'a',
|
|
2164
|
-
_extends({}, uploadDoc.downloadMedia ? {
|
|
2194
|
+
_extends$1({}, uploadDoc.downloadMedia ? {
|
|
2165
2195
|
href: uploadDoc.asset.url + '?dl='
|
|
2166
2196
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2167
2197
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2179,10 +2209,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2179
2209
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2180
2210
|
|
|
2181
2211
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2182
|
-
return
|
|
2212
|
+
return React__default.createElement(
|
|
2183
2213
|
'div',
|
|
2184
2214
|
{ className: 'd-block text-center mb-3' },
|
|
2185
|
-
|
|
2215
|
+
React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2186
2216
|
);
|
|
2187
2217
|
};
|
|
2188
2218
|
|
|
@@ -2277,10 +2307,10 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2277
2307
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
|
|
2278
2308
|
};
|
|
2279
2309
|
|
|
2280
|
-
return
|
|
2310
|
+
return React__default.createElement(
|
|
2281
2311
|
'div',
|
|
2282
2312
|
null,
|
|
2283
|
-
vidLoaded &&
|
|
2313
|
+
vidLoaded && React__default.createElement(
|
|
2284
2314
|
'video',
|
|
2285
2315
|
{
|
|
2286
2316
|
poster: thumbnail || '',
|
|
@@ -2298,7 +2328,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2298
2328
|
onPlay: function onPlay(e) {
|
|
2299
2329
|
return handleOnPlay(e);
|
|
2300
2330
|
} },
|
|
2301
|
-
|
|
2331
|
+
React__default.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2302
2332
|
'Your browser does not support the video tag.'
|
|
2303
2333
|
)
|
|
2304
2334
|
);
|
|
@@ -2335,7 +2365,7 @@ var Video = function Video(_ref) {
|
|
|
2335
2365
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2336
2366
|
//console.log('success:', success.ref)
|
|
2337
2367
|
var player = success.ref;
|
|
2338
|
-
if (_typeof
|
|
2368
|
+
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2339
2369
|
player.ima3.settings.debug = true;
|
|
2340
2370
|
if (targeting.content_placement && targeting.document_url) {
|
|
2341
2371
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2433,53 +2463,53 @@ var Video = function Video(_ref) {
|
|
|
2433
2463
|
|
|
2434
2464
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2435
2465
|
if (videoID) {
|
|
2436
|
-
return
|
|
2466
|
+
return React__default.createElement(
|
|
2437
2467
|
'div',
|
|
2438
2468
|
null,
|
|
2439
|
-
|
|
2469
|
+
React__default.createElement(ReactPlayerLoader, {
|
|
2440
2470
|
onSuccess: onVideoSuccess,
|
|
2441
2471
|
accountId: accountIDs.brightcove.accountId,
|
|
2442
2472
|
videoId: videoID,
|
|
2443
2473
|
playerId: accountIDs.brightcove.playerId,
|
|
2444
2474
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2445
2475
|
}),
|
|
2446
|
-
|
|
2476
|
+
React__default.createElement(
|
|
2447
2477
|
'style',
|
|
2448
2478
|
{ jsx: 'true' },
|
|
2449
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 '
|
|
2450
2480
|
)
|
|
2451
2481
|
);
|
|
2452
2482
|
} else if (playlistID) {
|
|
2453
|
-
return
|
|
2483
|
+
return React__default.createElement(
|
|
2454
2484
|
'div',
|
|
2455
2485
|
null,
|
|
2456
|
-
|
|
2486
|
+
React__default.createElement(ReactPlayerLoader, {
|
|
2457
2487
|
accountId: accountIDs.brightcove.accountId,
|
|
2458
2488
|
playlistId: playlistID,
|
|
2459
2489
|
playerId: accountIDs.brightcove.playerId,
|
|
2460
2490
|
onSuccess: onVideoSuccess,
|
|
2461
2491
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2462
2492
|
}),
|
|
2463
|
-
|
|
2493
|
+
React__default.createElement(
|
|
2464
2494
|
'style',
|
|
2465
2495
|
{ jsx: 'true' },
|
|
2466
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 '
|
|
2467
2497
|
)
|
|
2468
2498
|
);
|
|
2469
2499
|
} else if (experienceID) {
|
|
2470
|
-
return
|
|
2500
|
+
return React__default.createElement(
|
|
2471
2501
|
'div',
|
|
2472
2502
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2473
|
-
videoLoaded &&
|
|
2503
|
+
videoLoaded && React__default.createElement('div', { 'data-experience': experienceID })
|
|
2474
2504
|
);
|
|
2475
2505
|
}
|
|
2476
2506
|
return null;
|
|
2477
2507
|
}
|
|
2478
2508
|
if (source === 'mp4') {
|
|
2479
|
-
return
|
|
2509
|
+
return React__default.createElement(
|
|
2480
2510
|
'div',
|
|
2481
2511
|
null,
|
|
2482
|
-
|
|
2512
|
+
React__default.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2483
2513
|
);
|
|
2484
2514
|
}
|
|
2485
2515
|
|
|
@@ -2690,9 +2720,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2690
2720
|
});
|
|
2691
2721
|
|
|
2692
2722
|
unwrapExports(props);
|
|
2693
|
-
props.DEPRECATED_CONFIG_PROPS;
|
|
2694
|
-
props.defaultProps;
|
|
2695
|
-
props.propTypes;
|
|
2723
|
+
var props_1 = props.DEPRECATED_CONFIG_PROPS;
|
|
2724
|
+
var props_2 = props.defaultProps;
|
|
2725
|
+
var props_3 = props.propTypes;
|
|
2696
2726
|
|
|
2697
2727
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2698
2728
|
return isNonNullObject(value)
|
|
@@ -2857,17 +2887,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2857
2887
|
|
|
2858
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; }
|
|
2859
2889
|
|
|
2860
|
-
function
|
|
2861
|
-
|
|
2862
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2863
|
-
|
|
2864
|
-
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."); }
|
|
2865
|
-
|
|
2866
|
-
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); }
|
|
2890
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2867
2891
|
|
|
2868
|
-
function
|
|
2892
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2869
2893
|
|
|
2870
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
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; }
|
|
2871
2895
|
|
|
2872
2896
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2873
2897
|
|
|
@@ -2997,12 +3021,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
2997
3021
|
|
|
2998
3022
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
2999
3023
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3000
|
-
|
|
3001
|
-
var
|
|
3002
|
-
|
|
3024
|
+
var _iteratorNormalCompletion = true;
|
|
3025
|
+
var _didIteratorError = false;
|
|
3026
|
+
var _iteratorError = undefined;
|
|
3003
3027
|
|
|
3004
3028
|
try {
|
|
3005
|
-
for (_iterator.
|
|
3029
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
3006
3030
|
var p = _step.value;
|
|
3007
3031
|
|
|
3008
3032
|
if (props$1[p]) {
|
|
@@ -3017,9 +3041,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3017
3041
|
}
|
|
3018
3042
|
}
|
|
3019
3043
|
} catch (err) {
|
|
3020
|
-
|
|
3044
|
+
_didIteratorError = true;
|
|
3045
|
+
_iteratorError = err;
|
|
3021
3046
|
} finally {
|
|
3022
|
-
|
|
3047
|
+
try {
|
|
3048
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3049
|
+
_iterator["return"]();
|
|
3050
|
+
}
|
|
3051
|
+
} finally {
|
|
3052
|
+
if (_didIteratorError) {
|
|
3053
|
+
throw _iteratorError;
|
|
3054
|
+
}
|
|
3055
|
+
}
|
|
3023
3056
|
}
|
|
3024
3057
|
|
|
3025
3058
|
return config;
|
|
@@ -3084,7 +3117,7 @@ function isEqual(a, b) {
|
|
|
3084
3117
|
return true;
|
|
3085
3118
|
}
|
|
3086
3119
|
|
|
3087
|
-
if ((0,
|
|
3120
|
+
if ((0, React__default.isValidElement)(a) && (0, React__default.isValidElement)(b)) {
|
|
3088
3121
|
return true;
|
|
3089
3122
|
}
|
|
3090
3123
|
|
|
@@ -3127,17 +3160,17 @@ function isMediaStream(url) {
|
|
|
3127
3160
|
});
|
|
3128
3161
|
|
|
3129
3162
|
unwrapExports(utils);
|
|
3130
|
-
utils.parseStartTime;
|
|
3131
|
-
utils.parseEndTime;
|
|
3132
|
-
utils.randomString;
|
|
3133
|
-
utils.queryString;
|
|
3134
|
-
utils.getSDK;
|
|
3135
|
-
utils.getConfig;
|
|
3136
|
-
utils.omit;
|
|
3137
|
-
utils.callPlayer;
|
|
3138
|
-
utils.isObject;
|
|
3139
|
-
utils.isEqual;
|
|
3140
|
-
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;
|
|
3141
3174
|
|
|
3142
3175
|
var Player_1 = createCommonjsModule(function (module, exports) {
|
|
3143
3176
|
|
|
@@ -3146,7 +3179,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3146
3179
|
});
|
|
3147
3180
|
exports["default"] = void 0;
|
|
3148
3181
|
|
|
3149
|
-
var _react = _interopRequireWildcard(
|
|
3182
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3150
3183
|
|
|
3151
3184
|
|
|
3152
3185
|
|
|
@@ -3166,16 +3199,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3166
3199
|
|
|
3167
3200
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3168
3201
|
|
|
3169
|
-
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); }; }
|
|
3170
|
-
|
|
3171
3202
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3172
3203
|
|
|
3173
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3174
|
-
|
|
3175
|
-
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; } }
|
|
3176
|
-
|
|
3177
3204
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3178
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
|
+
|
|
3179
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); }
|
|
3180
3209
|
|
|
3181
3210
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3184,12 +3213,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3184
3213
|
|
|
3185
3214
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3186
3215
|
|
|
3187
|
-
var Player =
|
|
3216
|
+
var Player =
|
|
3217
|
+
/*#__PURE__*/
|
|
3218
|
+
function (_Component) {
|
|
3188
3219
|
_inherits(Player, _Component);
|
|
3189
3220
|
|
|
3190
|
-
var _super = _createSuper(Player);
|
|
3191
|
-
|
|
3192
3221
|
function Player() {
|
|
3222
|
+
var _getPrototypeOf2;
|
|
3223
|
+
|
|
3193
3224
|
var _this;
|
|
3194
3225
|
|
|
3195
3226
|
_classCallCheck(this, Player);
|
|
@@ -3198,7 +3229,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3198
3229
|
_args[_key] = arguments[_key];
|
|
3199
3230
|
}
|
|
3200
3231
|
|
|
3201
|
-
_this =
|
|
3232
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3202
3233
|
|
|
3203
3234
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3204
3235
|
|
|
@@ -3523,7 +3554,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3523
3554
|
return null;
|
|
3524
3555
|
}
|
|
3525
3556
|
|
|
3526
|
-
return
|
|
3557
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3527
3558
|
ref: this.ref,
|
|
3528
3559
|
onReady: this.handleReady,
|
|
3529
3560
|
onPlay: this.handlePlay,
|
|
@@ -3556,7 +3587,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3556
3587
|
});
|
|
3557
3588
|
exports["default"] = createSinglePlayer;
|
|
3558
3589
|
|
|
3559
|
-
var _react = _interopRequireWildcard(
|
|
3590
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3560
3591
|
|
|
3561
3592
|
|
|
3562
3593
|
|
|
@@ -3584,16 +3615,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3584
3615
|
|
|
3585
3616
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3586
3617
|
|
|
3587
|
-
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); }; }
|
|
3588
|
-
|
|
3589
3618
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3590
3619
|
|
|
3591
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3592
|
-
|
|
3593
|
-
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; } }
|
|
3594
|
-
|
|
3595
3620
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3596
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
|
+
|
|
3597
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); }
|
|
3598
3625
|
|
|
3599
3626
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3605,12 +3632,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3605
3632
|
function createSinglePlayer(activePlayer) {
|
|
3606
3633
|
var _class, _temp;
|
|
3607
3634
|
|
|
3608
|
-
return _temp = _class =
|
|
3635
|
+
return _temp = _class =
|
|
3636
|
+
/*#__PURE__*/
|
|
3637
|
+
function (_Component) {
|
|
3609
3638
|
_inherits(SinglePlayer, _Component);
|
|
3610
3639
|
|
|
3611
|
-
var _super = _createSuper(SinglePlayer);
|
|
3612
|
-
|
|
3613
3640
|
function SinglePlayer() {
|
|
3641
|
+
var _getPrototypeOf2;
|
|
3642
|
+
|
|
3614
3643
|
var _this;
|
|
3615
3644
|
|
|
3616
3645
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3619,7 +3648,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3619
3648
|
args[_key] = arguments[_key];
|
|
3620
3649
|
}
|
|
3621
3650
|
|
|
3622
|
-
_this =
|
|
3651
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3623
3652
|
|
|
3624
3653
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3625
3654
|
|
|
@@ -3687,12 +3716,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3687
3716
|
height = _this$props.height,
|
|
3688
3717
|
Wrapper = _this$props.wrapper;
|
|
3689
3718
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3690
|
-
return
|
|
3719
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3691
3720
|
style: _objectSpread({}, style, {
|
|
3692
3721
|
width: width,
|
|
3693
3722
|
height: height
|
|
3694
3723
|
})
|
|
3695
|
-
}, otherProps),
|
|
3724
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3696
3725
|
ref: this.ref,
|
|
3697
3726
|
activePlayer: activePlayer,
|
|
3698
3727
|
config: this.config
|
|
@@ -3714,7 +3743,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3714
3743
|
});
|
|
3715
3744
|
exports["default"] = exports.YouTube = void 0;
|
|
3716
3745
|
|
|
3717
|
-
var _react = _interopRequireWildcard(
|
|
3746
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3718
3747
|
|
|
3719
3748
|
|
|
3720
3749
|
|
|
@@ -3738,31 +3767,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3738
3767
|
|
|
3739
3768
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3740
3769
|
|
|
3741
|
-
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); }; }
|
|
3742
|
-
|
|
3743
3770
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3744
3771
|
|
|
3745
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3746
|
-
|
|
3747
|
-
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; } }
|
|
3748
|
-
|
|
3749
3772
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3750
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
|
+
|
|
3751
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); }
|
|
3752
3777
|
|
|
3753
3778
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3754
3779
|
|
|
3755
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; }
|
|
3756
3781
|
|
|
3757
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3758
|
-
|
|
3759
|
-
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."); }
|
|
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
|
|
3764
|
-
|
|
3765
|
-
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; }
|
|
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; }
|
|
3766
3787
|
|
|
3767
3788
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3768
3789
|
|
|
@@ -3787,12 +3808,14 @@ function parsePlaylist(url) {
|
|
|
3787
3808
|
return {};
|
|
3788
3809
|
}
|
|
3789
3810
|
|
|
3790
|
-
var YouTube =
|
|
3811
|
+
var YouTube =
|
|
3812
|
+
/*#__PURE__*/
|
|
3813
|
+
function (_Component) {
|
|
3791
3814
|
_inherits(YouTube, _Component);
|
|
3792
3815
|
|
|
3793
|
-
var _super = _createSuper(YouTube);
|
|
3794
|
-
|
|
3795
3816
|
function YouTube() {
|
|
3817
|
+
var _getPrototypeOf2;
|
|
3818
|
+
|
|
3796
3819
|
var _this;
|
|
3797
3820
|
|
|
3798
3821
|
_classCallCheck(this, YouTube);
|
|
@@ -3801,7 +3824,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3801
3824
|
args[_key] = arguments[_key];
|
|
3802
3825
|
}
|
|
3803
3826
|
|
|
3804
|
-
_this =
|
|
3827
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3805
3828
|
|
|
3806
3829
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3807
3830
|
|
|
@@ -3989,9 +4012,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3989
4012
|
height: '100%',
|
|
3990
4013
|
display: display
|
|
3991
4014
|
};
|
|
3992
|
-
return
|
|
4015
|
+
return _react["default"].createElement("div", {
|
|
3993
4016
|
style: style
|
|
3994
|
-
},
|
|
4017
|
+
}, _react["default"].createElement("div", {
|
|
3995
4018
|
ref: this.ref
|
|
3996
4019
|
}));
|
|
3997
4020
|
}
|
|
@@ -4014,7 +4037,7 @@ exports["default"] = _default;
|
|
|
4014
4037
|
});
|
|
4015
4038
|
|
|
4016
4039
|
unwrapExports(YouTube_1);
|
|
4017
|
-
YouTube_1.YouTube;
|
|
4040
|
+
var YouTube_2 = YouTube_1.YouTube;
|
|
4018
4041
|
|
|
4019
4042
|
var SoundCloud_1 = createCommonjsModule(function (module, exports) {
|
|
4020
4043
|
|
|
@@ -4023,7 +4046,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4023
4046
|
});
|
|
4024
4047
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4025
4048
|
|
|
4026
|
-
var _react = _interopRequireWildcard(
|
|
4049
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4027
4050
|
|
|
4028
4051
|
|
|
4029
4052
|
|
|
@@ -4047,16 +4070,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4047
4070
|
|
|
4048
4071
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4049
4072
|
|
|
4050
|
-
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); }; }
|
|
4051
|
-
|
|
4052
4073
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4053
4074
|
|
|
4054
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4055
|
-
|
|
4056
|
-
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; } }
|
|
4057
|
-
|
|
4058
4075
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4059
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
|
+
|
|
4060
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); }
|
|
4061
4080
|
|
|
4062
4081
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4065,14 +4084,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4065
4084
|
|
|
4066
4085
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4067
4086
|
var SDK_GLOBAL = 'SC';
|
|
4068
|
-
var MATCH_URL = /(
|
|
4087
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
4069
4088
|
|
|
4070
|
-
var SoundCloud =
|
|
4089
|
+
var SoundCloud =
|
|
4090
|
+
/*#__PURE__*/
|
|
4091
|
+
function (_Component) {
|
|
4071
4092
|
_inherits(SoundCloud, _Component);
|
|
4072
4093
|
|
|
4073
|
-
var _super = _createSuper(SoundCloud);
|
|
4074
|
-
|
|
4075
4094
|
function SoundCloud() {
|
|
4095
|
+
var _getPrototypeOf2;
|
|
4096
|
+
|
|
4076
4097
|
var _this;
|
|
4077
4098
|
|
|
4078
4099
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4081,7 +4102,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4081
4102
|
args[_key] = arguments[_key];
|
|
4082
4103
|
}
|
|
4083
4104
|
|
|
4084
|
-
_this =
|
|
4105
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4085
4106
|
|
|
4086
4107
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4087
4108
|
|
|
@@ -4202,7 +4223,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4202
4223
|
height: '100%',
|
|
4203
4224
|
display: display
|
|
4204
4225
|
};
|
|
4205
|
-
return
|
|
4226
|
+
return _react["default"].createElement("iframe", {
|
|
4206
4227
|
ref: this.ref,
|
|
4207
4228
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4208
4229
|
style: style,
|
|
@@ -4231,7 +4252,7 @@ exports["default"] = _default;
|
|
|
4231
4252
|
});
|
|
4232
4253
|
|
|
4233
4254
|
unwrapExports(SoundCloud_1);
|
|
4234
|
-
SoundCloud_1.SoundCloud;
|
|
4255
|
+
var SoundCloud_2 = SoundCloud_1.SoundCloud;
|
|
4235
4256
|
|
|
4236
4257
|
var Vimeo_1 = createCommonjsModule(function (module, exports) {
|
|
4237
4258
|
|
|
@@ -4240,7 +4261,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4240
4261
|
});
|
|
4241
4262
|
exports["default"] = exports.Vimeo = void 0;
|
|
4242
4263
|
|
|
4243
|
-
var _react = _interopRequireWildcard(
|
|
4264
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4244
4265
|
|
|
4245
4266
|
|
|
4246
4267
|
|
|
@@ -4264,16 +4285,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4264
4285
|
|
|
4265
4286
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4266
4287
|
|
|
4267
|
-
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); }; }
|
|
4268
|
-
|
|
4269
4288
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4270
4289
|
|
|
4271
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4272
|
-
|
|
4273
|
-
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; } }
|
|
4274
|
-
|
|
4275
4290
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4276
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
|
+
|
|
4277
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); }
|
|
4278
4295
|
|
|
4279
4296
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4285,12 +4302,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4285
4302
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4286
4303
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4287
4304
|
|
|
4288
|
-
var Vimeo =
|
|
4305
|
+
var Vimeo =
|
|
4306
|
+
/*#__PURE__*/
|
|
4307
|
+
function (_Component) {
|
|
4289
4308
|
_inherits(Vimeo, _Component);
|
|
4290
4309
|
|
|
4291
|
-
var _super = _createSuper(Vimeo);
|
|
4292
|
-
|
|
4293
4310
|
function Vimeo() {
|
|
4311
|
+
var _getPrototypeOf2;
|
|
4312
|
+
|
|
4294
4313
|
var _this;
|
|
4295
4314
|
|
|
4296
4315
|
_classCallCheck(this, Vimeo);
|
|
@@ -4299,7 +4318,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4299
4318
|
args[_key] = arguments[_key];
|
|
4300
4319
|
}
|
|
4301
4320
|
|
|
4302
|
-
_this =
|
|
4321
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4303
4322
|
|
|
4304
4323
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4305
4324
|
|
|
@@ -4456,7 +4475,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4456
4475
|
overflow: 'hidden',
|
|
4457
4476
|
display: display
|
|
4458
4477
|
};
|
|
4459
|
-
return
|
|
4478
|
+
return _react["default"].createElement("div", {
|
|
4460
4479
|
key: this.props.url,
|
|
4461
4480
|
ref: this.ref,
|
|
4462
4481
|
style: style
|
|
@@ -4487,7 +4506,7 @@ exports["default"] = _default;
|
|
|
4487
4506
|
});
|
|
4488
4507
|
|
|
4489
4508
|
unwrapExports(Vimeo_1);
|
|
4490
|
-
Vimeo_1.Vimeo;
|
|
4509
|
+
var Vimeo_2 = Vimeo_1.Vimeo;
|
|
4491
4510
|
|
|
4492
4511
|
var Facebook_1 = createCommonjsModule(function (module, exports) {
|
|
4493
4512
|
|
|
@@ -4496,7 +4515,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4496
4515
|
});
|
|
4497
4516
|
exports["default"] = exports.Facebook = void 0;
|
|
4498
4517
|
|
|
4499
|
-
var _react = _interopRequireWildcard(
|
|
4518
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4500
4519
|
|
|
4501
4520
|
|
|
4502
4521
|
|
|
@@ -4516,16 +4535,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4516
4535
|
|
|
4517
4536
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4518
4537
|
|
|
4519
|
-
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); }; }
|
|
4520
|
-
|
|
4521
4538
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4522
4539
|
|
|
4523
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4524
|
-
|
|
4525
|
-
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; } }
|
|
4526
|
-
|
|
4527
4540
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4528
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
|
+
|
|
4529
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); }
|
|
4530
4545
|
|
|
4531
4546
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4538,12 +4553,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4538
4553
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4539
4554
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4540
4555
|
|
|
4541
|
-
var Facebook =
|
|
4556
|
+
var Facebook =
|
|
4557
|
+
/*#__PURE__*/
|
|
4558
|
+
function (_Component) {
|
|
4542
4559
|
_inherits(Facebook, _Component);
|
|
4543
4560
|
|
|
4544
|
-
var _super = _createSuper(Facebook);
|
|
4545
|
-
|
|
4546
4561
|
function Facebook() {
|
|
4562
|
+
var _getPrototypeOf2;
|
|
4563
|
+
|
|
4547
4564
|
var _this;
|
|
4548
4565
|
|
|
4549
4566
|
_classCallCheck(this, Facebook);
|
|
@@ -4552,7 +4569,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4552
4569
|
args[_key] = arguments[_key];
|
|
4553
4570
|
}
|
|
4554
4571
|
|
|
4555
|
-
_this =
|
|
4572
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4556
4573
|
|
|
4557
4574
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4558
4575
|
|
|
@@ -4668,7 +4685,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4668
4685
|
width: '100%',
|
|
4669
4686
|
height: '100%'
|
|
4670
4687
|
};
|
|
4671
|
-
return
|
|
4688
|
+
return _react["default"].createElement("div", {
|
|
4672
4689
|
style: style,
|
|
4673
4690
|
id: this.playerID,
|
|
4674
4691
|
className: "fb-video",
|
|
@@ -4699,7 +4716,7 @@ exports["default"] = _default;
|
|
|
4699
4716
|
});
|
|
4700
4717
|
|
|
4701
4718
|
unwrapExports(Facebook_1);
|
|
4702
|
-
Facebook_1.Facebook;
|
|
4719
|
+
var Facebook_2 = Facebook_1.Facebook;
|
|
4703
4720
|
|
|
4704
4721
|
var Streamable_1 = createCommonjsModule(function (module, exports) {
|
|
4705
4722
|
|
|
@@ -4708,7 +4725,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4708
4725
|
});
|
|
4709
4726
|
exports["default"] = exports.Streamable = void 0;
|
|
4710
4727
|
|
|
4711
|
-
var _react = _interopRequireWildcard(
|
|
4728
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4712
4729
|
|
|
4713
4730
|
|
|
4714
4731
|
|
|
@@ -4728,16 +4745,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4728
4745
|
|
|
4729
4746
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4730
4747
|
|
|
4731
|
-
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); }; }
|
|
4732
|
-
|
|
4733
4748
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4734
4749
|
|
|
4735
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4736
|
-
|
|
4737
|
-
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; } }
|
|
4738
|
-
|
|
4739
4750
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4740
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
|
+
|
|
4741
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); }
|
|
4742
4755
|
|
|
4743
4756
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4748,12 +4761,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4748
4761
|
var SDK_GLOBAL = 'playerjs';
|
|
4749
4762
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4750
4763
|
|
|
4751
|
-
var Streamable =
|
|
4764
|
+
var Streamable =
|
|
4765
|
+
/*#__PURE__*/
|
|
4766
|
+
function (_Component) {
|
|
4752
4767
|
_inherits(Streamable, _Component);
|
|
4753
4768
|
|
|
4754
|
-
var _super = _createSuper(Streamable);
|
|
4755
|
-
|
|
4756
4769
|
function Streamable() {
|
|
4770
|
+
var _getPrototypeOf2;
|
|
4771
|
+
|
|
4757
4772
|
var _this;
|
|
4758
4773
|
|
|
4759
4774
|
_classCallCheck(this, Streamable);
|
|
@@ -4762,7 +4777,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4762
4777
|
args[_key] = arguments[_key];
|
|
4763
4778
|
}
|
|
4764
4779
|
|
|
4765
|
-
_this =
|
|
4780
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4766
4781
|
|
|
4767
4782
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4768
4783
|
|
|
@@ -4882,7 +4897,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4882
4897
|
width: '100%',
|
|
4883
4898
|
height: '100%'
|
|
4884
4899
|
};
|
|
4885
|
-
return
|
|
4900
|
+
return _react["default"].createElement("iframe", {
|
|
4886
4901
|
ref: this.ref,
|
|
4887
4902
|
src: "https://streamable.com/o/".concat(id),
|
|
4888
4903
|
frameBorder: "0",
|
|
@@ -4910,7 +4925,7 @@ exports["default"] = _default;
|
|
|
4910
4925
|
});
|
|
4911
4926
|
|
|
4912
4927
|
unwrapExports(Streamable_1);
|
|
4913
|
-
Streamable_1.Streamable;
|
|
4928
|
+
var Streamable_2 = Streamable_1.Streamable;
|
|
4914
4929
|
|
|
4915
4930
|
var Wistia_1 = createCommonjsModule(function (module, exports) {
|
|
4916
4931
|
|
|
@@ -4919,7 +4934,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4919
4934
|
});
|
|
4920
4935
|
exports["default"] = exports.Wistia = void 0;
|
|
4921
4936
|
|
|
4922
|
-
var _react = _interopRequireWildcard(
|
|
4937
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4923
4938
|
|
|
4924
4939
|
|
|
4925
4940
|
|
|
@@ -4943,17 +4958,13 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4943
4958
|
|
|
4944
4959
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4945
4960
|
|
|
4946
|
-
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); }; }
|
|
4947
|
-
|
|
4948
4961
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4949
4962
|
|
|
4963
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4964
|
+
|
|
4950
4965
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4951
4966
|
|
|
4952
|
-
function
|
|
4953
|
-
|
|
4954
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4955
|
-
|
|
4956
|
-
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); }
|
|
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); }
|
|
4957
4968
|
|
|
4958
4969
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
4959
4970
|
|
|
@@ -4963,48 +4974,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4963
4974
|
var SDK_GLOBAL = 'Wistia';
|
|
4964
4975
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4965
4976
|
|
|
4966
|
-
var Wistia =
|
|
4977
|
+
var Wistia =
|
|
4978
|
+
/*#__PURE__*/
|
|
4979
|
+
function (_Component) {
|
|
4967
4980
|
_inherits(Wistia, _Component);
|
|
4968
4981
|
|
|
4969
|
-
var _super = _createSuper(Wistia);
|
|
4970
|
-
|
|
4971
4982
|
function Wistia() {
|
|
4983
|
+
var _getPrototypeOf2;
|
|
4984
|
+
|
|
4972
4985
|
var _this;
|
|
4973
4986
|
|
|
4974
4987
|
_classCallCheck(this, Wistia);
|
|
4975
4988
|
|
|
4976
|
-
for (var _len = arguments.length,
|
|
4977
|
-
|
|
4989
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4990
|
+
args[_key] = arguments[_key];
|
|
4978
4991
|
}
|
|
4979
4992
|
|
|
4980
|
-
_this =
|
|
4993
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4981
4994
|
|
|
4982
4995
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4983
4996
|
|
|
4984
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4985
|
-
var _this$props;
|
|
4986
|
-
|
|
4987
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4988
|
-
});
|
|
4989
|
-
|
|
4990
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4991
|
-
var _this$props2;
|
|
4992
|
-
|
|
4993
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4994
|
-
});
|
|
4995
|
-
|
|
4996
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
4997
|
-
var _this$props3;
|
|
4998
|
-
|
|
4999
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5000
|
-
});
|
|
5001
|
-
|
|
5002
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5003
|
-
var _this$props4;
|
|
5004
|
-
|
|
5005
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5006
|
-
});
|
|
5007
|
-
|
|
5008
4997
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5009
4998
|
_this.callPlayer('mute');
|
|
5010
4999
|
});
|
|
@@ -5026,13 +5015,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5026
5015
|
value: function load(url) {
|
|
5027
5016
|
var _this2 = this;
|
|
5028
5017
|
|
|
5029
|
-
var _this$
|
|
5030
|
-
playing = _this$
|
|
5031
|
-
muted = _this$
|
|
5032
|
-
controls = _this$
|
|
5033
|
-
_onReady = _this$
|
|
5034
|
-
|
|
5035
|
-
|
|
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;
|
|
5036
5029
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5037
5030
|
window._wq = window._wq || [];
|
|
5038
5031
|
|
|
@@ -5049,28 +5042,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5049
5042
|
|
|
5050
5043
|
_this2.unbind();
|
|
5051
5044
|
|
|
5052
|
-
_this2.player.bind('play',
|
|
5045
|
+
_this2.player.bind('play', onPlay);
|
|
5053
5046
|
|
|
5054
|
-
_this2.player.bind('pause',
|
|
5047
|
+
_this2.player.bind('pause', onPause);
|
|
5055
5048
|
|
|
5056
|
-
_this2.player.bind('seek',
|
|
5049
|
+
_this2.player.bind('seek', onSeek);
|
|
5057
5050
|
|
|
5058
|
-
_this2.player.bind('end',
|
|
5051
|
+
_this2.player.bind('end', onEnded);
|
|
5059
5052
|
|
|
5060
5053
|
_onReady();
|
|
5061
5054
|
}
|
|
5062
5055
|
});
|
|
5063
5056
|
}, onError);
|
|
5064
5057
|
}
|
|
5065
|
-
}, {
|
|
5066
|
-
key: "unbind",
|
|
5067
|
-
value: function unbind() {
|
|
5068
|
-
this.player.unbind('play', this.onPlay);
|
|
5069
|
-
this.player.unbind('pause', this.onPause);
|
|
5070
|
-
this.player.unbind('seek', this.onSeek);
|
|
5071
|
-
this.player.unbind('end', this.onEnded);
|
|
5072
|
-
} // Proxy methods to prevent listener leaks
|
|
5073
|
-
|
|
5074
5058
|
}, {
|
|
5075
5059
|
key: "play",
|
|
5076
5060
|
value: function play() {
|
|
@@ -5081,6 +5065,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5081
5065
|
value: function pause() {
|
|
5082
5066
|
this.callPlayer('pause');
|
|
5083
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
|
+
}
|
|
5084
5081
|
}, {
|
|
5085
5082
|
key: "stop",
|
|
5086
5083
|
value: function stop() {
|
|
@@ -5126,7 +5123,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5126
5123
|
width: '100%',
|
|
5127
5124
|
height: '100%'
|
|
5128
5125
|
};
|
|
5129
|
-
return
|
|
5126
|
+
return _react["default"].createElement("div", {
|
|
5130
5127
|
key: id,
|
|
5131
5128
|
className: className,
|
|
5132
5129
|
style: style
|
|
@@ -5153,7 +5150,7 @@ exports["default"] = _default;
|
|
|
5153
5150
|
});
|
|
5154
5151
|
|
|
5155
5152
|
unwrapExports(Wistia_1);
|
|
5156
|
-
Wistia_1.Wistia;
|
|
5153
|
+
var Wistia_2 = Wistia_1.Wistia;
|
|
5157
5154
|
|
|
5158
5155
|
var Twitch_1 = createCommonjsModule(function (module, exports) {
|
|
5159
5156
|
|
|
@@ -5162,7 +5159,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5162
5159
|
});
|
|
5163
5160
|
exports["default"] = exports.Twitch = void 0;
|
|
5164
5161
|
|
|
5165
|
-
var _react = _interopRequireWildcard(
|
|
5162
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5166
5163
|
|
|
5167
5164
|
|
|
5168
5165
|
|
|
@@ -5186,16 +5183,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5186
5183
|
|
|
5187
5184
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5188
5185
|
|
|
5189
|
-
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); }; }
|
|
5190
|
-
|
|
5191
5186
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5192
5187
|
|
|
5193
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5194
|
-
|
|
5195
|
-
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; } }
|
|
5196
|
-
|
|
5197
5188
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5198
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
|
+
|
|
5199
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); }
|
|
5200
5193
|
|
|
5201
5194
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5208,12 +5201,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5208
5201
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5209
5202
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5210
5203
|
|
|
5211
|
-
var Twitch =
|
|
5204
|
+
var Twitch =
|
|
5205
|
+
/*#__PURE__*/
|
|
5206
|
+
function (_Component) {
|
|
5212
5207
|
_inherits(Twitch, _Component);
|
|
5213
5208
|
|
|
5214
|
-
var _super = _createSuper(Twitch);
|
|
5215
|
-
|
|
5216
5209
|
function Twitch() {
|
|
5210
|
+
var _getPrototypeOf2;
|
|
5211
|
+
|
|
5217
5212
|
var _this;
|
|
5218
5213
|
|
|
5219
5214
|
_classCallCheck(this, Twitch);
|
|
@@ -5222,7 +5217,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5222
5217
|
args[_key] = arguments[_key];
|
|
5223
5218
|
}
|
|
5224
5219
|
|
|
5225
|
-
_this =
|
|
5220
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5226
5221
|
|
|
5227
5222
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5228
5223
|
|
|
@@ -5343,7 +5338,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5343
5338
|
width: '100%',
|
|
5344
5339
|
height: '100%'
|
|
5345
5340
|
};
|
|
5346
|
-
return
|
|
5341
|
+
return _react["default"].createElement("div", {
|
|
5347
5342
|
style: style,
|
|
5348
5343
|
id: this.playerID
|
|
5349
5344
|
});
|
|
@@ -5369,7 +5364,7 @@ exports["default"] = _default;
|
|
|
5369
5364
|
});
|
|
5370
5365
|
|
|
5371
5366
|
unwrapExports(Twitch_1);
|
|
5372
|
-
Twitch_1.Twitch;
|
|
5367
|
+
var Twitch_2 = Twitch_1.Twitch;
|
|
5373
5368
|
|
|
5374
5369
|
var DailyMotion_1 = createCommonjsModule(function (module, exports) {
|
|
5375
5370
|
|
|
@@ -5378,7 +5373,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5378
5373
|
});
|
|
5379
5374
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5380
5375
|
|
|
5381
|
-
var _react = _interopRequireWildcard(
|
|
5376
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5382
5377
|
|
|
5383
5378
|
|
|
5384
5379
|
|
|
@@ -5396,15 +5391,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5396
5391
|
|
|
5397
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; }
|
|
5398
5393
|
|
|
5399
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5400
|
-
|
|
5401
|
-
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."); }
|
|
5394
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5402
5395
|
|
|
5403
|
-
function
|
|
5396
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5404
5397
|
|
|
5405
|
-
function
|
|
5406
|
-
|
|
5407
|
-
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; }
|
|
5408
5399
|
|
|
5409
5400
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5410
5401
|
|
|
@@ -5414,16 +5405,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5414
5405
|
|
|
5415
5406
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5416
5407
|
|
|
5417
|
-
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); }; }
|
|
5418
|
-
|
|
5419
5408
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5420
5409
|
|
|
5421
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5422
|
-
|
|
5423
|
-
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; } }
|
|
5424
|
-
|
|
5425
5410
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5426
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
|
+
|
|
5427
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); }
|
|
5428
5415
|
|
|
5429
5416
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5435,12 +5422,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5435
5422
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5436
5423
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5437
5424
|
|
|
5438
|
-
var DailyMotion =
|
|
5425
|
+
var DailyMotion =
|
|
5426
|
+
/*#__PURE__*/
|
|
5427
|
+
function (_Component) {
|
|
5439
5428
|
_inherits(DailyMotion, _Component);
|
|
5440
5429
|
|
|
5441
|
-
var _super = _createSuper(DailyMotion);
|
|
5442
|
-
|
|
5443
5430
|
function DailyMotion() {
|
|
5431
|
+
var _getPrototypeOf2;
|
|
5432
|
+
|
|
5444
5433
|
var _this;
|
|
5445
5434
|
|
|
5446
5435
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5449,7 +5438,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5449
5438
|
args[_key] = arguments[_key];
|
|
5450
5439
|
}
|
|
5451
5440
|
|
|
5452
|
-
_this =
|
|
5441
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5453
5442
|
|
|
5454
5443
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5455
5444
|
|
|
@@ -5578,9 +5567,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5578
5567
|
height: '100%',
|
|
5579
5568
|
display: display
|
|
5580
5569
|
};
|
|
5581
|
-
return
|
|
5570
|
+
return _react["default"].createElement("div", {
|
|
5582
5571
|
style: style
|
|
5583
|
-
},
|
|
5572
|
+
}, _react["default"].createElement("div", {
|
|
5584
5573
|
ref: this.ref
|
|
5585
5574
|
}));
|
|
5586
5575
|
}
|
|
@@ -5605,7 +5594,7 @@ exports["default"] = _default;
|
|
|
5605
5594
|
});
|
|
5606
5595
|
|
|
5607
5596
|
unwrapExports(DailyMotion_1);
|
|
5608
|
-
DailyMotion_1.DailyMotion;
|
|
5597
|
+
var DailyMotion_2 = DailyMotion_1.DailyMotion;
|
|
5609
5598
|
|
|
5610
5599
|
var Mixcloud_1 = createCommonjsModule(function (module, exports) {
|
|
5611
5600
|
|
|
@@ -5614,7 +5603,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5614
5603
|
});
|
|
5615
5604
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5616
5605
|
|
|
5617
|
-
var _react = _interopRequireWildcard(
|
|
5606
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5618
5607
|
|
|
5619
5608
|
|
|
5620
5609
|
|
|
@@ -5638,16 +5627,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5638
5627
|
|
|
5639
5628
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5640
5629
|
|
|
5641
|
-
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); }; }
|
|
5642
|
-
|
|
5643
5630
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5644
5631
|
|
|
5645
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5646
|
-
|
|
5647
|
-
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; } }
|
|
5648
|
-
|
|
5649
5632
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5650
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
|
+
|
|
5651
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); }
|
|
5652
5637
|
|
|
5653
5638
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5658,12 +5643,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5658
5643
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5659
5644
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5660
5645
|
|
|
5661
|
-
var Mixcloud =
|
|
5646
|
+
var Mixcloud =
|
|
5647
|
+
/*#__PURE__*/
|
|
5648
|
+
function (_Component) {
|
|
5662
5649
|
_inherits(Mixcloud, _Component);
|
|
5663
5650
|
|
|
5664
|
-
var _super = _createSuper(Mixcloud);
|
|
5665
|
-
|
|
5666
5651
|
function Mixcloud() {
|
|
5652
|
+
var _getPrototypeOf2;
|
|
5653
|
+
|
|
5667
5654
|
var _this;
|
|
5668
5655
|
|
|
5669
5656
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5672,7 +5659,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5672
5659
|
args[_key] = arguments[_key];
|
|
5673
5660
|
}
|
|
5674
5661
|
|
|
5675
|
-
_this =
|
|
5662
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5676
5663
|
|
|
5677
5664
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5678
5665
|
|
|
@@ -5775,7 +5762,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5775
5762
|
})); // We have to give the iframe a key here to prevent a
|
|
5776
5763
|
// weird dialog appearing when loading a new track
|
|
5777
5764
|
|
|
5778
|
-
return
|
|
5765
|
+
return _react["default"].createElement("iframe", {
|
|
5779
5766
|
key: id,
|
|
5780
5767
|
ref: this.ref,
|
|
5781
5768
|
style: style,
|
|
@@ -5804,7 +5791,7 @@ exports["default"] = _default;
|
|
|
5804
5791
|
});
|
|
5805
5792
|
|
|
5806
5793
|
unwrapExports(Mixcloud_1);
|
|
5807
|
-
Mixcloud_1.Mixcloud;
|
|
5794
|
+
var Mixcloud_2 = Mixcloud_1.Mixcloud;
|
|
5808
5795
|
|
|
5809
5796
|
var FilePlayer_1 = createCommonjsModule(function (module, exports) {
|
|
5810
5797
|
|
|
@@ -5813,7 +5800,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5813
5800
|
});
|
|
5814
5801
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5815
5802
|
|
|
5816
|
-
var _react = _interopRequireWildcard(
|
|
5803
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5817
5804
|
|
|
5818
5805
|
|
|
5819
5806
|
|
|
@@ -5835,33 +5822,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5835
5822
|
|
|
5836
5823
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5837
5824
|
|
|
5838
|
-
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); }; }
|
|
5839
|
-
|
|
5840
5825
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5841
5826
|
|
|
5842
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5843
|
-
|
|
5844
|
-
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; } }
|
|
5845
|
-
|
|
5846
5827
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5847
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
|
+
|
|
5848
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); }
|
|
5849
5832
|
|
|
5850
5833
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5851
5834
|
|
|
5852
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; }
|
|
5853
5836
|
|
|
5854
|
-
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; } } }; }
|
|
5855
|
-
|
|
5856
|
-
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); }
|
|
5857
|
-
|
|
5858
|
-
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; }
|
|
5859
|
-
|
|
5860
5837
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5861
5838
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5862
5839
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5863
5840
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5864
|
-
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';
|
|
5865
5842
|
var HLS_GLOBAL = 'Hls';
|
|
5866
5843
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5867
5844
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5870,11 +5847,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5870
5847
|
|
|
5871
5848
|
function canPlay(url) {
|
|
5872
5849
|
if (url instanceof Array) {
|
|
5873
|
-
var
|
|
5874
|
-
|
|
5850
|
+
var _iteratorNormalCompletion = true;
|
|
5851
|
+
var _didIteratorError = false;
|
|
5852
|
+
var _iteratorError = undefined;
|
|
5875
5853
|
|
|
5876
5854
|
try {
|
|
5877
|
-
for (_iterator.
|
|
5855
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5878
5856
|
var item = _step.value;
|
|
5879
5857
|
|
|
5880
5858
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5886,9 +5864,18 @@ function canPlay(url) {
|
|
|
5886
5864
|
}
|
|
5887
5865
|
}
|
|
5888
5866
|
} catch (err) {
|
|
5889
|
-
|
|
5867
|
+
_didIteratorError = true;
|
|
5868
|
+
_iteratorError = err;
|
|
5890
5869
|
} finally {
|
|
5891
|
-
|
|
5870
|
+
try {
|
|
5871
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5872
|
+
_iterator["return"]();
|
|
5873
|
+
}
|
|
5874
|
+
} finally {
|
|
5875
|
+
if (_didIteratorError) {
|
|
5876
|
+
throw _iteratorError;
|
|
5877
|
+
}
|
|
5878
|
+
}
|
|
5892
5879
|
}
|
|
5893
5880
|
|
|
5894
5881
|
return false;
|
|
@@ -5912,12 +5899,14 @@ function canEnablePIP(url) {
|
|
|
5912
5899
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5913
5900
|
}
|
|
5914
5901
|
|
|
5915
|
-
var FilePlayer =
|
|
5902
|
+
var FilePlayer =
|
|
5903
|
+
/*#__PURE__*/
|
|
5904
|
+
function (_Component) {
|
|
5916
5905
|
_inherits(FilePlayer, _Component);
|
|
5917
5906
|
|
|
5918
|
-
var _super = _createSuper(FilePlayer);
|
|
5919
|
-
|
|
5920
5907
|
function FilePlayer() {
|
|
5908
|
+
var _getPrototypeOf2;
|
|
5909
|
+
|
|
5921
5910
|
var _this;
|
|
5922
5911
|
|
|
5923
5912
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5926,7 +5915,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5926
5915
|
_args[_key] = arguments[_key];
|
|
5927
5916
|
}
|
|
5928
5917
|
|
|
5929
|
-
_this =
|
|
5918
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5930
5919
|
|
|
5931
5920
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5932
5921
|
var _this$props;
|
|
@@ -6013,19 +6002,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6013
6002
|
|
|
6014
6003
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6015
6004
|
if (typeof source === 'string') {
|
|
6016
|
-
return
|
|
6005
|
+
return _react["default"].createElement("source", {
|
|
6017
6006
|
key: index,
|
|
6018
6007
|
src: source
|
|
6019
6008
|
});
|
|
6020
6009
|
}
|
|
6021
6010
|
|
|
6022
|
-
return
|
|
6011
|
+
return _react["default"].createElement("source", _extends({
|
|
6023
6012
|
key: index
|
|
6024
6013
|
}, source));
|
|
6025
6014
|
});
|
|
6026
6015
|
|
|
6027
6016
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6028
|
-
return
|
|
6017
|
+
return _react["default"].createElement("track", _extends({
|
|
6029
6018
|
key: index
|
|
6030
6019
|
}, track));
|
|
6031
6020
|
});
|
|
@@ -6063,10 +6052,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6063
6052
|
key: "componentWillUnmount",
|
|
6064
6053
|
value: function componentWillUnmount() {
|
|
6065
6054
|
this.removeListeners(this.player);
|
|
6066
|
-
|
|
6067
|
-
if (this.hls) {
|
|
6068
|
-
this.hls.destroy();
|
|
6069
|
-
}
|
|
6070
6055
|
}
|
|
6071
6056
|
}, {
|
|
6072
6057
|
key: "addListeners",
|
|
@@ -6197,6 +6182,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6197
6182
|
value: function stop() {
|
|
6198
6183
|
this.player.removeAttribute('src');
|
|
6199
6184
|
|
|
6185
|
+
if (this.hls) {
|
|
6186
|
+
this.hls.destroy();
|
|
6187
|
+
}
|
|
6188
|
+
|
|
6200
6189
|
if (this.dash) {
|
|
6201
6190
|
this.dash.reset();
|
|
6202
6191
|
}
|
|
@@ -6308,7 +6297,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6308
6297
|
width: width === 'auto' ? width : '100%',
|
|
6309
6298
|
height: height === 'auto' ? height : '100%'
|
|
6310
6299
|
};
|
|
6311
|
-
return
|
|
6300
|
+
return _react["default"].createElement(Element, _extends({
|
|
6312
6301
|
ref: this.ref,
|
|
6313
6302
|
src: this.getSource(url),
|
|
6314
6303
|
style: style,
|
|
@@ -6338,7 +6327,7 @@ exports["default"] = _default;
|
|
|
6338
6327
|
});
|
|
6339
6328
|
|
|
6340
6329
|
unwrapExports(FilePlayer_1);
|
|
6341
|
-
FilePlayer_1.FilePlayer;
|
|
6330
|
+
var FilePlayer_2 = FilePlayer_1.FilePlayer;
|
|
6342
6331
|
|
|
6343
6332
|
var players = createCommonjsModule(function (module, exports) {
|
|
6344
6333
|
|
|
@@ -6380,7 +6369,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6380
6369
|
});
|
|
6381
6370
|
exports["default"] = void 0;
|
|
6382
6371
|
|
|
6383
|
-
var _react = _interopRequireWildcard(
|
|
6372
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6384
6373
|
|
|
6385
6374
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6386
6375
|
|
|
@@ -6398,16 +6387,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6398
6387
|
|
|
6399
6388
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6400
6389
|
|
|
6401
|
-
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); }; }
|
|
6402
|
-
|
|
6403
6390
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6404
6391
|
|
|
6405
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6406
|
-
|
|
6407
|
-
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; } }
|
|
6408
|
-
|
|
6409
6392
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6410
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
|
+
|
|
6411
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); }
|
|
6412
6397
|
|
|
6413
6398
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6416,12 +6401,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6416
6401
|
|
|
6417
6402
|
var ICON_SIZE = '64px';
|
|
6418
6403
|
|
|
6419
|
-
var Preview =
|
|
6404
|
+
var Preview =
|
|
6405
|
+
/*#__PURE__*/
|
|
6406
|
+
function (_Component) {
|
|
6420
6407
|
_inherits(Preview, _Component);
|
|
6421
6408
|
|
|
6422
|
-
var _super = _createSuper(Preview);
|
|
6423
|
-
|
|
6424
6409
|
function Preview() {
|
|
6410
|
+
var _getPrototypeOf2;
|
|
6411
|
+
|
|
6425
6412
|
var _this;
|
|
6426
6413
|
|
|
6427
6414
|
_classCallCheck(this, Preview);
|
|
@@ -6430,7 +6417,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6430
6417
|
args[_key] = arguments[_key];
|
|
6431
6418
|
}
|
|
6432
6419
|
|
|
6433
|
-
_this =
|
|
6420
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6434
6421
|
|
|
6435
6422
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6436
6423
|
|
|
@@ -6528,15 +6515,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6528
6515
|
}
|
|
6529
6516
|
};
|
|
6530
6517
|
|
|
6531
|
-
var defaultPlayIcon =
|
|
6518
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6532
6519
|
style: styles.shadow,
|
|
6533
6520
|
className: "react-player__shadow"
|
|
6534
|
-
},
|
|
6521
|
+
}, _react["default"].createElement("div", {
|
|
6535
6522
|
style: styles.playIcon,
|
|
6536
6523
|
className: "react-player__play-icon"
|
|
6537
6524
|
}));
|
|
6538
6525
|
|
|
6539
|
-
return
|
|
6526
|
+
return _react["default"].createElement("div", {
|
|
6540
6527
|
style: styles.preview,
|
|
6541
6528
|
className: "react-player__preview",
|
|
6542
6529
|
onClick: onClick
|
|
@@ -6559,7 +6546,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6559
6546
|
});
|
|
6560
6547
|
exports["default"] = renderPreloadPlayers;
|
|
6561
6548
|
|
|
6562
|
-
var _react = _interopRequireDefault(
|
|
6549
|
+
var _react = _interopRequireDefault(React__default);
|
|
6563
6550
|
|
|
6564
6551
|
var _Player = _interopRequireDefault(Player_1);
|
|
6565
6552
|
|
|
@@ -6573,12 +6560,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6573
6560
|
|
|
6574
6561
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6575
6562
|
|
|
6576
|
-
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; } } }; }
|
|
6577
|
-
|
|
6578
|
-
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); }
|
|
6579
|
-
|
|
6580
|
-
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; }
|
|
6581
|
-
|
|
6582
6563
|
var PRELOAD_PLAYERS = [{
|
|
6583
6564
|
Player: YouTube_1.YouTube,
|
|
6584
6565
|
configKey: 'youtube',
|
|
@@ -6599,16 +6580,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6599
6580
|
|
|
6600
6581
|
function renderPreloadPlayers(url, controls, config) {
|
|
6601
6582
|
var players = [];
|
|
6602
|
-
|
|
6603
|
-
var
|
|
6604
|
-
|
|
6583
|
+
var _iteratorNormalCompletion = true;
|
|
6584
|
+
var _didIteratorError = false;
|
|
6585
|
+
var _iteratorError = undefined;
|
|
6605
6586
|
|
|
6606
6587
|
try {
|
|
6607
|
-
for (_iterator.
|
|
6588
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6608
6589
|
var player = _step.value;
|
|
6609
6590
|
|
|
6610
6591
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6611
|
-
players.push(
|
|
6592
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6612
6593
|
key: player.Player.displayName,
|
|
6613
6594
|
activePlayer: player.Player,
|
|
6614
6595
|
url: player.url,
|
|
@@ -6620,9 +6601,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6620
6601
|
}
|
|
6621
6602
|
}
|
|
6622
6603
|
} catch (err) {
|
|
6623
|
-
|
|
6604
|
+
_didIteratorError = true;
|
|
6605
|
+
_iteratorError = err;
|
|
6624
6606
|
} finally {
|
|
6625
|
-
|
|
6607
|
+
try {
|
|
6608
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6609
|
+
_iterator["return"]();
|
|
6610
|
+
}
|
|
6611
|
+
} finally {
|
|
6612
|
+
if (_didIteratorError) {
|
|
6613
|
+
throw _iteratorError;
|
|
6614
|
+
}
|
|
6615
|
+
}
|
|
6626
6616
|
}
|
|
6627
6617
|
|
|
6628
6618
|
return players;
|
|
@@ -6698,7 +6688,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6698
6688
|
});
|
|
6699
6689
|
exports["default"] = void 0;
|
|
6700
6690
|
|
|
6701
|
-
var _react = _interopRequireWildcard(
|
|
6691
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6702
6692
|
|
|
6703
6693
|
|
|
6704
6694
|
|
|
@@ -6746,17 +6736,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6746
6736
|
|
|
6747
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); }
|
|
6748
6738
|
|
|
6749
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6750
|
-
|
|
6751
|
-
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."); }
|
|
6752
|
-
|
|
6753
|
-
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); }
|
|
6739
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6754
6740
|
|
|
6755
|
-
function
|
|
6741
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6756
6742
|
|
|
6757
|
-
function
|
|
6743
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6758
6744
|
|
|
6759
|
-
function
|
|
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; } }
|
|
6760
6746
|
|
|
6761
6747
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6762
6748
|
|
|
@@ -6764,16 +6750,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6764
6750
|
|
|
6765
6751
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6766
6752
|
|
|
6767
|
-
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); }; }
|
|
6768
|
-
|
|
6769
6753
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6770
6754
|
|
|
6771
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6772
|
-
|
|
6773
|
-
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; } }
|
|
6774
|
-
|
|
6775
6755
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6776
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
|
+
|
|
6777
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); }
|
|
6778
6760
|
|
|
6779
6761
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6783,12 +6765,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6783
6765
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6784
6766
|
var customPlayers = [];
|
|
6785
6767
|
|
|
6786
|
-
var ReactPlayer =
|
|
6768
|
+
var ReactPlayer =
|
|
6769
|
+
/*#__PURE__*/
|
|
6770
|
+
function (_Component) {
|
|
6787
6771
|
_inherits(ReactPlayer, _Component);
|
|
6788
6772
|
|
|
6789
|
-
var _super = _createSuper(ReactPlayer);
|
|
6790
|
-
|
|
6791
6773
|
function ReactPlayer() {
|
|
6774
|
+
var _getPrototypeOf2;
|
|
6775
|
+
|
|
6792
6776
|
var _this;
|
|
6793
6777
|
|
|
6794
6778
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6797,7 +6781,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6797
6781
|
args[_key] = arguments[_key];
|
|
6798
6782
|
}
|
|
6799
6783
|
|
|
6800
|
-
_this =
|
|
6784
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6801
6785
|
|
|
6802
6786
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6803
6787
|
|
|
@@ -6908,7 +6892,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6908
6892
|
key: "renderActivePlayer",
|
|
6909
6893
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6910
6894
|
if (!url) return null;
|
|
6911
|
-
return
|
|
6895
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6912
6896
|
key: activePlayer.displayName,
|
|
6913
6897
|
ref: this.activePlayerRef,
|
|
6914
6898
|
config: this.config,
|
|
@@ -6945,14 +6929,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6945
6929
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6946
6930
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6947
6931
|
|
|
6948
|
-
var preview =
|
|
6932
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6949
6933
|
url: url,
|
|
6950
6934
|
light: light,
|
|
6951
6935
|
playIcon: playIcon,
|
|
6952
6936
|
onClick: this.handleClickPreview
|
|
6953
6937
|
});
|
|
6954
6938
|
|
|
6955
|
-
return
|
|
6939
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6956
6940
|
ref: this.wrapperRef,
|
|
6957
6941
|
style: _objectSpread({}, style, {
|
|
6958
6942
|
width: width,
|
|
@@ -7012,20 +6996,20 @@ var Audio = function Audio(_ref) {
|
|
|
7012
6996
|
var node = _ref.node;
|
|
7013
6997
|
|
|
7014
6998
|
if (node.uploadAudio) {
|
|
7015
|
-
return
|
|
6999
|
+
return React__default.createElement(
|
|
7016
7000
|
'div',
|
|
7017
7001
|
{ className: 'audio d-block text-center mb-3' },
|
|
7018
|
-
|
|
7002
|
+
React__default.createElement(
|
|
7019
7003
|
'audio',
|
|
7020
7004
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7021
|
-
|
|
7022
|
-
|
|
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' }),
|
|
7023
7007
|
'Your browser does not support the audio element.'
|
|
7024
7008
|
),
|
|
7025
|
-
node.caption &&
|
|
7009
|
+
node.caption && React__default.createElement(
|
|
7026
7010
|
'p',
|
|
7027
7011
|
{ style: { fontSize: '.9rem' } },
|
|
7028
|
-
|
|
7012
|
+
React__default.createElement(
|
|
7029
7013
|
'em',
|
|
7030
7014
|
null,
|
|
7031
7015
|
node.caption
|
|
@@ -7035,15 +7019,15 @@ var Audio = function Audio(_ref) {
|
|
|
7035
7019
|
} else if (node.audioFilePth) {
|
|
7036
7020
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7037
7021
|
if (hostname === 'embeds.audioboom.com') {
|
|
7038
|
-
return
|
|
7022
|
+
return React__default.createElement(
|
|
7039
7023
|
'div',
|
|
7040
7024
|
null,
|
|
7041
|
-
|
|
7025
|
+
React__default.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7042
7026
|
' ',
|
|
7043
|
-
node.caption &&
|
|
7027
|
+
node.caption && React__default.createElement(
|
|
7044
7028
|
'p',
|
|
7045
7029
|
{ style: { fontSize: '.9rem' } },
|
|
7046
|
-
|
|
7030
|
+
React__default.createElement(
|
|
7047
7031
|
'em',
|
|
7048
7032
|
null,
|
|
7049
7033
|
node.caption
|
|
@@ -7051,14 +7035,14 @@ var Audio = function Audio(_ref) {
|
|
|
7051
7035
|
)
|
|
7052
7036
|
);
|
|
7053
7037
|
}
|
|
7054
|
-
return
|
|
7038
|
+
return React__default.createElement(
|
|
7055
7039
|
'div',
|
|
7056
7040
|
{ className: 'audio' },
|
|
7057
|
-
|
|
7058
|
-
node.caption &&
|
|
7041
|
+
React__default.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7042
|
+
node.caption && React__default.createElement(
|
|
7059
7043
|
'p',
|
|
7060
7044
|
{ style: { fontSize: '.9rem' } },
|
|
7061
|
-
|
|
7045
|
+
React__default.createElement(
|
|
7062
7046
|
'em',
|
|
7063
7047
|
null,
|
|
7064
7048
|
node.caption
|
|
@@ -7076,34 +7060,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7076
7060
|
var profileImage = arguments[6];
|
|
7077
7061
|
|
|
7078
7062
|
if (authorName && authorURL) {
|
|
7079
|
-
return
|
|
7063
|
+
return React__default.createElement(
|
|
7080
7064
|
'span',
|
|
7081
7065
|
null,
|
|
7082
|
-
|
|
7066
|
+
React__default.createElement(
|
|
7083
7067
|
'a',
|
|
7084
7068
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7085
7069
|
authorName
|
|
7086
7070
|
),
|
|
7087
|
-
|
|
7071
|
+
React__default.createElement(
|
|
7088
7072
|
Card,
|
|
7089
7073
|
{ className: 'author-details-card-' + index },
|
|
7090
|
-
|
|
7074
|
+
React__default.createElement(
|
|
7091
7075
|
Row,
|
|
7092
7076
|
null,
|
|
7093
|
-
profileImage &&
|
|
7077
|
+
profileImage && React__default.createElement(
|
|
7094
7078
|
Col,
|
|
7095
7079
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7096
|
-
|
|
7080
|
+
React__default.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7097
7081
|
),
|
|
7098
|
-
|
|
7082
|
+
React__default.createElement(
|
|
7099
7083
|
Col,
|
|
7100
7084
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7101
|
-
|
|
7085
|
+
React__default.createElement(
|
|
7102
7086
|
'div',
|
|
7103
7087
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7104
7088
|
authorName
|
|
7105
7089
|
),
|
|
7106
|
-
|
|
7090
|
+
React__default.createElement(
|
|
7107
7091
|
'p',
|
|
7108
7092
|
null,
|
|
7109
7093
|
biography
|
|
@@ -7111,7 +7095,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7111
7095
|
)
|
|
7112
7096
|
)
|
|
7113
7097
|
),
|
|
7114
|
-
|
|
7098
|
+
React__default.createElement(
|
|
7115
7099
|
'style',
|
|
7116
7100
|
{ jsx: 'true' },
|
|
7117
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 '
|
|
@@ -7119,7 +7103,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7119
7103
|
length !== index + 1 && ' , '
|
|
7120
7104
|
);
|
|
7121
7105
|
} else if (authorName) {
|
|
7122
|
-
return
|
|
7106
|
+
return React__default.createElement(
|
|
7123
7107
|
'span',
|
|
7124
7108
|
{ key: index },
|
|
7125
7109
|
authorName,
|
|
@@ -7396,44 +7380,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7396
7380
|
}
|
|
7397
7381
|
};
|
|
7398
7382
|
|
|
7399
|
-
return
|
|
7383
|
+
return React__default.createElement(
|
|
7400
7384
|
'div',
|
|
7401
7385
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7402
|
-
|
|
7386
|
+
React__default.createElement(
|
|
7403
7387
|
'div',
|
|
7404
7388
|
{ className: 'mt-2 mb-5' },
|
|
7405
|
-
series &&
|
|
7389
|
+
series && React__default.createElement(
|
|
7406
7390
|
'div',
|
|
7407
7391
|
{ style: { fontSize: '0.9rem' } },
|
|
7408
7392
|
article.title,
|
|
7409
7393
|
' - Episode ',
|
|
7410
7394
|
series
|
|
7411
7395
|
),
|
|
7412
|
-
Videos[series - 1] &&
|
|
7396
|
+
Videos[series - 1] && React__default.createElement(
|
|
7413
7397
|
'h1',
|
|
7414
7398
|
{ className: 'mb-3' },
|
|
7415
7399
|
Videos[series - 1].title
|
|
7416
7400
|
),
|
|
7417
|
-
|
|
7401
|
+
React__default.createElement(
|
|
7418
7402
|
'div',
|
|
7419
7403
|
null,
|
|
7420
7404
|
moment(article.published).format('LL')
|
|
7421
7405
|
),
|
|
7422
|
-
|
|
7406
|
+
React__default.createElement(
|
|
7423
7407
|
'div',
|
|
7424
7408
|
{ className: 'mb-3' },
|
|
7425
7409
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7426
|
-
return
|
|
7410
|
+
return React__default.createElement(
|
|
7427
7411
|
'span',
|
|
7428
7412
|
{ key: index },
|
|
7429
7413
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor(client, authorDetail.profileImage).height(authorImgHeight).url())
|
|
7430
7414
|
);
|
|
7431
7415
|
})
|
|
7432
7416
|
),
|
|
7433
|
-
|
|
7417
|
+
React__default.createElement(
|
|
7434
7418
|
'p',
|
|
7435
7419
|
null,
|
|
7436
|
-
|
|
7420
|
+
React__default.createElement(SocialShare, {
|
|
7437
7421
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7438
7422
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7439
7423
|
shareVia: meta.shareVia,
|
|
@@ -7448,20 +7432,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7448
7432
|
hideFacebook: meta.hideFBShare
|
|
7449
7433
|
})
|
|
7450
7434
|
),
|
|
7451
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7435
|
+
Videos[series - 1] && Videos[series - 1].intro && React__default.createElement(
|
|
7452
7436
|
'p',
|
|
7453
7437
|
{ className: 'mb-3' },
|
|
7454
|
-
|
|
7438
|
+
React__default.createElement(
|
|
7455
7439
|
'em',
|
|
7456
7440
|
null,
|
|
7457
7441
|
Videos[series - 1].intro
|
|
7458
7442
|
)
|
|
7459
7443
|
)
|
|
7460
7444
|
),
|
|
7461
|
-
|
|
7445
|
+
React__default.createElement(
|
|
7462
7446
|
'div',
|
|
7463
7447
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7464
|
-
vidUrl && vidType == 'youtube' &&
|
|
7448
|
+
vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, {
|
|
7465
7449
|
className: 'fluid-iframe',
|
|
7466
7450
|
videoId: getYoutubeId(vidUrl),
|
|
7467
7451
|
opts: opts,
|
|
@@ -7472,10 +7456,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7472
7456
|
return handleOnEnd(e);
|
|
7473
7457
|
}
|
|
7474
7458
|
}),
|
|
7475
|
-
vidUrl && vidType == 'mp4' &&
|
|
7476
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7477
|
-
|
|
7478
|
-
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(
|
|
7479
7463
|
'div',
|
|
7480
7464
|
{
|
|
7481
7465
|
className: 'vid-series',
|
|
@@ -7485,10 +7469,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7485
7469
|
maxHeight: '100%',
|
|
7486
7470
|
paddingBottom: '0'
|
|
7487
7471
|
} },
|
|
7488
|
-
|
|
7472
|
+
React__default.createElement(
|
|
7489
7473
|
'p',
|
|
7490
7474
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7491
|
-
|
|
7475
|
+
React__default.createElement(
|
|
7492
7476
|
'b',
|
|
7493
7477
|
{ style: { fontSize: '1.25em' } },
|
|
7494
7478
|
'Now Playing:'
|
|
@@ -7496,16 +7480,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7496
7480
|
' ',
|
|
7497
7481
|
seriesData[series ? series - 1 : 0].title
|
|
7498
7482
|
),
|
|
7499
|
-
vidUrl &&
|
|
7483
|
+
vidUrl && React__default.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7500
7484
|
)
|
|
7501
7485
|
),
|
|
7502
|
-
|
|
7503
|
-
|
|
7486
|
+
React__default.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7487
|
+
React__default.createElement(
|
|
7504
7488
|
'div',
|
|
7505
7489
|
{ className: 'vid-text' },
|
|
7506
|
-
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()))
|
|
7507
7491
|
),
|
|
7508
|
-
|
|
7492
|
+
React__default.createElement(
|
|
7509
7493
|
'style',
|
|
7510
7494
|
{ jsx: 'true' },
|
|
7511
7495
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7514,13 +7498,13 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7514
7498
|
};
|
|
7515
7499
|
|
|
7516
7500
|
var Poll = function Poll(_ref) {
|
|
7517
|
-
var node = _ref.node
|
|
7518
|
-
_ref.client
|
|
7519
|
-
_ref.pageview
|
|
7520
|
-
_ref.videoAccountIDs
|
|
7521
|
-
|
|
7522
|
-
_ref.showVotes
|
|
7523
|
-
|
|
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;
|
|
7524
7508
|
|
|
7525
7509
|
var _useState = useState(null),
|
|
7526
7510
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7558,67 +7542,67 @@ var Poll = function Poll(_ref) {
|
|
|
7558
7542
|
return acc;
|
|
7559
7543
|
}
|
|
7560
7544
|
}, 0);
|
|
7561
|
-
return
|
|
7562
|
-
|
|
7545
|
+
return React__default.createElement(
|
|
7546
|
+
React__default.Fragment,
|
|
7563
7547
|
null,
|
|
7564
|
-
question &&
|
|
7548
|
+
question && React__default.createElement(
|
|
7565
7549
|
'p',
|
|
7566
7550
|
{ className: 'font-weight-bold' },
|
|
7567
7551
|
question
|
|
7568
7552
|
),
|
|
7569
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7553
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7570
7554
|
'form',
|
|
7571
7555
|
{ onSubmit: function onSubmit(e) {
|
|
7572
7556
|
return onSubmitPoll(e);
|
|
7573
7557
|
} },
|
|
7574
7558
|
choices && choices.map(function (choice) {
|
|
7575
|
-
return
|
|
7559
|
+
return React__default.createElement(
|
|
7576
7560
|
'div',
|
|
7577
7561
|
{ key: choice._key },
|
|
7578
|
-
|
|
7562
|
+
React__default.createElement(
|
|
7579
7563
|
'label',
|
|
7580
7564
|
{ className: 'pl-2' },
|
|
7581
|
-
|
|
7565
|
+
React__default.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7582
7566
|
return setSelectedChoice(e.target.value);
|
|
7583
7567
|
} }),
|
|
7584
7568
|
' ' + choice.choiceText
|
|
7585
7569
|
)
|
|
7586
7570
|
);
|
|
7587
7571
|
}),
|
|
7588
|
-
|
|
7572
|
+
React__default.createElement(
|
|
7589
7573
|
Button,
|
|
7590
7574
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7591
7575
|
'Vote'
|
|
7592
7576
|
)
|
|
7593
7577
|
),
|
|
7594
|
-
|
|
7578
|
+
React__default.createElement(
|
|
7595
7579
|
'div',
|
|
7596
7580
|
{ className: 'progress-container' },
|
|
7597
7581
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7598
7582
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7599
|
-
return
|
|
7583
|
+
return React__default.createElement(
|
|
7600
7584
|
'div',
|
|
7601
7585
|
{ key: choice._key, className: 'mb-3' },
|
|
7602
|
-
|
|
7586
|
+
React__default.createElement(
|
|
7603
7587
|
'div',
|
|
7604
7588
|
{ className: 'correct-answer' },
|
|
7605
|
-
|
|
7589
|
+
React__default.createElement(
|
|
7606
7590
|
'div',
|
|
7607
7591
|
null,
|
|
7608
7592
|
choice.choiceText
|
|
7609
7593
|
),
|
|
7610
|
-
choice.choiceAnswer === true &&
|
|
7594
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7611
7595
|
'div',
|
|
7612
7596
|
null,
|
|
7613
|
-
|
|
7597
|
+
React__default.createElement(
|
|
7614
7598
|
'span',
|
|
7615
7599
|
{ style: { color: 'limegreen' } },
|
|
7616
7600
|
'Correct!'
|
|
7617
7601
|
)
|
|
7618
7602
|
)
|
|
7619
7603
|
),
|
|
7620
|
-
|
|
7621
|
-
|
|
7604
|
+
React__default.createElement(ProgressBar, { now: percentage }),
|
|
7605
|
+
React__default.createElement(
|
|
7622
7606
|
'span',
|
|
7623
7607
|
{ className: 'float-right' },
|
|
7624
7608
|
percentage,
|
|
@@ -7629,14 +7613,14 @@ var Poll = function Poll(_ref) {
|
|
|
7629
7613
|
);
|
|
7630
7614
|
})
|
|
7631
7615
|
),
|
|
7632
|
-
showAnswer &&
|
|
7616
|
+
showAnswer && React__default.createElement(
|
|
7633
7617
|
'h4',
|
|
7634
7618
|
{ className: 'text-center small p-3' },
|
|
7635
7619
|
'Total Votes: ',
|
|
7636
7620
|
choicesTotalCount
|
|
7637
7621
|
),
|
|
7638
|
-
showAnswer && response &&
|
|
7639
|
-
|
|
7622
|
+
showAnswer && response && React__default.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7623
|
+
React__default.createElement(
|
|
7640
7624
|
'style',
|
|
7641
7625
|
{ jsx: 'true' },
|
|
7642
7626
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7663,13 +7647,13 @@ module.exports = { "default": values, __esModule: true };
|
|
|
7663
7647
|
var _Object$values = unwrapExports(values$1);
|
|
7664
7648
|
|
|
7665
7649
|
var Poll$1 = function Poll(_ref) {
|
|
7666
|
-
var node = _ref.node
|
|
7667
|
-
_ref.client
|
|
7668
|
-
_ref.pageview
|
|
7669
|
-
_ref.videoAccountIDs
|
|
7670
|
-
|
|
7671
|
-
_ref.showVotes
|
|
7672
|
-
|
|
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;
|
|
7673
7657
|
|
|
7674
7658
|
var _useState = useState(null),
|
|
7675
7659
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7735,67 +7719,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7735
7719
|
return acc;
|
|
7736
7720
|
}
|
|
7737
7721
|
}, 0);
|
|
7738
|
-
return
|
|
7739
|
-
|
|
7722
|
+
return React__default.createElement(
|
|
7723
|
+
React__default.Fragment,
|
|
7740
7724
|
null,
|
|
7741
|
-
question &&
|
|
7725
|
+
question && React__default.createElement(
|
|
7742
7726
|
'p',
|
|
7743
7727
|
{ className: 'font-weight-bold' },
|
|
7744
7728
|
question
|
|
7745
7729
|
),
|
|
7746
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7730
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7747
7731
|
'form',
|
|
7748
7732
|
{ onSubmit: function onSubmit(e) {
|
|
7749
7733
|
return onSubmitPoll(e);
|
|
7750
7734
|
} },
|
|
7751
7735
|
choices && choices.map(function (choice) {
|
|
7752
|
-
return
|
|
7736
|
+
return React__default.createElement(
|
|
7753
7737
|
'div',
|
|
7754
7738
|
{ key: choice._key },
|
|
7755
|
-
|
|
7739
|
+
React__default.createElement(
|
|
7756
7740
|
'label',
|
|
7757
7741
|
{ className: 'pl-2' },
|
|
7758
|
-
|
|
7742
|
+
React__default.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7759
7743
|
return setSelectedChoice(e.target.value);
|
|
7760
7744
|
} }),
|
|
7761
7745
|
' ' + choice.choiceText
|
|
7762
7746
|
)
|
|
7763
7747
|
);
|
|
7764
7748
|
}),
|
|
7765
|
-
|
|
7749
|
+
React__default.createElement(
|
|
7766
7750
|
Button,
|
|
7767
7751
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7768
7752
|
'Vote'
|
|
7769
7753
|
)
|
|
7770
7754
|
),
|
|
7771
|
-
|
|
7755
|
+
React__default.createElement(
|
|
7772
7756
|
'div',
|
|
7773
7757
|
{ className: 'progress-container' },
|
|
7774
7758
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7775
7759
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7776
|
-
return
|
|
7760
|
+
return React__default.createElement(
|
|
7777
7761
|
'div',
|
|
7778
7762
|
{ key: choice._key, className: 'mb-3' },
|
|
7779
|
-
|
|
7763
|
+
React__default.createElement(
|
|
7780
7764
|
'div',
|
|
7781
7765
|
{ className: 'correct-answer' },
|
|
7782
|
-
|
|
7766
|
+
React__default.createElement(
|
|
7783
7767
|
'div',
|
|
7784
7768
|
null,
|
|
7785
7769
|
choice.choiceText
|
|
7786
7770
|
),
|
|
7787
|
-
choice.choiceAnswer === true &&
|
|
7771
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7788
7772
|
'div',
|
|
7789
7773
|
null,
|
|
7790
|
-
|
|
7774
|
+
React__default.createElement(
|
|
7791
7775
|
'span',
|
|
7792
7776
|
{ style: { color: 'limegreen' } },
|
|
7793
7777
|
'Correct!'
|
|
7794
7778
|
)
|
|
7795
7779
|
)
|
|
7796
7780
|
),
|
|
7797
|
-
|
|
7798
|
-
|
|
7781
|
+
React__default.createElement(ProgressBar, { now: percentage }),
|
|
7782
|
+
React__default.createElement(
|
|
7799
7783
|
'span',
|
|
7800
7784
|
{ className: 'float-right' },
|
|
7801
7785
|
percentage,
|
|
@@ -7806,14 +7790,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7806
7790
|
);
|
|
7807
7791
|
})
|
|
7808
7792
|
),
|
|
7809
|
-
showAnswer &&
|
|
7793
|
+
showAnswer && React__default.createElement(
|
|
7810
7794
|
'h4',
|
|
7811
7795
|
{ className: 'text-center small p-3' },
|
|
7812
7796
|
'Total Votes: ',
|
|
7813
7797
|
choicesTotalCount
|
|
7814
7798
|
),
|
|
7815
|
-
showAnswer && response &&
|
|
7816
|
-
|
|
7799
|
+
showAnswer && response && React__default.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7800
|
+
React__default.createElement(
|
|
7817
7801
|
'style',
|
|
7818
7802
|
{ jsx: 'true' },
|
|
7819
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 '
|
|
@@ -7821,7 +7805,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7821
7805
|
);
|
|
7822
7806
|
};
|
|
7823
7807
|
|
|
7824
|
-
var numberOfPaginations =
|
|
7808
|
+
var numberOfPaginations = main_35 ? 4 : 10;
|
|
7825
7809
|
|
|
7826
7810
|
var Quiz = function Quiz(_ref) {
|
|
7827
7811
|
var quizzes = _ref.quizzes,
|
|
@@ -7939,20 +7923,20 @@ var Quiz = function Quiz(_ref) {
|
|
|
7939
7923
|
};
|
|
7940
7924
|
|
|
7941
7925
|
var renderPagination = function renderPagination() {
|
|
7942
|
-
return
|
|
7926
|
+
return React__default.createElement(
|
|
7943
7927
|
Pagination,
|
|
7944
|
-
{ className: 'p-0 m-0', size:
|
|
7945
|
-
|
|
7928
|
+
{ className: 'p-0 m-0', size: main_35 && 'sm' },
|
|
7929
|
+
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7946
7930
|
return changePage('first');
|
|
7947
7931
|
}, disabled: currentPage === 1 }),
|
|
7948
|
-
|
|
7932
|
+
React__default.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7949
7933
|
return changePage('prev');
|
|
7950
7934
|
}, disabled: currentPage === 1 }),
|
|
7951
|
-
|
|
7935
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7952
7936
|
return renderNewPages('prev');
|
|
7953
7937
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7954
7938
|
pages.map(function (page) {
|
|
7955
|
-
return
|
|
7939
|
+
return React__default.createElement(
|
|
7956
7940
|
Pagination.Item,
|
|
7957
7941
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7958
7942
|
return changePage(page);
|
|
@@ -7960,13 +7944,13 @@ var Quiz = function Quiz(_ref) {
|
|
|
7960
7944
|
page
|
|
7961
7945
|
);
|
|
7962
7946
|
}),
|
|
7963
|
-
|
|
7947
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7964
7948
|
return renderNewPages('next');
|
|
7965
7949
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7966
|
-
|
|
7950
|
+
React__default.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7967
7951
|
return changePage('next');
|
|
7968
7952
|
}, disabled: currentPage === pageCount }),
|
|
7969
|
-
|
|
7953
|
+
React__default.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7970
7954
|
return changePage('last');
|
|
7971
7955
|
}, disabled: currentPage === pageCount })
|
|
7972
7956
|
);
|
|
@@ -8049,51 +8033,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8049
8033
|
}
|
|
8050
8034
|
};
|
|
8051
8035
|
|
|
8052
|
-
return
|
|
8053
|
-
|
|
8036
|
+
return React__default.createElement(
|
|
8037
|
+
React__default.Fragment,
|
|
8054
8038
|
null,
|
|
8055
|
-
quizzes[currentPage - 1] &&
|
|
8056
|
-
|
|
8039
|
+
quizzes[currentPage - 1] && React__default.createElement(
|
|
8040
|
+
React__default.Fragment,
|
|
8057
8041
|
null,
|
|
8058
|
-
|
|
8059
|
-
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(
|
|
8060
8044
|
'form',
|
|
8061
8045
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8062
8046
|
return e.preventDefault();
|
|
8063
8047
|
} },
|
|
8064
8048
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8065
|
-
return
|
|
8049
|
+
return React__default.createElement(
|
|
8066
8050
|
'div',
|
|
8067
8051
|
{ key: answer._key },
|
|
8068
|
-
|
|
8052
|
+
React__default.createElement(
|
|
8069
8053
|
'label',
|
|
8070
8054
|
{ className: 'pl-2' },
|
|
8071
|
-
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 }),
|
|
8072
8056
|
' ' + answer.answerText
|
|
8073
8057
|
)
|
|
8074
8058
|
);
|
|
8075
8059
|
})
|
|
8076
8060
|
)
|
|
8077
8061
|
),
|
|
8078
|
-
!showAnswer &&
|
|
8062
|
+
!showAnswer && React__default.createElement(
|
|
8079
8063
|
Button$1,
|
|
8080
8064
|
{ onClick: function onClick() {
|
|
8081
8065
|
return checkAnswers();
|
|
8082
8066
|
}, variant: 'info', block: true },
|
|
8083
8067
|
'Please click here for answer'
|
|
8084
8068
|
),
|
|
8085
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
8086
|
-
|
|
8069
|
+
quizzes[currentPage - 1] && showAnswer && React__default.createElement(
|
|
8070
|
+
React__default.Fragment,
|
|
8087
8071
|
null,
|
|
8088
|
-
|
|
8072
|
+
React__default.createElement(
|
|
8089
8073
|
'h4',
|
|
8090
8074
|
null,
|
|
8091
8075
|
'Answer:'
|
|
8092
8076
|
),
|
|
8093
|
-
quizzes[currentPage - 1].answer &&
|
|
8077
|
+
quizzes[currentPage - 1].answer && React__default.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8094
8078
|
),
|
|
8095
|
-
|
|
8096
|
-
pageCount > 1 &&
|
|
8079
|
+
React__default.createElement('br', null),
|
|
8080
|
+
pageCount > 1 && React__default.createElement(
|
|
8097
8081
|
'div',
|
|
8098
8082
|
{ className: 'd-flex justify-content-center' },
|
|
8099
8083
|
renderPagination()
|
|
@@ -8104,10 +8088,10 @@ var Quiz = function Quiz(_ref) {
|
|
|
8104
8088
|
var Leads = function Leads(_ref) {
|
|
8105
8089
|
var url = _ref.url;
|
|
8106
8090
|
|
|
8107
|
-
return
|
|
8091
|
+
return React__default.createElement(
|
|
8108
8092
|
'div',
|
|
8109
8093
|
{ className: 'd-block text-center mb-3' },
|
|
8110
|
-
url &&
|
|
8094
|
+
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8111
8095
|
);
|
|
8112
8096
|
};
|
|
8113
8097
|
|
|
@@ -8128,8 +8112,8 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8128
8112
|
|
|
8129
8113
|
var _useState = useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
|
|
8130
8114
|
_useState2 = _slicedToArray(_useState, 2),
|
|
8131
|
-
carouselIndex = _useState2[0]
|
|
8132
|
-
_useState2[1];
|
|
8115
|
+
carouselIndex = _useState2[0],
|
|
8116
|
+
setCarouselIndex = _useState2[1];
|
|
8133
8117
|
|
|
8134
8118
|
// useEffect(() => {
|
|
8135
8119
|
// let itemArr = router.asPath.split('?page=')
|
|
@@ -8155,42 +8139,42 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8155
8139
|
}
|
|
8156
8140
|
};
|
|
8157
8141
|
|
|
8158
|
-
return
|
|
8142
|
+
return React__default.createElement(
|
|
8159
8143
|
'div',
|
|
8160
8144
|
{ ref: carouselRef, className: 'mt-3 mb-4' },
|
|
8161
|
-
|
|
8145
|
+
React__default.createElement(
|
|
8162
8146
|
Carousel,
|
|
8163
8147
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8164
8148
|
slides && slides.map(function (slide) {
|
|
8165
8149
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8166
|
-
return
|
|
8150
|
+
return React__default.createElement(
|
|
8167
8151
|
Carousel.Item,
|
|
8168
8152
|
{ key: slide._key },
|
|
8169
|
-
|
|
8153
|
+
React__default.createElement(
|
|
8170
8154
|
'a',
|
|
8171
8155
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8172
|
-
|
|
8156
|
+
React__default.createElement(
|
|
8173
8157
|
LazyLoad,
|
|
8174
8158
|
null,
|
|
8175
|
-
|
|
8159
|
+
React__default.createElement('img', { src: urlFor$1(slide.slideshowImage, client).url(), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
8176
8160
|
)
|
|
8177
8161
|
),
|
|
8178
|
-
|
|
8162
|
+
React__default.createElement(
|
|
8179
8163
|
'div',
|
|
8180
8164
|
{ className: 'p-2' },
|
|
8181
|
-
slide.slideshowImage.caption &&
|
|
8165
|
+
slide.slideshowImage.caption && React__default.createElement(
|
|
8182
8166
|
'h3',
|
|
8183
8167
|
{ style: { padding: '0px' } },
|
|
8184
8168
|
slide.slideshowImage.caption
|
|
8185
8169
|
),
|
|
8186
|
-
slide.description &&
|
|
8170
|
+
slide.description && React__default.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8187
8171
|
)
|
|
8188
8172
|
);
|
|
8189
8173
|
}
|
|
8190
8174
|
return null;
|
|
8191
8175
|
})
|
|
8192
8176
|
),
|
|
8193
|
-
|
|
8177
|
+
React__default.createElement(
|
|
8194
8178
|
'style',
|
|
8195
8179
|
{ jsx: 'true' },
|
|
8196
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 '
|
|
@@ -8209,10 +8193,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8209
8193
|
sizes = _props$node.sizes,
|
|
8210
8194
|
sizeMapping = _props$node.sizeMapping;
|
|
8211
8195
|
|
|
8212
|
-
return
|
|
8196
|
+
return React__default.createElement(
|
|
8213
8197
|
'div',
|
|
8214
8198
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8215
|
-
|
|
8199
|
+
React__default.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8216
8200
|
);
|
|
8217
8201
|
};
|
|
8218
8202
|
|
|
@@ -8223,15 +8207,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8223
8207
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8224
8208
|
|
|
8225
8209
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8226
|
-
return
|
|
8210
|
+
return React__default.createElement(
|
|
8227
8211
|
'section',
|
|
8228
8212
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8229
|
-
Caption &&
|
|
8213
|
+
Caption && React__default.createElement(
|
|
8230
8214
|
'h4',
|
|
8231
8215
|
{ className: 'formstack-caption' },
|
|
8232
8216
|
Caption
|
|
8233
8217
|
),
|
|
8234
|
-
|
|
8218
|
+
React__default.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8235
8219
|
);
|
|
8236
8220
|
};
|
|
8237
8221
|
|
|
@@ -8251,29 +8235,29 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8251
8235
|
}
|
|
8252
8236
|
});
|
|
8253
8237
|
if (medias && medias.length > 0) {
|
|
8254
|
-
return
|
|
8238
|
+
return React__default.createElement(
|
|
8255
8239
|
'div',
|
|
8256
8240
|
{ className: 'multi-media-container' },
|
|
8257
|
-
|
|
8241
|
+
React__default.createElement(
|
|
8258
8242
|
Row$1,
|
|
8259
8243
|
{ noGutters: true },
|
|
8260
8244
|
medias.map(function (media) {
|
|
8261
|
-
return
|
|
8245
|
+
return React__default.createElement(
|
|
8262
8246
|
Col$1,
|
|
8263
8247
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8264
|
-
|
|
8248
|
+
React__default.createElement(
|
|
8265
8249
|
'a',
|
|
8266
|
-
_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' }, {
|
|
8267
8251
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8268
|
-
|
|
8252
|
+
React__default.createElement(
|
|
8269
8253
|
'div',
|
|
8270
8254
|
{ className: 'multi-media-image-container' },
|
|
8271
|
-
imageBox &&
|
|
8255
|
+
imageBox && React__default.createElement(
|
|
8272
8256
|
LazyLoad,
|
|
8273
8257
|
{ once: true },
|
|
8274
|
-
|
|
8258
|
+
React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor$2(media.poster, client).url(), alt: media.alt })
|
|
8275
8259
|
),
|
|
8276
|
-
media.caption &&
|
|
8260
|
+
media.caption && React__default.createElement(
|
|
8277
8261
|
'span',
|
|
8278
8262
|
{ className: 'multi-media-caption' },
|
|
8279
8263
|
media.caption
|
|
@@ -8283,7 +8267,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8283
8267
|
);
|
|
8284
8268
|
})
|
|
8285
8269
|
),
|
|
8286
|
-
|
|
8270
|
+
React__default.createElement(
|
|
8287
8271
|
'style',
|
|
8288
8272
|
{ jsx: 'true' },
|
|
8289
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 '
|
|
@@ -8330,7 +8314,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8330
8314
|
}
|
|
8331
8315
|
};
|
|
8332
8316
|
|
|
8333
|
-
_this.wraperRef =
|
|
8317
|
+
_this.wraperRef = React__default.createRef();
|
|
8334
8318
|
_this.visible = false;
|
|
8335
8319
|
return _this;
|
|
8336
8320
|
}
|
|
@@ -8358,7 +8342,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8358
8342
|
_props$id = _props.id,
|
|
8359
8343
|
id = _props$id === undefined ? '' : _props$id;
|
|
8360
8344
|
|
|
8361
|
-
return
|
|
8345
|
+
return React__default.createElement(
|
|
8362
8346
|
'div',
|
|
8363
8347
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8364
8348
|
this.props.children
|
|
@@ -8367,7 +8351,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8367
8351
|
}]);
|
|
8368
8352
|
|
|
8369
8353
|
return InscreenSensor;
|
|
8370
|
-
}(
|
|
8354
|
+
}(React__default.Component);
|
|
8371
8355
|
|
|
8372
8356
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8373
8357
|
var nodes = _ref.nodes,
|
|
@@ -8480,33 +8464,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8480
8464
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8481
8465
|
var showReading = show ? 'showReading' : '';
|
|
8482
8466
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8483
|
-
return
|
|
8467
|
+
return React__default.createElement(
|
|
8484
8468
|
'div',
|
|
8485
8469
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8486
|
-
|
|
8470
|
+
React__default.createElement(
|
|
8487
8471
|
'a',
|
|
8488
8472
|
{ onClick: function onClick(e) {
|
|
8489
8473
|
return articleCardClickHandler(e);
|
|
8490
8474
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8491
|
-
|
|
8475
|
+
React__default.createElement(
|
|
8492
8476
|
'div',
|
|
8493
8477
|
{ className: 'prevNext-thumbnail' },
|
|
8494
|
-
|
|
8495
|
-
|
|
8478
|
+
React__default.createElement('img', { src: urlFor(article.thumbnail.asset).url() }),
|
|
8479
|
+
React__default.createElement(
|
|
8496
8480
|
'div',
|
|
8497
8481
|
{ className: 'prevNext-reading ' + showReading },
|
|
8498
8482
|
articleLabel
|
|
8499
8483
|
)
|
|
8500
8484
|
),
|
|
8501
|
-
|
|
8485
|
+
React__default.createElement(
|
|
8502
8486
|
'div',
|
|
8503
8487
|
{ className: 'prevNext-summary' },
|
|
8504
|
-
|
|
8488
|
+
React__default.createElement(
|
|
8505
8489
|
'div',
|
|
8506
8490
|
{ className: 'prevNext-publishDate' },
|
|
8507
8491
|
moment(article.published).format('LL')
|
|
8508
8492
|
),
|
|
8509
|
-
|
|
8493
|
+
React__default.createElement(
|
|
8510
8494
|
'h2',
|
|
8511
8495
|
{ className: 'prevNext-title' },
|
|
8512
8496
|
article.title
|
|
@@ -8555,7 +8539,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8555
8539
|
|
|
8556
8540
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8557
8541
|
if (biography) {
|
|
8558
|
-
return
|
|
8542
|
+
return React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8559
8543
|
}
|
|
8560
8544
|
};
|
|
8561
8545
|
|
|
@@ -8641,7 +8625,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8641
8625
|
//console.log('useLayoutEffect')
|
|
8642
8626
|
if (!firstLoad) {
|
|
8643
8627
|
setUpArrowClicked(false);
|
|
8644
|
-
if (
|
|
8628
|
+
if (main_36) {
|
|
8645
8629
|
grabLoadedAds();
|
|
8646
8630
|
} else {
|
|
8647
8631
|
scrollToArticle();
|
|
@@ -8665,7 +8649,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8665
8649
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8666
8650
|
if (pageview) pageview(path);
|
|
8667
8651
|
|
|
8668
|
-
if (!
|
|
8652
|
+
if (!main_36) {
|
|
8669
8653
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8670
8654
|
if (window.googletag && googletag.pubadsReady) {
|
|
8671
8655
|
lib_3.refresh();
|
|
@@ -8673,7 +8657,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8673
8657
|
});
|
|
8674
8658
|
}
|
|
8675
8659
|
//Refresh leaderboard ad on mobile
|
|
8676
|
-
if (
|
|
8660
|
+
if (main_36) {
|
|
8677
8661
|
var leaderboardSlotId = '';
|
|
8678
8662
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8679
8663
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8713,38 +8697,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8713
8697
|
setSensorVisible(false);
|
|
8714
8698
|
};
|
|
8715
8699
|
|
|
8716
|
-
return
|
|
8717
|
-
|
|
8700
|
+
return React__default.createElement(
|
|
8701
|
+
React__default.Fragment,
|
|
8718
8702
|
null,
|
|
8719
|
-
|
|
8703
|
+
React__default.createElement(
|
|
8720
8704
|
'div',
|
|
8721
8705
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8722
|
-
|
|
8706
|
+
React__default.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8723
8707
|
return handleArrowClick();
|
|
8724
8708
|
} })
|
|
8725
8709
|
),
|
|
8726
|
-
|
|
8727
|
-
|
|
8710
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8711
|
+
React__default.createElement(
|
|
8728
8712
|
'div',
|
|
8729
8713
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8730
|
-
|
|
8714
|
+
React__default.createElement(
|
|
8731
8715
|
'h5',
|
|
8732
8716
|
{ className: 'objective-title' },
|
|
8733
8717
|
nodes.seriesTitle
|
|
8734
8718
|
),
|
|
8735
|
-
|
|
8719
|
+
React__default.createElement(
|
|
8736
8720
|
'div',
|
|
8737
8721
|
{ className: 'prevNextWrapper' },
|
|
8738
8722
|
PrevNextCards(false, -1)
|
|
8739
8723
|
)
|
|
8740
8724
|
),
|
|
8741
|
-
|
|
8742
|
-
|
|
8725
|
+
React__default.createElement('hr', { className: 'article-seperater' }),
|
|
8726
|
+
React__default.createElement(
|
|
8743
8727
|
'div',
|
|
8744
8728
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8745
|
-
|
|
8729
|
+
main_36 && Ads.map(function (ad, index) {
|
|
8746
8730
|
if (index === 0) {
|
|
8747
|
-
return
|
|
8731
|
+
return React__default.createElement(
|
|
8748
8732
|
'div',
|
|
8749
8733
|
{
|
|
8750
8734
|
key: 'addid-1',
|
|
@@ -8764,14 +8748,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8764
8748
|
}
|
|
8765
8749
|
})
|
|
8766
8750
|
),
|
|
8767
|
-
|
|
8751
|
+
React__default.createElement(
|
|
8768
8752
|
'div',
|
|
8769
8753
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8770
8754
|
Articles.map(function (article, index) {
|
|
8771
|
-
return
|
|
8755
|
+
return React__default.createElement(
|
|
8772
8756
|
'div',
|
|
8773
8757
|
{ key: article.title },
|
|
8774
|
-
|
|
8758
|
+
React__default.createElement(
|
|
8775
8759
|
InscreenSensor,
|
|
8776
8760
|
{
|
|
8777
8761
|
visible: sensorVisible,
|
|
@@ -8789,84 +8773,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8789
8773
|
}
|
|
8790
8774
|
}
|
|
8791
8775
|
} },
|
|
8792
|
-
|
|
8776
|
+
React__default.createElement(
|
|
8793
8777
|
Head,
|
|
8794
8778
|
null,
|
|
8795
|
-
currentTitle !== null &&
|
|
8779
|
+
currentTitle !== null && React__default.createElement(
|
|
8796
8780
|
'title',
|
|
8797
8781
|
{ key: 'title' },
|
|
8798
8782
|
currentTitle
|
|
8799
8783
|
),
|
|
8800
|
-
currentSummary !== null &&
|
|
8801
|
-
currentURL !== null &&
|
|
8802
|
-
currentTitle !== null &&
|
|
8803
|
-
currentThumbnail !== null &&
|
|
8804
|
-
currentSummary !== null &&
|
|
8805
|
-
currentTitle !== null &&
|
|
8806
|
-
currentThumbnail !== null &&
|
|
8807
|
-
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' })
|
|
8808
8792
|
),
|
|
8809
|
-
|
|
8793
|
+
React__default.createElement(
|
|
8810
8794
|
'article',
|
|
8811
8795
|
{ className: 'article-wrapper' },
|
|
8812
|
-
|
|
8796
|
+
React__default.createElement(
|
|
8813
8797
|
'div',
|
|
8814
8798
|
{ className: 'article-publishDate' },
|
|
8815
8799
|
moment(article.published).format('LL')
|
|
8816
8800
|
),
|
|
8817
|
-
|
|
8801
|
+
React__default.createElement(
|
|
8818
8802
|
'div',
|
|
8819
8803
|
{ className: 'author-details-wrapper' },
|
|
8820
8804
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8821
|
-
return
|
|
8805
|
+
return React__default.createElement(
|
|
8822
8806
|
'span',
|
|
8823
8807
|
{ key: index },
|
|
8824
8808
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor(client, authorDetail.profileImage).url())
|
|
8825
8809
|
);
|
|
8826
8810
|
})
|
|
8827
8811
|
),
|
|
8828
|
-
|
|
8812
|
+
React__default.createElement(
|
|
8829
8813
|
'h2',
|
|
8830
8814
|
{ className: 'article-title' },
|
|
8831
8815
|
article.title
|
|
8832
8816
|
),
|
|
8833
|
-
|
|
8817
|
+
React__default.createElement(
|
|
8834
8818
|
'div',
|
|
8835
8819
|
{ className: 'mt-2 mb-2' },
|
|
8836
|
-
|
|
8820
|
+
React__default.createElement(BlockContent, _extends$1({
|
|
8837
8821
|
serializers: getSerializers,
|
|
8838
8822
|
videoAccountIDs: accountIDs,
|
|
8839
8823
|
blocks: article.text,
|
|
8840
8824
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8841
8825
|
}, client.config())),
|
|
8842
|
-
|
|
8826
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' })
|
|
8843
8827
|
),
|
|
8844
|
-
Articles.length > 1 &&
|
|
8845
|
-
|
|
8828
|
+
Articles.length > 1 && React__default.createElement(
|
|
8829
|
+
React__default.Fragment,
|
|
8846
8830
|
null,
|
|
8847
|
-
|
|
8831
|
+
React__default.createElement(
|
|
8848
8832
|
'div',
|
|
8849
8833
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8850
|
-
|
|
8834
|
+
React__default.createElement(
|
|
8851
8835
|
'h5',
|
|
8852
8836
|
{ className: 'objective-title' },
|
|
8853
8837
|
nodes.seriesTitle
|
|
8854
8838
|
),
|
|
8855
|
-
|
|
8839
|
+
React__default.createElement(
|
|
8856
8840
|
'div',
|
|
8857
8841
|
{ className: 'prevNextWrapper' },
|
|
8858
8842
|
PrevNextCards(true, index)
|
|
8859
8843
|
)
|
|
8860
8844
|
),
|
|
8861
|
-
|
|
8845
|
+
React__default.createElement('hr', { className: 'article-seperater' })
|
|
8862
8846
|
)
|
|
8863
8847
|
),
|
|
8864
|
-
|
|
8848
|
+
React__default.createElement(
|
|
8865
8849
|
'div',
|
|
8866
8850
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8867
|
-
|
|
8851
|
+
main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8868
8852
|
if (innerIndex === 0) {
|
|
8869
|
-
return
|
|
8853
|
+
return React__default.createElement(
|
|
8870
8854
|
'div',
|
|
8871
8855
|
{
|
|
8872
8856
|
key: 'addid-' + (index + 2),
|
|
@@ -8889,7 +8873,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8889
8873
|
)
|
|
8890
8874
|
);
|
|
8891
8875
|
}),
|
|
8892
|
-
|
|
8876
|
+
React__default.createElement(
|
|
8893
8877
|
'style',
|
|
8894
8878
|
{ jsx: 'true' },
|
|
8895
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 '
|
|
@@ -8919,11 +8903,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8919
8903
|
};
|
|
8920
8904
|
}, [handleClickOutside]);
|
|
8921
8905
|
|
|
8922
|
-
return
|
|
8906
|
+
return React__default.createElement(
|
|
8923
8907
|
'div',
|
|
8924
8908
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8925
|
-
|
|
8926
|
-
|
|
8909
|
+
React__default.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8910
|
+
React__default.createElement(
|
|
8927
8911
|
'style',
|
|
8928
8912
|
{ jsx: 'true' },
|
|
8929
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 '
|
|
@@ -9017,13 +9001,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9017
9001
|
|
|
9018
9002
|
var FigureCaption = useCallback(function () {
|
|
9019
9003
|
if (imgcaption && imgcaption.length > 0) {
|
|
9020
|
-
return
|
|
9004
|
+
return React__default.createElement(
|
|
9021
9005
|
'div',
|
|
9022
9006
|
{ className: 'figure-caption' },
|
|
9023
|
-
|
|
9007
|
+
React__default.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9024
9008
|
);
|
|
9025
9009
|
} else if (caption) {
|
|
9026
|
-
return
|
|
9010
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9027
9011
|
} else return null;
|
|
9028
9012
|
}, [caption, imgcaption]);
|
|
9029
9013
|
|
|
@@ -9035,21 +9019,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9035
9019
|
margin: figureMargin
|
|
9036
9020
|
};
|
|
9037
9021
|
|
|
9038
|
-
return
|
|
9039
|
-
|
|
9022
|
+
return React__default.createElement(
|
|
9023
|
+
React__default.Fragment,
|
|
9040
9024
|
null,
|
|
9041
|
-
|
|
9042
|
-
Figure$
|
|
9025
|
+
React__default.createElement(
|
|
9026
|
+
Figure$1$1,
|
|
9043
9027
|
{ className: '' + class_name, style: figureStyle },
|
|
9044
|
-
link ?
|
|
9028
|
+
link ? React__default.createElement(
|
|
9045
9029
|
'a',
|
|
9046
9030
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9047
|
-
|
|
9048
|
-
|
|
9049
|
-
) :
|
|
9050
|
-
|
|
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,
|
|
9051
9035
|
null,
|
|
9052
|
-
|
|
9036
|
+
React__default.createElement(Figure$1$1.Image, {
|
|
9053
9037
|
style: { maxWidth: '100%', cursor: 'pointer', width: 'auto' },
|
|
9054
9038
|
className: 'figure-image',
|
|
9055
9039
|
src: urlFor$3(node, client).url(),
|
|
@@ -9059,9 +9043,9 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9059
9043
|
setShowLightbox(true);
|
|
9060
9044
|
}
|
|
9061
9045
|
}),
|
|
9062
|
-
|
|
9046
|
+
React__default.createElement(FigureCaption, null)
|
|
9063
9047
|
),
|
|
9064
|
-
|
|
9048
|
+
React__default.createElement(LightBox, {
|
|
9065
9049
|
showLightbox: showLightbox,
|
|
9066
9050
|
lightboxImgSrc: lightboxImgSrc,
|
|
9067
9051
|
closeLightbox: function closeLightbox() {
|
|
@@ -9070,7 +9054,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9070
9054
|
}
|
|
9071
9055
|
})
|
|
9072
9056
|
),
|
|
9073
|
-
|
|
9057
|
+
React__default.createElement(
|
|
9074
9058
|
'style',
|
|
9075
9059
|
{ jsx: 'true' },
|
|
9076
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 '
|
|
@@ -9078,7 +9062,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9078
9062
|
);
|
|
9079
9063
|
};
|
|
9080
9064
|
|
|
9081
|
-
var Figure =
|
|
9065
|
+
var Figure = React__default.memo(FigureComponent, compareProps);
|
|
9082
9066
|
|
|
9083
9067
|
var urlFor$4 = function urlFor(source, client) {
|
|
9084
9068
|
var builder = imageUrlBuilder(client);
|
|
@@ -9124,47 +9108,47 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9124
9108
|
imgcaption = _ref.imgcaption;
|
|
9125
9109
|
|
|
9126
9110
|
if (imgcaption && imgcaption.length > 0) {
|
|
9127
|
-
return
|
|
9111
|
+
return React__default.createElement(
|
|
9128
9112
|
'div',
|
|
9129
9113
|
{ className: 'multi-figure-caption' },
|
|
9130
|
-
|
|
9114
|
+
React__default.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9131
9115
|
);
|
|
9132
9116
|
} else if (caption) {
|
|
9133
|
-
return
|
|
9117
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9134
9118
|
} else return null;
|
|
9135
9119
|
};
|
|
9136
9120
|
|
|
9137
9121
|
if (images && images.length > 0) {
|
|
9138
|
-
return
|
|
9122
|
+
return React__default.createElement(
|
|
9139
9123
|
'div',
|
|
9140
9124
|
{ className: 'multi-figure-container' },
|
|
9141
|
-
|
|
9125
|
+
React__default.createElement(
|
|
9142
9126
|
Row$1,
|
|
9143
9127
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9144
9128
|
images.map(function (image, index) {
|
|
9145
|
-
return
|
|
9129
|
+
return React__default.createElement(
|
|
9146
9130
|
Col$1,
|
|
9147
9131
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9148
|
-
image.link ?
|
|
9132
|
+
image.link ? React__default.createElement(
|
|
9149
9133
|
'a',
|
|
9150
|
-
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9151
|
-
|
|
9134
|
+
_extends$1({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9135
|
+
React__default.createElement(
|
|
9152
9136
|
'div',
|
|
9153
9137
|
{ className: 'multi-figure-image-container' },
|
|
9154
|
-
|
|
9138
|
+
React__default.createElement(
|
|
9155
9139
|
LazyLoad,
|
|
9156
9140
|
{ once: true },
|
|
9157
|
-
|
|
9141
|
+
React__default.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor$4(image.asset, client).url(), alt: image.alt })
|
|
9158
9142
|
),
|
|
9159
|
-
|
|
9143
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9160
9144
|
)
|
|
9161
|
-
) :
|
|
9145
|
+
) : React__default.createElement(
|
|
9162
9146
|
'div',
|
|
9163
9147
|
{ className: 'multi-figure-image-container' },
|
|
9164
|
-
|
|
9148
|
+
React__default.createElement(
|
|
9165
9149
|
LazyLoad,
|
|
9166
9150
|
{ once: true },
|
|
9167
|
-
|
|
9151
|
+
React__default.createElement('img', {
|
|
9168
9152
|
'images-count': images.length,
|
|
9169
9153
|
className: 'multi-figure-image',
|
|
9170
9154
|
src: urlFor$4(image.asset, client).url(),
|
|
@@ -9175,17 +9159,17 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9175
9159
|
}
|
|
9176
9160
|
})
|
|
9177
9161
|
),
|
|
9178
|
-
|
|
9162
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9179
9163
|
)
|
|
9180
9164
|
);
|
|
9181
9165
|
})
|
|
9182
9166
|
),
|
|
9183
|
-
|
|
9167
|
+
React__default.createElement(
|
|
9184
9168
|
'div',
|
|
9185
9169
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9186
|
-
|
|
9170
|
+
React__default.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9187
9171
|
),
|
|
9188
|
-
|
|
9172
|
+
React__default.createElement(
|
|
9189
9173
|
'style',
|
|
9190
9174
|
{ jsx: 'true' },
|
|
9191
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 '
|
|
@@ -9207,10 +9191,292 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9207
9191
|
|
|
9208
9192
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
9209
9193
|
|
|
9210
|
-
return
|
|
9194
|
+
return React__default.createElement(
|
|
9211
9195
|
'div',
|
|
9212
9196
|
{ id: elementId },
|
|
9213
|
-
|
|
9197
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
9198
|
+
);
|
|
9199
|
+
};
|
|
9200
|
+
|
|
9201
|
+
var objectWithoutProperties = createCommonjsModule(function (module, exports) {
|
|
9202
|
+
|
|
9203
|
+
exports.__esModule = true;
|
|
9204
|
+
|
|
9205
|
+
exports.default = function (obj, keys) {
|
|
9206
|
+
var target = {};
|
|
9207
|
+
|
|
9208
|
+
for (var i in obj) {
|
|
9209
|
+
if (keys.indexOf(i) >= 0) continue;
|
|
9210
|
+
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
|
|
9211
|
+
target[i] = obj[i];
|
|
9212
|
+
}
|
|
9213
|
+
|
|
9214
|
+
return target;
|
|
9215
|
+
};
|
|
9216
|
+
});
|
|
9217
|
+
|
|
9218
|
+
unwrapExports(objectWithoutProperties);
|
|
9219
|
+
|
|
9220
|
+
var ScriptTag_1 = createCommonjsModule(function (module, exports) {
|
|
9221
|
+
|
|
9222
|
+
exports.__esModule = true;
|
|
9223
|
+
|
|
9224
|
+
|
|
9225
|
+
|
|
9226
|
+
var _extends3 = _interopRequireDefault(_extends$2);
|
|
9227
|
+
|
|
9228
|
+
|
|
9229
|
+
|
|
9230
|
+
var _objectWithoutProperties3 = _interopRequireDefault(objectWithoutProperties);
|
|
9231
|
+
|
|
9232
|
+
|
|
9233
|
+
|
|
9234
|
+
var _classCallCheck3 = _interopRequireDefault(classCallCheck);
|
|
9235
|
+
|
|
9236
|
+
|
|
9237
|
+
|
|
9238
|
+
var _possibleConstructorReturn3 = _interopRequireDefault(possibleConstructorReturn);
|
|
9239
|
+
|
|
9240
|
+
|
|
9241
|
+
|
|
9242
|
+
var _inherits3 = _interopRequireDefault(inherits);
|
|
9243
|
+
|
|
9244
|
+
|
|
9245
|
+
|
|
9246
|
+
var _react2 = _interopRequireDefault(React__default);
|
|
9247
|
+
|
|
9248
|
+
|
|
9249
|
+
|
|
9250
|
+
var _propTypes2 = _interopRequireDefault(PropTypes);
|
|
9251
|
+
|
|
9252
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9253
|
+
var noop = function noop() {};
|
|
9254
|
+
|
|
9255
|
+
var ScriptTag = function (_Component) {
|
|
9256
|
+
(0, _inherits3.default)(ScriptTag, _Component);
|
|
9257
|
+
|
|
9258
|
+
ScriptTag.removeNode = function removeNode(node) {
|
|
9259
|
+
if (node) {
|
|
9260
|
+
node.parentNode.removeChild(node);
|
|
9261
|
+
}
|
|
9262
|
+
};
|
|
9263
|
+
|
|
9264
|
+
function ScriptTag(props, context) {
|
|
9265
|
+
(0, _classCallCheck3.default)(this, ScriptTag);
|
|
9266
|
+
|
|
9267
|
+
var _this = (0, _possibleConstructorReturn3.default)(this, _Component.call(this, props, context));
|
|
9268
|
+
|
|
9269
|
+
_this.domRef = null;
|
|
9270
|
+
_this.state = {
|
|
9271
|
+
isHydrated: props.isHydrating,
|
|
9272
|
+
additionalNode: null,
|
|
9273
|
+
removeAdditionalNode: null
|
|
9274
|
+
};
|
|
9275
|
+
return _this;
|
|
9276
|
+
}
|
|
9277
|
+
|
|
9278
|
+
ScriptTag.prototype.appendAdditionalElement = function appendAdditionalElement() {
|
|
9279
|
+
var _props = this.props,
|
|
9280
|
+
onError = _props.onError,
|
|
9281
|
+
onLoad = _props.onLoad,
|
|
9282
|
+
nonce = _props.nonce;
|
|
9283
|
+
|
|
9284
|
+
// Create a new HTML script element
|
|
9285
|
+
|
|
9286
|
+
var newElement = document.createElement("script");
|
|
9287
|
+
|
|
9288
|
+
// Copy all attribute values
|
|
9289
|
+
for (var i = 0, len = this.domRef.attributes.length; i < len; i++) {
|
|
9290
|
+
var attr = this.domRef.attributes[i];
|
|
9291
|
+
if (attr.nodeName === 'nonce') {
|
|
9292
|
+
// The browser clears the nonce value - grab from props
|
|
9293
|
+
newElement.setAttribute(attr.nodeName, nonce);
|
|
9294
|
+
} else {
|
|
9295
|
+
newElement.setAttribute(attr.nodeName, attr.nodeValue);
|
|
9296
|
+
}
|
|
9297
|
+
}
|
|
9298
|
+
|
|
9299
|
+
// Copy the inner script
|
|
9300
|
+
if (this.domRef.src === '' && this.domRef.innerHTML && this.domRef.innerHTML !== '') {
|
|
9301
|
+
newElement.innerHTML = this.domRef.innerHTML;
|
|
9302
|
+
}
|
|
9303
|
+
|
|
9304
|
+
// Bind event listeners
|
|
9305
|
+
newElement.addEventListener('load', onLoad);
|
|
9306
|
+
newElement.addEventListener('error', onError);
|
|
9307
|
+
|
|
9308
|
+
// Append the new script tag
|
|
9309
|
+
this.domRef.parentNode.appendChild(newElement);
|
|
9310
|
+
return newElement;
|
|
9311
|
+
};
|
|
9312
|
+
|
|
9313
|
+
ScriptTag.prototype.componentDidMount = function componentDidMount() {
|
|
9314
|
+
var isHydrated = this.state.isHydrated;
|
|
9315
|
+
|
|
9316
|
+
if (isHydrated) {
|
|
9317
|
+
// was rendered on server, don't replace elements when hydrating
|
|
9318
|
+
return;
|
|
9319
|
+
}
|
|
9320
|
+
|
|
9321
|
+
this.setState({
|
|
9322
|
+
additionalNode: this.appendAdditionalElement(),
|
|
9323
|
+
removeAdditionalNode: null
|
|
9324
|
+
});
|
|
9325
|
+
};
|
|
9326
|
+
|
|
9327
|
+
ScriptTag.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
|
9328
|
+
// This logic assumes that the <script> only need to be updated if the 'src' or 'innerHTML' has changed
|
|
9329
|
+
// - this prevents the <script> from updating unnecessarily, which prevents additional 'onload' events
|
|
9330
|
+
|
|
9331
|
+
// This isn't perfect - but it keeps the component very simple, and should cover most use-cases
|
|
9332
|
+
// Other props SHOULD be assigned at the same time as either the 'src' or 'innerHTML' property
|
|
9333
|
+
// -> If this is to change and support updating on ANY prop change, the 'appendAdditionalElement()' method
|
|
9334
|
+
// and state management will need to be modified to manipulate the DOM script tag based on each prop change.
|
|
9335
|
+
// This really complicates the component - for now we'll leave it as is.
|
|
9336
|
+
var _props2 = this.props,
|
|
9337
|
+
src = _props2.src,
|
|
9338
|
+
dangerouslySetInnerHTML = _props2.dangerouslySetInnerHTML;
|
|
9339
|
+
|
|
9340
|
+
if (src && src === nextProps.src) {
|
|
9341
|
+
// The 'src' attribute has not changed
|
|
9342
|
+
return;
|
|
9343
|
+
}
|
|
9344
|
+
|
|
9345
|
+
if (dangerouslySetInnerHTML && dangerouslySetInnerHTML.__html === nextProps.dangerouslySetInnerHTML.__html) {
|
|
9346
|
+
// The 'dangerouslySetInnerHTML' attribute has not changed
|
|
9347
|
+
return;
|
|
9348
|
+
}
|
|
9349
|
+
|
|
9350
|
+
this.setState({
|
|
9351
|
+
removeAdditionalNode: this.state.additionalNode,
|
|
9352
|
+
additionalNode: null
|
|
9353
|
+
});
|
|
9354
|
+
};
|
|
9355
|
+
|
|
9356
|
+
ScriptTag.prototype.componentWillUpdate = function componentWillUpdate(nextProps, nextState) {
|
|
9357
|
+
ScriptTag.removeNode(nextState.removeAdditionalNode);
|
|
9358
|
+
};
|
|
9359
|
+
|
|
9360
|
+
ScriptTag.prototype.componentDidUpdate = function componentDidUpdate() {
|
|
9361
|
+
var _state = this.state,
|
|
9362
|
+
additionalNode = _state.additionalNode,
|
|
9363
|
+
removeAdditionalNode = _state.removeAdditionalNode;
|
|
9364
|
+
|
|
9365
|
+
if (additionalNode === null) {
|
|
9366
|
+
this.setState({
|
|
9367
|
+
additionalNode: this.appendAdditionalElement()
|
|
9368
|
+
});
|
|
9369
|
+
}
|
|
9370
|
+
|
|
9371
|
+
if (removeAdditionalNode !== null) {
|
|
9372
|
+
// Was removed in 'componentWillUpdate', but can not update state there
|
|
9373
|
+
this.setState({
|
|
9374
|
+
removeAdditionalNode: null
|
|
9375
|
+
});
|
|
9376
|
+
}
|
|
9377
|
+
};
|
|
9378
|
+
|
|
9379
|
+
ScriptTag.prototype.componentWillUnmount = function componentWillUnmount() {
|
|
9380
|
+
ScriptTag.removeNode(this.state.removeAdditionalNode);
|
|
9381
|
+
ScriptTag.removeNode(this.state.additionalNode);
|
|
9382
|
+
};
|
|
9383
|
+
|
|
9384
|
+
ScriptTag.prototype.render = function render() {
|
|
9385
|
+
var _this2 = this;
|
|
9386
|
+
|
|
9387
|
+
var additionalNode = this.state.additionalNode;
|
|
9388
|
+
|
|
9389
|
+
if (additionalNode !== null) {
|
|
9390
|
+
return null;
|
|
9391
|
+
}
|
|
9392
|
+
|
|
9393
|
+
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9394
|
+
// eslint-disable-next-line no-unused-vars
|
|
9395
|
+
var _props3 = this.props,
|
|
9396
|
+
isHydrating = _props3.isHydrating,
|
|
9397
|
+
tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9398
|
+
|
|
9399
|
+
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9400
|
+
return _this2.domRef = tag;
|
|
9401
|
+
} }));
|
|
9402
|
+
};
|
|
9403
|
+
|
|
9404
|
+
return ScriptTag;
|
|
9405
|
+
}(React__default.Component);
|
|
9406
|
+
|
|
9407
|
+
ScriptTag.propTypes = {
|
|
9408
|
+
/**
|
|
9409
|
+
* True if the <ScriptTag> is being hydrated on the client, otherwise false.
|
|
9410
|
+
*/
|
|
9411
|
+
isHydrating: _propTypes2.default.bool,
|
|
9412
|
+
|
|
9413
|
+
// Standard <script> tag props
|
|
9414
|
+
async: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.number]),
|
|
9415
|
+
crossOrigin: _propTypes2.default.string,
|
|
9416
|
+
defer: _propTypes2.default.bool,
|
|
9417
|
+
integrity: _propTypes2.default.string,
|
|
9418
|
+
nonce: _propTypes2.default.string,
|
|
9419
|
+
src: _propTypes2.default.string,
|
|
9420
|
+
text: _propTypes2.default.string,
|
|
9421
|
+
type: _propTypes2.default.string,
|
|
9422
|
+
dangerouslySetInnerHTML: _propTypes2.default.object,
|
|
9423
|
+
|
|
9424
|
+
// globals
|
|
9425
|
+
onError: _propTypes2.default.func,
|
|
9426
|
+
onLoad: _propTypes2.default.func
|
|
9427
|
+
};
|
|
9428
|
+
ScriptTag.defaultProps = {
|
|
9429
|
+
isHydrating: false,
|
|
9430
|
+
onError: noop,
|
|
9431
|
+
onLoad: noop
|
|
9432
|
+
};
|
|
9433
|
+
exports.default = ScriptTag;
|
|
9434
|
+
});
|
|
9435
|
+
|
|
9436
|
+
unwrapExports(ScriptTag_1);
|
|
9437
|
+
|
|
9438
|
+
var lib = createCommonjsModule(function (module, exports) {
|
|
9439
|
+
|
|
9440
|
+
exports.__esModule = true;
|
|
9441
|
+
|
|
9442
|
+
|
|
9443
|
+
|
|
9444
|
+
var _ScriptTag2 = _interopRequireDefault(ScriptTag_1);
|
|
9445
|
+
|
|
9446
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9447
|
+
|
|
9448
|
+
exports.default = _ScriptTag2.default;
|
|
9449
|
+
});
|
|
9450
|
+
|
|
9451
|
+
var ScriptTag = unwrapExports(lib);
|
|
9452
|
+
|
|
9453
|
+
var enterpriseDomainName = 'mjhlifesciences';
|
|
9454
|
+
|
|
9455
|
+
var FormAssembly = function FormAssembly(_ref) {
|
|
9456
|
+
var node = _ref.node;
|
|
9457
|
+
|
|
9458
|
+
var formAssemblyRef = useRef(null);
|
|
9459
|
+
var FormID = node.FormID,
|
|
9460
|
+
_node$needSegmentSupp = node.needSegmentSupport,
|
|
9461
|
+
needSegmentSupport = _node$needSegmentSupp === undefined ? false : _node$needSegmentSupp;
|
|
9462
|
+
|
|
9463
|
+
|
|
9464
|
+
useEffect(function () {
|
|
9465
|
+
setTimeout(function () {
|
|
9466
|
+
var formAssemblyIframe = formAssemblyRef.current && formAssemblyRef.current.querySelector('iframe');
|
|
9467
|
+
if (formAssemblyIframe && needSegmentSupport) {
|
|
9468
|
+
var src = formAssemblyIframe.getAttribute('src');
|
|
9469
|
+
var newSrc = Segment.getURL(src, { needSegmentSupport: true });
|
|
9470
|
+
formAssemblyIframe.setAttribute('src', newSrc);
|
|
9471
|
+
}
|
|
9472
|
+
}, 1000);
|
|
9473
|
+
}, []);
|
|
9474
|
+
|
|
9475
|
+
return React__default.createElement(
|
|
9476
|
+
'section',
|
|
9477
|
+
{ ref: formAssemblyRef, className: 'form-assembly' },
|
|
9478
|
+
React__default.createElement('iframe', { src: 'https://' + enterpriseDomainName + '.tfaforms.net/' + FormID, height: '800', width: '100%', frameBorder: '0' }),
|
|
9479
|
+
React__default.createElement(ScriptTag, { src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9214
9480
|
);
|
|
9215
9481
|
};
|
|
9216
9482
|
|
|
@@ -9244,27 +9510,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9244
9510
|
return window.removeEventListener('resize', handleResize);
|
|
9245
9511
|
};
|
|
9246
9512
|
}, []);
|
|
9247
|
-
return
|
|
9513
|
+
return React__default.createElement(
|
|
9248
9514
|
'div',
|
|
9249
9515
|
{ className: 'blockTableHolder', ref: holder },
|
|
9250
|
-
|
|
9516
|
+
React__default.createElement(
|
|
9251
9517
|
'div',
|
|
9252
9518
|
{ className: 'blockTable' },
|
|
9253
9519
|
rows && rows.map(function (row) {
|
|
9254
|
-
return
|
|
9520
|
+
return React__default.createElement(
|
|
9255
9521
|
'div',
|
|
9256
9522
|
{ className: 'blockTableRow' },
|
|
9257
9523
|
row.cells && row.cells.map(function (cell) {
|
|
9258
|
-
return
|
|
9524
|
+
return React__default.createElement(
|
|
9259
9525
|
'div',
|
|
9260
9526
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9261
|
-
|
|
9527
|
+
React__default.createElement(BlockContent, _extends$1({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9262
9528
|
);
|
|
9263
9529
|
})
|
|
9264
9530
|
);
|
|
9265
9531
|
})
|
|
9266
9532
|
),
|
|
9267
|
-
|
|
9533
|
+
React__default.createElement(
|
|
9268
9534
|
'style',
|
|
9269
9535
|
{ jsx: true },
|
|
9270
9536
|
'\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 '
|
|
@@ -9343,12 +9609,12 @@ var getSerializers = function getSerializers() {
|
|
|
9343
9609
|
var node = _ref.node;
|
|
9344
9610
|
var url = node.url;
|
|
9345
9611
|
|
|
9346
|
-
return
|
|
9612
|
+
return React__default.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9347
9613
|
},
|
|
9348
9614
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9349
9615
|
var node = _ref2.node;
|
|
9350
9616
|
|
|
9351
|
-
return
|
|
9617
|
+
return React__default.createElement(YouTubeGallery, {
|
|
9352
9618
|
nodes: node,
|
|
9353
9619
|
article: article,
|
|
9354
9620
|
meta: meta,
|
|
@@ -9362,7 +9628,7 @@ var getSerializers = function getSerializers() {
|
|
|
9362
9628
|
articleSeries: function articleSeries(_ref3) {
|
|
9363
9629
|
var node = _ref3.node;
|
|
9364
9630
|
|
|
9365
|
-
return
|
|
9631
|
+
return React__default.createElement(ArticleSeries, {
|
|
9366
9632
|
nodes: node,
|
|
9367
9633
|
accountIDs: videoAccountIDs || {},
|
|
9368
9634
|
pageview: pageview,
|
|
@@ -9375,61 +9641,61 @@ var getSerializers = function getSerializers() {
|
|
|
9375
9641
|
figure: function figure(_ref4) {
|
|
9376
9642
|
var node = _ref4.node;
|
|
9377
9643
|
|
|
9378
|
-
return
|
|
9644
|
+
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9379
9645
|
},
|
|
9380
9646
|
multifigure: function multifigure(_ref5) {
|
|
9381
9647
|
var node = _ref5.node;
|
|
9382
9648
|
|
|
9383
|
-
return
|
|
9649
|
+
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9384
9650
|
},
|
|
9385
9651
|
slideshow: function slideshow(_ref6) {
|
|
9386
9652
|
var node = _ref6.node;
|
|
9387
9653
|
var slides = node.slides;
|
|
9388
9654
|
|
|
9389
|
-
return
|
|
9655
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9390
9656
|
},
|
|
9391
9657
|
sidebar: function sidebar(_ref7) {
|
|
9392
9658
|
var node = _ref7.node;
|
|
9393
9659
|
var caption = node.caption,
|
|
9394
9660
|
content = node.content;
|
|
9395
9661
|
|
|
9396
|
-
return
|
|
9662
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9397
9663
|
},
|
|
9398
9664
|
datatable: function datatable(_ref8) {
|
|
9399
9665
|
var node = _ref8.node;
|
|
9400
9666
|
var table = node.table;
|
|
9401
9667
|
|
|
9402
|
-
return
|
|
9668
|
+
return React__default.createElement(TableShow, { rows: table.rows });
|
|
9403
9669
|
},
|
|
9404
9670
|
media: function media(_ref9) {
|
|
9405
9671
|
var node = _ref9.node;
|
|
9406
9672
|
|
|
9407
|
-
return
|
|
9673
|
+
return React__default.createElement(Media, { node: node, client: client });
|
|
9408
9674
|
},
|
|
9409
9675
|
iframe: function iframe(_ref10) {
|
|
9410
9676
|
var node = _ref10.node;
|
|
9411
9677
|
|
|
9412
|
-
return
|
|
9678
|
+
return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9413
9679
|
},
|
|
9414
9680
|
video: function video(_ref11) {
|
|
9415
9681
|
var node = _ref11.node;
|
|
9416
9682
|
|
|
9417
|
-
return
|
|
9683
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9418
9684
|
},
|
|
9419
9685
|
audio: function audio(_ref12) {
|
|
9420
9686
|
var node = _ref12.node;
|
|
9421
9687
|
|
|
9422
|
-
return
|
|
9688
|
+
return React__default.createElement(Audio, { node: node });
|
|
9423
9689
|
},
|
|
9424
9690
|
poll: function poll(_ref13) {
|
|
9425
9691
|
var node = _ref13.node;
|
|
9426
9692
|
|
|
9427
|
-
return
|
|
9693
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9428
9694
|
},
|
|
9429
9695
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9430
9696
|
var node = _ref14.node;
|
|
9431
9697
|
|
|
9432
|
-
return
|
|
9698
|
+
return React__default.createElement(Poll$1, {
|
|
9433
9699
|
node: node,
|
|
9434
9700
|
client: client,
|
|
9435
9701
|
pageview: pageview,
|
|
@@ -9443,35 +9709,35 @@ var getSerializers = function getSerializers() {
|
|
|
9443
9709
|
var node = _ref15.node;
|
|
9444
9710
|
var quizzes = node.quizzes;
|
|
9445
9711
|
|
|
9446
|
-
return
|
|
9712
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9447
9713
|
},
|
|
9448
9714
|
leads: function leads(_ref16) {
|
|
9449
9715
|
var node = _ref16.node;
|
|
9450
9716
|
var leadID = node.leadID;
|
|
9451
9717
|
|
|
9452
9718
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9453
|
-
return
|
|
9719
|
+
return React__default.createElement(Leads, { url: url });
|
|
9454
9720
|
},
|
|
9455
9721
|
slideshows: function slideshows(_ref17) {
|
|
9456
9722
|
var node = _ref17.node;
|
|
9457
9723
|
|
|
9458
|
-
return
|
|
9724
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9459
9725
|
},
|
|
9460
9726
|
nativeAd: function nativeAd(_ref18) {
|
|
9461
9727
|
var node = _ref18.node;
|
|
9462
9728
|
|
|
9463
|
-
return
|
|
9729
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
9464
9730
|
},
|
|
9465
9731
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
9466
9732
|
var node = _ref19.node;
|
|
9467
9733
|
|
|
9468
|
-
return
|
|
9734
|
+
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9469
9735
|
},
|
|
9470
9736
|
hrtag: function hrtag() {
|
|
9471
|
-
return
|
|
9737
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9472
9738
|
},
|
|
9473
9739
|
brtag: function brtag() {
|
|
9474
|
-
return
|
|
9740
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
9475
9741
|
},
|
|
9476
9742
|
formstack: function formstack(_ref20) {
|
|
9477
9743
|
var node = _ref20.node;
|
|
@@ -9479,28 +9745,33 @@ var getSerializers = function getSerializers() {
|
|
|
9479
9745
|
Caption = node.Caption,
|
|
9480
9746
|
needSegmentSupport = node.needSegmentSupport;
|
|
9481
9747
|
|
|
9482
|
-
return
|
|
9748
|
+
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
9483
9749
|
},
|
|
9484
|
-
|
|
9750
|
+
formassembly: function formassembly(_ref21) {
|
|
9485
9751
|
var node = _ref21.node;
|
|
9486
9752
|
|
|
9487
|
-
return
|
|
9753
|
+
return React__default.createElement(FormAssembly, { node: node });
|
|
9488
9754
|
},
|
|
9489
|
-
|
|
9755
|
+
multimedia: function multimedia(_ref22) {
|
|
9490
9756
|
var node = _ref22.node;
|
|
9491
|
-
|
|
9757
|
+
|
|
9758
|
+
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
9759
|
+
},
|
|
9760
|
+
blockTable: function blockTable(_ref23) {
|
|
9761
|
+
var node = _ref23.node;
|
|
9762
|
+
return React__default.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9492
9763
|
}
|
|
9493
9764
|
},
|
|
9494
9765
|
marks: {
|
|
9495
9766
|
superscript: function superscript(props) {
|
|
9496
|
-
return
|
|
9767
|
+
return React__default.createElement(
|
|
9497
9768
|
'sup',
|
|
9498
9769
|
null,
|
|
9499
9770
|
props.children
|
|
9500
9771
|
);
|
|
9501
9772
|
},
|
|
9502
9773
|
subscript: function subscript(props) {
|
|
9503
|
-
return
|
|
9774
|
+
return React__default.createElement(
|
|
9504
9775
|
'sub',
|
|
9505
9776
|
null,
|
|
9506
9777
|
props.children
|
|
@@ -9516,7 +9787,7 @@ var getSerializers = function getSerializers() {
|
|
|
9516
9787
|
if (href && href.charAt(0) === '#') {
|
|
9517
9788
|
var elementId = href.slice(1);
|
|
9518
9789
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9519
|
-
return
|
|
9790
|
+
return React__default.createElement(
|
|
9520
9791
|
'a',
|
|
9521
9792
|
{ onClick: function onClick() {
|
|
9522
9793
|
return ScrollToElement(elementId);
|
|
@@ -9526,39 +9797,39 @@ var getSerializers = function getSerializers() {
|
|
|
9526
9797
|
}
|
|
9527
9798
|
|
|
9528
9799
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9529
|
-
return
|
|
9800
|
+
return React__default.createElement(
|
|
9530
9801
|
'a',
|
|
9531
9802
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
9532
9803
|
children
|
|
9533
9804
|
);
|
|
9534
9805
|
},
|
|
9535
|
-
alignleft: function alignleft(
|
|
9536
|
-
var children =
|
|
9537
|
-
return
|
|
9806
|
+
alignleft: function alignleft(_ref24) {
|
|
9807
|
+
var children = _ref24.children;
|
|
9808
|
+
return React__default.createElement(
|
|
9538
9809
|
'div',
|
|
9539
9810
|
{ style: { textAlign: 'left' } },
|
|
9540
9811
|
children
|
|
9541
9812
|
);
|
|
9542
9813
|
},
|
|
9543
|
-
alignright: function alignright(
|
|
9544
|
-
var children =
|
|
9545
|
-
return
|
|
9814
|
+
alignright: function alignright(_ref25) {
|
|
9815
|
+
var children = _ref25.children;
|
|
9816
|
+
return React__default.createElement(
|
|
9546
9817
|
'div',
|
|
9547
9818
|
{ style: { textAlign: 'right' } },
|
|
9548
9819
|
children
|
|
9549
9820
|
);
|
|
9550
9821
|
},
|
|
9551
|
-
aligncenter: function aligncenter(
|
|
9552
|
-
var children =
|
|
9553
|
-
return
|
|
9822
|
+
aligncenter: function aligncenter(_ref26) {
|
|
9823
|
+
var children = _ref26.children;
|
|
9824
|
+
return React__default.createElement(
|
|
9554
9825
|
'div',
|
|
9555
9826
|
{ style: { textAlign: 'center' } },
|
|
9556
9827
|
children
|
|
9557
9828
|
);
|
|
9558
9829
|
},
|
|
9559
|
-
alignjustify: function alignjustify(
|
|
9560
|
-
var children =
|
|
9561
|
-
return
|
|
9830
|
+
alignjustify: function alignjustify(_ref27) {
|
|
9831
|
+
var children = _ref27.children;
|
|
9832
|
+
return React__default.createElement(
|
|
9562
9833
|
'div',
|
|
9563
9834
|
{ style: { textAlign: 'justify' } },
|
|
9564
9835
|
children
|
|
@@ -9568,7 +9839,7 @@ var getSerializers = function getSerializers() {
|
|
|
9568
9839
|
var children = props.children,
|
|
9569
9840
|
color = props.mark.color;
|
|
9570
9841
|
|
|
9571
|
-
return
|
|
9842
|
+
return React__default.createElement(
|
|
9572
9843
|
'span',
|
|
9573
9844
|
{ style: { color: color ? color.hex : null } },
|
|
9574
9845
|
children
|