@mjhls/mjh-framework 1.0.716 → 1.0.717-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 +24 -25
- package/dist/cjs/AD300x250x600.js +24 -25
- package/dist/cjs/AD728x90.js +27 -28
- package/dist/cjs/ADFloatingFooter.js +26 -27
- package/dist/cjs/ADFooter.js +14 -15
- package/dist/cjs/ADGutter.js +26 -27
- package/dist/cjs/{ADInfeed-2c7a6dd8.js → ADInfeed-5a561d7c.js} +11 -13
- package/dist/cjs/ADSkyscraper.js +26 -27
- package/dist/cjs/ADSponsoredResources.js +26 -27
- package/dist/cjs/ADWebcast.js +26 -27
- package/dist/cjs/ADWelcome.js +30 -31
- package/dist/cjs/{ADlgInfeed-fb101797.js → ADlgInfeed-c50f81d4.js} +8 -9
- package/dist/cjs/AccordionPanel.js +29 -31
- package/dist/cjs/AdSlot.js +31 -32
- package/dist/cjs/AdSlotsProvider.js +16 -17
- package/dist/cjs/AlphabeticList.js +24 -25
- package/dist/cjs/ArticleCarousel.js +24 -27
- package/dist/cjs/ArticleSeriesListing.js +59 -60
- package/dist/cjs/Auth.js +334 -820
- package/dist/cjs/{AuthorComponent-5fa89df5.js → AuthorComponent-bb831b74.js} +13 -14
- package/dist/cjs/Beam.js +9 -9
- package/dist/cjs/{BlockContent-eca358e4.js → BlockContent-091a991f.js} +24 -25
- package/dist/cjs/Breadcrumbs.js +27 -29
- package/dist/cjs/CMEDeck.js +83 -83
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +32 -35
- package/dist/cjs/Column3.js +55 -58
- package/dist/cjs/ConferenceArticleCard.js +22 -23
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +94 -98
- package/dist/cjs/DeckQueue.js +86 -90
- package/dist/cjs/{Dfp-a863cf48.js → Dfp-ce7ac168.js} +30 -31
- package/dist/cjs/EventsDeck.js +131 -138
- package/dist/cjs/ExternalResources.js +76 -77
- 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 +11 -13
- package/dist/cjs/Hero.js +12 -13
- package/dist/cjs/HighlightenVideo.js +17 -18
- package/dist/cjs/HorizontalArticleListing.js +157 -0
- 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 +40 -41
- package/dist/cjs/LeftNav.js +36 -38
- package/dist/cjs/MasterDeck.js +71 -72
- package/dist/cjs/NavDvm.js +75 -80
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +138 -143
- package/dist/cjs/NavNative.js +115 -123
- package/dist/cjs/NavNormal.js +48 -53
- package/dist/cjs/OncliveHero.js +20 -20
- package/dist/cjs/OncliveLargeHero.js +66 -67
- package/dist/cjs/PageFilter.js +14 -15
- package/dist/cjs/PartnerDetailListing.js +105 -106
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +19 -21
- package/dist/cjs/PublicationDeck.js +61 -66
- package/dist/cjs/PublicationLanding.js +74 -78
- package/dist/cjs/QueueDeckExpanded.js +292 -292
- package/dist/cjs/RecentNews.js +23 -24
- package/dist/cjs/RelatedContent.js +24 -25
- package/dist/cjs/RelatedTopicsDropdown.js +19 -22
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +18 -22
- package/dist/cjs/Segment.js +7 -7
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +35 -36
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-45c54bed.js → SocialSearchComponent-8dd468fd.js} +36 -40
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +57 -62
- package/dist/cjs/TaxonomyDescription.js +51 -52
- 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 +70 -74
- package/dist/cjs/VideoSeriesCard.js +31 -32
- package/dist/cjs/VideoSeriesFilter.js +19 -19
- package/dist/cjs/VideoSeriesLandingPage.js +46 -47
- package/dist/cjs/VideoSeriesListing.js +74 -75
- package/dist/cjs/View.js +239 -234
- 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/{_set-species-a8cfdb84.js → _set-species-f92c67c5.js} +4 -4
- package/dist/cjs/{_to-object-821a2927.js → _to-object-329a650b.js} +4 -4
- package/dist/cjs/{asyncToGenerator-2edcb6ad.js → asyncToGenerator-533d476a.js} +8 -8
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
- package/dist/cjs/{core.get-iterator-method-b4615fd3.js → core.get-iterator-method-f62321d4.js} +2 -2
- package/dist/cjs/{define-property-aff11f8a.js → define-property-f4d12f4e.js} +1 -1
- package/dist/cjs/{defineProperty-d6fbb280.js → defineProperty-55548b25.js} +1 -1
- package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
- package/dist/cjs/{es6.string.iterator-20d42c53.js → es6.string.iterator-cc0bbaa4.js} +2 -2
- package/dist/cjs/{extends-1e24fc8d.js → extends-60837c34.js} +1 -1
- package/dist/cjs/getRelatedArticle.js +76 -138
- package/dist/cjs/getSerializers.js +42 -42
- package/dist/cjs/{getTargeting-497b581d.js → getTargeting-9af0ef69.js} +3 -3
- package/dist/cjs/getTargeting.js +7 -7
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-4d74ffd6.js → index-3294d3bc.js} +41 -40
- package/dist/cjs/{index-7d880c49.js → index-45cdb0a1.js} +896 -919
- package/dist/cjs/{index-5ad2b070.js → index-8bf6c863.js} +48 -30
- 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 +133 -133
- package/dist/cjs/{inherits-2eb23889.js → inherits-c9f99d47.js} +5 -5
- package/dist/cjs/{keys-95c064c9.js → keys-a586b7a0.js} +2 -2
- package/dist/cjs/{lodash-4ef21f0f.js → lodash-fc2922d0.js} +23 -72
- package/dist/cjs/{main-dc082238.js → main-02daeefe.js} +80 -116
- package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
- package/dist/cjs/{slicedToArray-db24842a.js → slicedToArray-8f385299.js} +4 -4
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/{stringify-01cf47f7.js → stringify-7c5aff47.js} +1 -1
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-cf0865fc.js → toConsumableArray-9a3476fe.js} +4 -4
- package/dist/cjs/{typeof-97065d40.js → typeof-725500bc.js} +7 -7
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
- package/dist/cjs/{visibility-sensor-8b54af99.js → visibility-sensor-0c45a583.js} +5 -7
- package/dist/cjs/{web.dom.iterable-4480325a.js → web.dom.iterable-a0e279c1.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +21 -21
- package/dist/esm/AD300x250x600.js +21 -21
- package/dist/esm/AD728x90.js +24 -24
- package/dist/esm/ADFloatingFooter.js +23 -23
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +23 -23
- package/dist/esm/{ADInfeed-3ee501b9.js → ADInfeed-bb62ee44.js} +7 -7
- package/dist/esm/ADSkyscraper.js +23 -23
- package/dist/esm/ADSponsoredResources.js +23 -23
- package/dist/esm/ADWebcast.js +23 -23
- package/dist/esm/ADWelcome.js +27 -27
- package/dist/esm/{ADlgInfeed-0bf06b17.js → ADlgInfeed-ef0a892e.js} +6 -6
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +23 -23
- package/dist/esm/AdSlotsProvider.js +13 -13
- package/dist/esm/AlphabeticList.js +21 -21
- package/dist/esm/ArticleCarousel.js +21 -23
- package/dist/esm/ArticleSeriesListing.js +54 -54
- package/dist/esm/Auth.js +317 -799
- package/dist/esm/{AuthorComponent-c7ff069f.js → AuthorComponent-34b16174.js} +11 -11
- package/dist/esm/Beam.js +9 -9
- package/dist/esm/{BlockContent-d8cd739c.js → BlockContent-e9b4ddcf.js} +4 -4
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/CMEDeck.js +79 -79
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +26 -26
- package/dist/esm/Column3.js +48 -48
- package/dist/esm/ConferenceArticleCard.js +18 -18
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +76 -76
- package/dist/esm/DeckQueue.js +64 -64
- package/dist/esm/{Dfp-5d779279.js → Dfp-e9a07597.js} +20 -20
- package/dist/esm/EventsDeck.js +84 -84
- package/dist/esm/ExternalResources.js +70 -70
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +34 -34
- package/dist/esm/GridContent.js +139 -139
- package/dist/esm/GridHero.js +36 -36
- package/dist/esm/GroupDeck.js +46 -46
- package/dist/esm/HamMagazine.js +104 -104
- package/dist/esm/Header.js +7 -7
- package/dist/esm/Hero.js +9 -9
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +152 -0
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +49 -49
- package/dist/esm/IssueDeck.js +46 -46
- package/dist/esm/IssueLanding.js +37 -37
- package/dist/esm/LeftNav.js +32 -32
- package/dist/esm/MasterDeck.js +65 -65
- package/dist/esm/NavDvm.js +57 -57
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +114 -114
- package/dist/esm/NavNative.js +91 -91
- package/dist/esm/NavNormal.js +36 -36
- package/dist/esm/OncliveHero.js +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/PublicationDeck.js +38 -38
- package/dist/esm/PublicationLanding.js +50 -50
- package/dist/esm/QueueDeckExpanded.js +272 -272
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +19 -19
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +12 -12
- package/dist/esm/Segment.js +7 -7
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +31 -31
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-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 +46 -46
- package/dist/esm/TemplateNormal.js +66 -66
- package/dist/esm/ThumbnailCard.js +13 -13
- package/dist/esm/Ustream.js +23 -23
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoProgramLandingPage.js +60 -60
- package/dist/esm/VideoSeriesCard.js +24 -24
- package/dist/esm/VideoSeriesFilter.js +16 -16
- package/dist/esm/VideoSeriesLandingPage.js +39 -39
- package/dist/esm/VideoSeriesListing.js +68 -68
- package/dist/esm/View.js +223 -214
- 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/{_set-species-494ed292.js → _set-species-3f8319f5.js} +4 -4
- package/dist/esm/{_to-object-97770c52.js → _to-object-a4107da3.js} +5 -5
- package/dist/esm/{asyncToGenerator-2bd4099a.js → asyncToGenerator-502f13b4.js} +8 -8
- package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/{core.get-iterator-method-d1d5ed02.js → core.get-iterator-method-e1de7503.js} +2 -2
- package/dist/esm/{define-property-ec6d528d.js → define-property-8af5f002.js} +1 -1
- package/dist/esm/{defineProperty-ea516b15.js → defineProperty-94fd8bfc.js} +1 -1
- package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
- package/dist/esm/{es6.string.iterator-aa6068a3.js → es6.string.iterator-c990c18c.js} +3 -3
- package/dist/esm/{extends-31d65aba.js → extends-eb69e8ac.js} +1 -1
- package/dist/esm/getRelatedArticle.js +71 -133
- package/dist/esm/getSerializers.js +42 -42
- package/dist/esm/{getTargeting-2d402d66.js → getTargeting-7211f12c.js} +2 -2
- package/dist/esm/getTargeting.js +7 -7
- package/dist/esm/{index-998e7b12.js → index-3427650c.js} +837 -853
- package/dist/esm/{index-752d1dae.js → index-5f9f807a.js} +10 -10
- package/dist/esm/{index-3f5c03b2.js → index-73819142.js} +25 -31
- package/dist/esm/{index-669ff425.js → index-a9e53f80.js} +43 -24
- 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 +110 -110
- package/dist/esm/{inherits-5906fbea.js → inherits-fb9b6e8f.js} +5 -5
- package/dist/esm/{keys-a0b0c7a4.js → keys-8eda7a5c.js} +2 -2
- package/dist/esm/{lodash-ad27652f.js → lodash-17fdfebb.js} +23 -72
- package/dist/esm/{main-1450d277.js → main-e4a934b2.js} +78 -113
- package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
- package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-a7d5c5c7.js} +20 -20
- package/dist/esm/{slicedToArray-cdeaee08.js → slicedToArray-641f241f.js} +4 -4
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/{stringify-d4839bab.js → stringify-4330ccdc.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-fa2dcda7.js → toConsumableArray-43aa614d.js} +4 -4
- package/dist/esm/{typeof-e9cea9e8.js → typeof-6435ba1c.js} +7 -7
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
- package/dist/esm/{visibility-sensor-082c757b.js → visibility-sensor-0baa4eea.js} +2 -2
- package/dist/esm/{web.dom.iterable-035980f3.js → web.dom.iterable-4439f05a.js} +3 -3
- package/package.json +1 -1
- package/dist/cjs/BrowseVideosListing.js +0 -123
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/esm/BrowseVideosListing.js +0 -117
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import React, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
2
|
-
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-cdeaee08.js';
|
|
3
|
-
import { Carousel, Table, Figure as Figure$1, Button, ProgressBar, Card, Row as Row$1, Col as Col$1 } from 'react-bootstrap';
|
|
4
|
-
import { i as imageUrlBuilder } from './index-3f5c03b2.js';
|
|
5
|
-
import { l as lib_3 } from './index-669ff425.js';
|
|
6
|
-
import Router, { useRouter } from 'next/router';
|
|
7
|
-
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
8
|
-
import PropTypes from 'prop-types';
|
|
9
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
2
|
+
import { _ as _export, a as _core } from './_to-object-a4107da3.js';
|
|
3
|
+
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
|
|
4
|
+
import { _ as _extends$1 } from './extends-eb69e8ac.js';
|
|
5
|
+
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-fb9b6e8f.js';
|
|
6
|
+
import { _ as _typeof } from './typeof-6435ba1c.js';
|
|
7
|
+
import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
8
|
+
import { l as lib_3 } from './index-a9e53f80.js';
|
|
9
|
+
import PropTypes from 'prop-types';
|
|
10
|
+
import Row from 'react-bootstrap/Row';
|
|
11
|
+
import Col 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 {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
25
|
+
import { Carousel, Table, Figure as Figure$1, Button, ProgressBar, Card, Row as Row$1, Col as Col$1 } 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 { _ as _objectToArray } from './_object-to-array-7e804fce.js';
|
|
24
30
|
import Pagination from 'react-bootstrap/Pagination';
|
|
25
31
|
import Button$1 from 'react-bootstrap/Button';
|
|
26
|
-
import { h as html_decode_1 } from './entities-932b50cf.js';
|
|
27
|
-
import DFPAdSlot from './AdSlot.js';
|
|
28
|
-
import Row from 'react-bootstrap/Row';
|
|
29
|
-
import Col from 'react-bootstrap/Col';
|
|
30
32
|
import Head from 'next/head';
|
|
31
|
-
import
|
|
32
|
-
import { d as IoIosArrowDropupCircle } from './index.esm-3fdda599.js';
|
|
33
|
-
import Figure$2 from 'react-bootstrap/Figure';
|
|
33
|
+
import Figure$1$1 from 'react-bootstrap/Figure';
|
|
34
34
|
|
|
35
35
|
var urlFor = function urlFor(source, builder) {
|
|
36
36
|
return builder.image(source).auto('format');
|
|
@@ -71,20 +71,20 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
71
71
|
if (pageview) pageview(router.asPath);
|
|
72
72
|
}, [router]);
|
|
73
73
|
|
|
74
|
-
return
|
|
74
|
+
return React__default.createElement(
|
|
75
75
|
'div',
|
|
76
76
|
{ className: 'mt-3 mb-3' },
|
|
77
|
-
|
|
77
|
+
React__default.createElement(
|
|
78
78
|
Carousel,
|
|
79
79
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
80
80
|
return onChangeSlide(selectedIndex, router);
|
|
81
81
|
}, interval: null },
|
|
82
82
|
slides && slides.map(function (slide) {
|
|
83
|
-
return
|
|
83
|
+
return React__default.createElement(
|
|
84
84
|
Carousel.Item,
|
|
85
85
|
{ key: slide._key },
|
|
86
|
-
|
|
87
|
-
slide.caption &&
|
|
86
|
+
React__default.createElement('img', { src: slide.asset && urlFor(slide.asset, builder).url(), alt: slide.alt && slide.alt, style: { width: '100%' } }),
|
|
87
|
+
slide.caption && React__default.createElement(
|
|
88
88
|
'p',
|
|
89
89
|
{ className: 'p-2' },
|
|
90
90
|
slide.caption
|
|
@@ -95,18 +95,21 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
95
95
|
);
|
|
96
96
|
};
|
|
97
97
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
98
|
+
var isArray = Array.isArray;
|
|
99
|
+
var keyList = Object.keys;
|
|
100
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
101
101
|
|
|
102
102
|
var fastDeepEqual = function equal(a, b) {
|
|
103
103
|
if (a === b) return true;
|
|
104
104
|
|
|
105
105
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
106
|
-
|
|
106
|
+
var arrA = isArray(a)
|
|
107
|
+
, arrB = isArray(b)
|
|
108
|
+
, i
|
|
109
|
+
, length
|
|
110
|
+
, key;
|
|
107
111
|
|
|
108
|
-
|
|
109
|
-
if (Array.isArray(a)) {
|
|
112
|
+
if (arrA && arrB) {
|
|
110
113
|
length = a.length;
|
|
111
114
|
if (length != b.length) return false;
|
|
112
115
|
for (i = length; i-- !== 0;)
|
|
@@ -114,29 +117,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
114
117
|
return true;
|
|
115
118
|
}
|
|
116
119
|
|
|
120
|
+
if (arrA != arrB) return false;
|
|
117
121
|
|
|
122
|
+
var dateA = a instanceof Date
|
|
123
|
+
, dateB = b instanceof Date;
|
|
124
|
+
if (dateA != dateB) return false;
|
|
125
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
118
126
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
if (
|
|
127
|
+
var regexpA = a instanceof RegExp
|
|
128
|
+
, regexpB = b instanceof RegExp;
|
|
129
|
+
if (regexpA != regexpB) return false;
|
|
130
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
122
131
|
|
|
123
|
-
keys =
|
|
132
|
+
var keys = keyList(a);
|
|
124
133
|
length = keys.length;
|
|
125
|
-
|
|
134
|
+
|
|
135
|
+
if (length !== keyList(b).length)
|
|
136
|
+
return false;
|
|
126
137
|
|
|
127
138
|
for (i = length; i-- !== 0;)
|
|
128
|
-
if (!
|
|
139
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
129
140
|
|
|
130
141
|
for (i = length; i-- !== 0;) {
|
|
131
|
-
|
|
132
|
-
|
|
142
|
+
key = keys[i];
|
|
133
143
|
if (!equal(a[key], b[key])) return false;
|
|
134
144
|
}
|
|
135
145
|
|
|
136
146
|
return true;
|
|
137
147
|
}
|
|
138
148
|
|
|
139
|
-
// true if both NaN, false otherwise
|
|
140
149
|
return a!==a && b!==b;
|
|
141
150
|
};
|
|
142
151
|
|
|
@@ -674,14 +683,14 @@ function coerce(val) {
|
|
|
674
683
|
return val;
|
|
675
684
|
}
|
|
676
685
|
});
|
|
677
|
-
debug.coerce;
|
|
678
|
-
debug.disable;
|
|
679
|
-
debug.enable;
|
|
680
|
-
debug.enabled;
|
|
681
|
-
debug.humanize;
|
|
682
|
-
debug.names;
|
|
683
|
-
debug.skips;
|
|
684
|
-
debug.formatters;
|
|
686
|
+
var debug_1 = debug.coerce;
|
|
687
|
+
var debug_2 = debug.disable;
|
|
688
|
+
var debug_3 = debug.enable;
|
|
689
|
+
var debug_4 = debug.enabled;
|
|
690
|
+
var debug_5 = debug.humanize;
|
|
691
|
+
var debug_6 = debug.names;
|
|
692
|
+
var debug_7 = debug.skips;
|
|
693
|
+
var debug_8 = debug.formatters;
|
|
685
694
|
|
|
686
695
|
var browser = createCommonjsModule(function (module, exports) {
|
|
687
696
|
/**
|
|
@@ -870,13 +879,13 @@ function localstorage() {
|
|
|
870
879
|
} catch (e) {}
|
|
871
880
|
}
|
|
872
881
|
});
|
|
873
|
-
browser.log;
|
|
874
|
-
browser.formatArgs;
|
|
875
|
-
browser.save;
|
|
876
|
-
browser.load;
|
|
877
|
-
browser.useColors;
|
|
878
|
-
browser.storage;
|
|
879
|
-
browser.colors;
|
|
882
|
+
var browser_1 = browser.log;
|
|
883
|
+
var browser_2 = browser.formatArgs;
|
|
884
|
+
var browser_3 = browser.save;
|
|
885
|
+
var browser_4 = browser.load;
|
|
886
|
+
var browser_5 = browser.useColors;
|
|
887
|
+
var browser_6 = browser.storage;
|
|
888
|
+
var browser_7 = browser.colors;
|
|
880
889
|
|
|
881
890
|
// MIT lisence
|
|
882
891
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -1151,14 +1160,14 @@ function init (debug) {
|
|
|
1151
1160
|
|
|
1152
1161
|
exports.enable(load());
|
|
1153
1162
|
});
|
|
1154
|
-
node.init;
|
|
1155
|
-
node.log;
|
|
1156
|
-
node.formatArgs;
|
|
1157
|
-
node.save;
|
|
1158
|
-
node.load;
|
|
1159
|
-
node.useColors;
|
|
1160
|
-
node.colors;
|
|
1161
|
-
node.inspectOpts;
|
|
1163
|
+
var node_1 = node.init;
|
|
1164
|
+
var node_2 = node.log;
|
|
1165
|
+
var node_3 = node.formatArgs;
|
|
1166
|
+
var node_4 = node.save;
|
|
1167
|
+
var node_5 = node.load;
|
|
1168
|
+
var node_6 = node.useColors;
|
|
1169
|
+
var node_7 = node.colors;
|
|
1170
|
+
var node_8 = node.inspectOpts;
|
|
1162
1171
|
|
|
1163
1172
|
var src = createCommonjsModule(function (module) {
|
|
1164
1173
|
/**
|
|
@@ -1559,239 +1568,199 @@ module.exports = exports['default'];
|
|
|
1559
1568
|
|
|
1560
1569
|
var youTubePlayer = unwrapExports(dist);
|
|
1561
1570
|
|
|
1562
|
-
function
|
|
1563
|
-
|
|
1564
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1571
|
+
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; }; }();
|
|
1565
1572
|
|
|
1566
|
-
function
|
|
1573
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
1567
1574
|
|
|
1568
|
-
function
|
|
1569
|
-
|
|
1570
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
1571
|
-
|
|
1572
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1573
|
-
|
|
1574
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
1575
|
-
|
|
1576
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1577
|
-
|
|
1578
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1579
|
-
|
|
1580
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
1575
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1581
1576
|
|
|
1582
|
-
function
|
|
1577
|
+
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; }
|
|
1583
1578
|
|
|
1584
|
-
function
|
|
1579
|
+
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; }
|
|
1585
1580
|
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
*
|
|
1591
|
-
*
|
|
1592
|
-
* @param {Object} prevProps
|
|
1593
|
-
* @param {Object} props
|
|
1581
|
+
/**
|
|
1582
|
+
* Check whether a `props` change should result in the video being updated.
|
|
1583
|
+
*
|
|
1584
|
+
* @param {Object} prevProps
|
|
1585
|
+
* @param {Object} props
|
|
1594
1586
|
*/
|
|
1595
|
-
|
|
1596
1587
|
function shouldUpdateVideo(prevProps, props) {
|
|
1597
1588
|
// A changing video should always trigger an update
|
|
1598
1589
|
if (prevProps.videoId !== props.videoId) {
|
|
1599
1590
|
return true;
|
|
1600
|
-
}
|
|
1601
|
-
// update.
|
|
1602
|
-
|
|
1591
|
+
}
|
|
1603
1592
|
|
|
1593
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
1594
|
+
// update.
|
|
1604
1595
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1605
1596
|
var vars = props.opts.playerVars || {};
|
|
1597
|
+
|
|
1606
1598
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1607
1599
|
}
|
|
1608
|
-
/**
|
|
1609
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
1610
|
-
* that require a player reset. The results can then be compared to see if a
|
|
1611
|
-
* player reset is necessary.
|
|
1612
|
-
*
|
|
1613
|
-
* @param {Object} opts
|
|
1614
|
-
*/
|
|
1615
|
-
|
|
1616
1600
|
|
|
1601
|
+
/**
|
|
1602
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
1603
|
+
* that require a player reset. The results can then be compared to see if a
|
|
1604
|
+
* player reset is necessary.
|
|
1605
|
+
*
|
|
1606
|
+
* @param {Object} opts
|
|
1607
|
+
*/
|
|
1617
1608
|
function filterResetOptions(opts) {
|
|
1618
|
-
return
|
|
1619
|
-
playerVars:
|
|
1609
|
+
return _extends({}, opts, {
|
|
1610
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1620
1611
|
autoplay: 0,
|
|
1621
1612
|
start: 0,
|
|
1622
1613
|
end: 0
|
|
1623
|
-
}
|
|
1614
|
+
})
|
|
1624
1615
|
});
|
|
1625
1616
|
}
|
|
1626
|
-
/**
|
|
1627
|
-
* Check whether a `props` change should result in the player being reset.
|
|
1628
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
1629
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1630
|
-
* those.
|
|
1631
|
-
*
|
|
1632
|
-
* @param {Object} prevProps
|
|
1633
|
-
* @param {Object} props
|
|
1634
|
-
*/
|
|
1635
|
-
|
|
1636
1617
|
|
|
1618
|
+
/**
|
|
1619
|
+
* Check whether a `props` change should result in the player being reset.
|
|
1620
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
1621
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1622
|
+
* those.
|
|
1623
|
+
*
|
|
1624
|
+
* @param {Object} prevProps
|
|
1625
|
+
* @param {Object} props
|
|
1626
|
+
*/
|
|
1637
1627
|
function shouldResetPlayer(prevProps, props) {
|
|
1638
1628
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1639
1629
|
}
|
|
1640
|
-
/**
|
|
1641
|
-
* Check whether a props change should result in an id or className update.
|
|
1642
|
-
*
|
|
1643
|
-
* @param {Object} prevProps
|
|
1644
|
-
* @param {Object} props
|
|
1645
|
-
*/
|
|
1646
|
-
|
|
1647
1630
|
|
|
1631
|
+
/**
|
|
1632
|
+
* Check whether a props change should result in an id or className update.
|
|
1633
|
+
*
|
|
1634
|
+
* @param {Object} prevProps
|
|
1635
|
+
* @param {Object} props
|
|
1636
|
+
*/
|
|
1648
1637
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1649
1638
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1650
1639
|
}
|
|
1651
1640
|
|
|
1652
|
-
var YouTube =
|
|
1641
|
+
var YouTube = function (_React$Component) {
|
|
1653
1642
|
_inherits(YouTube, _React$Component);
|
|
1654
1643
|
|
|
1655
|
-
var _super = _createSuper(YouTube);
|
|
1656
|
-
|
|
1657
|
-
/**
|
|
1658
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1659
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1660
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1661
|
-
*/
|
|
1662
1644
|
function YouTube(props) {
|
|
1663
|
-
var _this;
|
|
1664
|
-
|
|
1665
1645
|
_classCallCheck(this, YouTube);
|
|
1666
1646
|
|
|
1667
|
-
_this =
|
|
1647
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1668
1648
|
|
|
1669
|
-
|
|
1649
|
+
_this.onPlayerReady = function (event) {
|
|
1670
1650
|
return _this.props.onReady(event);
|
|
1671
|
-
}
|
|
1651
|
+
};
|
|
1672
1652
|
|
|
1673
|
-
|
|
1653
|
+
_this.onPlayerError = function (event) {
|
|
1674
1654
|
return _this.props.onError(event);
|
|
1675
|
-
}
|
|
1655
|
+
};
|
|
1676
1656
|
|
|
1677
|
-
|
|
1657
|
+
_this.onPlayerStateChange = function (event) {
|
|
1678
1658
|
_this.props.onStateChange(event);
|
|
1679
|
-
|
|
1680
1659
|
switch (event.data) {
|
|
1660
|
+
|
|
1681
1661
|
case YouTube.PlayerState.ENDED:
|
|
1682
1662
|
_this.props.onEnd(event);
|
|
1683
|
-
|
|
1684
1663
|
break;
|
|
1685
1664
|
|
|
1686
1665
|
case YouTube.PlayerState.PLAYING:
|
|
1687
1666
|
_this.props.onPlay(event);
|
|
1688
|
-
|
|
1689
1667
|
break;
|
|
1690
1668
|
|
|
1691
1669
|
case YouTube.PlayerState.PAUSED:
|
|
1692
1670
|
_this.props.onPause(event);
|
|
1693
|
-
|
|
1694
1671
|
break;
|
|
1695
1672
|
}
|
|
1696
|
-
}
|
|
1673
|
+
};
|
|
1697
1674
|
|
|
1698
|
-
|
|
1675
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1699
1676
|
return _this.props.onPlaybackRateChange(event);
|
|
1700
|
-
}
|
|
1677
|
+
};
|
|
1701
1678
|
|
|
1702
|
-
|
|
1679
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1703
1680
|
return _this.props.onPlaybackQualityChange(event);
|
|
1704
|
-
}
|
|
1681
|
+
};
|
|
1705
1682
|
|
|
1706
|
-
|
|
1683
|
+
_this.createPlayer = function () {
|
|
1707
1684
|
// do not attempt to create a player server-side, it won't work
|
|
1708
|
-
if (typeof document === 'undefined') return;
|
|
1709
|
-
|
|
1710
|
-
var playerOpts =
|
|
1685
|
+
if (typeof document === 'undefined') return;
|
|
1686
|
+
// create player
|
|
1687
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1711
1688
|
// preload the `videoId` video if one is already given
|
|
1712
1689
|
videoId: _this.props.videoId
|
|
1713
1690
|
});
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1691
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
1692
|
+
// attach event handlers
|
|
1717
1693
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1718
|
-
|
|
1719
1694
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1720
|
-
|
|
1721
1695
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1722
|
-
|
|
1723
1696
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1724
|
-
|
|
1725
1697
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1726
|
-
}
|
|
1698
|
+
};
|
|
1727
1699
|
|
|
1728
|
-
|
|
1700
|
+
_this.resetPlayer = function () {
|
|
1729
1701
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1730
|
-
}
|
|
1702
|
+
};
|
|
1731
1703
|
|
|
1732
|
-
|
|
1704
|
+
_this.updatePlayer = function () {
|
|
1733
1705
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1734
1706
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1735
1707
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1736
1708
|
});
|
|
1737
|
-
}
|
|
1738
|
-
|
|
1739
|
-
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1740
|
-
return _this.internalPlayer;
|
|
1741
|
-
});
|
|
1709
|
+
};
|
|
1742
1710
|
|
|
1743
|
-
|
|
1711
|
+
_this.updateVideo = function () {
|
|
1744
1712
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1745
1713
|
_this.internalPlayer.stopVideo();
|
|
1746
|
-
|
|
1747
1714
|
return;
|
|
1748
|
-
}
|
|
1749
|
-
|
|
1715
|
+
}
|
|
1750
1716
|
|
|
1717
|
+
// set queueing options
|
|
1751
1718
|
var autoplay = false;
|
|
1752
1719
|
var opts = {
|
|
1753
1720
|
videoId: _this.props.videoId
|
|
1754
1721
|
};
|
|
1755
|
-
|
|
1756
1722
|
if ('playerVars' in _this.props.opts) {
|
|
1757
1723
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1758
|
-
|
|
1759
1724
|
if ('start' in _this.props.opts.playerVars) {
|
|
1760
1725
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1761
1726
|
}
|
|
1762
|
-
|
|
1763
1727
|
if ('end' in _this.props.opts.playerVars) {
|
|
1764
1728
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1765
1729
|
}
|
|
1766
|
-
}
|
|
1767
|
-
|
|
1730
|
+
}
|
|
1768
1731
|
|
|
1732
|
+
// if autoplay is enabled loadVideoById
|
|
1769
1733
|
if (autoplay) {
|
|
1770
1734
|
_this.internalPlayer.loadVideoById(opts);
|
|
1771
|
-
|
|
1772
1735
|
return;
|
|
1773
|
-
}
|
|
1774
|
-
|
|
1775
|
-
|
|
1736
|
+
}
|
|
1737
|
+
// default behaviour just cues the video
|
|
1776
1738
|
_this.internalPlayer.cueVideoById(opts);
|
|
1777
|
-
}
|
|
1739
|
+
};
|
|
1778
1740
|
|
|
1779
|
-
|
|
1741
|
+
_this.refContainer = function (container) {
|
|
1780
1742
|
_this.container = container;
|
|
1781
|
-
}
|
|
1743
|
+
};
|
|
1782
1744
|
|
|
1783
1745
|
_this.container = null;
|
|
1784
1746
|
_this.internalPlayer = null;
|
|
1785
1747
|
return _this;
|
|
1786
1748
|
}
|
|
1787
1749
|
|
|
1750
|
+
/**
|
|
1751
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
1752
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1753
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1754
|
+
*/
|
|
1755
|
+
|
|
1756
|
+
|
|
1788
1757
|
_createClass(YouTube, [{
|
|
1789
|
-
key:
|
|
1758
|
+
key: 'componentDidMount',
|
|
1790
1759
|
value: function componentDidMount() {
|
|
1791
1760
|
this.createPlayer();
|
|
1792
1761
|
}
|
|
1793
1762
|
}, {
|
|
1794
|
-
key:
|
|
1763
|
+
key: 'componentDidUpdate',
|
|
1795
1764
|
value: function componentDidUpdate(prevProps) {
|
|
1796
1765
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1797
1766
|
this.updatePlayer();
|
|
@@ -1806,58 +1775,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1806
1775
|
}
|
|
1807
1776
|
}
|
|
1808
1777
|
}, {
|
|
1809
|
-
key:
|
|
1778
|
+
key: 'componentWillUnmount',
|
|
1810
1779
|
value: function componentWillUnmount() {
|
|
1811
|
-
/**
|
|
1812
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1813
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1814
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1815
|
-
* this method isn't quick enough to reset the container element.
|
|
1780
|
+
/**
|
|
1781
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
1782
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
1783
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
1784
|
+
* this method isn't quick enough to reset the container element.
|
|
1816
1785
|
*/
|
|
1817
1786
|
this.internalPlayer.destroy();
|
|
1818
1787
|
}
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
*
|
|
1822
|
-
*
|
|
1823
|
-
*
|
|
1788
|
+
|
|
1789
|
+
/**
|
|
1790
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
1791
|
+
*
|
|
1792
|
+
* @param {Object} event
|
|
1793
|
+
* @param {Object} target - player object
|
|
1794
|
+
*/
|
|
1795
|
+
|
|
1796
|
+
|
|
1797
|
+
/**
|
|
1798
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
1799
|
+
*
|
|
1800
|
+
* @param {Object} event
|
|
1801
|
+
* @param {Integer} data - error type
|
|
1802
|
+
* @param {Object} target - player object
|
|
1803
|
+
*/
|
|
1804
|
+
|
|
1805
|
+
|
|
1806
|
+
/**
|
|
1807
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1808
|
+
*
|
|
1809
|
+
* @param {Object} event
|
|
1810
|
+
* @param {Integer} data - status change type
|
|
1811
|
+
* @param {Object} target - actual YT player
|
|
1812
|
+
*/
|
|
1813
|
+
|
|
1814
|
+
|
|
1815
|
+
/**
|
|
1816
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
1817
|
+
*
|
|
1818
|
+
* @param {Object} event
|
|
1819
|
+
* @param {Float} data - playback rate
|
|
1820
|
+
* @param {Object} target - actual YT player
|
|
1821
|
+
*/
|
|
1822
|
+
|
|
1823
|
+
|
|
1824
|
+
/**
|
|
1825
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
1826
|
+
*
|
|
1827
|
+
* @param {Object} event
|
|
1828
|
+
* @param {String} data - playback quality
|
|
1829
|
+
* @param {Object} target - actual YT player
|
|
1830
|
+
*/
|
|
1831
|
+
|
|
1832
|
+
|
|
1833
|
+
/**
|
|
1834
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
1835
|
+
*/
|
|
1836
|
+
|
|
1837
|
+
|
|
1838
|
+
/**
|
|
1839
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
1840
|
+
*/
|
|
1841
|
+
|
|
1842
|
+
|
|
1843
|
+
/**
|
|
1844
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
1845
|
+
* React should update this automatically but since the Youtube Player API
|
|
1846
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
1847
|
+
*/
|
|
1848
|
+
|
|
1849
|
+
|
|
1850
|
+
/**
|
|
1851
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
1852
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
1853
|
+
* Youtube Player API methods to update the video.
|
|
1824
1854
|
*/
|
|
1825
1855
|
|
|
1826
1856
|
}, {
|
|
1827
|
-
key:
|
|
1857
|
+
key: 'render',
|
|
1828
1858
|
value: function render() {
|
|
1829
|
-
return
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
id: this.props.id,
|
|
1833
|
-
|
|
1834
|
-
ref: this.refContainer
|
|
1835
|
-
}));
|
|
1859
|
+
return React__default.createElement(
|
|
1860
|
+
'div',
|
|
1861
|
+
{ className: this.props.containerClassName },
|
|
1862
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
1863
|
+
);
|
|
1836
1864
|
}
|
|
1837
1865
|
}]);
|
|
1838
1866
|
|
|
1839
1867
|
return YouTube;
|
|
1840
|
-
}(
|
|
1841
|
-
|
|
1842
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
1843
|
-
UNSTARTED: -1,
|
|
1844
|
-
ENDED: 0,
|
|
1845
|
-
PLAYING: 1,
|
|
1846
|
-
PAUSED: 2,
|
|
1847
|
-
BUFFERING: 3,
|
|
1848
|
-
CUED: 5
|
|
1849
|
-
});
|
|
1868
|
+
}(React__default.Component);
|
|
1850
1869
|
|
|
1851
1870
|
YouTube.propTypes = {
|
|
1852
1871
|
videoId: PropTypes.string,
|
|
1872
|
+
|
|
1853
1873
|
// custom ID for player element
|
|
1854
1874
|
id: PropTypes.string,
|
|
1875
|
+
|
|
1855
1876
|
// custom class name for player element
|
|
1856
1877
|
className: PropTypes.string,
|
|
1857
1878
|
// custom class name for player container element
|
|
1858
1879
|
containerClassName: PropTypes.string,
|
|
1880
|
+
|
|
1859
1881
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1860
1882
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
1883
|
+
|
|
1861
1884
|
// event subscriptions
|
|
1862
1885
|
onReady: PropTypes.func,
|
|
1863
1886
|
onError: PropTypes.func,
|
|
@@ -1869,7 +1892,6 @@ YouTube.propTypes = {
|
|
|
1869
1892
|
onPlaybackQualityChange: PropTypes.func
|
|
1870
1893
|
};
|
|
1871
1894
|
YouTube.defaultProps = {
|
|
1872
|
-
videoId: null,
|
|
1873
1895
|
id: null,
|
|
1874
1896
|
className: null,
|
|
1875
1897
|
opts: {},
|
|
@@ -1883,6 +1905,14 @@ YouTube.defaultProps = {
|
|
|
1883
1905
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1884
1906
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1885
1907
|
};
|
|
1908
|
+
YouTube.PlayerState = {
|
|
1909
|
+
UNSTARTED: -1,
|
|
1910
|
+
ENDED: 0,
|
|
1911
|
+
PLAYING: 1,
|
|
1912
|
+
PAUSED: 2,
|
|
1913
|
+
BUFFERING: 3,
|
|
1914
|
+
CUED: 5
|
|
1915
|
+
};
|
|
1886
1916
|
|
|
1887
1917
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1888
1918
|
var url = _ref.url;
|
|
@@ -1982,11 +2012,11 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1982
2012
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
1983
2013
|
};
|
|
1984
2014
|
|
|
1985
|
-
return
|
|
2015
|
+
return React__default.createElement(
|
|
1986
2016
|
'div',
|
|
1987
2017
|
{ id: 'fluid-video-container' },
|
|
1988
|
-
|
|
1989
|
-
|
|
2018
|
+
React__default.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
2019
|
+
React__default.createElement(
|
|
1990
2020
|
'style',
|
|
1991
2021
|
{ jsx: 'true' },
|
|
1992
2022
|
'\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 '
|
|
@@ -1999,20 +2029,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
1999
2029
|
content = _ref.content,
|
|
2000
2030
|
getSerializers = _ref.getSerializers;
|
|
2001
2031
|
|
|
2002
|
-
return
|
|
2032
|
+
return React__default.createElement(
|
|
2003
2033
|
'article',
|
|
2004
2034
|
{ className: 'sidebar' },
|
|
2005
|
-
|
|
2035
|
+
React__default.createElement(
|
|
2006
2036
|
'div',
|
|
2007
2037
|
null,
|
|
2008
|
-
|
|
2038
|
+
React__default.createElement(
|
|
2009
2039
|
'h3',
|
|
2010
2040
|
null,
|
|
2011
2041
|
caption
|
|
2012
2042
|
),
|
|
2013
|
-
|
|
2043
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2014
2044
|
),
|
|
2015
|
-
|
|
2045
|
+
React__default.createElement(
|
|
2016
2046
|
'style',
|
|
2017
2047
|
{ jsx: 'true' },
|
|
2018
2048
|
'\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 '
|
|
@@ -2023,18 +2053,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2023
2053
|
var TableShow = function TableShow(_ref) {
|
|
2024
2054
|
var rows = _ref.rows;
|
|
2025
2055
|
|
|
2026
|
-
return
|
|
2056
|
+
return React__default.createElement(
|
|
2027
2057
|
Table,
|
|
2028
2058
|
{ bordered: true, hover: true, responsive: true },
|
|
2029
|
-
|
|
2059
|
+
React__default.createElement(
|
|
2030
2060
|
'tbody',
|
|
2031
2061
|
null,
|
|
2032
2062
|
rows && rows.map(function (row) {
|
|
2033
|
-
return
|
|
2063
|
+
return React__default.createElement(
|
|
2034
2064
|
'tr',
|
|
2035
2065
|
{ key: row._key },
|
|
2036
2066
|
row.cells && row.cells.map(function (cell, index) {
|
|
2037
|
-
return cell &&
|
|
2067
|
+
return cell && React__default.createElement(
|
|
2038
2068
|
'td',
|
|
2039
2069
|
{ key: index },
|
|
2040
2070
|
cell
|
|
@@ -2137,18 +2167,18 @@ var Media = function Media(_ref) {
|
|
|
2137
2167
|
margin: imageMargin
|
|
2138
2168
|
};
|
|
2139
2169
|
|
|
2140
|
-
return
|
|
2170
|
+
return React__default.createElement(
|
|
2141
2171
|
Figure$1,
|
|
2142
2172
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2143
|
-
|
|
2173
|
+
React__default.createElement(
|
|
2144
2174
|
'a',
|
|
2145
2175
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2146
|
-
|
|
2176
|
+
React__default.createElement(
|
|
2147
2177
|
LazyLoad,
|
|
2148
2178
|
{ once: true },
|
|
2149
|
-
|
|
2179
|
+
React__default.createElement(Figure$1.Image, _extends$1({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt }))
|
|
2150
2180
|
),
|
|
2151
|
-
caption &&
|
|
2181
|
+
caption && React__default.createElement(
|
|
2152
2182
|
Figure$1.Caption,
|
|
2153
2183
|
{ className: 'media-caption' },
|
|
2154
2184
|
caption
|
|
@@ -2156,9 +2186,9 @@ var Media = function Media(_ref) {
|
|
|
2156
2186
|
)
|
|
2157
2187
|
);
|
|
2158
2188
|
} else if (caption && caption !== '') {
|
|
2159
|
-
return
|
|
2189
|
+
return React__default.createElement(
|
|
2160
2190
|
'a',
|
|
2161
|
-
_extends({}, uploadDoc.downloadMedia ? {
|
|
2191
|
+
_extends$1({}, uploadDoc.downloadMedia ? {
|
|
2162
2192
|
href: uploadDoc.asset.url + '?dl='
|
|
2163
2193
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2164
2194
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2173,10 +2203,10 @@ var Media = function Media(_ref) {
|
|
|
2173
2203
|
var IFrame = function IFrame(_ref) {
|
|
2174
2204
|
var url = _ref.url;
|
|
2175
2205
|
|
|
2176
|
-
return
|
|
2206
|
+
return React__default.createElement(
|
|
2177
2207
|
'div',
|
|
2178
2208
|
{ className: 'd-block text-center mb-3' },
|
|
2179
|
-
|
|
2209
|
+
React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2180
2210
|
);
|
|
2181
2211
|
};
|
|
2182
2212
|
|
|
@@ -2211,7 +2241,7 @@ var Video = function Video(_ref) {
|
|
|
2211
2241
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2212
2242
|
//console.log('success:', success.ref)
|
|
2213
2243
|
var player = success.ref;
|
|
2214
|
-
if (_typeof
|
|
2244
|
+
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2215
2245
|
player.ima3.settings.debug = true;
|
|
2216
2246
|
if (targeting.content_placement && targeting.document_url) {
|
|
2217
2247
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2309,44 +2339,44 @@ var Video = function Video(_ref) {
|
|
|
2309
2339
|
|
|
2310
2340
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2311
2341
|
if (videoID) {
|
|
2312
|
-
return
|
|
2342
|
+
return React__default.createElement(
|
|
2313
2343
|
'div',
|
|
2314
2344
|
null,
|
|
2315
|
-
|
|
2345
|
+
React__default.createElement(ReactPlayerLoader, {
|
|
2316
2346
|
onSuccess: onVideoSuccess,
|
|
2317
2347
|
accountId: accountIDs.brightcove.accountId,
|
|
2318
2348
|
videoId: videoID,
|
|
2319
2349
|
playerId: accountIDs.brightcove.playerId,
|
|
2320
2350
|
attrs: { className: 'brightcove', autoplay: 'muted' }
|
|
2321
2351
|
}),
|
|
2322
|
-
|
|
2352
|
+
React__default.createElement(
|
|
2323
2353
|
'style',
|
|
2324
2354
|
{ jsx: 'true' },
|
|
2325
2355
|
'\n .brightcove {\n position: relative;\n margin-bottom: 1rem;\n height: 100%;\n width: 100%;\n }\n .brightcove .video-js {\n height: 100%;\n width: 100%;\n position: relative;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n min-height: 411px;\n }\n '
|
|
2326
2356
|
)
|
|
2327
2357
|
);
|
|
2328
2358
|
} else if (playlistID) {
|
|
2329
|
-
return
|
|
2359
|
+
return React__default.createElement(
|
|
2330
2360
|
'div',
|
|
2331
2361
|
null,
|
|
2332
|
-
|
|
2362
|
+
React__default.createElement(ReactPlayerLoader, {
|
|
2333
2363
|
accountId: accountIDs.brightcove.accountId,
|
|
2334
2364
|
playlistId: playlistID,
|
|
2335
2365
|
playerId: accountIDs.brightcove.playerId,
|
|
2336
2366
|
onSuccess: onVideoSuccess,
|
|
2337
2367
|
attrs: { className: 'brightcove brightcove-playlist', autoplay: 'muted' }
|
|
2338
2368
|
}),
|
|
2339
|
-
|
|
2369
|
+
React__default.createElement(
|
|
2340
2370
|
'style',
|
|
2341
2371
|
{ jsx: 'true' },
|
|
2342
2372
|
'\n .brightcove {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n width: 100%;\n }\n .brightcove .video-js {\n height: 100%;\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n '
|
|
2343
2373
|
)
|
|
2344
2374
|
);
|
|
2345
2375
|
} else if (experienceID) {
|
|
2346
|
-
return
|
|
2376
|
+
return React__default.createElement(
|
|
2347
2377
|
'div',
|
|
2348
2378
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2349
|
-
videoLoaded &&
|
|
2379
|
+
videoLoaded && React__default.createElement('div', { 'data-experience': experienceID })
|
|
2350
2380
|
);
|
|
2351
2381
|
}
|
|
2352
2382
|
return null;
|
|
@@ -2559,9 +2589,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2559
2589
|
});
|
|
2560
2590
|
|
|
2561
2591
|
unwrapExports(props);
|
|
2562
|
-
props.DEPRECATED_CONFIG_PROPS;
|
|
2563
|
-
props.defaultProps;
|
|
2564
|
-
props.propTypes;
|
|
2592
|
+
var props_1 = props.DEPRECATED_CONFIG_PROPS;
|
|
2593
|
+
var props_2 = props.defaultProps;
|
|
2594
|
+
var props_3 = props.propTypes;
|
|
2565
2595
|
|
|
2566
2596
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2567
2597
|
return isNonNullObject(value)
|
|
@@ -2726,17 +2756,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2726
2756
|
|
|
2727
2757
|
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; }
|
|
2728
2758
|
|
|
2729
|
-
function
|
|
2730
|
-
|
|
2731
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2732
|
-
|
|
2733
|
-
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."); }
|
|
2759
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2734
2760
|
|
|
2735
|
-
function
|
|
2761
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2736
2762
|
|
|
2737
|
-
function
|
|
2738
|
-
|
|
2739
|
-
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; }
|
|
2763
|
+
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; }
|
|
2740
2764
|
|
|
2741
2765
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2742
2766
|
|
|
@@ -2866,12 +2890,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
2866
2890
|
|
|
2867
2891
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
2868
2892
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
2869
|
-
|
|
2870
|
-
var
|
|
2871
|
-
|
|
2893
|
+
var _iteratorNormalCompletion = true;
|
|
2894
|
+
var _didIteratorError = false;
|
|
2895
|
+
var _iteratorError = undefined;
|
|
2872
2896
|
|
|
2873
2897
|
try {
|
|
2874
|
-
for (_iterator.
|
|
2898
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
2875
2899
|
var p = _step.value;
|
|
2876
2900
|
|
|
2877
2901
|
if (props$1[p]) {
|
|
@@ -2886,9 +2910,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
2886
2910
|
}
|
|
2887
2911
|
}
|
|
2888
2912
|
} catch (err) {
|
|
2889
|
-
|
|
2913
|
+
_didIteratorError = true;
|
|
2914
|
+
_iteratorError = err;
|
|
2890
2915
|
} finally {
|
|
2891
|
-
|
|
2916
|
+
try {
|
|
2917
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
2918
|
+
_iterator["return"]();
|
|
2919
|
+
}
|
|
2920
|
+
} finally {
|
|
2921
|
+
if (_didIteratorError) {
|
|
2922
|
+
throw _iteratorError;
|
|
2923
|
+
}
|
|
2924
|
+
}
|
|
2892
2925
|
}
|
|
2893
2926
|
|
|
2894
2927
|
return config;
|
|
@@ -2953,7 +2986,7 @@ function isEqual(a, b) {
|
|
|
2953
2986
|
return true;
|
|
2954
2987
|
}
|
|
2955
2988
|
|
|
2956
|
-
if ((0,
|
|
2989
|
+
if ((0, React__default.isValidElement)(a) && (0, React__default.isValidElement)(b)) {
|
|
2957
2990
|
return true;
|
|
2958
2991
|
}
|
|
2959
2992
|
|
|
@@ -2996,17 +3029,17 @@ function isMediaStream(url) {
|
|
|
2996
3029
|
});
|
|
2997
3030
|
|
|
2998
3031
|
unwrapExports(utils);
|
|
2999
|
-
utils.parseStartTime;
|
|
3000
|
-
utils.parseEndTime;
|
|
3001
|
-
utils.randomString;
|
|
3002
|
-
utils.queryString;
|
|
3003
|
-
utils.getSDK;
|
|
3004
|
-
utils.getConfig;
|
|
3005
|
-
utils.omit;
|
|
3006
|
-
utils.callPlayer;
|
|
3007
|
-
utils.isObject;
|
|
3008
|
-
utils.isEqual;
|
|
3009
|
-
utils.isMediaStream;
|
|
3032
|
+
var utils_1 = utils.parseStartTime;
|
|
3033
|
+
var utils_2 = utils.parseEndTime;
|
|
3034
|
+
var utils_3 = utils.randomString;
|
|
3035
|
+
var utils_4 = utils.queryString;
|
|
3036
|
+
var utils_5 = utils.getSDK;
|
|
3037
|
+
var utils_6 = utils.getConfig;
|
|
3038
|
+
var utils_7 = utils.omit;
|
|
3039
|
+
var utils_8 = utils.callPlayer;
|
|
3040
|
+
var utils_9 = utils.isObject;
|
|
3041
|
+
var utils_10 = utils.isEqual;
|
|
3042
|
+
var utils_11 = utils.isMediaStream;
|
|
3010
3043
|
|
|
3011
3044
|
var Player_1 = createCommonjsModule(function (module, exports) {
|
|
3012
3045
|
|
|
@@ -3015,7 +3048,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3015
3048
|
});
|
|
3016
3049
|
exports["default"] = void 0;
|
|
3017
3050
|
|
|
3018
|
-
var _react = _interopRequireWildcard(
|
|
3051
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3019
3052
|
|
|
3020
3053
|
|
|
3021
3054
|
|
|
@@ -3035,16 +3068,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3035
3068
|
|
|
3036
3069
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3037
3070
|
|
|
3038
|
-
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); }; }
|
|
3039
|
-
|
|
3040
3071
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3041
3072
|
|
|
3042
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3043
|
-
|
|
3044
|
-
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; } }
|
|
3045
|
-
|
|
3046
3073
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3047
3074
|
|
|
3075
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3076
|
+
|
|
3048
3077
|
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); }
|
|
3049
3078
|
|
|
3050
3079
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3053,12 +3082,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3053
3082
|
|
|
3054
3083
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3055
3084
|
|
|
3056
|
-
var Player =
|
|
3085
|
+
var Player =
|
|
3086
|
+
/*#__PURE__*/
|
|
3087
|
+
function (_Component) {
|
|
3057
3088
|
_inherits(Player, _Component);
|
|
3058
3089
|
|
|
3059
|
-
var _super = _createSuper(Player);
|
|
3060
|
-
|
|
3061
3090
|
function Player() {
|
|
3091
|
+
var _getPrototypeOf2;
|
|
3092
|
+
|
|
3062
3093
|
var _this;
|
|
3063
3094
|
|
|
3064
3095
|
_classCallCheck(this, Player);
|
|
@@ -3067,7 +3098,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3067
3098
|
_args[_key] = arguments[_key];
|
|
3068
3099
|
}
|
|
3069
3100
|
|
|
3070
|
-
_this =
|
|
3101
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3071
3102
|
|
|
3072
3103
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3073
3104
|
|
|
@@ -3392,7 +3423,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3392
3423
|
return null;
|
|
3393
3424
|
}
|
|
3394
3425
|
|
|
3395
|
-
return
|
|
3426
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3396
3427
|
ref: this.ref,
|
|
3397
3428
|
onReady: this.handleReady,
|
|
3398
3429
|
onPlay: this.handlePlay,
|
|
@@ -3425,7 +3456,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3425
3456
|
});
|
|
3426
3457
|
exports["default"] = createSinglePlayer;
|
|
3427
3458
|
|
|
3428
|
-
var _react = _interopRequireWildcard(
|
|
3459
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3429
3460
|
|
|
3430
3461
|
|
|
3431
3462
|
|
|
@@ -3453,16 +3484,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3453
3484
|
|
|
3454
3485
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3455
3486
|
|
|
3456
|
-
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); }; }
|
|
3457
|
-
|
|
3458
3487
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3459
3488
|
|
|
3460
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3461
|
-
|
|
3462
|
-
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; } }
|
|
3463
|
-
|
|
3464
3489
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3465
3490
|
|
|
3491
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3492
|
+
|
|
3466
3493
|
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); }
|
|
3467
3494
|
|
|
3468
3495
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3474,12 +3501,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3474
3501
|
function createSinglePlayer(activePlayer) {
|
|
3475
3502
|
var _class, _temp;
|
|
3476
3503
|
|
|
3477
|
-
return _temp = _class =
|
|
3504
|
+
return _temp = _class =
|
|
3505
|
+
/*#__PURE__*/
|
|
3506
|
+
function (_Component) {
|
|
3478
3507
|
_inherits(SinglePlayer, _Component);
|
|
3479
3508
|
|
|
3480
|
-
var _super = _createSuper(SinglePlayer);
|
|
3481
|
-
|
|
3482
3509
|
function SinglePlayer() {
|
|
3510
|
+
var _getPrototypeOf2;
|
|
3511
|
+
|
|
3483
3512
|
var _this;
|
|
3484
3513
|
|
|
3485
3514
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3488,7 +3517,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3488
3517
|
args[_key] = arguments[_key];
|
|
3489
3518
|
}
|
|
3490
3519
|
|
|
3491
|
-
_this =
|
|
3520
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3492
3521
|
|
|
3493
3522
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3494
3523
|
|
|
@@ -3556,12 +3585,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3556
3585
|
height = _this$props.height,
|
|
3557
3586
|
Wrapper = _this$props.wrapper;
|
|
3558
3587
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3559
|
-
return
|
|
3588
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3560
3589
|
style: _objectSpread({}, style, {
|
|
3561
3590
|
width: width,
|
|
3562
3591
|
height: height
|
|
3563
3592
|
})
|
|
3564
|
-
}, otherProps),
|
|
3593
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3565
3594
|
ref: this.ref,
|
|
3566
3595
|
activePlayer: activePlayer,
|
|
3567
3596
|
config: this.config
|
|
@@ -3583,7 +3612,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3583
3612
|
});
|
|
3584
3613
|
exports["default"] = exports.YouTube = void 0;
|
|
3585
3614
|
|
|
3586
|
-
var _react = _interopRequireWildcard(
|
|
3615
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3587
3616
|
|
|
3588
3617
|
|
|
3589
3618
|
|
|
@@ -3607,31 +3636,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3607
3636
|
|
|
3608
3637
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3609
3638
|
|
|
3610
|
-
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); }; }
|
|
3611
|
-
|
|
3612
3639
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3613
3640
|
|
|
3614
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3615
|
-
|
|
3616
|
-
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; } }
|
|
3617
|
-
|
|
3618
3641
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3619
3642
|
|
|
3643
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3644
|
+
|
|
3620
3645
|
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); }
|
|
3621
3646
|
|
|
3622
3647
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3623
3648
|
|
|
3624
3649
|
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; }
|
|
3625
3650
|
|
|
3626
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3627
|
-
|
|
3628
|
-
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."); }
|
|
3629
|
-
|
|
3630
|
-
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); }
|
|
3651
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3631
3652
|
|
|
3632
|
-
function
|
|
3653
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3633
3654
|
|
|
3634
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
3655
|
+
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; }
|
|
3635
3656
|
|
|
3636
3657
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3637
3658
|
|
|
@@ -3656,12 +3677,14 @@ function parsePlaylist(url) {
|
|
|
3656
3677
|
return {};
|
|
3657
3678
|
}
|
|
3658
3679
|
|
|
3659
|
-
var YouTube =
|
|
3680
|
+
var YouTube =
|
|
3681
|
+
/*#__PURE__*/
|
|
3682
|
+
function (_Component) {
|
|
3660
3683
|
_inherits(YouTube, _Component);
|
|
3661
3684
|
|
|
3662
|
-
var _super = _createSuper(YouTube);
|
|
3663
|
-
|
|
3664
3685
|
function YouTube() {
|
|
3686
|
+
var _getPrototypeOf2;
|
|
3687
|
+
|
|
3665
3688
|
var _this;
|
|
3666
3689
|
|
|
3667
3690
|
_classCallCheck(this, YouTube);
|
|
@@ -3670,7 +3693,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3670
3693
|
args[_key] = arguments[_key];
|
|
3671
3694
|
}
|
|
3672
3695
|
|
|
3673
|
-
_this =
|
|
3696
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3674
3697
|
|
|
3675
3698
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3676
3699
|
|
|
@@ -3858,9 +3881,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3858
3881
|
height: '100%',
|
|
3859
3882
|
display: display
|
|
3860
3883
|
};
|
|
3861
|
-
return
|
|
3884
|
+
return _react["default"].createElement("div", {
|
|
3862
3885
|
style: style
|
|
3863
|
-
},
|
|
3886
|
+
}, _react["default"].createElement("div", {
|
|
3864
3887
|
ref: this.ref
|
|
3865
3888
|
}));
|
|
3866
3889
|
}
|
|
@@ -3883,7 +3906,7 @@ exports["default"] = _default;
|
|
|
3883
3906
|
});
|
|
3884
3907
|
|
|
3885
3908
|
unwrapExports(YouTube_1);
|
|
3886
|
-
YouTube_1.YouTube;
|
|
3909
|
+
var YouTube_2 = YouTube_1.YouTube;
|
|
3887
3910
|
|
|
3888
3911
|
var SoundCloud_1 = createCommonjsModule(function (module, exports) {
|
|
3889
3912
|
|
|
@@ -3892,7 +3915,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3892
3915
|
});
|
|
3893
3916
|
exports["default"] = exports.SoundCloud = void 0;
|
|
3894
3917
|
|
|
3895
|
-
var _react = _interopRequireWildcard(
|
|
3918
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3896
3919
|
|
|
3897
3920
|
|
|
3898
3921
|
|
|
@@ -3916,16 +3939,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3916
3939
|
|
|
3917
3940
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3918
3941
|
|
|
3919
|
-
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); }; }
|
|
3920
|
-
|
|
3921
3942
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3922
3943
|
|
|
3923
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3924
|
-
|
|
3925
|
-
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; } }
|
|
3926
|
-
|
|
3927
3944
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3928
3945
|
|
|
3946
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3947
|
+
|
|
3929
3948
|
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); }
|
|
3930
3949
|
|
|
3931
3950
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3934,14 +3953,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3934
3953
|
|
|
3935
3954
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
3936
3955
|
var SDK_GLOBAL = 'SC';
|
|
3937
|
-
var MATCH_URL = /(
|
|
3956
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
3938
3957
|
|
|
3939
|
-
var SoundCloud =
|
|
3958
|
+
var SoundCloud =
|
|
3959
|
+
/*#__PURE__*/
|
|
3960
|
+
function (_Component) {
|
|
3940
3961
|
_inherits(SoundCloud, _Component);
|
|
3941
3962
|
|
|
3942
|
-
var _super = _createSuper(SoundCloud);
|
|
3943
|
-
|
|
3944
3963
|
function SoundCloud() {
|
|
3964
|
+
var _getPrototypeOf2;
|
|
3965
|
+
|
|
3945
3966
|
var _this;
|
|
3946
3967
|
|
|
3947
3968
|
_classCallCheck(this, SoundCloud);
|
|
@@ -3950,7 +3971,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
3950
3971
|
args[_key] = arguments[_key];
|
|
3951
3972
|
}
|
|
3952
3973
|
|
|
3953
|
-
_this =
|
|
3974
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3954
3975
|
|
|
3955
3976
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3956
3977
|
|
|
@@ -4071,7 +4092,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4071
4092
|
height: '100%',
|
|
4072
4093
|
display: display
|
|
4073
4094
|
};
|
|
4074
|
-
return
|
|
4095
|
+
return _react["default"].createElement("iframe", {
|
|
4075
4096
|
ref: this.ref,
|
|
4076
4097
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4077
4098
|
style: style,
|
|
@@ -4100,7 +4121,7 @@ exports["default"] = _default;
|
|
|
4100
4121
|
});
|
|
4101
4122
|
|
|
4102
4123
|
unwrapExports(SoundCloud_1);
|
|
4103
|
-
SoundCloud_1.SoundCloud;
|
|
4124
|
+
var SoundCloud_2 = SoundCloud_1.SoundCloud;
|
|
4104
4125
|
|
|
4105
4126
|
var Vimeo_1 = createCommonjsModule(function (module, exports) {
|
|
4106
4127
|
|
|
@@ -4109,7 +4130,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4109
4130
|
});
|
|
4110
4131
|
exports["default"] = exports.Vimeo = void 0;
|
|
4111
4132
|
|
|
4112
|
-
var _react = _interopRequireWildcard(
|
|
4133
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4113
4134
|
|
|
4114
4135
|
|
|
4115
4136
|
|
|
@@ -4133,16 +4154,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4133
4154
|
|
|
4134
4155
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4135
4156
|
|
|
4136
|
-
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); }; }
|
|
4137
|
-
|
|
4138
4157
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4139
4158
|
|
|
4140
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4141
|
-
|
|
4142
|
-
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; } }
|
|
4143
|
-
|
|
4144
4159
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4145
4160
|
|
|
4161
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4162
|
+
|
|
4146
4163
|
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); }
|
|
4147
4164
|
|
|
4148
4165
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4154,12 +4171,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4154
4171
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4155
4172
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4156
4173
|
|
|
4157
|
-
var Vimeo =
|
|
4174
|
+
var Vimeo =
|
|
4175
|
+
/*#__PURE__*/
|
|
4176
|
+
function (_Component) {
|
|
4158
4177
|
_inherits(Vimeo, _Component);
|
|
4159
4178
|
|
|
4160
|
-
var _super = _createSuper(Vimeo);
|
|
4161
|
-
|
|
4162
4179
|
function Vimeo() {
|
|
4180
|
+
var _getPrototypeOf2;
|
|
4181
|
+
|
|
4163
4182
|
var _this;
|
|
4164
4183
|
|
|
4165
4184
|
_classCallCheck(this, Vimeo);
|
|
@@ -4168,7 +4187,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4168
4187
|
args[_key] = arguments[_key];
|
|
4169
4188
|
}
|
|
4170
4189
|
|
|
4171
|
-
_this =
|
|
4190
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4172
4191
|
|
|
4173
4192
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4174
4193
|
|
|
@@ -4325,7 +4344,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4325
4344
|
overflow: 'hidden',
|
|
4326
4345
|
display: display
|
|
4327
4346
|
};
|
|
4328
|
-
return
|
|
4347
|
+
return _react["default"].createElement("div", {
|
|
4329
4348
|
key: this.props.url,
|
|
4330
4349
|
ref: this.ref,
|
|
4331
4350
|
style: style
|
|
@@ -4356,7 +4375,7 @@ exports["default"] = _default;
|
|
|
4356
4375
|
});
|
|
4357
4376
|
|
|
4358
4377
|
unwrapExports(Vimeo_1);
|
|
4359
|
-
Vimeo_1.Vimeo;
|
|
4378
|
+
var Vimeo_2 = Vimeo_1.Vimeo;
|
|
4360
4379
|
|
|
4361
4380
|
var Facebook_1 = createCommonjsModule(function (module, exports) {
|
|
4362
4381
|
|
|
@@ -4365,7 +4384,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4365
4384
|
});
|
|
4366
4385
|
exports["default"] = exports.Facebook = void 0;
|
|
4367
4386
|
|
|
4368
|
-
var _react = _interopRequireWildcard(
|
|
4387
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4369
4388
|
|
|
4370
4389
|
|
|
4371
4390
|
|
|
@@ -4385,16 +4404,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4385
4404
|
|
|
4386
4405
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4387
4406
|
|
|
4388
|
-
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); }; }
|
|
4389
|
-
|
|
4390
4407
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4391
4408
|
|
|
4392
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4393
|
-
|
|
4394
|
-
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; } }
|
|
4395
|
-
|
|
4396
4409
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4397
4410
|
|
|
4411
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4412
|
+
|
|
4398
4413
|
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); }
|
|
4399
4414
|
|
|
4400
4415
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4407,12 +4422,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4407
4422
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4408
4423
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4409
4424
|
|
|
4410
|
-
var Facebook =
|
|
4425
|
+
var Facebook =
|
|
4426
|
+
/*#__PURE__*/
|
|
4427
|
+
function (_Component) {
|
|
4411
4428
|
_inherits(Facebook, _Component);
|
|
4412
4429
|
|
|
4413
|
-
var _super = _createSuper(Facebook);
|
|
4414
|
-
|
|
4415
4430
|
function Facebook() {
|
|
4431
|
+
var _getPrototypeOf2;
|
|
4432
|
+
|
|
4416
4433
|
var _this;
|
|
4417
4434
|
|
|
4418
4435
|
_classCallCheck(this, Facebook);
|
|
@@ -4421,7 +4438,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4421
4438
|
args[_key] = arguments[_key];
|
|
4422
4439
|
}
|
|
4423
4440
|
|
|
4424
|
-
_this =
|
|
4441
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4425
4442
|
|
|
4426
4443
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4427
4444
|
|
|
@@ -4537,7 +4554,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4537
4554
|
width: '100%',
|
|
4538
4555
|
height: '100%'
|
|
4539
4556
|
};
|
|
4540
|
-
return
|
|
4557
|
+
return _react["default"].createElement("div", {
|
|
4541
4558
|
style: style,
|
|
4542
4559
|
id: this.playerID,
|
|
4543
4560
|
className: "fb-video",
|
|
@@ -4568,7 +4585,7 @@ exports["default"] = _default;
|
|
|
4568
4585
|
});
|
|
4569
4586
|
|
|
4570
4587
|
unwrapExports(Facebook_1);
|
|
4571
|
-
Facebook_1.Facebook;
|
|
4588
|
+
var Facebook_2 = Facebook_1.Facebook;
|
|
4572
4589
|
|
|
4573
4590
|
var Streamable_1 = createCommonjsModule(function (module, exports) {
|
|
4574
4591
|
|
|
@@ -4577,7 +4594,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4577
4594
|
});
|
|
4578
4595
|
exports["default"] = exports.Streamable = void 0;
|
|
4579
4596
|
|
|
4580
|
-
var _react = _interopRequireWildcard(
|
|
4597
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4581
4598
|
|
|
4582
4599
|
|
|
4583
4600
|
|
|
@@ -4597,16 +4614,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4597
4614
|
|
|
4598
4615
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4599
4616
|
|
|
4600
|
-
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); }; }
|
|
4601
|
-
|
|
4602
4617
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4603
4618
|
|
|
4604
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4605
|
-
|
|
4606
|
-
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; } }
|
|
4607
|
-
|
|
4608
4619
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4609
4620
|
|
|
4621
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4622
|
+
|
|
4610
4623
|
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); }
|
|
4611
4624
|
|
|
4612
4625
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4617,12 +4630,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4617
4630
|
var SDK_GLOBAL = 'playerjs';
|
|
4618
4631
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4619
4632
|
|
|
4620
|
-
var Streamable =
|
|
4633
|
+
var Streamable =
|
|
4634
|
+
/*#__PURE__*/
|
|
4635
|
+
function (_Component) {
|
|
4621
4636
|
_inherits(Streamable, _Component);
|
|
4622
4637
|
|
|
4623
|
-
var _super = _createSuper(Streamable);
|
|
4624
|
-
|
|
4625
4638
|
function Streamable() {
|
|
4639
|
+
var _getPrototypeOf2;
|
|
4640
|
+
|
|
4626
4641
|
var _this;
|
|
4627
4642
|
|
|
4628
4643
|
_classCallCheck(this, Streamable);
|
|
@@ -4631,7 +4646,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4631
4646
|
args[_key] = arguments[_key];
|
|
4632
4647
|
}
|
|
4633
4648
|
|
|
4634
|
-
_this =
|
|
4649
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4635
4650
|
|
|
4636
4651
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4637
4652
|
|
|
@@ -4751,7 +4766,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4751
4766
|
width: '100%',
|
|
4752
4767
|
height: '100%'
|
|
4753
4768
|
};
|
|
4754
|
-
return
|
|
4769
|
+
return _react["default"].createElement("iframe", {
|
|
4755
4770
|
ref: this.ref,
|
|
4756
4771
|
src: "https://streamable.com/o/".concat(id),
|
|
4757
4772
|
frameBorder: "0",
|
|
@@ -4779,7 +4794,7 @@ exports["default"] = _default;
|
|
|
4779
4794
|
});
|
|
4780
4795
|
|
|
4781
4796
|
unwrapExports(Streamable_1);
|
|
4782
|
-
Streamable_1.Streamable;
|
|
4797
|
+
var Streamable_2 = Streamable_1.Streamable;
|
|
4783
4798
|
|
|
4784
4799
|
var Wistia_1 = createCommonjsModule(function (module, exports) {
|
|
4785
4800
|
|
|
@@ -4788,7 +4803,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4788
4803
|
});
|
|
4789
4804
|
exports["default"] = exports.Wistia = void 0;
|
|
4790
4805
|
|
|
4791
|
-
var _react = _interopRequireWildcard(
|
|
4806
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4792
4807
|
|
|
4793
4808
|
|
|
4794
4809
|
|
|
@@ -4812,16 +4827,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4812
4827
|
|
|
4813
4828
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4814
4829
|
|
|
4815
|
-
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); }; }
|
|
4816
|
-
|
|
4817
4830
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4818
4831
|
|
|
4819
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4820
|
-
|
|
4821
|
-
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; } }
|
|
4822
|
-
|
|
4823
4832
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4824
4833
|
|
|
4834
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4835
|
+
|
|
4825
4836
|
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); }
|
|
4826
4837
|
|
|
4827
4838
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4832,48 +4843,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4832
4843
|
var SDK_GLOBAL = 'Wistia';
|
|
4833
4844
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4834
4845
|
|
|
4835
|
-
var Wistia =
|
|
4846
|
+
var Wistia =
|
|
4847
|
+
/*#__PURE__*/
|
|
4848
|
+
function (_Component) {
|
|
4836
4849
|
_inherits(Wistia, _Component);
|
|
4837
4850
|
|
|
4838
|
-
var _super = _createSuper(Wistia);
|
|
4839
|
-
|
|
4840
4851
|
function Wistia() {
|
|
4852
|
+
var _getPrototypeOf2;
|
|
4853
|
+
|
|
4841
4854
|
var _this;
|
|
4842
4855
|
|
|
4843
4856
|
_classCallCheck(this, Wistia);
|
|
4844
4857
|
|
|
4845
|
-
for (var _len = arguments.length,
|
|
4846
|
-
|
|
4858
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
4859
|
+
args[_key] = arguments[_key];
|
|
4847
4860
|
}
|
|
4848
4861
|
|
|
4849
|
-
_this =
|
|
4862
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4850
4863
|
|
|
4851
4864
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4852
4865
|
|
|
4853
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4854
|
-
var _this$props;
|
|
4855
|
-
|
|
4856
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4857
|
-
});
|
|
4858
|
-
|
|
4859
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4860
|
-
var _this$props2;
|
|
4861
|
-
|
|
4862
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4863
|
-
});
|
|
4864
|
-
|
|
4865
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
4866
|
-
var _this$props3;
|
|
4867
|
-
|
|
4868
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
4869
|
-
});
|
|
4870
|
-
|
|
4871
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
4872
|
-
var _this$props4;
|
|
4873
|
-
|
|
4874
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
4875
|
-
});
|
|
4876
|
-
|
|
4877
4866
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
4878
4867
|
_this.callPlayer('mute');
|
|
4879
4868
|
});
|
|
@@ -4895,13 +4884,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4895
4884
|
value: function load(url) {
|
|
4896
4885
|
var _this2 = this;
|
|
4897
4886
|
|
|
4898
|
-
var _this$
|
|
4899
|
-
playing = _this$
|
|
4900
|
-
muted = _this$
|
|
4901
|
-
controls = _this$
|
|
4902
|
-
_onReady = _this$
|
|
4903
|
-
|
|
4904
|
-
|
|
4887
|
+
var _this$props = this.props,
|
|
4888
|
+
playing = _this$props.playing,
|
|
4889
|
+
muted = _this$props.muted,
|
|
4890
|
+
controls = _this$props.controls,
|
|
4891
|
+
_onReady = _this$props.onReady,
|
|
4892
|
+
onPlay = _this$props.onPlay,
|
|
4893
|
+
onPause = _this$props.onPause,
|
|
4894
|
+
onSeek = _this$props.onSeek,
|
|
4895
|
+
onEnded = _this$props.onEnded,
|
|
4896
|
+
config = _this$props.config,
|
|
4897
|
+
onError = _this$props.onError;
|
|
4905
4898
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
4906
4899
|
window._wq = window._wq || [];
|
|
4907
4900
|
|
|
@@ -4918,28 +4911,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4918
4911
|
|
|
4919
4912
|
_this2.unbind();
|
|
4920
4913
|
|
|
4921
|
-
_this2.player.bind('play',
|
|
4914
|
+
_this2.player.bind('play', onPlay);
|
|
4922
4915
|
|
|
4923
|
-
_this2.player.bind('pause',
|
|
4916
|
+
_this2.player.bind('pause', onPause);
|
|
4924
4917
|
|
|
4925
|
-
_this2.player.bind('seek',
|
|
4918
|
+
_this2.player.bind('seek', onSeek);
|
|
4926
4919
|
|
|
4927
|
-
_this2.player.bind('end',
|
|
4920
|
+
_this2.player.bind('end', onEnded);
|
|
4928
4921
|
|
|
4929
4922
|
_onReady();
|
|
4930
4923
|
}
|
|
4931
4924
|
});
|
|
4932
4925
|
}, onError);
|
|
4933
4926
|
}
|
|
4934
|
-
}, {
|
|
4935
|
-
key: "unbind",
|
|
4936
|
-
value: function unbind() {
|
|
4937
|
-
this.player.unbind('play', this.onPlay);
|
|
4938
|
-
this.player.unbind('pause', this.onPause);
|
|
4939
|
-
this.player.unbind('seek', this.onSeek);
|
|
4940
|
-
this.player.unbind('end', this.onEnded);
|
|
4941
|
-
} // Proxy methods to prevent listener leaks
|
|
4942
|
-
|
|
4943
4927
|
}, {
|
|
4944
4928
|
key: "play",
|
|
4945
4929
|
value: function play() {
|
|
@@ -4950,6 +4934,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4950
4934
|
value: function pause() {
|
|
4951
4935
|
this.callPlayer('pause');
|
|
4952
4936
|
}
|
|
4937
|
+
}, {
|
|
4938
|
+
key: "unbind",
|
|
4939
|
+
value: function unbind() {
|
|
4940
|
+
var _this$props2 = this.props,
|
|
4941
|
+
onPlay = _this$props2.onPlay,
|
|
4942
|
+
onPause = _this$props2.onPause,
|
|
4943
|
+
onSeek = _this$props2.onSeek,
|
|
4944
|
+
onEnded = _this$props2.onEnded;
|
|
4945
|
+
this.player.unbind('play', onPlay);
|
|
4946
|
+
this.player.unbind('pause', onPause);
|
|
4947
|
+
this.player.unbind('seek', onSeek);
|
|
4948
|
+
this.player.unbind('end', onEnded);
|
|
4949
|
+
}
|
|
4953
4950
|
}, {
|
|
4954
4951
|
key: "stop",
|
|
4955
4952
|
value: function stop() {
|
|
@@ -4995,7 +4992,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
4995
4992
|
width: '100%',
|
|
4996
4993
|
height: '100%'
|
|
4997
4994
|
};
|
|
4998
|
-
return
|
|
4995
|
+
return _react["default"].createElement("div", {
|
|
4999
4996
|
key: id,
|
|
5000
4997
|
className: className,
|
|
5001
4998
|
style: style
|
|
@@ -5022,7 +5019,7 @@ exports["default"] = _default;
|
|
|
5022
5019
|
});
|
|
5023
5020
|
|
|
5024
5021
|
unwrapExports(Wistia_1);
|
|
5025
|
-
Wistia_1.Wistia;
|
|
5022
|
+
var Wistia_2 = Wistia_1.Wistia;
|
|
5026
5023
|
|
|
5027
5024
|
var Twitch_1 = createCommonjsModule(function (module, exports) {
|
|
5028
5025
|
|
|
@@ -5031,7 +5028,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5031
5028
|
});
|
|
5032
5029
|
exports["default"] = exports.Twitch = void 0;
|
|
5033
5030
|
|
|
5034
|
-
var _react = _interopRequireWildcard(
|
|
5031
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5035
5032
|
|
|
5036
5033
|
|
|
5037
5034
|
|
|
@@ -5055,16 +5052,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5055
5052
|
|
|
5056
5053
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5057
5054
|
|
|
5058
|
-
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5059
|
-
|
|
5060
5055
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5061
5056
|
|
|
5062
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5063
|
-
|
|
5064
|
-
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; } }
|
|
5065
|
-
|
|
5066
5057
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5067
5058
|
|
|
5059
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5060
|
+
|
|
5068
5061
|
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); }
|
|
5069
5062
|
|
|
5070
5063
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5077,12 +5070,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5077
5070
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5078
5071
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5079
5072
|
|
|
5080
|
-
var Twitch =
|
|
5073
|
+
var Twitch =
|
|
5074
|
+
/*#__PURE__*/
|
|
5075
|
+
function (_Component) {
|
|
5081
5076
|
_inherits(Twitch, _Component);
|
|
5082
5077
|
|
|
5083
|
-
var _super = _createSuper(Twitch);
|
|
5084
|
-
|
|
5085
5078
|
function Twitch() {
|
|
5079
|
+
var _getPrototypeOf2;
|
|
5080
|
+
|
|
5086
5081
|
var _this;
|
|
5087
5082
|
|
|
5088
5083
|
_classCallCheck(this, Twitch);
|
|
@@ -5091,7 +5086,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5091
5086
|
args[_key] = arguments[_key];
|
|
5092
5087
|
}
|
|
5093
5088
|
|
|
5094
|
-
_this =
|
|
5089
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5095
5090
|
|
|
5096
5091
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5097
5092
|
|
|
@@ -5212,7 +5207,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5212
5207
|
width: '100%',
|
|
5213
5208
|
height: '100%'
|
|
5214
5209
|
};
|
|
5215
|
-
return
|
|
5210
|
+
return _react["default"].createElement("div", {
|
|
5216
5211
|
style: style,
|
|
5217
5212
|
id: this.playerID
|
|
5218
5213
|
});
|
|
@@ -5238,7 +5233,7 @@ exports["default"] = _default;
|
|
|
5238
5233
|
});
|
|
5239
5234
|
|
|
5240
5235
|
unwrapExports(Twitch_1);
|
|
5241
|
-
Twitch_1.Twitch;
|
|
5236
|
+
var Twitch_2 = Twitch_1.Twitch;
|
|
5242
5237
|
|
|
5243
5238
|
var DailyMotion_1 = createCommonjsModule(function (module, exports) {
|
|
5244
5239
|
|
|
@@ -5247,7 +5242,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5247
5242
|
});
|
|
5248
5243
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5249
5244
|
|
|
5250
|
-
var _react = _interopRequireWildcard(
|
|
5245
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5251
5246
|
|
|
5252
5247
|
|
|
5253
5248
|
|
|
@@ -5265,15 +5260,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5265
5260
|
|
|
5266
5261
|
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; }
|
|
5267
5262
|
|
|
5268
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5269
|
-
|
|
5270
|
-
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."); }
|
|
5263
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5271
5264
|
|
|
5272
|
-
function
|
|
5265
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5273
5266
|
|
|
5274
|
-
function
|
|
5275
|
-
|
|
5276
|
-
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; }
|
|
5267
|
+
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; }
|
|
5277
5268
|
|
|
5278
5269
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5279
5270
|
|
|
@@ -5283,16 +5274,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5283
5274
|
|
|
5284
5275
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5285
5276
|
|
|
5286
|
-
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); }; }
|
|
5287
|
-
|
|
5288
5277
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5289
5278
|
|
|
5290
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5291
|
-
|
|
5292
|
-
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; } }
|
|
5293
|
-
|
|
5294
5279
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5295
5280
|
|
|
5281
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5282
|
+
|
|
5296
5283
|
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); }
|
|
5297
5284
|
|
|
5298
5285
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5304,12 +5291,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5304
5291
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5305
5292
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5306
5293
|
|
|
5307
|
-
var DailyMotion =
|
|
5294
|
+
var DailyMotion =
|
|
5295
|
+
/*#__PURE__*/
|
|
5296
|
+
function (_Component) {
|
|
5308
5297
|
_inherits(DailyMotion, _Component);
|
|
5309
5298
|
|
|
5310
|
-
var _super = _createSuper(DailyMotion);
|
|
5311
|
-
|
|
5312
5299
|
function DailyMotion() {
|
|
5300
|
+
var _getPrototypeOf2;
|
|
5301
|
+
|
|
5313
5302
|
var _this;
|
|
5314
5303
|
|
|
5315
5304
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5318,7 +5307,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5318
5307
|
args[_key] = arguments[_key];
|
|
5319
5308
|
}
|
|
5320
5309
|
|
|
5321
|
-
_this =
|
|
5310
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5322
5311
|
|
|
5323
5312
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5324
5313
|
|
|
@@ -5447,9 +5436,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5447
5436
|
height: '100%',
|
|
5448
5437
|
display: display
|
|
5449
5438
|
};
|
|
5450
|
-
return
|
|
5439
|
+
return _react["default"].createElement("div", {
|
|
5451
5440
|
style: style
|
|
5452
|
-
},
|
|
5441
|
+
}, _react["default"].createElement("div", {
|
|
5453
5442
|
ref: this.ref
|
|
5454
5443
|
}));
|
|
5455
5444
|
}
|
|
@@ -5474,7 +5463,7 @@ exports["default"] = _default;
|
|
|
5474
5463
|
});
|
|
5475
5464
|
|
|
5476
5465
|
unwrapExports(DailyMotion_1);
|
|
5477
|
-
DailyMotion_1.DailyMotion;
|
|
5466
|
+
var DailyMotion_2 = DailyMotion_1.DailyMotion;
|
|
5478
5467
|
|
|
5479
5468
|
var Mixcloud_1 = createCommonjsModule(function (module, exports) {
|
|
5480
5469
|
|
|
@@ -5483,7 +5472,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5483
5472
|
});
|
|
5484
5473
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5485
5474
|
|
|
5486
|
-
var _react = _interopRequireWildcard(
|
|
5475
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5487
5476
|
|
|
5488
5477
|
|
|
5489
5478
|
|
|
@@ -5507,16 +5496,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5507
5496
|
|
|
5508
5497
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5509
5498
|
|
|
5510
|
-
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); }; }
|
|
5511
|
-
|
|
5512
5499
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5513
5500
|
|
|
5514
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5515
|
-
|
|
5516
|
-
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; } }
|
|
5517
|
-
|
|
5518
5501
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5519
5502
|
|
|
5503
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5504
|
+
|
|
5520
5505
|
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); }
|
|
5521
5506
|
|
|
5522
5507
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5527,12 +5512,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5527
5512
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5528
5513
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5529
5514
|
|
|
5530
|
-
var Mixcloud =
|
|
5515
|
+
var Mixcloud =
|
|
5516
|
+
/*#__PURE__*/
|
|
5517
|
+
function (_Component) {
|
|
5531
5518
|
_inherits(Mixcloud, _Component);
|
|
5532
5519
|
|
|
5533
|
-
var _super = _createSuper(Mixcloud);
|
|
5534
|
-
|
|
5535
5520
|
function Mixcloud() {
|
|
5521
|
+
var _getPrototypeOf2;
|
|
5522
|
+
|
|
5536
5523
|
var _this;
|
|
5537
5524
|
|
|
5538
5525
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5541,7 +5528,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5541
5528
|
args[_key] = arguments[_key];
|
|
5542
5529
|
}
|
|
5543
5530
|
|
|
5544
|
-
_this =
|
|
5531
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5545
5532
|
|
|
5546
5533
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5547
5534
|
|
|
@@ -5644,7 +5631,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5644
5631
|
})); // We have to give the iframe a key here to prevent a
|
|
5645
5632
|
// weird dialog appearing when loading a new track
|
|
5646
5633
|
|
|
5647
|
-
return
|
|
5634
|
+
return _react["default"].createElement("iframe", {
|
|
5648
5635
|
key: id,
|
|
5649
5636
|
ref: this.ref,
|
|
5650
5637
|
style: style,
|
|
@@ -5673,7 +5660,7 @@ exports["default"] = _default;
|
|
|
5673
5660
|
});
|
|
5674
5661
|
|
|
5675
5662
|
unwrapExports(Mixcloud_1);
|
|
5676
|
-
Mixcloud_1.Mixcloud;
|
|
5663
|
+
var Mixcloud_2 = Mixcloud_1.Mixcloud;
|
|
5677
5664
|
|
|
5678
5665
|
var FilePlayer_1 = createCommonjsModule(function (module, exports) {
|
|
5679
5666
|
|
|
@@ -5682,7 +5669,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5682
5669
|
});
|
|
5683
5670
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5684
5671
|
|
|
5685
|
-
var _react = _interopRequireWildcard(
|
|
5672
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5686
5673
|
|
|
5687
5674
|
|
|
5688
5675
|
|
|
@@ -5704,33 +5691,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5704
5691
|
|
|
5705
5692
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5706
5693
|
|
|
5707
|
-
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); }; }
|
|
5708
|
-
|
|
5709
5694
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5710
5695
|
|
|
5711
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5712
|
-
|
|
5713
|
-
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; } }
|
|
5714
|
-
|
|
5715
5696
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5716
5697
|
|
|
5698
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5699
|
+
|
|
5717
5700
|
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); }
|
|
5718
5701
|
|
|
5719
5702
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5720
5703
|
|
|
5721
5704
|
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; }
|
|
5722
5705
|
|
|
5723
|
-
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; } } }; }
|
|
5724
|
-
|
|
5725
|
-
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); }
|
|
5726
|
-
|
|
5727
|
-
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; }
|
|
5728
|
-
|
|
5729
5706
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5730
5707
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5731
5708
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5732
5709
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5733
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
5710
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5734
5711
|
var HLS_GLOBAL = 'Hls';
|
|
5735
5712
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5736
5713
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5739,11 +5716,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5739
5716
|
|
|
5740
5717
|
function canPlay(url) {
|
|
5741
5718
|
if (url instanceof Array) {
|
|
5742
|
-
var
|
|
5743
|
-
|
|
5719
|
+
var _iteratorNormalCompletion = true;
|
|
5720
|
+
var _didIteratorError = false;
|
|
5721
|
+
var _iteratorError = undefined;
|
|
5744
5722
|
|
|
5745
5723
|
try {
|
|
5746
|
-
for (_iterator.
|
|
5724
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5747
5725
|
var item = _step.value;
|
|
5748
5726
|
|
|
5749
5727
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5755,9 +5733,18 @@ function canPlay(url) {
|
|
|
5755
5733
|
}
|
|
5756
5734
|
}
|
|
5757
5735
|
} catch (err) {
|
|
5758
|
-
|
|
5736
|
+
_didIteratorError = true;
|
|
5737
|
+
_iteratorError = err;
|
|
5759
5738
|
} finally {
|
|
5760
|
-
|
|
5739
|
+
try {
|
|
5740
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
5741
|
+
_iterator["return"]();
|
|
5742
|
+
}
|
|
5743
|
+
} finally {
|
|
5744
|
+
if (_didIteratorError) {
|
|
5745
|
+
throw _iteratorError;
|
|
5746
|
+
}
|
|
5747
|
+
}
|
|
5761
5748
|
}
|
|
5762
5749
|
|
|
5763
5750
|
return false;
|
|
@@ -5781,12 +5768,14 @@ function canEnablePIP(url) {
|
|
|
5781
5768
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5782
5769
|
}
|
|
5783
5770
|
|
|
5784
|
-
var FilePlayer =
|
|
5771
|
+
var FilePlayer =
|
|
5772
|
+
/*#__PURE__*/
|
|
5773
|
+
function (_Component) {
|
|
5785
5774
|
_inherits(FilePlayer, _Component);
|
|
5786
5775
|
|
|
5787
|
-
var _super = _createSuper(FilePlayer);
|
|
5788
|
-
|
|
5789
5776
|
function FilePlayer() {
|
|
5777
|
+
var _getPrototypeOf2;
|
|
5778
|
+
|
|
5790
5779
|
var _this;
|
|
5791
5780
|
|
|
5792
5781
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5795,7 +5784,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5795
5784
|
_args[_key] = arguments[_key];
|
|
5796
5785
|
}
|
|
5797
5786
|
|
|
5798
|
-
_this =
|
|
5787
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5799
5788
|
|
|
5800
5789
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5801
5790
|
var _this$props;
|
|
@@ -5882,19 +5871,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5882
5871
|
|
|
5883
5872
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
5884
5873
|
if (typeof source === 'string') {
|
|
5885
|
-
return
|
|
5874
|
+
return _react["default"].createElement("source", {
|
|
5886
5875
|
key: index,
|
|
5887
5876
|
src: source
|
|
5888
5877
|
});
|
|
5889
5878
|
}
|
|
5890
5879
|
|
|
5891
|
-
return
|
|
5880
|
+
return _react["default"].createElement("source", _extends({
|
|
5892
5881
|
key: index
|
|
5893
5882
|
}, source));
|
|
5894
5883
|
});
|
|
5895
5884
|
|
|
5896
5885
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
5897
|
-
return
|
|
5886
|
+
return _react["default"].createElement("track", _extends({
|
|
5898
5887
|
key: index
|
|
5899
5888
|
}, track));
|
|
5900
5889
|
});
|
|
@@ -5932,10 +5921,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5932
5921
|
key: "componentWillUnmount",
|
|
5933
5922
|
value: function componentWillUnmount() {
|
|
5934
5923
|
this.removeListeners(this.player);
|
|
5935
|
-
|
|
5936
|
-
if (this.hls) {
|
|
5937
|
-
this.hls.destroy();
|
|
5938
|
-
}
|
|
5939
5924
|
}
|
|
5940
5925
|
}, {
|
|
5941
5926
|
key: "addListeners",
|
|
@@ -6066,6 +6051,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6066
6051
|
value: function stop() {
|
|
6067
6052
|
this.player.removeAttribute('src');
|
|
6068
6053
|
|
|
6054
|
+
if (this.hls) {
|
|
6055
|
+
this.hls.destroy();
|
|
6056
|
+
}
|
|
6057
|
+
|
|
6069
6058
|
if (this.dash) {
|
|
6070
6059
|
this.dash.reset();
|
|
6071
6060
|
}
|
|
@@ -6177,7 +6166,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6177
6166
|
width: width === 'auto' ? width : '100%',
|
|
6178
6167
|
height: height === 'auto' ? height : '100%'
|
|
6179
6168
|
};
|
|
6180
|
-
return
|
|
6169
|
+
return _react["default"].createElement(Element, _extends({
|
|
6181
6170
|
ref: this.ref,
|
|
6182
6171
|
src: this.getSource(url),
|
|
6183
6172
|
style: style,
|
|
@@ -6207,7 +6196,7 @@ exports["default"] = _default;
|
|
|
6207
6196
|
});
|
|
6208
6197
|
|
|
6209
6198
|
unwrapExports(FilePlayer_1);
|
|
6210
|
-
FilePlayer_1.FilePlayer;
|
|
6199
|
+
var FilePlayer_2 = FilePlayer_1.FilePlayer;
|
|
6211
6200
|
|
|
6212
6201
|
var players = createCommonjsModule(function (module, exports) {
|
|
6213
6202
|
|
|
@@ -6249,7 +6238,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6249
6238
|
});
|
|
6250
6239
|
exports["default"] = void 0;
|
|
6251
6240
|
|
|
6252
|
-
var _react = _interopRequireWildcard(
|
|
6241
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6253
6242
|
|
|
6254
6243
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6255
6244
|
|
|
@@ -6267,16 +6256,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6267
6256
|
|
|
6268
6257
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6269
6258
|
|
|
6270
|
-
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); }; }
|
|
6271
|
-
|
|
6272
6259
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6273
6260
|
|
|
6274
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6275
|
-
|
|
6276
|
-
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; } }
|
|
6277
|
-
|
|
6278
6261
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6279
6262
|
|
|
6263
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6264
|
+
|
|
6280
6265
|
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); }
|
|
6281
6266
|
|
|
6282
6267
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6285,12 +6270,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6285
6270
|
|
|
6286
6271
|
var ICON_SIZE = '64px';
|
|
6287
6272
|
|
|
6288
|
-
var Preview =
|
|
6273
|
+
var Preview =
|
|
6274
|
+
/*#__PURE__*/
|
|
6275
|
+
function (_Component) {
|
|
6289
6276
|
_inherits(Preview, _Component);
|
|
6290
6277
|
|
|
6291
|
-
var _super = _createSuper(Preview);
|
|
6292
|
-
|
|
6293
6278
|
function Preview() {
|
|
6279
|
+
var _getPrototypeOf2;
|
|
6280
|
+
|
|
6294
6281
|
var _this;
|
|
6295
6282
|
|
|
6296
6283
|
_classCallCheck(this, Preview);
|
|
@@ -6299,7 +6286,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6299
6286
|
args[_key] = arguments[_key];
|
|
6300
6287
|
}
|
|
6301
6288
|
|
|
6302
|
-
_this =
|
|
6289
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6303
6290
|
|
|
6304
6291
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6305
6292
|
|
|
@@ -6397,15 +6384,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6397
6384
|
}
|
|
6398
6385
|
};
|
|
6399
6386
|
|
|
6400
|
-
var defaultPlayIcon =
|
|
6387
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6401
6388
|
style: styles.shadow,
|
|
6402
6389
|
className: "react-player__shadow"
|
|
6403
|
-
},
|
|
6390
|
+
}, _react["default"].createElement("div", {
|
|
6404
6391
|
style: styles.playIcon,
|
|
6405
6392
|
className: "react-player__play-icon"
|
|
6406
6393
|
}));
|
|
6407
6394
|
|
|
6408
|
-
return
|
|
6395
|
+
return _react["default"].createElement("div", {
|
|
6409
6396
|
style: styles.preview,
|
|
6410
6397
|
className: "react-player__preview",
|
|
6411
6398
|
onClick: onClick
|
|
@@ -6428,7 +6415,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6428
6415
|
});
|
|
6429
6416
|
exports["default"] = renderPreloadPlayers;
|
|
6430
6417
|
|
|
6431
|
-
var _react = _interopRequireDefault(
|
|
6418
|
+
var _react = _interopRequireDefault(React__default);
|
|
6432
6419
|
|
|
6433
6420
|
var _Player = _interopRequireDefault(Player_1);
|
|
6434
6421
|
|
|
@@ -6442,12 +6429,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6442
6429
|
|
|
6443
6430
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6444
6431
|
|
|
6445
|
-
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; } } }; }
|
|
6446
|
-
|
|
6447
|
-
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); }
|
|
6448
|
-
|
|
6449
|
-
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; }
|
|
6450
|
-
|
|
6451
6432
|
var PRELOAD_PLAYERS = [{
|
|
6452
6433
|
Player: YouTube_1.YouTube,
|
|
6453
6434
|
configKey: 'youtube',
|
|
@@ -6468,16 +6449,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6468
6449
|
|
|
6469
6450
|
function renderPreloadPlayers(url, controls, config) {
|
|
6470
6451
|
var players = [];
|
|
6471
|
-
|
|
6472
|
-
var
|
|
6473
|
-
|
|
6452
|
+
var _iteratorNormalCompletion = true;
|
|
6453
|
+
var _didIteratorError = false;
|
|
6454
|
+
var _iteratorError = undefined;
|
|
6474
6455
|
|
|
6475
6456
|
try {
|
|
6476
|
-
for (_iterator.
|
|
6457
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6477
6458
|
var player = _step.value;
|
|
6478
6459
|
|
|
6479
6460
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6480
|
-
players.push(
|
|
6461
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6481
6462
|
key: player.Player.displayName,
|
|
6482
6463
|
activePlayer: player.Player,
|
|
6483
6464
|
url: player.url,
|
|
@@ -6489,9 +6470,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6489
6470
|
}
|
|
6490
6471
|
}
|
|
6491
6472
|
} catch (err) {
|
|
6492
|
-
|
|
6473
|
+
_didIteratorError = true;
|
|
6474
|
+
_iteratorError = err;
|
|
6493
6475
|
} finally {
|
|
6494
|
-
|
|
6476
|
+
try {
|
|
6477
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6478
|
+
_iterator["return"]();
|
|
6479
|
+
}
|
|
6480
|
+
} finally {
|
|
6481
|
+
if (_didIteratorError) {
|
|
6482
|
+
throw _iteratorError;
|
|
6483
|
+
}
|
|
6484
|
+
}
|
|
6495
6485
|
}
|
|
6496
6486
|
|
|
6497
6487
|
return players;
|
|
@@ -6567,7 +6557,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6567
6557
|
});
|
|
6568
6558
|
exports["default"] = void 0;
|
|
6569
6559
|
|
|
6570
|
-
var _react = _interopRequireWildcard(
|
|
6560
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6571
6561
|
|
|
6572
6562
|
|
|
6573
6563
|
|
|
@@ -6615,17 +6605,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6615
6605
|
|
|
6616
6606
|
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); }
|
|
6617
6607
|
|
|
6618
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6619
|
-
|
|
6620
|
-
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."); }
|
|
6608
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6621
6609
|
|
|
6622
|
-
function
|
|
6610
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6623
6611
|
|
|
6624
|
-
function _iterableToArray(iter) { if (
|
|
6612
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6625
6613
|
|
|
6626
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr))
|
|
6627
|
-
|
|
6628
|
-
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; }
|
|
6614
|
+
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; } }
|
|
6629
6615
|
|
|
6630
6616
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6631
6617
|
|
|
@@ -6633,16 +6619,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6633
6619
|
|
|
6634
6620
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6635
6621
|
|
|
6636
|
-
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); }; }
|
|
6637
|
-
|
|
6638
6622
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6639
6623
|
|
|
6640
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6641
|
-
|
|
6642
|
-
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; } }
|
|
6643
|
-
|
|
6644
6624
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6645
6625
|
|
|
6626
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6627
|
+
|
|
6646
6628
|
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); }
|
|
6647
6629
|
|
|
6648
6630
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6652,12 +6634,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6652
6634
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6653
6635
|
var customPlayers = [];
|
|
6654
6636
|
|
|
6655
|
-
var ReactPlayer =
|
|
6637
|
+
var ReactPlayer =
|
|
6638
|
+
/*#__PURE__*/
|
|
6639
|
+
function (_Component) {
|
|
6656
6640
|
_inherits(ReactPlayer, _Component);
|
|
6657
6641
|
|
|
6658
|
-
var _super = _createSuper(ReactPlayer);
|
|
6659
|
-
|
|
6660
6642
|
function ReactPlayer() {
|
|
6643
|
+
var _getPrototypeOf2;
|
|
6644
|
+
|
|
6661
6645
|
var _this;
|
|
6662
6646
|
|
|
6663
6647
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6666,7 +6650,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6666
6650
|
args[_key] = arguments[_key];
|
|
6667
6651
|
}
|
|
6668
6652
|
|
|
6669
|
-
_this =
|
|
6653
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6670
6654
|
|
|
6671
6655
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6672
6656
|
|
|
@@ -6777,7 +6761,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6777
6761
|
key: "renderActivePlayer",
|
|
6778
6762
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6779
6763
|
if (!url) return null;
|
|
6780
|
-
return
|
|
6764
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6781
6765
|
key: activePlayer.displayName,
|
|
6782
6766
|
ref: this.activePlayerRef,
|
|
6783
6767
|
config: this.config,
|
|
@@ -6814,14 +6798,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6814
6798
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6815
6799
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6816
6800
|
|
|
6817
|
-
var preview =
|
|
6801
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6818
6802
|
url: url,
|
|
6819
6803
|
light: light,
|
|
6820
6804
|
playIcon: playIcon,
|
|
6821
6805
|
onClick: this.handleClickPreview
|
|
6822
6806
|
});
|
|
6823
6807
|
|
|
6824
|
-
return
|
|
6808
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6825
6809
|
ref: this.wrapperRef,
|
|
6826
6810
|
style: _objectSpread({}, style, {
|
|
6827
6811
|
width: width,
|
|
@@ -6881,20 +6865,20 @@ var Audio = function Audio(_ref) {
|
|
|
6881
6865
|
var node = _ref.node;
|
|
6882
6866
|
|
|
6883
6867
|
if (node.uploadAudio) {
|
|
6884
|
-
return
|
|
6868
|
+
return React__default.createElement(
|
|
6885
6869
|
'div',
|
|
6886
6870
|
{ className: 'audio d-block text-center mb-3' },
|
|
6887
|
-
|
|
6871
|
+
React__default.createElement(
|
|
6888
6872
|
'audio',
|
|
6889
6873
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
6890
|
-
|
|
6891
|
-
|
|
6874
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
6875
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
6892
6876
|
'Your browser does not support the audio element.'
|
|
6893
6877
|
),
|
|
6894
|
-
node.caption &&
|
|
6878
|
+
node.caption && React__default.createElement(
|
|
6895
6879
|
'p',
|
|
6896
6880
|
{ style: { fontSize: '.9rem' } },
|
|
6897
|
-
|
|
6881
|
+
React__default.createElement(
|
|
6898
6882
|
'em',
|
|
6899
6883
|
null,
|
|
6900
6884
|
node.caption
|
|
@@ -6904,15 +6888,15 @@ var Audio = function Audio(_ref) {
|
|
|
6904
6888
|
} else if (node.audioFilePth) {
|
|
6905
6889
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
6906
6890
|
if (hostname === 'embeds.audioboom.com') {
|
|
6907
|
-
return
|
|
6891
|
+
return React__default.createElement(
|
|
6908
6892
|
'div',
|
|
6909
6893
|
null,
|
|
6910
|
-
|
|
6894
|
+
React__default.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
6911
6895
|
' ',
|
|
6912
|
-
node.caption &&
|
|
6896
|
+
node.caption && React__default.createElement(
|
|
6913
6897
|
'p',
|
|
6914
6898
|
{ style: { fontSize: '.9rem' } },
|
|
6915
|
-
|
|
6899
|
+
React__default.createElement(
|
|
6916
6900
|
'em',
|
|
6917
6901
|
null,
|
|
6918
6902
|
node.caption
|
|
@@ -6920,14 +6904,14 @@ var Audio = function Audio(_ref) {
|
|
|
6920
6904
|
)
|
|
6921
6905
|
);
|
|
6922
6906
|
}
|
|
6923
|
-
return
|
|
6907
|
+
return React__default.createElement(
|
|
6924
6908
|
'div',
|
|
6925
6909
|
{ className: 'audio' },
|
|
6926
|
-
|
|
6927
|
-
node.caption &&
|
|
6910
|
+
React__default.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
6911
|
+
node.caption && React__default.createElement(
|
|
6928
6912
|
'p',
|
|
6929
6913
|
{ style: { fontSize: '.9rem' } },
|
|
6930
|
-
|
|
6914
|
+
React__default.createElement(
|
|
6931
6915
|
'em',
|
|
6932
6916
|
null,
|
|
6933
6917
|
node.caption
|
|
@@ -7028,10 +7012,10 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
7028
7012
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
|
|
7029
7013
|
};
|
|
7030
7014
|
|
|
7031
|
-
return
|
|
7015
|
+
return React__default.createElement(
|
|
7032
7016
|
'div',
|
|
7033
7017
|
null,
|
|
7034
|
-
vidLoaded &&
|
|
7018
|
+
vidLoaded && React__default.createElement(
|
|
7035
7019
|
'video',
|
|
7036
7020
|
{
|
|
7037
7021
|
poster: thumbnail || '',
|
|
@@ -7049,7 +7033,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
7049
7033
|
onPlay: function onPlay(e) {
|
|
7050
7034
|
return handleOnPlay(e);
|
|
7051
7035
|
} },
|
|
7052
|
-
|
|
7036
|
+
React__default.createElement('source', { src: url, type: 'video/mp4' }),
|
|
7053
7037
|
'Your browser does not support the video tag.'
|
|
7054
7038
|
)
|
|
7055
7039
|
);
|
|
@@ -7319,13 +7303,13 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7319
7303
|
}
|
|
7320
7304
|
};
|
|
7321
7305
|
|
|
7322
|
-
return
|
|
7306
|
+
return React__default.createElement(
|
|
7323
7307
|
'div',
|
|
7324
7308
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7325
|
-
|
|
7309
|
+
React__default.createElement(
|
|
7326
7310
|
'div',
|
|
7327
7311
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7328
|
-
vidUrl && vidType == 'youtube' &&
|
|
7312
|
+
vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, {
|
|
7329
7313
|
className: 'fluid-iframe',
|
|
7330
7314
|
videoId: getYoutubeId(vidUrl),
|
|
7331
7315
|
opts: opts,
|
|
@@ -7336,10 +7320,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7336
7320
|
return handleOnEnd(e);
|
|
7337
7321
|
}
|
|
7338
7322
|
}),
|
|
7339
|
-
vidUrl && vidType == 'mp4' &&
|
|
7340
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7341
|
-
|
|
7342
|
-
series &&
|
|
7323
|
+
vidUrl && vidType == 'mp4' && React__default.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
7324
|
+
vidUrl && vidType == 'brightcove' && React__default.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
7325
|
+
React__default.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
7326
|
+
series && React__default.createElement(
|
|
7343
7327
|
'div',
|
|
7344
7328
|
{
|
|
7345
7329
|
className: 'vid-series',
|
|
@@ -7349,10 +7333,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7349
7333
|
maxHeight: '100%',
|
|
7350
7334
|
paddingBottom: '0'
|
|
7351
7335
|
} },
|
|
7352
|
-
|
|
7336
|
+
React__default.createElement(
|
|
7353
7337
|
'p',
|
|
7354
7338
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7355
|
-
|
|
7339
|
+
React__default.createElement(
|
|
7356
7340
|
'b',
|
|
7357
7341
|
{ style: { fontSize: '1.25em' } },
|
|
7358
7342
|
'Now Playing:'
|
|
@@ -7360,36 +7344,36 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7360
7344
|
' ',
|
|
7361
7345
|
seriesData[series ? series - 1 : 0].title
|
|
7362
7346
|
),
|
|
7363
|
-
vidUrl &&
|
|
7347
|
+
vidUrl && React__default.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7364
7348
|
)
|
|
7365
7349
|
),
|
|
7366
|
-
|
|
7367
|
-
|
|
7350
|
+
React__default.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
7351
|
+
React__default.createElement(
|
|
7368
7352
|
'div',
|
|
7369
7353
|
{ className: 'mt-2 mb-5' },
|
|
7370
|
-
series &&
|
|
7354
|
+
series && React__default.createElement(
|
|
7371
7355
|
'h3',
|
|
7372
7356
|
null,
|
|
7373
7357
|
'Episode ',
|
|
7374
7358
|
series
|
|
7375
7359
|
),
|
|
7376
|
-
Videos[series - 1] &&
|
|
7360
|
+
Videos[series - 1] && React__default.createElement(
|
|
7377
7361
|
'h2',
|
|
7378
7362
|
{ className: 'mb-3' },
|
|
7379
7363
|
Videos[series - 1].title
|
|
7380
7364
|
),
|
|
7381
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
7365
|
+
Videos[series - 1] && Videos[series - 1].intro && React__default.createElement(
|
|
7382
7366
|
'p',
|
|
7383
7367
|
{ className: 'mb-3' },
|
|
7384
|
-
|
|
7368
|
+
React__default.createElement(
|
|
7385
7369
|
'em',
|
|
7386
7370
|
null,
|
|
7387
7371
|
Videos[series - 1].intro
|
|
7388
7372
|
)
|
|
7389
7373
|
),
|
|
7390
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
7374
|
+
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()))
|
|
7391
7375
|
),
|
|
7392
|
-
|
|
7376
|
+
React__default.createElement(
|
|
7393
7377
|
'style',
|
|
7394
7378
|
{ jsx: 'true' },
|
|
7395
7379
|
'\n #fluid-video-container > div {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n }\n #fluid-video-container .fluid-iframe {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100% !important;\n }\n\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7398,13 +7382,13 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7398
7382
|
};
|
|
7399
7383
|
|
|
7400
7384
|
var Poll = function Poll(_ref) {
|
|
7401
|
-
var node = _ref.node
|
|
7402
|
-
_ref.client
|
|
7403
|
-
_ref.pageview
|
|
7404
|
-
_ref.videoAccountIDs
|
|
7405
|
-
|
|
7406
|
-
_ref.showVotes
|
|
7407
|
-
|
|
7385
|
+
var node = _ref.node,
|
|
7386
|
+
client = _ref.client,
|
|
7387
|
+
pageview = _ref.pageview,
|
|
7388
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7389
|
+
onVote = _ref.onVote,
|
|
7390
|
+
_ref$showVotes = _ref.showVotes,
|
|
7391
|
+
getSerializers = _ref.getSerializers;
|
|
7408
7392
|
|
|
7409
7393
|
var _useState = useState(null),
|
|
7410
7394
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7442,67 +7426,67 @@ var Poll = function Poll(_ref) {
|
|
|
7442
7426
|
return acc;
|
|
7443
7427
|
}
|
|
7444
7428
|
}, 0);
|
|
7445
|
-
return
|
|
7446
|
-
|
|
7429
|
+
return React__default.createElement(
|
|
7430
|
+
React__default.Fragment,
|
|
7447
7431
|
null,
|
|
7448
|
-
question &&
|
|
7432
|
+
question && React__default.createElement(
|
|
7449
7433
|
'p',
|
|
7450
7434
|
{ className: 'font-weight-bold' },
|
|
7451
7435
|
question
|
|
7452
7436
|
),
|
|
7453
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7437
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7454
7438
|
'form',
|
|
7455
7439
|
{ onSubmit: function onSubmit(e) {
|
|
7456
7440
|
return onSubmitPoll(e);
|
|
7457
7441
|
} },
|
|
7458
7442
|
choices && choices.map(function (choice) {
|
|
7459
|
-
return
|
|
7443
|
+
return React__default.createElement(
|
|
7460
7444
|
'div',
|
|
7461
7445
|
{ key: choice._key },
|
|
7462
|
-
|
|
7446
|
+
React__default.createElement(
|
|
7463
7447
|
'label',
|
|
7464
7448
|
{ className: 'pl-2' },
|
|
7465
|
-
|
|
7449
|
+
React__default.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7466
7450
|
return setSelectedChoice(e.target.value);
|
|
7467
7451
|
} }),
|
|
7468
7452
|
' ' + choice.choiceText
|
|
7469
7453
|
)
|
|
7470
7454
|
);
|
|
7471
7455
|
}),
|
|
7472
|
-
|
|
7456
|
+
React__default.createElement(
|
|
7473
7457
|
Button,
|
|
7474
7458
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7475
7459
|
'Vote'
|
|
7476
7460
|
)
|
|
7477
7461
|
),
|
|
7478
|
-
|
|
7462
|
+
React__default.createElement(
|
|
7479
7463
|
'div',
|
|
7480
7464
|
{ className: 'progress-container' },
|
|
7481
7465
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7482
7466
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7483
|
-
return
|
|
7467
|
+
return React__default.createElement(
|
|
7484
7468
|
'div',
|
|
7485
7469
|
{ key: choice._key, className: 'mb-3' },
|
|
7486
|
-
|
|
7470
|
+
React__default.createElement(
|
|
7487
7471
|
'div',
|
|
7488
7472
|
{ className: 'correct-answer' },
|
|
7489
|
-
|
|
7473
|
+
React__default.createElement(
|
|
7490
7474
|
'div',
|
|
7491
7475
|
null,
|
|
7492
7476
|
choice.choiceText
|
|
7493
7477
|
),
|
|
7494
|
-
choice.choiceAnswer === true &&
|
|
7478
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7495
7479
|
'div',
|
|
7496
7480
|
null,
|
|
7497
|
-
|
|
7481
|
+
React__default.createElement(
|
|
7498
7482
|
'span',
|
|
7499
7483
|
{ style: { color: 'limegreen' } },
|
|
7500
7484
|
'Correct!'
|
|
7501
7485
|
)
|
|
7502
7486
|
)
|
|
7503
7487
|
),
|
|
7504
|
-
|
|
7505
|
-
|
|
7488
|
+
React__default.createElement(ProgressBar, { now: percentage }),
|
|
7489
|
+
React__default.createElement(
|
|
7506
7490
|
'span',
|
|
7507
7491
|
{ className: 'float-right' },
|
|
7508
7492
|
percentage,
|
|
@@ -7513,14 +7497,14 @@ var Poll = function Poll(_ref) {
|
|
|
7513
7497
|
);
|
|
7514
7498
|
})
|
|
7515
7499
|
),
|
|
7516
|
-
showAnswer &&
|
|
7500
|
+
showAnswer && React__default.createElement(
|
|
7517
7501
|
'h4',
|
|
7518
7502
|
{ className: 'text-center small p-3' },
|
|
7519
7503
|
'Total Votes: ',
|
|
7520
7504
|
choicesTotalCount
|
|
7521
7505
|
),
|
|
7522
|
-
showAnswer && response &&
|
|
7523
|
-
|
|
7506
|
+
showAnswer && response && React__default.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7507
|
+
React__default.createElement(
|
|
7524
7508
|
'style',
|
|
7525
7509
|
{ jsx: 'true' },
|
|
7526
7510
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7547,13 +7531,13 @@ module.exports = { "default": values, __esModule: true };
|
|
|
7547
7531
|
var _Object$values = unwrapExports(values$1);
|
|
7548
7532
|
|
|
7549
7533
|
var Poll$1 = function Poll(_ref) {
|
|
7550
|
-
var node = _ref.node
|
|
7551
|
-
_ref.client
|
|
7552
|
-
_ref.pageview
|
|
7553
|
-
_ref.videoAccountIDs
|
|
7554
|
-
|
|
7555
|
-
_ref.showVotes
|
|
7556
|
-
|
|
7534
|
+
var node = _ref.node,
|
|
7535
|
+
client = _ref.client,
|
|
7536
|
+
pageview = _ref.pageview,
|
|
7537
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
7538
|
+
onVote = _ref.onVote,
|
|
7539
|
+
_ref$showVotes = _ref.showVotes,
|
|
7540
|
+
getSerializers = _ref.getSerializers;
|
|
7557
7541
|
|
|
7558
7542
|
var _useState = useState(null),
|
|
7559
7543
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7619,67 +7603,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7619
7603
|
return acc;
|
|
7620
7604
|
}
|
|
7621
7605
|
}, 0);
|
|
7622
|
-
return
|
|
7623
|
-
|
|
7606
|
+
return React__default.createElement(
|
|
7607
|
+
React__default.Fragment,
|
|
7624
7608
|
null,
|
|
7625
|
-
question &&
|
|
7609
|
+
question && React__default.createElement(
|
|
7626
7610
|
'p',
|
|
7627
7611
|
{ className: 'font-weight-bold' },
|
|
7628
7612
|
question
|
|
7629
7613
|
),
|
|
7630
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
7614
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7631
7615
|
'form',
|
|
7632
7616
|
{ onSubmit: function onSubmit(e) {
|
|
7633
7617
|
return onSubmitPoll(e);
|
|
7634
7618
|
} },
|
|
7635
7619
|
choices && choices.map(function (choice) {
|
|
7636
|
-
return
|
|
7620
|
+
return React__default.createElement(
|
|
7637
7621
|
'div',
|
|
7638
7622
|
{ key: choice._key },
|
|
7639
|
-
|
|
7623
|
+
React__default.createElement(
|
|
7640
7624
|
'label',
|
|
7641
7625
|
{ className: 'pl-2' },
|
|
7642
|
-
|
|
7626
|
+
React__default.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7643
7627
|
return setSelectedChoice(e.target.value);
|
|
7644
7628
|
} }),
|
|
7645
7629
|
' ' + choice.choiceText
|
|
7646
7630
|
)
|
|
7647
7631
|
);
|
|
7648
7632
|
}),
|
|
7649
|
-
|
|
7633
|
+
React__default.createElement(
|
|
7650
7634
|
Button,
|
|
7651
7635
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7652
7636
|
'Vote'
|
|
7653
7637
|
)
|
|
7654
7638
|
),
|
|
7655
|
-
|
|
7639
|
+
React__default.createElement(
|
|
7656
7640
|
'div',
|
|
7657
7641
|
{ className: 'progress-container' },
|
|
7658
7642
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7659
7643
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7660
|
-
return
|
|
7644
|
+
return React__default.createElement(
|
|
7661
7645
|
'div',
|
|
7662
7646
|
{ key: choice._key, className: 'mb-3' },
|
|
7663
|
-
|
|
7647
|
+
React__default.createElement(
|
|
7664
7648
|
'div',
|
|
7665
7649
|
{ className: 'correct-answer' },
|
|
7666
|
-
|
|
7650
|
+
React__default.createElement(
|
|
7667
7651
|
'div',
|
|
7668
7652
|
null,
|
|
7669
7653
|
choice.choiceText
|
|
7670
7654
|
),
|
|
7671
|
-
choice.choiceAnswer === true &&
|
|
7655
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7672
7656
|
'div',
|
|
7673
7657
|
null,
|
|
7674
|
-
|
|
7658
|
+
React__default.createElement(
|
|
7675
7659
|
'span',
|
|
7676
7660
|
{ style: { color: 'limegreen' } },
|
|
7677
7661
|
'Correct!'
|
|
7678
7662
|
)
|
|
7679
7663
|
)
|
|
7680
7664
|
),
|
|
7681
|
-
|
|
7682
|
-
|
|
7665
|
+
React__default.createElement(ProgressBar, { now: percentage }),
|
|
7666
|
+
React__default.createElement(
|
|
7683
7667
|
'span',
|
|
7684
7668
|
{ className: 'float-right' },
|
|
7685
7669
|
percentage,
|
|
@@ -7690,14 +7674,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7690
7674
|
);
|
|
7691
7675
|
})
|
|
7692
7676
|
),
|
|
7693
|
-
showAnswer &&
|
|
7677
|
+
showAnswer && React__default.createElement(
|
|
7694
7678
|
'h4',
|
|
7695
7679
|
{ className: 'text-center small p-3' },
|
|
7696
7680
|
'Total Votes: ',
|
|
7697
7681
|
choicesTotalCount
|
|
7698
7682
|
),
|
|
7699
|
-
showAnswer && response &&
|
|
7700
|
-
|
|
7683
|
+
showAnswer && response && React__default.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
7684
|
+
React__default.createElement(
|
|
7701
7685
|
'style',
|
|
7702
7686
|
{ jsx: 'true' },
|
|
7703
7687
|
'\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 '
|
|
@@ -7705,7 +7689,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7705
7689
|
);
|
|
7706
7690
|
};
|
|
7707
7691
|
|
|
7708
|
-
var numberOfPaginations =
|
|
7692
|
+
var numberOfPaginations = main_35 ? 4 : 10;
|
|
7709
7693
|
|
|
7710
7694
|
var Quiz = function Quiz(_ref) {
|
|
7711
7695
|
var quizzes = _ref.quizzes,
|
|
@@ -7823,20 +7807,20 @@ var Quiz = function Quiz(_ref) {
|
|
|
7823
7807
|
};
|
|
7824
7808
|
|
|
7825
7809
|
var renderPagination = function renderPagination() {
|
|
7826
|
-
return
|
|
7810
|
+
return React__default.createElement(
|
|
7827
7811
|
Pagination,
|
|
7828
|
-
{ className: 'p-0 m-0', size:
|
|
7829
|
-
|
|
7812
|
+
{ className: 'p-0 m-0', size: main_35 && 'sm' },
|
|
7813
|
+
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7830
7814
|
return changePage('first');
|
|
7831
7815
|
}, disabled: currentPage === 1 }),
|
|
7832
|
-
|
|
7816
|
+
React__default.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7833
7817
|
return changePage('prev');
|
|
7834
7818
|
}, disabled: currentPage === 1 }),
|
|
7835
|
-
|
|
7819
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7836
7820
|
return renderNewPages('prev');
|
|
7837
7821
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7838
7822
|
pages.map(function (page) {
|
|
7839
|
-
return
|
|
7823
|
+
return React__default.createElement(
|
|
7840
7824
|
Pagination.Item,
|
|
7841
7825
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7842
7826
|
return changePage(page);
|
|
@@ -7844,13 +7828,13 @@ var Quiz = function Quiz(_ref) {
|
|
|
7844
7828
|
page
|
|
7845
7829
|
);
|
|
7846
7830
|
}),
|
|
7847
|
-
|
|
7831
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7848
7832
|
return renderNewPages('next');
|
|
7849
7833
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7850
|
-
|
|
7834
|
+
React__default.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7851
7835
|
return changePage('next');
|
|
7852
7836
|
}, disabled: currentPage === pageCount }),
|
|
7853
|
-
|
|
7837
|
+
React__default.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7854
7838
|
return changePage('last');
|
|
7855
7839
|
}, disabled: currentPage === pageCount })
|
|
7856
7840
|
);
|
|
@@ -7933,51 +7917,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
7933
7917
|
}
|
|
7934
7918
|
};
|
|
7935
7919
|
|
|
7936
|
-
return
|
|
7937
|
-
|
|
7920
|
+
return React__default.createElement(
|
|
7921
|
+
React__default.Fragment,
|
|
7938
7922
|
null,
|
|
7939
|
-
quizzes[currentPage - 1] &&
|
|
7940
|
-
|
|
7923
|
+
quizzes[currentPage - 1] && React__default.createElement(
|
|
7924
|
+
React__default.Fragment,
|
|
7941
7925
|
null,
|
|
7942
|
-
|
|
7943
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 &&
|
|
7926
|
+
React__default.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
7927
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default.createElement(
|
|
7944
7928
|
'form',
|
|
7945
7929
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
7946
7930
|
return e.preventDefault();
|
|
7947
7931
|
} },
|
|
7948
7932
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
7949
|
-
return
|
|
7933
|
+
return React__default.createElement(
|
|
7950
7934
|
'div',
|
|
7951
7935
|
{ key: answer._key },
|
|
7952
|
-
|
|
7936
|
+
React__default.createElement(
|
|
7953
7937
|
'label',
|
|
7954
7938
|
{ className: 'pl-2' },
|
|
7955
|
-
quizzes[currentPage - 1].multiAnswer ?
|
|
7939
|
+
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 }),
|
|
7956
7940
|
' ' + answer.answerText
|
|
7957
7941
|
)
|
|
7958
7942
|
);
|
|
7959
7943
|
})
|
|
7960
7944
|
)
|
|
7961
7945
|
),
|
|
7962
|
-
!showAnswer &&
|
|
7946
|
+
!showAnswer && React__default.createElement(
|
|
7963
7947
|
Button$1,
|
|
7964
7948
|
{ onClick: function onClick() {
|
|
7965
7949
|
return checkAnswers();
|
|
7966
7950
|
}, variant: 'info', block: true },
|
|
7967
7951
|
'Please click here for answer'
|
|
7968
7952
|
),
|
|
7969
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
7970
|
-
|
|
7953
|
+
quizzes[currentPage - 1] && showAnswer && React__default.createElement(
|
|
7954
|
+
React__default.Fragment,
|
|
7971
7955
|
null,
|
|
7972
|
-
|
|
7956
|
+
React__default.createElement(
|
|
7973
7957
|
'h4',
|
|
7974
7958
|
null,
|
|
7975
7959
|
'Answer:'
|
|
7976
7960
|
),
|
|
7977
|
-
quizzes[currentPage - 1].answer &&
|
|
7961
|
+
quizzes[currentPage - 1].answer && React__default.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
7978
7962
|
),
|
|
7979
|
-
|
|
7980
|
-
pageCount > 1 &&
|
|
7963
|
+
React__default.createElement('br', null),
|
|
7964
|
+
pageCount > 1 && React__default.createElement(
|
|
7981
7965
|
'div',
|
|
7982
7966
|
{ className: 'd-flex justify-content-center' },
|
|
7983
7967
|
renderPagination()
|
|
@@ -7988,10 +7972,10 @@ var Quiz = function Quiz(_ref) {
|
|
|
7988
7972
|
var Leads = function Leads(_ref) {
|
|
7989
7973
|
var url = _ref.url;
|
|
7990
7974
|
|
|
7991
|
-
return
|
|
7975
|
+
return React__default.createElement(
|
|
7992
7976
|
'div',
|
|
7993
7977
|
{ className: 'd-block text-center mb-3' },
|
|
7994
|
-
url &&
|
|
7978
|
+
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
7995
7979
|
);
|
|
7996
7980
|
};
|
|
7997
7981
|
|
|
@@ -8012,8 +7996,8 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8012
7996
|
|
|
8013
7997
|
var _useState = useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
|
|
8014
7998
|
_useState2 = _slicedToArray(_useState, 2),
|
|
8015
|
-
carouselIndex = _useState2[0]
|
|
8016
|
-
_useState2[1];
|
|
7999
|
+
carouselIndex = _useState2[0],
|
|
8000
|
+
setCarouselIndex = _useState2[1];
|
|
8017
8001
|
|
|
8018
8002
|
// useEffect(() => {
|
|
8019
8003
|
// let itemArr = router.asPath.split('?page=')
|
|
@@ -8039,42 +8023,42 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8039
8023
|
}
|
|
8040
8024
|
};
|
|
8041
8025
|
|
|
8042
|
-
return
|
|
8026
|
+
return React__default.createElement(
|
|
8043
8027
|
'div',
|
|
8044
8028
|
{ ref: carouselRef, className: 'mt-3 mb-4' },
|
|
8045
|
-
|
|
8029
|
+
React__default.createElement(
|
|
8046
8030
|
Carousel,
|
|
8047
8031
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8048
8032
|
slides && slides.map(function (slide) {
|
|
8049
8033
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8050
|
-
return
|
|
8034
|
+
return React__default.createElement(
|
|
8051
8035
|
Carousel.Item,
|
|
8052
8036
|
{ key: slide._key },
|
|
8053
|
-
|
|
8037
|
+
React__default.createElement(
|
|
8054
8038
|
'a',
|
|
8055
8039
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8056
|
-
|
|
8040
|
+
React__default.createElement(
|
|
8057
8041
|
LazyLoad,
|
|
8058
8042
|
null,
|
|
8059
|
-
|
|
8043
|
+
React__default.createElement('img', { src: urlFor$1(slide.slideshowImage, client).url(), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
8060
8044
|
)
|
|
8061
8045
|
),
|
|
8062
|
-
|
|
8046
|
+
React__default.createElement(
|
|
8063
8047
|
'div',
|
|
8064
8048
|
{ className: 'p-2' },
|
|
8065
|
-
slide.slideshowImage.caption &&
|
|
8049
|
+
slide.slideshowImage.caption && React__default.createElement(
|
|
8066
8050
|
'h3',
|
|
8067
8051
|
{ style: { padding: '0px' } },
|
|
8068
8052
|
slide.slideshowImage.caption
|
|
8069
8053
|
),
|
|
8070
|
-
slide.description &&
|
|
8054
|
+
slide.description && React__default.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8071
8055
|
)
|
|
8072
8056
|
);
|
|
8073
8057
|
}
|
|
8074
8058
|
return null;
|
|
8075
8059
|
})
|
|
8076
8060
|
),
|
|
8077
|
-
|
|
8061
|
+
React__default.createElement(
|
|
8078
8062
|
'style',
|
|
8079
8063
|
{ jsx: 'true' },
|
|
8080
8064
|
'\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 '
|
|
@@ -8093,10 +8077,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8093
8077
|
sizes = _props$node.sizes,
|
|
8094
8078
|
sizeMapping = _props$node.sizeMapping;
|
|
8095
8079
|
|
|
8096
|
-
return
|
|
8080
|
+
return React__default.createElement(
|
|
8097
8081
|
'div',
|
|
8098
8082
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8099
|
-
|
|
8083
|
+
React__default.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8100
8084
|
);
|
|
8101
8085
|
};
|
|
8102
8086
|
|
|
@@ -8117,15 +8101,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8117
8101
|
|
|
8118
8102
|
var htmlContent = '\n <script needsegmentsupport="true" type="text/javascript" src="https://mjhlifesciences.formstack.com/forms/js.php/' + FormID + '"></script>\n <noscript><a href="https://mjhlifesciences.formstack.com/forms/' + FormID + '" title="Online Form">' + Caption + '</a></noscript>\n ';
|
|
8119
8103
|
|
|
8120
|
-
return
|
|
8104
|
+
return React__default.createElement(
|
|
8121
8105
|
'div',
|
|
8122
8106
|
{ ref: formstackRef },
|
|
8123
|
-
|
|
8107
|
+
React__default.createElement(
|
|
8124
8108
|
'h4',
|
|
8125
8109
|
{ className: 'formstack-caption' },
|
|
8126
8110
|
Caption
|
|
8127
8111
|
),
|
|
8128
|
-
|
|
8112
|
+
React__default.createElement('div', { dangerouslySetInnerHTML: createMarkup(htmlContent) })
|
|
8129
8113
|
);
|
|
8130
8114
|
};
|
|
8131
8115
|
|
|
@@ -8145,29 +8129,29 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8145
8129
|
}
|
|
8146
8130
|
});
|
|
8147
8131
|
if (medias && medias.length > 0) {
|
|
8148
|
-
return
|
|
8132
|
+
return React__default.createElement(
|
|
8149
8133
|
'div',
|
|
8150
8134
|
{ className: 'multi-media-container' },
|
|
8151
|
-
|
|
8135
|
+
React__default.createElement(
|
|
8152
8136
|
Row,
|
|
8153
8137
|
{ noGutters: true },
|
|
8154
8138
|
medias.map(function (media) {
|
|
8155
|
-
return
|
|
8139
|
+
return React__default.createElement(
|
|
8156
8140
|
Col,
|
|
8157
8141
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8158
|
-
|
|
8142
|
+
React__default.createElement(
|
|
8159
8143
|
'a',
|
|
8160
|
-
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8144
|
+
_extends$1({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8161
8145
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8162
|
-
|
|
8146
|
+
React__default.createElement(
|
|
8163
8147
|
'div',
|
|
8164
8148
|
{ className: 'multi-media-image-container' },
|
|
8165
|
-
imageBox &&
|
|
8149
|
+
imageBox && React__default.createElement(
|
|
8166
8150
|
LazyLoad,
|
|
8167
8151
|
{ once: true },
|
|
8168
|
-
|
|
8152
|
+
React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor$2(media.poster, client).url(), alt: media.alt })
|
|
8169
8153
|
),
|
|
8170
|
-
media.caption &&
|
|
8154
|
+
media.caption && React__default.createElement(
|
|
8171
8155
|
'span',
|
|
8172
8156
|
{ className: 'multi-media-caption' },
|
|
8173
8157
|
media.caption
|
|
@@ -8177,7 +8161,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8177
8161
|
);
|
|
8178
8162
|
})
|
|
8179
8163
|
),
|
|
8180
|
-
|
|
8164
|
+
React__default.createElement(
|
|
8181
8165
|
'style',
|
|
8182
8166
|
{ jsx: 'true' },
|
|
8183
8167
|
'\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 '
|
|
@@ -8193,34 +8177,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
8193
8177
|
var profileImage = arguments[6];
|
|
8194
8178
|
|
|
8195
8179
|
if (authorName && authorURL) {
|
|
8196
|
-
return
|
|
8180
|
+
return React__default.createElement(
|
|
8197
8181
|
'span',
|
|
8198
8182
|
null,
|
|
8199
|
-
|
|
8183
|
+
React__default.createElement(
|
|
8200
8184
|
'a',
|
|
8201
8185
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
8202
8186
|
authorName
|
|
8203
8187
|
),
|
|
8204
|
-
|
|
8188
|
+
React__default.createElement(
|
|
8205
8189
|
Card,
|
|
8206
8190
|
{ className: 'author-details-card-' + index },
|
|
8207
|
-
|
|
8191
|
+
React__default.createElement(
|
|
8208
8192
|
Row$1,
|
|
8209
8193
|
null,
|
|
8210
|
-
profileImage &&
|
|
8194
|
+
profileImage && React__default.createElement(
|
|
8211
8195
|
Col$1,
|
|
8212
8196
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
8213
|
-
|
|
8197
|
+
React__default.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
8214
8198
|
),
|
|
8215
|
-
|
|
8199
|
+
React__default.createElement(
|
|
8216
8200
|
Col$1,
|
|
8217
8201
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
8218
|
-
|
|
8202
|
+
React__default.createElement(
|
|
8219
8203
|
'h5',
|
|
8220
8204
|
null,
|
|
8221
8205
|
authorName
|
|
8222
8206
|
),
|
|
8223
|
-
|
|
8207
|
+
React__default.createElement(
|
|
8224
8208
|
'p',
|
|
8225
8209
|
null,
|
|
8226
8210
|
biography
|
|
@@ -8228,7 +8212,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
8228
8212
|
)
|
|
8229
8213
|
)
|
|
8230
8214
|
),
|
|
8231
|
-
|
|
8215
|
+
React__default.createElement(
|
|
8232
8216
|
'style',
|
|
8233
8217
|
{ jsx: 'true' },
|
|
8234
8218
|
'\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 '
|
|
@@ -8236,7 +8220,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
8236
8220
|
length !== index + 1 && ' , '
|
|
8237
8221
|
);
|
|
8238
8222
|
} else if (authorName) {
|
|
8239
|
-
return
|
|
8223
|
+
return React__default.createElement(
|
|
8240
8224
|
'span',
|
|
8241
8225
|
{ key: index },
|
|
8242
8226
|
authorName,
|
|
@@ -8282,7 +8266,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8282
8266
|
}
|
|
8283
8267
|
};
|
|
8284
8268
|
|
|
8285
|
-
_this.wraperRef =
|
|
8269
|
+
_this.wraperRef = React__default.createRef();
|
|
8286
8270
|
_this.visible = false;
|
|
8287
8271
|
return _this;
|
|
8288
8272
|
}
|
|
@@ -8310,7 +8294,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8310
8294
|
_props$id = _props.id,
|
|
8311
8295
|
id = _props$id === undefined ? '' : _props$id;
|
|
8312
8296
|
|
|
8313
|
-
return
|
|
8297
|
+
return React__default.createElement(
|
|
8314
8298
|
'div',
|
|
8315
8299
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8316
8300
|
this.props.children
|
|
@@ -8319,7 +8303,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8319
8303
|
}]);
|
|
8320
8304
|
|
|
8321
8305
|
return InscreenSensor;
|
|
8322
|
-
}(
|
|
8306
|
+
}(React__default.Component);
|
|
8323
8307
|
|
|
8324
8308
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8325
8309
|
var nodes = _ref.nodes,
|
|
@@ -8432,33 +8416,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8432
8416
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8433
8417
|
var showReading = show ? 'showReading' : '';
|
|
8434
8418
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8435
|
-
return
|
|
8419
|
+
return React__default.createElement(
|
|
8436
8420
|
'div',
|
|
8437
8421
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8438
|
-
|
|
8422
|
+
React__default.createElement(
|
|
8439
8423
|
'a',
|
|
8440
8424
|
{ onClick: function onClick(e) {
|
|
8441
8425
|
return articleCardClickHandler(e);
|
|
8442
8426
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8443
|
-
|
|
8427
|
+
React__default.createElement(
|
|
8444
8428
|
'div',
|
|
8445
8429
|
{ className: 'prevNext-thumbnail' },
|
|
8446
|
-
|
|
8447
|
-
|
|
8430
|
+
React__default.createElement('img', { src: urlFor(article.thumbnail.asset).url() }),
|
|
8431
|
+
React__default.createElement(
|
|
8448
8432
|
'div',
|
|
8449
8433
|
{ className: 'prevNext-reading ' + showReading },
|
|
8450
8434
|
articleLabel
|
|
8451
8435
|
)
|
|
8452
8436
|
),
|
|
8453
|
-
|
|
8437
|
+
React__default.createElement(
|
|
8454
8438
|
'div',
|
|
8455
8439
|
{ className: 'prevNext-summary' },
|
|
8456
|
-
|
|
8440
|
+
React__default.createElement(
|
|
8457
8441
|
'div',
|
|
8458
8442
|
{ className: 'prevNext-publishDate' },
|
|
8459
8443
|
moment(article.published).format('LL')
|
|
8460
8444
|
),
|
|
8461
|
-
|
|
8445
|
+
React__default.createElement(
|
|
8462
8446
|
'h2',
|
|
8463
8447
|
{ className: 'prevNext-title' },
|
|
8464
8448
|
article.title
|
|
@@ -8507,7 +8491,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8507
8491
|
|
|
8508
8492
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8509
8493
|
if (biography) {
|
|
8510
|
-
return
|
|
8494
|
+
return React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8511
8495
|
}
|
|
8512
8496
|
};
|
|
8513
8497
|
|
|
@@ -8593,7 +8577,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8593
8577
|
//console.log('useLayoutEffect')
|
|
8594
8578
|
if (!firstLoad) {
|
|
8595
8579
|
setUpArrowClicked(false);
|
|
8596
|
-
if (
|
|
8580
|
+
if (main_36) {
|
|
8597
8581
|
grabLoadedAds();
|
|
8598
8582
|
} else {
|
|
8599
8583
|
scrollToArticle();
|
|
@@ -8617,7 +8601,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8617
8601
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8618
8602
|
if (pageview) pageview(path);
|
|
8619
8603
|
|
|
8620
|
-
if (!
|
|
8604
|
+
if (!main_36) {
|
|
8621
8605
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8622
8606
|
if (window.googletag && googletag.pubadsReady) {
|
|
8623
8607
|
lib_3.refresh();
|
|
@@ -8625,7 +8609,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8625
8609
|
});
|
|
8626
8610
|
}
|
|
8627
8611
|
//Refresh leaderboard ad on mobile
|
|
8628
|
-
if (
|
|
8612
|
+
if (main_36) {
|
|
8629
8613
|
var leaderboardSlotId = '';
|
|
8630
8614
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8631
8615
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8665,38 +8649,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8665
8649
|
setSensorVisible(false);
|
|
8666
8650
|
};
|
|
8667
8651
|
|
|
8668
|
-
return
|
|
8669
|
-
|
|
8652
|
+
return React__default.createElement(
|
|
8653
|
+
React__default.Fragment,
|
|
8670
8654
|
null,
|
|
8671
|
-
|
|
8655
|
+
React__default.createElement(
|
|
8672
8656
|
'div',
|
|
8673
8657
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8674
|
-
|
|
8658
|
+
React__default.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8675
8659
|
return handleArrowClick();
|
|
8676
8660
|
} })
|
|
8677
8661
|
),
|
|
8678
|
-
|
|
8679
|
-
|
|
8662
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' }),
|
|
8663
|
+
React__default.createElement(
|
|
8680
8664
|
'div',
|
|
8681
8665
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8682
|
-
|
|
8666
|
+
React__default.createElement(
|
|
8683
8667
|
'h5',
|
|
8684
8668
|
{ className: 'objective-title' },
|
|
8685
8669
|
nodes.seriesTitle
|
|
8686
8670
|
),
|
|
8687
|
-
|
|
8671
|
+
React__default.createElement(
|
|
8688
8672
|
'div',
|
|
8689
8673
|
{ className: 'prevNextWrapper' },
|
|
8690
8674
|
PrevNextCards(false, -1)
|
|
8691
8675
|
)
|
|
8692
8676
|
),
|
|
8693
|
-
|
|
8694
|
-
|
|
8677
|
+
React__default.createElement('hr', { className: 'article-seperater' }),
|
|
8678
|
+
React__default.createElement(
|
|
8695
8679
|
'div',
|
|
8696
8680
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8697
|
-
|
|
8681
|
+
main_36 && Ads.map(function (ad, index) {
|
|
8698
8682
|
if (index === 0) {
|
|
8699
|
-
return
|
|
8683
|
+
return React__default.createElement(
|
|
8700
8684
|
'div',
|
|
8701
8685
|
{
|
|
8702
8686
|
key: 'addid-1',
|
|
@@ -8716,14 +8700,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8716
8700
|
}
|
|
8717
8701
|
})
|
|
8718
8702
|
),
|
|
8719
|
-
|
|
8703
|
+
React__default.createElement(
|
|
8720
8704
|
'div',
|
|
8721
8705
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8722
8706
|
Articles.map(function (article, index) {
|
|
8723
|
-
return
|
|
8707
|
+
return React__default.createElement(
|
|
8724
8708
|
'div',
|
|
8725
8709
|
{ key: article.title },
|
|
8726
|
-
|
|
8710
|
+
React__default.createElement(
|
|
8727
8711
|
InscreenSensor,
|
|
8728
8712
|
{
|
|
8729
8713
|
visible: sensorVisible,
|
|
@@ -8741,84 +8725,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8741
8725
|
}
|
|
8742
8726
|
}
|
|
8743
8727
|
} },
|
|
8744
|
-
|
|
8728
|
+
React__default.createElement(
|
|
8745
8729
|
Head,
|
|
8746
8730
|
null,
|
|
8747
|
-
currentTitle !== null &&
|
|
8731
|
+
currentTitle !== null && React__default.createElement(
|
|
8748
8732
|
'title',
|
|
8749
8733
|
{ key: 'title' },
|
|
8750
8734
|
currentTitle
|
|
8751
8735
|
),
|
|
8752
|
-
currentSummary !== null &&
|
|
8753
|
-
currentURL !== null &&
|
|
8754
|
-
currentTitle !== null &&
|
|
8755
|
-
currentThumbnail !== null &&
|
|
8756
|
-
currentSummary !== null &&
|
|
8757
|
-
currentTitle !== null &&
|
|
8758
|
-
currentThumbnail !== null &&
|
|
8759
|
-
currentSummary !== null &&
|
|
8736
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
8737
|
+
currentURL !== null && React__default.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
8738
|
+
currentTitle !== null && React__default.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
8739
|
+
currentThumbnail !== null && React__default.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
8740
|
+
currentSummary !== null && React__default.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
8741
|
+
currentTitle !== null && React__default.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
8742
|
+
currentThumbnail !== null && React__default.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
8743
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8760
8744
|
),
|
|
8761
|
-
|
|
8745
|
+
React__default.createElement(
|
|
8762
8746
|
'article',
|
|
8763
8747
|
{ className: 'article-wrapper' },
|
|
8764
|
-
|
|
8748
|
+
React__default.createElement(
|
|
8765
8749
|
'div',
|
|
8766
8750
|
{ className: 'article-publishDate' },
|
|
8767
8751
|
moment(article.published).format('LL')
|
|
8768
8752
|
),
|
|
8769
|
-
|
|
8753
|
+
React__default.createElement(
|
|
8770
8754
|
'div',
|
|
8771
8755
|
{ className: 'author-details-wrapper' },
|
|
8772
8756
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8773
|
-
return
|
|
8757
|
+
return React__default.createElement(
|
|
8774
8758
|
'span',
|
|
8775
8759
|
{ key: index },
|
|
8776
8760
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor(client, authorDetail.profileImage).url())
|
|
8777
8761
|
);
|
|
8778
8762
|
})
|
|
8779
8763
|
),
|
|
8780
|
-
|
|
8764
|
+
React__default.createElement(
|
|
8781
8765
|
'h2',
|
|
8782
8766
|
{ className: 'article-title' },
|
|
8783
8767
|
article.title
|
|
8784
8768
|
),
|
|
8785
|
-
|
|
8769
|
+
React__default.createElement(
|
|
8786
8770
|
'div',
|
|
8787
8771
|
{ className: 'mt-2 mb-2' },
|
|
8788
|
-
|
|
8772
|
+
React__default.createElement(BlockContent, _extends$1({
|
|
8789
8773
|
serializers: getSerializers,
|
|
8790
8774
|
videoAccountIDs: accountIDs,
|
|
8791
8775
|
blocks: article.text,
|
|
8792
8776
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8793
8777
|
}, client.config())),
|
|
8794
|
-
|
|
8778
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' })
|
|
8795
8779
|
),
|
|
8796
|
-
Articles.length > 1 &&
|
|
8797
|
-
|
|
8780
|
+
Articles.length > 1 && React__default.createElement(
|
|
8781
|
+
React__default.Fragment,
|
|
8798
8782
|
null,
|
|
8799
|
-
|
|
8783
|
+
React__default.createElement(
|
|
8800
8784
|
'div',
|
|
8801
8785
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8802
|
-
|
|
8786
|
+
React__default.createElement(
|
|
8803
8787
|
'h5',
|
|
8804
8788
|
{ className: 'objective-title' },
|
|
8805
8789
|
nodes.seriesTitle
|
|
8806
8790
|
),
|
|
8807
|
-
|
|
8791
|
+
React__default.createElement(
|
|
8808
8792
|
'div',
|
|
8809
8793
|
{ className: 'prevNextWrapper' },
|
|
8810
8794
|
PrevNextCards(true, index)
|
|
8811
8795
|
)
|
|
8812
8796
|
),
|
|
8813
|
-
|
|
8797
|
+
React__default.createElement('hr', { className: 'article-seperater' })
|
|
8814
8798
|
)
|
|
8815
8799
|
),
|
|
8816
|
-
|
|
8800
|
+
React__default.createElement(
|
|
8817
8801
|
'div',
|
|
8818
8802
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8819
|
-
|
|
8803
|
+
main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8820
8804
|
if (innerIndex === 0) {
|
|
8821
|
-
return
|
|
8805
|
+
return React__default.createElement(
|
|
8822
8806
|
'div',
|
|
8823
8807
|
{
|
|
8824
8808
|
key: 'addid-' + (index + 2),
|
|
@@ -8841,7 +8825,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8841
8825
|
)
|
|
8842
8826
|
);
|
|
8843
8827
|
}),
|
|
8844
|
-
|
|
8828
|
+
React__default.createElement(
|
|
8845
8829
|
'style',
|
|
8846
8830
|
{ jsx: 'true' },
|
|
8847
8831
|
'\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 '
|
|
@@ -8871,11 +8855,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8871
8855
|
};
|
|
8872
8856
|
}, [handleClickOutside]);
|
|
8873
8857
|
|
|
8874
|
-
return
|
|
8858
|
+
return React__default.createElement(
|
|
8875
8859
|
'div',
|
|
8876
8860
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8877
|
-
|
|
8878
|
-
|
|
8861
|
+
React__default.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
8862
|
+
React__default.createElement(
|
|
8879
8863
|
'style',
|
|
8880
8864
|
{ jsx: 'true' },
|
|
8881
8865
|
'\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 '
|
|
@@ -8969,13 +8953,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
8969
8953
|
|
|
8970
8954
|
var FigureCaption = useCallback(function () {
|
|
8971
8955
|
if (imgcaption && imgcaption.length > 0) {
|
|
8972
|
-
return
|
|
8956
|
+
return React__default.createElement(
|
|
8973
8957
|
'div',
|
|
8974
8958
|
{ className: 'figure-caption' },
|
|
8975
|
-
|
|
8959
|
+
React__default.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
8976
8960
|
);
|
|
8977
8961
|
} else if (caption) {
|
|
8978
|
-
return
|
|
8962
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
8979
8963
|
} else return null;
|
|
8980
8964
|
}, [caption, imgcaption]);
|
|
8981
8965
|
|
|
@@ -8987,21 +8971,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
8987
8971
|
margin: figureMargin
|
|
8988
8972
|
};
|
|
8989
8973
|
|
|
8990
|
-
return
|
|
8991
|
-
|
|
8974
|
+
return React__default.createElement(
|
|
8975
|
+
React__default.Fragment,
|
|
8992
8976
|
null,
|
|
8993
|
-
|
|
8994
|
-
Figure$
|
|
8977
|
+
React__default.createElement(
|
|
8978
|
+
Figure$1$1,
|
|
8995
8979
|
{ className: '' + class_name, style: figureStyle },
|
|
8996
|
-
link ?
|
|
8980
|
+
link ? React__default.createElement(
|
|
8997
8981
|
'a',
|
|
8998
8982
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
8999
|
-
|
|
9000
|
-
|
|
9001
|
-
) :
|
|
9002
|
-
|
|
8983
|
+
React__default.createElement(Figure$1$1.Image, { style: { maxWidth: '100%' }, className: 'figure-image', src: urlFor$3(node, client).url(), alt: alt && alt }),
|
|
8984
|
+
React__default.createElement(FigureCaption, null)
|
|
8985
|
+
) : React__default.createElement(
|
|
8986
|
+
React__default.Fragment,
|
|
9003
8987
|
null,
|
|
9004
|
-
|
|
8988
|
+
React__default.createElement(Figure$1$1.Image, {
|
|
9005
8989
|
style: { maxWidth: '100%', cursor: 'pointer', width: 'auto' },
|
|
9006
8990
|
className: 'figure-image',
|
|
9007
8991
|
src: urlFor$3(node, client).url(),
|
|
@@ -9011,9 +8995,9 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9011
8995
|
setShowLightbox(true);
|
|
9012
8996
|
}
|
|
9013
8997
|
}),
|
|
9014
|
-
|
|
8998
|
+
React__default.createElement(FigureCaption, null)
|
|
9015
8999
|
),
|
|
9016
|
-
|
|
9000
|
+
React__default.createElement(LightBox, {
|
|
9017
9001
|
showLightbox: showLightbox,
|
|
9018
9002
|
lightboxImgSrc: lightboxImgSrc,
|
|
9019
9003
|
closeLightbox: function closeLightbox() {
|
|
@@ -9022,7 +9006,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9022
9006
|
}
|
|
9023
9007
|
})
|
|
9024
9008
|
),
|
|
9025
|
-
|
|
9009
|
+
React__default.createElement(
|
|
9026
9010
|
'style',
|
|
9027
9011
|
{ jsx: 'true' },
|
|
9028
9012
|
'\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 '
|
|
@@ -9030,7 +9014,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9030
9014
|
);
|
|
9031
9015
|
};
|
|
9032
9016
|
|
|
9033
|
-
var Figure =
|
|
9017
|
+
var Figure = React__default.memo(FigureComponent, compareProps);
|
|
9034
9018
|
|
|
9035
9019
|
var urlFor$4 = function urlFor(source, client) {
|
|
9036
9020
|
var builder = imageUrlBuilder(client);
|
|
@@ -9076,47 +9060,47 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9076
9060
|
imgcaption = _ref.imgcaption;
|
|
9077
9061
|
|
|
9078
9062
|
if (imgcaption && imgcaption.length > 0) {
|
|
9079
|
-
return
|
|
9063
|
+
return React__default.createElement(
|
|
9080
9064
|
'div',
|
|
9081
9065
|
{ className: 'multi-figure-caption' },
|
|
9082
|
-
|
|
9066
|
+
React__default.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9083
9067
|
);
|
|
9084
9068
|
} else if (caption) {
|
|
9085
|
-
return
|
|
9069
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9086
9070
|
} else return null;
|
|
9087
9071
|
};
|
|
9088
9072
|
|
|
9089
9073
|
if (images && images.length > 0) {
|
|
9090
|
-
return
|
|
9074
|
+
return React__default.createElement(
|
|
9091
9075
|
'div',
|
|
9092
9076
|
{ className: 'multi-figure-container' },
|
|
9093
|
-
|
|
9077
|
+
React__default.createElement(
|
|
9094
9078
|
Row,
|
|
9095
9079
|
{ noGutters: true },
|
|
9096
9080
|
images.map(function (image, index) {
|
|
9097
|
-
return
|
|
9081
|
+
return React__default.createElement(
|
|
9098
9082
|
Col,
|
|
9099
9083
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9100
|
-
image.link ?
|
|
9084
|
+
image.link ? React__default.createElement(
|
|
9101
9085
|
'a',
|
|
9102
|
-
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9103
|
-
|
|
9086
|
+
_extends$1({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9087
|
+
React__default.createElement(
|
|
9104
9088
|
'div',
|
|
9105
9089
|
{ className: 'multi-figure-image-container' },
|
|
9106
|
-
|
|
9090
|
+
React__default.createElement(
|
|
9107
9091
|
LazyLoad,
|
|
9108
9092
|
{ once: true },
|
|
9109
|
-
|
|
9093
|
+
React__default.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor$4(image.asset, client).url(), alt: image.alt })
|
|
9110
9094
|
),
|
|
9111
|
-
|
|
9095
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9112
9096
|
)
|
|
9113
|
-
) :
|
|
9097
|
+
) : React__default.createElement(
|
|
9114
9098
|
'div',
|
|
9115
9099
|
{ className: 'multi-figure-image-container' },
|
|
9116
|
-
|
|
9100
|
+
React__default.createElement(
|
|
9117
9101
|
LazyLoad,
|
|
9118
9102
|
{ once: true },
|
|
9119
|
-
|
|
9103
|
+
React__default.createElement('img', {
|
|
9120
9104
|
'images-count': images.length,
|
|
9121
9105
|
className: 'multi-figure-image',
|
|
9122
9106
|
src: urlFor$4(image.asset, client).url(),
|
|
@@ -9127,17 +9111,17 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9127
9111
|
}
|
|
9128
9112
|
})
|
|
9129
9113
|
),
|
|
9130
|
-
|
|
9114
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9131
9115
|
)
|
|
9132
9116
|
);
|
|
9133
9117
|
})
|
|
9134
9118
|
),
|
|
9135
|
-
|
|
9119
|
+
React__default.createElement(
|
|
9136
9120
|
'div',
|
|
9137
9121
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9138
|
-
|
|
9122
|
+
React__default.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9139
9123
|
),
|
|
9140
|
-
|
|
9124
|
+
React__default.createElement(
|
|
9141
9125
|
'style',
|
|
9142
9126
|
{ jsx: 'true' },
|
|
9143
9127
|
'\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: cover;\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 height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n 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 height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n 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 '
|
|
@@ -9159,10 +9143,10 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9159
9143
|
|
|
9160
9144
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
9161
9145
|
|
|
9162
|
-
return
|
|
9146
|
+
return React__default.createElement(
|
|
9163
9147
|
'div',
|
|
9164
9148
|
{ id: elementId },
|
|
9165
|
-
|
|
9149
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
9166
9150
|
);
|
|
9167
9151
|
};
|
|
9168
9152
|
|
|
@@ -9234,17 +9218,17 @@ var getSerializers = function getSerializers() {
|
|
|
9234
9218
|
var node = _ref.node;
|
|
9235
9219
|
var url = node.url;
|
|
9236
9220
|
|
|
9237
|
-
return
|
|
9221
|
+
return React__default.createElement(YouTubePlayer, { url: url });
|
|
9238
9222
|
},
|
|
9239
9223
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9240
9224
|
var node = _ref2.node;
|
|
9241
9225
|
|
|
9242
|
-
return
|
|
9226
|
+
return React__default.createElement(YouTubeGallery, { nodes: node, accountIDs: videoAccountIDs || {}, client: client, getSerializers: getSerializers(client) });
|
|
9243
9227
|
},
|
|
9244
9228
|
articleSeries: function articleSeries(_ref3) {
|
|
9245
9229
|
var node = _ref3.node;
|
|
9246
9230
|
|
|
9247
|
-
return
|
|
9231
|
+
return React__default.createElement(ArticleSeries, {
|
|
9248
9232
|
nodes: node,
|
|
9249
9233
|
accountIDs: videoAccountIDs || {},
|
|
9250
9234
|
pageview: pageview,
|
|
@@ -9257,61 +9241,61 @@ var getSerializers = function getSerializers() {
|
|
|
9257
9241
|
figure: function figure(_ref4) {
|
|
9258
9242
|
var node = _ref4.node;
|
|
9259
9243
|
|
|
9260
|
-
return
|
|
9244
|
+
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9261
9245
|
},
|
|
9262
9246
|
multifigure: function multifigure(_ref5) {
|
|
9263
9247
|
var node = _ref5.node;
|
|
9264
9248
|
|
|
9265
|
-
return
|
|
9249
|
+
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9266
9250
|
},
|
|
9267
9251
|
slideshow: function slideshow(_ref6) {
|
|
9268
9252
|
var node = _ref6.node;
|
|
9269
9253
|
var slides = node.slides;
|
|
9270
9254
|
|
|
9271
|
-
return
|
|
9255
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9272
9256
|
},
|
|
9273
9257
|
sidebar: function sidebar(_ref7) {
|
|
9274
9258
|
var node = _ref7.node;
|
|
9275
9259
|
var caption = node.caption,
|
|
9276
9260
|
content = node.content;
|
|
9277
9261
|
|
|
9278
|
-
return
|
|
9262
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9279
9263
|
},
|
|
9280
9264
|
datatable: function datatable(_ref8) {
|
|
9281
9265
|
var node = _ref8.node;
|
|
9282
9266
|
var table = node.table;
|
|
9283
9267
|
|
|
9284
|
-
return
|
|
9268
|
+
return React__default.createElement(TableShow, { rows: table.rows });
|
|
9285
9269
|
},
|
|
9286
9270
|
media: function media(_ref9) {
|
|
9287
9271
|
var node = _ref9.node;
|
|
9288
9272
|
|
|
9289
|
-
return
|
|
9273
|
+
return React__default.createElement(Media, { node: node, client: client });
|
|
9290
9274
|
},
|
|
9291
9275
|
iframe: function iframe(_ref10) {
|
|
9292
9276
|
var node = _ref10.node;
|
|
9293
9277
|
|
|
9294
|
-
return
|
|
9278
|
+
return React__default.createElement(IFrame, { url: node.url });
|
|
9295
9279
|
},
|
|
9296
9280
|
video: function video(_ref11) {
|
|
9297
9281
|
var node = _ref11.node;
|
|
9298
9282
|
|
|
9299
|
-
return
|
|
9283
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9300
9284
|
},
|
|
9301
9285
|
audio: function audio(_ref12) {
|
|
9302
9286
|
var node = _ref12.node;
|
|
9303
9287
|
|
|
9304
|
-
return
|
|
9288
|
+
return React__default.createElement(Audio, { node: node });
|
|
9305
9289
|
},
|
|
9306
9290
|
poll: function poll(_ref13) {
|
|
9307
9291
|
var node = _ref13.node;
|
|
9308
9292
|
|
|
9309
|
-
return
|
|
9293
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9310
9294
|
},
|
|
9311
9295
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9312
9296
|
var node = _ref14.node;
|
|
9313
9297
|
|
|
9314
|
-
return
|
|
9298
|
+
return React__default.createElement(Poll$1, {
|
|
9315
9299
|
node: node,
|
|
9316
9300
|
client: client,
|
|
9317
9301
|
pageview: pageview,
|
|
@@ -9325,59 +9309,59 @@ var getSerializers = function getSerializers() {
|
|
|
9325
9309
|
var node = _ref15.node;
|
|
9326
9310
|
var quizzes = node.quizzes;
|
|
9327
9311
|
|
|
9328
|
-
return
|
|
9312
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9329
9313
|
},
|
|
9330
9314
|
leads: function leads(_ref16) {
|
|
9331
9315
|
var node = _ref16.node;
|
|
9332
9316
|
var leadID = node.leadID;
|
|
9333
9317
|
|
|
9334
9318
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9335
|
-
return
|
|
9319
|
+
return React__default.createElement(Leads, { url: url });
|
|
9336
9320
|
},
|
|
9337
9321
|
slideshows: function slideshows(_ref17) {
|
|
9338
9322
|
var node = _ref17.node;
|
|
9339
9323
|
|
|
9340
|
-
return
|
|
9324
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9341
9325
|
},
|
|
9342
9326
|
nativeAd: function nativeAd(_ref18) {
|
|
9343
9327
|
var node = _ref18.node;
|
|
9344
9328
|
|
|
9345
|
-
return
|
|
9329
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
9346
9330
|
},
|
|
9347
9331
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
9348
9332
|
var node = _ref19.node;
|
|
9349
9333
|
|
|
9350
|
-
return
|
|
9334
|
+
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9351
9335
|
},
|
|
9352
9336
|
hrtag: function hrtag() {
|
|
9353
|
-
return
|
|
9337
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9354
9338
|
},
|
|
9355
9339
|
brtag: function brtag() {
|
|
9356
|
-
return
|
|
9340
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
9357
9341
|
},
|
|
9358
9342
|
formstack: function formstack(_ref20) {
|
|
9359
9343
|
var node = _ref20.node;
|
|
9360
9344
|
var FormID = node.FormID,
|
|
9361
9345
|
Caption = node.Caption;
|
|
9362
9346
|
|
|
9363
|
-
return
|
|
9347
|
+
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption });
|
|
9364
9348
|
},
|
|
9365
9349
|
multimedia: function multimedia(_ref21) {
|
|
9366
9350
|
var node = _ref21.node;
|
|
9367
9351
|
|
|
9368
|
-
return
|
|
9352
|
+
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
9369
9353
|
}
|
|
9370
9354
|
},
|
|
9371
9355
|
marks: {
|
|
9372
9356
|
superscript: function superscript(props) {
|
|
9373
|
-
return
|
|
9357
|
+
return React__default.createElement(
|
|
9374
9358
|
'sup',
|
|
9375
9359
|
null,
|
|
9376
9360
|
props.children
|
|
9377
9361
|
);
|
|
9378
9362
|
},
|
|
9379
9363
|
subscript: function subscript(props) {
|
|
9380
|
-
return
|
|
9364
|
+
return React__default.createElement(
|
|
9381
9365
|
'sub',
|
|
9382
9366
|
null,
|
|
9383
9367
|
props.children
|
|
@@ -9393,7 +9377,7 @@ var getSerializers = function getSerializers() {
|
|
|
9393
9377
|
if (href && href.charAt(0) === '#') {
|
|
9394
9378
|
var elementId = href.slice(1);
|
|
9395
9379
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9396
|
-
return
|
|
9380
|
+
return React__default.createElement(
|
|
9397
9381
|
'a',
|
|
9398
9382
|
{ onClick: function onClick() {
|
|
9399
9383
|
return ScrollToElement(elementId);
|
|
@@ -9403,7 +9387,7 @@ var getSerializers = function getSerializers() {
|
|
|
9403
9387
|
}
|
|
9404
9388
|
|
|
9405
9389
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9406
|
-
return
|
|
9390
|
+
return React__default.createElement(
|
|
9407
9391
|
'a',
|
|
9408
9392
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
9409
9393
|
children
|
|
@@ -9411,7 +9395,7 @@ var getSerializers = function getSerializers() {
|
|
|
9411
9395
|
},
|
|
9412
9396
|
alignleft: function alignleft(_ref22) {
|
|
9413
9397
|
var children = _ref22.children;
|
|
9414
|
-
return
|
|
9398
|
+
return React__default.createElement(
|
|
9415
9399
|
'div',
|
|
9416
9400
|
{ style: { textAlign: 'left' } },
|
|
9417
9401
|
children
|
|
@@ -9419,7 +9403,7 @@ var getSerializers = function getSerializers() {
|
|
|
9419
9403
|
},
|
|
9420
9404
|
alignright: function alignright(_ref23) {
|
|
9421
9405
|
var children = _ref23.children;
|
|
9422
|
-
return
|
|
9406
|
+
return React__default.createElement(
|
|
9423
9407
|
'div',
|
|
9424
9408
|
{ style: { textAlign: 'right' } },
|
|
9425
9409
|
children
|
|
@@ -9427,7 +9411,7 @@ var getSerializers = function getSerializers() {
|
|
|
9427
9411
|
},
|
|
9428
9412
|
aligncenter: function aligncenter(_ref24) {
|
|
9429
9413
|
var children = _ref24.children;
|
|
9430
|
-
return
|
|
9414
|
+
return React__default.createElement(
|
|
9431
9415
|
'div',
|
|
9432
9416
|
{ style: { textAlign: 'center' } },
|
|
9433
9417
|
children
|
|
@@ -9435,7 +9419,7 @@ var getSerializers = function getSerializers() {
|
|
|
9435
9419
|
},
|
|
9436
9420
|
alignjustify: function alignjustify(_ref25) {
|
|
9437
9421
|
var children = _ref25.children;
|
|
9438
|
-
return
|
|
9422
|
+
return React__default.createElement(
|
|
9439
9423
|
'div',
|
|
9440
9424
|
{ style: { textAlign: 'justify' } },
|
|
9441
9425
|
children
|
|
@@ -9445,7 +9429,7 @@ var getSerializers = function getSerializers() {
|
|
|
9445
9429
|
var children = props.children,
|
|
9446
9430
|
color = props.mark.color;
|
|
9447
9431
|
|
|
9448
|
-
return
|
|
9432
|
+
return React__default.createElement(
|
|
9449
9433
|
'span',
|
|
9450
9434
|
{ style: { color: color ? color.hex : null } },
|
|
9451
9435
|
children
|