@mjhls/mjh-framework 1.0.785 → 1.0.786-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +26 -27
- package/dist/cjs/AD300x250x600.js +26 -27
- package/dist/cjs/AD728x90.js +29 -30
- package/dist/cjs/ADFloatingFooter.js +28 -29
- package/dist/cjs/ADFooter.js +14 -15
- package/dist/cjs/ADGutter.js +28 -29
- package/dist/cjs/{ADInfeed-1e53d7db.js → ADInfeed-bb09e44c.js} +13 -15
- package/dist/cjs/ADSkyscraper.js +28 -29
- package/dist/cjs/ADSponsoredResources.js +28 -29
- package/dist/cjs/ADWebcast.js +28 -29
- package/dist/cjs/ADWelcome.js +29 -30
- package/dist/cjs/{ADlgInfeed-2494fd17.js → ADlgInfeed-fa91dbda.js} +10 -11
- package/dist/cjs/AccordionPanel.js +29 -31
- package/dist/cjs/AdSlot.js +31 -32
- package/dist/cjs/AdSlotsProvider.js +15 -16
- package/dist/cjs/AlphabeticList.js +24 -25
- package/dist/cjs/ArticleCarousel.js +23 -24
- package/dist/cjs/ArticleProgramLandingPage.js +54 -57
- package/dist/cjs/ArticleSeriesLandingPage.js +37 -38
- package/dist/cjs/ArticleSeriesListing.js +60 -61
- package/dist/cjs/{AuthorComponent-5fa89df5.js → AuthorComponent-bb831b74.js} +13 -14
- package/dist/cjs/Beam.js +8 -8
- package/dist/cjs/{BlockContent-eca358e4.js → BlockContent-091a991f.js} +24 -25
- package/dist/cjs/Breadcrumbs.js +27 -29
- package/dist/cjs/CMEDeck.js +82 -82
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +32 -35
- package/dist/cjs/Column3.js +54 -57
- package/dist/cjs/ConferenceArticleCard.js +23 -24
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +93 -97
- package/dist/cjs/DeckQueue.js +87 -91
- package/dist/cjs/{Dfp-a17e00fa.js → Dfp-b807d8fa.js} +31 -32
- package/dist/cjs/EventsDeck.js +131 -138
- package/dist/cjs/ExternalResources.js +77 -80
- 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 +12 -14
- package/dist/cjs/Hero.js +12 -13
- package/dist/cjs/HighlightenVideo.js +17 -18
- package/dist/cjs/HorizontalArticleListing.js +68 -71
- package/dist/cjs/HorizontalHero.js +25 -26
- package/dist/cjs/IssueContentDeck.js +72 -77
- package/dist/cjs/IssueDeck.js +70 -75
- package/dist/cjs/IssueLanding.js +39 -40
- package/dist/cjs/LeftNav.js +35 -37
- package/dist/cjs/MasterDeck.js +69 -70
- package/dist/cjs/MediaSeriesLanding.js +38 -40
- package/dist/cjs/NavDvm.js +74 -79
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +137 -142
- package/dist/cjs/NavNative.js +126 -134
- package/dist/cjs/NavNormal.js +47 -52
- package/dist/cjs/OncliveHero.js +20 -20
- package/dist/cjs/OncliveLargeHero.js +66 -67
- package/dist/cjs/PageFilter.js +14 -15
- package/dist/cjs/PartnerDetailListing.js +99 -112
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +19 -21
- package/dist/cjs/PubSection.js +38 -39
- package/dist/cjs/PubToc.js +15 -16
- package/dist/cjs/PublicationDeck.js +61 -66
- package/dist/cjs/PublicationLanding.js +79 -83
- package/dist/cjs/QueueDeckExpanded.js +291 -291
- package/dist/cjs/RecentNews.js +23 -24
- package/dist/cjs/RelatedContent.js +24 -25
- package/dist/cjs/RelatedTopicsDropdown.js +19 -22
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +18 -22
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +37 -37
- package/dist/cjs/{SeriesSlider-193a2958.js → SeriesSlider-f662f1f5.js} +37 -38
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +34 -35
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-45c54bed.js → SocialSearchComponent-8dd468fd.js} +36 -40
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +57 -62
- package/dist/cjs/TaxonomyDescription.js +51 -54
- 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 -76
- package/dist/cjs/VideoSeriesCard.js +31 -32
- package/dist/cjs/VideoSeriesFilter.js +18 -18
- package/dist/cjs/VideoSeriesLandingPage.js +45 -46
- package/dist/cjs/VideoSeriesListing.js +77 -78
- package/dist/cjs/View.js +255 -261
- package/dist/cjs/YahooHero.js +39 -40
- package/dist/cjs/YoutubeGroup.js +62 -63
- package/dist/cjs/{_is-array-63ae4740.js → _is-array-754e012d.js} +6 -6
- package/dist/cjs/{_iter-detect-2613ffa1.js → _iter-detect-60b2f026.js} +2 -2
- package/dist/cjs/{_object-sap-c5bd707d.js → _object-sap-5e74ba08.js} +1 -1
- package/dist/cjs/{_object-to-array-bec5fcf2.js → _object-to-array-5762f850.js} +1 -1
- package/dist/cjs/{_to-object-821a2927.js → _to-object-329a650b.js} +4 -4
- package/dist/cjs/{asyncToGenerator-b6a175bf.js → asyncToGenerator-140e5f89.js} +7 -7
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
- package/dist/cjs/{core.get-iterator-method-b4615fd3.js → core.get-iterator-method-f62321d4.js} +2 -2
- package/dist/cjs/{define-property-aff11f8a.js → define-property-f4d12f4e.js} +1 -1
- package/dist/cjs/{defineProperty-d6fbb280.js → defineProperty-55548b25.js} +1 -1
- package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
- package/dist/cjs/{es6.string.iterator-20d42c53.js → es6.string.iterator-cc0bbaa4.js} +2 -2
- package/dist/cjs/{extends-1e24fc8d.js → extends-0a918631.js} +2 -1
- package/dist/cjs/getQuery.js +1 -1
- package/dist/cjs/getRelatedArticle.js +28 -443
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +42 -44
- package/dist/cjs/{getTargeting-497b581d.js → getTargeting-67f12cd7.js} +3 -3
- package/dist/cjs/getTargeting.js +7 -7
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-4d74ffd6.js → index-3294d3bc.js} +41 -40
- package/dist/cjs/{index-4f6e2a09.js → index-57d0264f.js} +1747 -948
- package/dist/cjs/{index-0e4427c8.js → index-8bf6c863.js} +11 -12
- package/dist/cjs/{index-d48b231c.js → index-be0c82be.js} +25 -31
- package/dist/cjs/{index-80f57cff.js → index-da796b8c.js} +15 -17
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-8123cf40.js → index.esm-4d410430.js} +20 -20
- package/dist/cjs/{index.esm-3b9b8952.js → index.esm-66ffa47a.js} +9 -4
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +154 -166
- package/dist/cjs/{inherits-2eb23889.js → inherits-452ff02c.js} +8 -5
- package/dist/cjs/{keys-95c064c9.js → keys-a586b7a0.js} +2 -2
- package/dist/cjs/{lodash-4ef21f0f.js → lodash-fc2922d0.js} +23 -72
- package/dist/cjs/{main-dc082238.js → main-02daeefe.js} +80 -116
- package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
- package/dist/cjs/{slicedToArray-db24842a.js → slicedToArray-8f385299.js} +4 -4
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/{stringify-01cf47f7.js → stringify-7c5aff47.js} +1 -1
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-cf0865fc.js → toConsumableArray-9a3476fe.js} +4 -4
- package/dist/cjs/{typeof-97065d40.js → typeof-725500bc.js} +7 -7
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{visibility-sensor-8b54af99.js → visibility-sensor-0c45a583.js} +5 -7
- package/dist/cjs/{web.dom.iterable-4480325a.js → web.dom.iterable-a0e279c1.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +23 -23
- package/dist/esm/AD300x250x600.js +23 -23
- package/dist/esm/AD728x90.js +26 -26
- package/dist/esm/ADFloatingFooter.js +25 -25
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +25 -25
- package/dist/esm/{ADInfeed-94817c40.js → ADInfeed-0b552b0a.js} +9 -9
- package/dist/esm/ADSkyscraper.js +25 -25
- package/dist/esm/ADSponsoredResources.js +25 -25
- package/dist/esm/ADWebcast.js +25 -25
- package/dist/esm/ADWelcome.js +26 -26
- package/dist/esm/{ADlgInfeed-6124ee3c.js → ADlgInfeed-49f41f83.js} +8 -8
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +22 -22
- package/dist/esm/AdSlotsProvider.js +12 -12
- package/dist/esm/AlphabeticList.js +21 -21
- package/dist/esm/ArticleCarousel.js +20 -20
- package/dist/esm/ArticleProgramLandingPage.js +51 -53
- package/dist/esm/ArticleSeriesLandingPage.js +34 -34
- package/dist/esm/ArticleSeriesListing.js +55 -55
- package/dist/esm/{AuthorComponent-c7ff069f.js → AuthorComponent-34b16174.js} +11 -11
- package/dist/esm/Beam.js +8 -8
- package/dist/esm/{BlockContent-d8cd739c.js → BlockContent-e9b4ddcf.js} +4 -4
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/CMEDeck.js +78 -78
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +26 -26
- package/dist/esm/Column3.js +47 -47
- package/dist/esm/ConferenceArticleCard.js +19 -19
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +75 -75
- package/dist/esm/DeckQueue.js +65 -65
- package/dist/esm/{Dfp-988dbcaa.js → Dfp-ebc4b22f.js} +21 -21
- package/dist/esm/EventsDeck.js +84 -84
- package/dist/esm/ExternalResources.js +70 -72
- 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 +8 -8
- package/dist/esm/Hero.js +9 -9
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +65 -67
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +49 -49
- package/dist/esm/IssueDeck.js +46 -46
- package/dist/esm/IssueLanding.js +36 -36
- package/dist/esm/LeftNav.js +31 -31
- package/dist/esm/MasterDeck.js +63 -63
- package/dist/esm/MediaSeriesLanding.js +31 -31
- package/dist/esm/NavDvm.js +56 -56
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +113 -113
- package/dist/esm/NavNative.js +99 -99
- package/dist/esm/NavNormal.js +35 -35
- package/dist/esm/OncliveHero.js +17 -16
- package/dist/esm/OncliveLargeHero.js +59 -59
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +95 -107
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PubSection.js +35 -35
- package/dist/esm/PubToc.js +12 -12
- package/dist/esm/PublicationDeck.js +38 -38
- package/dist/esm/PublicationLanding.js +54 -54
- package/dist/esm/QueueDeckExpanded.js +271 -271
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +19 -19
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +12 -12
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +31 -31
- package/dist/esm/{SeriesSlider-6a1081ff.js → SeriesSlider-9245785f.js} +27 -27
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +30 -30
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-c3216d1a.js → SocialSearchComponent-a2ae84d1.js} +28 -28
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +41 -41
- package/dist/esm/TaxonomyDescription.js +46 -48
- 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 -62
- package/dist/esm/VideoSeriesCard.js +24 -24
- package/dist/esm/VideoSeriesFilter.js +15 -15
- package/dist/esm/VideoSeriesLandingPage.js +38 -38
- package/dist/esm/VideoSeriesListing.js +71 -71
- package/dist/esm/View.js +239 -241
- package/dist/esm/YahooHero.js +34 -34
- package/dist/esm/YoutubeGroup.js +46 -46
- package/dist/esm/{_is-array-674f71ec.js → _is-array-58e95429.js} +6 -6
- package/dist/esm/{_iter-detect-48516cd3.js → _iter-detect-5d49a330.js} +2 -2
- package/dist/esm/{_object-sap-fd3054d0.js → _object-sap-964b6feb.js} +1 -1
- package/dist/esm/{_object-to-array-8f409e54.js → _object-to-array-7e804fce.js} +1 -1
- package/dist/esm/{_to-object-97770c52.js → _to-object-a4107da3.js} +5 -5
- package/dist/esm/{asyncToGenerator-585841c0.js → asyncToGenerator-fc1c2e29.js} +7 -7
- package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/{core.get-iterator-method-d1d5ed02.js → core.get-iterator-method-e1de7503.js} +2 -2
- package/dist/esm/{define-property-ec6d528d.js → define-property-8af5f002.js} +1 -1
- package/dist/esm/{defineProperty-ea516b15.js → defineProperty-94fd8bfc.js} +1 -1
- package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
- package/dist/esm/{es6.string.iterator-aa6068a3.js → es6.string.iterator-c990c18c.js} +3 -3
- package/dist/esm/{extends-31d65aba.js → extends-6f2fcc99.js} +2 -2
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getRelatedArticle.js +28 -443
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +42 -44
- package/dist/esm/{getTargeting-2d402d66.js → getTargeting-ed6ebf43.js} +2 -2
- package/dist/esm/getTargeting.js +7 -7
- package/dist/esm/{index-761f5e47.js → index-0141b5a9.js} +1681 -874
- package/dist/esm/{index-752d1dae.js → index-5f9f807a.js} +10 -10
- package/dist/esm/{index-3f5c03b2.js → index-73819142.js} +25 -31
- package/dist/esm/{index-888f9253.js → index-a9e53f80.js} +6 -6
- package/dist/esm/{index-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 +124 -132
- package/dist/esm/{inherits-5906fbea.js → inherits-cf8dde54.js} +6 -6
- package/dist/esm/{keys-a0b0c7a4.js → keys-8eda7a5c.js} +2 -2
- package/dist/esm/{lodash-ad27652f.js → lodash-17fdfebb.js} +23 -72
- package/dist/esm/{main-1450d277.js → main-e4a934b2.js} +78 -113
- package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
- package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-a7d5c5c7.js} +20 -20
- package/dist/esm/{slicedToArray-cdeaee08.js → slicedToArray-641f241f.js} +4 -4
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/{stringify-d4839bab.js → stringify-4330ccdc.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-fa2dcda7.js → toConsumableArray-43aa614d.js} +4 -4
- package/dist/esm/{typeof-e9cea9e8.js → typeof-6435ba1c.js} +7 -7
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{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/Auth.js +0 -4231
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/index-bd6c9f56.js +0 -211
- package/dist/cjs/util-6f784d85.js +0 -576
- package/dist/esm/Auth.js +0 -4211
- package/dist/esm/index-db3bb315.js +0 -207
- package/dist/esm/util-3ab476bf.js +0 -574
|
@@ -1,38 +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, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
4
|
-
import { i as imageUrlBuilder } from './index-3f5c03b2.js';
|
|
5
|
-
import { l as lib_3 } from './index-888f9253.js';
|
|
6
|
-
import Router, { useRouter } from 'next/router';
|
|
7
|
-
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
8
|
-
import PropTypes from 'prop-types';
|
|
9
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
2
|
+
import { _ as _export, a as _core } from './_to-object-a4107da3.js';
|
|
3
|
+
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
|
|
4
|
+
import { _ as _extends$1, b as _extends$2 } from './extends-6f2fcc99.js';
|
|
5
|
+
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits$2 } from './inherits-cf8dde54.js';
|
|
6
|
+
import { _ as _typeof } from './typeof-6435ba1c.js';
|
|
7
|
+
import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
8
|
+
import { l as lib_3 } from './index-a9e53f80.js';
|
|
9
|
+
import PropTypes from 'prop-types';
|
|
10
|
+
import Row$1 from 'react-bootstrap/Row';
|
|
11
|
+
import Col$1 from 'react-bootstrap/Col';
|
|
12
|
+
import { m as moment } from './moment-e2f9b20c.js';
|
|
13
|
+
import Router, { useRouter } from 'next/router';
|
|
14
|
+
import { i as imageUrlBuilder } from './index-73819142.js';
|
|
15
|
+
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
16
|
+
import { d as main_16, b as main_35, m as main_36 } from './main-e4a934b2.js';
|
|
17
|
+
import { h as html_decode_1 } from './entities-7cc3bf45.js';
|
|
18
|
+
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-641f241f.js';
|
|
12
19
|
import Segment from './Segment.js';
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { _ as _typeof$1 } from './typeof-e9cea9e8.js';
|
|
18
|
-
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-b43c695a.js';
|
|
20
|
+
import Beam from './Beam.js';
|
|
21
|
+
import DFPAdSlot from './AdSlot.js';
|
|
22
|
+
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
23
|
+
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
19
24
|
import GroupDeck from './GroupDeck.js';
|
|
20
|
-
import {
|
|
25
|
+
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
|
|
26
|
+
import { d as IoIosArrowDropupCircle } from './index.esm-29e48d38.js';
|
|
27
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-83f53e4e.js';
|
|
28
|
+
import Head from 'next/head';
|
|
21
29
|
import SocialShare from './SocialShare.js';
|
|
22
|
-
import { _ as
|
|
23
|
-
import { _ as _objectToArray } from './_object-to-array-8f409e54.js';
|
|
24
|
-
import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-fa2dcda7.js';
|
|
30
|
+
import { _ as _objectToArray } from './_object-to-array-7e804fce.js';
|
|
25
31
|
import Pagination from 'react-bootstrap/Pagination';
|
|
26
32
|
import Button$1 from 'react-bootstrap/Button';
|
|
27
|
-
import
|
|
28
|
-
import DFPAdSlot from './AdSlot.js';
|
|
29
|
-
import Row$1 from 'react-bootstrap/Row';
|
|
30
|
-
import Col$1 from 'react-bootstrap/Col';
|
|
31
|
-
import Head from 'next/head';
|
|
32
|
-
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-5906fbea.js';
|
|
33
|
-
import { d as IoIosArrowDropupCircle } from './index.esm-3fdda599.js';
|
|
34
|
-
import Figure$2 from 'react-bootstrap/Figure';
|
|
35
|
-
import ScriptTag from 'react-script-tag';
|
|
33
|
+
import Figure$1$1 from 'react-bootstrap/Figure';
|
|
36
34
|
|
|
37
35
|
var urlFor = function urlFor(source, builder) {
|
|
38
36
|
return builder.image(source).auto('format');
|
|
@@ -73,20 +71,20 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
73
71
|
if (pageview) pageview(router.asPath);
|
|
74
72
|
}, [router]);
|
|
75
73
|
|
|
76
|
-
return
|
|
74
|
+
return React__default.createElement(
|
|
77
75
|
'div',
|
|
78
76
|
{ className: 'mt-3 mb-3' },
|
|
79
|
-
|
|
77
|
+
React__default.createElement(
|
|
80
78
|
Carousel,
|
|
81
79
|
{ activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
|
|
82
80
|
return onChangeSlide(selectedIndex, router);
|
|
83
81
|
}, interval: null },
|
|
84
82
|
slides && slides.map(function (slide) {
|
|
85
|
-
return
|
|
83
|
+
return React__default.createElement(
|
|
86
84
|
Carousel.Item,
|
|
87
85
|
{ key: slide._key },
|
|
88
|
-
|
|
89
|
-
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(
|
|
90
88
|
'p',
|
|
91
89
|
{ className: 'p-2' },
|
|
92
90
|
slide.caption
|
|
@@ -97,18 +95,21 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
97
95
|
);
|
|
98
96
|
};
|
|
99
97
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
98
|
+
var isArray = Array.isArray;
|
|
99
|
+
var keyList = Object.keys;
|
|
100
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
103
101
|
|
|
104
102
|
var fastDeepEqual = function equal(a, b) {
|
|
105
103
|
if (a === b) return true;
|
|
106
104
|
|
|
107
105
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
108
|
-
|
|
106
|
+
var arrA = isArray(a)
|
|
107
|
+
, arrB = isArray(b)
|
|
108
|
+
, i
|
|
109
|
+
, length
|
|
110
|
+
, key;
|
|
109
111
|
|
|
110
|
-
|
|
111
|
-
if (Array.isArray(a)) {
|
|
112
|
+
if (arrA && arrB) {
|
|
112
113
|
length = a.length;
|
|
113
114
|
if (length != b.length) return false;
|
|
114
115
|
for (i = length; i-- !== 0;)
|
|
@@ -116,29 +117,35 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
116
117
|
return true;
|
|
117
118
|
}
|
|
118
119
|
|
|
120
|
+
if (arrA != arrB) return false;
|
|
119
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();
|
|
120
126
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
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();
|
|
124
131
|
|
|
125
|
-
keys =
|
|
132
|
+
var keys = keyList(a);
|
|
126
133
|
length = keys.length;
|
|
127
|
-
|
|
134
|
+
|
|
135
|
+
if (length !== keyList(b).length)
|
|
136
|
+
return false;
|
|
128
137
|
|
|
129
138
|
for (i = length; i-- !== 0;)
|
|
130
|
-
if (!
|
|
139
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
131
140
|
|
|
132
141
|
for (i = length; i-- !== 0;) {
|
|
133
|
-
|
|
134
|
-
|
|
142
|
+
key = keys[i];
|
|
135
143
|
if (!equal(a[key], b[key])) return false;
|
|
136
144
|
}
|
|
137
145
|
|
|
138
146
|
return true;
|
|
139
147
|
}
|
|
140
148
|
|
|
141
|
-
// true if both NaN, false otherwise
|
|
142
149
|
return a!==a && b!==b;
|
|
143
150
|
};
|
|
144
151
|
|
|
@@ -676,14 +683,14 @@ function coerce(val) {
|
|
|
676
683
|
return val;
|
|
677
684
|
}
|
|
678
685
|
});
|
|
679
|
-
debug.coerce;
|
|
680
|
-
debug.disable;
|
|
681
|
-
debug.enable;
|
|
682
|
-
debug.enabled;
|
|
683
|
-
debug.humanize;
|
|
684
|
-
debug.names;
|
|
685
|
-
debug.skips;
|
|
686
|
-
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;
|
|
687
694
|
|
|
688
695
|
var browser = createCommonjsModule(function (module, exports) {
|
|
689
696
|
/**
|
|
@@ -872,13 +879,13 @@ function localstorage() {
|
|
|
872
879
|
} catch (e) {}
|
|
873
880
|
}
|
|
874
881
|
});
|
|
875
|
-
browser.log;
|
|
876
|
-
browser.formatArgs;
|
|
877
|
-
browser.save;
|
|
878
|
-
browser.load;
|
|
879
|
-
browser.useColors;
|
|
880
|
-
browser.storage;
|
|
881
|
-
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;
|
|
882
889
|
|
|
883
890
|
// MIT lisence
|
|
884
891
|
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
@@ -901,6 +908,579 @@ var tty = {
|
|
|
901
908
|
WriteStream: WriteStream
|
|
902
909
|
};
|
|
903
910
|
|
|
911
|
+
var inherits;
|
|
912
|
+
if (typeof Object.create === 'function'){
|
|
913
|
+
inherits = function inherits(ctor, superCtor) {
|
|
914
|
+
// implementation from standard node.js 'util' module
|
|
915
|
+
ctor.super_ = superCtor;
|
|
916
|
+
ctor.prototype = Object.create(superCtor.prototype, {
|
|
917
|
+
constructor: {
|
|
918
|
+
value: ctor,
|
|
919
|
+
enumerable: false,
|
|
920
|
+
writable: true,
|
|
921
|
+
configurable: true
|
|
922
|
+
}
|
|
923
|
+
});
|
|
924
|
+
};
|
|
925
|
+
} else {
|
|
926
|
+
inherits = function inherits(ctor, superCtor) {
|
|
927
|
+
ctor.super_ = superCtor;
|
|
928
|
+
var TempCtor = function () {};
|
|
929
|
+
TempCtor.prototype = superCtor.prototype;
|
|
930
|
+
ctor.prototype = new TempCtor();
|
|
931
|
+
ctor.prototype.constructor = ctor;
|
|
932
|
+
};
|
|
933
|
+
}
|
|
934
|
+
var inherits$1 = inherits;
|
|
935
|
+
|
|
936
|
+
// Copyright Joyent, Inc. and other Node contributors.
|
|
937
|
+
var formatRegExp = /%[sdj%]/g;
|
|
938
|
+
function format(f) {
|
|
939
|
+
if (!isString(f)) {
|
|
940
|
+
var objects = [];
|
|
941
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
942
|
+
objects.push(inspect(arguments[i]));
|
|
943
|
+
}
|
|
944
|
+
return objects.join(' ');
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
var i = 1;
|
|
948
|
+
var args = arguments;
|
|
949
|
+
var len = args.length;
|
|
950
|
+
var str = String(f).replace(formatRegExp, function(x) {
|
|
951
|
+
if (x === '%%') return '%';
|
|
952
|
+
if (i >= len) return x;
|
|
953
|
+
switch (x) {
|
|
954
|
+
case '%s': return String(args[i++]);
|
|
955
|
+
case '%d': return Number(args[i++]);
|
|
956
|
+
case '%j':
|
|
957
|
+
try {
|
|
958
|
+
return JSON.stringify(args[i++]);
|
|
959
|
+
} catch (_) {
|
|
960
|
+
return '[Circular]';
|
|
961
|
+
}
|
|
962
|
+
default:
|
|
963
|
+
return x;
|
|
964
|
+
}
|
|
965
|
+
});
|
|
966
|
+
for (var x = args[i]; i < len; x = args[++i]) {
|
|
967
|
+
if (isNull(x) || !isObject(x)) {
|
|
968
|
+
str += ' ' + x;
|
|
969
|
+
} else {
|
|
970
|
+
str += ' ' + inspect(x);
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
return str;
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
// Mark that a method should not be used.
|
|
977
|
+
// Returns a modified function which warns once by default.
|
|
978
|
+
// If --no-deprecation is set, then it is a no-op.
|
|
979
|
+
function deprecate(fn, msg) {
|
|
980
|
+
// Allow for deprecating things in the process of starting up.
|
|
981
|
+
if (isUndefined(global.process)) {
|
|
982
|
+
return function() {
|
|
983
|
+
return deprecate(fn, msg).apply(this, arguments);
|
|
984
|
+
};
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
var warned = false;
|
|
988
|
+
function deprecated() {
|
|
989
|
+
if (!warned) {
|
|
990
|
+
{
|
|
991
|
+
console.error(msg);
|
|
992
|
+
}
|
|
993
|
+
warned = true;
|
|
994
|
+
}
|
|
995
|
+
return fn.apply(this, arguments);
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
return deprecated;
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
var debugs = {};
|
|
1002
|
+
var debugEnviron;
|
|
1003
|
+
function debuglog(set) {
|
|
1004
|
+
if (isUndefined(debugEnviron))
|
|
1005
|
+
debugEnviron = '';
|
|
1006
|
+
set = set.toUpperCase();
|
|
1007
|
+
if (!debugs[set]) {
|
|
1008
|
+
if (new RegExp('\\b' + set + '\\b', 'i').test(debugEnviron)) {
|
|
1009
|
+
var pid = 0;
|
|
1010
|
+
debugs[set] = function() {
|
|
1011
|
+
var msg = format.apply(null, arguments);
|
|
1012
|
+
console.error('%s %d: %s', set, pid, msg);
|
|
1013
|
+
};
|
|
1014
|
+
} else {
|
|
1015
|
+
debugs[set] = function() {};
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
1018
|
+
return debugs[set];
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
/**
|
|
1022
|
+
* Echos the value of a value. Trys to print the value out
|
|
1023
|
+
* in the best way possible given the different types.
|
|
1024
|
+
*
|
|
1025
|
+
* @param {Object} obj The object to print out.
|
|
1026
|
+
* @param {Object} opts Optional options object that alters the output.
|
|
1027
|
+
*/
|
|
1028
|
+
/* legacy: obj, showHidden, depth, colors*/
|
|
1029
|
+
function inspect(obj, opts) {
|
|
1030
|
+
// default options
|
|
1031
|
+
var ctx = {
|
|
1032
|
+
seen: [],
|
|
1033
|
+
stylize: stylizeNoColor
|
|
1034
|
+
};
|
|
1035
|
+
// legacy...
|
|
1036
|
+
if (arguments.length >= 3) ctx.depth = arguments[2];
|
|
1037
|
+
if (arguments.length >= 4) ctx.colors = arguments[3];
|
|
1038
|
+
if (isBoolean(opts)) {
|
|
1039
|
+
// legacy...
|
|
1040
|
+
ctx.showHidden = opts;
|
|
1041
|
+
} else if (opts) {
|
|
1042
|
+
// got an "options" object
|
|
1043
|
+
_extend(ctx, opts);
|
|
1044
|
+
}
|
|
1045
|
+
// set default options
|
|
1046
|
+
if (isUndefined(ctx.showHidden)) ctx.showHidden = false;
|
|
1047
|
+
if (isUndefined(ctx.depth)) ctx.depth = 2;
|
|
1048
|
+
if (isUndefined(ctx.colors)) ctx.colors = false;
|
|
1049
|
+
if (isUndefined(ctx.customInspect)) ctx.customInspect = true;
|
|
1050
|
+
if (ctx.colors) ctx.stylize = stylizeWithColor;
|
|
1051
|
+
return formatValue(ctx, obj, ctx.depth);
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics
|
|
1055
|
+
inspect.colors = {
|
|
1056
|
+
'bold' : [1, 22],
|
|
1057
|
+
'italic' : [3, 23],
|
|
1058
|
+
'underline' : [4, 24],
|
|
1059
|
+
'inverse' : [7, 27],
|
|
1060
|
+
'white' : [37, 39],
|
|
1061
|
+
'grey' : [90, 39],
|
|
1062
|
+
'black' : [30, 39],
|
|
1063
|
+
'blue' : [34, 39],
|
|
1064
|
+
'cyan' : [36, 39],
|
|
1065
|
+
'green' : [32, 39],
|
|
1066
|
+
'magenta' : [35, 39],
|
|
1067
|
+
'red' : [31, 39],
|
|
1068
|
+
'yellow' : [33, 39]
|
|
1069
|
+
};
|
|
1070
|
+
|
|
1071
|
+
// Don't use 'blue' not visible on cmd.exe
|
|
1072
|
+
inspect.styles = {
|
|
1073
|
+
'special': 'cyan',
|
|
1074
|
+
'number': 'yellow',
|
|
1075
|
+
'boolean': 'yellow',
|
|
1076
|
+
'undefined': 'grey',
|
|
1077
|
+
'null': 'bold',
|
|
1078
|
+
'string': 'green',
|
|
1079
|
+
'date': 'magenta',
|
|
1080
|
+
// "name": intentionally not styling
|
|
1081
|
+
'regexp': 'red'
|
|
1082
|
+
};
|
|
1083
|
+
|
|
1084
|
+
|
|
1085
|
+
function stylizeWithColor(str, styleType) {
|
|
1086
|
+
var style = inspect.styles[styleType];
|
|
1087
|
+
|
|
1088
|
+
if (style) {
|
|
1089
|
+
return '\u001b[' + inspect.colors[style][0] + 'm' + str +
|
|
1090
|
+
'\u001b[' + inspect.colors[style][1] + 'm';
|
|
1091
|
+
} else {
|
|
1092
|
+
return str;
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
|
|
1097
|
+
function stylizeNoColor(str, styleType) {
|
|
1098
|
+
return str;
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
|
|
1102
|
+
function arrayToHash(array) {
|
|
1103
|
+
var hash = {};
|
|
1104
|
+
|
|
1105
|
+
array.forEach(function(val, idx) {
|
|
1106
|
+
hash[val] = true;
|
|
1107
|
+
});
|
|
1108
|
+
|
|
1109
|
+
return hash;
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
|
|
1113
|
+
function formatValue(ctx, value, recurseTimes) {
|
|
1114
|
+
// Provide a hook for user-specified inspect functions.
|
|
1115
|
+
// Check that value is an object with an inspect function on it
|
|
1116
|
+
if (ctx.customInspect &&
|
|
1117
|
+
value &&
|
|
1118
|
+
isFunction(value.inspect) &&
|
|
1119
|
+
// Filter out the util module, it's inspect function is special
|
|
1120
|
+
value.inspect !== inspect &&
|
|
1121
|
+
// Also filter out any prototype objects using the circular check.
|
|
1122
|
+
!(value.constructor && value.constructor.prototype === value)) {
|
|
1123
|
+
var ret = value.inspect(recurseTimes, ctx);
|
|
1124
|
+
if (!isString(ret)) {
|
|
1125
|
+
ret = formatValue(ctx, ret, recurseTimes);
|
|
1126
|
+
}
|
|
1127
|
+
return ret;
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
// Primitive types cannot have properties
|
|
1131
|
+
var primitive = formatPrimitive(ctx, value);
|
|
1132
|
+
if (primitive) {
|
|
1133
|
+
return primitive;
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
// Look up the keys of the object.
|
|
1137
|
+
var keys = Object.keys(value);
|
|
1138
|
+
var visibleKeys = arrayToHash(keys);
|
|
1139
|
+
|
|
1140
|
+
if (ctx.showHidden) {
|
|
1141
|
+
keys = Object.getOwnPropertyNames(value);
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
// IE doesn't make error fields non-enumerable
|
|
1145
|
+
// http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx
|
|
1146
|
+
if (isError(value)
|
|
1147
|
+
&& (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {
|
|
1148
|
+
return formatError(value);
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
// Some type of object without properties can be shortcutted.
|
|
1152
|
+
if (keys.length === 0) {
|
|
1153
|
+
if (isFunction(value)) {
|
|
1154
|
+
var name = value.name ? ': ' + value.name : '';
|
|
1155
|
+
return ctx.stylize('[Function' + name + ']', 'special');
|
|
1156
|
+
}
|
|
1157
|
+
if (isRegExp(value)) {
|
|
1158
|
+
return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
|
|
1159
|
+
}
|
|
1160
|
+
if (isDate(value)) {
|
|
1161
|
+
return ctx.stylize(Date.prototype.toString.call(value), 'date');
|
|
1162
|
+
}
|
|
1163
|
+
if (isError(value)) {
|
|
1164
|
+
return formatError(value);
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
var base = '', array = false, braces = ['{', '}'];
|
|
1169
|
+
|
|
1170
|
+
// Make Array say that they are Array
|
|
1171
|
+
if (isArray$1(value)) {
|
|
1172
|
+
array = true;
|
|
1173
|
+
braces = ['[', ']'];
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
// Make functions say that they are functions
|
|
1177
|
+
if (isFunction(value)) {
|
|
1178
|
+
var n = value.name ? ': ' + value.name : '';
|
|
1179
|
+
base = ' [Function' + n + ']';
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
// Make RegExps say that they are RegExps
|
|
1183
|
+
if (isRegExp(value)) {
|
|
1184
|
+
base = ' ' + RegExp.prototype.toString.call(value);
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
// Make dates with properties first say the date
|
|
1188
|
+
if (isDate(value)) {
|
|
1189
|
+
base = ' ' + Date.prototype.toUTCString.call(value);
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
// Make error with message first say the error
|
|
1193
|
+
if (isError(value)) {
|
|
1194
|
+
base = ' ' + formatError(value);
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
if (keys.length === 0 && (!array || value.length == 0)) {
|
|
1198
|
+
return braces[0] + base + braces[1];
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
if (recurseTimes < 0) {
|
|
1202
|
+
if (isRegExp(value)) {
|
|
1203
|
+
return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
|
|
1204
|
+
} else {
|
|
1205
|
+
return ctx.stylize('[Object]', 'special');
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
ctx.seen.push(value);
|
|
1210
|
+
|
|
1211
|
+
var output;
|
|
1212
|
+
if (array) {
|
|
1213
|
+
output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);
|
|
1214
|
+
} else {
|
|
1215
|
+
output = keys.map(function(key) {
|
|
1216
|
+
return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);
|
|
1217
|
+
});
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1220
|
+
ctx.seen.pop();
|
|
1221
|
+
|
|
1222
|
+
return reduceToSingleString(output, base, braces);
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
|
|
1226
|
+
function formatPrimitive(ctx, value) {
|
|
1227
|
+
if (isUndefined(value))
|
|
1228
|
+
return ctx.stylize('undefined', 'undefined');
|
|
1229
|
+
if (isString(value)) {
|
|
1230
|
+
var simple = '\'' + JSON.stringify(value).replace(/^"|"$/g, '')
|
|
1231
|
+
.replace(/'/g, "\\'")
|
|
1232
|
+
.replace(/\\"/g, '"') + '\'';
|
|
1233
|
+
return ctx.stylize(simple, 'string');
|
|
1234
|
+
}
|
|
1235
|
+
if (isNumber(value))
|
|
1236
|
+
return ctx.stylize('' + value, 'number');
|
|
1237
|
+
if (isBoolean(value))
|
|
1238
|
+
return ctx.stylize('' + value, 'boolean');
|
|
1239
|
+
// For some reason typeof null is "object", so special case here.
|
|
1240
|
+
if (isNull(value))
|
|
1241
|
+
return ctx.stylize('null', 'null');
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1244
|
+
|
|
1245
|
+
function formatError(value) {
|
|
1246
|
+
return '[' + Error.prototype.toString.call(value) + ']';
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
|
|
1250
|
+
function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {
|
|
1251
|
+
var output = [];
|
|
1252
|
+
for (var i = 0, l = value.length; i < l; ++i) {
|
|
1253
|
+
if (hasOwnProperty(value, String(i))) {
|
|
1254
|
+
output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
|
|
1255
|
+
String(i), true));
|
|
1256
|
+
} else {
|
|
1257
|
+
output.push('');
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
keys.forEach(function(key) {
|
|
1261
|
+
if (!key.match(/^\d+$/)) {
|
|
1262
|
+
output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
|
|
1263
|
+
key, true));
|
|
1264
|
+
}
|
|
1265
|
+
});
|
|
1266
|
+
return output;
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
|
|
1270
|
+
function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
|
|
1271
|
+
var name, str, desc;
|
|
1272
|
+
desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };
|
|
1273
|
+
if (desc.get) {
|
|
1274
|
+
if (desc.set) {
|
|
1275
|
+
str = ctx.stylize('[Getter/Setter]', 'special');
|
|
1276
|
+
} else {
|
|
1277
|
+
str = ctx.stylize('[Getter]', 'special');
|
|
1278
|
+
}
|
|
1279
|
+
} else {
|
|
1280
|
+
if (desc.set) {
|
|
1281
|
+
str = ctx.stylize('[Setter]', 'special');
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
if (!hasOwnProperty(visibleKeys, key)) {
|
|
1285
|
+
name = '[' + key + ']';
|
|
1286
|
+
}
|
|
1287
|
+
if (!str) {
|
|
1288
|
+
if (ctx.seen.indexOf(desc.value) < 0) {
|
|
1289
|
+
if (isNull(recurseTimes)) {
|
|
1290
|
+
str = formatValue(ctx, desc.value, null);
|
|
1291
|
+
} else {
|
|
1292
|
+
str = formatValue(ctx, desc.value, recurseTimes - 1);
|
|
1293
|
+
}
|
|
1294
|
+
if (str.indexOf('\n') > -1) {
|
|
1295
|
+
if (array) {
|
|
1296
|
+
str = str.split('\n').map(function(line) {
|
|
1297
|
+
return ' ' + line;
|
|
1298
|
+
}).join('\n').substr(2);
|
|
1299
|
+
} else {
|
|
1300
|
+
str = '\n' + str.split('\n').map(function(line) {
|
|
1301
|
+
return ' ' + line;
|
|
1302
|
+
}).join('\n');
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
} else {
|
|
1306
|
+
str = ctx.stylize('[Circular]', 'special');
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
if (isUndefined(name)) {
|
|
1310
|
+
if (array && key.match(/^\d+$/)) {
|
|
1311
|
+
return str;
|
|
1312
|
+
}
|
|
1313
|
+
name = JSON.stringify('' + key);
|
|
1314
|
+
if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) {
|
|
1315
|
+
name = name.substr(1, name.length - 2);
|
|
1316
|
+
name = ctx.stylize(name, 'name');
|
|
1317
|
+
} else {
|
|
1318
|
+
name = name.replace(/'/g, "\\'")
|
|
1319
|
+
.replace(/\\"/g, '"')
|
|
1320
|
+
.replace(/(^"|"$)/g, "'");
|
|
1321
|
+
name = ctx.stylize(name, 'string');
|
|
1322
|
+
}
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
return name + ': ' + str;
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
|
|
1329
|
+
function reduceToSingleString(output, base, braces) {
|
|
1330
|
+
var length = output.reduce(function(prev, cur) {
|
|
1331
|
+
if (cur.indexOf('\n') >= 0) ;
|
|
1332
|
+
return prev + cur.replace(/\u001b\[\d\d?m/g, '').length + 1;
|
|
1333
|
+
}, 0);
|
|
1334
|
+
|
|
1335
|
+
if (length > 60) {
|
|
1336
|
+
return braces[0] +
|
|
1337
|
+
(base === '' ? '' : base + '\n ') +
|
|
1338
|
+
' ' +
|
|
1339
|
+
output.join(',\n ') +
|
|
1340
|
+
' ' +
|
|
1341
|
+
braces[1];
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1347
|
+
|
|
1348
|
+
// NOTE: These type checking functions intentionally don't use `instanceof`
|
|
1349
|
+
// because it is fragile and can be easily faked with `Object.create()`.
|
|
1350
|
+
function isArray$1(ar) {
|
|
1351
|
+
return Array.isArray(ar);
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
function isBoolean(arg) {
|
|
1355
|
+
return typeof arg === 'boolean';
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
function isNull(arg) {
|
|
1359
|
+
return arg === null;
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
function isNullOrUndefined(arg) {
|
|
1363
|
+
return arg == null;
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
function isNumber(arg) {
|
|
1367
|
+
return typeof arg === 'number';
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
function isString(arg) {
|
|
1371
|
+
return typeof arg === 'string';
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
function isSymbol(arg) {
|
|
1375
|
+
return typeof arg === 'symbol';
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
function isUndefined(arg) {
|
|
1379
|
+
return arg === void 0;
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
function isRegExp(re) {
|
|
1383
|
+
return isObject(re) && objectToString(re) === '[object RegExp]';
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
function isObject(arg) {
|
|
1387
|
+
return typeof arg === 'object' && arg !== null;
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1390
|
+
function isDate(d) {
|
|
1391
|
+
return isObject(d) && objectToString(d) === '[object Date]';
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
function isError(e) {
|
|
1395
|
+
return isObject(e) &&
|
|
1396
|
+
(objectToString(e) === '[object Error]' || e instanceof Error);
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
function isFunction(arg) {
|
|
1400
|
+
return typeof arg === 'function';
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1403
|
+
function isPrimitive(arg) {
|
|
1404
|
+
return arg === null ||
|
|
1405
|
+
typeof arg === 'boolean' ||
|
|
1406
|
+
typeof arg === 'number' ||
|
|
1407
|
+
typeof arg === 'string' ||
|
|
1408
|
+
typeof arg === 'symbol' || // ES6 symbol
|
|
1409
|
+
typeof arg === 'undefined';
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
function isBuffer(maybeBuf) {
|
|
1413
|
+
return Buffer.isBuffer(maybeBuf);
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
function objectToString(o) {
|
|
1417
|
+
return Object.prototype.toString.call(o);
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
|
|
1421
|
+
function pad(n) {
|
|
1422
|
+
return n < 10 ? '0' + n.toString(10) : n.toString(10);
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
|
|
1426
|
+
var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep',
|
|
1427
|
+
'Oct', 'Nov', 'Dec'];
|
|
1428
|
+
|
|
1429
|
+
// 26 Feb 16:19:34
|
|
1430
|
+
function timestamp() {
|
|
1431
|
+
var d = new Date();
|
|
1432
|
+
var time = [pad(d.getHours()),
|
|
1433
|
+
pad(d.getMinutes()),
|
|
1434
|
+
pad(d.getSeconds())].join(':');
|
|
1435
|
+
return [d.getDate(), months[d.getMonth()], time].join(' ');
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
|
|
1439
|
+
// log is just a thin wrapper to console.log that prepends a timestamp
|
|
1440
|
+
function log() {
|
|
1441
|
+
console.log('%s - %s', timestamp(), format.apply(null, arguments));
|
|
1442
|
+
}
|
|
1443
|
+
|
|
1444
|
+
function _extend(origin, add) {
|
|
1445
|
+
// Don't do anything if add isn't an object
|
|
1446
|
+
if (!add || !isObject(add)) return origin;
|
|
1447
|
+
|
|
1448
|
+
var keys = Object.keys(add);
|
|
1449
|
+
var i = keys.length;
|
|
1450
|
+
while (i--) {
|
|
1451
|
+
origin[keys[i]] = add[keys[i]];
|
|
1452
|
+
}
|
|
1453
|
+
return origin;
|
|
1454
|
+
}
|
|
1455
|
+
function hasOwnProperty(obj, prop) {
|
|
1456
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
var util = {
|
|
1460
|
+
inherits: inherits$1,
|
|
1461
|
+
_extend: _extend,
|
|
1462
|
+
log: log,
|
|
1463
|
+
isBuffer: isBuffer,
|
|
1464
|
+
isPrimitive: isPrimitive,
|
|
1465
|
+
isFunction: isFunction,
|
|
1466
|
+
isError: isError,
|
|
1467
|
+
isDate: isDate,
|
|
1468
|
+
isObject: isObject,
|
|
1469
|
+
isRegExp: isRegExp,
|
|
1470
|
+
isUndefined: isUndefined,
|
|
1471
|
+
isSymbol: isSymbol,
|
|
1472
|
+
isString: isString,
|
|
1473
|
+
isNumber: isNumber,
|
|
1474
|
+
isNullOrUndefined: isNullOrUndefined,
|
|
1475
|
+
isNull: isNull,
|
|
1476
|
+
isBoolean: isBoolean,
|
|
1477
|
+
isArray: isArray$1,
|
|
1478
|
+
inspect: inspect,
|
|
1479
|
+
deprecate: deprecate,
|
|
1480
|
+
format: format,
|
|
1481
|
+
debuglog: debuglog
|
|
1482
|
+
};
|
|
1483
|
+
|
|
904
1484
|
var require$$2 = {};
|
|
905
1485
|
|
|
906
1486
|
var node = createCommonjsModule(function (module, exports) {
|
|
@@ -1153,14 +1733,14 @@ function init (debug) {
|
|
|
1153
1733
|
|
|
1154
1734
|
exports.enable(load());
|
|
1155
1735
|
});
|
|
1156
|
-
node.init;
|
|
1157
|
-
node.log;
|
|
1158
|
-
node.formatArgs;
|
|
1159
|
-
node.save;
|
|
1160
|
-
node.load;
|
|
1161
|
-
node.useColors;
|
|
1162
|
-
node.colors;
|
|
1163
|
-
node.inspectOpts;
|
|
1736
|
+
var node_1 = node.init;
|
|
1737
|
+
var node_2 = node.log;
|
|
1738
|
+
var node_3 = node.formatArgs;
|
|
1739
|
+
var node_4 = node.save;
|
|
1740
|
+
var node_5 = node.load;
|
|
1741
|
+
var node_6 = node.useColors;
|
|
1742
|
+
var node_7 = node.colors;
|
|
1743
|
+
var node_8 = node.inspectOpts;
|
|
1164
1744
|
|
|
1165
1745
|
var src = createCommonjsModule(function (module) {
|
|
1166
1746
|
/**
|
|
@@ -1561,239 +2141,199 @@ module.exports = exports['default'];
|
|
|
1561
2141
|
|
|
1562
2142
|
var youTubePlayer = unwrapExports(dist);
|
|
1563
2143
|
|
|
1564
|
-
function
|
|
1565
|
-
|
|
1566
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2144
|
+
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; }; }();
|
|
1567
2145
|
|
|
1568
|
-
function
|
|
1569
|
-
|
|
1570
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
2146
|
+
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; };
|
|
1571
2147
|
|
|
1572
|
-
function
|
|
1573
|
-
|
|
1574
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1575
|
-
|
|
1576
|
-
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); }; }
|
|
1577
|
-
|
|
1578
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1579
|
-
|
|
1580
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1581
|
-
|
|
1582
|
-
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; } }
|
|
2148
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1583
2149
|
|
|
1584
|
-
function
|
|
2150
|
+
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; }
|
|
1585
2151
|
|
|
1586
|
-
function
|
|
2152
|
+
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; }
|
|
1587
2153
|
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
*
|
|
1593
|
-
*
|
|
1594
|
-
* @param {Object} prevProps
|
|
1595
|
-
* @param {Object} props
|
|
2154
|
+
/**
|
|
2155
|
+
* Check whether a `props` change should result in the video being updated.
|
|
2156
|
+
*
|
|
2157
|
+
* @param {Object} prevProps
|
|
2158
|
+
* @param {Object} props
|
|
1596
2159
|
*/
|
|
1597
|
-
|
|
1598
2160
|
function shouldUpdateVideo(prevProps, props) {
|
|
1599
2161
|
// A changing video should always trigger an update
|
|
1600
2162
|
if (prevProps.videoId !== props.videoId) {
|
|
1601
2163
|
return true;
|
|
1602
|
-
}
|
|
1603
|
-
// update.
|
|
1604
|
-
|
|
2164
|
+
}
|
|
1605
2165
|
|
|
2166
|
+
// Otherwise, a change in the start/end time playerVars also requires a player
|
|
2167
|
+
// update.
|
|
1606
2168
|
var prevVars = prevProps.opts.playerVars || {};
|
|
1607
2169
|
var vars = props.opts.playerVars || {};
|
|
2170
|
+
|
|
1608
2171
|
return prevVars.start !== vars.start || prevVars.end !== vars.end;
|
|
1609
2172
|
}
|
|
1610
|
-
/**
|
|
1611
|
-
* Neutralize API options that only require a video update, leaving only options
|
|
1612
|
-
* that require a player reset. The results can then be compared to see if a
|
|
1613
|
-
* player reset is necessary.
|
|
1614
|
-
*
|
|
1615
|
-
* @param {Object} opts
|
|
1616
|
-
*/
|
|
1617
|
-
|
|
1618
2173
|
|
|
2174
|
+
/**
|
|
2175
|
+
* Neutralise API options that only require a video update, leaving only options
|
|
2176
|
+
* that require a player reset. The results can then be compared to see if a
|
|
2177
|
+
* player reset is necessary.
|
|
2178
|
+
*
|
|
2179
|
+
* @param {Object} opts
|
|
2180
|
+
*/
|
|
1619
2181
|
function filterResetOptions(opts) {
|
|
1620
|
-
return
|
|
1621
|
-
playerVars:
|
|
2182
|
+
return _extends({}, opts, {
|
|
2183
|
+
playerVars: _extends({}, opts.playerVars, {
|
|
1622
2184
|
autoplay: 0,
|
|
1623
2185
|
start: 0,
|
|
1624
2186
|
end: 0
|
|
1625
|
-
}
|
|
2187
|
+
})
|
|
1626
2188
|
});
|
|
1627
2189
|
}
|
|
1628
|
-
/**
|
|
1629
|
-
* Check whether a `props` change should result in the player being reset.
|
|
1630
|
-
* The player is reset when the `props.opts` change, except if the only change
|
|
1631
|
-
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
1632
|
-
* those.
|
|
1633
|
-
*
|
|
1634
|
-
* @param {Object} prevProps
|
|
1635
|
-
* @param {Object} props
|
|
1636
|
-
*/
|
|
1637
|
-
|
|
1638
2190
|
|
|
2191
|
+
/**
|
|
2192
|
+
* Check whether a `props` change should result in the player being reset.
|
|
2193
|
+
* The player is reset when the `props.opts` change, except if the only change
|
|
2194
|
+
* is in the `start` and `end` playerVars, because a video update can deal with
|
|
2195
|
+
* those.
|
|
2196
|
+
*
|
|
2197
|
+
* @param {Object} prevProps
|
|
2198
|
+
* @param {Object} props
|
|
2199
|
+
*/
|
|
1639
2200
|
function shouldResetPlayer(prevProps, props) {
|
|
1640
2201
|
return !fastDeepEqual(filterResetOptions(prevProps.opts), filterResetOptions(props.opts));
|
|
1641
2202
|
}
|
|
1642
|
-
/**
|
|
1643
|
-
* Check whether a props change should result in an id or className update.
|
|
1644
|
-
*
|
|
1645
|
-
* @param {Object} prevProps
|
|
1646
|
-
* @param {Object} props
|
|
1647
|
-
*/
|
|
1648
|
-
|
|
1649
2203
|
|
|
2204
|
+
/**
|
|
2205
|
+
* Check whether a props change should result in an id or className update.
|
|
2206
|
+
*
|
|
2207
|
+
* @param {Object} prevProps
|
|
2208
|
+
* @param {Object} props
|
|
2209
|
+
*/
|
|
1650
2210
|
function shouldUpdatePlayer(prevProps, props) {
|
|
1651
2211
|
return prevProps.id !== props.id || prevProps.className !== props.className;
|
|
1652
2212
|
}
|
|
1653
2213
|
|
|
1654
|
-
var YouTube =
|
|
2214
|
+
var YouTube = function (_React$Component) {
|
|
1655
2215
|
_inherits(YouTube, _React$Component);
|
|
1656
2216
|
|
|
1657
|
-
var _super = _createSuper(YouTube);
|
|
1658
|
-
|
|
1659
|
-
/**
|
|
1660
|
-
* Expose PlayerState constants for convenience. These constants can also be
|
|
1661
|
-
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
1662
|
-
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
1663
|
-
*/
|
|
1664
2217
|
function YouTube(props) {
|
|
1665
|
-
var _this;
|
|
1666
|
-
|
|
1667
2218
|
_classCallCheck(this, YouTube);
|
|
1668
2219
|
|
|
1669
|
-
_this =
|
|
2220
|
+
var _this = _possibleConstructorReturn(this, (YouTube.__proto__ || Object.getPrototypeOf(YouTube)).call(this, props));
|
|
1670
2221
|
|
|
1671
|
-
|
|
2222
|
+
_this.onPlayerReady = function (event) {
|
|
1672
2223
|
return _this.props.onReady(event);
|
|
1673
|
-
}
|
|
2224
|
+
};
|
|
1674
2225
|
|
|
1675
|
-
|
|
2226
|
+
_this.onPlayerError = function (event) {
|
|
1676
2227
|
return _this.props.onError(event);
|
|
1677
|
-
}
|
|
2228
|
+
};
|
|
1678
2229
|
|
|
1679
|
-
|
|
2230
|
+
_this.onPlayerStateChange = function (event) {
|
|
1680
2231
|
_this.props.onStateChange(event);
|
|
1681
|
-
|
|
1682
2232
|
switch (event.data) {
|
|
2233
|
+
|
|
1683
2234
|
case YouTube.PlayerState.ENDED:
|
|
1684
2235
|
_this.props.onEnd(event);
|
|
1685
|
-
|
|
1686
2236
|
break;
|
|
1687
2237
|
|
|
1688
2238
|
case YouTube.PlayerState.PLAYING:
|
|
1689
2239
|
_this.props.onPlay(event);
|
|
1690
|
-
|
|
1691
2240
|
break;
|
|
1692
2241
|
|
|
1693
2242
|
case YouTube.PlayerState.PAUSED:
|
|
1694
2243
|
_this.props.onPause(event);
|
|
1695
|
-
|
|
1696
2244
|
break;
|
|
1697
2245
|
}
|
|
1698
|
-
}
|
|
2246
|
+
};
|
|
1699
2247
|
|
|
1700
|
-
|
|
2248
|
+
_this.onPlayerPlaybackRateChange = function (event) {
|
|
1701
2249
|
return _this.props.onPlaybackRateChange(event);
|
|
1702
|
-
}
|
|
2250
|
+
};
|
|
1703
2251
|
|
|
1704
|
-
|
|
2252
|
+
_this.onPlayerPlaybackQualityChange = function (event) {
|
|
1705
2253
|
return _this.props.onPlaybackQualityChange(event);
|
|
1706
|
-
}
|
|
2254
|
+
};
|
|
1707
2255
|
|
|
1708
|
-
|
|
2256
|
+
_this.createPlayer = function () {
|
|
1709
2257
|
// do not attempt to create a player server-side, it won't work
|
|
1710
|
-
if (typeof document === 'undefined') return;
|
|
1711
|
-
|
|
1712
|
-
var playerOpts =
|
|
2258
|
+
if (typeof document === 'undefined') return;
|
|
2259
|
+
// create player
|
|
2260
|
+
var playerOpts = _extends({}, _this.props.opts, {
|
|
1713
2261
|
// preload the `videoId` video if one is already given
|
|
1714
2262
|
videoId: _this.props.videoId
|
|
1715
2263
|
});
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
2264
|
+
_this.internalPlayer = youTubePlayer(_this.container, playerOpts);
|
|
2265
|
+
// attach event handlers
|
|
1719
2266
|
_this.internalPlayer.on('ready', _this.onPlayerReady);
|
|
1720
|
-
|
|
1721
2267
|
_this.internalPlayer.on('error', _this.onPlayerError);
|
|
1722
|
-
|
|
1723
2268
|
_this.internalPlayer.on('stateChange', _this.onPlayerStateChange);
|
|
1724
|
-
|
|
1725
2269
|
_this.internalPlayer.on('playbackRateChange', _this.onPlayerPlaybackRateChange);
|
|
1726
|
-
|
|
1727
2270
|
_this.internalPlayer.on('playbackQualityChange', _this.onPlayerPlaybackQualityChange);
|
|
1728
|
-
}
|
|
2271
|
+
};
|
|
1729
2272
|
|
|
1730
|
-
|
|
2273
|
+
_this.resetPlayer = function () {
|
|
1731
2274
|
return _this.internalPlayer.destroy().then(_this.createPlayer);
|
|
1732
|
-
}
|
|
2275
|
+
};
|
|
1733
2276
|
|
|
1734
|
-
|
|
2277
|
+
_this.updatePlayer = function () {
|
|
1735
2278
|
_this.internalPlayer.getIframe().then(function (iframe) {
|
|
1736
2279
|
if (_this.props.id) iframe.setAttribute('id', _this.props.id);else iframe.removeAttribute('id');
|
|
1737
2280
|
if (_this.props.className) iframe.setAttribute('class', _this.props.className);else iframe.removeAttribute('class');
|
|
1738
2281
|
});
|
|
1739
|
-
}
|
|
1740
|
-
|
|
1741
|
-
_defineProperty(_assertThisInitialized(_this), "getInternalPlayer", function () {
|
|
1742
|
-
return _this.internalPlayer;
|
|
1743
|
-
});
|
|
2282
|
+
};
|
|
1744
2283
|
|
|
1745
|
-
|
|
2284
|
+
_this.updateVideo = function () {
|
|
1746
2285
|
if (typeof _this.props.videoId === 'undefined' || _this.props.videoId === null) {
|
|
1747
2286
|
_this.internalPlayer.stopVideo();
|
|
1748
|
-
|
|
1749
2287
|
return;
|
|
1750
|
-
}
|
|
1751
|
-
|
|
2288
|
+
}
|
|
1752
2289
|
|
|
2290
|
+
// set queueing options
|
|
1753
2291
|
var autoplay = false;
|
|
1754
2292
|
var opts = {
|
|
1755
2293
|
videoId: _this.props.videoId
|
|
1756
2294
|
};
|
|
1757
|
-
|
|
1758
2295
|
if ('playerVars' in _this.props.opts) {
|
|
1759
2296
|
autoplay = _this.props.opts.playerVars.autoplay === 1;
|
|
1760
|
-
|
|
1761
2297
|
if ('start' in _this.props.opts.playerVars) {
|
|
1762
2298
|
opts.startSeconds = _this.props.opts.playerVars.start;
|
|
1763
2299
|
}
|
|
1764
|
-
|
|
1765
2300
|
if ('end' in _this.props.opts.playerVars) {
|
|
1766
2301
|
opts.endSeconds = _this.props.opts.playerVars.end;
|
|
1767
2302
|
}
|
|
1768
|
-
}
|
|
1769
|
-
|
|
2303
|
+
}
|
|
1770
2304
|
|
|
2305
|
+
// if autoplay is enabled loadVideoById
|
|
1771
2306
|
if (autoplay) {
|
|
1772
2307
|
_this.internalPlayer.loadVideoById(opts);
|
|
1773
|
-
|
|
1774
2308
|
return;
|
|
1775
|
-
}
|
|
1776
|
-
|
|
1777
|
-
|
|
2309
|
+
}
|
|
2310
|
+
// default behaviour just cues the video
|
|
1778
2311
|
_this.internalPlayer.cueVideoById(opts);
|
|
1779
|
-
}
|
|
2312
|
+
};
|
|
1780
2313
|
|
|
1781
|
-
|
|
2314
|
+
_this.refContainer = function (container) {
|
|
1782
2315
|
_this.container = container;
|
|
1783
|
-
}
|
|
2316
|
+
};
|
|
1784
2317
|
|
|
1785
2318
|
_this.container = null;
|
|
1786
2319
|
_this.internalPlayer = null;
|
|
1787
2320
|
return _this;
|
|
1788
2321
|
}
|
|
1789
2322
|
|
|
2323
|
+
/**
|
|
2324
|
+
* Expose PlayerState constants for convenience. These constants can also be
|
|
2325
|
+
* accessed through the global YT object after the YouTube IFrame API is instantiated.
|
|
2326
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
2327
|
+
*/
|
|
2328
|
+
|
|
2329
|
+
|
|
1790
2330
|
_createClass(YouTube, [{
|
|
1791
|
-
key:
|
|
2331
|
+
key: 'componentDidMount',
|
|
1792
2332
|
value: function componentDidMount() {
|
|
1793
2333
|
this.createPlayer();
|
|
1794
2334
|
}
|
|
1795
2335
|
}, {
|
|
1796
|
-
key:
|
|
2336
|
+
key: 'componentDidUpdate',
|
|
1797
2337
|
value: function componentDidUpdate(prevProps) {
|
|
1798
2338
|
if (shouldUpdatePlayer(prevProps, this.props)) {
|
|
1799
2339
|
this.updatePlayer();
|
|
@@ -1808,58 +2348,112 @@ var YouTube = /*#__PURE__*/function (_React$Component) {
|
|
|
1808
2348
|
}
|
|
1809
2349
|
}
|
|
1810
2350
|
}, {
|
|
1811
|
-
key:
|
|
2351
|
+
key: 'componentWillUnmount',
|
|
1812
2352
|
value: function componentWillUnmount() {
|
|
1813
|
-
/**
|
|
1814
|
-
* Note: The `youtube-player` package that is used promisifies all
|
|
1815
|
-
* Player API calls, which introduces a delay of a tick before it actually
|
|
1816
|
-
* gets destroyed. Since React attempts to remove the element instantly
|
|
1817
|
-
* this method isn't quick enough to reset the container element.
|
|
2353
|
+
/**
|
|
2354
|
+
* Note: The `youtube-player` package that is used promisifies all Youtube
|
|
2355
|
+
* Player API calls, which introduces a delay of a tick before it actually
|
|
2356
|
+
* gets destroyed. Since React attempts to remove the element instantly
|
|
2357
|
+
* this method isn't quick enough to reset the container element.
|
|
1818
2358
|
*/
|
|
1819
2359
|
this.internalPlayer.destroy();
|
|
1820
2360
|
}
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
*
|
|
1824
|
-
*
|
|
1825
|
-
*
|
|
2361
|
+
|
|
2362
|
+
/**
|
|
2363
|
+
* https://developers.google.com/youtube/iframe_api_reference#onReady
|
|
2364
|
+
*
|
|
2365
|
+
* @param {Object} event
|
|
2366
|
+
* @param {Object} target - player object
|
|
2367
|
+
*/
|
|
2368
|
+
|
|
2369
|
+
|
|
2370
|
+
/**
|
|
2371
|
+
* https://developers.google.com/youtube/iframe_api_reference#onError
|
|
2372
|
+
*
|
|
2373
|
+
* @param {Object} event
|
|
2374
|
+
* @param {Integer} data - error type
|
|
2375
|
+
* @param {Object} target - player object
|
|
2376
|
+
*/
|
|
2377
|
+
|
|
2378
|
+
|
|
2379
|
+
/**
|
|
2380
|
+
* https://developers.google.com/youtube/iframe_api_reference#onStateChange
|
|
2381
|
+
*
|
|
2382
|
+
* @param {Object} event
|
|
2383
|
+
* @param {Integer} data - status change type
|
|
2384
|
+
* @param {Object} target - actual YT player
|
|
2385
|
+
*/
|
|
2386
|
+
|
|
2387
|
+
|
|
2388
|
+
/**
|
|
2389
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackRateChange
|
|
2390
|
+
*
|
|
2391
|
+
* @param {Object} event
|
|
2392
|
+
* @param {Float} data - playback rate
|
|
2393
|
+
* @param {Object} target - actual YT player
|
|
2394
|
+
*/
|
|
2395
|
+
|
|
2396
|
+
|
|
2397
|
+
/**
|
|
2398
|
+
* https://developers.google.com/youtube/iframe_api_reference#onPlaybackQualityChange
|
|
2399
|
+
*
|
|
2400
|
+
* @param {Object} event
|
|
2401
|
+
* @param {String} data - playback quality
|
|
2402
|
+
* @param {Object} target - actual YT player
|
|
2403
|
+
*/
|
|
2404
|
+
|
|
2405
|
+
|
|
2406
|
+
/**
|
|
2407
|
+
* Initialize the Youtube Player API on the container and attach event handlers
|
|
2408
|
+
*/
|
|
2409
|
+
|
|
2410
|
+
|
|
2411
|
+
/**
|
|
2412
|
+
* Shorthand for destroying and then re-creating the Youtube Player
|
|
2413
|
+
*/
|
|
2414
|
+
|
|
2415
|
+
|
|
2416
|
+
/**
|
|
2417
|
+
* Method to update the id and class of the Youtube Player iframe.
|
|
2418
|
+
* React should update this automatically but since the Youtube Player API
|
|
2419
|
+
* replaced the DIV that is mounted by React we need to do this manually.
|
|
2420
|
+
*/
|
|
2421
|
+
|
|
2422
|
+
|
|
2423
|
+
/**
|
|
2424
|
+
* Call Youtube Player API methods to update the currently playing video.
|
|
2425
|
+
* Depeding on the `opts.playerVars.autoplay` this function uses one of two
|
|
2426
|
+
* Youtube Player API methods to update the video.
|
|
1826
2427
|
*/
|
|
1827
2428
|
|
|
1828
2429
|
}, {
|
|
1829
|
-
key:
|
|
2430
|
+
key: 'render',
|
|
1830
2431
|
value: function render() {
|
|
1831
|
-
return
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
id: this.props.id,
|
|
1835
|
-
|
|
1836
|
-
ref: this.refContainer
|
|
1837
|
-
}));
|
|
2432
|
+
return React__default.createElement(
|
|
2433
|
+
'div',
|
|
2434
|
+
{ className: this.props.containerClassName },
|
|
2435
|
+
React__default.createElement('div', { id: this.props.id, className: this.props.className, ref: this.refContainer })
|
|
2436
|
+
);
|
|
1838
2437
|
}
|
|
1839
2438
|
}]);
|
|
1840
2439
|
|
|
1841
2440
|
return YouTube;
|
|
1842
|
-
}(
|
|
1843
|
-
|
|
1844
|
-
_defineProperty(YouTube, "PlayerState", {
|
|
1845
|
-
UNSTARTED: -1,
|
|
1846
|
-
ENDED: 0,
|
|
1847
|
-
PLAYING: 1,
|
|
1848
|
-
PAUSED: 2,
|
|
1849
|
-
BUFFERING: 3,
|
|
1850
|
-
CUED: 5
|
|
1851
|
-
});
|
|
2441
|
+
}(React__default.Component);
|
|
1852
2442
|
|
|
1853
2443
|
YouTube.propTypes = {
|
|
1854
2444
|
videoId: PropTypes.string,
|
|
2445
|
+
|
|
1855
2446
|
// custom ID for player element
|
|
1856
2447
|
id: PropTypes.string,
|
|
2448
|
+
|
|
1857
2449
|
// custom class name for player element
|
|
1858
2450
|
className: PropTypes.string,
|
|
1859
2451
|
// custom class name for player container element
|
|
1860
2452
|
containerClassName: PropTypes.string,
|
|
2453
|
+
|
|
1861
2454
|
// https://developers.google.com/youtube/iframe_api_reference#Loading_a_Video_Player
|
|
1862
2455
|
opts: PropTypes.objectOf(PropTypes.any),
|
|
2456
|
+
|
|
1863
2457
|
// event subscriptions
|
|
1864
2458
|
onReady: PropTypes.func,
|
|
1865
2459
|
onError: PropTypes.func,
|
|
@@ -1871,7 +2465,6 @@ YouTube.propTypes = {
|
|
|
1871
2465
|
onPlaybackQualityChange: PropTypes.func
|
|
1872
2466
|
};
|
|
1873
2467
|
YouTube.defaultProps = {
|
|
1874
|
-
videoId: null,
|
|
1875
2468
|
id: null,
|
|
1876
2469
|
className: null,
|
|
1877
2470
|
opts: {},
|
|
@@ -1885,6 +2478,14 @@ YouTube.defaultProps = {
|
|
|
1885
2478
|
onPlaybackRateChange: function onPlaybackRateChange() {},
|
|
1886
2479
|
onPlaybackQualityChange: function onPlaybackQualityChange() {}
|
|
1887
2480
|
};
|
|
2481
|
+
YouTube.PlayerState = {
|
|
2482
|
+
UNSTARTED: -1,
|
|
2483
|
+
ENDED: 0,
|
|
2484
|
+
PLAYING: 1,
|
|
2485
|
+
PAUSED: 2,
|
|
2486
|
+
BUFFERING: 3,
|
|
2487
|
+
CUED: 5
|
|
2488
|
+
};
|
|
1888
2489
|
|
|
1889
2490
|
var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
1890
2491
|
var url = _ref.url,
|
|
@@ -1986,11 +2587,11 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
|
|
|
1986
2587
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment);
|
|
1987
2588
|
};
|
|
1988
2589
|
|
|
1989
|
-
return
|
|
2590
|
+
return React__default.createElement(
|
|
1990
2591
|
'div',
|
|
1991
2592
|
{ id: 'fluid-video-container' },
|
|
1992
|
-
|
|
1993
|
-
|
|
2593
|
+
React__default.createElement(YouTube, { className: 'fluid-iframe', videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd }),
|
|
2594
|
+
React__default.createElement(
|
|
1994
2595
|
'style',
|
|
1995
2596
|
{ jsx: 'true' },
|
|
1996
2597
|
'\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 '
|
|
@@ -2003,20 +2604,20 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2003
2604
|
content = _ref.content,
|
|
2004
2605
|
getSerializers = _ref.getSerializers;
|
|
2005
2606
|
|
|
2006
|
-
return
|
|
2607
|
+
return React__default.createElement(
|
|
2007
2608
|
'article',
|
|
2008
2609
|
{ className: 'sidebar' },
|
|
2009
|
-
|
|
2610
|
+
React__default.createElement(
|
|
2010
2611
|
'div',
|
|
2011
2612
|
null,
|
|
2012
|
-
|
|
2613
|
+
React__default.createElement(
|
|
2013
2614
|
'h3',
|
|
2014
2615
|
null,
|
|
2015
2616
|
caption
|
|
2016
2617
|
),
|
|
2017
|
-
|
|
2618
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
2018
2619
|
),
|
|
2019
|
-
|
|
2620
|
+
React__default.createElement(
|
|
2020
2621
|
'style',
|
|
2021
2622
|
{ jsx: 'true' },
|
|
2022
2623
|
'\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 '
|
|
@@ -2027,18 +2628,18 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2027
2628
|
var TableShow = function TableShow(_ref) {
|
|
2028
2629
|
var rows = _ref.rows;
|
|
2029
2630
|
|
|
2030
|
-
return
|
|
2631
|
+
return React__default.createElement(
|
|
2031
2632
|
Table,
|
|
2032
2633
|
{ bordered: true, hover: true, responsive: true },
|
|
2033
|
-
|
|
2634
|
+
React__default.createElement(
|
|
2034
2635
|
'tbody',
|
|
2035
2636
|
null,
|
|
2036
2637
|
rows && rows.map(function (row) {
|
|
2037
|
-
return
|
|
2638
|
+
return React__default.createElement(
|
|
2038
2639
|
'tr',
|
|
2039
2640
|
{ key: row._key },
|
|
2040
2641
|
row.cells && row.cells.map(function (cell, index) {
|
|
2041
|
-
return cell &&
|
|
2642
|
+
return cell && React__default.createElement(
|
|
2042
2643
|
'td',
|
|
2043
2644
|
{ key: index },
|
|
2044
2645
|
cell
|
|
@@ -2141,18 +2742,18 @@ var Media = function Media(_ref) {
|
|
|
2141
2742
|
margin: imageMargin
|
|
2142
2743
|
};
|
|
2143
2744
|
|
|
2144
|
-
return
|
|
2745
|
+
return React__default.createElement(
|
|
2145
2746
|
Figure$1,
|
|
2146
2747
|
{ className: 'd-block ' + className, style: figureStyle },
|
|
2147
|
-
|
|
2748
|
+
React__default.createElement(
|
|
2148
2749
|
'a',
|
|
2149
2750
|
{ href: uploadDoc.asset.url, target: blank ? '_blank' : '_self' },
|
|
2150
|
-
|
|
2751
|
+
React__default.createElement(
|
|
2151
2752
|
LazyLoad,
|
|
2152
2753
|
{ once: true },
|
|
2153
|
-
|
|
2754
|
+
React__default.createElement(Figure$1.Image, _extends$1({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor(poster).url() }, alt && { alt: alt }))
|
|
2154
2755
|
),
|
|
2155
|
-
caption &&
|
|
2756
|
+
caption && React__default.createElement(
|
|
2156
2757
|
Figure$1.Caption,
|
|
2157
2758
|
{ className: 'media-caption' },
|
|
2158
2759
|
caption
|
|
@@ -2160,9 +2761,9 @@ var Media = function Media(_ref) {
|
|
|
2160
2761
|
)
|
|
2161
2762
|
);
|
|
2162
2763
|
} else if (caption && caption !== '') {
|
|
2163
|
-
return
|
|
2764
|
+
return React__default.createElement(
|
|
2164
2765
|
'a',
|
|
2165
|
-
_extends({}, uploadDoc.downloadMedia ? {
|
|
2766
|
+
_extends$1({}, uploadDoc.downloadMedia ? {
|
|
2166
2767
|
href: uploadDoc.asset.url + '?dl='
|
|
2167
2768
|
} : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
|
|
2168
2769
|
style: { paddingLeft: '4px', paddingRight: '4px' },
|
|
@@ -2180,10 +2781,10 @@ var IFrame = function IFrame(_ref) {
|
|
|
2180
2781
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
2181
2782
|
|
|
2182
2783
|
url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
|
|
2183
|
-
return
|
|
2784
|
+
return React__default.createElement(
|
|
2184
2785
|
'div',
|
|
2185
2786
|
{ className: 'd-block text-center mb-3' },
|
|
2186
|
-
|
|
2787
|
+
React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: 'true', webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
|
|
2187
2788
|
);
|
|
2188
2789
|
};
|
|
2189
2790
|
|
|
@@ -2278,10 +2879,10 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2278
2879
|
Segment.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
|
|
2279
2880
|
};
|
|
2280
2881
|
|
|
2281
|
-
return
|
|
2882
|
+
return React__default.createElement(
|
|
2282
2883
|
'div',
|
|
2283
2884
|
null,
|
|
2284
|
-
vidLoaded &&
|
|
2885
|
+
vidLoaded && React__default.createElement(
|
|
2285
2886
|
'video',
|
|
2286
2887
|
{
|
|
2287
2888
|
poster: thumbnail || '',
|
|
@@ -2299,7 +2900,7 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
2299
2900
|
onPlay: function onPlay(e) {
|
|
2300
2901
|
return handleOnPlay(e);
|
|
2301
2902
|
} },
|
|
2302
|
-
|
|
2903
|
+
React__default.createElement('source', { src: url, type: 'video/mp4' }),
|
|
2303
2904
|
'Your browser does not support the video tag.'
|
|
2304
2905
|
)
|
|
2305
2906
|
);
|
|
@@ -2336,7 +2937,7 @@ var Video = function Video(_ref) {
|
|
|
2336
2937
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2337
2938
|
//console.log('success:', success.ref)
|
|
2338
2939
|
var player = success.ref;
|
|
2339
|
-
if (_typeof
|
|
2940
|
+
if (_typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2340
2941
|
player.ima3.settings.debug = true;
|
|
2341
2942
|
if (targeting.content_placement && targeting.document_url) {
|
|
2342
2943
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -2434,53 +3035,53 @@ var Video = function Video(_ref) {
|
|
|
2434
3035
|
|
|
2435
3036
|
if (source === 'brightcove' && accountIDs.brightcove) {
|
|
2436
3037
|
if (videoID) {
|
|
2437
|
-
return
|
|
3038
|
+
return React__default.createElement(
|
|
2438
3039
|
'div',
|
|
2439
3040
|
null,
|
|
2440
|
-
|
|
3041
|
+
React__default.createElement(ReactPlayerLoader, {
|
|
2441
3042
|
onSuccess: onVideoSuccess,
|
|
2442
3043
|
accountId: accountIDs.brightcove.accountId,
|
|
2443
3044
|
videoId: videoID,
|
|
2444
3045
|
playerId: accountIDs.brightcove.playerId,
|
|
2445
3046
|
attrs: { className: 'brightcove-fluid', autoplay: 'muted' }
|
|
2446
3047
|
}),
|
|
2447
|
-
|
|
3048
|
+
React__default.createElement(
|
|
2448
3049
|
'style',
|
|
2449
3050
|
{ jsx: 'true' },
|
|
2450
3051
|
'\n .brightcove-fluid {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n width: 100%;\n margin-bottom: 1rem;\n }\n .brightcove-fluid .video-js {\n height: 100%;\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n '
|
|
2451
3052
|
)
|
|
2452
3053
|
);
|
|
2453
3054
|
} else if (playlistID) {
|
|
2454
|
-
return
|
|
3055
|
+
return React__default.createElement(
|
|
2455
3056
|
'div',
|
|
2456
3057
|
null,
|
|
2457
|
-
|
|
3058
|
+
React__default.createElement(ReactPlayerLoader, {
|
|
2458
3059
|
accountId: accountIDs.brightcove.accountId,
|
|
2459
3060
|
playlistId: playlistID,
|
|
2460
3061
|
playerId: accountIDs.brightcove.playerId,
|
|
2461
3062
|
onSuccess: onVideoSuccess,
|
|
2462
3063
|
attrs: { className: 'brightcove-fluid brightcove-playlist', autoplay: 'muted' }
|
|
2463
3064
|
}),
|
|
2464
|
-
|
|
3065
|
+
React__default.createElement(
|
|
2465
3066
|
'style',
|
|
2466
3067
|
{ jsx: 'true' },
|
|
2467
3068
|
'\n .brightcove-fluid {\n position: relative;\n padding-bottom: 56.25%; /* 16:9 */\n height: 0;\n width: 100%;\n margin-bottom: 1rem;\n }\n .brightcove-fluid .video-js {\n height: 100%;\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n '
|
|
2468
3069
|
)
|
|
2469
3070
|
);
|
|
2470
3071
|
} else if (experienceID) {
|
|
2471
|
-
return
|
|
3072
|
+
return React__default.createElement(
|
|
2472
3073
|
'div',
|
|
2473
3074
|
{ className: 'brightcove-playlist', style: { position: 'relative', display: 'block', margin: '0px auto' } },
|
|
2474
|
-
videoLoaded &&
|
|
3075
|
+
videoLoaded && React__default.createElement('div', { 'data-experience': experienceID })
|
|
2475
3076
|
);
|
|
2476
3077
|
}
|
|
2477
3078
|
return null;
|
|
2478
3079
|
}
|
|
2479
3080
|
if (source === 'mp4') {
|
|
2480
|
-
return
|
|
3081
|
+
return React__default.createElement(
|
|
2481
3082
|
'div',
|
|
2482
3083
|
null,
|
|
2483
|
-
|
|
3084
|
+
React__default.createElement(VideoMp4, { url: node.mp4url, thumbnail: null, vidLoaded: true })
|
|
2484
3085
|
);
|
|
2485
3086
|
}
|
|
2486
3087
|
|
|
@@ -2691,9 +3292,9 @@ exports.DEPRECATED_CONFIG_PROPS = DEPRECATED_CONFIG_PROPS;
|
|
|
2691
3292
|
});
|
|
2692
3293
|
|
|
2693
3294
|
unwrapExports(props);
|
|
2694
|
-
props.DEPRECATED_CONFIG_PROPS;
|
|
2695
|
-
props.defaultProps;
|
|
2696
|
-
props.propTypes;
|
|
3295
|
+
var props_1 = props.DEPRECATED_CONFIG_PROPS;
|
|
3296
|
+
var props_2 = props.defaultProps;
|
|
3297
|
+
var props_3 = props.propTypes;
|
|
2697
3298
|
|
|
2698
3299
|
var isMergeableObject = function isMergeableObject(value) {
|
|
2699
3300
|
return isNonNullObject(value)
|
|
@@ -2858,17 +3459,11 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
2858
3459
|
|
|
2859
3460
|
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; }
|
|
2860
3461
|
|
|
2861
|
-
function
|
|
2862
|
-
|
|
2863
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3462
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
2864
3463
|
|
|
2865
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
3464
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
2866
3465
|
|
|
2867
|
-
function
|
|
2868
|
-
|
|
2869
|
-
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; }
|
|
2870
|
-
|
|
2871
|
-
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; }
|
|
3466
|
+
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; }
|
|
2872
3467
|
|
|
2873
3468
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
2874
3469
|
|
|
@@ -2998,12 +3593,12 @@ function getSDK(url, sdkGlobal) {
|
|
|
2998
3593
|
|
|
2999
3594
|
function getConfig(props$1, defaultProps, showWarning) {
|
|
3000
3595
|
var config = (0, _deepmerge["default"])(defaultProps.config, props$1.config);
|
|
3001
|
-
|
|
3002
|
-
var
|
|
3003
|
-
|
|
3596
|
+
var _iteratorNormalCompletion = true;
|
|
3597
|
+
var _didIteratorError = false;
|
|
3598
|
+
var _iteratorError = undefined;
|
|
3004
3599
|
|
|
3005
3600
|
try {
|
|
3006
|
-
for (_iterator.
|
|
3601
|
+
for (var _iterator = props.DEPRECATED_CONFIG_PROPS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
3007
3602
|
var p = _step.value;
|
|
3008
3603
|
|
|
3009
3604
|
if (props$1[p]) {
|
|
@@ -3018,9 +3613,18 @@ function getConfig(props$1, defaultProps, showWarning) {
|
|
|
3018
3613
|
}
|
|
3019
3614
|
}
|
|
3020
3615
|
} catch (err) {
|
|
3021
|
-
|
|
3616
|
+
_didIteratorError = true;
|
|
3617
|
+
_iteratorError = err;
|
|
3022
3618
|
} finally {
|
|
3023
|
-
|
|
3619
|
+
try {
|
|
3620
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
3621
|
+
_iterator["return"]();
|
|
3622
|
+
}
|
|
3623
|
+
} finally {
|
|
3624
|
+
if (_didIteratorError) {
|
|
3625
|
+
throw _iteratorError;
|
|
3626
|
+
}
|
|
3627
|
+
}
|
|
3024
3628
|
}
|
|
3025
3629
|
|
|
3026
3630
|
return config;
|
|
@@ -3085,7 +3689,7 @@ function isEqual(a, b) {
|
|
|
3085
3689
|
return true;
|
|
3086
3690
|
}
|
|
3087
3691
|
|
|
3088
|
-
if ((0,
|
|
3692
|
+
if ((0, React__default.isValidElement)(a) && (0, React__default.isValidElement)(b)) {
|
|
3089
3693
|
return true;
|
|
3090
3694
|
}
|
|
3091
3695
|
|
|
@@ -3128,17 +3732,17 @@ function isMediaStream(url) {
|
|
|
3128
3732
|
});
|
|
3129
3733
|
|
|
3130
3734
|
unwrapExports(utils);
|
|
3131
|
-
utils.parseStartTime;
|
|
3132
|
-
utils.parseEndTime;
|
|
3133
|
-
utils.randomString;
|
|
3134
|
-
utils.queryString;
|
|
3135
|
-
utils.getSDK;
|
|
3136
|
-
utils.getConfig;
|
|
3137
|
-
utils.omit;
|
|
3138
|
-
utils.callPlayer;
|
|
3139
|
-
utils.isObject;
|
|
3140
|
-
utils.isEqual;
|
|
3141
|
-
utils.isMediaStream;
|
|
3735
|
+
var utils_1 = utils.parseStartTime;
|
|
3736
|
+
var utils_2 = utils.parseEndTime;
|
|
3737
|
+
var utils_3 = utils.randomString;
|
|
3738
|
+
var utils_4 = utils.queryString;
|
|
3739
|
+
var utils_5 = utils.getSDK;
|
|
3740
|
+
var utils_6 = utils.getConfig;
|
|
3741
|
+
var utils_7 = utils.omit;
|
|
3742
|
+
var utils_8 = utils.callPlayer;
|
|
3743
|
+
var utils_9 = utils.isObject;
|
|
3744
|
+
var utils_10 = utils.isEqual;
|
|
3745
|
+
var utils_11 = utils.isMediaStream;
|
|
3142
3746
|
|
|
3143
3747
|
var Player_1 = createCommonjsModule(function (module, exports) {
|
|
3144
3748
|
|
|
@@ -3147,7 +3751,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3147
3751
|
});
|
|
3148
3752
|
exports["default"] = void 0;
|
|
3149
3753
|
|
|
3150
|
-
var _react = _interopRequireWildcard(
|
|
3754
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3151
3755
|
|
|
3152
3756
|
|
|
3153
3757
|
|
|
@@ -3167,16 +3771,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3167
3771
|
|
|
3168
3772
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3169
3773
|
|
|
3170
|
-
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); }; }
|
|
3171
|
-
|
|
3172
3774
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3173
3775
|
|
|
3174
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3175
|
-
|
|
3176
|
-
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; } }
|
|
3177
|
-
|
|
3178
3776
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3179
3777
|
|
|
3778
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3779
|
+
|
|
3180
3780
|
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); }
|
|
3181
3781
|
|
|
3182
3782
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3185,12 +3785,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3185
3785
|
|
|
3186
3786
|
var SEEK_ON_PLAY_EXPIRY = 5000;
|
|
3187
3787
|
|
|
3188
|
-
var Player =
|
|
3788
|
+
var Player =
|
|
3789
|
+
/*#__PURE__*/
|
|
3790
|
+
function (_Component) {
|
|
3189
3791
|
_inherits(Player, _Component);
|
|
3190
3792
|
|
|
3191
|
-
var _super = _createSuper(Player);
|
|
3192
|
-
|
|
3193
3793
|
function Player() {
|
|
3794
|
+
var _getPrototypeOf2;
|
|
3795
|
+
|
|
3194
3796
|
var _this;
|
|
3195
3797
|
|
|
3196
3798
|
_classCallCheck(this, Player);
|
|
@@ -3199,7 +3801,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3199
3801
|
_args[_key] = arguments[_key];
|
|
3200
3802
|
}
|
|
3201
3803
|
|
|
3202
|
-
_this =
|
|
3804
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Player)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
3203
3805
|
|
|
3204
3806
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
3205
3807
|
|
|
@@ -3524,7 +4126,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|
|
3524
4126
|
return null;
|
|
3525
4127
|
}
|
|
3526
4128
|
|
|
3527
|
-
return
|
|
4129
|
+
return _react["default"].createElement(Player, _extends({}, this.props, {
|
|
3528
4130
|
ref: this.ref,
|
|
3529
4131
|
onReady: this.handleReady,
|
|
3530
4132
|
onPlay: this.handlePlay,
|
|
@@ -3557,7 +4159,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3557
4159
|
});
|
|
3558
4160
|
exports["default"] = createSinglePlayer;
|
|
3559
4161
|
|
|
3560
|
-
var _react = _interopRequireWildcard(
|
|
4162
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3561
4163
|
|
|
3562
4164
|
|
|
3563
4165
|
|
|
@@ -3585,16 +4187,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3585
4187
|
|
|
3586
4188
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3587
4189
|
|
|
3588
|
-
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); }; }
|
|
3589
|
-
|
|
3590
4190
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3591
4191
|
|
|
3592
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3593
|
-
|
|
3594
|
-
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; } }
|
|
3595
|
-
|
|
3596
4192
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3597
4193
|
|
|
4194
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4195
|
+
|
|
3598
4196
|
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); }
|
|
3599
4197
|
|
|
3600
4198
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -3606,12 +4204,14 @@ var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
|
3606
4204
|
function createSinglePlayer(activePlayer) {
|
|
3607
4205
|
var _class, _temp;
|
|
3608
4206
|
|
|
3609
|
-
return _temp = _class =
|
|
4207
|
+
return _temp = _class =
|
|
4208
|
+
/*#__PURE__*/
|
|
4209
|
+
function (_Component) {
|
|
3610
4210
|
_inherits(SinglePlayer, _Component);
|
|
3611
4211
|
|
|
3612
|
-
var _super = _createSuper(SinglePlayer);
|
|
3613
|
-
|
|
3614
4212
|
function SinglePlayer() {
|
|
4213
|
+
var _getPrototypeOf2;
|
|
4214
|
+
|
|
3615
4215
|
var _this;
|
|
3616
4216
|
|
|
3617
4217
|
_classCallCheck(this, SinglePlayer);
|
|
@@ -3620,7 +4220,7 @@ function createSinglePlayer(activePlayer) {
|
|
|
3620
4220
|
args[_key] = arguments[_key];
|
|
3621
4221
|
}
|
|
3622
4222
|
|
|
3623
|
-
_this =
|
|
4223
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SinglePlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3624
4224
|
|
|
3625
4225
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
3626
4226
|
|
|
@@ -3688,12 +4288,12 @@ function createSinglePlayer(activePlayer) {
|
|
|
3688
4288
|
height = _this$props.height,
|
|
3689
4289
|
Wrapper = _this$props.wrapper;
|
|
3690
4290
|
var otherProps = (0, utils.omit)(this.props, SUPPORTED_PROPS, props.DEPRECATED_CONFIG_PROPS);
|
|
3691
|
-
return
|
|
4291
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
3692
4292
|
style: _objectSpread({}, style, {
|
|
3693
4293
|
width: width,
|
|
3694
4294
|
height: height
|
|
3695
4295
|
})
|
|
3696
|
-
}, otherProps),
|
|
4296
|
+
}, otherProps), _react["default"].createElement(_Player["default"], _extends({}, this.props, {
|
|
3697
4297
|
ref: this.ref,
|
|
3698
4298
|
activePlayer: activePlayer,
|
|
3699
4299
|
config: this.config
|
|
@@ -3715,7 +4315,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3715
4315
|
});
|
|
3716
4316
|
exports["default"] = exports.YouTube = void 0;
|
|
3717
4317
|
|
|
3718
|
-
var _react = _interopRequireWildcard(
|
|
4318
|
+
var _react = _interopRequireWildcard(React__default);
|
|
3719
4319
|
|
|
3720
4320
|
|
|
3721
4321
|
|
|
@@ -3739,31 +4339,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
3739
4339
|
|
|
3740
4340
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
3741
4341
|
|
|
3742
|
-
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); }; }
|
|
3743
|
-
|
|
3744
4342
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
3745
4343
|
|
|
3746
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
3747
|
-
|
|
3748
|
-
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; } }
|
|
3749
|
-
|
|
3750
4344
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
3751
4345
|
|
|
4346
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4347
|
+
|
|
3752
4348
|
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); }
|
|
3753
4349
|
|
|
3754
4350
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
3755
4351
|
|
|
3756
4352
|
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; }
|
|
3757
4353
|
|
|
3758
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
3759
|
-
|
|
3760
|
-
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."); }
|
|
3761
|
-
|
|
3762
|
-
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); }
|
|
4354
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
3763
4355
|
|
|
3764
|
-
function
|
|
4356
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
3765
4357
|
|
|
3766
|
-
function _iterableToArrayLimit(arr, i) { if (
|
|
4358
|
+
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; }
|
|
3767
4359
|
|
|
3768
4360
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3769
4361
|
|
|
@@ -3788,12 +4380,14 @@ function parsePlaylist(url) {
|
|
|
3788
4380
|
return {};
|
|
3789
4381
|
}
|
|
3790
4382
|
|
|
3791
|
-
var YouTube =
|
|
4383
|
+
var YouTube =
|
|
4384
|
+
/*#__PURE__*/
|
|
4385
|
+
function (_Component) {
|
|
3792
4386
|
_inherits(YouTube, _Component);
|
|
3793
4387
|
|
|
3794
|
-
var _super = _createSuper(YouTube);
|
|
3795
|
-
|
|
3796
4388
|
function YouTube() {
|
|
4389
|
+
var _getPrototypeOf2;
|
|
4390
|
+
|
|
3797
4391
|
var _this;
|
|
3798
4392
|
|
|
3799
4393
|
_classCallCheck(this, YouTube);
|
|
@@ -3802,7 +4396,7 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3802
4396
|
args[_key] = arguments[_key];
|
|
3803
4397
|
}
|
|
3804
4398
|
|
|
3805
|
-
_this =
|
|
4399
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(YouTube)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3806
4400
|
|
|
3807
4401
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
3808
4402
|
|
|
@@ -3990,9 +4584,9 @@ var YouTube = /*#__PURE__*/function (_Component) {
|
|
|
3990
4584
|
height: '100%',
|
|
3991
4585
|
display: display
|
|
3992
4586
|
};
|
|
3993
|
-
return
|
|
4587
|
+
return _react["default"].createElement("div", {
|
|
3994
4588
|
style: style
|
|
3995
|
-
},
|
|
4589
|
+
}, _react["default"].createElement("div", {
|
|
3996
4590
|
ref: this.ref
|
|
3997
4591
|
}));
|
|
3998
4592
|
}
|
|
@@ -4015,7 +4609,7 @@ exports["default"] = _default;
|
|
|
4015
4609
|
});
|
|
4016
4610
|
|
|
4017
4611
|
unwrapExports(YouTube_1);
|
|
4018
|
-
YouTube_1.YouTube;
|
|
4612
|
+
var YouTube_2 = YouTube_1.YouTube;
|
|
4019
4613
|
|
|
4020
4614
|
var SoundCloud_1 = createCommonjsModule(function (module, exports) {
|
|
4021
4615
|
|
|
@@ -4024,7 +4618,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4024
4618
|
});
|
|
4025
4619
|
exports["default"] = exports.SoundCloud = void 0;
|
|
4026
4620
|
|
|
4027
|
-
var _react = _interopRequireWildcard(
|
|
4621
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4028
4622
|
|
|
4029
4623
|
|
|
4030
4624
|
|
|
@@ -4048,16 +4642,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4048
4642
|
|
|
4049
4643
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4050
4644
|
|
|
4051
|
-
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); }; }
|
|
4052
|
-
|
|
4053
4645
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4054
4646
|
|
|
4055
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4056
|
-
|
|
4057
|
-
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; } }
|
|
4058
|
-
|
|
4059
4647
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4060
4648
|
|
|
4649
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4650
|
+
|
|
4061
4651
|
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); }
|
|
4062
4652
|
|
|
4063
4653
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4066,14 +4656,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
4066
4656
|
|
|
4067
4657
|
var SDK_URL = 'https://w.soundcloud.com/player/api.js';
|
|
4068
4658
|
var SDK_GLOBAL = 'SC';
|
|
4069
|
-
var MATCH_URL = /(
|
|
4659
|
+
var MATCH_URL = /(soundcloud\.com|snd\.sc)\/.+$/;
|
|
4070
4660
|
|
|
4071
|
-
var SoundCloud =
|
|
4661
|
+
var SoundCloud =
|
|
4662
|
+
/*#__PURE__*/
|
|
4663
|
+
function (_Component) {
|
|
4072
4664
|
_inherits(SoundCloud, _Component);
|
|
4073
4665
|
|
|
4074
|
-
var _super = _createSuper(SoundCloud);
|
|
4075
|
-
|
|
4076
4666
|
function SoundCloud() {
|
|
4667
|
+
var _getPrototypeOf2;
|
|
4668
|
+
|
|
4077
4669
|
var _this;
|
|
4078
4670
|
|
|
4079
4671
|
_classCallCheck(this, SoundCloud);
|
|
@@ -4082,7 +4674,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4082
4674
|
args[_key] = arguments[_key];
|
|
4083
4675
|
}
|
|
4084
4676
|
|
|
4085
|
-
_this =
|
|
4677
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(SoundCloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4086
4678
|
|
|
4087
4679
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4088
4680
|
|
|
@@ -4203,7 +4795,7 @@ var SoundCloud = /*#__PURE__*/function (_Component) {
|
|
|
4203
4795
|
height: '100%',
|
|
4204
4796
|
display: display
|
|
4205
4797
|
};
|
|
4206
|
-
return
|
|
4798
|
+
return _react["default"].createElement("iframe", {
|
|
4207
4799
|
ref: this.ref,
|
|
4208
4800
|
src: "https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),
|
|
4209
4801
|
style: style,
|
|
@@ -4232,7 +4824,7 @@ exports["default"] = _default;
|
|
|
4232
4824
|
});
|
|
4233
4825
|
|
|
4234
4826
|
unwrapExports(SoundCloud_1);
|
|
4235
|
-
SoundCloud_1.SoundCloud;
|
|
4827
|
+
var SoundCloud_2 = SoundCloud_1.SoundCloud;
|
|
4236
4828
|
|
|
4237
4829
|
var Vimeo_1 = createCommonjsModule(function (module, exports) {
|
|
4238
4830
|
|
|
@@ -4241,7 +4833,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4241
4833
|
});
|
|
4242
4834
|
exports["default"] = exports.Vimeo = void 0;
|
|
4243
4835
|
|
|
4244
|
-
var _react = _interopRequireWildcard(
|
|
4836
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4245
4837
|
|
|
4246
4838
|
|
|
4247
4839
|
|
|
@@ -4265,16 +4857,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4265
4857
|
|
|
4266
4858
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4267
4859
|
|
|
4268
|
-
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); }; }
|
|
4269
|
-
|
|
4270
4860
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4271
4861
|
|
|
4272
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4273
|
-
|
|
4274
|
-
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; } }
|
|
4275
|
-
|
|
4276
4862
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4277
4863
|
|
|
4864
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4865
|
+
|
|
4278
4866
|
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); }
|
|
4279
4867
|
|
|
4280
4868
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4286,12 +4874,14 @@ var SDK_GLOBAL = 'Vimeo';
|
|
|
4286
4874
|
var MATCH_URL = /vimeo\.com\/.+/;
|
|
4287
4875
|
var MATCH_FILE_URL = /vimeo\.com\/external\/[0-9]+\..+/;
|
|
4288
4876
|
|
|
4289
|
-
var Vimeo =
|
|
4877
|
+
var Vimeo =
|
|
4878
|
+
/*#__PURE__*/
|
|
4879
|
+
function (_Component) {
|
|
4290
4880
|
_inherits(Vimeo, _Component);
|
|
4291
4881
|
|
|
4292
|
-
var _super = _createSuper(Vimeo);
|
|
4293
|
-
|
|
4294
4882
|
function Vimeo() {
|
|
4883
|
+
var _getPrototypeOf2;
|
|
4884
|
+
|
|
4295
4885
|
var _this;
|
|
4296
4886
|
|
|
4297
4887
|
_classCallCheck(this, Vimeo);
|
|
@@ -4300,7 +4890,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4300
4890
|
args[_key] = arguments[_key];
|
|
4301
4891
|
}
|
|
4302
4892
|
|
|
4303
|
-
_this =
|
|
4893
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Vimeo)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4304
4894
|
|
|
4305
4895
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4306
4896
|
|
|
@@ -4457,7 +5047,7 @@ var Vimeo = /*#__PURE__*/function (_Component) {
|
|
|
4457
5047
|
overflow: 'hidden',
|
|
4458
5048
|
display: display
|
|
4459
5049
|
};
|
|
4460
|
-
return
|
|
5050
|
+
return _react["default"].createElement("div", {
|
|
4461
5051
|
key: this.props.url,
|
|
4462
5052
|
ref: this.ref,
|
|
4463
5053
|
style: style
|
|
@@ -4488,7 +5078,7 @@ exports["default"] = _default;
|
|
|
4488
5078
|
});
|
|
4489
5079
|
|
|
4490
5080
|
unwrapExports(Vimeo_1);
|
|
4491
|
-
Vimeo_1.Vimeo;
|
|
5081
|
+
var Vimeo_2 = Vimeo_1.Vimeo;
|
|
4492
5082
|
|
|
4493
5083
|
var Facebook_1 = createCommonjsModule(function (module, exports) {
|
|
4494
5084
|
|
|
@@ -4497,7 +5087,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4497
5087
|
});
|
|
4498
5088
|
exports["default"] = exports.Facebook = void 0;
|
|
4499
5089
|
|
|
4500
|
-
var _react = _interopRequireWildcard(
|
|
5090
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4501
5091
|
|
|
4502
5092
|
|
|
4503
5093
|
|
|
@@ -4517,16 +5107,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4517
5107
|
|
|
4518
5108
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4519
5109
|
|
|
4520
|
-
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); }; }
|
|
4521
|
-
|
|
4522
5110
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4523
5111
|
|
|
4524
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4525
|
-
|
|
4526
|
-
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; } }
|
|
4527
|
-
|
|
4528
5112
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4529
5113
|
|
|
5114
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5115
|
+
|
|
4530
5116
|
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); }
|
|
4531
5117
|
|
|
4532
5118
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4539,12 +5125,14 @@ var SDK_GLOBAL_READY = 'fbAsyncInit';
|
|
|
4539
5125
|
var MATCH_URL = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
|
|
4540
5126
|
var PLAYER_ID_PREFIX = 'facebook-player-';
|
|
4541
5127
|
|
|
4542
|
-
var Facebook =
|
|
5128
|
+
var Facebook =
|
|
5129
|
+
/*#__PURE__*/
|
|
5130
|
+
function (_Component) {
|
|
4543
5131
|
_inherits(Facebook, _Component);
|
|
4544
5132
|
|
|
4545
|
-
var _super = _createSuper(Facebook);
|
|
4546
|
-
|
|
4547
5133
|
function Facebook() {
|
|
5134
|
+
var _getPrototypeOf2;
|
|
5135
|
+
|
|
4548
5136
|
var _this;
|
|
4549
5137
|
|
|
4550
5138
|
_classCallCheck(this, Facebook);
|
|
@@ -4553,7 +5141,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4553
5141
|
args[_key] = arguments[_key];
|
|
4554
5142
|
}
|
|
4555
5143
|
|
|
4556
|
-
_this =
|
|
5144
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Facebook)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4557
5145
|
|
|
4558
5146
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4559
5147
|
|
|
@@ -4669,7 +5257,7 @@ var Facebook = /*#__PURE__*/function (_Component) {
|
|
|
4669
5257
|
width: '100%',
|
|
4670
5258
|
height: '100%'
|
|
4671
5259
|
};
|
|
4672
|
-
return
|
|
5260
|
+
return _react["default"].createElement("div", {
|
|
4673
5261
|
style: style,
|
|
4674
5262
|
id: this.playerID,
|
|
4675
5263
|
className: "fb-video",
|
|
@@ -4700,7 +5288,7 @@ exports["default"] = _default;
|
|
|
4700
5288
|
});
|
|
4701
5289
|
|
|
4702
5290
|
unwrapExports(Facebook_1);
|
|
4703
|
-
Facebook_1.Facebook;
|
|
5291
|
+
var Facebook_2 = Facebook_1.Facebook;
|
|
4704
5292
|
|
|
4705
5293
|
var Streamable_1 = createCommonjsModule(function (module, exports) {
|
|
4706
5294
|
|
|
@@ -4709,7 +5297,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4709
5297
|
});
|
|
4710
5298
|
exports["default"] = exports.Streamable = void 0;
|
|
4711
5299
|
|
|
4712
|
-
var _react = _interopRequireWildcard(
|
|
5300
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4713
5301
|
|
|
4714
5302
|
|
|
4715
5303
|
|
|
@@ -4729,16 +5317,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4729
5317
|
|
|
4730
5318
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4731
5319
|
|
|
4732
|
-
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); }; }
|
|
4733
|
-
|
|
4734
5320
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4735
5321
|
|
|
4736
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4737
|
-
|
|
4738
|
-
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; } }
|
|
4739
|
-
|
|
4740
5322
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4741
5323
|
|
|
5324
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5325
|
+
|
|
4742
5326
|
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); }
|
|
4743
5327
|
|
|
4744
5328
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4749,12 +5333,14 @@ var SDK_URL = 'https://cdn.embed.ly/player-0.1.0.min.js';
|
|
|
4749
5333
|
var SDK_GLOBAL = 'playerjs';
|
|
4750
5334
|
var MATCH_URL = /streamable\.com\/([a-z0-9]+)$/;
|
|
4751
5335
|
|
|
4752
|
-
var Streamable =
|
|
5336
|
+
var Streamable =
|
|
5337
|
+
/*#__PURE__*/
|
|
5338
|
+
function (_Component) {
|
|
4753
5339
|
_inherits(Streamable, _Component);
|
|
4754
5340
|
|
|
4755
|
-
var _super = _createSuper(Streamable);
|
|
4756
|
-
|
|
4757
5341
|
function Streamable() {
|
|
5342
|
+
var _getPrototypeOf2;
|
|
5343
|
+
|
|
4758
5344
|
var _this;
|
|
4759
5345
|
|
|
4760
5346
|
_classCallCheck(this, Streamable);
|
|
@@ -4763,7 +5349,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4763
5349
|
args[_key] = arguments[_key];
|
|
4764
5350
|
}
|
|
4765
5351
|
|
|
4766
|
-
_this =
|
|
5352
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Streamable)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4767
5353
|
|
|
4768
5354
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4769
5355
|
|
|
@@ -4883,7 +5469,7 @@ var Streamable = /*#__PURE__*/function (_Component) {
|
|
|
4883
5469
|
width: '100%',
|
|
4884
5470
|
height: '100%'
|
|
4885
5471
|
};
|
|
4886
|
-
return
|
|
5472
|
+
return _react["default"].createElement("iframe", {
|
|
4887
5473
|
ref: this.ref,
|
|
4888
5474
|
src: "https://streamable.com/o/".concat(id),
|
|
4889
5475
|
frameBorder: "0",
|
|
@@ -4911,7 +5497,7 @@ exports["default"] = _default;
|
|
|
4911
5497
|
});
|
|
4912
5498
|
|
|
4913
5499
|
unwrapExports(Streamable_1);
|
|
4914
|
-
Streamable_1.Streamable;
|
|
5500
|
+
var Streamable_2 = Streamable_1.Streamable;
|
|
4915
5501
|
|
|
4916
5502
|
var Wistia_1 = createCommonjsModule(function (module, exports) {
|
|
4917
5503
|
|
|
@@ -4920,7 +5506,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4920
5506
|
});
|
|
4921
5507
|
exports["default"] = exports.Wistia = void 0;
|
|
4922
5508
|
|
|
4923
|
-
var _react = _interopRequireWildcard(
|
|
5509
|
+
var _react = _interopRequireWildcard(React__default);
|
|
4924
5510
|
|
|
4925
5511
|
|
|
4926
5512
|
|
|
@@ -4944,16 +5530,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4944
5530
|
|
|
4945
5531
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4946
5532
|
|
|
4947
|
-
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); }; }
|
|
4948
|
-
|
|
4949
5533
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
4950
5534
|
|
|
4951
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
4952
|
-
|
|
4953
|
-
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; } }
|
|
4954
|
-
|
|
4955
5535
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
4956
5536
|
|
|
5537
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5538
|
+
|
|
4957
5539
|
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); }
|
|
4958
5540
|
|
|
4959
5541
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -4964,48 +5546,26 @@ var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
|
|
|
4964
5546
|
var SDK_GLOBAL = 'Wistia';
|
|
4965
5547
|
var MATCH_URL = /(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/;
|
|
4966
5548
|
|
|
4967
|
-
var Wistia =
|
|
5549
|
+
var Wistia =
|
|
5550
|
+
/*#__PURE__*/
|
|
5551
|
+
function (_Component) {
|
|
4968
5552
|
_inherits(Wistia, _Component);
|
|
4969
5553
|
|
|
4970
|
-
var _super = _createSuper(Wistia);
|
|
4971
|
-
|
|
4972
5554
|
function Wistia() {
|
|
5555
|
+
var _getPrototypeOf2;
|
|
5556
|
+
|
|
4973
5557
|
var _this;
|
|
4974
5558
|
|
|
4975
5559
|
_classCallCheck(this, Wistia);
|
|
4976
5560
|
|
|
4977
|
-
for (var _len = arguments.length,
|
|
4978
|
-
|
|
5561
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5562
|
+
args[_key] = arguments[_key];
|
|
4979
5563
|
}
|
|
4980
5564
|
|
|
4981
|
-
_this =
|
|
5565
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Wistia)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
4982
5566
|
|
|
4983
5567
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
4984
5568
|
|
|
4985
|
-
_defineProperty(_assertThisInitialized(_this), "onPlay", function () {
|
|
4986
|
-
var _this$props;
|
|
4987
|
-
|
|
4988
|
-
return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
|
|
4989
|
-
});
|
|
4990
|
-
|
|
4991
|
-
_defineProperty(_assertThisInitialized(_this), "onPause", function () {
|
|
4992
|
-
var _this$props2;
|
|
4993
|
-
|
|
4994
|
-
return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
|
|
4995
|
-
});
|
|
4996
|
-
|
|
4997
|
-
_defineProperty(_assertThisInitialized(_this), "onSeek", function () {
|
|
4998
|
-
var _this$props3;
|
|
4999
|
-
|
|
5000
|
-
return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
|
|
5001
|
-
});
|
|
5002
|
-
|
|
5003
|
-
_defineProperty(_assertThisInitialized(_this), "onEnded", function () {
|
|
5004
|
-
var _this$props4;
|
|
5005
|
-
|
|
5006
|
-
return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
|
|
5007
|
-
});
|
|
5008
|
-
|
|
5009
5569
|
_defineProperty(_assertThisInitialized(_this), "mute", function () {
|
|
5010
5570
|
_this.callPlayer('mute');
|
|
5011
5571
|
});
|
|
@@ -5027,13 +5587,17 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5027
5587
|
value: function load(url) {
|
|
5028
5588
|
var _this2 = this;
|
|
5029
5589
|
|
|
5030
|
-
var _this$
|
|
5031
|
-
playing = _this$
|
|
5032
|
-
muted = _this$
|
|
5033
|
-
controls = _this$
|
|
5034
|
-
_onReady = _this$
|
|
5035
|
-
|
|
5036
|
-
|
|
5590
|
+
var _this$props = this.props,
|
|
5591
|
+
playing = _this$props.playing,
|
|
5592
|
+
muted = _this$props.muted,
|
|
5593
|
+
controls = _this$props.controls,
|
|
5594
|
+
_onReady = _this$props.onReady,
|
|
5595
|
+
onPlay = _this$props.onPlay,
|
|
5596
|
+
onPause = _this$props.onPause,
|
|
5597
|
+
onSeek = _this$props.onSeek,
|
|
5598
|
+
onEnded = _this$props.onEnded,
|
|
5599
|
+
config = _this$props.config,
|
|
5600
|
+
onError = _this$props.onError;
|
|
5037
5601
|
(0, utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function () {
|
|
5038
5602
|
window._wq = window._wq || [];
|
|
5039
5603
|
|
|
@@ -5050,28 +5614,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5050
5614
|
|
|
5051
5615
|
_this2.unbind();
|
|
5052
5616
|
|
|
5053
|
-
_this2.player.bind('play',
|
|
5617
|
+
_this2.player.bind('play', onPlay);
|
|
5054
5618
|
|
|
5055
|
-
_this2.player.bind('pause',
|
|
5619
|
+
_this2.player.bind('pause', onPause);
|
|
5056
5620
|
|
|
5057
|
-
_this2.player.bind('seek',
|
|
5621
|
+
_this2.player.bind('seek', onSeek);
|
|
5058
5622
|
|
|
5059
|
-
_this2.player.bind('end',
|
|
5623
|
+
_this2.player.bind('end', onEnded);
|
|
5060
5624
|
|
|
5061
5625
|
_onReady();
|
|
5062
5626
|
}
|
|
5063
5627
|
});
|
|
5064
5628
|
}, onError);
|
|
5065
5629
|
}
|
|
5066
|
-
}, {
|
|
5067
|
-
key: "unbind",
|
|
5068
|
-
value: function unbind() {
|
|
5069
|
-
this.player.unbind('play', this.onPlay);
|
|
5070
|
-
this.player.unbind('pause', this.onPause);
|
|
5071
|
-
this.player.unbind('seek', this.onSeek);
|
|
5072
|
-
this.player.unbind('end', this.onEnded);
|
|
5073
|
-
} // Proxy methods to prevent listener leaks
|
|
5074
|
-
|
|
5075
5630
|
}, {
|
|
5076
5631
|
key: "play",
|
|
5077
5632
|
value: function play() {
|
|
@@ -5082,6 +5637,19 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5082
5637
|
value: function pause() {
|
|
5083
5638
|
this.callPlayer('pause');
|
|
5084
5639
|
}
|
|
5640
|
+
}, {
|
|
5641
|
+
key: "unbind",
|
|
5642
|
+
value: function unbind() {
|
|
5643
|
+
var _this$props2 = this.props,
|
|
5644
|
+
onPlay = _this$props2.onPlay,
|
|
5645
|
+
onPause = _this$props2.onPause,
|
|
5646
|
+
onSeek = _this$props2.onSeek,
|
|
5647
|
+
onEnded = _this$props2.onEnded;
|
|
5648
|
+
this.player.unbind('play', onPlay);
|
|
5649
|
+
this.player.unbind('pause', onPause);
|
|
5650
|
+
this.player.unbind('seek', onSeek);
|
|
5651
|
+
this.player.unbind('end', onEnded);
|
|
5652
|
+
}
|
|
5085
5653
|
}, {
|
|
5086
5654
|
key: "stop",
|
|
5087
5655
|
value: function stop() {
|
|
@@ -5127,7 +5695,7 @@ var Wistia = /*#__PURE__*/function (_Component) {
|
|
|
5127
5695
|
width: '100%',
|
|
5128
5696
|
height: '100%'
|
|
5129
5697
|
};
|
|
5130
|
-
return
|
|
5698
|
+
return _react["default"].createElement("div", {
|
|
5131
5699
|
key: id,
|
|
5132
5700
|
className: className,
|
|
5133
5701
|
style: style
|
|
@@ -5154,7 +5722,7 @@ exports["default"] = _default;
|
|
|
5154
5722
|
});
|
|
5155
5723
|
|
|
5156
5724
|
unwrapExports(Wistia_1);
|
|
5157
|
-
Wistia_1.Wistia;
|
|
5725
|
+
var Wistia_2 = Wistia_1.Wistia;
|
|
5158
5726
|
|
|
5159
5727
|
var Twitch_1 = createCommonjsModule(function (module, exports) {
|
|
5160
5728
|
|
|
@@ -5163,7 +5731,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5163
5731
|
});
|
|
5164
5732
|
exports["default"] = exports.Twitch = void 0;
|
|
5165
5733
|
|
|
5166
|
-
var _react = _interopRequireWildcard(
|
|
5734
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5167
5735
|
|
|
5168
5736
|
|
|
5169
5737
|
|
|
@@ -5187,16 +5755,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5187
5755
|
|
|
5188
5756
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5189
5757
|
|
|
5190
|
-
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); }; }
|
|
5191
|
-
|
|
5192
5758
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5193
5759
|
|
|
5194
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5195
|
-
|
|
5196
|
-
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; } }
|
|
5197
|
-
|
|
5198
5760
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5199
5761
|
|
|
5762
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5763
|
+
|
|
5200
5764
|
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); }
|
|
5201
5765
|
|
|
5202
5766
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5209,12 +5773,14 @@ var MATCH_VIDEO_URL = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
|
|
|
5209
5773
|
var MATCH_CHANNEL_URL = /(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/;
|
|
5210
5774
|
var PLAYER_ID_PREFIX = 'twitch-player-';
|
|
5211
5775
|
|
|
5212
|
-
var Twitch =
|
|
5776
|
+
var Twitch =
|
|
5777
|
+
/*#__PURE__*/
|
|
5778
|
+
function (_Component) {
|
|
5213
5779
|
_inherits(Twitch, _Component);
|
|
5214
5780
|
|
|
5215
|
-
var _super = _createSuper(Twitch);
|
|
5216
|
-
|
|
5217
5781
|
function Twitch() {
|
|
5782
|
+
var _getPrototypeOf2;
|
|
5783
|
+
|
|
5218
5784
|
var _this;
|
|
5219
5785
|
|
|
5220
5786
|
_classCallCheck(this, Twitch);
|
|
@@ -5223,7 +5789,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5223
5789
|
args[_key] = arguments[_key];
|
|
5224
5790
|
}
|
|
5225
5791
|
|
|
5226
|
-
_this =
|
|
5792
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Twitch)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5227
5793
|
|
|
5228
5794
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5229
5795
|
|
|
@@ -5344,7 +5910,7 @@ var Twitch = /*#__PURE__*/function (_Component) {
|
|
|
5344
5910
|
width: '100%',
|
|
5345
5911
|
height: '100%'
|
|
5346
5912
|
};
|
|
5347
|
-
return
|
|
5913
|
+
return _react["default"].createElement("div", {
|
|
5348
5914
|
style: style,
|
|
5349
5915
|
id: this.playerID
|
|
5350
5916
|
});
|
|
@@ -5370,7 +5936,7 @@ exports["default"] = _default;
|
|
|
5370
5936
|
});
|
|
5371
5937
|
|
|
5372
5938
|
unwrapExports(Twitch_1);
|
|
5373
|
-
Twitch_1.Twitch;
|
|
5939
|
+
var Twitch_2 = Twitch_1.Twitch;
|
|
5374
5940
|
|
|
5375
5941
|
var DailyMotion_1 = createCommonjsModule(function (module, exports) {
|
|
5376
5942
|
|
|
@@ -5379,7 +5945,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5379
5945
|
});
|
|
5380
5946
|
exports["default"] = exports.DailyMotion = void 0;
|
|
5381
5947
|
|
|
5382
|
-
var _react = _interopRequireWildcard(
|
|
5948
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5383
5949
|
|
|
5384
5950
|
|
|
5385
5951
|
|
|
@@ -5397,15 +5963,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5397
5963
|
|
|
5398
5964
|
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; }
|
|
5399
5965
|
|
|
5400
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) ||
|
|
5966
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
5401
5967
|
|
|
5402
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
5968
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
5403
5969
|
|
|
5404
|
-
function
|
|
5405
|
-
|
|
5406
|
-
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; }
|
|
5407
|
-
|
|
5408
|
-
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; }
|
|
5970
|
+
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; }
|
|
5409
5971
|
|
|
5410
5972
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
5411
5973
|
|
|
@@ -5415,16 +5977,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5415
5977
|
|
|
5416
5978
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5417
5979
|
|
|
5418
|
-
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); }; }
|
|
5419
|
-
|
|
5420
5980
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5421
5981
|
|
|
5422
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5423
|
-
|
|
5424
|
-
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; } }
|
|
5425
|
-
|
|
5426
5982
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5427
5983
|
|
|
5984
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5985
|
+
|
|
5428
5986
|
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); }
|
|
5429
5987
|
|
|
5430
5988
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5436,12 +5994,14 @@ var SDK_GLOBAL = 'DM';
|
|
|
5436
5994
|
var SDK_GLOBAL_READY = 'dmAsyncInit';
|
|
5437
5995
|
var MATCH_URL = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;
|
|
5438
5996
|
|
|
5439
|
-
var DailyMotion =
|
|
5997
|
+
var DailyMotion =
|
|
5998
|
+
/*#__PURE__*/
|
|
5999
|
+
function (_Component) {
|
|
5440
6000
|
_inherits(DailyMotion, _Component);
|
|
5441
6001
|
|
|
5442
|
-
var _super = _createSuper(DailyMotion);
|
|
5443
|
-
|
|
5444
6002
|
function DailyMotion() {
|
|
6003
|
+
var _getPrototypeOf2;
|
|
6004
|
+
|
|
5445
6005
|
var _this;
|
|
5446
6006
|
|
|
5447
6007
|
_classCallCheck(this, DailyMotion);
|
|
@@ -5450,7 +6010,7 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5450
6010
|
args[_key] = arguments[_key];
|
|
5451
6011
|
}
|
|
5452
6012
|
|
|
5453
|
-
_this =
|
|
6013
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(DailyMotion)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5454
6014
|
|
|
5455
6015
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5456
6016
|
|
|
@@ -5579,9 +6139,9 @@ var DailyMotion = /*#__PURE__*/function (_Component) {
|
|
|
5579
6139
|
height: '100%',
|
|
5580
6140
|
display: display
|
|
5581
6141
|
};
|
|
5582
|
-
return
|
|
6142
|
+
return _react["default"].createElement("div", {
|
|
5583
6143
|
style: style
|
|
5584
|
-
},
|
|
6144
|
+
}, _react["default"].createElement("div", {
|
|
5585
6145
|
ref: this.ref
|
|
5586
6146
|
}));
|
|
5587
6147
|
}
|
|
@@ -5606,7 +6166,7 @@ exports["default"] = _default;
|
|
|
5606
6166
|
});
|
|
5607
6167
|
|
|
5608
6168
|
unwrapExports(DailyMotion_1);
|
|
5609
|
-
DailyMotion_1.DailyMotion;
|
|
6169
|
+
var DailyMotion_2 = DailyMotion_1.DailyMotion;
|
|
5610
6170
|
|
|
5611
6171
|
var Mixcloud_1 = createCommonjsModule(function (module, exports) {
|
|
5612
6172
|
|
|
@@ -5615,7 +6175,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5615
6175
|
});
|
|
5616
6176
|
exports["default"] = exports.Mixcloud = void 0;
|
|
5617
6177
|
|
|
5618
|
-
var _react = _interopRequireWildcard(
|
|
6178
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5619
6179
|
|
|
5620
6180
|
|
|
5621
6181
|
|
|
@@ -5639,16 +6199,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5639
6199
|
|
|
5640
6200
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5641
6201
|
|
|
5642
|
-
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); }; }
|
|
5643
|
-
|
|
5644
6202
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5645
6203
|
|
|
5646
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5647
|
-
|
|
5648
|
-
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; } }
|
|
5649
|
-
|
|
5650
6204
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5651
6205
|
|
|
6206
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6207
|
+
|
|
5652
6208
|
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); }
|
|
5653
6209
|
|
|
5654
6210
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -5659,12 +6215,14 @@ var SDK_URL = 'https://widget.mixcloud.com/media/js/widgetApi.js';
|
|
|
5659
6215
|
var SDK_GLOBAL = 'Mixcloud';
|
|
5660
6216
|
var MATCH_URL = /mixcloud\.com\/([^/]+\/[^/]+)/;
|
|
5661
6217
|
|
|
5662
|
-
var Mixcloud =
|
|
6218
|
+
var Mixcloud =
|
|
6219
|
+
/*#__PURE__*/
|
|
6220
|
+
function (_Component) {
|
|
5663
6221
|
_inherits(Mixcloud, _Component);
|
|
5664
6222
|
|
|
5665
|
-
var _super = _createSuper(Mixcloud);
|
|
5666
|
-
|
|
5667
6223
|
function Mixcloud() {
|
|
6224
|
+
var _getPrototypeOf2;
|
|
6225
|
+
|
|
5668
6226
|
var _this;
|
|
5669
6227
|
|
|
5670
6228
|
_classCallCheck(this, Mixcloud);
|
|
@@ -5673,7 +6231,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5673
6231
|
args[_key] = arguments[_key];
|
|
5674
6232
|
}
|
|
5675
6233
|
|
|
5676
|
-
_this =
|
|
6234
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Mixcloud)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
5677
6235
|
|
|
5678
6236
|
_defineProperty(_assertThisInitialized(_this), "callPlayer", utils.callPlayer);
|
|
5679
6237
|
|
|
@@ -5776,7 +6334,7 @@ var Mixcloud = /*#__PURE__*/function (_Component) {
|
|
|
5776
6334
|
})); // We have to give the iframe a key here to prevent a
|
|
5777
6335
|
// weird dialog appearing when loading a new track
|
|
5778
6336
|
|
|
5779
|
-
return
|
|
6337
|
+
return _react["default"].createElement("iframe", {
|
|
5780
6338
|
key: id,
|
|
5781
6339
|
ref: this.ref,
|
|
5782
6340
|
style: style,
|
|
@@ -5805,7 +6363,7 @@ exports["default"] = _default;
|
|
|
5805
6363
|
});
|
|
5806
6364
|
|
|
5807
6365
|
unwrapExports(Mixcloud_1);
|
|
5808
|
-
Mixcloud_1.Mixcloud;
|
|
6366
|
+
var Mixcloud_2 = Mixcloud_1.Mixcloud;
|
|
5809
6367
|
|
|
5810
6368
|
var FilePlayer_1 = createCommonjsModule(function (module, exports) {
|
|
5811
6369
|
|
|
@@ -5814,7 +6372,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5814
6372
|
});
|
|
5815
6373
|
exports["default"] = exports.FilePlayer = void 0;
|
|
5816
6374
|
|
|
5817
|
-
var _react = _interopRequireWildcard(
|
|
6375
|
+
var _react = _interopRequireWildcard(React__default);
|
|
5818
6376
|
|
|
5819
6377
|
|
|
5820
6378
|
|
|
@@ -5836,33 +6394,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5836
6394
|
|
|
5837
6395
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
5838
6396
|
|
|
5839
|
-
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); }; }
|
|
5840
|
-
|
|
5841
6397
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
5842
6398
|
|
|
5843
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
5844
|
-
|
|
5845
|
-
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; } }
|
|
5846
|
-
|
|
5847
6399
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
5848
6400
|
|
|
6401
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6402
|
+
|
|
5849
6403
|
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); }
|
|
5850
6404
|
|
|
5851
6405
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
5852
6406
|
|
|
5853
6407
|
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; }
|
|
5854
6408
|
|
|
5855
|
-
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; } } }; }
|
|
5856
|
-
|
|
5857
|
-
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); }
|
|
5858
|
-
|
|
5859
|
-
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; }
|
|
5860
|
-
|
|
5861
6409
|
var IOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
5862
6410
|
var AUDIO_EXTENSIONS = /\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
|
|
5863
6411
|
var VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)($|\?)/i;
|
|
5864
6412
|
var HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
|
|
5865
|
-
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION
|
|
6413
|
+
var HLS_SDK_URL = 'https://cdn.jsdelivr.net/npm/hls.js@VERSION';
|
|
5866
6414
|
var HLS_GLOBAL = 'Hls';
|
|
5867
6415
|
var DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
|
|
5868
6416
|
var DASH_SDK_URL = 'https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js';
|
|
@@ -5871,11 +6419,12 @@ var MATCH_DROPBOX_URL = /www\.dropbox\.com\/.+/;
|
|
|
5871
6419
|
|
|
5872
6420
|
function canPlay(url) {
|
|
5873
6421
|
if (url instanceof Array) {
|
|
5874
|
-
var
|
|
5875
|
-
|
|
6422
|
+
var _iteratorNormalCompletion = true;
|
|
6423
|
+
var _didIteratorError = false;
|
|
6424
|
+
var _iteratorError = undefined;
|
|
5876
6425
|
|
|
5877
6426
|
try {
|
|
5878
|
-
for (_iterator.
|
|
6427
|
+
for (var _iterator = url[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
5879
6428
|
var item = _step.value;
|
|
5880
6429
|
|
|
5881
6430
|
if (typeof item === 'string' && canPlay(item)) {
|
|
@@ -5887,9 +6436,18 @@ function canPlay(url) {
|
|
|
5887
6436
|
}
|
|
5888
6437
|
}
|
|
5889
6438
|
} catch (err) {
|
|
5890
|
-
|
|
6439
|
+
_didIteratorError = true;
|
|
6440
|
+
_iteratorError = err;
|
|
5891
6441
|
} finally {
|
|
5892
|
-
|
|
6442
|
+
try {
|
|
6443
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
6444
|
+
_iterator["return"]();
|
|
6445
|
+
}
|
|
6446
|
+
} finally {
|
|
6447
|
+
if (_didIteratorError) {
|
|
6448
|
+
throw _iteratorError;
|
|
6449
|
+
}
|
|
6450
|
+
}
|
|
5893
6451
|
}
|
|
5894
6452
|
|
|
5895
6453
|
return false;
|
|
@@ -5913,12 +6471,14 @@ function canEnablePIP(url) {
|
|
|
5913
6471
|
return canPlay(url) && (!!document.pictureInPictureEnabled || supportsWebKitPresentationMode()) && !AUDIO_EXTENSIONS.test(url);
|
|
5914
6472
|
}
|
|
5915
6473
|
|
|
5916
|
-
var FilePlayer =
|
|
6474
|
+
var FilePlayer =
|
|
6475
|
+
/*#__PURE__*/
|
|
6476
|
+
function (_Component) {
|
|
5917
6477
|
_inherits(FilePlayer, _Component);
|
|
5918
6478
|
|
|
5919
|
-
var _super = _createSuper(FilePlayer);
|
|
5920
|
-
|
|
5921
6479
|
function FilePlayer() {
|
|
6480
|
+
var _getPrototypeOf2;
|
|
6481
|
+
|
|
5922
6482
|
var _this;
|
|
5923
6483
|
|
|
5924
6484
|
_classCallCheck(this, FilePlayer);
|
|
@@ -5927,7 +6487,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
5927
6487
|
_args[_key] = arguments[_key];
|
|
5928
6488
|
}
|
|
5929
6489
|
|
|
5930
|
-
_this =
|
|
6490
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(FilePlayer)).call.apply(_getPrototypeOf2, [this].concat(_args)));
|
|
5931
6491
|
|
|
5932
6492
|
_defineProperty(_assertThisInitialized(_this), "onReady", function () {
|
|
5933
6493
|
var _this$props;
|
|
@@ -6014,19 +6574,19 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6014
6574
|
|
|
6015
6575
|
_defineProperty(_assertThisInitialized(_this), "renderSourceElement", function (source, index) {
|
|
6016
6576
|
if (typeof source === 'string') {
|
|
6017
|
-
return
|
|
6577
|
+
return _react["default"].createElement("source", {
|
|
6018
6578
|
key: index,
|
|
6019
6579
|
src: source
|
|
6020
6580
|
});
|
|
6021
6581
|
}
|
|
6022
6582
|
|
|
6023
|
-
return
|
|
6583
|
+
return _react["default"].createElement("source", _extends({
|
|
6024
6584
|
key: index
|
|
6025
6585
|
}, source));
|
|
6026
6586
|
});
|
|
6027
6587
|
|
|
6028
6588
|
_defineProperty(_assertThisInitialized(_this), "renderTrack", function (track, index) {
|
|
6029
|
-
return
|
|
6589
|
+
return _react["default"].createElement("track", _extends({
|
|
6030
6590
|
key: index
|
|
6031
6591
|
}, track));
|
|
6032
6592
|
});
|
|
@@ -6064,10 +6624,6 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6064
6624
|
key: "componentWillUnmount",
|
|
6065
6625
|
value: function componentWillUnmount() {
|
|
6066
6626
|
this.removeListeners(this.player);
|
|
6067
|
-
|
|
6068
|
-
if (this.hls) {
|
|
6069
|
-
this.hls.destroy();
|
|
6070
|
-
}
|
|
6071
6627
|
}
|
|
6072
6628
|
}, {
|
|
6073
6629
|
key: "addListeners",
|
|
@@ -6198,6 +6754,10 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6198
6754
|
value: function stop() {
|
|
6199
6755
|
this.player.removeAttribute('src');
|
|
6200
6756
|
|
|
6757
|
+
if (this.hls) {
|
|
6758
|
+
this.hls.destroy();
|
|
6759
|
+
}
|
|
6760
|
+
|
|
6201
6761
|
if (this.dash) {
|
|
6202
6762
|
this.dash.reset();
|
|
6203
6763
|
}
|
|
@@ -6309,7 +6869,7 @@ var FilePlayer = /*#__PURE__*/function (_Component) {
|
|
|
6309
6869
|
width: width === 'auto' ? width : '100%',
|
|
6310
6870
|
height: height === 'auto' ? height : '100%'
|
|
6311
6871
|
};
|
|
6312
|
-
return
|
|
6872
|
+
return _react["default"].createElement(Element, _extends({
|
|
6313
6873
|
ref: this.ref,
|
|
6314
6874
|
src: this.getSource(url),
|
|
6315
6875
|
style: style,
|
|
@@ -6339,7 +6899,7 @@ exports["default"] = _default;
|
|
|
6339
6899
|
});
|
|
6340
6900
|
|
|
6341
6901
|
unwrapExports(FilePlayer_1);
|
|
6342
|
-
FilePlayer_1.FilePlayer;
|
|
6902
|
+
var FilePlayer_2 = FilePlayer_1.FilePlayer;
|
|
6343
6903
|
|
|
6344
6904
|
var players = createCommonjsModule(function (module, exports) {
|
|
6345
6905
|
|
|
@@ -6381,7 +6941,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6381
6941
|
});
|
|
6382
6942
|
exports["default"] = void 0;
|
|
6383
6943
|
|
|
6384
|
-
var _react = _interopRequireWildcard(
|
|
6944
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6385
6945
|
|
|
6386
6946
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
6387
6947
|
|
|
@@ -6399,16 +6959,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6399
6959
|
|
|
6400
6960
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6401
6961
|
|
|
6402
|
-
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); }; }
|
|
6403
|
-
|
|
6404
6962
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6405
6963
|
|
|
6406
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6407
|
-
|
|
6408
|
-
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; } }
|
|
6409
|
-
|
|
6410
6964
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6411
6965
|
|
|
6966
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6967
|
+
|
|
6412
6968
|
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); }
|
|
6413
6969
|
|
|
6414
6970
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6417,12 +6973,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6417
6973
|
|
|
6418
6974
|
var ICON_SIZE = '64px';
|
|
6419
6975
|
|
|
6420
|
-
var Preview =
|
|
6976
|
+
var Preview =
|
|
6977
|
+
/*#__PURE__*/
|
|
6978
|
+
function (_Component) {
|
|
6421
6979
|
_inherits(Preview, _Component);
|
|
6422
6980
|
|
|
6423
|
-
var _super = _createSuper(Preview);
|
|
6424
|
-
|
|
6425
6981
|
function Preview() {
|
|
6982
|
+
var _getPrototypeOf2;
|
|
6983
|
+
|
|
6426
6984
|
var _this;
|
|
6427
6985
|
|
|
6428
6986
|
_classCallCheck(this, Preview);
|
|
@@ -6431,7 +6989,7 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6431
6989
|
args[_key] = arguments[_key];
|
|
6432
6990
|
}
|
|
6433
6991
|
|
|
6434
|
-
_this =
|
|
6992
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Preview)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6435
6993
|
|
|
6436
6994
|
_defineProperty(_assertThisInitialized(_this), "mounted", false);
|
|
6437
6995
|
|
|
@@ -6529,15 +7087,15 @@ var Preview = /*#__PURE__*/function (_Component) {
|
|
|
6529
7087
|
}
|
|
6530
7088
|
};
|
|
6531
7089
|
|
|
6532
|
-
var defaultPlayIcon =
|
|
7090
|
+
var defaultPlayIcon = _react["default"].createElement("div", {
|
|
6533
7091
|
style: styles.shadow,
|
|
6534
7092
|
className: "react-player__shadow"
|
|
6535
|
-
},
|
|
7093
|
+
}, _react["default"].createElement("div", {
|
|
6536
7094
|
style: styles.playIcon,
|
|
6537
7095
|
className: "react-player__play-icon"
|
|
6538
7096
|
}));
|
|
6539
7097
|
|
|
6540
|
-
return
|
|
7098
|
+
return _react["default"].createElement("div", {
|
|
6541
7099
|
style: styles.preview,
|
|
6542
7100
|
className: "react-player__preview",
|
|
6543
7101
|
onClick: onClick
|
|
@@ -6560,7 +7118,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6560
7118
|
});
|
|
6561
7119
|
exports["default"] = renderPreloadPlayers;
|
|
6562
7120
|
|
|
6563
|
-
var _react = _interopRequireDefault(
|
|
7121
|
+
var _react = _interopRequireDefault(React__default);
|
|
6564
7122
|
|
|
6565
7123
|
var _Player = _interopRequireDefault(Player_1);
|
|
6566
7124
|
|
|
@@ -6574,12 +7132,6 @@ var _Player = _interopRequireDefault(Player_1);
|
|
|
6574
7132
|
|
|
6575
7133
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6576
7134
|
|
|
6577
|
-
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; } } }; }
|
|
6578
|
-
|
|
6579
|
-
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); }
|
|
6580
|
-
|
|
6581
|
-
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; }
|
|
6582
|
-
|
|
6583
7135
|
var PRELOAD_PLAYERS = [{
|
|
6584
7136
|
Player: YouTube_1.YouTube,
|
|
6585
7137
|
configKey: 'youtube',
|
|
@@ -6600,16 +7152,16 @@ var PRELOAD_PLAYERS = [{
|
|
|
6600
7152
|
|
|
6601
7153
|
function renderPreloadPlayers(url, controls, config) {
|
|
6602
7154
|
var players = [];
|
|
6603
|
-
|
|
6604
|
-
var
|
|
6605
|
-
|
|
7155
|
+
var _iteratorNormalCompletion = true;
|
|
7156
|
+
var _didIteratorError = false;
|
|
7157
|
+
var _iteratorError = undefined;
|
|
6606
7158
|
|
|
6607
7159
|
try {
|
|
6608
|
-
for (_iterator.
|
|
7160
|
+
for (var _iterator = PRELOAD_PLAYERS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
6609
7161
|
var player = _step.value;
|
|
6610
7162
|
|
|
6611
7163
|
if (!player.Player.canPlay(url) && config[player.configKey].preload) {
|
|
6612
|
-
players.push(
|
|
7164
|
+
players.push(_react["default"].createElement(_Player["default"], {
|
|
6613
7165
|
key: player.Player.displayName,
|
|
6614
7166
|
activePlayer: player.Player,
|
|
6615
7167
|
url: player.url,
|
|
@@ -6621,9 +7173,18 @@ function renderPreloadPlayers(url, controls, config) {
|
|
|
6621
7173
|
}
|
|
6622
7174
|
}
|
|
6623
7175
|
} catch (err) {
|
|
6624
|
-
|
|
7176
|
+
_didIteratorError = true;
|
|
7177
|
+
_iteratorError = err;
|
|
6625
7178
|
} finally {
|
|
6626
|
-
|
|
7179
|
+
try {
|
|
7180
|
+
if (!_iteratorNormalCompletion && _iterator["return"] != null) {
|
|
7181
|
+
_iterator["return"]();
|
|
7182
|
+
}
|
|
7183
|
+
} finally {
|
|
7184
|
+
if (_didIteratorError) {
|
|
7185
|
+
throw _iteratorError;
|
|
7186
|
+
}
|
|
7187
|
+
}
|
|
6627
7188
|
}
|
|
6628
7189
|
|
|
6629
7190
|
return players;
|
|
@@ -6699,7 +7260,7 @@ Object.defineProperty(exports, "Mixcloud", {
|
|
|
6699
7260
|
});
|
|
6700
7261
|
exports["default"] = void 0;
|
|
6701
7262
|
|
|
6702
|
-
var _react = _interopRequireWildcard(
|
|
7263
|
+
var _react = _interopRequireWildcard(React__default);
|
|
6703
7264
|
|
|
6704
7265
|
|
|
6705
7266
|
|
|
@@ -6747,17 +7308,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6747
7308
|
|
|
6748
7309
|
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); }
|
|
6749
7310
|
|
|
6750
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
6751
|
-
|
|
6752
|
-
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."); }
|
|
7311
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
6753
7312
|
|
|
6754
|
-
function
|
|
7313
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
6755
7314
|
|
|
6756
|
-
function _iterableToArray(iter) { if (
|
|
7315
|
+
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
|
|
6757
7316
|
|
|
6758
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr))
|
|
6759
|
-
|
|
6760
|
-
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; }
|
|
7317
|
+
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; } }
|
|
6761
7318
|
|
|
6762
7319
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6763
7320
|
|
|
@@ -6765,16 +7322,12 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6765
7322
|
|
|
6766
7323
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
6767
7324
|
|
|
6768
|
-
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); }; }
|
|
6769
|
-
|
|
6770
7325
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
6771
7326
|
|
|
6772
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6773
|
-
|
|
6774
|
-
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; } }
|
|
6775
|
-
|
|
6776
7327
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
6777
7328
|
|
|
7329
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
7330
|
+
|
|
6778
7331
|
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); }
|
|
6779
7332
|
|
|
6780
7333
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -6784,12 +7337,14 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
6784
7337
|
var SUPPORTED_PROPS = Object.keys(props.propTypes);
|
|
6785
7338
|
var customPlayers = [];
|
|
6786
7339
|
|
|
6787
|
-
var ReactPlayer =
|
|
7340
|
+
var ReactPlayer =
|
|
7341
|
+
/*#__PURE__*/
|
|
7342
|
+
function (_Component) {
|
|
6788
7343
|
_inherits(ReactPlayer, _Component);
|
|
6789
7344
|
|
|
6790
|
-
var _super = _createSuper(ReactPlayer);
|
|
6791
|
-
|
|
6792
7345
|
function ReactPlayer() {
|
|
7346
|
+
var _getPrototypeOf2;
|
|
7347
|
+
|
|
6793
7348
|
var _this;
|
|
6794
7349
|
|
|
6795
7350
|
_classCallCheck(this, ReactPlayer);
|
|
@@ -6798,7 +7353,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6798
7353
|
args[_key] = arguments[_key];
|
|
6799
7354
|
}
|
|
6800
7355
|
|
|
6801
|
-
_this =
|
|
7356
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ReactPlayer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
6802
7357
|
|
|
6803
7358
|
_defineProperty(_assertThisInitialized(_this), "config", (0, utils.getConfig)(_this.props, props.defaultProps, true));
|
|
6804
7359
|
|
|
@@ -6909,7 +7464,7 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6909
7464
|
key: "renderActivePlayer",
|
|
6910
7465
|
value: function renderActivePlayer(url, activePlayer) {
|
|
6911
7466
|
if (!url) return null;
|
|
6912
|
-
return
|
|
7467
|
+
return _react["default"].createElement(_Player4["default"], _extends({}, this.props, {
|
|
6913
7468
|
key: activePlayer.displayName,
|
|
6914
7469
|
ref: this.activePlayerRef,
|
|
6915
7470
|
config: this.config,
|
|
@@ -6946,14 +7501,14 @@ var ReactPlayer = /*#__PURE__*/function (_Component) {
|
|
|
6946
7501
|
var preloadPlayers = (0, _preload["default"])(url, controls, this.config);
|
|
6947
7502
|
var players = [renderedActivePlayer].concat(_toConsumableArray(preloadPlayers)).sort(this.sortPlayers);
|
|
6948
7503
|
|
|
6949
|
-
var preview =
|
|
7504
|
+
var preview = _react["default"].createElement(_Preview["default"], {
|
|
6950
7505
|
url: url,
|
|
6951
7506
|
light: light,
|
|
6952
7507
|
playIcon: playIcon,
|
|
6953
7508
|
onClick: this.handleClickPreview
|
|
6954
7509
|
});
|
|
6955
7510
|
|
|
6956
|
-
return
|
|
7511
|
+
return _react["default"].createElement(Wrapper, _extends({
|
|
6957
7512
|
ref: this.wrapperRef,
|
|
6958
7513
|
style: _objectSpread({}, style, {
|
|
6959
7514
|
width: width,
|
|
@@ -7013,20 +7568,20 @@ var Audio = function Audio(_ref) {
|
|
|
7013
7568
|
var node = _ref.node;
|
|
7014
7569
|
|
|
7015
7570
|
if (node.uploadAudio) {
|
|
7016
|
-
return
|
|
7571
|
+
return React__default.createElement(
|
|
7017
7572
|
'div',
|
|
7018
7573
|
{ className: 'audio d-block text-center mb-3' },
|
|
7019
|
-
|
|
7574
|
+
React__default.createElement(
|
|
7020
7575
|
'audio',
|
|
7021
7576
|
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7022
|
-
|
|
7023
|
-
|
|
7577
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7578
|
+
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7024
7579
|
'Your browser does not support the audio element.'
|
|
7025
7580
|
),
|
|
7026
|
-
node.caption &&
|
|
7581
|
+
node.caption && React__default.createElement(
|
|
7027
7582
|
'p',
|
|
7028
7583
|
{ style: { fontSize: '.9rem' } },
|
|
7029
|
-
|
|
7584
|
+
React__default.createElement(
|
|
7030
7585
|
'em',
|
|
7031
7586
|
null,
|
|
7032
7587
|
node.caption
|
|
@@ -7036,15 +7591,15 @@ var Audio = function Audio(_ref) {
|
|
|
7036
7591
|
} else if (node.audioFilePth) {
|
|
7037
7592
|
var hostname = new URL(node.audioFilePth).hostname;
|
|
7038
7593
|
if (hostname === 'embeds.audioboom.com') {
|
|
7039
|
-
return
|
|
7594
|
+
return React__default.createElement(
|
|
7040
7595
|
'div',
|
|
7041
7596
|
null,
|
|
7042
|
-
|
|
7597
|
+
React__default.createElement('iframe', { src: node.audioFilePth, width: '100%', height: '300', className: 'audio', style: { border: 'none' } }),
|
|
7043
7598
|
' ',
|
|
7044
|
-
node.caption &&
|
|
7599
|
+
node.caption && React__default.createElement(
|
|
7045
7600
|
'p',
|
|
7046
7601
|
{ style: { fontSize: '.9rem' } },
|
|
7047
|
-
|
|
7602
|
+
React__default.createElement(
|
|
7048
7603
|
'em',
|
|
7049
7604
|
null,
|
|
7050
7605
|
node.caption
|
|
@@ -7052,14 +7607,14 @@ var Audio = function Audio(_ref) {
|
|
|
7052
7607
|
)
|
|
7053
7608
|
);
|
|
7054
7609
|
}
|
|
7055
|
-
return
|
|
7610
|
+
return React__default.createElement(
|
|
7056
7611
|
'div',
|
|
7057
7612
|
{ className: 'audio' },
|
|
7058
|
-
|
|
7059
|
-
node.caption &&
|
|
7613
|
+
React__default.createElement(ReactPlayer, { url: node.audioFilePth, controls: true, width: '100%', height: '100%' }),
|
|
7614
|
+
node.caption && React__default.createElement(
|
|
7060
7615
|
'p',
|
|
7061
7616
|
{ style: { fontSize: '.9rem' } },
|
|
7062
|
-
|
|
7617
|
+
React__default.createElement(
|
|
7063
7618
|
'em',
|
|
7064
7619
|
null,
|
|
7065
7620
|
node.caption
|
|
@@ -7077,34 +7632,34 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7077
7632
|
var profileImage = arguments[6];
|
|
7078
7633
|
|
|
7079
7634
|
if (authorName && authorURL) {
|
|
7080
|
-
return
|
|
7635
|
+
return React__default.createElement(
|
|
7081
7636
|
'span',
|
|
7082
7637
|
null,
|
|
7083
|
-
|
|
7638
|
+
React__default.createElement(
|
|
7084
7639
|
'a',
|
|
7085
7640
|
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
7086
7641
|
authorName
|
|
7087
7642
|
),
|
|
7088
|
-
|
|
7643
|
+
React__default.createElement(
|
|
7089
7644
|
Card,
|
|
7090
7645
|
{ className: 'author-details-card-' + index },
|
|
7091
|
-
|
|
7646
|
+
React__default.createElement(
|
|
7092
7647
|
Row,
|
|
7093
7648
|
null,
|
|
7094
|
-
profileImage &&
|
|
7649
|
+
profileImage && React__default.createElement(
|
|
7095
7650
|
Col,
|
|
7096
7651
|
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
7097
|
-
|
|
7652
|
+
React__default.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
7098
7653
|
),
|
|
7099
|
-
|
|
7654
|
+
React__default.createElement(
|
|
7100
7655
|
Col,
|
|
7101
7656
|
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
7102
|
-
|
|
7657
|
+
React__default.createElement(
|
|
7103
7658
|
'div',
|
|
7104
7659
|
{ style: { fontWidth: '500', fontSize: '1.15rem' } },
|
|
7105
7660
|
authorName
|
|
7106
7661
|
),
|
|
7107
|
-
|
|
7662
|
+
React__default.createElement(
|
|
7108
7663
|
'p',
|
|
7109
7664
|
null,
|
|
7110
7665
|
biography
|
|
@@ -7112,7 +7667,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7112
7667
|
)
|
|
7113
7668
|
)
|
|
7114
7669
|
),
|
|
7115
|
-
|
|
7670
|
+
React__default.createElement(
|
|
7116
7671
|
'style',
|
|
7117
7672
|
{ jsx: 'true' },
|
|
7118
7673
|
'\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 '
|
|
@@ -7120,7 +7675,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
|
7120
7675
|
length !== index + 1 && ' , '
|
|
7121
7676
|
);
|
|
7122
7677
|
} else if (authorName) {
|
|
7123
|
-
return
|
|
7678
|
+
return React__default.createElement(
|
|
7124
7679
|
'span',
|
|
7125
7680
|
{ key: index },
|
|
7126
7681
|
authorName,
|
|
@@ -7397,44 +7952,44 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7397
7952
|
}
|
|
7398
7953
|
};
|
|
7399
7954
|
|
|
7400
|
-
return
|
|
7955
|
+
return React__default.createElement(
|
|
7401
7956
|
'div',
|
|
7402
7957
|
{ className: 'video-container', style: { marginBottom: '2rem' } },
|
|
7403
|
-
|
|
7958
|
+
React__default.createElement(
|
|
7404
7959
|
'div',
|
|
7405
7960
|
{ className: 'mt-2 mb-5' },
|
|
7406
|
-
series &&
|
|
7961
|
+
series && React__default.createElement(
|
|
7407
7962
|
'div',
|
|
7408
7963
|
{ style: { fontSize: '0.9rem' } },
|
|
7409
7964
|
article.title,
|
|
7410
7965
|
' - Episode ',
|
|
7411
7966
|
series
|
|
7412
7967
|
),
|
|
7413
|
-
Videos[series - 1] &&
|
|
7968
|
+
Videos[series - 1] && React__default.createElement(
|
|
7414
7969
|
'h1',
|
|
7415
7970
|
{ className: 'mb-3' },
|
|
7416
7971
|
Videos[series - 1].title
|
|
7417
7972
|
),
|
|
7418
|
-
|
|
7973
|
+
React__default.createElement(
|
|
7419
7974
|
'div',
|
|
7420
7975
|
null,
|
|
7421
7976
|
moment(article.published).format('LL')
|
|
7422
7977
|
),
|
|
7423
|
-
|
|
7978
|
+
React__default.createElement(
|
|
7424
7979
|
'div',
|
|
7425
7980
|
{ className: 'mb-3' },
|
|
7426
7981
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
7427
|
-
return
|
|
7982
|
+
return React__default.createElement(
|
|
7428
7983
|
'span',
|
|
7429
7984
|
{ key: index },
|
|
7430
7985
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, '', authorDetail.profileImage && urlFor(client, authorDetail.profileImage).height(authorImgHeight).url())
|
|
7431
7986
|
);
|
|
7432
7987
|
})
|
|
7433
7988
|
),
|
|
7434
|
-
|
|
7989
|
+
React__default.createElement(
|
|
7435
7990
|
'p',
|
|
7436
7991
|
null,
|
|
7437
|
-
|
|
7992
|
+
React__default.createElement(SocialShare, {
|
|
7438
7993
|
shareUrl: meta.shareUrl + '?seriesVid=' + series,
|
|
7439
7994
|
shareTitle: Videos[series - 1] && Videos[series - 1].title ? Videos[series - 1].title : meta.shareTitle,
|
|
7440
7995
|
shareVia: meta.shareVia,
|
|
@@ -7449,20 +8004,20 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7449
8004
|
hideFacebook: meta.hideFBShare
|
|
7450
8005
|
})
|
|
7451
8006
|
),
|
|
7452
|
-
Videos[series - 1] && Videos[series - 1].intro &&
|
|
8007
|
+
Videos[series - 1] && Videos[series - 1].intro && React__default.createElement(
|
|
7453
8008
|
'p',
|
|
7454
8009
|
{ className: 'mb-3' },
|
|
7455
|
-
|
|
8010
|
+
React__default.createElement(
|
|
7456
8011
|
'em',
|
|
7457
8012
|
null,
|
|
7458
8013
|
Videos[series - 1].intro
|
|
7459
8014
|
)
|
|
7460
8015
|
)
|
|
7461
8016
|
),
|
|
7462
|
-
|
|
8017
|
+
React__default.createElement(
|
|
7463
8018
|
'div',
|
|
7464
8019
|
{ id: 'fluid-video-container', className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
7465
|
-
vidUrl && vidType == 'youtube' &&
|
|
8020
|
+
vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, {
|
|
7466
8021
|
className: 'fluid-iframe',
|
|
7467
8022
|
videoId: getYoutubeId(vidUrl),
|
|
7468
8023
|
opts: opts,
|
|
@@ -7473,10 +8028,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7473
8028
|
return handleOnEnd(e);
|
|
7474
8029
|
}
|
|
7475
8030
|
}),
|
|
7476
|
-
vidUrl && vidType == 'mp4' &&
|
|
7477
|
-
vidUrl && vidType == 'brightcove' &&
|
|
7478
|
-
|
|
7479
|
-
series &&
|
|
8031
|
+
vidUrl && vidType == 'mp4' && React__default.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
8032
|
+
vidUrl && vidType == 'brightcove' && React__default.createElement(Video, { autoplay: true, node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs, autoplayNextVideo: autoplayNextVideo }),
|
|
8033
|
+
React__default.createElement('hr', { style: { marginTop: '1.5rem', borderTop: '2px solid rgba(0,0,0,.35)' } }),
|
|
8034
|
+
series && React__default.createElement(
|
|
7480
8035
|
'div',
|
|
7481
8036
|
{
|
|
7482
8037
|
className: 'vid-series',
|
|
@@ -7486,10 +8041,10 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7486
8041
|
maxHeight: '100%',
|
|
7487
8042
|
paddingBottom: '0'
|
|
7488
8043
|
} },
|
|
7489
|
-
|
|
8044
|
+
React__default.createElement(
|
|
7490
8045
|
'p',
|
|
7491
8046
|
{ style: { color: '#484848', marginBottom: '0' } },
|
|
7492
|
-
|
|
8047
|
+
React__default.createElement(
|
|
7493
8048
|
'b',
|
|
7494
8049
|
{ style: { fontSize: '1.25em' } },
|
|
7495
8050
|
'Now Playing:'
|
|
@@ -7497,16 +8052,16 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7497
8052
|
' ',
|
|
7498
8053
|
seriesData[series ? series - 1 : 0].title
|
|
7499
8054
|
),
|
|
7500
|
-
vidUrl &&
|
|
8055
|
+
vidUrl && React__default.createElement(GroupDeck, { dataset: seriesData, setState: setState, seriesVid: series, current: vidUrl, client: client, displayEpisodeNumber: true })
|
|
7501
8056
|
)
|
|
7502
8057
|
),
|
|
7503
|
-
|
|
7504
|
-
|
|
8058
|
+
React__default.createElement('div', { className: 'vid-controls', style: { width: '100%', background: 'transparent', display: 'flex', justifyContent: 'center' } }),
|
|
8059
|
+
React__default.createElement(
|
|
7505
8060
|
'div',
|
|
7506
8061
|
{ className: 'vid-text' },
|
|
7507
|
-
Videos[series - 1] && Videos[series - 1].text &&
|
|
8062
|
+
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()))
|
|
7508
8063
|
),
|
|
7509
|
-
|
|
8064
|
+
React__default.createElement(
|
|
7510
8065
|
'style',
|
|
7511
8066
|
{ jsx: 'true' },
|
|
7512
8067
|
'\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
@@ -7515,13 +8070,13 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
7515
8070
|
};
|
|
7516
8071
|
|
|
7517
8072
|
var Poll = function Poll(_ref) {
|
|
7518
|
-
var node = _ref.node
|
|
7519
|
-
_ref.client
|
|
7520
|
-
_ref.pageview
|
|
7521
|
-
_ref.videoAccountIDs
|
|
7522
|
-
|
|
7523
|
-
_ref.showVotes
|
|
7524
|
-
|
|
8073
|
+
var node = _ref.node,
|
|
8074
|
+
client = _ref.client,
|
|
8075
|
+
pageview = _ref.pageview,
|
|
8076
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
8077
|
+
onVote = _ref.onVote,
|
|
8078
|
+
_ref$showVotes = _ref.showVotes,
|
|
8079
|
+
getSerializers = _ref.getSerializers;
|
|
7525
8080
|
|
|
7526
8081
|
var _useState = useState(null),
|
|
7527
8082
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7559,67 +8114,67 @@ var Poll = function Poll(_ref) {
|
|
|
7559
8114
|
return acc;
|
|
7560
8115
|
}
|
|
7561
8116
|
}, 0);
|
|
7562
|
-
return
|
|
7563
|
-
|
|
8117
|
+
return React__default.createElement(
|
|
8118
|
+
React__default.Fragment,
|
|
7564
8119
|
null,
|
|
7565
|
-
question &&
|
|
8120
|
+
question && React__default.createElement(
|
|
7566
8121
|
'p',
|
|
7567
8122
|
{ className: 'font-weight-bold' },
|
|
7568
8123
|
question
|
|
7569
8124
|
),
|
|
7570
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
8125
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7571
8126
|
'form',
|
|
7572
8127
|
{ onSubmit: function onSubmit(e) {
|
|
7573
8128
|
return onSubmitPoll(e);
|
|
7574
8129
|
} },
|
|
7575
8130
|
choices && choices.map(function (choice) {
|
|
7576
|
-
return
|
|
8131
|
+
return React__default.createElement(
|
|
7577
8132
|
'div',
|
|
7578
8133
|
{ key: choice._key },
|
|
7579
|
-
|
|
8134
|
+
React__default.createElement(
|
|
7580
8135
|
'label',
|
|
7581
8136
|
{ className: 'pl-2' },
|
|
7582
|
-
|
|
8137
|
+
React__default.createElement('input', { type: 'radio', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7583
8138
|
return setSelectedChoice(e.target.value);
|
|
7584
8139
|
} }),
|
|
7585
8140
|
' ' + choice.choiceText
|
|
7586
8141
|
)
|
|
7587
8142
|
);
|
|
7588
8143
|
}),
|
|
7589
|
-
|
|
8144
|
+
React__default.createElement(
|
|
7590
8145
|
Button,
|
|
7591
8146
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7592
8147
|
'Vote'
|
|
7593
8148
|
)
|
|
7594
8149
|
),
|
|
7595
|
-
|
|
8150
|
+
React__default.createElement(
|
|
7596
8151
|
'div',
|
|
7597
8152
|
{ className: 'progress-container' },
|
|
7598
8153
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7599
8154
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7600
|
-
return
|
|
8155
|
+
return React__default.createElement(
|
|
7601
8156
|
'div',
|
|
7602
8157
|
{ key: choice._key, className: 'mb-3' },
|
|
7603
|
-
|
|
8158
|
+
React__default.createElement(
|
|
7604
8159
|
'div',
|
|
7605
8160
|
{ className: 'correct-answer' },
|
|
7606
|
-
|
|
8161
|
+
React__default.createElement(
|
|
7607
8162
|
'div',
|
|
7608
8163
|
null,
|
|
7609
8164
|
choice.choiceText
|
|
7610
8165
|
),
|
|
7611
|
-
choice.choiceAnswer === true &&
|
|
8166
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7612
8167
|
'div',
|
|
7613
8168
|
null,
|
|
7614
|
-
|
|
8169
|
+
React__default.createElement(
|
|
7615
8170
|
'span',
|
|
7616
8171
|
{ style: { color: 'limegreen' } },
|
|
7617
8172
|
'Correct!'
|
|
7618
8173
|
)
|
|
7619
8174
|
)
|
|
7620
8175
|
),
|
|
7621
|
-
|
|
7622
|
-
|
|
8176
|
+
React__default.createElement(ProgressBar, { now: percentage }),
|
|
8177
|
+
React__default.createElement(
|
|
7623
8178
|
'span',
|
|
7624
8179
|
{ className: 'float-right' },
|
|
7625
8180
|
percentage,
|
|
@@ -7630,14 +8185,14 @@ var Poll = function Poll(_ref) {
|
|
|
7630
8185
|
);
|
|
7631
8186
|
})
|
|
7632
8187
|
),
|
|
7633
|
-
showAnswer &&
|
|
8188
|
+
showAnswer && React__default.createElement(
|
|
7634
8189
|
'h4',
|
|
7635
8190
|
{ className: 'text-center small p-3' },
|
|
7636
8191
|
'Total Votes: ',
|
|
7637
8192
|
choicesTotalCount
|
|
7638
8193
|
),
|
|
7639
|
-
showAnswer && response &&
|
|
7640
|
-
|
|
8194
|
+
showAnswer && response && React__default.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
8195
|
+
React__default.createElement(
|
|
7641
8196
|
'style',
|
|
7642
8197
|
{ jsx: 'true' },
|
|
7643
8198
|
'\n .correct-answer {\n display: flex;\n justify-content: space-between;\n }\n .progress-bar {\n color: #fff;\n }\n '
|
|
@@ -7664,13 +8219,13 @@ module.exports = { "default": values, __esModule: true };
|
|
|
7664
8219
|
var _Object$values = unwrapExports(values$1);
|
|
7665
8220
|
|
|
7666
8221
|
var Poll$1 = function Poll(_ref) {
|
|
7667
|
-
var node = _ref.node
|
|
7668
|
-
_ref.client
|
|
7669
|
-
_ref.pageview
|
|
7670
|
-
_ref.videoAccountIDs
|
|
7671
|
-
|
|
7672
|
-
_ref.showVotes
|
|
7673
|
-
|
|
8222
|
+
var node = _ref.node,
|
|
8223
|
+
client = _ref.client,
|
|
8224
|
+
pageview = _ref.pageview,
|
|
8225
|
+
videoAccountIDs = _ref.videoAccountIDs,
|
|
8226
|
+
onVote = _ref.onVote,
|
|
8227
|
+
_ref$showVotes = _ref.showVotes,
|
|
8228
|
+
getSerializers = _ref.getSerializers;
|
|
7674
8229
|
|
|
7675
8230
|
var _useState = useState(null),
|
|
7676
8231
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7736,67 +8291,67 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7736
8291
|
return acc;
|
|
7737
8292
|
}
|
|
7738
8293
|
}, 0);
|
|
7739
|
-
return
|
|
7740
|
-
|
|
8294
|
+
return React__default.createElement(
|
|
8295
|
+
React__default.Fragment,
|
|
7741
8296
|
null,
|
|
7742
|
-
question &&
|
|
8297
|
+
question && React__default.createElement(
|
|
7743
8298
|
'p',
|
|
7744
8299
|
{ className: 'font-weight-bold' },
|
|
7745
8300
|
question
|
|
7746
8301
|
),
|
|
7747
|
-
!showAnswer && choices && choices.length > 0 &&
|
|
8302
|
+
!showAnswer && choices && choices.length > 0 && React__default.createElement(
|
|
7748
8303
|
'form',
|
|
7749
8304
|
{ onSubmit: function onSubmit(e) {
|
|
7750
8305
|
return onSubmitPoll(e);
|
|
7751
8306
|
} },
|
|
7752
8307
|
choices && choices.map(function (choice) {
|
|
7753
|
-
return
|
|
8308
|
+
return React__default.createElement(
|
|
7754
8309
|
'div',
|
|
7755
8310
|
{ key: choice._key },
|
|
7756
|
-
|
|
8311
|
+
React__default.createElement(
|
|
7757
8312
|
'label',
|
|
7758
8313
|
{ className: 'pl-2' },
|
|
7759
|
-
|
|
8314
|
+
React__default.createElement('input', { type: 'checkbox', id: 'male', name: choice._type, value: choice._key, onChange: function onChange(e) {
|
|
7760
8315
|
return setSelectedChoice(e.target.value);
|
|
7761
8316
|
} }),
|
|
7762
8317
|
' ' + choice.choiceText
|
|
7763
8318
|
)
|
|
7764
8319
|
);
|
|
7765
8320
|
}),
|
|
7766
|
-
|
|
8321
|
+
React__default.createElement(
|
|
7767
8322
|
Button,
|
|
7768
8323
|
{ disabled: !selectedChoice, type: 'submit' },
|
|
7769
8324
|
'Vote'
|
|
7770
8325
|
)
|
|
7771
8326
|
),
|
|
7772
|
-
|
|
8327
|
+
React__default.createElement(
|
|
7773
8328
|
'div',
|
|
7774
8329
|
{ className: 'progress-container' },
|
|
7775
8330
|
showAnswer && choices && choices.length > 0 && choices.map(function (choice) {
|
|
7776
8331
|
var percentage = choicesTotalCount && choicesTotalCount > 0 ? choice.choiceCount ? Math.floor(choice.choiceCount * 100 / choicesTotalCount) : 0 : 0;
|
|
7777
|
-
return
|
|
8332
|
+
return React__default.createElement(
|
|
7778
8333
|
'div',
|
|
7779
8334
|
{ key: choice._key, className: 'mb-3' },
|
|
7780
|
-
|
|
8335
|
+
React__default.createElement(
|
|
7781
8336
|
'div',
|
|
7782
8337
|
{ className: 'correct-answer' },
|
|
7783
|
-
|
|
8338
|
+
React__default.createElement(
|
|
7784
8339
|
'div',
|
|
7785
8340
|
null,
|
|
7786
8341
|
choice.choiceText
|
|
7787
8342
|
),
|
|
7788
|
-
choice.choiceAnswer === true &&
|
|
8343
|
+
choice.choiceAnswer === true && React__default.createElement(
|
|
7789
8344
|
'div',
|
|
7790
8345
|
null,
|
|
7791
|
-
|
|
8346
|
+
React__default.createElement(
|
|
7792
8347
|
'span',
|
|
7793
8348
|
{ style: { color: 'limegreen' } },
|
|
7794
8349
|
'Correct!'
|
|
7795
8350
|
)
|
|
7796
8351
|
)
|
|
7797
8352
|
),
|
|
7798
|
-
|
|
7799
|
-
|
|
8353
|
+
React__default.createElement(ProgressBar, { now: percentage }),
|
|
8354
|
+
React__default.createElement(
|
|
7800
8355
|
'span',
|
|
7801
8356
|
{ className: 'float-right' },
|
|
7802
8357
|
percentage,
|
|
@@ -7807,14 +8362,14 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7807
8362
|
);
|
|
7808
8363
|
})
|
|
7809
8364
|
),
|
|
7810
|
-
showAnswer &&
|
|
8365
|
+
showAnswer && React__default.createElement(
|
|
7811
8366
|
'h4',
|
|
7812
8367
|
{ className: 'text-center small p-3' },
|
|
7813
8368
|
'Total Votes: ',
|
|
7814
8369
|
choicesTotalCount
|
|
7815
8370
|
),
|
|
7816
|
-
showAnswer && response &&
|
|
7817
|
-
|
|
8371
|
+
showAnswer && response && React__default.createElement(BlockContent, { blocks: response, serializers: getSerializers }),
|
|
8372
|
+
React__default.createElement(
|
|
7818
8373
|
'style',
|
|
7819
8374
|
{ jsx: 'true' },
|
|
7820
8375
|
'\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 '
|
|
@@ -7822,7 +8377,7 @@ var Poll$1 = function Poll(_ref) {
|
|
|
7822
8377
|
);
|
|
7823
8378
|
};
|
|
7824
8379
|
|
|
7825
|
-
var numberOfPaginations =
|
|
8380
|
+
var numberOfPaginations = main_35 ? 4 : 10;
|
|
7826
8381
|
|
|
7827
8382
|
var Quiz = function Quiz(_ref) {
|
|
7828
8383
|
var quizzes = _ref.quizzes,
|
|
@@ -7940,20 +8495,20 @@ var Quiz = function Quiz(_ref) {
|
|
|
7940
8495
|
};
|
|
7941
8496
|
|
|
7942
8497
|
var renderPagination = function renderPagination() {
|
|
7943
|
-
return
|
|
8498
|
+
return React__default.createElement(
|
|
7944
8499
|
Pagination,
|
|
7945
|
-
{ className: 'p-0 m-0', size:
|
|
7946
|
-
|
|
8500
|
+
{ className: 'p-0 m-0', size: main_35 && 'sm' },
|
|
8501
|
+
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7947
8502
|
return changePage('first');
|
|
7948
8503
|
}, disabled: currentPage === 1 }),
|
|
7949
|
-
|
|
8504
|
+
React__default.createElement(Pagination.Prev, { onClick: function onClick() {
|
|
7950
8505
|
return changePage('prev');
|
|
7951
8506
|
}, disabled: currentPage === 1 }),
|
|
7952
|
-
|
|
8507
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7953
8508
|
return renderNewPages('prev');
|
|
7954
8509
|
}, disabled: !validateIndex(startIndex - numberOfPaginations) }),
|
|
7955
8510
|
pages.map(function (page) {
|
|
7956
|
-
return
|
|
8511
|
+
return React__default.createElement(
|
|
7957
8512
|
Pagination.Item,
|
|
7958
8513
|
{ key: page, active: page === currentPage, onClick: function onClick() {
|
|
7959
8514
|
return changePage(page);
|
|
@@ -7961,13 +8516,13 @@ var Quiz = function Quiz(_ref) {
|
|
|
7961
8516
|
page
|
|
7962
8517
|
);
|
|
7963
8518
|
}),
|
|
7964
|
-
|
|
8519
|
+
React__default.createElement(Pagination.Ellipsis, { onClick: function onClick() {
|
|
7965
8520
|
return renderNewPages('next');
|
|
7966
8521
|
}, disabled: !validateIndex(startIndex + numberOfPaginations) }),
|
|
7967
|
-
|
|
8522
|
+
React__default.createElement(Pagination.Next, { onClick: function onClick() {
|
|
7968
8523
|
return changePage('next');
|
|
7969
8524
|
}, disabled: currentPage === pageCount }),
|
|
7970
|
-
|
|
8525
|
+
React__default.createElement(Pagination.Last, { onClick: function onClick() {
|
|
7971
8526
|
return changePage('last');
|
|
7972
8527
|
}, disabled: currentPage === pageCount })
|
|
7973
8528
|
);
|
|
@@ -8050,51 +8605,51 @@ var Quiz = function Quiz(_ref) {
|
|
|
8050
8605
|
}
|
|
8051
8606
|
};
|
|
8052
8607
|
|
|
8053
|
-
return
|
|
8054
|
-
|
|
8608
|
+
return React__default.createElement(
|
|
8609
|
+
React__default.Fragment,
|
|
8055
8610
|
null,
|
|
8056
|
-
quizzes[currentPage - 1] &&
|
|
8057
|
-
|
|
8611
|
+
quizzes[currentPage - 1] && React__default.createElement(
|
|
8612
|
+
React__default.Fragment,
|
|
8058
8613
|
null,
|
|
8059
|
-
|
|
8060
|
-
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 &&
|
|
8614
|
+
React__default.createElement(BlockContent, { blocks: quizzes[currentPage - 1].question, serializers: getSerializers }),
|
|
8615
|
+
quizzes[currentPage - 1].quizAnswers && quizzes[currentPage - 1].quizAnswers.length > 0 && React__default.createElement(
|
|
8061
8616
|
'form',
|
|
8062
8617
|
{ ref: answersRef, onSubmit: function onSubmit(e) {
|
|
8063
8618
|
return e.preventDefault();
|
|
8064
8619
|
} },
|
|
8065
8620
|
quizzes[currentPage - 1].quizAnswers.map(function (answer, index) {
|
|
8066
|
-
return
|
|
8621
|
+
return React__default.createElement(
|
|
8067
8622
|
'div',
|
|
8068
8623
|
{ key: answer._key },
|
|
8069
|
-
|
|
8624
|
+
React__default.createElement(
|
|
8070
8625
|
'label',
|
|
8071
8626
|
{ className: 'pl-2' },
|
|
8072
|
-
quizzes[currentPage - 1].multiAnswer ?
|
|
8627
|
+
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 }),
|
|
8073
8628
|
' ' + answer.answerText
|
|
8074
8629
|
)
|
|
8075
8630
|
);
|
|
8076
8631
|
})
|
|
8077
8632
|
)
|
|
8078
8633
|
),
|
|
8079
|
-
!showAnswer &&
|
|
8634
|
+
!showAnswer && React__default.createElement(
|
|
8080
8635
|
Button$1,
|
|
8081
8636
|
{ onClick: function onClick() {
|
|
8082
8637
|
return checkAnswers();
|
|
8083
8638
|
}, variant: 'info', block: true },
|
|
8084
8639
|
'Please click here for answer'
|
|
8085
8640
|
),
|
|
8086
|
-
quizzes[currentPage - 1] && showAnswer &&
|
|
8087
|
-
|
|
8641
|
+
quizzes[currentPage - 1] && showAnswer && React__default.createElement(
|
|
8642
|
+
React__default.Fragment,
|
|
8088
8643
|
null,
|
|
8089
|
-
|
|
8644
|
+
React__default.createElement(
|
|
8090
8645
|
'h4',
|
|
8091
8646
|
null,
|
|
8092
8647
|
'Answer:'
|
|
8093
8648
|
),
|
|
8094
|
-
quizzes[currentPage - 1].answer &&
|
|
8649
|
+
quizzes[currentPage - 1].answer && React__default.createElement(BlockContent, { blocks: quizzes[currentPage - 1].answer, serializers: getSerializers })
|
|
8095
8650
|
),
|
|
8096
|
-
|
|
8097
|
-
pageCount > 1 &&
|
|
8651
|
+
React__default.createElement('br', null),
|
|
8652
|
+
pageCount > 1 && React__default.createElement(
|
|
8098
8653
|
'div',
|
|
8099
8654
|
{ className: 'd-flex justify-content-center' },
|
|
8100
8655
|
renderPagination()
|
|
@@ -8105,10 +8660,10 @@ var Quiz = function Quiz(_ref) {
|
|
|
8105
8660
|
var Leads = function Leads(_ref) {
|
|
8106
8661
|
var url = _ref.url;
|
|
8107
8662
|
|
|
8108
|
-
return
|
|
8663
|
+
return React__default.createElement(
|
|
8109
8664
|
'div',
|
|
8110
8665
|
{ className: 'd-block text-center mb-3' },
|
|
8111
|
-
url &&
|
|
8666
|
+
url && React__default.createElement('iframe', { className: 'w-100 h-100 leads-block', scrolling: 'no', src: url, frameBorder: '0', allow: 'fullscreen' })
|
|
8112
8667
|
);
|
|
8113
8668
|
};
|
|
8114
8669
|
|
|
@@ -8129,8 +8684,8 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8129
8684
|
|
|
8130
8685
|
var _useState = useState(!pageNumber || isNaN(pageNumber) || pageNumber > slides.length ? 0 : pageNumber - 1),
|
|
8131
8686
|
_useState2 = _slicedToArray(_useState, 2),
|
|
8132
|
-
carouselIndex = _useState2[0]
|
|
8133
|
-
_useState2[1];
|
|
8687
|
+
carouselIndex = _useState2[0],
|
|
8688
|
+
setCarouselIndex = _useState2[1];
|
|
8134
8689
|
|
|
8135
8690
|
// useEffect(() => {
|
|
8136
8691
|
// let itemArr = router.asPath.split('?page=')
|
|
@@ -8156,42 +8711,42 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
8156
8711
|
}
|
|
8157
8712
|
};
|
|
8158
8713
|
|
|
8159
|
-
return
|
|
8714
|
+
return React__default.createElement(
|
|
8160
8715
|
'div',
|
|
8161
8716
|
{ ref: carouselRef, className: 'mt-3 mb-4' },
|
|
8162
|
-
|
|
8717
|
+
React__default.createElement(
|
|
8163
8718
|
Carousel,
|
|
8164
8719
|
{ activeIndex: carouselIndex, onSelect: onChangeSlide, interval: null },
|
|
8165
8720
|
slides && slides.map(function (slide) {
|
|
8166
8721
|
if (slide.slideshowImage && slide.slideshowImage.asset) {
|
|
8167
|
-
return
|
|
8722
|
+
return React__default.createElement(
|
|
8168
8723
|
Carousel.Item,
|
|
8169
8724
|
{ key: slide._key },
|
|
8170
|
-
|
|
8725
|
+
React__default.createElement(
|
|
8171
8726
|
'a',
|
|
8172
8727
|
{ href: slide.slideshowImage.link && slide.slideshowImage.link, target: slide.slideshowImage.blank ? '_blank' : '_self' },
|
|
8173
|
-
|
|
8728
|
+
React__default.createElement(
|
|
8174
8729
|
LazyLoad,
|
|
8175
8730
|
null,
|
|
8176
|
-
|
|
8731
|
+
React__default.createElement('img', { src: urlFor$1(slide.slideshowImage, client).url(), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
8177
8732
|
)
|
|
8178
8733
|
),
|
|
8179
|
-
|
|
8734
|
+
React__default.createElement(
|
|
8180
8735
|
'div',
|
|
8181
8736
|
{ className: 'p-2' },
|
|
8182
|
-
slide.slideshowImage.caption &&
|
|
8737
|
+
slide.slideshowImage.caption && React__default.createElement(
|
|
8183
8738
|
'h3',
|
|
8184
8739
|
{ style: { padding: '0px' } },
|
|
8185
8740
|
slide.slideshowImage.caption
|
|
8186
8741
|
),
|
|
8187
|
-
slide.description &&
|
|
8742
|
+
slide.description && React__default.createElement(BlockContent, { blocks: slide.description, serializers: getSerializers })
|
|
8188
8743
|
)
|
|
8189
8744
|
);
|
|
8190
8745
|
}
|
|
8191
8746
|
return null;
|
|
8192
8747
|
})
|
|
8193
8748
|
),
|
|
8194
|
-
|
|
8749
|
+
React__default.createElement(
|
|
8195
8750
|
'style',
|
|
8196
8751
|
{ jsx: 'true' },
|
|
8197
8752
|
'\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 '
|
|
@@ -8210,10 +8765,10 @@ var NativeAd = function NativeAd(props) {
|
|
|
8210
8765
|
sizes = _props$node.sizes,
|
|
8211
8766
|
sizeMapping = _props$node.sizeMapping;
|
|
8212
8767
|
|
|
8213
|
-
return
|
|
8768
|
+
return React__default.createElement(
|
|
8214
8769
|
'div',
|
|
8215
8770
|
{ className: 'native-ad-wrapper', style: { textAlign: 'center' } },
|
|
8216
|
-
|
|
8771
|
+
React__default.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: targeting, className: className, sizes: sizes, sizeMapping: sizeMapping })
|
|
8217
8772
|
);
|
|
8218
8773
|
};
|
|
8219
8774
|
|
|
@@ -8224,15 +8779,15 @@ var Formstack = function Formstack(_ref) {
|
|
|
8224
8779
|
needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
|
|
8225
8780
|
|
|
8226
8781
|
var url = Segment.getURL('https://mjhlifesciences.formstack.com/forms/' + FormID, { needSegmentSupport: needSegmentSupport });
|
|
8227
|
-
return
|
|
8782
|
+
return React__default.createElement(
|
|
8228
8783
|
'section',
|
|
8229
8784
|
{ id: 'formstack-section', className: 'formstack-section' },
|
|
8230
|
-
Caption &&
|
|
8785
|
+
Caption && React__default.createElement(
|
|
8231
8786
|
'h4',
|
|
8232
8787
|
{ className: 'formstack-caption' },
|
|
8233
8788
|
Caption
|
|
8234
8789
|
),
|
|
8235
|
-
|
|
8790
|
+
React__default.createElement('iframe', { src: url, title: Caption || '', width: '100%', height: '600', frameBorder: '0' })
|
|
8236
8791
|
);
|
|
8237
8792
|
};
|
|
8238
8793
|
|
|
@@ -8252,29 +8807,29 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8252
8807
|
}
|
|
8253
8808
|
});
|
|
8254
8809
|
if (medias && medias.length > 0) {
|
|
8255
|
-
return
|
|
8810
|
+
return React__default.createElement(
|
|
8256
8811
|
'div',
|
|
8257
8812
|
{ className: 'multi-media-container' },
|
|
8258
|
-
|
|
8813
|
+
React__default.createElement(
|
|
8259
8814
|
Row$1,
|
|
8260
8815
|
{ noGutters: true },
|
|
8261
8816
|
medias.map(function (media) {
|
|
8262
|
-
return
|
|
8817
|
+
return React__default.createElement(
|
|
8263
8818
|
Col$1,
|
|
8264
8819
|
{ xs: 12, md: 12 / medias.length, key: media._key },
|
|
8265
|
-
|
|
8820
|
+
React__default.createElement(
|
|
8266
8821
|
'a',
|
|
8267
|
-
_extends({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8822
|
+
_extends$1({}, media.upload_doc && media.upload_doc.asset && { href: media.upload_doc.asset.url, target: media.blank ? '_blank' : '_self' }, {
|
|
8268
8823
|
style: { cursor: media.upload_doc && media.upload_doc.asset && media.upload_doc.asset.url ? 'pointer' : 'default' } }),
|
|
8269
|
-
|
|
8824
|
+
React__default.createElement(
|
|
8270
8825
|
'div',
|
|
8271
8826
|
{ className: 'multi-media-image-container' },
|
|
8272
|
-
imageBox &&
|
|
8827
|
+
imageBox && React__default.createElement(
|
|
8273
8828
|
LazyLoad,
|
|
8274
8829
|
{ once: true },
|
|
8275
|
-
|
|
8830
|
+
React__default.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor$2(media.poster, client).url(), alt: media.alt })
|
|
8276
8831
|
),
|
|
8277
|
-
media.caption &&
|
|
8832
|
+
media.caption && React__default.createElement(
|
|
8278
8833
|
'span',
|
|
8279
8834
|
{ className: 'multi-media-caption' },
|
|
8280
8835
|
media.caption
|
|
@@ -8284,7 +8839,7 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8284
8839
|
);
|
|
8285
8840
|
})
|
|
8286
8841
|
),
|
|
8287
|
-
|
|
8842
|
+
React__default.createElement(
|
|
8288
8843
|
'style',
|
|
8289
8844
|
{ jsx: 'true' },
|
|
8290
8845
|
'\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 '
|
|
@@ -8331,7 +8886,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8331
8886
|
}
|
|
8332
8887
|
};
|
|
8333
8888
|
|
|
8334
|
-
_this.wraperRef =
|
|
8889
|
+
_this.wraperRef = React__default.createRef();
|
|
8335
8890
|
_this.visible = false;
|
|
8336
8891
|
return _this;
|
|
8337
8892
|
}
|
|
@@ -8359,7 +8914,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8359
8914
|
_props$id = _props.id,
|
|
8360
8915
|
id = _props$id === undefined ? '' : _props$id;
|
|
8361
8916
|
|
|
8362
|
-
return
|
|
8917
|
+
return React__default.createElement(
|
|
8363
8918
|
'div',
|
|
8364
8919
|
{ ref: this.wraperRef, className: className, style: style, id: id },
|
|
8365
8920
|
this.props.children
|
|
@@ -8368,7 +8923,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8368
8923
|
}]);
|
|
8369
8924
|
|
|
8370
8925
|
return InscreenSensor;
|
|
8371
|
-
}(
|
|
8926
|
+
}(React__default.Component);
|
|
8372
8927
|
|
|
8373
8928
|
var ArticleSeries = function ArticleSeries(_ref) {
|
|
8374
8929
|
var nodes = _ref.nodes,
|
|
@@ -8481,33 +9036,33 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8481
9036
|
if (!article || !article.is_visible && article.hasOwnProperty('is_visible') || today < article.published) return null;
|
|
8482
9037
|
var showReading = show ? 'showReading' : '';
|
|
8483
9038
|
var articleLabel = articles.length == 1 && articleNum != 0 || articles.length > 1 && index == 0 ? 'Previous' : 'Next';
|
|
8484
|
-
return
|
|
9039
|
+
return React__default.createElement(
|
|
8485
9040
|
'div',
|
|
8486
9041
|
{ key: article.title + '_' + index, className: 'prevNextCards' },
|
|
8487
|
-
|
|
9042
|
+
React__default.createElement(
|
|
8488
9043
|
'a',
|
|
8489
9044
|
{ onClick: function onClick(e) {
|
|
8490
9045
|
return articleCardClickHandler(e);
|
|
8491
9046
|
}, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
|
|
8492
|
-
|
|
9047
|
+
React__default.createElement(
|
|
8493
9048
|
'div',
|
|
8494
9049
|
{ className: 'prevNext-thumbnail' },
|
|
8495
|
-
|
|
8496
|
-
|
|
9050
|
+
React__default.createElement('img', { src: urlFor(article.thumbnail.asset).url() }),
|
|
9051
|
+
React__default.createElement(
|
|
8497
9052
|
'div',
|
|
8498
9053
|
{ className: 'prevNext-reading ' + showReading },
|
|
8499
9054
|
articleLabel
|
|
8500
9055
|
)
|
|
8501
9056
|
),
|
|
8502
|
-
|
|
9057
|
+
React__default.createElement(
|
|
8503
9058
|
'div',
|
|
8504
9059
|
{ className: 'prevNext-summary' },
|
|
8505
|
-
|
|
9060
|
+
React__default.createElement(
|
|
8506
9061
|
'div',
|
|
8507
9062
|
{ className: 'prevNext-publishDate' },
|
|
8508
9063
|
moment(article.published).format('LL')
|
|
8509
9064
|
),
|
|
8510
|
-
|
|
9065
|
+
React__default.createElement(
|
|
8511
9066
|
'h2',
|
|
8512
9067
|
{ className: 'prevNext-title' },
|
|
8513
9068
|
article.title
|
|
@@ -8556,7 +9111,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8556
9111
|
|
|
8557
9112
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
8558
9113
|
if (biography) {
|
|
8559
|
-
return
|
|
9114
|
+
return React__default.createElement(BlockContent, _extends$1({ serializers: getSerializers, blocks: [biography] }, client.config()));
|
|
8560
9115
|
}
|
|
8561
9116
|
};
|
|
8562
9117
|
|
|
@@ -8642,7 +9197,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8642
9197
|
//console.log('useLayoutEffect')
|
|
8643
9198
|
if (!firstLoad) {
|
|
8644
9199
|
setUpArrowClicked(false);
|
|
8645
|
-
if (
|
|
9200
|
+
if (main_36) {
|
|
8646
9201
|
grabLoadedAds();
|
|
8647
9202
|
} else {
|
|
8648
9203
|
scrollToArticle();
|
|
@@ -8666,7 +9221,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8666
9221
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8667
9222
|
if (pageview) pageview(path);
|
|
8668
9223
|
|
|
8669
|
-
if (!
|
|
9224
|
+
if (!main_36) {
|
|
8670
9225
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8671
9226
|
if (window.googletag && googletag.pubadsReady) {
|
|
8672
9227
|
lib_3.refresh();
|
|
@@ -8674,7 +9229,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8674
9229
|
});
|
|
8675
9230
|
}
|
|
8676
9231
|
//Refresh leaderboard ad on mobile
|
|
8677
|
-
if (
|
|
9232
|
+
if (main_36) {
|
|
8678
9233
|
var leaderboardSlotId = '';
|
|
8679
9234
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8680
9235
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -8714,38 +9269,38 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8714
9269
|
setSensorVisible(false);
|
|
8715
9270
|
};
|
|
8716
9271
|
|
|
8717
|
-
return
|
|
8718
|
-
|
|
9272
|
+
return React__default.createElement(
|
|
9273
|
+
React__default.Fragment,
|
|
8719
9274
|
null,
|
|
8720
|
-
|
|
9275
|
+
React__default.createElement(
|
|
8721
9276
|
'div',
|
|
8722
9277
|
{ ref: arrowRef, className: 'scrollToTopArrow' },
|
|
8723
|
-
|
|
9278
|
+
React__default.createElement(IoIosArrowDropupCircle, { style: { cursor: 'pointer' }, onClick: function onClick() {
|
|
8724
9279
|
return handleArrowClick();
|
|
8725
9280
|
} })
|
|
8726
9281
|
),
|
|
8727
|
-
|
|
8728
|
-
|
|
9282
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' }),
|
|
9283
|
+
React__default.createElement(
|
|
8729
9284
|
'div',
|
|
8730
9285
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8731
|
-
|
|
9286
|
+
React__default.createElement(
|
|
8732
9287
|
'h5',
|
|
8733
9288
|
{ className: 'objective-title' },
|
|
8734
9289
|
nodes.seriesTitle
|
|
8735
9290
|
),
|
|
8736
|
-
|
|
9291
|
+
React__default.createElement(
|
|
8737
9292
|
'div',
|
|
8738
9293
|
{ className: 'prevNextWrapper' },
|
|
8739
9294
|
PrevNextCards(false, -1)
|
|
8740
9295
|
)
|
|
8741
9296
|
),
|
|
8742
|
-
|
|
8743
|
-
|
|
9297
|
+
React__default.createElement('hr', { className: 'article-seperater' }),
|
|
9298
|
+
React__default.createElement(
|
|
8744
9299
|
'div',
|
|
8745
9300
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8746
|
-
|
|
9301
|
+
main_36 && Ads.map(function (ad, index) {
|
|
8747
9302
|
if (index === 0) {
|
|
8748
|
-
return
|
|
9303
|
+
return React__default.createElement(
|
|
8749
9304
|
'div',
|
|
8750
9305
|
{
|
|
8751
9306
|
key: 'addid-1',
|
|
@@ -8765,14 +9320,14 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8765
9320
|
}
|
|
8766
9321
|
})
|
|
8767
9322
|
),
|
|
8768
|
-
|
|
9323
|
+
React__default.createElement(
|
|
8769
9324
|
'div',
|
|
8770
9325
|
{ ref: articleContainerRef, className: 'article-container', style: { marginBottom: '2rem' } },
|
|
8771
9326
|
Articles.map(function (article, index) {
|
|
8772
|
-
return
|
|
9327
|
+
return React__default.createElement(
|
|
8773
9328
|
'div',
|
|
8774
9329
|
{ key: article.title },
|
|
8775
|
-
|
|
9330
|
+
React__default.createElement(
|
|
8776
9331
|
InscreenSensor,
|
|
8777
9332
|
{
|
|
8778
9333
|
visible: sensorVisible,
|
|
@@ -8790,84 +9345,84 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8790
9345
|
}
|
|
8791
9346
|
}
|
|
8792
9347
|
} },
|
|
8793
|
-
|
|
9348
|
+
React__default.createElement(
|
|
8794
9349
|
Head,
|
|
8795
9350
|
null,
|
|
8796
|
-
currentTitle !== null &&
|
|
9351
|
+
currentTitle !== null && React__default.createElement(
|
|
8797
9352
|
'title',
|
|
8798
9353
|
{ key: 'title' },
|
|
8799
9354
|
currentTitle
|
|
8800
9355
|
),
|
|
8801
|
-
currentSummary !== null &&
|
|
8802
|
-
currentURL !== null &&
|
|
8803
|
-
currentTitle !== null &&
|
|
8804
|
-
currentThumbnail !== null &&
|
|
8805
|
-
currentSummary !== null &&
|
|
8806
|
-
currentTitle !== null &&
|
|
8807
|
-
currentThumbnail !== null &&
|
|
8808
|
-
currentSummary !== null &&
|
|
9356
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'description', key: 'description', content: currentSummary }),
|
|
9357
|
+
currentURL !== null && React__default.createElement('meta', { property: 'og:url', content: currentURL, key: 'og:url' }),
|
|
9358
|
+
currentTitle !== null && React__default.createElement('meta', { property: 'og:title', content: currentTitle, key: 'og:title' }),
|
|
9359
|
+
currentThumbnail !== null && React__default.createElement('meta', { property: 'og:image', content: currentThumbnail, key: 'og:image' }),
|
|
9360
|
+
currentSummary !== null && React__default.createElement('meta', { property: 'og:description', content: currentSummary, key: 'og:description' }),
|
|
9361
|
+
currentTitle !== null && React__default.createElement('meta', { name: 'twitter:title', content: currentTitle, key: 'twitter:title' }),
|
|
9362
|
+
currentThumbnail !== null && React__default.createElement('meta', { name: 'twitter:image', content: currentThumbnail, key: 'twitter:image' }),
|
|
9363
|
+
currentSummary !== null && React__default.createElement('meta', { name: 'twitter:description', content: currentSummary, key: 'twitter:description' })
|
|
8809
9364
|
),
|
|
8810
|
-
|
|
9365
|
+
React__default.createElement(
|
|
8811
9366
|
'article',
|
|
8812
9367
|
{ className: 'article-wrapper' },
|
|
8813
|
-
|
|
9368
|
+
React__default.createElement(
|
|
8814
9369
|
'div',
|
|
8815
9370
|
{ className: 'article-publishDate' },
|
|
8816
9371
|
moment(article.published).format('LL')
|
|
8817
9372
|
),
|
|
8818
|
-
|
|
9373
|
+
React__default.createElement(
|
|
8819
9374
|
'div',
|
|
8820
9375
|
{ className: 'author-details-wrapper' },
|
|
8821
9376
|
article.authorDetails && article.authorDetails.map(function (authorDetail, index) {
|
|
8822
|
-
return
|
|
9377
|
+
return React__default.createElement(
|
|
8823
9378
|
'span',
|
|
8824
9379
|
{ key: index },
|
|
8825
9380
|
renderAuthor(authorDetail.displayName, authorDetail.url, index, article.authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor(client, authorDetail.profileImage).url())
|
|
8826
9381
|
);
|
|
8827
9382
|
})
|
|
8828
9383
|
),
|
|
8829
|
-
|
|
9384
|
+
React__default.createElement(
|
|
8830
9385
|
'h2',
|
|
8831
9386
|
{ className: 'article-title' },
|
|
8832
9387
|
article.title
|
|
8833
9388
|
),
|
|
8834
|
-
|
|
9389
|
+
React__default.createElement(
|
|
8835
9390
|
'div',
|
|
8836
9391
|
{ className: 'mt-2 mb-2' },
|
|
8837
|
-
|
|
9392
|
+
React__default.createElement(BlockContent, _extends$1({
|
|
8838
9393
|
serializers: getSerializers,
|
|
8839
9394
|
videoAccountIDs: accountIDs,
|
|
8840
9395
|
blocks: article.text,
|
|
8841
9396
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
8842
9397
|
}, client.config())),
|
|
8843
|
-
|
|
9398
|
+
React__default.createElement('hr', { className: 'article-seperater my-4' })
|
|
8844
9399
|
),
|
|
8845
|
-
Articles.length > 1 &&
|
|
8846
|
-
|
|
9400
|
+
Articles.length > 1 && React__default.createElement(
|
|
9401
|
+
React__default.Fragment,
|
|
8847
9402
|
null,
|
|
8848
|
-
|
|
9403
|
+
React__default.createElement(
|
|
8849
9404
|
'div',
|
|
8850
9405
|
{ className: 'objective-prevNext-Wrapper' },
|
|
8851
|
-
|
|
9406
|
+
React__default.createElement(
|
|
8852
9407
|
'h5',
|
|
8853
9408
|
{ className: 'objective-title' },
|
|
8854
9409
|
nodes.seriesTitle
|
|
8855
9410
|
),
|
|
8856
|
-
|
|
9411
|
+
React__default.createElement(
|
|
8857
9412
|
'div',
|
|
8858
9413
|
{ className: 'prevNextWrapper' },
|
|
8859
9414
|
PrevNextCards(true, index)
|
|
8860
9415
|
)
|
|
8861
9416
|
),
|
|
8862
|
-
|
|
9417
|
+
React__default.createElement('hr', { className: 'article-seperater' })
|
|
8863
9418
|
)
|
|
8864
9419
|
),
|
|
8865
|
-
|
|
9420
|
+
React__default.createElement(
|
|
8866
9421
|
'div',
|
|
8867
9422
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
8868
|
-
|
|
9423
|
+
main_36 && Articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
|
|
8869
9424
|
if (innerIndex === 0) {
|
|
8870
|
-
return
|
|
9425
|
+
return React__default.createElement(
|
|
8871
9426
|
'div',
|
|
8872
9427
|
{
|
|
8873
9428
|
key: 'addid-' + (index + 2),
|
|
@@ -8890,7 +9445,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8890
9445
|
)
|
|
8891
9446
|
);
|
|
8892
9447
|
}),
|
|
8893
|
-
|
|
9448
|
+
React__default.createElement(
|
|
8894
9449
|
'style',
|
|
8895
9450
|
{ jsx: 'true' },
|
|
8896
9451
|
'\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 '
|
|
@@ -8920,11 +9475,11 @@ var LightBox = function LightBox(_ref) {
|
|
|
8920
9475
|
};
|
|
8921
9476
|
}, [handleClickOutside]);
|
|
8922
9477
|
|
|
8923
|
-
return
|
|
9478
|
+
return React__default.createElement(
|
|
8924
9479
|
'div',
|
|
8925
9480
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (showLightbox ? 'open' : 'close') },
|
|
8926
|
-
|
|
8927
|
-
|
|
9481
|
+
React__default.createElement('img', { ref: lightboxImage, src: lightboxImgSrc }),
|
|
9482
|
+
React__default.createElement(
|
|
8928
9483
|
'style',
|
|
8929
9484
|
{ jsx: 'true' },
|
|
8930
9485
|
'\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 '
|
|
@@ -9018,13 +9573,13 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9018
9573
|
|
|
9019
9574
|
var FigureCaption = useCallback(function () {
|
|
9020
9575
|
if (imgcaption && imgcaption.length > 0) {
|
|
9021
|
-
return
|
|
9576
|
+
return React__default.createElement(
|
|
9022
9577
|
'div',
|
|
9023
9578
|
{ className: 'figure-caption' },
|
|
9024
|
-
|
|
9579
|
+
React__default.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9025
9580
|
);
|
|
9026
9581
|
} else if (caption) {
|
|
9027
|
-
return
|
|
9582
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
|
|
9028
9583
|
} else return null;
|
|
9029
9584
|
}, [caption, imgcaption]);
|
|
9030
9585
|
|
|
@@ -9036,21 +9591,21 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9036
9591
|
margin: figureMargin
|
|
9037
9592
|
};
|
|
9038
9593
|
|
|
9039
|
-
return
|
|
9040
|
-
|
|
9594
|
+
return React__default.createElement(
|
|
9595
|
+
React__default.Fragment,
|
|
9041
9596
|
null,
|
|
9042
|
-
|
|
9043
|
-
Figure$
|
|
9597
|
+
React__default.createElement(
|
|
9598
|
+
Figure$1$1,
|
|
9044
9599
|
{ className: '' + class_name, style: figureStyle },
|
|
9045
|
-
link ?
|
|
9600
|
+
link ? React__default.createElement(
|
|
9046
9601
|
'a',
|
|
9047
9602
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9048
|
-
|
|
9049
|
-
|
|
9050
|
-
) :
|
|
9051
|
-
|
|
9603
|
+
React__default.createElement(Figure$1$1.Image, { style: { maxWidth: '100%' }, className: 'figure-image', src: urlFor$3(node, client).url(), alt: alt && alt }),
|
|
9604
|
+
React__default.createElement(FigureCaption, null)
|
|
9605
|
+
) : React__default.createElement(
|
|
9606
|
+
React__default.Fragment,
|
|
9052
9607
|
null,
|
|
9053
|
-
|
|
9608
|
+
React__default.createElement(Figure$1$1.Image, {
|
|
9054
9609
|
style: { maxWidth: '100%', cursor: 'pointer', width: 'auto' },
|
|
9055
9610
|
className: 'figure-image',
|
|
9056
9611
|
src: urlFor$3(node, client).url(),
|
|
@@ -9060,9 +9615,9 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9060
9615
|
setShowLightbox(true);
|
|
9061
9616
|
}
|
|
9062
9617
|
}),
|
|
9063
|
-
|
|
9618
|
+
React__default.createElement(FigureCaption, null)
|
|
9064
9619
|
),
|
|
9065
|
-
|
|
9620
|
+
React__default.createElement(LightBox, {
|
|
9066
9621
|
showLightbox: showLightbox,
|
|
9067
9622
|
lightboxImgSrc: lightboxImgSrc,
|
|
9068
9623
|
closeLightbox: function closeLightbox() {
|
|
@@ -9071,7 +9626,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9071
9626
|
}
|
|
9072
9627
|
})
|
|
9073
9628
|
),
|
|
9074
|
-
|
|
9629
|
+
React__default.createElement(
|
|
9075
9630
|
'style',
|
|
9076
9631
|
{ jsx: 'true' },
|
|
9077
9632
|
'\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 '
|
|
@@ -9079,7 +9634,7 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9079
9634
|
);
|
|
9080
9635
|
};
|
|
9081
9636
|
|
|
9082
|
-
var Figure =
|
|
9637
|
+
var Figure = React__default.memo(FigureComponent, compareProps);
|
|
9083
9638
|
|
|
9084
9639
|
var urlFor$4 = function urlFor(source, client) {
|
|
9085
9640
|
var builder = imageUrlBuilder(client);
|
|
@@ -9125,47 +9680,47 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9125
9680
|
imgcaption = _ref.imgcaption;
|
|
9126
9681
|
|
|
9127
9682
|
if (imgcaption && imgcaption.length > 0) {
|
|
9128
|
-
return
|
|
9683
|
+
return React__default.createElement(
|
|
9129
9684
|
'div',
|
|
9130
9685
|
{ className: 'multi-figure-caption' },
|
|
9131
|
-
|
|
9686
|
+
React__default.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
|
|
9132
9687
|
);
|
|
9133
9688
|
} else if (caption) {
|
|
9134
|
-
return
|
|
9689
|
+
return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
|
|
9135
9690
|
} else return null;
|
|
9136
9691
|
};
|
|
9137
9692
|
|
|
9138
9693
|
if (images && images.length > 0) {
|
|
9139
|
-
return
|
|
9694
|
+
return React__default.createElement(
|
|
9140
9695
|
'div',
|
|
9141
9696
|
{ className: 'multi-figure-container' },
|
|
9142
|
-
|
|
9697
|
+
React__default.createElement(
|
|
9143
9698
|
Row$1,
|
|
9144
9699
|
{ noGutters: true, style: { alignItems: 'center' } },
|
|
9145
9700
|
images.map(function (image, index) {
|
|
9146
|
-
return
|
|
9701
|
+
return React__default.createElement(
|
|
9147
9702
|
Col$1,
|
|
9148
9703
|
{ xs: 12, md: 12 / images.length, key: index },
|
|
9149
|
-
image.link ?
|
|
9704
|
+
image.link ? React__default.createElement(
|
|
9150
9705
|
'a',
|
|
9151
|
-
_extends({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9152
|
-
|
|
9706
|
+
_extends$1({}, image.link && { href: image.link, target: image.blank ? '_blank' : '_self' }, { style: { cursor: image.link ? 'pointer' : 'default' } }),
|
|
9707
|
+
React__default.createElement(
|
|
9153
9708
|
'div',
|
|
9154
9709
|
{ className: 'multi-figure-image-container' },
|
|
9155
|
-
|
|
9710
|
+
React__default.createElement(
|
|
9156
9711
|
LazyLoad,
|
|
9157
9712
|
{ once: true },
|
|
9158
|
-
|
|
9713
|
+
React__default.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor$4(image.asset, client).url(), alt: image.alt })
|
|
9159
9714
|
),
|
|
9160
|
-
|
|
9715
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9161
9716
|
)
|
|
9162
|
-
) :
|
|
9717
|
+
) : React__default.createElement(
|
|
9163
9718
|
'div',
|
|
9164
9719
|
{ className: 'multi-figure-image-container' },
|
|
9165
|
-
|
|
9720
|
+
React__default.createElement(
|
|
9166
9721
|
LazyLoad,
|
|
9167
9722
|
{ once: true },
|
|
9168
|
-
|
|
9723
|
+
React__default.createElement('img', {
|
|
9169
9724
|
'images-count': images.length,
|
|
9170
9725
|
className: 'multi-figure-image',
|
|
9171
9726
|
src: urlFor$4(image.asset, client).url(),
|
|
@@ -9176,17 +9731,17 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9176
9731
|
}
|
|
9177
9732
|
})
|
|
9178
9733
|
),
|
|
9179
|
-
|
|
9734
|
+
React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9180
9735
|
)
|
|
9181
9736
|
);
|
|
9182
9737
|
})
|
|
9183
9738
|
),
|
|
9184
|
-
|
|
9739
|
+
React__default.createElement(
|
|
9185
9740
|
'div',
|
|
9186
9741
|
{ ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
|
|
9187
|
-
|
|
9742
|
+
React__default.createElement('img', { ref: lightboxImage, src: openImgSrc })
|
|
9188
9743
|
),
|
|
9189
|
-
|
|
9744
|
+
React__default.createElement(
|
|
9190
9745
|
'style',
|
|
9191
9746
|
{ jsx: 'true' },
|
|
9192
9747
|
'\n .multi-figure-caption,\n .multi-figure-caption h1,\n .multi-figure-caption h2,\n .multi-figure-caption h3,\n .multi-figure-caption h4,\n .multi-figure-caption h5,\n .multi-figure-caption h6,\n .multi-figure-caption p,\n .multi-figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n\n .multi-figure-container {\n margin-bottom: 1rem;\n }\n .multi-figure-image {\n width: 100%;\n height: auto;\n object-fit: contain;\n }\n .multi-figure-image-container {\n padding-right: 0.5rem;\n }\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-figure-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 200px;\n }\n .multi-figure-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 300px;\n }\n }\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
|
|
@@ -9208,13 +9763,265 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9208
9763
|
|
|
9209
9764
|
var elementId = articleId ? id + '-' + articleId : id;
|
|
9210
9765
|
|
|
9211
|
-
return
|
|
9766
|
+
return React__default.createElement(
|
|
9212
9767
|
'div',
|
|
9213
9768
|
{ id: elementId },
|
|
9214
|
-
|
|
9769
|
+
React__default.createElement(BlockContent, { blocks: content, serializers: getSerializers })
|
|
9215
9770
|
);
|
|
9216
9771
|
};
|
|
9217
9772
|
|
|
9773
|
+
var objectWithoutProperties = createCommonjsModule(function (module, exports) {
|
|
9774
|
+
|
|
9775
|
+
exports.__esModule = true;
|
|
9776
|
+
|
|
9777
|
+
exports.default = function (obj, keys) {
|
|
9778
|
+
var target = {};
|
|
9779
|
+
|
|
9780
|
+
for (var i in obj) {
|
|
9781
|
+
if (keys.indexOf(i) >= 0) continue;
|
|
9782
|
+
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
|
|
9783
|
+
target[i] = obj[i];
|
|
9784
|
+
}
|
|
9785
|
+
|
|
9786
|
+
return target;
|
|
9787
|
+
};
|
|
9788
|
+
});
|
|
9789
|
+
|
|
9790
|
+
unwrapExports(objectWithoutProperties);
|
|
9791
|
+
|
|
9792
|
+
var ScriptTag_1 = createCommonjsModule(function (module, exports) {
|
|
9793
|
+
|
|
9794
|
+
exports.__esModule = true;
|
|
9795
|
+
|
|
9796
|
+
|
|
9797
|
+
|
|
9798
|
+
var _extends3 = _interopRequireDefault(_extends$2);
|
|
9799
|
+
|
|
9800
|
+
|
|
9801
|
+
|
|
9802
|
+
var _objectWithoutProperties3 = _interopRequireDefault(objectWithoutProperties);
|
|
9803
|
+
|
|
9804
|
+
|
|
9805
|
+
|
|
9806
|
+
var _classCallCheck3 = _interopRequireDefault(classCallCheck);
|
|
9807
|
+
|
|
9808
|
+
|
|
9809
|
+
|
|
9810
|
+
var _possibleConstructorReturn3 = _interopRequireDefault(possibleConstructorReturn);
|
|
9811
|
+
|
|
9812
|
+
|
|
9813
|
+
|
|
9814
|
+
var _inherits3 = _interopRequireDefault(inherits$2);
|
|
9815
|
+
|
|
9816
|
+
|
|
9817
|
+
|
|
9818
|
+
var _react2 = _interopRequireDefault(React__default);
|
|
9819
|
+
|
|
9820
|
+
|
|
9821
|
+
|
|
9822
|
+
var _propTypes2 = _interopRequireDefault(PropTypes);
|
|
9823
|
+
|
|
9824
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9825
|
+
var noop = function noop() {};
|
|
9826
|
+
|
|
9827
|
+
var ScriptTag = function (_Component) {
|
|
9828
|
+
(0, _inherits3.default)(ScriptTag, _Component);
|
|
9829
|
+
|
|
9830
|
+
ScriptTag.removeNode = function removeNode(node) {
|
|
9831
|
+
if (node) {
|
|
9832
|
+
node.parentNode.removeChild(node);
|
|
9833
|
+
}
|
|
9834
|
+
};
|
|
9835
|
+
|
|
9836
|
+
function ScriptTag(props, context) {
|
|
9837
|
+
(0, _classCallCheck3.default)(this, ScriptTag);
|
|
9838
|
+
|
|
9839
|
+
var _this = (0, _possibleConstructorReturn3.default)(this, _Component.call(this, props, context));
|
|
9840
|
+
|
|
9841
|
+
_this.domRef = null;
|
|
9842
|
+
_this.state = {
|
|
9843
|
+
isHydrated: props.isHydrating,
|
|
9844
|
+
additionalNode: null,
|
|
9845
|
+
removeAdditionalNode: null
|
|
9846
|
+
};
|
|
9847
|
+
return _this;
|
|
9848
|
+
}
|
|
9849
|
+
|
|
9850
|
+
ScriptTag.prototype.appendAdditionalElement = function appendAdditionalElement() {
|
|
9851
|
+
var _props = this.props,
|
|
9852
|
+
onError = _props.onError,
|
|
9853
|
+
onLoad = _props.onLoad,
|
|
9854
|
+
nonce = _props.nonce;
|
|
9855
|
+
|
|
9856
|
+
// Create a new HTML script element
|
|
9857
|
+
|
|
9858
|
+
var newElement = document.createElement("script");
|
|
9859
|
+
|
|
9860
|
+
// Copy all attribute values
|
|
9861
|
+
for (var i = 0, len = this.domRef.attributes.length; i < len; i++) {
|
|
9862
|
+
var attr = this.domRef.attributes[i];
|
|
9863
|
+
if (attr.nodeName === 'nonce') {
|
|
9864
|
+
// The browser clears the nonce value - grab from props
|
|
9865
|
+
newElement.setAttribute(attr.nodeName, nonce);
|
|
9866
|
+
} else {
|
|
9867
|
+
newElement.setAttribute(attr.nodeName, attr.nodeValue);
|
|
9868
|
+
}
|
|
9869
|
+
}
|
|
9870
|
+
|
|
9871
|
+
// Copy the inner script
|
|
9872
|
+
if (this.domRef.src === '' && this.domRef.innerHTML && this.domRef.innerHTML !== '') {
|
|
9873
|
+
newElement.innerHTML = this.domRef.innerHTML;
|
|
9874
|
+
}
|
|
9875
|
+
|
|
9876
|
+
// Bind event listeners
|
|
9877
|
+
newElement.addEventListener('load', onLoad);
|
|
9878
|
+
newElement.addEventListener('error', onError);
|
|
9879
|
+
|
|
9880
|
+
// Append the new script tag
|
|
9881
|
+
this.domRef.parentNode.appendChild(newElement);
|
|
9882
|
+
return newElement;
|
|
9883
|
+
};
|
|
9884
|
+
|
|
9885
|
+
ScriptTag.prototype.componentDidMount = function componentDidMount() {
|
|
9886
|
+
var isHydrated = this.state.isHydrated;
|
|
9887
|
+
|
|
9888
|
+
if (isHydrated) {
|
|
9889
|
+
// was rendered on server, don't replace elements when hydrating
|
|
9890
|
+
return;
|
|
9891
|
+
}
|
|
9892
|
+
|
|
9893
|
+
this.setState({
|
|
9894
|
+
additionalNode: this.appendAdditionalElement(),
|
|
9895
|
+
removeAdditionalNode: null
|
|
9896
|
+
});
|
|
9897
|
+
};
|
|
9898
|
+
|
|
9899
|
+
ScriptTag.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
|
9900
|
+
// This logic assumes that the <script> only need to be updated if the 'src' or 'innerHTML' has changed
|
|
9901
|
+
// - this prevents the <script> from updating unnecessarily, which prevents additional 'onload' events
|
|
9902
|
+
|
|
9903
|
+
// This isn't perfect - but it keeps the component very simple, and should cover most use-cases
|
|
9904
|
+
// Other props SHOULD be assigned at the same time as either the 'src' or 'innerHTML' property
|
|
9905
|
+
// -> If this is to change and support updating on ANY prop change, the 'appendAdditionalElement()' method
|
|
9906
|
+
// and state management will need to be modified to manipulate the DOM script tag based on each prop change.
|
|
9907
|
+
// This really complicates the component - for now we'll leave it as is.
|
|
9908
|
+
var _props2 = this.props,
|
|
9909
|
+
src = _props2.src,
|
|
9910
|
+
dangerouslySetInnerHTML = _props2.dangerouslySetInnerHTML;
|
|
9911
|
+
|
|
9912
|
+
if (src && src === nextProps.src) {
|
|
9913
|
+
// The 'src' attribute has not changed
|
|
9914
|
+
return;
|
|
9915
|
+
}
|
|
9916
|
+
|
|
9917
|
+
if (dangerouslySetInnerHTML && dangerouslySetInnerHTML.__html === nextProps.dangerouslySetInnerHTML.__html) {
|
|
9918
|
+
// The 'dangerouslySetInnerHTML' attribute has not changed
|
|
9919
|
+
return;
|
|
9920
|
+
}
|
|
9921
|
+
|
|
9922
|
+
this.setState({
|
|
9923
|
+
removeAdditionalNode: this.state.additionalNode,
|
|
9924
|
+
additionalNode: null
|
|
9925
|
+
});
|
|
9926
|
+
};
|
|
9927
|
+
|
|
9928
|
+
ScriptTag.prototype.componentWillUpdate = function componentWillUpdate(nextProps, nextState) {
|
|
9929
|
+
ScriptTag.removeNode(nextState.removeAdditionalNode);
|
|
9930
|
+
};
|
|
9931
|
+
|
|
9932
|
+
ScriptTag.prototype.componentDidUpdate = function componentDidUpdate() {
|
|
9933
|
+
var _state = this.state,
|
|
9934
|
+
additionalNode = _state.additionalNode,
|
|
9935
|
+
removeAdditionalNode = _state.removeAdditionalNode;
|
|
9936
|
+
|
|
9937
|
+
if (additionalNode === null) {
|
|
9938
|
+
this.setState({
|
|
9939
|
+
additionalNode: this.appendAdditionalElement()
|
|
9940
|
+
});
|
|
9941
|
+
}
|
|
9942
|
+
|
|
9943
|
+
if (removeAdditionalNode !== null) {
|
|
9944
|
+
// Was removed in 'componentWillUpdate', but can not update state there
|
|
9945
|
+
this.setState({
|
|
9946
|
+
removeAdditionalNode: null
|
|
9947
|
+
});
|
|
9948
|
+
}
|
|
9949
|
+
};
|
|
9950
|
+
|
|
9951
|
+
ScriptTag.prototype.componentWillUnmount = function componentWillUnmount() {
|
|
9952
|
+
ScriptTag.removeNode(this.state.removeAdditionalNode);
|
|
9953
|
+
ScriptTag.removeNode(this.state.additionalNode);
|
|
9954
|
+
};
|
|
9955
|
+
|
|
9956
|
+
ScriptTag.prototype.render = function render() {
|
|
9957
|
+
var _this2 = this;
|
|
9958
|
+
|
|
9959
|
+
var additionalNode = this.state.additionalNode;
|
|
9960
|
+
|
|
9961
|
+
if (additionalNode !== null) {
|
|
9962
|
+
return null;
|
|
9963
|
+
}
|
|
9964
|
+
|
|
9965
|
+
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9966
|
+
// eslint-disable-next-line no-unused-vars
|
|
9967
|
+
var _props3 = this.props,
|
|
9968
|
+
isHydrating = _props3.isHydrating,
|
|
9969
|
+
tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9970
|
+
|
|
9971
|
+
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9972
|
+
return _this2.domRef = tag;
|
|
9973
|
+
} }));
|
|
9974
|
+
};
|
|
9975
|
+
|
|
9976
|
+
return ScriptTag;
|
|
9977
|
+
}(React__default.Component);
|
|
9978
|
+
|
|
9979
|
+
ScriptTag.propTypes = {
|
|
9980
|
+
/**
|
|
9981
|
+
* True if the <ScriptTag> is being hydrated on the client, otherwise false.
|
|
9982
|
+
*/
|
|
9983
|
+
isHydrating: _propTypes2.default.bool,
|
|
9984
|
+
|
|
9985
|
+
// Standard <script> tag props
|
|
9986
|
+
async: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.number]),
|
|
9987
|
+
crossOrigin: _propTypes2.default.string,
|
|
9988
|
+
defer: _propTypes2.default.bool,
|
|
9989
|
+
integrity: _propTypes2.default.string,
|
|
9990
|
+
nonce: _propTypes2.default.string,
|
|
9991
|
+
src: _propTypes2.default.string,
|
|
9992
|
+
text: _propTypes2.default.string,
|
|
9993
|
+
type: _propTypes2.default.string,
|
|
9994
|
+
dangerouslySetInnerHTML: _propTypes2.default.object,
|
|
9995
|
+
|
|
9996
|
+
// globals
|
|
9997
|
+
onError: _propTypes2.default.func,
|
|
9998
|
+
onLoad: _propTypes2.default.func
|
|
9999
|
+
};
|
|
10000
|
+
ScriptTag.defaultProps = {
|
|
10001
|
+
isHydrating: false,
|
|
10002
|
+
onError: noop,
|
|
10003
|
+
onLoad: noop
|
|
10004
|
+
};
|
|
10005
|
+
exports.default = ScriptTag;
|
|
10006
|
+
});
|
|
10007
|
+
|
|
10008
|
+
unwrapExports(ScriptTag_1);
|
|
10009
|
+
|
|
10010
|
+
var lib = createCommonjsModule(function (module, exports) {
|
|
10011
|
+
|
|
10012
|
+
exports.__esModule = true;
|
|
10013
|
+
|
|
10014
|
+
|
|
10015
|
+
|
|
10016
|
+
var _ScriptTag2 = _interopRequireDefault(ScriptTag_1);
|
|
10017
|
+
|
|
10018
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10019
|
+
|
|
10020
|
+
exports.default = _ScriptTag2.default;
|
|
10021
|
+
});
|
|
10022
|
+
|
|
10023
|
+
var ScriptTag = unwrapExports(lib);
|
|
10024
|
+
|
|
9218
10025
|
var enterpriseDomainName = 'mjhlifesciences';
|
|
9219
10026
|
|
|
9220
10027
|
var FormAssembly = function FormAssembly(_ref) {
|
|
@@ -9237,11 +10044,11 @@ var FormAssembly = function FormAssembly(_ref) {
|
|
|
9237
10044
|
}, 1000);
|
|
9238
10045
|
}, []);
|
|
9239
10046
|
|
|
9240
|
-
return
|
|
10047
|
+
return React__default.createElement(
|
|
9241
10048
|
'section',
|
|
9242
10049
|
{ ref: formAssemblyRef, className: 'form-assembly' },
|
|
9243
|
-
|
|
9244
|
-
|
|
10050
|
+
React__default.createElement('iframe', { src: 'https://' + enterpriseDomainName + '.tfaforms.net/' + FormID, height: '800', width: '100%', frameBorder: '0' }),
|
|
10051
|
+
React__default.createElement(ScriptTag, { src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9245
10052
|
);
|
|
9246
10053
|
};
|
|
9247
10054
|
|
|
@@ -9275,27 +10082,27 @@ var BlockTable = function BlockTable(props) {
|
|
|
9275
10082
|
return window.removeEventListener('resize', handleResize);
|
|
9276
10083
|
};
|
|
9277
10084
|
}, []);
|
|
9278
|
-
return
|
|
10085
|
+
return React__default.createElement(
|
|
9279
10086
|
'div',
|
|
9280
10087
|
{ className: 'blockTableHolder', ref: holder },
|
|
9281
|
-
|
|
10088
|
+
React__default.createElement(
|
|
9282
10089
|
'div',
|
|
9283
10090
|
{ className: 'blockTable' },
|
|
9284
10091
|
rows && rows.map(function (row) {
|
|
9285
|
-
return
|
|
10092
|
+
return React__default.createElement(
|
|
9286
10093
|
'div',
|
|
9287
10094
|
{ className: 'blockTableRow' },
|
|
9288
10095
|
row.cells && row.cells.map(function (cell) {
|
|
9289
|
-
return
|
|
10096
|
+
return React__default.createElement(
|
|
9290
10097
|
'div',
|
|
9291
10098
|
{ className: 'blockTableCell', style: { width: (100 / row.cells.length).toFixed(2) + '%' } },
|
|
9292
|
-
|
|
10099
|
+
React__default.createElement(BlockContent, _extends$1({ blocks: cell.content, serializers: getSerializers }, client.config()))
|
|
9293
10100
|
);
|
|
9294
10101
|
})
|
|
9295
10102
|
);
|
|
9296
10103
|
})
|
|
9297
10104
|
),
|
|
9298
|
-
|
|
10105
|
+
React__default.createElement(
|
|
9299
10106
|
'style',
|
|
9300
10107
|
{ jsx: true },
|
|
9301
10108
|
'\n .blockTableRow {\n display: flex;\n ' + (showBorders && 'border-top: ' + borderWidth + 'px solid ' + _borderColor) + ';\n }\n .blockTable {\n min-width: ' + minTableWidth + 'px;\n }\n .blockTableRow:last-of-type {\n ' + (showBorders && 'border-bottom: ' + borderWidth + 'px solid ' + _borderColor) + ';\n }\n .blockTableCell {\n padding: 0.5rem;\n ' + (showBorders && 'border-left: ' + borderWidth + 'px solid ' + _borderColor) + ';\n }\n .blockTableCell > div {\n width: 100%;\n }\n .blockTableCell > div p {\n margin: 0;\n }\n .blockTableCell > div figure {\n margin: 0 !important;\n }\n .blockTableCell > div figure img {\n margin: 0 !important;\n }\n .blockTableCell:last-of-type {\n ' + (showBorders && 'border-right: ' + borderWidth + 'px solid ' + _borderColor) + ';\n }\n @media only screen and (max-width: 800px) {\n .blockTableCell {\n padding: 0.25rem;\n }\n }\n '
|
|
@@ -9374,12 +10181,12 @@ var getSerializers = function getSerializers() {
|
|
|
9374
10181
|
var node = _ref.node;
|
|
9375
10182
|
var url = node.url;
|
|
9376
10183
|
|
|
9377
|
-
return
|
|
10184
|
+
return React__default.createElement(YouTubePlayer, { autoplay: autoplay, url: url });
|
|
9378
10185
|
},
|
|
9379
10186
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
9380
10187
|
var node = _ref2.node;
|
|
9381
10188
|
|
|
9382
|
-
return
|
|
10189
|
+
return React__default.createElement(YouTubeGallery, {
|
|
9383
10190
|
nodes: node,
|
|
9384
10191
|
article: article,
|
|
9385
10192
|
meta: meta,
|
|
@@ -9393,7 +10200,7 @@ var getSerializers = function getSerializers() {
|
|
|
9393
10200
|
articleSeries: function articleSeries(_ref3) {
|
|
9394
10201
|
var node = _ref3.node;
|
|
9395
10202
|
|
|
9396
|
-
return
|
|
10203
|
+
return React__default.createElement(ArticleSeries, {
|
|
9397
10204
|
nodes: node,
|
|
9398
10205
|
accountIDs: videoAccountIDs || {},
|
|
9399
10206
|
pageview: pageview,
|
|
@@ -9406,61 +10213,61 @@ var getSerializers = function getSerializers() {
|
|
|
9406
10213
|
figure: function figure(_ref4) {
|
|
9407
10214
|
var node = _ref4.node;
|
|
9408
10215
|
|
|
9409
|
-
return
|
|
10216
|
+
return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
|
|
9410
10217
|
},
|
|
9411
10218
|
multifigure: function multifigure(_ref5) {
|
|
9412
10219
|
var node = _ref5.node;
|
|
9413
10220
|
|
|
9414
|
-
return
|
|
10221
|
+
return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9415
10222
|
},
|
|
9416
10223
|
slideshow: function slideshow(_ref6) {
|
|
9417
10224
|
var node = _ref6.node;
|
|
9418
10225
|
var slides = node.slides;
|
|
9419
10226
|
|
|
9420
|
-
return
|
|
10227
|
+
return React__default.createElement(Slideshow, { slides: slides, client: client, pageview: pageview });
|
|
9421
10228
|
},
|
|
9422
10229
|
sidebar: function sidebar(_ref7) {
|
|
9423
10230
|
var node = _ref7.node;
|
|
9424
10231
|
var caption = node.caption,
|
|
9425
10232
|
content = node.content;
|
|
9426
10233
|
|
|
9427
|
-
return
|
|
10234
|
+
return React__default.createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers(props) });
|
|
9428
10235
|
},
|
|
9429
10236
|
datatable: function datatable(_ref8) {
|
|
9430
10237
|
var node = _ref8.node;
|
|
9431
10238
|
var table = node.table;
|
|
9432
10239
|
|
|
9433
|
-
return
|
|
10240
|
+
return React__default.createElement(TableShow, { rows: table.rows });
|
|
9434
10241
|
},
|
|
9435
10242
|
media: function media(_ref9) {
|
|
9436
10243
|
var node = _ref9.node;
|
|
9437
10244
|
|
|
9438
|
-
return
|
|
10245
|
+
return React__default.createElement(Media, { node: node, client: client });
|
|
9439
10246
|
},
|
|
9440
10247
|
iframe: function iframe(_ref10) {
|
|
9441
10248
|
var node = _ref10.node;
|
|
9442
10249
|
|
|
9443
|
-
return
|
|
10250
|
+
return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
|
|
9444
10251
|
},
|
|
9445
10252
|
video: function video(_ref11) {
|
|
9446
10253
|
var node = _ref11.node;
|
|
9447
10254
|
|
|
9448
|
-
return
|
|
10255
|
+
return React__default.createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting });
|
|
9449
10256
|
},
|
|
9450
10257
|
audio: function audio(_ref12) {
|
|
9451
10258
|
var node = _ref12.node;
|
|
9452
10259
|
|
|
9453
|
-
return
|
|
10260
|
+
return React__default.createElement(Audio, { node: node });
|
|
9454
10261
|
},
|
|
9455
10262
|
poll: function poll(_ref13) {
|
|
9456
10263
|
var node = _ref13.node;
|
|
9457
10264
|
|
|
9458
|
-
return
|
|
10265
|
+
return React__default.createElement(Poll, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers(props) });
|
|
9459
10266
|
},
|
|
9460
10267
|
pollMultiChoice: function pollMultiChoice(_ref14) {
|
|
9461
10268
|
var node = _ref14.node;
|
|
9462
10269
|
|
|
9463
|
-
return
|
|
10270
|
+
return React__default.createElement(Poll$1, {
|
|
9464
10271
|
node: node,
|
|
9465
10272
|
client: client,
|
|
9466
10273
|
pageview: pageview,
|
|
@@ -9474,35 +10281,35 @@ var getSerializers = function getSerializers() {
|
|
|
9474
10281
|
var node = _ref15.node;
|
|
9475
10282
|
var quizzes = node.quizzes;
|
|
9476
10283
|
|
|
9477
|
-
return
|
|
10284
|
+
return React__default.createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers(props), pageview: pageview, currentPage: currentPage });
|
|
9478
10285
|
},
|
|
9479
10286
|
leads: function leads(_ref16) {
|
|
9480
10287
|
var node = _ref16.node;
|
|
9481
10288
|
var leadID = node.leadID;
|
|
9482
10289
|
|
|
9483
10290
|
var url = '' + drupalLeadSettings.baseUrl + leadID;
|
|
9484
|
-
return
|
|
10291
|
+
return React__default.createElement(Leads, { url: url });
|
|
9485
10292
|
},
|
|
9486
10293
|
slideshows: function slideshows(_ref17) {
|
|
9487
10294
|
var node = _ref17.node;
|
|
9488
10295
|
|
|
9489
|
-
return
|
|
10296
|
+
return React__default.createElement(Slideshow$1, { node: node, client: client, pageview: pageview, getSerializers: getSerializers(props) });
|
|
9490
10297
|
},
|
|
9491
10298
|
nativeAd: function nativeAd(_ref18) {
|
|
9492
10299
|
var node = _ref18.node;
|
|
9493
10300
|
|
|
9494
|
-
return
|
|
10301
|
+
return React__default.createElement(NativeAd, { node: node });
|
|
9495
10302
|
},
|
|
9496
10303
|
html_anchor_links: function html_anchor_links(_ref19) {
|
|
9497
10304
|
var node = _ref19.node;
|
|
9498
10305
|
|
|
9499
|
-
return
|
|
10306
|
+
return React__default.createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
|
|
9500
10307
|
},
|
|
9501
10308
|
hrtag: function hrtag() {
|
|
9502
|
-
return
|
|
10309
|
+
return React__default.createElement('hr', { style: { border: 'none', height: '2px', backgroundColor: 'var(--primary)', color: 'var(--primary)' }, className: 'horizontal-rule' });
|
|
9503
10310
|
},
|
|
9504
10311
|
brtag: function brtag() {
|
|
9505
|
-
return
|
|
10312
|
+
return React__default.createElement('br', { className: 'line-break' });
|
|
9506
10313
|
},
|
|
9507
10314
|
formstack: function formstack(_ref20) {
|
|
9508
10315
|
var node = _ref20.node;
|
|
@@ -9510,33 +10317,33 @@ var getSerializers = function getSerializers() {
|
|
|
9510
10317
|
Caption = node.Caption,
|
|
9511
10318
|
needSegmentSupport = node.needSegmentSupport;
|
|
9512
10319
|
|
|
9513
|
-
return
|
|
10320
|
+
return React__default.createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
|
|
9514
10321
|
},
|
|
9515
10322
|
formassembly: function formassembly(_ref21) {
|
|
9516
10323
|
var node = _ref21.node;
|
|
9517
10324
|
|
|
9518
|
-
return
|
|
10325
|
+
return React__default.createElement(FormAssembly, { node: node });
|
|
9519
10326
|
},
|
|
9520
10327
|
multimedia: function multimedia(_ref22) {
|
|
9521
10328
|
var node = _ref22.node;
|
|
9522
10329
|
|
|
9523
|
-
return
|
|
10330
|
+
return React__default.createElement(MultiMedia, { node: node, client: client });
|
|
9524
10331
|
},
|
|
9525
10332
|
blockTable: function blockTable(_ref23) {
|
|
9526
10333
|
var node = _ref23.node;
|
|
9527
|
-
return
|
|
10334
|
+
return React__default.createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
|
|
9528
10335
|
}
|
|
9529
10336
|
},
|
|
9530
10337
|
marks: {
|
|
9531
10338
|
superscript: function superscript(props) {
|
|
9532
|
-
return
|
|
10339
|
+
return React__default.createElement(
|
|
9533
10340
|
'sup',
|
|
9534
10341
|
null,
|
|
9535
10342
|
props.children
|
|
9536
10343
|
);
|
|
9537
10344
|
},
|
|
9538
10345
|
subscript: function subscript(props) {
|
|
9539
|
-
return
|
|
10346
|
+
return React__default.createElement(
|
|
9540
10347
|
'sub',
|
|
9541
10348
|
null,
|
|
9542
10349
|
props.children
|
|
@@ -9552,7 +10359,7 @@ var getSerializers = function getSerializers() {
|
|
|
9552
10359
|
if (href && href.charAt(0) === '#') {
|
|
9553
10360
|
var elementId = href.slice(1);
|
|
9554
10361
|
if (articleId) elementId = elementId + '-' + articleId;
|
|
9555
|
-
return
|
|
10362
|
+
return React__default.createElement(
|
|
9556
10363
|
'a',
|
|
9557
10364
|
{ onClick: function onClick() {
|
|
9558
10365
|
return ScrollToElement(elementId);
|
|
@@ -9562,7 +10369,7 @@ var getSerializers = function getSerializers() {
|
|
|
9562
10369
|
}
|
|
9563
10370
|
|
|
9564
10371
|
var isExernalUrl = checkUrlIsExternal(href);
|
|
9565
|
-
return
|
|
10372
|
+
return React__default.createElement(
|
|
9566
10373
|
'a',
|
|
9567
10374
|
{ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' },
|
|
9568
10375
|
children
|
|
@@ -9570,7 +10377,7 @@ var getSerializers = function getSerializers() {
|
|
|
9570
10377
|
},
|
|
9571
10378
|
alignleft: function alignleft(_ref24) {
|
|
9572
10379
|
var children = _ref24.children;
|
|
9573
|
-
return
|
|
10380
|
+
return React__default.createElement(
|
|
9574
10381
|
'div',
|
|
9575
10382
|
{ style: { textAlign: 'left' } },
|
|
9576
10383
|
children
|
|
@@ -9578,7 +10385,7 @@ var getSerializers = function getSerializers() {
|
|
|
9578
10385
|
},
|
|
9579
10386
|
alignright: function alignright(_ref25) {
|
|
9580
10387
|
var children = _ref25.children;
|
|
9581
|
-
return
|
|
10388
|
+
return React__default.createElement(
|
|
9582
10389
|
'div',
|
|
9583
10390
|
{ style: { textAlign: 'right' } },
|
|
9584
10391
|
children
|
|
@@ -9586,7 +10393,7 @@ var getSerializers = function getSerializers() {
|
|
|
9586
10393
|
},
|
|
9587
10394
|
aligncenter: function aligncenter(_ref26) {
|
|
9588
10395
|
var children = _ref26.children;
|
|
9589
|
-
return
|
|
10396
|
+
return React__default.createElement(
|
|
9590
10397
|
'div',
|
|
9591
10398
|
{ style: { textAlign: 'center' } },
|
|
9592
10399
|
children
|
|
@@ -9594,7 +10401,7 @@ var getSerializers = function getSerializers() {
|
|
|
9594
10401
|
},
|
|
9595
10402
|
alignjustify: function alignjustify(_ref27) {
|
|
9596
10403
|
var children = _ref27.children;
|
|
9597
|
-
return
|
|
10404
|
+
return React__default.createElement(
|
|
9598
10405
|
'div',
|
|
9599
10406
|
{ style: { textAlign: 'justify' } },
|
|
9600
10407
|
children
|
|
@@ -9604,7 +10411,7 @@ var getSerializers = function getSerializers() {
|
|
|
9604
10411
|
var children = props.children,
|
|
9605
10412
|
color = props.mark.color;
|
|
9606
10413
|
|
|
9607
|
-
return
|
|
10414
|
+
return React__default.createElement(
|
|
9608
10415
|
'span',
|
|
9609
10416
|
{ style: { color: color ? color.hex : null } },
|
|
9610
10417
|
children
|